gdb: clear regcaches at the start of regcaches selftest
[binutils-gdb.git] / gdb / ChangeLog
1 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * regcache.c (regcaches_test): Call registers_changed.
4
5 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6
7 * infrun.c (process_event_stop_test): Fix typo "breapoint".
8
9 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10
11 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
12 to find the end of prologue for flang compiled binaries.
13 * arm-tdep.c (arm_skip_prologue): Likewise.
14 * i386-tdep.c (i386_skip_prologue): Likewise.
15 * producer.c (producer_is_llvm): New function.
16 (producer_parsing_tests): Added new tests for clang/flang.
17 * producer.h (producer_is_llvm): New declaration.
18
19 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
20
21 * linux-nat.c (linux_nat_debug_printf): New function.
22 (linux_nat_debug_printf_1): New macro. Use throughout the file.
23
24 2020-08-18 Aaron Merey <amerey@redhat.com>
25
26 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
27 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
28 (CLIBS): Add DEBUGINFOD_LIBS.
29
30 2020-08-17 Sergei Trofimovich <siarheit@google.com>
31
32 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
33 'gdbarch_num_regs'.
34
35 2020-08-17 Tom Tromey <tromey@adacore.com>
36
37 * ada-varobj.c (ada_varobj_decode_var): Handle case where
38 ada_get_decoded_value returns NULL.
39
40 2020-08-17 Tom Tromey <tromey@adacore.com>
41
42 * python/py-inferior.c (infpy_search_memory): Use
43 gdb_py_object_from_ulongest.
44 * python/py-infevents.c (create_inferior_call_event_object)
45 (create_memory_changed_event_object): Use
46 gdb_py_object_from_ulongest.
47 * python/py-linetable.c (ltpy_entry_get_pc): Use
48 gdb_py_object_from_ulongest.
49
50 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
51
52 * loc.c (class symbol_needs_eval_context): Fix indentation.
53
54 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
55
56 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
57 bool.
58
59 2020-08-17 Tom de Vries <tdevries@suse.de>
60
61 PR gdb/26393
62 * gdbtypes.c (dump_dynamic_prop): New function.
63 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
64
65 2020-08-15 Tom de Vries <tdevries@suse.de>
66
67 PR backtrace/26390
68 * stack.c (print_frame_args): Temporarily set the selected
69 frame to FRAME while printing the frame's arguments.
70
71 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
72
73 PR breakpoints/26385
74 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
75 Always clear watchpoint with PTRACE_SET_DEBUGREG.
76
77 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
78
79 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
80 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
81 and >= to check return value instead of == -1 and != -1.
82
83 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
84
85 * utils.h (class gdb_argv) <as_array_view>: New method.
86 * utils.c (gdb_argv_as_array_view_test): New.
87 (_initialize_utils): Register selftest.
88 * maint.c (maintenance_selftest): Use the new method.
89
90 2020-08-13 Kamil Rytarowski <n54@gmx.com>
91
92 * target.h (supports_dumpcore, dumpcore): New
93 function declarations.
94 * target.c (supports_dumpcore, dumpcore): New
95 functions.
96 * target-delegates.c: Rebuild.
97 * gcore.c (gcore_command): Use target_supports_dumpcore ()
98 and target_dumpcore ().
99
100 2020-08-13 Aaron Merey <amerey@redhat.com>
101
102 * debuginfod-support.c: Replace global variables with user_data.
103
104 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
105
106 * maint.c (maintenance_selftest): Split args and pass array_view
107 to run_tests.
108
109 2020-08-12 Luis Machado <luis.machado@linaro.org>
110
111 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
112 type's length.
113 Use %s and pulongest to print the length.
114
115 2020-08-12 Pedro Alves <palves@redhat.com>
116
117 * NEWS: Move "Multi-target debugging support" item to the
118 "Changes since GDB 9" section.
119
120 2020-08-12 Pedro Alves <palves@redhat.com>
121
122 PR gdb/26336
123 * progspace.c (program_space::remove_objfile): Invalidate the
124 frame cache.
125
126 2020-08-11 Tom de Vries <tdevries@suse.de>
127
128 * MAINTAINERS: Mark ms1 as deleted.
129
130 2020-08-10 Luis Machado <luis.machado@linaro.org>
131
132 PR gdb/26310
133
134 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
135 act accordingly.
136 (aarch64_analyze_prologue_test): Add more unit tests to exercise
137 movz/str/stur/stp skipping behavior.
138
139 2020-08-10 Luis Machado <luis.machado@linaro.org>
140
141 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
142 struct user_sve_header instead of struct sve_context.
143
144 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
145
146 * read.h (dwarf2_fetch_die_loc_sect_off,
147 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
148 `void *` parameter with function_view.
149 * read.c (dwarf2_fetch_die_loc_sect_off,
150 dwarf2_fetch_die_loc_cu_off): Likewise.
151 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
152 (per_cu_dwarf_call): Adjust.
153 (get_frame_address_in_block_wrapper): Remove.
154 (indirect_synthetic_pointer): Adjust.
155 (get_ax_pc): Remove.
156 (dwarf2_compile_expr_to_ax): Adjust.
157
158 2020-08-08 Tom de Vries <tdevries@suse.de>
159
160 PR build/26344
161 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
162 constructor.
163 * regcache.c (get_thread_arch_aspace_regcache): Same.
164
165 2020-08-07 Tom Tromey <tromey@adacore.com>
166
167 * ravenscar-thread.c
168 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
169 New method.
170 (ravenscar_thread_target::wait): Check
171 runtime_initialized.
172 (ravenscar_thread_target::prepare_to_store)
173 (ravenscar_thread_target::stopped_by_sw_breakpoint)
174 (ravenscar_thread_target::stopped_by_hw_breakpoint)
175 (ravenscar_thread_target::stopped_by_watchpoint)
176 (ravenscar_thread_target::stopped_data_address)
177 (ravenscar_thread_target::core_of_thread): Use
178 scoped_restore_current_thread and
179 set_base_thread_from_ravenscar_task.
180
181 2020-08-07 Tom Tromey <tromey@adacore.com>
182
183 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
184
185 2020-08-07 Tom Tromey <tromey@adacore.com>
186
187 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
188 update_inferior_ptid before update_thread_list.
189 (temporarily_change_regcache_ptid): New class.
190 (ravenscar_thread_target::fetch_registers)
191 (ravenscar_thread_target::store_registers)
192 (ravenscar_thread_target::prepare_to_store): Use base thread when
193 forwarding operation.
194
195 2020-08-07 Tom Tromey <tromey@adacore.com>
196
197 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
198 "is_pid" case.
199
200 2020-08-07 Tom Tromey <tromey@adacore.com>
201
202 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
203 New methods.
204 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
205 first.
206 (ravenscar_thread_target::add_thread): Rename from
207 ravenscar_add_thread.
208 (ravenscar_thread_target::update_thread_list): Use a lambda.
209 (ravenscar_thread_target::xfer_partial): New method.
210
211 2020-08-07 Tom Tromey <tromey@adacore.com>
212
213 * ada-lang.h (ada_task_list_iterator_ftype): Now a
214 gdb::function_view.
215 (iterate_over_live_ada_tasks): Change type of argument.
216 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
217 of argument.
218
219 2020-08-07 Tom Tromey <tromey@adacore.com>
220
221 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
222 Remove.
223 (ravenscar_thread_target::extra_thread_info): Remove.
224 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
225 defer to target beneath for non-Ravenscar threads.
226
227 2020-08-07 Tom Tromey <tromey@adacore.com>
228
229 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
230 get_base_thread_from_ravenscar_task>: Now methods.
231 <m_cpu_map>: New member.
232 (ravenscar_thread_target::get_thread_base_cpu): Rename from
233 ravenscar_get_thread_base_cpu. Check m_cpu_map.
234 (ravenscar_thread_target::task_is_currently_active): Update.
235 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
236 Now a method.
237 (ravenscar_thread_target::add_active_thread): Put initial thread
238 into the m_cpu_map.
239
240 2020-08-07 Tom Tromey <tromey@adacore.com>
241
242 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
243 event_ptid.
244
245 2020-08-07 Tom Tromey <tromey@adacore.com>
246
247 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
248 runtime_initialized.
249
250 2020-08-07 Tom Tromey <tromey@adacore.com>
251
252 * ravenscar-thread.c (ravenscar_thread_target): Don't call
253 add_active_thread.
254 (ravenscar_thread_target::add_active_thread): Now public.
255 (ravenscar_inferior_created): Call add_active_thread after pushing
256 the target.
257
258 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
259
260 * regcache.c (ptid_regcache_map): New type.
261 (target_ptid_regcache_map): New type.
262 (regcaches): Change type to target_ptid_regcache_map.
263 (get_thread_arch_aspace_regcache): Update to regcaches' new
264 type.
265 (regcache_thread_ptid_changed): Likewise.
266 (registers_changed_ptid): Likewise.
267 (regcaches_size): Likewise.
268 (regcaches_test): Update.
269 (regcache_thread_ptid_changed): Update.
270 * regcache.h (regcache_up): New type.
271 * gdbsupport/ptid.h (hash_ptid): New struct.
272
273 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
274
275 * observable.h (thread_ptid_changed): Add parameter
276 `process_stratum_target *`.
277 * infrun.c (infrun_thread_ptid_changed): Add parameter
278 `process_stratum_target *` and use it.
279 (selftests): New namespace.
280 (infrun_thread_ptid_changed): New function.
281 (_initialize_infrun): Register selftest.
282 * regcache.c (regcache_thread_ptid_changed): Add parameter
283 `process_stratum_target *` and use it.
284 (regcache_thread_ptid_changed): New function.
285 (_initialize_regcache): Register selftest.
286 * thread.c (thread_change_ptid): Pass target to
287 thread_ptid_changed observable.
288
289 2020-08-06 Caroline Tice <cmtice@google.com>
290
291 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
292 (struct dwp_sections): Update field comments. Add loclists and
293 rnglists fields.
294 (struct virtual_v2_dwo_sections): Rename struct to
295 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
296 size & offset fields for loclists and rnglists.
297 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
298 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
299 skipping dummy type units.
300 (create_dwp_hash_table): Update the large comment above the function to
301 discuss Version 5 DWP files as well, with references. Update all the
302 version checks in the function to check for version 5 as well. Add new
303 section at the end to create dwp hash table for version 5.
304 (create_dwp_v2_section): Rename function to
305 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
306 Add V5 to error message text.
307 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
308 into calls to create_dwp_v2_or_v5_section.
309 (create_dwo_unit_in_dwp_v5): New function.
310 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
311 check for version2; add else clause to handle version 5.
312 (open_and_init_dwo_file): Add code to check dwarf version & only call
313 create_debug_types_hash_table (with sections.types) if version is not 5;
314 else call create_debug_type_hash_table, with sections.info.
315 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
316 version 5.
317 (dwarf2_locate_v5_dwp_sections): New function.
318 (open_and_init_dwp_file): Add else-if clause for version 5 to call
319 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
320
321 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
322
323 * regcache.h (class regcache): Remove friend
324 registers_changed_ptid.
325 <regcache_thread_ptid_changed>: Remove.
326 <regcaches>: Remove.
327 * regcache.c (regcache::regcaches): Rename to...
328 (regcaches): ... this. Make static.
329 (get_thread_arch_aspace_regcache): Update.
330 (regcache::regcache_thread_ptid_changed): Rename to...
331 (regcache_thread_ptid_changed): ... this. Update.
332 (class regcache_access): Remove.
333 (regcaches_test): Update.
334 (_initialize_regcache): Update.
335 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
336 <forward_list>.
337
338 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
339
340 * regcache.h (class regcache) <current_regcache>: Rename to...
341 <regcaches>: ... this. Move doc here.
342 * regcache.c (regcache::current_regcache) Rename to...
343 (regcache::regcaches): ... this. Move doc to header.
344 (get_thread_arch_aspace_regcache): Update.
345 (regcache::regcache_thread_ptid_changed): Update.
346 (registers_changed_ptid): Update.
347 (class regcache_access) <current_regcache_size>: Rename to...
348 <regcaches_size>: ... this.
349 (current_regcache_test): Rename to...
350 (regcaches_test): ... this.
351 (_initialize_regcache): Update.
352
353 2020-08-06 Victor Collod <vcollod@nvidia.com>
354
355 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
356
357 2020-08-05 Kevin Buettner <kevinb@redhat.com>
358
359 * corelow.c (core_target::build_file_mappings): Don't output
360 null pathname in warning.
361
362 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
363
364 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
365 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
366 gdb.dwarf2/dw2-single-line-discriminators.exp,
367 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
368
369 2020-08-05 Tom Tromey <tromey@adacore.com>
370
371 PR rust/26197:
372 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
373 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
374 Fix off-by-one and type size errors in ordinary case.
375
376 2020-08-05 Tom de Vries <tdevries@suse.de>
377
378 * gdbtypes.c (type_not_allocated, type_not_associated): Use
379 "prop->const_val () == 0" instead of "prop->const_val () != 0".
380
381 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
382
383 * frame.h (frame_id_p): Return bool.
384 (frame_id_artificial_p): Return bool.
385 (frame_id_eq): Return bool.
386 (has_stack_frames): Return bool.
387 (get_selected_frame): Fix typo in comment.
388 (get_frame_pc_if_available): Return bool.
389 (get_frame_address_in_block_if_available): Return bool.
390 (get_frame_func_if_available): Return bool.
391 (read_frame_register_unsigned): Return bool.
392 (get_frame_register_bytes): Return bool.
393 (safe_frame_unwind_memory): Return bool.
394 (deprecated_frame_register_read): Return bool.
395 (frame_unwinder_is): Return bool.
396 * frame.c (struct frame_info) <prev_arch::p>: Change type to
397 bool.
398 <this_id::p>: Likewise.
399 <prev_p>: Likewise.
400 (frame_stash_add): Return bool.
401 (get_frame_id): Use bool.
402 (frame_id_build_special) Use bool.
403 (frame_id_build_unavailable_stack): Use bool.
404 (frame_id_build): Use bool.
405 (frame_id_p): Return bool, use true/false instead of 1/0.
406 (frame_id_artificial_p): Likewise.
407 (frame_id_eq): Likewise.
408 (frame_id_inner): Likewise.
409 (get_frame_func_if_available): Likewise.
410 (read_frame_register_unsigned): Likewise.
411 (deprecated_frame_register_read): Likewise.
412 (get_frame_register_bytes): Likewise.
413 (has_stack_frames): Likewise.
414 (inside_main_func): Likewise.
415 (inside_entry_func): Likewise.
416 (get_frame_pc_if_available): Likewise.
417 (get_frame_address_in_block_if_available): Likewise.
418 (frame_unwinder_is): Likewise.
419 (safe_frame_unwind_memory): Likewise.
420 (frame_unwind_arch): Likewise.
421
422 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
423
424 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
425 type to cached_copy_status.
426 (fprintf_frame): Adjust.
427 (get_frame_func_if_available): Adjust.
428 (frame_cleanup_after_sniffer): Adjust.
429
430 2020-08-04 Mark Wielaard <mark@klomp.org>
431
432 * MAINTAINERS (Write After Approval): Update email address.
433
434 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
435
436 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
437 dynamic_prop::const_val.
438
439 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
440
441 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
442 dynamic_prop::kind.
443
444 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
445
446 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
447
448 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
449
450 * configure.tgt: Set gdb_sim for bpf-*-* targets.
451
452 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
453 Jose E. Marchesi <jose.marchesi@oracle.com>
454
455 * configure.tgt: Add entry for bpf-*-*.
456 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
457 (ALLDEPFILES): Add bpf-tdep.c.
458 * bpf-tdep.c: New file.
459 * MAINTAINERS: Add bpf target and maintainer.
460 * NEWS: Mention the support for the new target.
461
462 2020-08-04 Tom de Vries <tdevries@suse.de>
463
464 PR symtab/23270
465 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
466 Error.
467
468 2020-08-03 John Baldwin <jhb@FreeBSD.org>
469
470 * syscalls/freebsd.xml: Regenerate.
471
472 2020-08-03 John Baldwin <jhb@FreeBSD.org>
473
474 * syscalls/update-freebsd.sh: Fix usage and year range.
475
476 2020-08-03 Tom de Vries <tdevries@suse.de>
477
478 PR symtab/26333
479 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
480 DW_LNE_lo_user/DW_LNE_hi_user range.
481
482 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
483
484 PR ada/26318
485 * ada-lang.c (ada_modulus): Return 0 if property is not of const
486 kind.
487
488 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
489
490 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
491
492 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
493
494 * breakpoint.c (set_breakpoint_condition): Update the condition
495 expressions after checking that the input condition string parses
496 successfully and does not contain junk at the end.
497
498 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
499
500 * breakpoint.c (set_breakpoint_condition): Update the
501 condition string after parsing the new condition successfully.
502
503 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
504
505 * proc-api.c (_STRUCTURED_PROC): Don't define.
506 * proc-events.c: Likewise.
507 * proc-flags.c: Likewise.
508 * proc-why.c: Likewise.
509 * procfs.c: Likewise.
510
511 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
512 * configure, config.in: Regenerate.
513
514 2020-07-30 Tom de Vries <tdevries@suse.de>
515
516 PR build/26320
517 * ui-style.h (struct ui_file_style::color): Wrap m_value and
518 m_red/m_green/m_blue in a union.
519
520 2020-07-29 Tom de Vries <tdevries@suse.de>
521
522 PR tdep/26280
523 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
524
525 2020-07-28 Tom Tromey <tromey@adacore.com>
526
527 PR symtab/26270:
528 * symtab.h (find_pc_partial_function_sym): Declare.
529 * cli/cli-cmds.c (disassemble_command): Use
530 find_pc_partial_function_sym. Check asm_demangle.
531 * blockframe.c (cache_pc_function_sym): New global.
532 (cache_pc_function_name): Remove.
533 (clear_pc_function_cache): Update.
534 (find_pc_partial_function_sym): New function, from
535 find_pc_partial_function.
536 (find_pc_partial_function): Rewrite using
537 find_pc_partial_function_sym.
538
539 2020-07-28 Tom Tromey <tromey@adacore.com>
540
541 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
542 help. Add usage.
543
544 2020-07-28 Tom Tromey <tromey@adacore.com>
545
546 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
547 <DW_OP_GNU_variable_value>: Cast to address type.
548
549 2020-07-28 Kamil Rytarowski <n54@gmx.com>
550
551 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
552 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
553 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
554 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
555 (nbsd_get_siginfo_type): New.
556 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
557 (_initialize_nbsd_tdep): New.
558
559 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
560
561 PR binutils/26301
562 * configure: Regenerated.
563
564 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
565
566 PR binutils/26301
567 * configure: Regenerated.
568
569 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
570
571 * python/py-frame.c: Remove 'user-regs.h' include.
572 (frapy_read_register): Rewrite to make use of
573 gdbpy_parse_register_id.
574 * python/py-registers.c (gdbpy_parse_register_id): New function,
575 moved here from python/py-unwind.c. Updated the return type, and
576 also accepts register descriptor objects.
577 * python/py-unwind.c: Remove 'user-regs.h' include.
578 (pyuw_parse_register_id): Moved to python/py-registers.c.
579 (unwind_infopy_add_saved_register): Update to use
580 gdbpy_parse_register_id.
581 (pending_framepy_read_register): Likewise.
582 * python/python-internal.h (gdbpy_parse_register_id): Declare.
583
584 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
585
586 * python/py-registers.c: Add 'user-regs.h' include.
587 (register_descriptor_iter_find): New function.
588 (register_descriptor_iterator_object_methods): New static global
589 methods array.
590 (register_descriptor_iterator_object_type): Add pointer to methods
591 array.
592
593 2020-07-27 John Baldwin <jhb@FreeBSD.org>
594
595 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
596 for all architectures on FreeBSD 11.3 and later.
597
598 2020-07-27 Tom Tromey <tromey@adacore.com>
599
600 * gcore.h (load_corefile): Don't declare.
601
602 2020-07-27 Tom de Vries <tdevries@suse.de>
603
604 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
605 * config.in: Regenerate.
606 * configure: Regenerate.
607
608 2020-07-26 Eli Zaretskii <eliz@gnu.org>
609
610 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
611 ws2tcpip.h. When checking whether socklen_t type is defined, use
612 ws2tcpip.h if it is available and sys/socket.h isn't.
613 * configure: Regenerate.
614 * config.in: Regenerate.
615
616 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
617
618 PR fortran/23051
619 PR fortran/26139
620 * valops.c (value_ind): Pass address to
621 readjust_indirect_value_type.
622 * value.c (readjust_indirect_value_type): Make parameter
623 non-const, and add extra address parameter. Resolve original type
624 before using it.
625 * value.h (readjust_indirect_value_type): Update function
626 signature and comment.
627
628 2020-07-25 Tom de Vries <tdevries@suse.de>
629
630 PR symtab/26243
631 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
632 entries.
633
634 2020-07-24 Aaron Merey <amerey@redhat.com>
635
636 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
637 * configure: Rebuild.
638
639 2020-07-23 Kevin Buettner <kevinb@redhat.com>
640
641 PR corefiles/26294
642 * corelow.c (_initialize_corelow): Add period to help text
643 for "maintenance print core-file-backed-mappings".
644
645 2020-07-23 Pedro Alves <pedro@palves.net>
646
647 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
648 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
649 meanwhile.
650 * frame.c (frame_cache_generation, get_frame_cache_generation):
651 New.
652 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
653 (get_prev_frame_if_no_cycle): On exception, don't touch
654 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
655 * frame.h (get_frame_cache_generation): Declare.
656
657 2020-07-23 Tom de Vries <tdevries@suse.de>
658
659 PR tui/26282
660 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
661 New default constructor.
662
663 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
664
665 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
666 exclude non-statement entries.
667
668 2020-07-22 Kevin Buettner <kevinb@redhat.com>
669
670 * NEWS (New commands): Mention new command
671 "maintenance print core-file-backed-mappings".
672
673 2020-07-22 Kevin Buettner <kevinb@redhat.com>
674
675 * corelow.c (gdbcmd.h): Include.
676 (core_target::info_proc_mappings): New method.
677 (get_current_core_target): New function.
678 (maintenance_print_core_file_backed_mappings): New function.
679 (_initialize_corelow): Add core-file-backed-mappings to
680 "maint print" commands.
681
682 2020-07-22 Kevin Buettner <kevinb@redhat.com>
683
684 * linux-tdep.c (dump_note_entry_p): New function.
685 (linux_dump_mapping_p_ftype): New typedef.
686 (linux_find_memory_regions_full): Add new parameter,
687 should_dump_mapping_p.
688 (linux_find_memory_regions): Adjust call to
689 linux_find_memory_regions_full.
690 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
691 call to linux_find_memory_regions_full.
692
693 2020-07-22 Kevin Buettner <kevinb@redhat.com>
694
695 * corelow.c (solist.h, unordered_map): Include.
696 (class core_target): Add field m_core_file_mappings and
697 method build_file_mappings.
698 (core_target::core_target): Call build_file_mappings.
699 (core_target::~core_target): Free memory associated with
700 m_core_file_mappings.
701 (core_target::build_file_mappings): New method.
702 (core_target::xfer_partial): Use m_core_file_mappings
703 for memory transfers.
704 * linux-tdep.c (linux_read_core_file_mappings): New
705 function.
706 (linux_core_info_proc_mappings): Rewrite to use
707 linux_read_core_file_mappings.
708 (linux_init_abi): Register linux_read_core_file_mappings.
709
710 2020-07-22 Kevin Buettner <kevinb@redhat.com>
711
712 * arch-utils.c (default_read_core_file_mappings): New function.
713 * arch-utils.c (default_read_core_file_mappings): Declare.
714 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
715 * gdbarch.h, gdbarch.c: Regenerate.
716
717 2020-07-22 Kevin Buettner <kevinb@redhat.com>
718
719 PR corefiles/25631
720 * corelow.c (core_target:xfer_partial): Revise
721 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
722 case after first checking the stratum beneath the core
723 target.
724 (has_all_memory): Return true.
725 * target.c (raw_memory_xfer_partial): Revise comment
726 regarding use of has_all_memory.
727
728 2020-07-22 Kevin Buettner <kevinb@redhat.com>
729
730 * exec.h (section_table_xfer_memory): Revise declaration,
731 replacing section name parameter with an optional callback
732 predicate.
733 * exec.c (section_table_xfer_memory): Likewise.
734 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
735 of section_table_xfer_memory.
736
737 2020-07-22 Tom Tromey <tromey@adacore.com>
738
739 * mi/mi-cmd-stack.c (list_args_or_locals): Use
740 lookup_symbol_search_name.
741
742 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
743
744 * python/py-registers.c (gdbpy_register_object_data_init): Remove
745 redundant local variable.
746 (gdbpy_get_register_descriptor): Extract descriptor vector as a
747 reference, not pointer, update code accordingly.
748
749 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
750 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
751
752 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
753 * jit.c (jit_breakpoint_re_set_internal): Use the
754 `skip_jit_symbol_lookup` field.
755
756 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
757 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
758
759 * jit.c (jit_read_descriptor): Define the descriptor address once,
760 use twice.
761 (jit_breakpoint_deleted): Move the declaration of the loop variable
762 `iter` into the loop header.
763 (jit_breakpoint_re_set_internal): Move the declaration of the local
764 variable `objf_data` to the first point of definition.
765 (jit_event_handler): Move the declaration of local variables
766 `code_entry`, `entry_addr`, and `objf` to their first point of use.
767 Rename `objf` to `jited`.
768
769 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
770
771 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
772 Remove.
773 * jit.c (get_jiter_objfile_data): Update.
774
775 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
776 Simon Marchi <simon.marchi@polymtl.ca>
777
778 * jit.c (struct jit_program_space_data): Remove.
779 (jit_program_space_key): Remove.
780 (jiter_objfile_data::~jiter_objfile_data): Remove program space
781 stuff.
782 (get_jit_program_space_data): Remove.
783 (jit_breakpoint_deleted): Iterate on all of the program space's
784 objfiles.
785 (jit_inferior_init): Likewise.
786 (jit_breakpoint_re_set_internal): Likewise. Also change return
787 type to void.
788 (jit_breakpoint_re_set): Pass current_program_space to
789 jit_breakpoint_re_set_internal.
790
791 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
792
793 * jit.h (struct jiter_objfile_data) <cached_code_address,
794 jit_breakpoint>: Move to here from ...
795 * jit.c (jit_program_space_data): ... here.
796 (jiter_objfile_data::~jiter_objfile_data): Update.
797 (jit_breakpoint_deleted): Update.
798 (jit_breakpoint_re_set_internal): Update.
799
800 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
801
802 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
803 checks.
804 (jit_read_descriptor): Remove NULL check.
805 (jit_event_handler): Add an assertion.
806
807 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
808
809 * jit.h (struct jit_objfile_data): Split into...
810 (struct jiter_objfile_data): ... this ...
811 (struct jited_objfile_data): ... and this.
812 * objfiles.h (struct objfile) <jit_data>: Remove.
813 <jiter_data, jited_data>: New fields.
814 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
815 (jiter_objfile_data::~jiter_objfile_data): ... this.
816 (get_jit_objfile_data): Rename to ...
817 (get_jiter_objfile_data): ... this.
818 (add_objfile_entry): Update.
819 (jit_read_descriptor): Use get_jiter_objfile_data.
820 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
821 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
822 (jit_inferior_exit_hook): Use objfile's jited_data field.
823
824 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
825
826 * jit.h: Forward-declare `struct minimal_symbol`.
827 (struct jit_objfile_data): Migrate to here from jit.c; also add a
828 constructor, destructor, and an objfile* field.
829 * jit.c (jit_objfile_data): Remove.
830 (struct jit_objfile_data): Migrate from here to jit.h.
831 (jit_objfile_data::~jit_objfile_data): New destructor
832 implementation with code moved from free_objfile_data.
833 (free_objfile_data): Delete.
834 (get_jit_objfile_data): Update to use the jit_data field of objfile.
835 (jit_find_objf_with_entry_addr): Ditto.
836 (jit_inferior_exit_hook): Ditto.
837 (_initialize_jit): Remove the call to
838 register_objfile_data_with_cleanup.
839 * objfiles.h (struct objfile) <jit_data>: New field.
840
841 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
842
843 * jit.h: Forward-declare `struct objfile`.
844 (jit_event_handler): Add a second parameter, the JITer objfile.
845 * jit.c (jit_read_descriptor): Change the signature to take the
846 JITer objfile as an argument instead of the jit_program_space_data.
847 (jit_inferior_init): Update the call to jit_read_descriptor.
848 (jit_event_handler): Use the new JITer objfile argument when calling
849 jit_read_descriptor.
850 * breakpoint.c (handle_jit_event): Update the call to
851 jit_event_handler to pass the JITer objfile.
852
853 2020-07-21 John Baldwin <jhb@FreeBSD.org>
854
855 * gdbarch.c: Regenerate.
856 * gdbarch.h: Regenerate.
857 * gdbarch.sh (handle_segmentation_fault): Remove method.
858 * infrun.c (handle_segmentation_fault): Remove.
859 (print_signal_received_reason): Remove call to
860 handle_segmentation_fault.
861
862 2020-07-21 John Baldwin <jhb@FreeBSD.org>
863
864 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
865 Rename to sparc64_linux_report_signal_info and add siggnal
866 argument.
867 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
868 instead of sparc64_linux_handle_segmentation_fault.
869
870 2020-07-21 John Baldwin <jhb@FreeBSD.org>
871
872 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
873 i386_linux_report_signal_info instead of
874 i386_linux_handle_segmentation_fault.
875 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
876 to i386_linux_report_signal_info and add siggnal argument.
877 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
878 of i386_linux_handle_segmentation_fault.
879 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
880 to i386_linux_report_signal_info and add siggnal argument.
881
882 2020-07-21 John Baldwin <jhb@FreeBSD.org>
883
884 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
885 hook if present.
886
887 2020-07-21 John Baldwin <jhb@FreeBSD.org>
888
889 * gdbarch.c: Regenerate.
890 * gdbarch.h: Regenerate.
891 * gdbarch.sh (report_signal_info): New method.
892 * infrun.c (print_signal_received_reason): Invoke gdbarch
893 report_signal_info hook if present.
894
895 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
896
897 * python/py-registers.c : Add 'unordered_map' include.
898 (gdbpy_new_reggroup): Renamed to...
899 (gdbpy_get_reggroup): ...this. Update to only create register
900 group descriptors when needed.
901 (gdbpy_reggroup_iter_next): Update.
902
903 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
904
905 * python/py-registers.c (gdbpy_register_object_data): New static
906 global.
907 (gdbpy_register_object_data_init): New function.
908 (gdbpy_new_register_descriptor): Renamed to...
909 (gdbpy_get_register_descriptor): ...this, and update to reuse
910 existing register descriptors where possible.
911 (gdbpy_register_descriptor_iter_next): Update.
912 (gdbpy_initialize_registers): Register new gdbarch data.
913
914 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
915
916 * linux-nat.c (stopped_pids): Make static.
917
918 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
919
920 PR ada/26235
921 * gdbtypes.c (ada_discrete_type_low_bound,
922 ada_discrete_type_high_bound): Handle undefined bounds.
923
924 2020-07-21 Kamil Rytarowski <n54@gmx.com>
925
926 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
927 declaration.
928 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
929 function.
930
931 2020-07-20 John Baldwin <jhb@FreeBSD.org>
932
933 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
934 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
935 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
936 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
937 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
938 method.
939
940 2020-07-20 Ludovic Courtès <ludo@gnu.org>
941
942 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
943 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
944 which are deprecated in Guile 3.0.
945 * configure.ac (try_guile_versions): Add "guile-3.0".
946 * configure (try_guile_versions): Regenerate.
947 * NEWS: Update entry.
948
949 2020-07-20 Ludovic Courtès <ludo@gnu.org>
950 Doug Evans <dje@google.com>
951
952 PR gdb/21104
953 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
954 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
955 USING_GUILE_BEFORE_2_2.
956 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
957 Change type to 'scm_t_port_type *'.
958 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
959 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
960 parameter and honor it. Update callers.
961 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
962 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
963 functions.
964 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
965 USING_GUILE_BEFORE_2_2.
966 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
967 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
968 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
969 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
970 and 'SCM_PORT_TYPE'.
971 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
972 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
973 (gdbscm_memory_port_read, gdbscm_memory_port_write)
974 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
975 [!USING_GUILE_BEFORE_2_2]: New functions.
976 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
977 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
978 'gdbscm_memory_port_read'.
979 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
980 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
981 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
982 function.
983 (ioscm_init_memory_port): Remove.
984 (ioscm_init_memory_port_stream): New function
985 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
986 function.
987 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
988 Return scm_from_uint (0).
989 (gdbscm_set_memory_port_read_buffer_size_x)
990 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
991 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
992 Return scm_from_uint (0).
993 (gdbscm_set_memory_port_write_buffer_size_x)
994 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
995 * configure.ac (try_guile_versions): Add "guile-2.2".
996 * configure: Regenerate.
997 * NEWS: Add entry.
998
999 2020-07-18 Tom Tromey <tom@tromey.com>
1000
1001 * linux-nat.c (linux_multi_process): Remove.
1002 (linux_nat_target::supports_multi_process): Return true.
1003
1004 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1005
1006 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1007 (riscv_lookup_target_description): Return pointer out of
1008 unique_ptr.
1009 * target-descriptions.c (allocate_target_description): Add
1010 comment.
1011 (target_desc_deleter::operator()): Likewise.
1012 * target-descriptions.h (struct target_desc_deleter): Moved to
1013 gdbsupport/tdesc.h.
1014 (target_desc_up): Likewise.
1015
1016 2020-07-17 Tom Tromey <tromey@adacore.com>
1017
1018 * linux-nat.c (linux_nat_target::supports_non_stop)
1019 (linux_nat_target::always_non_stop_p): Use "true".
1020 (linux_nat_target::supports_disable_randomization): Use "true" and
1021 "false".
1022
1023 2020-07-16 Caroline Tice <cmtice@google.com>
1024
1025 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1026 (RNGLIST_HEADER_SIZE64): New constant definition.
1027 (struct dwop_section_names): Add rnglists_dwo.
1028 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1029 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1030 (struct dwo_sections): Add rnglists field.
1031 (read_attribut_reprocess): Add tag parameter.
1032 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1033 (cu_debug_rnglists_section): New function (decl & definition).
1034 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1035 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1036 die whose range is being checked; get rnglist section from
1037 cu_debug_rnglists_section, to get from either objfile or dwo file as
1038 appropriate. Add cases for DW_RLE_base_addressx,
1039 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1040 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1041 test inside if-condition and updating complaint message.
1042 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1043 dwarf2_rnglists_process.
1044 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1045 dwarf2_ranges_process.
1046 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1047 need_ranges_base and update comment appropriately. Also pass die tag
1048 to dwarf2_ranges_read.
1049 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1050 need_ranges_base and update comment appropriately. Also pass die tag
1051 to dwarf2_ranges_process.
1052 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1053 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1054 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1055 need_ranges_base and update comment appropriately. Also pass die tag
1056 to read_attribute_reprocess and dwarf2_ranges_read.
1057 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1058 and update function comment appropriately.
1059 (read_loclist_index): Call read_loclists_rnglists_header instead of
1060 read_loclist_header.
1061 (read_rnglist_index): New function.
1062 (read_attribute_reprocess): Add tag parameter. Add code for
1063 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1064 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1065
1066 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1067
1068 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1069 being resolved.
1070
1071 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1072
1073 * arch-utils.c (show_architecture): Update formatting of messages.
1074
1075 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1076
1077 * gdbtypes.h (struct type) <bounds>: Handle array and string
1078 types.
1079 * ada-lang.c (assign_aggregate): Use type::bounds on
1080 array/string type.
1081 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1082 * c-varobj.c (c_number_of_children): Likewise.
1083 (c_describe_child): Likewise.
1084 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1085 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1086 (f_type_print_base): Likewise.
1087 * f-valprint.c (f77_array_offset_tbl): Likewise.
1088 (f77_get_upperbound): Likewise.
1089 (f77_print_array_1): Likewise.
1090 * guile/scm-type.c (gdbscm_type_range): Likewise.
1091 * m2-typeprint.c (m2_array): Likewise.
1092 (m2_is_long_set_of_type): Likewise.
1093 * m2-valprint.c (get_long_set_bounds): Likewise.
1094 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1095 * python/py-type.c (typy_range): Likewise.
1096 * rust-lang.c (rust_internal_print_type): Likewise.
1097 * type-stack.c (type_stack::follow_types): Likewise.
1098 * valarith.c (value_subscripted_rvalue): Likewise.
1099 * valops.c (value_cast): Likewise.
1100
1101 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1102
1103 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1104 callers to use the equivalent accessor methods.
1105
1106 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1107
1108 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1109 (struct type) <bit_stride>: New method.
1110 (TYPE_BIT_STRIDE): Remove.
1111 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1112
1113 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1114
1115 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1116 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1117 callers to use the equivalent accessor methods instead.
1118
1119 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1120
1121 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1122 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1123 callers to use the equivalent accessor methods instead.
1124
1125 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1126
1127 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1128 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1129 to use dynamic_prop::kind.
1130
1131 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1132
1133 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1134 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1135 to get the bound property's kind and check against
1136 PROP_UNDEFINED.
1137
1138 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1139
1140 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1141 all callers to use type::range_bounds followed by
1142 dynamic_prop::{low,high}.
1143
1144 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1145
1146 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1147 const_val, set_const_val, baton, set_locexpr, set_loclist,
1148 set_addr_offset, variant_parts, set_variant_parts,
1149 original_type, set_original_type>: New methods.
1150 <kind>: Rename to...
1151 <m_kind>: ... this. Update all users to use the new methods
1152 instead.
1153 <data>: Rename to...
1154 <m_data>: ... this. Update all users to use the new methods
1155 instead.
1156
1157 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1158
1159 * gdbtypes.c (get_discrete_bounds): Return failure if
1160 the range type's bounds are not both defined and constant
1161 values.
1162 (get_array_bounds): Update comment. Remove undefined bound check.
1163
1164 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1165
1166 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1167 the type::bounds method directly.
1168
1169 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1170
1171 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1172 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1173 are used to set the range type's bounds to use set_bounds.
1174
1175 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1176
1177 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1178
1179 2020-07-10 Pedro Alves <pedro@palves.net>
1180
1181 * gdbthread.h (inferior_ref): Define.
1182 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1183 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1184 * thread.c
1185 (scoped_restore_current_thread::restore):
1186 Adjust to gdb::ref_ptr.
1187 (scoped_restore_current_thread::~scoped_restore_current_thread):
1188 Remove manual decref handling.
1189 (scoped_restore_current_thread::scoped_restore_current_thread):
1190 Adjust to use
1191 inferior_ref::new_reference/thread_info_ref::new_reference.
1192 Incref the thread before calling get_frame_id instead of after.
1193 Let TARGET_CLOSE_ERROR propagate.
1194
1195 2020-07-10 Pedro Alves <pedro@palves.net>
1196
1197 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1198 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1199 NOT_AVAILABLE_ERROR.
1200 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1201 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1202
1203 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1204 Pedro Alves <pedro@palves.net>
1205
1206 PR gdb/26199
1207 * infrun.c (threads_are_resumed_pending_p): Delete.
1208 (do_target_wait): Remove threads_are_executing and
1209 threads_are_resumed_pending_p checks from the inferior_matches
1210 lambda. Update comments.
1211
1212 2020-07-10 Pedro Alves <pedro@palves.net>
1213
1214 PR gdb/26199
1215 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1216 executing threads.
1217
1218 2020-07-10 Pedro Alves <pedro@palves.net>
1219
1220 PR gdb/26199
1221 * infrun.c (handle_no_resumed): Handle multiple targets.
1222
1223 2020-07-10 Pedro Alves <pedro@palves.net>
1224
1225 PR gdb/26199
1226 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1227 target_is_async_p.
1228
1229 2020-07-10 Pedro Alves <pedro@palves.net>
1230
1231 PR gdb/26199
1232 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1233 threads, not all threads.
1234
1235 2020-07-10 Pedro Alves <pedro@palves.net>
1236
1237 PR gdb/26199
1238 * remote.c (remote_target::open_1): Pass remote target pointer as
1239 data to create_async_event_handler.
1240 (remote_async_inferior_event_handler): Mark async event handler
1241 before returning if the remote target still has either pending
1242 events or unacknowledged notifications.
1243
1244 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1245
1246 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1247 declaration.
1248 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1249 function.
1250
1251 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1252
1253 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1254 inferior_ptid.
1255
1256 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1257
1258 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1259 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1260 AT_FREEBSD_PS_STRINGS.
1261
1262 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1263
1264 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1265 of debugfile path on Windows.
1266
1267 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1268
1269 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1270 argument to 'data'.
1271
1272 2020-07-08 Tom Tromey <tromey@adacore.com>
1273
1274 * ada-lang.c (ada_exception_message_1): Use read_memory.
1275
1276 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1277
1278 PR python/22748
1279 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1280 special handling for inline frames.
1281 * findvar.c (value_of_register_lazy): Skip inline frames when
1282 creating lazy register values.
1283 * frame.c (frame_id_computed_p): Delete definition.
1284 * frame.h (frame_id_computed_p): Delete declaration.
1285
1286 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1287
1288 * NEWS: Mention additions to Python API.
1289 * python/py-arch.c (archpy_register_groups): New function.
1290 (arch_object_methods): Add 'register_groups' method.
1291 * python/py-registers.c (reggroup_iterator_object): New struct.
1292 (reggroup_object): New struct.
1293 (gdbpy_new_reggroup): New function.
1294 (gdbpy_reggroup_to_string): New function.
1295 (gdbpy_reggroup_name): New function.
1296 (gdbpy_reggroup_iter): New function.
1297 (gdbpy_reggroup_iter_next): New function.
1298 (gdbpy_new_reggroup_iterator): New function
1299 (gdbpy_initialize_registers): Register new types.
1300 (reggroup_iterator_object_type): Define new Python type.
1301 (gdbpy_reggroup_getset): New static global.
1302 (reggroup_object_type): Define new Python type.
1303 * python/python-internal.h
1304
1305 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1306
1307 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1308 * python/py-arch.c (archpy_registers): New function.
1309 (arch_object_methods): Add 'registers' method.
1310 * python/py-registers.c: New file.
1311 * python/python-internal.h
1312 (gdbpy_new_register_descriptor_iterator): Declare.
1313 (gdbpy_initialize_registers): Declare.
1314 * python/python.c (do_start_initialization): Call
1315 gdbpy_initialize_registers.
1316 * NEWS: Mention additions to the Python API.
1317
1318 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1319
1320 * NEWS: Mention new Python API method.
1321 * python/py-unwind.c (pending_framepy_architecture): New function.
1322 (pending_frame_object_methods): Add architecture method.
1323
1324 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1325
1326 * gdbarch.c: Regenerate.
1327 * gdbarch.h: Regenerate.
1328 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1329 (gdbarch_data): Use internal_error for the case where
1330 deprecated_set_gdbarch_data was originally needed.
1331 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1332 and use passed in obstack.
1333 (libunwind_frame_set_descr): Should no longer get back NULL from
1334 gdbarch_data.
1335 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1336 type.
1337 * user-regs.c (user_regs_init): Update parameters, and use passed
1338 in obstack.
1339 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1340 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1341
1342 2020-07-06 Tom de Vries <tdevries@suse.de>
1343
1344 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1345 End-Of-Sequence in lte_is_less_than.
1346 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1347 "gdb: Don't reorder line table entries too much when sorting".
1348
1349 2020-07-06 Tom de Vries <tdevries@suse.de>
1350
1351 PR tui/26205
1352 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1353
1354 2020-07-05 Tom de Vries <tdevries@suse.de>
1355
1356 PR build/26187
1357 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1358 std::uncaught_exceptions instead of deprecated
1359 std::uncaught_exception.
1360
1361 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1362
1363 * macroexp.h (macro_stringify): Return
1364 gdb::unique_xmalloc_ptr<char>.
1365 * macroexp.c (macro_stringify): Likewise.
1366 * macrotab.c (fixup_definition): Update.
1367
1368 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1369
1370 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1371 (lex_one_token): Update.
1372 * macroexp.c (struct macro_buffer) <release>: Return
1373 gdb::unique_xmalloc_ptr<char>.
1374 (macro_stringify): Update.
1375 (macro_expand): Update.
1376 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1377 * macroexp.h (macro_expand_next): Likewise.
1378
1379 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1380
1381 * macroexp.h (macro_lookup_ftype): Remove.
1382 (macro_expand, macro_expand_once, macro_expand_next): Remove
1383 lookup function parameters, add scope parameter.
1384 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1385 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1386 * macroscope.h (standard_macro_lookup): Change parameter type
1387 to macro_scope.
1388 * macroscope.c (standard_macro_lookup): Likewise.
1389 * c-exp.y (lex_one_token): Update.
1390 * macrocmd.c (macro_expand_command): Likewise.
1391 (macro_expand_once_command): Likewise.
1392
1393 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1394
1395 * inf-loop.c (inferior_event_handler): Remove client_data param.
1396 * inf-loop.h (inferior_event_handler): Likewise.
1397 * infcmd.c (step_1): Adjust.
1398 * infrun.c (proceed): Adjust.
1399 (fetch_inferior_event): Remove client_data param.
1400 (infrun_async_inferior_event_handler): Adjust.
1401 * infrun.h (fetch_inferior_event): Remove `void *` param.
1402 * linux-nat.c (handle_target_event): Adjust.
1403 * record-btrace.c (record_btrace_handle_async_inferior_event):
1404 Adjust.
1405 * record-full.c (record_full_async_inferior_event_handler):
1406 Adjust.
1407 * remote.c (remote_async_inferior_event_handler): Adjust.
1408
1409 2020-07-01 Tom Tromey <tom@tromey.com>
1410
1411 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1412 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1413
1414 2020-07-01 Tom Tromey <tom@tromey.com>
1415
1416 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1417 tui_gen_win_info.
1418 (tui_win_info::make_window): Merge with
1419 tui_gen_win_info::make_window.
1420 (tui_win_info::make_visible): Move from tui_gen_win_info.
1421 * tui/tui-win.c (tui_win_info::max_width): Move from
1422 tui_gen_win_info.
1423 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1424 type.
1425 <window_factory>: Likewise.
1426 * tui/tui-layout.c (tui_win_info::resize): Move from
1427 tui_gen_win_info.
1428 (make_standard_window): Change return type.
1429 (get_locator_window, tui_get_window_by_name): Likewise.
1430 (tui_layout_window::apply): Remove a cast.
1431 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1432 (struct tui_win_info): Merge with tui_gen_win_info.
1433 (struct tui_gen_win_info): Remove.
1434
1435 2020-07-01 Tom Tromey <tom@tromey.com>
1436
1437 * tui/tui-stack.h (struct tui_locator_window): Derive from
1438 tui_win_info.
1439 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1440 <can_box>: New method.
1441
1442 2020-07-01 Tom Tromey <tom@tromey.com>
1443
1444 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1445
1446 2020-07-01 Tom Tromey <tom@tromey.com>
1447
1448 * tui/tui-regs.c (tui_data_window::display_registers_from)
1449 (tui_data_window::display_registers_from)
1450 (tui_data_window::first_data_item_displayed)
1451 (tui_data_window::delete_data_content_windows): Update.
1452 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1453 Remove.
1454 (tui_data_window::check_register_values): Update.
1455 (tui_data_item_window::rerender): Add parameters. Update.
1456 (tui_data_item_window::refresh_window): Remove.
1457 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1458 virtual.
1459 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1460 tui_gen_win_info.
1461 <refresh_window, max_height, min_height>: Remove.
1462 <rerender>: Add parameters.
1463 <x, y, visible>: New members.
1464 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1465 <m_item_width>: New member.
1466
1467 2020-07-01 Tom Tromey <tom@tromey.com>
1468
1469 * tui/tui-regs.c (tui_data_window::show_register_group)
1470 (tui_data_window::check_register_values): Update.
1471 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1472 from item_no.
1473
1474 2020-07-01 Tom Tromey <tom@tromey.com>
1475
1476 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1477 useless "if".
1478
1479 2020-07-01 Tom Tromey <tom@tromey.com>
1480
1481 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1482 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1483
1484 2020-07-01 Tom Tromey <tom@tromey.com>
1485
1486 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1487 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1488 (struct tui_line_or_address): Move from tui-data.h.
1489 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1490 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1491 (tui_cmd_window, tui_source_window_base, tui_source_window)
1492 (tui_disasm_window): Don't declare.
1493 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1494 to tui-winsource.h.
1495 (SINGLE_KEY): Move to tui-stack.c.
1496
1497 2020-07-01 Tom Tromey <tom@tromey.com>
1498
1499 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1500 std::string.
1501 * tui/tui-regs.c (class tab_expansion_file): New.
1502 (tab_expansion_file::write): New method.
1503 (tui_register_format): Change return type. Use
1504 tab_expansion_file.
1505 (tui_get_register, tui_data_window::display_registers_from)
1506 (tui_data_item_window::rerender): Update.
1507 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1508 * tui/tui-io.c (tui_expand_tabs): Remove.
1509
1510 2020-07-01 Tom Tromey <tom@tromey.com>
1511
1512 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1513
1514 2020-07-01 Fangrui Song <maskray@google.com>
1515
1516 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1517
1518 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1519
1520 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1521 forms for DW_AT_associated and DW_AT_allocated attributes,
1522 which is already checked in function attr_to_dynamic_prop.
1523
1524 2020-06-30 Tom Tromey <tromey@adacore.com>
1525
1526 * dwarf2/read.c (quirk_rust_enum): Correctly call
1527 alloc_rust_variant for default-less enum.
1528
1529 2020-06-30 Tom Tromey <tromey@adacore.com>
1530
1531 PR build/26183:
1532 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1533 gdb::to_string.
1534
1535 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1536
1537 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1538 * gdbarch.h: Re-generate.
1539
1540 2020-06-28 Tom Tromey <tom@tromey.com>
1541
1542 * command.h (cmd_types): Remove.
1543 (cmd_type): Don't declare.
1544 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1545 typedef.
1546 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1547 * cli/cli-decode.c (cmd_type): Remove.
1548
1549 2020-06-27 Pedro Alves <palves@redhat.com>
1550
1551 * fork-child.c (prefork_hook): Adjust.
1552 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1553 Delete.
1554 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1555 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1556 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1557 Remove declarations.
1558 (struct inferior) <set_tty, tty>: New methods.
1559 (struct inferior) <terminal>: Rename to ...
1560 (struct inferior) <m_terminal>: ... this and make private.
1561 * main.c (captured_main_1): Adjust.
1562 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1563 (mi_cmd_inferior_tty_show): Adjust.
1564 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1565 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1566
1567 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1568
1569 * configure.ac: Add --enable-libctf: handle --disable-static
1570 properly.
1571 * acinclude.m4: sinclude ../config/enable.m4.
1572 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1573 (LIBCTF): Substitute in.
1574 (CTF_DEPS): New, likewise.
1575 (CLIBS): libctf needs symbols from libbfd: move earlier.
1576 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1577 flags.
1578 * ctfread.c: Surround in ENABLE_LIBCTF.
1579 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1580 * configure: Regenerate.
1581 * config.in: Likewise.
1582
1583 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1584
1585 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1586
1587 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1588
1589 * inferior.h (struct inferior) <terminal>: Change type to
1590 gdb::unique_xmalloc_ptr<char>.
1591 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1592 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1593 field, adjust to unique pointer.
1594 (get_inferior_io_terminal): Adjust to unique pointer.
1595
1596 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1597
1598 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1599 registers, not just the known core set of registers.
1600
1601 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1602
1603 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1604 fflags, frm, and fcsr registers.
1605 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1606 restore groups.
1607 (riscv_tdesc_unknown_reg): New function.
1608 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1609 tdesc_use_registers.
1610 * riscv-tdep.h (struct gdbarch_tdep): Add
1611 unknown_csrs_first_regnum, unknown_csrs_count,
1612 duplicate_fflags_regnum, duplicate_frm_regnum, and
1613 duplicate_fcsr_regnum fields.
1614
1615 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1616
1617 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1618 callback, use the callback (when not null) to help number unknown
1619 registers.
1620 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1621 (tdesc_use_registers): Add extra parameter to declaration.
1622
1623 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1624
1625 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1626 in the file.
1627 (class riscv_pending_register_alias): Likewise.
1628 (riscv_register_feature::register_info): Change 'required_p' field
1629 to 'required', and change its type. Add 'check' member function.
1630 (riscv_register_feature::register_info::check): Define new member
1631 function.
1632 (riscv_xreg_feature): Change initialisation of 'required' field.
1633 (riscv_freg_feature): Likewise.
1634 (riscv_virtual_feature): Likewise.
1635 (riscv_csr_feature): Likewise.
1636 (riscv_check_tdesc_feature): Take extra parameter, the csr
1637 tdesc_feature, rewrite the function to use the new
1638 riscv_register_feature::register_info::check function.
1639 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1640
1641 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1642
1643 * features/Makefile: Remove all references to the deleted files
1644 below.
1645 * features/riscv/32bit-csr.c: Deleted.
1646 * features/riscv/32bit-csr.xml: Deleted.
1647 * features/riscv/64bit-csr.c: Deleted.
1648 * features/riscv/64bit-csr.xml: Deleted.
1649 * features/riscv/rebuild-csr-xml.sh: Deleted.
1650
1651 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1652
1653 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1654 whitespace error for declaration of names member variable.
1655 (struct riscv_register_feature): Add new prefer_first_name member
1656 variable, and fix whitespace error in declaration of registers.
1657 (riscv_xreg_feature): Initialize prefer_first_name field.
1658 (riscv_freg_feature): Likewise.
1659 (riscv_virtual_feature): Likewise.
1660 (riscv_csr_feature): Likewise.
1661 (riscv_register_name): Expand on comments. Remove register name
1662 modifications for CSR and virtual registers.
1663
1664 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1665
1666 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1667 errors.
1668
1669 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1670
1671 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1672 riscv-opc.h.
1673 (class riscv_pending_register_alias): New class.
1674 (riscv_check_tdesc_feature): Take vector of pending aliases and
1675 populate it as appropriate.
1676 (riscv_setup_register_aliases): Delete.
1677 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1678 to riscv_check_tdesc_feature in all cases. Use the vector to
1679 create the register aliases.
1680
1681 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1682
1683 * sol2-tdep.c (sol2_static_transform_name): Remove.
1684 (sol2_init_abi): Don't register it.
1685 * gdbarch.sh (static_transform_name): Remove.
1686 * gdbarch.c, gdbarch.h: Regenerate.
1687
1688 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1689 gdbarch_static_transform_name.
1690 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1691 * stabsread.c (define_symbol) <'X'>: Remove.
1692 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1693 handling.
1694 <'V'>: Likewise.
1695 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1696 <'S'>: Remove call to gdbarch_static_transform_name.
1697
1698 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1699
1700 * procfs.c (procfs_pre_trace): New function.
1701 (procfs_target::create_inferior): Pass it to fork_inferior.
1702
1703 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1704
1705 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1706 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1707 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1708 sol2-tdep.o, sparc-sol2-tdep.o.
1709 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1710 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1711 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1712 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1713
1714 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1715
1716 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1717 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1718 Call sol2_init_abi.
1719 Remove calls to set_gdbarch_skip_solib_resolver,
1720 set_gdbarch_core_pid_to_str.
1721 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1722 (i386_sol2_static_transform_name): Remove.
1723 (i386_sol2_init_abi): Call sol2_init_abi.
1724 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1725 set_gdbarch_static_transform_name,
1726 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1727 Use sol2_sigtramp_p.
1728 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1729 (sol2_sigtramp_p): New function.
1730 (sol2_static_transform_name): New function.
1731 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1732 (sol2_init_abi): New function.
1733 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1734 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1735 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1736 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1737 (sparc_sol2_static_transform_name): Remove.
1738 (sparc32_sol2_init_abi): Call sol2_init_abi.
1739 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1740 set_gdbarch_static_transform_name,
1741 set_gdbarch_skip_solib_resolver,
1742 set_gdbarch_core_pid_to_str.
1743 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1744 (sparc_sol2_static_transform_name): Remove
1745 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1746 call sol2_sigtramp_p.
1747 (sparc64_sol2_init_abi): Call sol2_init_abi.
1748 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1749 set_gdbarch_static_transform_name,
1750 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1751
1752 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1753
1754 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1755 * exec.c (validate_exec_file): If from_tty, set both
1756 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1757 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1758 and from_tty, unconditionally ask a confirmation.
1759
1760 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1761
1762 * target-descriptions.c (tdesc_architecture_name): Protect against
1763 NULL pointer dereference.
1764 (maint_print_xml_tdesc_cmd): New function.
1765 (_initialize_target_descriptions): Register new 'maint print
1766 xml-tdesc' command and give it the filename completer.
1767 * NEWS: Mention new 'maint print xml-tdesc' command.
1768
1769 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1770
1771 * target-descriptions.c (class tdesc_compatible_info): New class.
1772 (struct target_desc): Change type of compatible vector.
1773 (tdesc_compatible_p): Update for change in type of
1774 target_desc::compatible.
1775 (tdesc_compatible_info_list): New function.
1776 (tdesc_compatible_info_arch_name): New function.
1777 (tdesc_add_compatible): Update for change in type of
1778 target_desc::compatible.
1779 (print_c_tdesc::visit_pre): Likewise.
1780
1781 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1782
1783 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1784 whitespace to underscore.
1785 (maint_print_c_tdesc_cmd): Use fake filename for target
1786 descriptions that came from the target.
1787 (_initialize_target_descriptions): Add filename command completion
1788 for 'maint print c-tdesc'.
1789
1790 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1791
1792 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1793 lines.
1794
1795 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1796
1797 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1798 lines.
1799 (dwarf2_find_location_expression): Likewise.
1800 (call_site_parameter_matches): Likewise.
1801 (dwarf2_compile_expr_to_ax): Likewise.
1802 (disassemble_dwarf_expression): Likewise.
1803 (loclist_describe_location): Likewise.
1804
1805 2020-06-23 Pedro Alves <palves@redhat.com>
1806
1807 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1808 progspace-and-thread.h. Include scoped-mock-context.h instead.
1809 (register_to_value_test): Use scoped_mock_context.
1810 * regcache.c: Include "scoped-mock-context.h".
1811 (cooked_read_test): Don't error out if a target is already pushed.
1812 Use scoped_mock_context. Adjust.
1813 * scoped-mock-context.h: New file.
1814
1815 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1816
1817 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1818 initializer.
1819 (ada_language::is_string_type_p): New member function.
1820 * c-lang.c (c_language_data): Delete la_is_string_type_p
1821 initializer.
1822 (cplus_language_data): Likewise.
1823 (asm_language_data): Likewise.
1824 (minimal_language_data): Likewise.
1825 * d-lang.c (d_language_data): Likewise.
1826 * f-lang.c (f_is_string_type_p): Delete function, implementation
1827 moved to f_language::is_string_type_p.
1828 (f_language_data): Delete la_is_string_type_p initializer.
1829 (f_language::is_string_type_p): New member function,
1830 implementation from f_is_string_type_p.
1831 * go-lang.c (go_is_string_type_p): Delete function, implementation
1832 moved to go_language::is_string_type_p.
1833 (go_language_data): Delete la_is_string_type_p initializer.
1834 (go_language::is_string_type_p): New member function,
1835 implementation from go_is_string_type_p.
1836 * language.c (language_defn::is_string_type_p): Define new member
1837 function.
1838 (default_is_string_type_p): Make static, add comment copied from
1839 header file.
1840 (unknown_language_data): Delete la_is_string_type_p initializer.
1841 (unknown_language::is_string_type_p): New member function.
1842 (auto_language_data): Delete la_is_string_type_p initializer.
1843 (auto_language::is_string_type_p): New member function.
1844 * language.h (language_data): Delete la_is_string_type_p field.
1845 (language_defn::is_string_type_p): Declare new function.
1846 (default_is_string_type_p): Delete desclaration, move comment to
1847 definition.
1848 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1849 moved to m2_language::is_string_type_p.
1850 (m2_language_data): Delete la_is_string_type_p initializer.
1851 (m2_language::is_string_type_p): New member function,
1852 implementation from m2_is_string_type_p.
1853 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1854 initializer.
1855 * opencl-lang.c (opencl_language_data): Likewise.
1856 * p-lang.c (pascal_is_string_type_p): Delete function,
1857 implementation moved to pascal_language::is_string_type_p.
1858 (pascal_language_data): Delete la_is_string_type_p initializer.
1859 (pascal_language::is_string_type_p): New member function,
1860 implementation from pascal_is_string_type_p.
1861 * rust-lang.c (rust_is_string_type_p): Delete function,
1862 implementation moved to rust_language::is_string_type_p.
1863 (rust_language_data): Delete la_is_string_type_p initializer.
1864 (rust_language::is_string_type_p): New member function,
1865 implementation from rust_is_string_type_p.
1866 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1867 is_string_type_p.
1868
1869 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1870
1871 * ada-lang.c (ada_language_data): Delete la_print_typedef
1872 initializer.
1873 (ada_language::print_typedef): New member function.
1874 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1875 (cplus_language_data): Likewise.
1876 (asm_language_data): Likewise.
1877 (minimal_language_data): Likewise.
1878 * d-lang.c (d_language_data): Likewise.
1879 * f-lang.c (f_language_data): Likewise.
1880 (f_language::print_typedef): New member function.
1881 * go-lang.c (go_language_data): Delete la_print_typedef
1882 initializer.
1883 * language.c (language_defn::print_typedef): Define member
1884 function.
1885 (unknown_language_data): Delete la_print_typedef initializer.
1886 (unknown_language::print_typedef): New member function.
1887 (auto_language_data): Delete la_print_typedef initializer.
1888 (auto_language::print_typedef): New member function.
1889 * language.h (language_data): Delete la_print_typedef field.
1890 (language_defn::print_typedef): Declare new member function.
1891 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1892 (default_print_typedef): Delete declaration.
1893 * m2-lang.c (m2_language_data): Delete la_print_typedef
1894 initializer.
1895 (m2_language::print_typedef): New member function.
1896 * objc-lang.c (objc_language_data): Delete la_print_typedef
1897 initializer.
1898 * opencl-lang.c (opencl_language_data): Likewise.
1899 * p-lang.c (pascal_language_data): Likewise.
1900 (pascal_language::print_typedef): New member function.
1901 * rust-lang.c (rust_print_typedef): Delete function,
1902 implementation moved to rust_language::print_typedef.
1903 (rust_language): Delete la_print_typedef initializer.
1904 (rust_language::print_typedef): New member function,
1905 implementation from rust_print_typedef.
1906 * typeprint.c (default_print_typedef): Delete.
1907
1908 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1909
1910 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1911 (ada_language::printstr): New member function.
1912 * c-lang.c (c_language_data): Delete la_printstr initializer.
1913 (cplus_language_data): Likewise.
1914 (asm_language_data): Likewise.
1915 (minimal_language_data): Likewise.
1916 * d-lang.c (d_language_data): Likewise.
1917 * f-lang.c (f_printstr): Rename to f_language::printstr.
1918 (f_language_data): Delete la_printstr initializer.
1919 (f_language::printstr): New member function, implementation from
1920 f_printstr.
1921 * go-lang.c (go_language_data): Delete la_printstr initializer.
1922 * language.c (language_defn::printstr): Define new member
1923 function.
1924 (unk_lang_printstr): Delete.
1925 (unknown_language_data): Delete la_printstr initializer.
1926 (unknown_language::printstr): New member function.
1927 (auto_language_data): Delete la_printstr initializer.
1928 (auto_language::printstr): New member function.
1929 * language.h (language_data): Delete la_printstr field.
1930 (language_defn::printstr): Declare new member function.
1931 (LA_PRINT_STRING): Update call to printstr.
1932 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1933 (m2_language_data): Delete la_printstr initializer.
1934 (m2_language::printstr): New member function, implementation from
1935 m2_printstr.
1936 * objc-lang.c (objc_language_data): Delete la_printstr
1937 initializer.
1938 * opencl-lang.c (opencl_language_data): Likewise.
1939 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1940 (pascal_language_data): Delete la_printstr initializer.
1941 (pascal_language::printstr): New member function, implementation
1942 from pascal_printstr.
1943 * p-lang.h (pascal_printstr): Delete declaration.
1944 * rust-lang.c (rust_printstr): Update header comment.
1945 (rust_language_data): Delete la_printstr initializer.
1946 (rust_language::printstr): New member function.
1947
1948 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1949
1950 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1951 (ada_language::printchar): New member function.
1952 * c-lang.c (c_language_data): Delete la_printchar initializer.
1953 (cplus_language_data): Likewise.
1954 (asm_language_data): Likewise.
1955 (minimal_language_data): Likewise.
1956 * d-lang.c (d_language_data): Likewise.
1957 * f-lang.c (f_printchar): Rename to f_language::printchar.
1958 (f_language_data): Delete la_printchar initializer.
1959 (f_language::printchar): New member function, implementation from
1960 f_printchar.
1961 * go-lang.c (go_language_data): Delete la_printchar initializer.
1962 * language.c (unk_lang_printchar): Delete.
1963 (language_defn::printchar): Define new member function.
1964 (unknown_language_data): Delete la_printchar initializer.
1965 (unknown_language::printchar): New member function.
1966 (auto_language_data): Delete la_printchar initializer.
1967 (auto_language::printchar): New member function.
1968 * language.h (language_data): Delete la_printchar field.
1969 (language_defn::printchar): Declare new member function.
1970 (LA_PRINT_CHAR): Update call to printchar.
1971 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1972 (m2_language::printchar): New member function.
1973 * objc-lang.c (objc_language_data): Delete la_printchar
1974 initializer.
1975 * opencl-lang.c (opencl_language_data): Likewise.
1976 * p-lang.c (pascal_language_data): Delete la_printchar
1977 initializer.
1978 (pascal_language::printchar): New member function.
1979 * rust-lang.c (rust_printchar): Rename to
1980 rust_language::printchar.
1981 (rust_language_data): Delete la_printchar initializer.
1982 (rust_language::printchar): New member function, implementation
1983 from rust_printchar.
1984
1985 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1986
1987 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1988 (ada_language_data): Delete la_emitchar initializer.
1989 (ada_language::emitchar): New member function, implementation from
1990 emit_char.
1991 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1992 (cplus_language_data): Likewise.
1993 (asm_language_data): Likewise.
1994 (minimal_language_data): Likewise.
1995 * d-lang.c (d_language_data): Likewise.
1996 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1997 (f_language_data): Delete la_emitchar initializer.
1998 (f_language::emitchar): New member function, implementation from
1999 f_emit_char.
2000 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2001 * language.c (unk_lang_emit_char): Delete.
2002 (language_defn::emitchar): New member function definition.
2003 (unknown_language_data): Delete la_emitchar initializer.
2004 (unknown_language::emitchar): New member function.
2005 (auto_language_data): Delete la_emitchar initializer.
2006 (auto_language::emitchar): New member function.
2007 * language.h (language_data): Delete la_emitchar field.
2008 (language_defn::emitchar): New member field declaration.
2009 (LA_EMIT_CHAR): Update call to emitchar.
2010 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2011 (m2_language_data): Delete la_emitchar initializer.
2012 (m2_language::emitchar): New member function, implementation from
2013 m2_emit_char.
2014 * objc-lang.c (objc_language_data): Delete la_emitchar
2015 initializer.
2016 * opencl-lang.c (opencl_language_data): Likewise.
2017 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2018 (pascal_language_data): Delete la_emitchar initializer.
2019 (pascal_language::emitchar): New member function, implementation
2020 from pascal_emit_char.
2021 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2022 (rust_language_data): Delete la_emitchar initializer.
2023 (rust_language::emitchar): New member function, implementation
2024 from rust_emitchar.
2025
2026 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2027
2028 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2029 (ada_language_data): Delete la_post_parser initializer.
2030 (ada_language::post_parser): New member function.
2031 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2032 (cplus_language_data): Likewise.
2033 (asm_language_data): Likewise.
2034 (minimal_language_data): Likewise.
2035 * d-lang.c (d_language_data): Likewise.
2036 * f-lang.c (f_language_data): Likewise.
2037 * go-lang.c (go_language_data): Likewise.
2038 * language.c (unknown_language_data): Likewise.
2039 (auto_language_data): Likewise.
2040 * language.h (language_data): Delete la_post_parser field.
2041 (language_defn::post_parser): New member function.
2042 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2043 * objc-lang.c (objc_language_data): Likewise.
2044 * opencl-lang.c (opencl_language_data): Likewise.
2045 * p-lang.c (pascal_language_data): Likewise.
2046 * parse.c (parse_exp_in_context): Update call to post_parser.
2047 (null_post_parser): Delete definition.
2048 * parser-defs.h (null_post_parser): Delete declaration.
2049 * rust-lang.c (rust_language_data): Delete la_post_parser
2050 initializer.
2051
2052 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2053
2054 * ada-lang.c (parse): Rename to ada_language::parser.
2055 (ada_language_data): Delete la_parser initializer.
2056 (ada_language::parser): New member function, implementation from
2057 parse.
2058 * c-lang.c (c_language_data): Delete la_parser initializer.
2059 (cplus_language_data): Likewise.
2060 (asm_language_data): Likewise.
2061 (minimal_language_data): Likewise.
2062 * d-lang.c (d_language_data): Likewise.
2063 (d_language::parser): New member function.
2064 * f-lang.c (f_language_data): Delete la_parser initializer.
2065 (f_language::parser): New member function.
2066 * go-lang.c (go_language_data): Delete la_parser initializer.
2067 (go_language::parser): New member function.
2068 * language.c (unk_lang_parser): Delete.
2069 (language_defn::parser): Define new member function.
2070 (unknown_language_data): Delete la_parser initializer.
2071 (unknown_language::parser): New member function.
2072 (auto_language_data): Delete la_parser initializer.
2073 (auto_language::parser): New member function.
2074 * language.h (language_data): Delete la_parser field.
2075 (language_defn::parser): Declare new member function.
2076 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2077 (m2_language::parser): New member function.
2078 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2079 * opencl-lang.c (opencl_language_data): Likewise.
2080 * p-lang.c (pascal_language_data): Likewise.
2081 (pascal_language::parser): New member function.
2082 * parse.c (parse_exp_in_context): Update call to parser.
2083 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2084 (rust_language::parser): New member function.
2085
2086 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2087
2088 * top.c (print_gdb_configuration): Print --with-python-libdir
2089 configuration value.
2090
2091 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2092
2093 * NEWS: Mention change to the alias command.
2094
2095 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2096
2097 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2098 (alias_command_completer)
2099 (make_alias_options_def_group): New functions.
2100 (alias_opts, alias_option_defs): New struct and array.
2101 (alias_usage_error): Update usage.
2102 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2103 Use option framework.
2104 (_initialize_cli_cmds): Update alias command help.
2105 Update aliases command help.
2106 (show_user):
2107 Add NULL for new default_args lookup_cmd argument.
2108 (valid_command_p): Rename to validate_aliased_command.
2109 Add NULL for new default_args lookup_cmd argument. Verify that the
2110 aliased_command has no default args.
2111 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2112 (lookup_cmd_1, lookup_cmd): New argument default_args.
2113 (add_alias_cmd):
2114 Add NULL for new default_args lookup_cmd argument.
2115 (print_help_for_command): Show default args under the layout
2116 alias some_alias = some_aliased_cmd some_alias_default_arg.
2117 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2118 xfree default_args in destructor.
2119 * cli/cli-script.c (process_next_line, do_define_command):
2120 Add NULL for new default_args lookup_cmd argument.
2121 * command.h: Declare new default_args argument in lookup_cmd
2122 and lookup_cmd_1.
2123 * completer.c (complete_line_internal_1):
2124 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2125 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2126 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2127 Likewise.
2128 * infcmd.c (_initialize_infcmd): Likewise.
2129 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2130 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2131 * python/py-param.c (add_setshow_generic): Likewise.
2132 * remote.c (_initialize_remote): Likewise.
2133 * top.c (execute_command): Prepend default_args if command has some.
2134 (set_verbose):
2135 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2136 * tracepoint.c (validate_actionline, encode_actions_1):
2137 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2138
2139 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2140
2141 * jit.c (jit_read_descriptor): Use bool as the return type.
2142 (jit_breakpoint_re_set_internal): Use bool as the return type.
2143 Invert the return value logic; return true if the jit breakpoint
2144 has been successfully initialized.
2145 (jit_inferior_init): Update the call to
2146 jit_breakpoint_re_set_internal.
2147
2148 2020-06-22 Pedro Alves <palves@redhat.com>
2149
2150 PR gdb/25939
2151 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2152 Use the current inferior instead. Don't return
2153 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2154 wait again.
2155 * sol-thread.c (sol_thread_target::wait): Don't reference
2156 inferior_ptid.
2157 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2158 (sol_update_thread_list_callback): Use the current inferior's pid
2159 instead of inferior_ptid.
2160
2161 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2162
2163 * procfs.c: Cleanup many comments.
2164
2165 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2166 (AFTER_WATCHFLAG): Replace by value.
2167
2168 (MAIN_PROC_NAME_FORMAT): Inline ...
2169 (create_procinfo): ... here.
2170
2171 (procfs_debug_inferior): Remove SYS_exec handling.
2172 (syscall_is_exec): Likewise.
2173 (procfs_set_exec_trap): Likewise.
2174
2175 (syscall_is_lwp_exit): Inline in callers.
2176 (syscall_is_exit): Likewise.
2177 (syscall_is_exec): Likewise.
2178 (syscall_is_lwp_create): Likewise.
2179
2180 (invalidate_cache): Remove #if 0 code.
2181
2182 (make_signal_thread_runnable): Remove.
2183 (procfs_target::resume): Remove #if 0 code.
2184
2185 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2186
2187 PR gdb/25939
2188 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2189 call ...
2190 (procfs_target::create_inferior): ... here.
2191
2192 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2193
2194 * exec.c (validate_exec_file): Ensure the build-id is up to
2195 date by calling reopen_exec_file (that checks file timestamp
2196 to decide to re-read the file).
2197
2198 2020-06-18 Pedro Alves <palves@redhat.com>
2199
2200 PR gdb/25412
2201 * gdbthread.h (delete_thread, delete_thread_silent)
2202 (find_thread_ptid): Update comments.
2203 * thread.c (current_thread_): New global.
2204 (is_current_thread): Move higher, and reimplement.
2205 (inferior_thread): Reimplement.
2206 (set_thread_exited): Use bool. Add assertions.
2207 (add_thread_silent): Simplify thread-reuse handling by always
2208 calling delete_thread.
2209 (delete_thread): Remove intro comment.
2210 (find_thread_ptid): Skip exited threads.
2211 (switch_to_thread_no_regs): Write to current_thread_.
2212 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2213 INFERIOR_PTID. Clear current_thread_.
2214
2215 2020-06-18 Pedro Alves <palves@redhat.com>
2216
2217 * aix-thread.c (pd_update): Use switch_to_thread.
2218
2219 2020-06-18 Pedro Alves <palves@redhat.com>
2220
2221 * ravenscar-thread.c (ravenscar_thread_target): Update.
2222 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2223 (ravenscar_thread_target::add_active_thread): ... this. Don't
2224 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2225 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2226
2227 2020-06-18 Pedro Alves <palves@redhat.com>
2228
2229 * nat/windows-nat.c (current_windows_thread): Remove.
2230 * nat/windows-nat.h (current_windows_thread): Remove.
2231 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2232 Adjust.
2233 (display_selectors): Adjust to fetch the current
2234 windows_thread_info based on inferior_ptid.
2235 (fake_create_process): No longer write to current_windows_thread.
2236 (windows_nat_target::get_windows_debug_event):
2237 Don't set inferior_ptid or current_windows_thread.
2238 (windows_nat_target::wait): Adjust to not rely on
2239 current_windows_thread.
2240 (do_initial_windows_stuff): Now a method of windows_nat_target.
2241 Switch to the last_ptid thread.
2242 (windows_nat_target::attach): Adjust.
2243 (windows_nat_target::detach): Use switch_to_no_thread instead of
2244 writing to inferior_ptid directly.
2245 (windows_nat_target::create_inferior): Adjust.
2246
2247 2020-06-18 Pedro Alves <palves@redhat.com>
2248
2249 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2250
2251 2020-06-18 Pedro Alves <palves@redhat.com>
2252
2253 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2254 after creating it, instead of writing to inferior_ptid. Don't
2255 write to inferior_ptid.
2256
2257 2020-06-18 Pedro Alves <palves@redhat.com>
2258
2259 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2260
2261 2020-06-18 Pedro Alves <palves@redhat.com>
2262
2263 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2264 it, instead of writing to inferior_ptid.
2265
2266 2020-06-18 Pedro Alves <palves@redhat.com>
2267
2268 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2269 to inferior_ptid.
2270
2271 2020-06-18 Pedro Alves <palves@redhat.com>
2272
2273 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2274 instead of writing to inferior_ptid directly.
2275
2276 2020-06-18 Pedro Alves <palves@redhat.com>
2277
2278 * corelow.c (core_target::close): Use switch_to_no_thread instead
2279 of writing to inferior_ptid directly.
2280 (add_to_thread_list, core_target_open): Use switch_to_thread
2281 instead of writing to inferior_ptid directly.
2282
2283 2020-06-18 Pedro Alves <palves@redhat.com>
2284
2285 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2286 inferior_ptid.
2287 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2288 inferior_ptid.
2289 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2290 inferior_ptid directly.
2291 (darwin_nat_target::init_thread_list): Switch to thread, instead
2292 of writing to inferior_ptid.
2293 (darwin_nat_target::attach): Don't write to inferior_ptid.
2294 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2295
2296 2020-06-18 Pedro Alves <palves@redhat.com>
2297
2298 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2299 thread.
2300 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2301 Instead use switch_to_thread.
2302 (gnu_nat_target::detach): Use switch_to_no_thread
2303 instead of writing to inferior_ptid directly. Used passed-in
2304 inferior instead of looking up the inferior by pid.
2305
2306 2020-06-18 Pedro Alves <palves@redhat.com>
2307
2308 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2309 inferior_ptid.
2310
2311 2020-06-18 Pedro Alves <palves@redhat.com>
2312
2313 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2314 inferior_ptid.
2315 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2316 thread.
2317 (nto_procfs_target::detach): Avoid referencing
2318 inferior_ptid. Use switch_to_no_thread instead of writing to
2319 inferior_ptid directly.
2320 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2321 instead of writing to inferior_ptid directly.
2322 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2323 to thread.
2324
2325 2020-06-18 Pedro Alves <palves@redhat.com>
2326
2327 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2328 after creating it, instead of writing to inferior_ptid.
2329 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2330 to inferior_ptid directly.
2331 (gdbsim_target::wait): Don't write to inferior_ptid.
2332
2333 2020-06-18 Pedro Alves <palves@redhat.com>
2334
2335 * remote.c (remote_target::remote_notice_new_inferior): Use
2336 switch_to_thread instead of writing to inferior_ptid directly.
2337 (remote_target::add_current_inferior_and_thread): Use
2338 switch_to_no_thread instead of writing to inferior_ptid directly.
2339 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2340 and switch_to_thread instead of using set_current_inferior or
2341 writing to inferior_ptid directly.
2342
2343 2020-06-18 Pedro Alves <palves@redhat.com>
2344
2345 * tracectf.c (ctf_target_open): Switch to added thread instead of
2346 writing to inferior_ptid directly.
2347 (ctf_target::close): Use switch_to_no_thread instead of writing to
2348 inferior_ptid directly.
2349
2350 2020-06-18 Pedro Alves <palves@redhat.com>
2351
2352 * tracefile-tfile.c (tfile_target_open): Don't write to
2353 inferior_ptid directly, instead switch to added thread.
2354 (tfile_target::close): Use switch_to_no_thread instead of writing
2355 to inferior_ptid directly.
2356
2357 2020-06-18 Pedro Alves <palves@redhat.com>
2358
2359 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2360 (procfs_target::detach): Use switch_to_no_thread
2361 instead of writing to inferior_ptid directly.
2362 (do_attach): Change return type to void. Switch to the added
2363 thread.
2364 (procfs_target::create_inferior): Switch to the added thread.
2365 (procfs_do_thread_registers): Don't write to inferior_ptid.
2366
2367 2020-06-18 Pedro Alves <palves@redhat.com>
2368
2369 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2370 of writing to inferior_ptid.
2371 (scoped_restore_exited_inferior): Delete.
2372 (handle_vfork_child_exec_or_exit): Simplify using
2373 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2374 instead of writing to inferior_ptid.
2375 (THREAD_STOPPED_BY): Delete.
2376 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2377 (thread_stopped_by_hw_breakpoint): Delete.
2378 (save_waitstatus): Use
2379 scoped_restore_current_thread+switch_to_thread, and call
2380 target_stopped_by_watchpoint instead of
2381 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2382 instead of thread_stopped_by_sw_breakpoint, and
2383 target_stopped_by_hw_breakpoint instead of
2384 thread_stopped_by_hw_breakpoint.
2385 (handle_inferior_event)
2386 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2387 inferior_ptid directly, nor
2388 set_current_inferior/set_current_program_space. Use
2389 switch_to_thread / switch_to_inferior_no_thread instead.
2390
2391 2020-06-18 Pedro Alves <palves@redhat.com>
2392
2393 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2394 instead of writing to inferior_ptid.
2395
2396 2020-06-18 Pedro Alves <palves@redhat.com>
2397
2398 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2399 added thread.
2400 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2401 to the added thread.
2402 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2403 instead of writing to inferior_ptid.
2404
2405 2020-06-18 Pedro Alves <palves@redhat.com>
2406
2407 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2408 (register_to_value_test): Mock a program_space too. Heap-allocate
2409 the address space. Don't write to inferior_ptid. Use
2410 switch_to_thread instead.
2411
2412 2020-06-18 Pedro Alves <palves@redhat.com>
2413
2414 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2415 Delete.
2416 (find_signalled_thread()): New, factored out from
2417 linux_make_corefile_notes and adjusted to handle exited threads.
2418 (linux_make_corefile_notes): Adjust to use the new
2419 find_signalled_thread.
2420
2421 2020-06-18 Pedro Alves <palves@redhat.com>
2422
2423 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2424 of saving/restoring inferior_ptid.
2425
2426 2020-06-17 Tom Tromey <tom@tromey.com>
2427
2428 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2429 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2430 declare.
2431 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2432
2433 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2434
2435 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2436 of partial symtabs.
2437
2438 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2439
2440 * regformats/reg-arm.dat: Remove.
2441 * regformats/reg-bfin.dat: Remove.
2442 * regformats/reg-cris.dat: Remove.
2443 * regformats/reg-crisv32.dat: Remove.
2444 * regformats/reg-m32r.dat: Remove.
2445 * regformats/reg-tilegx.dat: Remove.
2446 * regformats/reg-tilegx32.dat: Remove.
2447
2448 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2449
2450 * features/Makefile (WHICH): Remove arm files.
2451 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2452 * regformats/arm/arm-with-neon.dat: Remove.
2453 * regformats/arm/arm-with-vfpv2.dat: Remove.
2454 * regformats/arm/arm-with-vfpv3.dat: Remove.
2455
2456 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2457
2458 * features/Makefile (XMLTOC): Remove rx.xml.
2459
2460 2020-06-17 Pedro Alves <palves@redhat.com>
2461
2462 * gdbthread.h (thread_control_state) <trap_expected> Update
2463 comments.
2464
2465 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2466
2467 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2468 ada_language::lookup_symbol_nonlocal.
2469 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2470 (ada_language::lookup_symbol_nonlocal): New member function,
2471 implementation from ada_lookup_symbol_nonlocal.
2472 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2473 initializer.
2474 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2475 initializer.
2476 (cplus_language::lookup_symbol_nonlocal): New member function.
2477 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2478 (minimal_language_data) Likewise.
2479 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2480 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2481 initializer.
2482 (d_language::lookup_symbol_nonlocal): New member function.
2483 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2484 initializer.
2485 (f_language::lookup_symbol_nonlocal): New member function.
2486 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2487 initializer.
2488 * language.c (unknown_language_data): Likewise.
2489 (auto_language_data): Likewise.
2490 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2491 field.
2492 (language_defn::lookup_symbol_nonlocal): New member function.
2493 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2494 initializer.
2495 * objc-lang.c (objc_language_data): Likewise.
2496 * opencl-lang.c (opencl_language_data): Likewise.
2497 * p-lang.c (pascal_language_data): Likewise.
2498 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2499 rust_language::lookup_symbol_nonlocal.
2500 (rust_language_data): Delete la_lookup_symbol_nonlocal
2501 initializer.
2502 (rust_language::lookup_symbol_nonlocal): New member function,
2503 implementation from rust_lookup_symbol_nonlocal.
2504 * symtab.c (lookup_symbol_aux): Update call to
2505 lookup_symbol_nonlocal.
2506 (basic_lookup_symbol_nonlocal): Rename to...
2507 (language_defn::lookup_symbol_nonlocal): ...this, and update
2508 header comment. Remove language_defn parameter, and replace with
2509 uses of `this'.
2510 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2511
2512 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2513
2514 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2515 initializer.
2516 (ada_language::value_print_inner): New member function.
2517 * c-lang.c (c_language_data): Delete la_value_print_inner
2518 initializer.
2519 (cplus_language_data): Likewise.
2520 (asm_language_data): Likewise.
2521 (minimal_language_data): Likewise.
2522 * d-lang.c (d_language_data): Likewise.
2523 (d_language::value_print_inner): New member function.
2524 * f-lang.c (f_language_data): Delete la_value_print_inner
2525 initializer.
2526 (f_language::value_print_inner): New member function.
2527 * f-lang.h (f_value_print_innner): Rename to...
2528 (f_value_print_inner): ...this (note spelling of 'inner').
2529 * f-valprint.c (f_value_print_innner): Rename to...
2530 (f_value_print_inner): ...this (note spelling of 'inner').
2531 * go-lang.c (go_language_data): Delete la_value_print_inner
2532 initializer.
2533 (go_language::value_print_inner): New member function.
2534 * language.c (language_defn::value_print_inner): Define new member
2535 function.
2536 (unk_lang_value_print_inner): Delete.
2537 (unknown_language_data): Delete la_value_print_inner initializer.
2538 (unknown_language::value_print_inner): New member function.
2539 (auto_language_data): Delete la_value_print_inner initializer.
2540 (auto_language::value_print_inner): New member function.
2541 * language.h (language_data): Delete la_value_print_inner field.
2542 (language_defn::value_print_inner): Delcare new member function.
2543 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2544 initializer.
2545 (m2_language::value_print_inner): New member function.
2546 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2547 initializer.
2548 * opencl-lang.c (opencl_language_data): Likewise.
2549 * p-lang.c (pascal_language_data): Likewise.
2550 (pascal_language::value_print_inner): New member function.
2551 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2552 initializer.
2553 (rust_language::value_print_inner): New member function.
2554 * valprint.c (do_val_print): Update call to value_print_inner.
2555
2556 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2557
2558 * ada-lang.c (ada_language_data): Delete la_value_print
2559 initializer.
2560 (ada_language::value_print): New member function.
2561 * c-lang.c (c_language_data): Delete la_value_print initializer.
2562 (cplus_language_data): Likewise.
2563 (asm_language_data): Likewise.
2564 (minimal_language_data): Likewise.
2565 * d-lang.c (d_language_data): Likewise.
2566 * f-lang.c (f_language_data): Likewise.
2567 * go-lang.c (go_language_data): Likewise.
2568 * language.c (unk_lang_value_print): Delete.
2569 (language_defn::value_print): Define new member function.
2570 (unknown_language_data): Delete la_value_print initializer.
2571 (unknown_language::value_print): New member function.
2572 (auto_language_data): Delete la_value_print initializer.
2573 (auto_language::value_print): New member function.
2574 * language.h (language_data): Delete la_value_print field.
2575 (language_defn::value_print): Declare new member function.
2576 (LA_VALUE_PRINT): Update call to value_print.
2577 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2578 * objc-lang.c (objc_language_data): Likewise.
2579 * opencl-lang.c (opencl_language_data): Likewise.
2580 * p-lang.c (pascal_language_data): Likewise.
2581 (pascal_language::value_print): New member function.
2582 * rust-lang.c (rust_language_data): Delete la_value_print
2583 initializer.
2584
2585 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2586
2587 * ada-lang.c (ada_watch_location_expression): Rename to
2588 ada_language::watch_location_expression.
2589 (ada_language_data): Delete la_watch_location_expression
2590 initializer.
2591 (ada_language::watch_location_expression): New member function,
2592 implementation from ada_watch_location_expression.
2593 * breakpoint.c (watch_command_1): Update call to
2594 watch_location_expression.
2595 * c-lang.c (c_watch_location_expression): Rename to
2596 language_defn::watch_location_expression.
2597 (c_language_data): Delete la_watch_location_expression
2598 initializer.
2599 (cplus_language_data): Likewise.
2600 (asm_language_data): Likewise.
2601 (minimal_language_data): Likewise.
2602 * c-lang.h (c_watch_location_expression): Delete declaration.
2603 * d-lang.c (d_language_data): Delete la_watch_location_expression
2604 initializer.
2605 * f-lang.c (f_language_data): Likewise.
2606 * go-lang.c (go_language_data): Likewise.
2607 * language.c (language_defn::watch_location_expression): Member
2608 function implementation from c_watch_location_expression.
2609 (unknown_language_data): Delete la_watch_location_expression
2610 initializer.
2611 (auto_language_data): Likewise.
2612 * language.h (language_data): Delete la_watch_location_expression
2613 field.
2614 (language_defn::watch_location_expression): Declare new member
2615 function.
2616 * m2-lang.c (m2_language_data): Delete
2617 la_watch_location_expression initializer.
2618 * objc-lang.c (objc_language_data): Likewise.
2619 * opencl-lang.c (opencl_language_data): Likewise.
2620 * p-lang.c (pascal_language_data): Likewise.
2621 * rust-lang.c (rust_watch_location_expression): Rename to
2622 rust_language::watch_location_expression.
2623 (rust_language_data): Delete la_watch_location_expression
2624 initializer.
2625 (rust_language::watch_location_expression): New member function,
2626 implementation from rust_watch_location_expression.
2627
2628 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2629
2630 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2631 ada_language::collect_symbol_completion_matches.
2632 (ada_language_data): Delete la_collect_symbol_completion_matches
2633 initializer.
2634 (ada_language::collect_symbol_completion_matches): New member
2635 function, implementation from
2636 ada_collect_symbol_completion_matches.
2637 * c-lang.c (c_language_data): Delete
2638 la_collect_symbol_completion_matches initializer.
2639 (cplus_language_data): Likewise.
2640 (asm_language_data): Likewise.
2641 (minimal_language_data): Likewise.
2642 * d-lang.c (d_language_data): Likewise.
2643 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2644 f_language::collect_symbol_completion_matches.
2645 (f_language_data): Delete la_collect_symbol_completion_matches
2646 initializer.
2647 (f_language::collect_symbol_completion_matches) New member
2648 function, implementation from f_collect_symbol_completion_matches.
2649 * go-lang.c (go_language_data): Delete
2650 la_collect_symbol_completion_matches initializer.
2651 * language.c (unknown_language_data): Likewise.
2652 (auto_language_data): Likewise.
2653 * language.h (language_data): Delete
2654 la_collect_symbol_completion_matches field.
2655 (language_defn::collect_symbol_completion_matches): New member
2656 function.
2657 * m2-lang.c (m2_language_data): Delete
2658 la_collect_symbol_completion_matches initializer.
2659 * objc-lang.c (objc_language_data): Likewise.
2660 * opencl-lang.c (opencl_language_data): Likewise.
2661 * p-lang.c (pascal_language_data): Likewise.
2662 * rust-lang.c (rust_language_data): Likewise.
2663 * symtab.c (default_collect_symbol_completion_matches): Delete.
2664 (collect_symbol_completion_matches): Update call to
2665 collect_symbol_completion_matches.
2666 (collect_symbol_completion_matches_type): Likewise.
2667 * symtab.h (default_collect_symbol_completion_matches): Delete
2668 declaration.
2669
2670 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2671
2672 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2673 (ada_language_data): Delete la_word_break_characters initializer.
2674 (ada_language::word_break_characters): New member function.
2675 * c-lang.c (c_language_data): Delete la_word_break_characters
2676 initializer.
2677 (cplus_language_data): Likewise.
2678 (asm_language_data): Likewise.
2679 (minimal_language_data): Likewise.
2680 * completer.c: Update global comment.
2681 (advance_to_expression_complete_word_point): Update call to
2682 word_break_characters.
2683 (complete_files_symbols): Likewise.
2684 (complete_line_internal_1): Likewise.
2685 (default_completer_handle_brkchars): Likewise.
2686 (skip_quoted_chars): Likewise.
2687 * d-lang.c (d_language_data): Delete la_word_break_characters
2688 initializer.
2689 * f-lang.c (f_word_break_characters): Delete.
2690 (f_language_data): Delete la_word_break_characters initializer.
2691 (f_language::word_break_characters): New member function.
2692 * go-lang.c (go_language_data): Delete la_word_break_characters
2693 initializer.
2694 * language.c (unknown_language_data): Likewise.
2695 (auto_language_data): Likewise.
2696 * language.h (default_word_break_characters): Move declaration to
2697 earlier in the file.
2698 (language_data): Delete la_word_break_characters field.
2699 (language_defn::word_break_characters): New member function.
2700 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2701 initializer.
2702 * objc-lang.c (objc_language_data): Likewise.
2703 * opencl-lang.c (opencl_language_data): Likewise.
2704 * p-lang.c (pascal_language_data): Likewise.
2705 * rust-lang.c (rust_language_data): Likewise.
2706
2707 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2708
2709 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2710 (ada_language_data): Delete la_get_symbol_name_matcher
2711 initializer.
2712 (language_defn::get_symbol_name_matcher_inner): New member
2713 function.
2714 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2715 initializer.
2716 (cplus_language_data): Likewise.
2717 (cplus_language::get_symbol_name_matcher_inner): New member
2718 function.
2719 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2720 (minimal_language_data): Likewise.
2721 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2722 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2723 initializer.
2724 * dictionary.c (iter_match_first_hashed): Update call to
2725 get_symbol_name_matcher.
2726 (iter_match_next_hashed): Likewise.
2727 (iter_match_next_linear): Likewise.
2728 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2729 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2730 initializer.
2731 (f_language::get_symbol_name_matcher_inner): New member function.
2732 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2733 initializer.
2734 * language.c (default_symbol_name_matcher): Update header comment,
2735 make static.
2736 (language_defn::get_symbol_name_matcher): New definition.
2737 (language_defn::get_symbol_name_matcher_inner): Likewise.
2738 (get_symbol_name_matcher): Delete.
2739 (unknown_language_data): Delete la_get_symbol_name_matcher
2740 initializer.
2741 (auto_language_data): Likewise.
2742 * language.h (language_data): Delete la_get_symbol_name_matcher
2743 field.
2744 (language_defn::get_symbol_name_matcher): New member function.
2745 (language_defn::get_symbol_name_matcher_inner): Likewise.
2746 (default_symbol_name_matcher): Delete declaration.
2747 * linespec.c (find_methods): Update call to
2748 get_symbol_name_matcher.
2749 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2750 initializer.
2751 * minsyms.c (lookup_minimal_symbol): Update call to
2752 get_symbol_name_matcher.
2753 (iterate_over_minimal_symbols): Likewise.
2754 * objc-lang.c (objc_language_data): Delete
2755 la_get_symbol_name_matcher initializer.
2756 * opencl-lang.c (opencl_language_data): Likewise.
2757 * p-lang.c (pascal_language_data): Likewise.
2758 * psymtab.c (psymbol_name_matches): Update call to
2759 get_symbol_name_matcher.
2760 * rust-lang.c (rust_language_data): Delete
2761 la_get_symbol_name_matcher initializer.
2762 * symtab.c (symbol_matches_search_name): Update call to
2763 get_symbol_name_matcher.
2764 (compare_symbol_name): Likewise.
2765
2766 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2767
2768 * ada-lang.c (ada_language_data): Delete la_compute_program
2769 initializer.
2770 * c-lang.c (c_language_data): Likewise.
2771 (c_language::compute_program): New member function.
2772 (cplus_language_data): Delete la_compute_program initializer.
2773 (cplus_language::compute_program): New member function.
2774 (asm_language_data): Delete la_compute_program initializer.
2775 (minimal_language_data): Likewise.
2776 * c-lang.h (c_compute_program): Update comment.
2777 (cplus_compute_program): Likewise.
2778 * compile/compile-c-support.c (c_compute_program): Likewise.
2779 (cplus_compute_program): Likewise.
2780 * compile/compile.c (compile_to_object): Update call to
2781 la_compute_program.
2782 * d-lang.c (d_language_data): Delete la_compute_program
2783 initializer.
2784 * f-lang.c (f_language_data): Likewise.
2785 * go-lang.c (go_language_data): Likewise.
2786 * language.c (unknown_language_data): Likewise.
2787 (auto_language_data): Likewise.
2788 * language.h (language_data): Delete la_compute_program field.
2789 (language_defn::compute_program): New member function.
2790 * m2-lang.c (m2_language_data): Delete la_compute_program
2791 initializer.
2792 * objc-lang.c (objc_language_data): Likewise.
2793 * opencl-lang.c (opencl_language_data): Likewise.
2794 * p-lang.c (pascal_language_data): Likewise.
2795 * rust-lang.c (rust_language_data): Likewise.
2796
2797 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2798
2799 * ada-lang.c (ada_language_data) Delete
2800 la_class_name_from_physname initializer.
2801 * c-lang.c (c_language_data): Likewise.
2802 (cplus_language_data): Likewise.
2803 (cplus_language::class_name_from_physname): New member function.
2804 (asm_language_data): Delete la_class_name_from_physname
2805 initializer.
2806 (minimal_language_data): Likewise.
2807 * d-lang.c (d_language_data): Likewise.
2808 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2809 method on language_defn class.
2810 (guess_full_die_structure_name): Likewise.
2811 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2812 initializer.
2813 * go-lang.c (go_language_data): Likewise.
2814 * language.c (language_class_name_from_physname): Delete.
2815 (unk_lang_class_name): Delete.
2816 (unknown_language_data): Delete la_class_name_from_physname
2817 initializer.
2818 (auto_language_data): Likewise.
2819 * language.h (language_data): Delete la_class_name_from_physname
2820 field.
2821 (language_defn::class_name_from_physname): New function.
2822 (language_class_name_from_physname): Delete declaration.
2823 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2824 initializer.
2825 * objc-lang.c (objc_language_data): Likewise.
2826 * opencl-lang.c (opencl_language_data): Likewise.
2827 * p-lang.c (pascal_language_data): Likewise.
2828 * rust-lang.c (rust_language_data): Likewise.
2829
2830 2020-06-16 Tom Tromey <tom@tromey.com>
2831
2832 * tui/tui-data.h (STATUS_NAME): New macro.
2833 * tui/tui-layout.c (tui_remove_some_windows)
2834 (initialize_known_windows, tui_register_window)
2835 (tui_layout_split::remove_windows, initialize_layouts)
2836 (tui_new_layout_command): Don't use hard-coded window names.
2837
2838 2020-06-16 Tom Tromey <tom@tromey.com>
2839
2840 PR tui/25348:
2841 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2842 tui_initialize_readline. Only run once. Call rl_initialize.
2843 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2844 tui_initialize_readline.
2845 * tui/tui-io.c (tui_setup_io): Call
2846 tui_ensure_readline_initialized.
2847 * tui/tui-interp.c (tui_interp::init): Update.
2848
2849 2020-06-16 Tom Tromey <tom@tromey.com>
2850
2851 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2852 Also preserve the status window.
2853
2854 2020-06-16 Tom Tromey <tom@tromey.com>
2855
2856 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2857 where m_window==nullptr.
2858
2859 2020-06-15 Tom Tromey <tromey@adacore.com>
2860
2861 * windows-nat.c (windows_nat::handle_output_debug_string):
2862 Update.
2863 (windows_nat::handle_ms_vc_exception): Update.
2864 * target.h (target_read_string): Change API.
2865 * target.c (target_read_string): Change API.
2866 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2867 Update.
2868 * solib-frv.c (frv_current_sos): Update.
2869 * solib-dsbt.c (dsbt_current_sos): Update.
2870 * solib-darwin.c (darwin_current_sos): Update.
2871 * linux-thread-db.c (inferior_has_bug): Update.
2872 * expprint.c (print_subexp_standard): Update.
2873 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2874 (ada_exception_message_1): Update.
2875
2876 2020-06-15 Tom Tromey <tromey@adacore.com>
2877
2878 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2879
2880 2020-06-15 Tom Tromey <tromey@adacore.com>
2881
2882 * valprint.c (read_string): Update comment.
2883 * target.c (MIN): Remove.
2884 (target_read_string): Rewrite.
2885
2886 2020-06-15 Tom Tromey <tromey@adacore.com>
2887
2888 * corefile.c (read_memory_string): Remove.
2889 * ada-valprint.c (ada_value_print_ptr): Update.
2890 * ada-lang.h (ada_tag_name): Change return type.
2891 * ada-lang.c (type_from_tag): Update.
2892 (ada_tag_name_from_tsd): Change return type. Use
2893 target_read_string.
2894 (ada_tag_name): Likewise.
2895 * gdbcore.h (read_memory_string): Don't declare.
2896
2897 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2898
2899 * symtab.c (rbreak_command): Ignore Windows drive colon.
2900
2901 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2902
2903 * NEWS: Mention removed GDBserver host support.
2904
2905 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2906
2907 * features/riscv/rebuild-csr-xml.sh: Updated.
2908
2909 2020-06-11 Tom Tromey <tom@tromey.com>
2910
2911 PR gdb/18318:
2912 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2913
2914 2020-06-09 Jonny Grant <jg@jguk.org>
2915 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2916
2917 * main.c (captured_main_1): Don't print new line after help.
2918 (print_gdb_help): add mailing list and IRC channel information
2919 to --help. Add new lines between items in the footer. Remove
2920 quotes around bug url.
2921
2922 2020-06-11 Keith Seitz <keiths@redhat.com>
2923
2924 PR gdb/21356
2925 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2926 Resolve typedefs for type length calculations.
2927
2928 2020-06-10 Tom de Vries <tdevries@suse.de>
2929
2930 PR ada/24713
2931 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2932 (write_psymbols): Enable .gdb_index for ada.
2933 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2934 ada.
2935
2936 2020-06-10 Tom de Vries <tdevries@suse.de>
2937
2938 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2939 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2940 namei" instead of "const char *name" argument.
2941 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2942 dw2_symtab_iter_init.
2943
2944 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2945
2946 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2947 to use type::field and field::type instead.
2948
2949 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2950
2951 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2952 to use field::type instead.
2953
2954 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2955
2956 * gdbtypes.h (struct field) <type, set_type>: New methods.
2957 Rename `type` field to...
2958 <m_type>: ... this. Change references throughout to use type or
2959 set_type methods.
2960 (FIELD_TYPE): Use field::type. Change call sites that modify
2961 the field's type to use field::set_type instead.
2962
2963 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2964
2965 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2966 to use type::index_type instead.
2967
2968 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2969
2970 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2971 methods.
2972 (TYPE_INDEX_TYPE): Use type::index_type.
2973 * gdbtypes.c (create_array_type_with_stride): Likewise.
2974
2975 2020-06-07 Tom Tromey <tom@tromey.com>
2976
2977 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2978 parameter.
2979 (generic_value_print): Update.
2980
2981 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2982
2983 Revert commit 982a38f60b0.
2984 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2985
2986 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2987
2988 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2989 avoid use after free.
2990
2991 2020-06-05 Tom de Vries <tdevries@suse.de>
2992
2993 * NEWS: Fix typos.
2994
2995 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2996
2997 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2998 the per_bfd object.
2999 (dwarf2_read_debug_names): Likewise.
3000 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3001 object when re-using a per_bfd object with an index.
3002
3003 2020-06-03 Tom de Vries <tdevries@suse.de>
3004
3005 PR symtab/26046
3006 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3007 children for C++.
3008 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3009 DW_TAG_subprogram.
3010
3011 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3012
3013 * ada-lang.c (ada_language_data): Delete skip_trampoline
3014 initializer.
3015 * c-lang.c (c_language_data): Likewise.
3016 (cplus_language_data): Likewise.
3017 (cplus_language::skip_trampoline): New member function.
3018 (asm_language_data): Delete skip_trampoline initializer.
3019 (minimal_language_data): Likewise.
3020 * d-lang.c (d_language_data): Likewise.
3021 * f-lang.c (f_language_data): Likewise.
3022 * go-lang.c (go_language_data): Likewise.
3023 * language.c (unk_lang_trampoline): Delete function.
3024 (skip_language_trampoline): Update.
3025 (unknown_language_data): Delete skip_trampoline initializer.
3026 (auto_language_data): Likewise.
3027 * language.h (language_data): Delete skip_trampoline field.
3028 (language_defn::skip_trampoline): New function.
3029 * m2-lang.c (m2_language_data): Delete skip_trampoline
3030 initializer.
3031 * objc-lang.c (objc_skip_trampoline): Delete function, move
3032 implementation to objc_language::skip_trampoline.
3033 (objc_language_data): Delete skip_trampoline initializer.
3034 (objc_language::skip_trampoline): New member function with
3035 implementation from objc_skip_trampoline.
3036 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3037 initializer.
3038 * p-lang.c (pascal_language_data): Likewise.
3039 * rust-lang.c (rust_language_data): Likewise.
3040
3041 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3042
3043 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3044 (ada_language::demangle): New member function.
3045 * c-lang.c (c_language_data): Delete la_demangle initializer.
3046 (cplus_language_data): Delete la_demangle initializer.
3047 (cplus_language::demangle): New member function.
3048 (asm_language_data): Delete la_demangle initializer.
3049 (minimal_language_data): Delete la_demangle initializer.
3050 * d-lang.c (d_language_data): Delete la_demangle initializer.
3051 (d_language::demangle): New member function.
3052 * f-lang.c (f_language_data): Delete la_demangle initializer.
3053 (f_language::demangle): New member function.
3054 * go-lang.c (go_language_data): Delete la_demangle initializer.
3055 (go_language::demangle): New member function.
3056 * language.c (language_demangle): Update.
3057 (unk_lang_demangle): Delete.
3058 (unknown_language_data): Delete la_demangle initializer.
3059 (unknown_language::demangle): New member function.
3060 (auto_language_data): Delete la_demangle initializer.
3061 (auto_language::demangle): New member function.
3062 * language.h (language_data): Delete la_demangle field.
3063 (language_defn::demangle): New function.
3064 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3065 * objc-lang.c (objc_language_data): Delete la_demangle
3066 initializer.
3067 (objc_language::demangle): New member function.
3068 * opencl-lang.c (opencl_language_data): Delete la_demangle
3069 initializer.
3070 * p-lang.c (pascal_language_data): Likewise.
3071 * rust-lang.c (rust_language_data): Likewise.
3072 (rust_language::demangle): New member function.
3073
3074 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3075
3076 * ada-lang.c (ada_language_data): Delete la_print_type
3077 initializer.
3078 (ada_language::print_type): New member function.
3079 * c-lang.c (c_language_data): Delete la_print_type initializer.
3080 (c_language::print_type): New member function.
3081 (cplus_language_data): Delete la_print_type initializer.
3082 (cplus_language::print_type): New member function.
3083 (asm_language_data): Delete la_print_type initializer.
3084 (asm_language::print_type): New member function.
3085 (minimal_language_data): Delete la_print_type initializer.
3086 (minimal_language::print_type): New member function.
3087 * d-lang.c (d_language_data): Delete la_print_type initializer.
3088 (d_language::print_type): New member function.
3089 * f-lang.c (f_language_data): Delete la_print_type initializer.
3090 (f_language::print_type): New member function.
3091 * go-lang.c (go_language_data): Delete la_print_type initializer.
3092 (go_language::print_type): New member function.
3093 * language.c (unk_lang_print_type): Delete.
3094 (unknown_language_data): Delete la_print_type initializer.
3095 (unknown_language::print_type): New member function.
3096 (auto_language_data): Delete la_print_type initializer.
3097 (auto_language::print_type): New member function.
3098 * language.h (language_data): Delete la_print_type field.
3099 (language_defn::print_type): New function.
3100 (LA_PRINT_TYPE): Update.
3101 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3102 (m2_language::print_type): New member function.
3103 * objc-lang.c (objc_language_data): Delete la_print_type
3104 initializer.
3105 (objc_language::print_type): New member function.
3106 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3107 to opencl_language::print_type.
3108 (opencl_language_data): Delete la_print_type initializer.
3109 (opencl_language::print_type): New member function, implementation
3110 from opencl_print_type.
3111 * p-lang.c (pascal_language_data): Delete la_print_type
3112 initializer.
3113 (pascal_language::print_type): New member function.
3114 * rust-lang.c (rust_print_type): Delete, implementation moved to
3115 rust_language::print_type.
3116 (rust_language_data): Delete la_print_type initializer.
3117 (rust_language::print_type): New member function, implementation
3118 from rust_print_type.
3119
3120 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3121
3122 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3123 implementation moves to...
3124 (ada_language::sniff_from_mangled_name): ...here. Update return
3125 type.
3126 (ada_language_data): Delete la_sniff_from_mangled_name
3127 initializer.
3128 * c-lang.c (c_language_data): Likewise.
3129 (cplus_language_data): Likewise.
3130 (cplus_language::sniff_from_mangled_name): New member function,
3131 implementation taken from gdb_sniff_from_mangled_name.
3132 (asm_language_data): Delete la_sniff_from_mangled_name
3133 initializer.
3134 (minimal_language_data): Likewise.
3135 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3136 implementation moves to cplus_language::sniff_from_mangled_name.
3137 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3138 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3139 moves to...
3140 (d_language::sniff_from_mangled_name): ...here.
3141 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3142 * f-lang.c (f_language_data): Likewise.
3143 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3144 moves to...
3145 (go_language::sniff_from_mangled_name): ...here.
3146 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3147 * language.c (language_sniff_from_mangled_name): Delete.
3148 (unknown_language_data): Delete la_sniff_from_mangled_name
3149 initializer.
3150 (auto_language_data): Likewise.
3151 * language.h (language_data): Delete la_sniff_from_mangled_name
3152 field.
3153 (language_defn::sniff_from_mangled_name): New function.
3154 (language_sniff_from_mangled_name): Delete declaration.
3155 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3156 field.
3157 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3158 implementation moves to...
3159 (objc_language::sniff_from_mangled_name): ...here.
3160 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3161 * opencl-lang.c (opencl_language_data): Likewise.
3162 * p-lang.c (pascal_language_data): Likewise.
3163 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3164 implementation moves to...
3165 (rust_language::sniff_from_mangled_name): ...here.
3166 (rust_language_data): Delete la_sniff_from_mangled_name
3167 initializer.
3168 * symtab.c (symbol_find_demangled_name): Call
3169 sniff_from_mangled_name member function.
3170
3171 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3172
3173 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3174 initializer.
3175 * c-lang.c (c_language_data): Likewise.
3176 (cplus_language_data): Likewise.
3177 (cplus_language::search_name_hash): New member function.
3178 (asm_language_data): Delete la_search_name_hash initializer.
3179 (minimal_language_data): Likewise.
3180 * d-lang.c (d_language_data): Likewise.
3181 * dictionary.c (default_search_name_hash): Rename to...
3182 (language_defn::search_name_hash): ...this.
3183 * f-lang.c (f_language_data): Likewise.
3184 (f_language::search_name_hash): New member function.
3185 * go-lang.c (go_language_data): Delete la_search_name_hash
3186 initializer.
3187 * language.c (unknown_language_data): Likewise.
3188 (auto_language_data): Likewise.
3189 * language.h (struct language_data): Delete la_search_name_hash
3190 field.
3191 (language_defn::search_name_hash): Declare new member function.
3192 (default_search_name_hash): Delete declaration.
3193 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3194 initializer.
3195 * objc-lang.c (objc_language_data): Likewise.
3196 * opencl-lang.c (opencl_language_data): Likewise.
3197 * p-lang.c (pascal_language_data): Likewise.
3198 * rust-lang.c (rust_language_data): Likewise.
3199 * symtab.c (search_name_hash): Update call.
3200
3201 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3202
3203 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3204 initializer.
3205 * c-lang.c (class compile_instance): Declare.
3206 (c_language_data): Delete la_get_compile_instance initializer.
3207 (c_language::get_compile_instance): New member function.
3208 (cplus_language_data): Delete la_get_compile_instance initializer.
3209 (cplus_language::get_compile_instance): New member function.
3210 (asm_language_data): Delete la_get_compile_instance initializer.
3211 (minimal_language_data): Likewise.
3212 * c-lang.h (c_get_compile_context): Update comment.
3213 (cplus_get_compile_context): Update comment.
3214 * compile/compile.c (compile_to_object): Update calls, don't rely
3215 on function pointer being NULL.
3216 * d-lang.c (d_language_data): Delete la_get_compile_instance
3217 initializer.
3218 * f-lang.c (f_language_data): Likewise.
3219 * go-lang.c (go_language_data): Likewise.
3220 * language.c (unknown_language_data): Likewise.
3221 (auto_language_data): Likewise.
3222 * language.h (language_data): Delete la_get_compile_instance field.
3223 (language_defn::get_compile_instance): New member function.
3224 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3225 initializer.
3226 * objc-lang.c (objc_language_data): Likewise.
3227 * opencl-lang.c (opencl_language_data): Likewise.
3228 * p-lang.c (pascal_language_data): Likewise.
3229 * rust-lang.c (rust_language_data): Likewise.
3230
3231 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3232
3233 * ada-lang.c (ada_add_all_symbols): Update comment.
3234 (ada_iterate_over_symbols): Delete, move implementation to...
3235 (ada_language::iterate_over_symbols): ...here, a new member
3236 function, rewrite to use range based for loop.
3237 (ada_language_data): Delete la_iterate_over_symbols initializer.
3238 * c-lang.c (c_language_data): Likewise.
3239 (cplus_language_data): Likewise.
3240 (asm_language_data): Likewise.
3241 (minimal_language_data): Likewise.
3242 * d-lang.c (d_language_data): Likewise.
3243 * f-lang.c (f_language_data): Likewise.
3244 * go-lang.c (go_language_data): Likewise.
3245 * language.c (unknown_language_data): Likewise.
3246 (auto_language_data): Likewise.
3247 * language.h (language_data): Delete la_iterate_over_symbols field.
3248 (language_defn::iterate_over_symbols): New member function.
3249 (LA_ITERATE_OVER_SYMBOLS): Update.
3250 * linespec.c (iterate_over_all_matching_symtabs): Update.
3251 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3252 initializer.
3253 * objc-lang.c (objc_language_data): Likewise.
3254 * opencl-lang.c (opencl_language_data): Likewise.
3255 * p-lang.c (pascal_language_data): Likewise.
3256 * rust-lang.c (rust_language_data): Likewise.
3257
3258 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3259
3260 * ada-lang.c (ada_language_data): Delete
3261 la_lookup_transparent_type initializer.
3262 * c-lang.c (c_language_data): Likewise.
3263 (cplus_language_data): Likewise.
3264 (cplus_language::lookup_transparent_type): New member function.
3265 (asm_language_data): Delete la_lookup_transparent_type
3266 initializer.
3267 (minimal_language_data): Likewise.
3268 * d-lang.c (d_language_data): Likewise.
3269 * f-lang.c (f_language_data): Likewise.
3270 * go-lang.c (go_language_data): Likewise.
3271 * language.c (unknown_language_data): Likewise.
3272 (auto_language_data): Likewise.
3273 * language.h (struct language_data): Delete
3274 la_lookup_transparent_type field.
3275 (language_defn::lookup_transparent_type): New member function.
3276 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3277 initializer.
3278 * objc-lang.c (objc_language_data): Likewise.
3279 * opencl-lang.c (opencl_language_data): Likewise.
3280 * p-lang.c (pascal_language_data): Likewise.
3281 * rust-lang.c (rust_language_data): Likewise.
3282 * symtab.c (symbol_matches_domain): Update call.
3283
3284 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3285
3286 * ada-lang.c (ada_language_arch_info): Delete function, move
3287 implementation to...
3288 (ada_language::language_arch_info): ...here, a new member
3289 function.
3290 (ada_language_data): Delete la_language_arch_info.
3291 * c-lang.c (c_language_data): Likewise.
3292 (c_language::language_arch_info): New member function.
3293 (cplus_language_arch_info): Delete function, move
3294 implementation to...
3295 (cplus_language::language_arch_info): ...here, a new member
3296 function.
3297 (cplus_language_data): Delete la_language_arch_info.
3298 (asm_language_data): Likewise.
3299 (asm_language::language_arch_info): New member function.
3300 (minimal_language_data): Delete la_language_arch_info.
3301 (minimal_language::language_arch_info): New member function.
3302 * d-lang.c (d_language_arch_info): Delete function, move
3303 implementation to...
3304 (d_language::language_arch_info): ...here, a new member
3305 function.
3306 (d_language_data): Delete la_language_arch_info.
3307 * f-lang.c (f_language_arch_info): Delete function, move
3308 implementation to...
3309 (f_language::language_arch_info): ...here, a new member
3310 function.
3311 (f_language_data): Delete la_language_arch_info.
3312 * go-lang.c (go_language_arch_info): Delete function, move
3313 implementation to...
3314 (go_language::language_arch_info): ...here, a new member
3315 function.
3316 (go_language_data): Delete la_language_arch_info.
3317 * language.c (unknown_language_data): Likewise.
3318 (unknown_language::language_arch_info): New member function.
3319 (auto_language_data): Delete la_language_arch_info.
3320 (auto_language::language_arch_info): New member function.
3321 (language_gdbarch_post_init): Update call to
3322 la_language_arch_info.
3323 * language.h (language_data): Delete la_language_arch_info
3324 function pointer.
3325 (language_defn::language_arch_info): New function.
3326 * m2-lang.c (m2_language_arch_info): Delete function, move
3327 implementation to...
3328 (m2_language::language_arch_info): ...here, a new member
3329 function.
3330 (m2_language_data): Delete la_language_arch_info.
3331 * objc-lang.c (objc_language_arch_info): Delete function, move
3332 implementation to...
3333 (objc_language::language_arch_info): ...here, a new member
3334 function.
3335 (objc_language_data): Delete la_language_arch_info.
3336 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3337 implementation to...
3338 (opencl_language::language_arch_info): ...here, a new member
3339 function.
3340 (opencl_language_data): Delete la_language_arch_info.
3341 * p-lang.c (pascal_language_arch_info): Delete function, move
3342 implementation to...
3343 (pascal_language::language_arch_info): ...here, a new member
3344 function.
3345 (pascal_language_data): Delete la_language_arch_info.
3346 * rust-lang.c (rust_language_arch_info): Delete function, move
3347 implementation to...
3348 (rust_language::language_arch_info): ...here, a new member
3349 function.
3350 (rust_language_data): Delete la_language_arch_info.
3351
3352 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3353
3354 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3355 initializer.
3356 * c-lang.c (c_language_data): Likewise.
3357 (cplus_language_data): Likewise.
3358 (cplus_language::pass_by_reference_info): New method.
3359 (asm_language_data): Delete la_pass_by_reference initializer.
3360 (minimal_language_data): Likewise.
3361 * cp-abi.c (cp_pass_by_reference): Remove use of
3362 default_pass_by_reference.
3363 * d-lang.c (d_language_data): Likewise.
3364 * f-lang.c (f_language_data): Likewise.
3365 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3366 default_pass_by_reference.
3367 * go-lang.c (go_language_data): Likewise.
3368 * language.c (language_pass_by_reference): Update.
3369 (default_pass_by_reference): Delete.
3370 (unknown_language_data): Delete la_pass_by_reference
3371 initializer.
3372 (auto_language_data): Likewise.
3373 * language.h (struct language_data): Delete la_pass_by_reference
3374 field.
3375 (language_defn::pass_by_reference_info): New member function.
3376 (default_pass_by_reference): Delete declaration.
3377 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3378 initializer.
3379 * objc-lang.c (objc_language_data): Likewise.
3380 * opencl-lang.c (opencl_language_data): Likewise.
3381 * p-lang.c (pascal_language_data): Likewise.
3382 * rust-lang.c (rust_language_data): Likewise.
3383
3384 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3385
3386 * ada-lang.c (ada_read_var_value): Delete function, move
3387 implementation to...
3388 (ada_language::read_var_value): ...here.
3389 (ada_language_data): Delete la_read_var_value initializer.
3390 * c-lang.c (c_language_data): Likewise.
3391 (cplus_language_data): Likewise.
3392 (minimal_language_data): Likewise.
3393 * d-lang.c (d_language_data): Likewise.
3394 * f-lang.c (f_language_data): Likewise.
3395 * findvar.c (default_read_var_value): Rename to...
3396 (language_defn::read_var_value): ...this.
3397 * findvar.c (read_var_value): Update header comment, and change to
3398 call member function instead of function pointer.
3399 * go-lang.c (go_language_data): Likewise.
3400 * language.c (unknown_language_data): Delete la_read_var_value
3401 initializer.
3402 (auto_language_data): Likewise.
3403 * language.h (struct language_data): Delete la_read_var_value
3404 field.
3405 (language_defn::read_var_value): New member function.
3406 (default_read_var_value): Delete declaration.
3407 * m2-lang.c (m2_language_data): Delete la_read_var_value
3408 initializer.
3409 * objc-lang.c (objc_language_data): Likewise.
3410 * opencl-lang.c (opencl_language_data): Likewise.
3411 * p-lang.c (pascal_language_data): Likewise.
3412 * rust-lang.c (rust_language_data): Likewise.
3413 * value.h (default_read_var_value): Delete declaration.
3414
3415 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3416
3417 * ada-lang.c (ada_print_array_index): Delete function, move
3418 implementation to...
3419 (ada_language::print_array_index): ...here.
3420 (ada_language_data): Delete la_print_array_index initializer.
3421 * c-lang.c (c_language_data): Likewise.
3422 (cplus_language_data): Likewise.
3423 (minimal_language_data): Likewise.
3424 * d-lang.c (d_language_data): Likewise.
3425 * f-lang.c (f_language_data): Likewise.
3426 * go-lang.c (go_language_data): Likewise.
3427 * language.c (default_print_array_index): Delete function, move
3428 implementation to...
3429 (language_defn::print_array_index): ...here.
3430 (unknown_language_data): Delete la_print_array_index initializer.
3431 (auto_language_data): Likewise.
3432 * language.h (struct language_data): Delete la_print_array_index
3433 field.
3434 (language_defn::print_array_index): New member function.
3435 (LA_PRINT_ARRAY_INDEX): Update.
3436 (default_print_array_index): Delete declaration.
3437 * m2-lang.c (m2_language_data): Delete la_print_array_index
3438 initializer.
3439 * objc-lang.c (objc_language_data): Likewise.
3440 * opencl-lang.c (opencl_language_data): Likewise.
3441 * p-lang.c (pascal_language_data): Likewise.
3442 * rust-lang.c (rust_language_data): Likewise.
3443
3444 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3445
3446 * gdb/ada-lang.c (ada_language_defn): Convert to...
3447 (ada_language_data): ...this.
3448 (class ada_language): New class.
3449 (ada_language_defn): New static global.
3450 * gdb/c-lang.c (c_language_defn): Convert to...
3451 (c_language_data): ...this.
3452 (class c_language): New class.
3453 (c_language_defn): New static global.
3454 (cplus_language_defn): Convert to...
3455 (cplus_language_data): ...this.
3456 (class cplus_language): New class.
3457 (cplus_language_defn): New static global.
3458 (asm_language_defn): Convert to...
3459 (asm_language_data): ...this.
3460 (class asm_language): New class.
3461 (asm_language_defn): New static global.
3462 (minimal_language_defn): Convert to...
3463 (minimal_language_data): ...this.
3464 (class minimal_language): New class.
3465 (minimal_language_defn): New static global.
3466 * gdb/d-lang.c (d_language_defn): Convert to...
3467 (d_language_data): ...this.
3468 (class d_language): New class.
3469 (d_language_defn): New static global.
3470 * gdb/f-lang.c (f_language_defn): Convert to...
3471 (f_language_data): ...this.
3472 (class f_language): New class.
3473 (f_language_defn): New static global.
3474 * gdb/go-lang.c (go_language_defn): Convert to...
3475 (go_language_data): ...this.
3476 (class go_language): New class.
3477 (go_language_defn): New static global.
3478 * gdb/language.c (unknown_language_defn): Remove declaration.
3479 (current_language): Initialize to nullptr, real initialization is
3480 moved to _initialize_language.
3481 (languages): Delete global.
3482 (language_defn::languages): Define.
3483 (set_language_command): Use language_defn::languages.
3484 (set_language): Likewise.
3485 (range_error): Likewise.
3486 (language_enum): Likewise.
3487 (language_def): Likewise.
3488 (add_set_language_command): Use language_def::languages for the
3489 language list, and language_def to lookup language pointers.
3490 (skip_language_trampoline): Use language_defn::languages.
3491 (unknown_language_defn): Convert to...
3492 (unknown_language_data): ...this.
3493 (class unknown_language): New class.
3494 (unknown_language_defn): New static global.
3495 (auto_language_defn): Convert to...
3496 (auto_language_data): ...this.
3497 (class auto_language): New class.
3498 (auto_language_defn): New static global.
3499 (language_gdbarch_post_init): Use language_defn::languages.
3500 (_initialize_language): Initialize current_language.
3501 * gdb/language.h (struct language_defn): Rename to...
3502 (struct language_data): ...this.
3503 (struct language_defn): New.
3504 (auto_language_defn): Delete.
3505 (unknown_language_defn): Delete.
3506 (minimal_language_defn): Delete.
3507 (ada_language_defn): Delete.
3508 (asm_language_defn): Delete.
3509 (c_language_defn): Delete.
3510 (cplus_language_defn): Delete.
3511 (d_language_defn): Delete.
3512 (f_language_defn): Delete.
3513 (go_language_defn): Delete.
3514 (m2_language_defn): Delete.
3515 (objc_language_defn): Delete.
3516 (opencl_language_defn): Delete.
3517 (pascal_language_defn): Delete.
3518 (rust_language_defn): Delete.
3519 * gdb/m2-lang.c (m2_language_defn): Convert to...
3520 (m2_language_data): ...this.
3521 (class m2_language): New class.
3522 (m2_language_defn): New static global.
3523 * gdb/objc-lang.c (objc_language_defn): Convert to...
3524 (objc_language_data): ...this.
3525 (class objc_language): New class.
3526 (objc_language_defn): New static global.
3527 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3528 (opencl_language_data): ...this.
3529 (class opencl_language): New class.
3530 (opencl_language_defn): New static global.
3531 * gdb/p-lang.c (pascal_language_defn): Convert to...
3532 (pascal_language_data): ...this.
3533 (class pascal_language): New class.
3534 (pascal_language_defn): New static global.
3535 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3536 language pointer, update comment format.
3537 * gdb/rust-lang.c (rust_language_defn): Convert to...
3538 (rust_language_data): ...this.
3539 (class rust_language): New class.
3540 (rust_language_defn): New static global.
3541
3542 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3543
3544 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3545 member variable.
3546 <m_stmt_at_address>: New member variable.
3547 (lnp_state_machine::record_line): Don't record some lines, update
3548 tracking of is_stmt at the same address.
3549 (lnp_state_machine::lnp_state_machine): Initialise new member
3550 variables.
3551
3552 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3553
3554 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3555 "-include gnu-nat-mig.h".
3556 * gnu-nat-mig.h: New file.
3557 * gnu-nat.c: Include "gnu-nat-mig.h".
3558 (exc_server, msg_reply_server, notify_server,
3559 process_reply_server): Remove declarations.
3560
3561 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3562
3563 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3564 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3565 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3566 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3567 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3568 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3569 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3570 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3571 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3572 to gnu_nat_target class.
3573 * gnu-nat.c: Likewise.
3574 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3575 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3576 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3577 object.
3578 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3579 instead of `gnu_target'.
3580
3581 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3582
3583 * i386-gnu-tdep.c: Include "gdbcore.h"
3584 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3585 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3586 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3587 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3588 i386_gnu_sigcontext_addr): New functions
3589 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3590 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3591 tdep.
3592
3593 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3594
3595 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3596 before fork_inferior call. Avoid calling it if target_is_pushed returns
3597 true.
3598
3599 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3600
3601 * gnu-nat.h (gnu_target): New variable declaration.
3602 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3603 gnu_target.
3604 * gnu-nat.c (gnu_target): New variable.
3605 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3606 add_thread_silent, and add_thread calls.
3607 (gnu_nat_target::create_inferior): Pass gnu_target to
3608 add_thread_silent, thread_change_ptid call.
3609 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3610 call.
3611
3612 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3613
3614 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3615 (gnu_nat_target::find_memory_regions): Remove unused
3616 `old_address' variable.
3617
3618 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3619
3620 * gnu-nat.c: Include "gdbarch.h".
3621
3622 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3623
3624 * reply_mig_hack.awk (Error return): Cast function through
3625 void *, to bypass compiler function call check.
3626
3627 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3628
3629 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3630 $(srcdir)/reply_mig_hack.awk.
3631
3632 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3633
3634 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3635
3636 2020-05-30 Jonny Grant <jg@jguk.org>
3637
3638 * configure.ac (ACX_BUGURL): change bug URL to https.
3639
3640 2020-05-30 Pedro Alves <palves@redhat.com>
3641
3642 * cp-support.c (replace_typedefs_template): New.
3643 (replace_typedefs_qualified_name): Handle
3644 DEMANGLE_COMPONENT_TEMPLATE.
3645
3646 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3647
3648 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3649 dwarf2/index-cache.h, dwarf2/index-write.c,
3650 dwarf2/index-write.h, dwarf2/line-header.c,
3651 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3652 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3653 variables and fields from `dwarf2_per_objfile` to just
3654 `per_objfile` throughout.
3655
3656 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3657
3658 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3659 <push_dwarf_reg_entry_value>: Add comment.
3660
3661 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3662 Keith Seitz <keiths@redhat.com>
3663
3664 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3665 instead of PyEval_ReleaseLock.
3666 (class gdbpy_gil): Move to earlier in file.
3667 (finalize_python): Set gdb_python_initialized.
3668 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3669 when not initialized.
3670
3671 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3672
3673 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3674 <push_dwarf_reg_entry_value>: Remove assert. Override
3675 per_objfile with caller_per_objfile.
3676
3677 2020-05-28 Tom de Vries <tdevries@suse.de>
3678
3679 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3680 PR gold/15646 workaround to symbol kind "type".
3681
3682 2020-05-27 Tom Tromey <tromey@adacore.com>
3683
3684 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3685
3686 2020-05-27 Tom Tromey <tromey@adacore.com>
3687
3688 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3689 Use htab_find_with_hash.
3690 <add_abbrev>: Remove "abbrev_number" parameter.
3691 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3692 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3693 (hash_abbrev): Add comment.
3694 (abbrev_table::lookup_abbrev): Move to header file.
3695 (abbrev_table::read): Update.
3696
3697 2020-05-27 Tom Tromey <tromey@adacore.com>
3698
3699 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3700 method.
3701 <canonical_name>: New member.
3702 <raw_name>: Rename from "name".
3703 (partial_die_info): Initialize canonical_name.
3704 (scan_partial_symbols): Check raw_name.
3705 (partial_die_parent_scope, partial_die_full_name)
3706 (add_partial_symbol, add_partial_subprogram)
3707 (add_partial_enumeration, load_partial_dies): Use "name" method.
3708 (partial_die_info::name): New method.
3709 (partial_die_info::read, guess_partial_die_structure_name)
3710 (partial_die_info::fixup): Update.
3711
3712 2020-05-27 Tom Tromey <tromey@adacore.com>
3713
3714 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3715 <get_ref_die_offset>: Inline.
3716 <get_ref_die_offset_complaint>: New method.
3717 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3718 (attribute::get_ref_die_offset_complaint): Rename from
3719 get_ref_die_offset. Just issue complaint.
3720
3721 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3722
3723 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3724
3725 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3726
3727 * exec.c (exec_file_attach): Use errno value of first openp failure.
3728
3729 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3730
3731 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3732 Don't close thread handle.
3733
3734 2020-05-27 Tom Tromey <tom@tromey.com>
3735 Simon Marchi <simon.marchi@efficios.com>
3736
3737 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3738 shared_ptr.
3739 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3740 member.
3741 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3742 dwarf2_per_bfd_objfile_data_key>: New globals.
3743 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3744 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3745 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3746 shared.
3747 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3748 short-circuit when sharing.
3749 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3750 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3751
3752 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3753
3754 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3755 to...
3756 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3757 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3758
3759 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3760
3761 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3762 build_name_components, find_name_components_bounds>:
3763 Add per_objfile parameter.
3764 (struct mapped_index) <symbol_name_at>: Likewise.
3765 (struct mapped_debug_names): Remove constructor.
3766 <dwarf2_per_objfile>: Remove field.
3767 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3768 (mapped_index_base::find_name_components_bounds,
3769 mapped_index_base::build_name_components,
3770 dw2_expand_symtabs_matching_symbol): Likewise.
3771 (class mock_mapped_index) <symbol_name_at>: Likewise.
3772 (check_match): Likewise.
3773 (check_find_bounds_finds): Likewise.
3774 (test_mapped_index_find_name_component_bounds): Update.
3775 (CHECK_MATCH): Update.
3776 (dw2_expand_symtabs_matching): Update.
3777 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3778 per_objfile parameter.
3779 <find_vec_in_debug_names>: Likewise.
3780 <m_per_objfile>: New field.
3781 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3782 parameter.
3783 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3784 (dw2_debug_names_iterator::next): Update.
3785 (dw2_debug_names_lookup_symbol): Update.
3786 (dw2_debug_names_expand_symtabs_for_function): Update.
3787 (dw2_debug_names_map_matching_symbols): Update.
3788 (dw2_debug_names_expand_symtabs_matching): Update.
3789 (dwarf2_read_debug_names): Update.
3790
3791 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3792
3793 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3794 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3795 move to dwarf2_per_objfile.
3796 <read_in_chain>: Remove.
3797 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3798 remove_all_cus, age_comp_units>: New methods.
3799 <m_dwarf2_cus>: New member.
3800 (struct dwarf2_per_cu_data) <cu>: Remove.
3801 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3802 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3803 moved to methods of dwarf2_per_objfile.
3804 (dwarf2_clear_marks): Remove.
3805 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3806 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3807 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3808 (dwarf2_per_objfile::remove_all_cus): New.
3809 (class free_cached_comp_units) <~free_cached_comp_units>:
3810 Update.
3811 (load_cu): Update.
3812 (dw2_do_instantiate_symtab): Adjust.
3813 (fill_in_sig_entry_from_dwo_entry): Adjust.
3814 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3815 (cutu_reader::cutu_reader): Likewise.
3816 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3817 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3818 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3819 and dwarf2_per_objfile::age_comp_units.
3820 (load_partial_comp_unit): Update.
3821 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3822 (process_queue): Likewise.
3823 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3824 backlink.
3825 (dwarf2_read_addr_index): Likewise.
3826 (follow_die_offset): Likewise.
3827 (dwarf2_fetch_die_loc_sect_off): Likewise.
3828 (dwarf2_fetch_constant_bytes): Likewise.
3829 (dwarf2_fetch_die_type_sect_off): Likewise.
3830 (follow_die_sig_1): Likewise.
3831 (load_full_type_unit): Likewise.
3832 (read_signatured_type): Likewise.
3833 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3834 (dwarf2_cu::~dwarf2_cu): Remove.
3835 (dwarf2_per_objfile::get_cu): New.
3836 (dwarf2_per_objfile::set_cu): New.
3837 (age_cached_comp_units): Rename to...
3838 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3839 to std::unordered_map.
3840 (free_one_cached_comp_unit): Rename to...
3841 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3842 to std::unordered_map.
3843 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3844 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3845 a dwarf2_per_objfile in data.
3846 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3847 (dwarf2_clear_marks): Remove.
3848
3849 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3850
3851 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3852 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3853 (init_tu_and_read_dwo_dies): Likewise.
3854 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3855 (cutu_reader::cutu_reader): Likewise.
3856 (load_partial_comp_unit): Likewise.
3857 (process_psymtab_comp_unit): Update.
3858 (build_type_psymtabs_1): Update.
3859 (process_skeletonless_type_unit): Update.
3860 (load_full_comp_unit): Update.
3861 (find_partial_die): Update.
3862 (dwarf2_read_addr_index): Update.
3863 (read_signatured_type): Update.
3864
3865 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3866
3867 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3868 m_header_read_in>: New fields.
3869 <get_header>: New method.
3870 * dwarf2/read.c (per_cu_header_read_in): Remove.
3871 (dwarf2_per_cu_data::get_header): New.
3872 (dwarf2_per_cu_data::addr_size): Update.
3873 (dwarf2_per_cu_data::offset_size): Update.
3874 (dwarf2_per_cu_data::ref_addr_size): Update.
3875
3876 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3877
3878 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3879 (dw2_do_instantiate_symtab): Update.
3880 (queue_and_load_all_dwo_tus): Change parameter from
3881 dwarf2_per_cu_data to dwarf2_cu.
3882 (dwarf2_fetch_die_loc_sect_off): Update.
3883 (dwarf2_fetch_constant_bytes): Update.
3884 (dwarf2_fetch_die_type_sect_off): Update.
3885
3886 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3887
3888 * dwarf2/read.c (process_full_comp_unit,
3889 process_full_type_unit): Remove per_cu, per_objfile paramters.
3890 Add dwarf2_cu parameter.
3891 (process_queue): Update.
3892
3893 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3894
3895 * dwarf2/read.c (create_cu_from_index_list): Replace
3896 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3897 (create_cus_from_index_list): Likewise.
3898 (create_cus_from_index): Likewise.
3899 (create_signatured_type_table_from_index): Likewise.
3900 (create_cus_from_debug_names_list): Likewise.
3901 (create_cus_from_debug_names): Likewise.
3902 (dwarf2_read_gdb_index): Update.
3903 (dwarf2_read_debug_names): Update.
3904
3905 2020-05-27 Tom Tromey <tom@tromey.com>
3906 Simon Marchi <simon.marchi@efficios.com>
3907
3908 * dwarf2/read.h (struct dwarf2_per_objfile)
3909 <get_type_for_signatured_type, set_type_for_signatured_type>:
3910 New methods.
3911 <m_type_map>: New member.
3912 (struct signatured_type) <type>: Remove.
3913 * dwarf2/read.c
3914 (dwarf2_per_objfile::get_type_for_signatured_type,
3915 dwarf2_per_objfile::set_type_for_signatured_type): New.
3916 (get_signatured_type): Use new methods.
3917
3918 2020-05-27 Tom Tromey <tom@tromey.com>
3919 Simon Marchi <simon.marchi@efficios.com>
3920
3921 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3922 (struct dwarf2_per_objfile) <type_units>: New member.
3923 <get_type_unit_group_unshareable>: New method.
3924 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3925 num_symtabs, symtabs>: Remove; move to
3926 type_unit_group_unshareable.
3927 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3928 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3929 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3930
3931 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3932
3933 * dwarf2/read.h (struct dwarf2_per_cu_data):
3934 <dwarf2_per_objfile>: Remove.
3935 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3936 dwarf2_per_objfile.
3937 (create_signatured_type_table_from_index): Likewise.
3938 (create_signatured_type_table_from_debug_names): Likewise.
3939 (create_debug_type_hash_table): Likewise.
3940 (fill_in_sig_entry_from_dwo_entry): Likewise.
3941 (create_type_unit_group): Likewise.
3942 (read_comp_units_from_section): Likewise.
3943 (create_cus_hash_table): Likewise.
3944
3945 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3946
3947 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3948 dwarf2_per_cu_data::dwarf2_per_objfile.
3949 (compute_compunit_symtab_includes): Likewise.
3950 (dwarf2_cu::start_symtab): Likewise.
3951
3952 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3953
3954 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3955 parameter.
3956 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3957 (read_namespace_alias): Update.
3958 (lookup_die_type): Update.
3959 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3960 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3961 Update.
3962 (disassemble_dwarf_expression): Update.
3963
3964 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3965
3966 * dwarf2/read.h (struct dwarf2_queue_item): Add
3967 dwarf2_per_objfile parameter, assign new parameter.
3968 <per_objfile>: New field.
3969 * dwarf2/read.c (free_one_cached_comp_unit): Add
3970 dwarf2_per_objfile parameter.
3971 (queue_comp_unit): Likewise.
3972 (dw2_do_instantiate_symtab): Update.
3973 (process_psymtab_comp_unit): Update.
3974 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3975 (process_imported_unit_die): Update.
3976 (queue_and_load_dwo_tu): Update.
3977 (follow_die_offset): Update.
3978 (follow_die_sig_1): Update.
3979
3980 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3981
3982 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3983 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3984 (read_call_site_scope): Assign per_objfile.
3985 (dwarf2_per_cu_data::objfile): Remove.
3986 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3987 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3988 dwarf2_per_objfile parameter.
3989 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3990 dwarf2_per_objfile parameter.
3991 (dwarf_expr_reg_to_entry_parameter): Add output
3992 dwarf2_per_objfile parameter.
3993 (locexpr_get_frame_base): Update.
3994 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3995 <push_dwarf_reg_entry_value>: Update.
3996 <call_site_to_target_addr>: Update.
3997 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3998 parameter.
3999 (value_of_dwarf_reg_entry): Update.
4000 (rw_pieced_value): Update.
4001 (indirect_synthetic_pointer): Update.
4002 (dwarf2_evaluate_property): Update.
4003 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4004 parameter.
4005 (locexpr_read_variable): Update.
4006 (locexpr_get_symbol_read_needs): Update.
4007 (loclist_read_variable): Update.
4008
4009 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4010
4011 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4012 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4013 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4014 parameter.
4015 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4016 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4017 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4018 parameter.
4019 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4020 sect_variable_value): Add dwarf2_per_objfile parameter.
4021 (class dwarf_evaluate_loc_desc) <dwarf_call,
4022 dwarf_variable_value>: Update.
4023 (fetch_const_value_from_synthetic_pointer): Add
4024 dwarf2_per_objfile parameter.
4025 (fetch_const_value_from_synthetic_pointer): Update.
4026 (coerced_pieced_ref): Update.
4027 (class symbol_needs_eval_context) <dwarf_call,
4028 dwarf_variable_value>: Update.
4029 (dwarf2_compile_expr_to_ax): Update.
4030
4031 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4032
4033 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4034 parameter.
4035 (dwarf2_evaluate_loc_desc_full): Update.
4036
4037 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4038
4039 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4040 parameter.
4041 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4042 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4043 dwarf2_per_objfile parameter.
4044 (decode_debug_loc_dwo_addresses): Likewise.
4045 (dwarf2_find_location_expression): Update.
4046 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4047 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4048 parameter.
4049 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4050 parameter.
4051 (locexpr_describe_location_1): Likewise.
4052 (locexpr_describe_location): Update.
4053
4054 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4055
4056 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4057 Remove.
4058 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4059 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4060 (dwarf2_compile_property_to_c): Update.
4061 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4062 use text offset from objfile.
4063 (locexpr_tracepoint_var_ref): Update.
4064 (locexpr_generate_c_location): Update.
4065 (loclist_describe_location): Update.
4066 (loclist_tracepoint_var_ref): Update.
4067 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4068 dwarf2_per_objfile parameter.
4069 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4070 use text offset from objfile.
4071 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4072
4073 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4074
4075 * dwarf2/expr.h (struct dwarf_expr_context)
4076 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4077 <offset>: Remove.
4078 <per_objfile>: New member.
4079 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4080 dwarf2_per_objfile parameter. Don't set offset, set
4081 per_objfile.
4082 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4083 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4084 a dwarf2_per_objfile object instead of an offset.
4085 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4086 constructor.
4087 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4088 to dwarf2_expr_executor constructor. Don't set offset.
4089 (dwarf2_fetch_cfa_info): Update.
4090 (struct dwarf2_frame_cache) <text_offset>: Remove.
4091 <per_objfile>: New field.
4092 (dwarf2_frame_cache): Update.
4093 (dwarf2_frame_prev_register): Update.
4094 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4095 <dwarf_evaluate_loc_desc>: Add constructor.
4096 (dwarf2_evaluate_loc_desc_full): Update.
4097 (dwarf2_locexpr_baton_eval): Update.
4098 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4099 Add constructor.
4100 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4101
4102 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4103
4104 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4105 addr_sized_int_type>: Move to dwarf2_cu.
4106 <int_type>: Move to dwarf2_per_objfile.
4107 (struct dwarf2_per_objfile) <int_type>: Move here.
4108 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4109 addr_sized_int_type>: Move here.
4110 (read_func_scope): Update.
4111 (read_array_type): Update.
4112 (read_tag_string_type): Update.
4113 (attr_to_dynamic_prop): Update.
4114 (dwarf2_per_cu_data::int_type): Rename to...
4115 (dwarf2_per_objfile::int_type): ... this.
4116 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4117 (dwarf2_cu::addr_sized_int_type): ... this.
4118 (read_subrange_type): Update.
4119 (dwarf2_per_cu_data::addr_type): Rename to...
4120 (dwarf2_cu::addr_type): ... this.
4121 (set_die_type): Update.
4122
4123 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4124
4125 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4126 data through per_cu->cu.
4127
4128 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4129
4130 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4131 dwarf2_per_cu_data parameter fo dwarf2_cu.
4132 (lookup_dwo_type_unit): Likewise.
4133 (read_cutu_die_from_dwo): Likewise.
4134 (lookup_dwo_unit): Likewise.
4135 (open_and_init_dwo_file): Likewise.
4136 (lookup_dwo_cutu): Likewise.
4137 (lookup_dwo_comp_unit): Likewise.
4138 (lookup_dwo_type_unit): Likewise.
4139 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4140 (cutu_reader::cutu_reader): Update.
4141
4142 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4143
4144 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4145 parameter.
4146 (process_full_type_unit): Likewise.
4147 (process_queue): Update.
4148
4149 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4150
4151 * dwarf2/read.c (recursively_compute_inclusions): Add
4152 dwarf2_per_objfile parameter.
4153 (compute_compunit_symtab_includes): Likewise.
4154 (process_cu_includes): Update.
4155
4156 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4157
4158 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4159 parameter.
4160 (create_type_unit_group): Update.
4161 (process_psymtab_comp_unit_reader): Update.
4162 (build_type_psymtabs_reader): Update.
4163
4164 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4165
4166 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4167 object through m_this_cu->cu.
4168
4169 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4170
4171 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4172 the info parameter.
4173 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4174
4175 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4176
4177 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4178 per_objfile parameter.
4179 (load_full_type_unit): Add per_objfile parameter.
4180 (read_signatured_type): Likewise.
4181 (load_full_comp_unit): Likewise.
4182 (load_cu): Likewise.
4183 (dw2_do_instantiate_symtab): Likewise.
4184 (dw2_get_file_names): Likewise.
4185 (dw2_map_symtabs_matching_filename): Update.
4186 (dw_expand_symtabs_matching_file_matcher): Update.
4187 (dw2_map_symbol_filenames): Update.
4188 (process_psymtab_comp_unit): Add per_objfile parameter.
4189 (build_type_psymtabs_1): Update.
4190 (process_skeletonless_type_unit): Update.
4191 (dwarf2_build_psymtabs_hard): Update.
4192 (load_partial_comp_unit): Add per_objfile parameter.
4193 (scan_partial_symbols): Update.
4194 (load_full_comp_unit): Add per_objfile parameter.
4195 (process_imported_unit_die): Update.
4196 (create_cus_hash_table): Update.
4197 (find_partial_die): Update.
4198 (dwarf2_read_addr_index): Update.
4199 (follow_die_offset): Update.
4200 (dwarf2_fetch_die_loc_sect_off): Update.
4201 (dwarf2_fetch_constant_bytes): Update.
4202 (dwarf2_fetch_die_type_sect_off): Update.
4203 (follow_die_sig_1): Update.
4204 (load_full_type_unit): Add per_objfile parameter.
4205 (read_signatured_type): Likewise.
4206
4207 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4208
4209 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4210 of objfile_name.
4211
4212 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4213
4214 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4215 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4216 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4217 field.
4218 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4219 (create_cus_from_index): Update.
4220 (dwarf2_read_gdb_index): Update.
4221 (create_cus_from_debug_names): Update.
4222 (dwarf2_read_debug_names): Update.
4223 (get_abbrev_section_for_cu): Update.
4224 (create_all_comp_units): Update.
4225 (read_attribute_value): Update.
4226 (get_debug_line_section): Update.
4227 * dwarf2/index-cache.c (index_cache::store): Update.
4228 * dwarf2/index-write.c (save_gdb_index_command): Update.
4229 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4230
4231 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4232
4233 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4234 member.
4235 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4236 dwarf2_per_cu_data::per_bfd.
4237 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4238 (create_type_unit_group): Likewise.
4239 (queue_comp_unit): Remove reference to
4240 per_cu->dwarf2_per_objfile.
4241 (maybe_queue_comp_unit): Likewise.
4242 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4243 (create_cus_hash_table): Assign new field.
4244
4245 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4246
4247 * dwarf2/read.c: Replace
4248 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4249 dwarf2_cu->per_objfile throughout.
4250
4251 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4252
4253 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4254 parameter, don't use per_cu->dwarf2_per_objfile.
4255 (dw2_instantiate_symtab): Likewise.
4256 (dw2_find_last_source_symtab): Update.
4257 (dw2_map_expand_apply): Update.
4258 (dw2_lookup_symbol): Update.
4259 (dw2_expand_symtabs_for_function): Update.
4260 (dw2_expand_all_symtabs): Update.
4261 (dw2_expand_symtabs_with_fullname): Update.
4262 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4263 don't use per_cu->dwarf2_per_objfile.
4264 (dw2_expand_marked_cus): Update.
4265 (dw2_find_pc_sect_compunit_symtab): Update.
4266 (dw2_debug_names_lookup_symbol): Update.
4267 (dw2_debug_names_expand_symtabs_for_function): Update.
4268 (dw2_debug_names_map_matching_symbols): Update.
4269 (dwarf2_psymtab::expand_psymtab): Update.
4270
4271 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4272
4273 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4274 <per_objfile>: New member.
4275 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4276 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4277 call to dwarf2_cu.
4278 (cutu_reader::cutu_reader): Update.
4279 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4280
4281 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4282
4283 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4284 struct dwarf2_per_objfile.
4285 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4286 dwarf2_per_bfd.
4287 * dwarf2/read.c (set_die_type): Update.
4288 (get_die_type_at_offset): Update.
4289
4290 2020-05-27 Tom Tromey <tom@tromey.com>
4291 Simon Marchi <simon.marchi@efficios.com>
4292
4293 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4294 method.
4295 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4296 get_symtab, set_symtab>: New methods.
4297 <m_symtabs>: New field.
4298 (struct dwarf2_psymtab): Derive from partial_symtab.
4299 <readin_p, get_compunit_symtab>: Declare methods.
4300 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4301 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4302 New methods.
4303 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4304 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4305 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4306 (dw2_symtab_iter_next, dw2_print_stats)
4307 (dw2_expand_symtabs_with_fullname)
4308 (dw2_expand_symtabs_matching_one)
4309 (dw_expand_symtabs_matching_file_matcher)
4310 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4311 (dw2_debug_names_iterator::next)
4312 (dw2_debug_names_map_matching_symbols)
4313 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4314 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4315 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4316 New methods.
4317 (get_compunit_symtab, process_full_comp_unit)
4318 (process_full_type_unit): Update.
4319 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4320
4321 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4322
4323 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4324 then introduce a new dwarf2_per_objfile type.
4325 <read_line_string>: Move to the new dwarf2_per_objfile type.
4326 <objfile>: Likewise.
4327 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4328 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4329 dwarf2_per_objfile->per_bfd.
4330 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4331 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4332 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4333 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4334 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4335 (dwarf2_per_objfile::locate_sections): Rename to...
4336 (dwarf2_per_bfd::locate_sections): ... this.
4337 (dwarf2_per_objfile::get_cutu): Rename to...
4338 (dwarf2_per_bfd::get_cutu): ... this.
4339 (dwarf2_per_objfile::get_cu): Rename to...
4340 (dwarf2_per_bfd::get_cu): ... this.
4341 (dwarf2_per_objfile::get_tu): Rename to...
4342 (dwarf2_per_bfd::get_tu): ... this.
4343 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4344 (dwarf2_per_bfd::allocate_per_cu): ... this.
4345 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4346 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4347 (get_gdb_index_contents_ftype): Change parameter from
4348 dwarf2_per_objfile to dwarf2_per_bfd.
4349 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4350 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4351
4352 2020-05-27 Tom Tromey <tom@tromey.com>
4353 Simon Marchi <simon.marchi@efficios.com>
4354
4355 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4356 (allocate_piece_closure): Set "per_objfile" member.
4357 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4358 (locexpr_describe_location, loclist_describe_location): Use new
4359 member.
4360 * dwarf2/read.c (read_call_site_scope)
4361 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4362 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4363 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4364 handle_data_member_location): Set per_objfile member.
4365 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4366 member.
4367 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4368
4369 2020-05-27 Tom Tromey <tom@tromey.com>
4370
4371 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4372 allocate_signatured_type>: Declare new methods.
4373 <m_num_psymtabs>: New member.
4374 (struct dwarf2_per_cu_data) <index>: New member.
4375 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4376 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4377 (create_cu_from_index_list): Use allocate_per_cu.
4378 (create_signatured_type_table_from_index)
4379 (create_signatured_type_table_from_debug_names)
4380 (create_debug_type_hash_table, add_type_unit)
4381 (read_comp_units_from_section): Use allocate_signatured_type.
4382
4383 2020-05-27 Tom Tromey <tom@tromey.com>
4384
4385 * psymtab.c (partial_map_expand_apply)
4386 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4387 (psym_lookup_global_symbol_language)
4388 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4389 (psym_print_stats, psym_expand_symtabs_for_function)
4390 (psym_map_symbol_filenames, psym_map_matching_symbols)
4391 (psym_expand_symtabs_matching)
4392 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4393 (maintenance_check_psymtabs): Update.
4394 * psympriv.h (struct partial_symtab) <readin_p,
4395 get_compunit_symtab>: Add objfile parameter.
4396 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4397 Likewise.
4398 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4399 get_compunit_symtab>: Likewise.
4400 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4401
4402 2020-05-27 Tom Tromey <tom@tromey.com>
4403
4404 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4405 member.
4406 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4407 (create_cu_from_index_list)
4408 (create_signatured_type_table_from_index)
4409 (create_signatured_type_table_from_debug_names)
4410 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4411 (dwarf2_create_include_psymtab)
4412 (create_debug_type_hash_table, add_type_unit)
4413 (create_type_unit_group, read_comp_units_from_section)
4414 (dwarf2_compute_name, create_cus_hash_table)
4415 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4416 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4417 obstack.
4418 (dw2_get_real_path): Likewise. Change argument to
4419 dwarf2_per_objfile.
4420
4421 2020-05-27 Luis Machado <luis.machado@linaro.org>
4422
4423 PR tdep/26000
4424 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4425 for ldrd (immediate).
4426
4427 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4428
4429 * command.h: Add comment giving the name of class_tui.
4430 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4431 create the fake command for the help for class_tui.
4432
4433 2020-05-26 Tom Tromey <tromey@adacore.com>
4434
4435 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4436 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4437 (val_atr): New function.
4438 (value_val_atr): Use it.
4439 * ada-valprint.c (print_optional_low_bound): Change low bound
4440 handling for enums.
4441 (val_print_packed_array_elements): Don't call discrete_position.
4442 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4443 discrete_position for enum types.
4444 * language.c (default_print_array_index): Change type.
4445 * language.h (struct language_defn) <la_print_array_index>: Add
4446 index_type parameter, change type of index_value.
4447 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4448 (default_print_array_index): Update.
4449 * valprint.c (maybe_print_array_index): Don't call
4450 value_from_longest. Update.
4451 (value_print_array_elements): Don't call discrete_position.
4452
4453 2020-05-26 Tom Tromey <tromey@adacore.com>
4454
4455 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4456 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4457
4458 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4459
4460 PR gdb/13519
4461 * avr-tdep.c (avr_integer_to_address): Return data or code
4462 address accordingly to the second 'type' argument of the
4463 function.
4464
4465 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4466
4467 * infcmd.c, inferior.h: (construct_inferior_arguments):
4468 Moved function from here to gdbsupport/common-inferior.{h,cc}
4469
4470 2020-05-23 Tom Tromey <tom@tromey.com>
4471
4472 Revert commit eca1f90c:
4473 * NEWS: Remove entry for completion styling.
4474 * completer.c (_rl_completion_prefix_display_length): Move
4475 declaration later.
4476 (gdb_fnprint): Revert.
4477 (gdb_display_match_list_1): Likewise.
4478 * cli/cli-style.c (completion_prefix_style)
4479 (completion_difference_style, completion_suffix_style): Remove.
4480 (_initialize_cli_style): Revert.
4481 * cli/cli-style.h (completion_prefix_style)
4482 (completion_difference_style, completion_suffix_style): Don't
4483 declare.
4484
4485 2020-05-24 Pedro Alves <palves@redhat.com>
4486
4487 * symtab.c (completion_list_add_name): Return boolean indication
4488 of whether the symbol matched.
4489 (completion_list_add_symbol): Don't try to remove C++ aliases if
4490 the symbol didn't match in the first place.
4491 * symtab.h (completion_list_add_name): Return bool.
4492
4493 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4494
4495 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4496 type::field.
4497
4498 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4499
4500 GDB 9.2 released.
4501
4502 2020-05-23 Tom Tromey <tom@tromey.com>
4503
4504 * NEWS: Add entry for completion styling.
4505 * completer.c (_rl_completion_prefix_display_length): Move
4506 declaration earlier.
4507 (gdb_fnprint): Use completion_style.
4508 (gdb_display_match_list_1): Likewise.
4509 * cli/cli-style.c (completion_prefix_style)
4510 (completion_difference_style, completion_suffix_style): New
4511 globals.
4512 (_initialize_cli_style): Register new globals.
4513 * cli/cli-style.h (completion_prefix_style)
4514 (completion_difference_style, completion_suffix_style): Declare.
4515
4516 2020-05-23 Pedro Alves <palves@redhat.com>
4517
4518 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4519 (parse_escape): Use ISDIGIT instead of isdigit.
4520 (puts_debug): Use gdb_isprint instead of isprint.
4521 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4522 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4523 ISSPACE instead of isspace.
4524 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4525 instead of isspace.
4526 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4527 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4528 instead of isxdigit and ISDIGIT instead of isdigit.
4529
4530 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4531
4532 * gdbtypes.h (struct type) <field>: New method.
4533 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4534 or type::field.
4535
4536 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4537
4538 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4539 (TYPE_FIELDS): Use type::fields. Change all call sites that
4540 modify the propery to use type::set_fields instead.
4541
4542 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4543
4544 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4545 type::num_fields instead.
4546
4547 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4548
4549 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4550 methods.
4551 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4552 that modify the number of fields to use type::set_num_fields
4553 instead.
4554
4555 2020-05-22 Tom Tromey <tromey@adacore.com>
4556
4557 * compile/compile-object-load.h (munmap_list_free): Don't
4558 declare.
4559
4560 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4561
4562 * annotate.c (annotate_source_line): Update return type, add call
4563 to update current symtab and line.
4564 * annotate.h (annotate_source_line): Update return type, and
4565 extend header comment.
4566 * source.c (info_line_command): Check annotation_level before
4567 calling annotate_source_line.
4568 * stack.c (print_frame_info): If calling annotate_source_line
4569 returns true, then don't print any other source line information.
4570
4571 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4572
4573 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4574
4575 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4576
4577 * coffread.c (patch_type): Remove NULL check before xfree.
4578 * corefile.c (set_gnutarget): Likewise.
4579 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4580 * exec.c (build_section_table): Likewise.
4581 * remote.c (remote_target::pass_signals): Likewise.
4582 * utils.c (n_spaces): Likewise.
4583 * cli/cli-script.c (document_command): Likewise.
4584 * i386-windows-tdep.c (core_process_module_section): Likewise.
4585 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4586
4587 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4588
4589 * symfile.c (reread_symbols): Clear objfile's section_offsets
4590 vector and section indices, re-compute them by calling
4591 sym_offsets.
4592
4593 2020-05-20 Tom Tromey <tromey@adacore.com>
4594
4595 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4596 (desc_one_bound, desc_index_type): Compute field name.
4597
4598 2020-05-20 Tom de Vries <tdevries@suse.de>
4599
4600 PR symtab/25833
4601 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4602
4603 2020-05-20 Alan Modra <amodra@gmail.com>
4604
4605 PR 25993
4606 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4607 bfd_set_filename.
4608 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4609 passed to bfd_set_filename.
4610 * symfile-mem.c (add_vsyscall_page): Likewise for string
4611 passed to symbol_file_add_from_memory.
4612 (symbol_file_add_from_memory): Make name param a const char* and
4613 don't strdup.
4614
4615 2020-05-20 Alan Modra <amodra@gmail.com>
4616
4617 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4618 rather than accessing bfd->filename directly.
4619 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4620 and use bfd_section_name.
4621 * dwarf2/frame.c (decode_frame_entry): Likewise.
4622 * exec.c (exec_set_section_address): Likewise.
4623 * solib-aix.c (solib_aix_bfd_open): Likewise.
4624 * stap-probe.c (get_stap_base_address): Likewise.
4625 * symfile.c (reread_symbols): Likewise.
4626
4627 2020-05-19 Tom Tromey <tromey@adacore.com>
4628
4629 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4630
4631 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4632
4633 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4634
4635 2020-05-19 Pedro Alves <palves@redhat.com>
4636
4637 * NEWS (set exec-file-mismatch): Adjust entry.
4638 * exec.c: Include "build-id.h".
4639 (validate_exec_file): Try to match build IDs instead of filenames.
4640 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4641 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4642 and pass down 'warn_if_slow'.
4643 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4644 gdb_bfd_open_closure to pass it down.
4645 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4646
4647 2020-05-19 Pedro Alves <palves@redhat.com>
4648
4649 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4650 * target.c (target_fileio_open_1): Rename to target_fileio_open
4651 and make extern. Use bool.
4652 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4653 (target_fileio_read_alloc_1): Adjust.
4654 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4655 (target_fileio_open_warn_if_slow): Delete declaration.
4656
4657 2020-05-19 Pedro Alves <palves@redhat.com>
4658
4659 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4660 Adjust all callers.
4661
4662 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4663
4664 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4665 whether disp is negative.
4666
4667 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4668
4669 * symfile.h (struct symfile_segment_data)
4670 <~symfile_segment_data>: Remove.
4671 <segment_info>: Change to std::vector.
4672 * symfile.c (default_symfile_segments): Update.
4673 * elfread.c (elf_symfile_segments): Update.
4674
4675 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4676
4677 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4678 <segments>: New.
4679 <segment_bases, segment_sizes>: Remove.
4680 * symfile.c (default_symfile_segments): Update.
4681 * elfread.c (elf_symfile_segments): Update.
4682 * remote.c (remote_target::get_offsets): Update.
4683 * solib-target.c (solib_target_relocate_section_addresses):
4684 Update.
4685
4686 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4687
4688 * symfile.h (struct symfile_segment_data): Initialize fields.
4689 <~symfile_segment_data>: Add.
4690 (symfile_segment_data_up): New.
4691 (struct sym_fns) <sym_segments>: Return a
4692 symfile_segment_data_up.
4693 (default_symfile_segments): Return a symfile_segment_data_up.
4694 (free_symfile_segment_data): Remove.
4695 (get_symfile_segment_data): Return a symfile_segment_data_up.
4696 * symfile.c (default_symfile_segments): Likewise.
4697 (get_symfile_segment_data): Likewise.
4698 (free_symfile_segment_data): Remove.
4699 (symfile_find_segment_sections): Update.
4700 * elfread.c (elf_symfile_segments): Return a
4701 symfile_segment_data_up.
4702 * remote.c (remote_target::get_offsets): Update.
4703 * solib-target.c (solib_target_relocate_section_addresses):
4704 Update.
4705 * symfile-debug.c (debug_sym_segments): Return a
4706 symfile_segment_data_up.
4707
4708 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4709
4710 PR build/25981
4711 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4712 Hardcode register numbers.
4713
4714 PR build/25981
4715 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4716 procfs_find_LDT_entry): Remove.
4717 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4718 procfs_find_LDT_entry): Remove.
4719 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4720 Remove.
4721
4722 2020-05-17 Pedro Alves <palves@redhat.com>
4723 Andrew Burgess <andrew.burgess@embecosm.com>
4724 Keno Fischer <keno@juliacomputing.com>
4725
4726 PR gdb/25741
4727 * breakpoint.c (build_target_condition_list): Update comments.
4728 (build_target_command_list): Update comments and skip matching
4729 locations.
4730 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4731 a separate function. Simplify "set breakpoint auto-hw off"
4732 handling.
4733 (insert_breakpoints): Update comment.
4734 (tracepoint_locations_match): New parameter. For breakpoints,
4735 compare location types too, if the caller wants to.
4736 (handle_automatic_hardware_breakpoints): New functions.
4737 (bp_location_is_less_than): Also sort by location type and
4738 hardware breakpoint length.
4739 (update_global_location_list): Handle "set breakpoint auto-hw on"
4740 here.
4741 (update_breakpoint_locations): Ask breakpoint_locations_match to
4742 ignore location types.
4743
4744 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4745
4746 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4747 type::name instead.
4748
4749 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4750
4751 * gdbtypes.h (struct type) <name, set_name>: New methods.
4752 (TYPE_CODE): Use type::name. Change all call sites used to set
4753 the name to use type::set_name instead.
4754
4755 2020-05-16 Tom Tromey <tom@tromey.com>
4756
4757 * top.c (quit_force): Update.
4758 * infrun.c (handle_no_resumed): Update.
4759 * top.h (all_uis): New function.
4760 (ALL_UIS): Remove.
4761
4762 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4763
4764 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4765
4766 2020-05-16 Pedro Alves <palves@redhat.com>
4767
4768 * ia64-linux-nat.c
4769 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4770 Declare method.
4771 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4772
4773 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4774
4775 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4776 (sparc64_adi_info): Likewise.
4777
4778 2020-05-15 Tom Tromey <tom@tromey.com>
4779
4780 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4781 block_objfile.
4782 (lookup_objfile_from_block): Remove.
4783 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4784 (lookup_global_symbol): Use block_objfile.
4785 * symtab.h (lookup_objfile_from_block): Don't declare.
4786 * printcmd.c (clear_dangling_display_expressions): Use
4787 block_objfile.
4788 * parse.c (operator_check_standard): Use block_objfile.
4789
4790 2020-05-15 Tom Tromey <tom@tromey.com>
4791
4792 * language.c (language_alloc_type_symbol): Set
4793 SYMBOL_SECTION.
4794 * symtab.c (initialize_objfile_symbol): Remove.
4795 (allocate_symbol): Remove.
4796 (allocate_template_symbol): Remove.
4797 * dwarf2/read.c (fixup_go_packaging): Use "new".
4798 (new_symbol): Use "new".
4799 (read_variable): Don't call initialize_objfile_symbol. Use
4800 "new".
4801 (read_func_scope): Use "new".
4802 * xcoffread.c (process_xcoff_symbol): Don't call
4803 initialize_objfile_symbol.
4804 (SYMBOL_DUP): Remove.
4805 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4806 "new".
4807 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4808 (allocate_template_symbol): Don't declare.
4809 (struct symbol): Add copy constructor. Change defaults.
4810 * jit.c (finalize_symtab): Use "new".
4811 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4812 Use "new".
4813 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4814 (common_block_end): Use "new".
4815 * mdebugread.c (parse_symbol): Use "new".
4816 (new_symbol): Likewise.
4817
4818 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4819
4820 * NEWS: Mention changes to help and apropos.
4821
4822 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4823
4824 * command.h (enum command_class): Improve comments, document
4825 that class_alias is for user-defined aliases, give the class
4826 name for each class, remove unused class_xdb.
4827 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4828 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4829 by a precise class.
4830 * infcmd.c (_initialize_infcmd): Likewise.
4831 * reverse.c (_initialize_reverse): Likewise.
4832 * stack.c (_initialize_stack): Likewise.
4833 * symfile.c (_initialize_symfile): Likewise.
4834 * tracepoint.c (_initialize_tracepoint): Likewise.
4835
4836 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4837
4838 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4839 when their aliased command is traversed.
4840 (help_cmd): Add fput_command_names_styled call to
4841 output command name and aliases when command has an alias.
4842
4843 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4844
4845 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4846 * cli/cli-decode.c (help_cmd_list): Declare as static,
4847 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4848 a command together with the command.
4849 (fput_command_name_styled, fput_command_names_styled): New functions.
4850 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4851 fput_command_name_styled.
4852 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4853 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4854
4855 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4856
4857 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4858 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4859 * command.h (cmd_show_list): Likewise.
4860 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4861 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4862
4863 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4864
4865 * unittests/command-def-selftests.c (traverse_command_structure):
4866 Verify all commands of a list have the same prefix command and
4867 that only the top cmdlist commands have a null prefix.
4868
4869 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4870
4871 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4872 as prefix, not one of its aliases.
4873 (set_cmd_prefix): Remove.
4874 (do_add_cmd): Centralize the setting of the prefix of a command, when
4875 command is defined after its full chain of prefix commands.
4876 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4877 (add_setshow_cmd_full): Likewise.
4878 (update_prefix_field_of_prefixed_commands): New function.
4879 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4880 update_prefix_field_of_prefixed_commands.
4881 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4882 addresses of remote_set_cmdlist and remote_show_cmdlist given
4883 as argument, not the address of an argument.
4884 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4885 * gdb/remote.c (_initialize_remote): Likewise.
4886
4887 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4888
4889 * cli/cli-cmds.c (alias_command): Check for an existing alias
4890 using lookup_cmd_composition, as valid_command_p is too strict
4891 and forbids aliases that are the prefix of an existing alias
4892 or command.
4893 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4894 command is properly recognised as a valid command.
4895
4896 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4897
4898 * unittests/help-doc-selftests.c: Rename to
4899 unittests/command-def-selftests.c
4900 * unittests/command-def-selftests.c (help_doc_tests): Update some
4901 comments.
4902 (command_structure_tests, traverse_command_structure): New namespace
4903 and function.
4904 (command_structure_invariants_tests): New function.
4905 (_initialize_command_def_selftests) Renamed from
4906 _initialize_help_doc_selftests, register command_structure_invariants
4907 selftest.
4908
4909 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4910
4911 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4912 an alias of 'show'.
4913
4914 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4915
4916 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4917 ada_is_fixed_point_type. Update all callers.
4918 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4919 all callers.
4920 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4921 Update all callers.
4922 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4923 print_fixed_point_type. Update all callers.
4924 * ada-valprint.c (ada_value_print_num): Replace call to
4925 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4926
4927 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4928
4929 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4930 processors.
4931 (cpu_supports_bts): Add CV_AMD case.
4932
4933 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4934 Simon Marchi <simon.marchi@efficios.com>
4935
4936 * infrun.c (stop_all_threads): Collect multiple wait events at
4937 each pass.
4938
4939 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4940
4941 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4942 type::code instead.
4943
4944 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4945
4946 * gdbtypes.h (struct type) <code, set_code>: New methods.
4947 (TYPE_CODE): Use type::code. Change all call sites used to set
4948 the code to use type::set_code instead.
4949
4950 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4951 Tom de Vries <tdevries@suse.de>
4952 Pedro Alves <palves@redhat.com>
4953
4954 PR threads/25478
4955 * infrun.c (stop_all_threads): Do NOT ignore
4956 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4957 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4958 received.
4959 (handle_no_resumed): Remove code handling a live inferior with no
4960 threads.
4961 * remote.c (has_single_non_exited_thread): New.
4962 (remote_target::update_thread_list): Do not delete a thread if is
4963 the last thread of the process.
4964 * thread.c (thread_select): Call delete_exited_threads instead of
4965 prune_threads.
4966
4967 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4968
4969 * infrun.c (stop_all_threads): Enable/disable thread events of all
4970 targets. Move a debug message denoting the end of the function
4971 into the SCOPED_EXIT block.
4972
4973 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4974
4975 * process-stratum-target.h: Include <set>.
4976 (all_non_exited_process_targets, switch_to_target_no_thread): New
4977 function declarations.
4978 * process-stratum-target.c (all_non_exited_process_targets)
4979 (switch_to_target_no_thread): New function implementations.
4980
4981 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4982
4983 * infrun.c (handle_inferior_event): Extract out a piece of code
4984 into...
4985 (mark_non_executing_threads): ...this new function.
4986
4987 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4988
4989 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4990 use.
4991
4992 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4993
4994 * regcache.c (regcache_read_pc_protected): New function
4995 implementation that returns 0 if the PC cannot read via
4996 'regcache_read_pc'.
4997 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4998 instead of 'regcache_read_pc'.
4999 (keep_going_pass_signal): Ditto.
5000
5001 2020-05-13 Tom Tromey <tromey@adacore.com>
5002
5003 * ada-lang.c (align_value): Remove.
5004 (ada_template_to_fixed_record_type_1): Use align_up.
5005
5006 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5007
5008 * async-event.c: Update the copyright year.
5009 * async-event.h: Update the copyright year.
5010
5011 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5012
5013 * objfiles.h (is_addr_in_objfile,
5014 shared_objfile_contains_address_p): Return bool.
5015 * objfile.c (is_addr_in_objfile,
5016 shared_objfile_contains_address_p): Return bool.
5017
5018 2020-05-11 Tom Tromey <tromey@adacore.com>
5019
5020 * cli/cli-cmds.c (info_command): Restore.
5021 (_initialize_cli_cmds): Use add_prefix_command for "info".
5022 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5023
5024 2020-05-11 Tom Tromey <tromey@adacore.com>
5025
5026 * ada-lang.c (ada_value_primitive_field): Now public.
5027 * ada-lang.h (ada_value_primitive_field): Declare.
5028 * ada-valprint.c (print_field_values): Use
5029 ada_value_primitive_field for wrapper fields.
5030
5031 2020-05-11 Tom de Vries <tdevries@suse.de>
5032
5033 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5034 MODULE_DOMAIN.
5035
5036 2020-05-11 Tom de Vries <tdevries@suse.de>
5037
5038 PR symtab/25941
5039 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5040 with length 0, if not gdb-produced.
5041 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5042
5043 2020-05-09 Tom de Vries <tdevries@suse.de>
5044
5045 PR gdb/25955
5046 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5047 calculation.
5048
5049 2020-05-09 Tom Tromey <tom@tromey.com>
5050
5051 * top.c (server_command): Now bool.
5052 * top.h (server_command): Now bool.
5053
5054 2020-05-08 Tom Tromey <tromey@adacore.com>
5055
5056 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5057 already being processed.
5058
5059 2020-05-08 Tom Tromey <tom@tromey.com>
5060
5061 * printcmd.c (struct display) <next>: Remove.
5062 <display>: New constructor.
5063 <exp_string>: Now a std::string.
5064 <enabled_p>: Now a bool.
5065 (display_number): Move definition earlier.
5066 (displays): Rename from display_chain. Now a std::vector.
5067 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5068 (display_command): Update.
5069 (do_one_display, disable_display)
5070 (enable_disable_display_command, do_enable_disable_display):
5071 Update.
5072 (free_display): Remove.
5073 (clear_displays): Rewrite.
5074 (delete_display): Update.
5075 (map_display_numbers): Use function_view. Remove "data"
5076 parameter. Update.
5077 (do_delete_display): Remove.
5078 (undisplay_command): Update.
5079 (do_one_display, do_displays, disable_display)
5080 (info_display_command): Update.
5081 (do_enable_disable_display): Remove.
5082 (enable_disable_display_command)
5083 (clear_dangling_display_expressions): Update.
5084
5085 2020-05-08 Tom Tromey <tom@tromey.com>
5086
5087 * symtab.c (set_symbol_cache_size)
5088 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5089 (maintenance_print_symbol_cache_statistics): Update.
5090 * symmisc.c (print_symbol_bcache_statistics)
5091 (print_objfile_statistics, maintenance_print_objfiles)
5092 (maintenance_info_symtabs, maintenance_check_symtabs)
5093 (maintenance_expand_symtabs, maintenance_info_line_tables):
5094 Update.
5095 * symfile-debug.c (set_debug_symfile): Update.
5096 * source.c (forget_cached_source_info): Update.
5097 * python/python.c (gdbpy_progspaces): Update.
5098 * psymtab.c (maintenance_info_psymtabs): Update.
5099 * probe.c (parse_probes): Update.
5100 * linespec.c (iterate_over_all_matching_symtabs)
5101 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5102 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5103 * exec.c (exec_target::close): Update.
5104 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5105 * breakpoint.c (print_one_breakpoint_location)
5106 (create_longjmp_master_breakpoint)
5107 (create_std_terminate_master_breakpoint): Update.
5108 * progspace.c (program_spaces): Now a std::vector.
5109 (maybe_new_address_space): Update.
5110 (add_program_space): Remove.
5111 (program_space::program_space): Update.
5112 (remove_program_space): Update.
5113 (number_of_program_spaces): Remove.
5114 (print_program_space, update_address_spaces): Update.
5115 * progspace.h (program_spaces): Change type.
5116 (ALL_PSPACES): Remove.
5117 (number_of_program_spaces): Don't declare.
5118 (struct program_space) <next>: Remove.
5119
5120 2020-05-08 Tom Tromey <tom@tromey.com>
5121
5122 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5123 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5124 (enable_break): Update.
5125 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5126 (frv_fdpic_find_canonical_descriptor): Update.
5127 (frv_fetch_objfile_link_map): Update.
5128 * progspace.c (program_space::free_all_objfiles): Update.
5129 (program_space::solibs): New method.
5130 * progspace.h (struct program_space) <solibs>: New method.
5131 * solist.h (master_so_list): Don't declare.
5132 (ALL_SO_LIBS): Remove.
5133 * solib.h (so_list_head): Remove.
5134 (update_solib_list): Update comment.
5135 * solib.c (master_so_list): Remove.
5136 (solib_used, update_solib_list, solib_add)
5137 (info_sharedlibrary_command, clear_solib)
5138 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5139
5140 2020-05-08 Tom Tromey <tom@tromey.com>
5141
5142 * extension.c (extension_languages): Now a std::array.
5143 (ALL_EXTENSION_LANGUAGES): Remove.
5144 (get_ext_lang_defn, get_ext_lang_of_file)
5145 (eval_ext_lang_from_control_command): Update.
5146 (finish_ext_lang_initialization)
5147 (auto_load_ext_lang_scripts_for_objfile)
5148 (ext_lang_type_printers::ext_lang_type_printers)
5149 (apply_ext_lang_type_printers)
5150 (ext_lang_type_printers::~ext_lang_type_printers)
5151 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5152 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5153 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5154 (get_matching_xmethod_workers, ext_lang_colorize)
5155 (ext_lang_before_prompt): Update.
5156 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5157
5158 2020-05-08 Tom Tromey <tom@tromey.com>
5159
5160 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5161 overload.
5162 <swap_string, m_string>: Remove.
5163 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5164 Update.
5165 * stabsread.c (define_symbol, read_type): Update.
5166 * linespec.c (find_linespec_symbols): Update.
5167 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5168 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5169 * dbxread.c (read_dbx_symtab): Update.
5170 * cp-support.h (cp_canonicalize_string_full)
5171 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5172 Return unique_xmalloc_ptr.
5173 * cp-support.c (inspect_type): Update.
5174 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5175 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5176 Likewise.
5177 * c-typeprint.c (print_name_maybe_canonical): Update.
5178 * break-catch-throw.c (check_status_exception_catchpoint):
5179 Update.
5180
5181 2020-05-08 Tom de Vries <tdevries@suse.de>
5182
5183 * infrun.c (follow_fork): Copy current_line and current_symtab to
5184 child thread.
5185
5186 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5187
5188 * async-event.c (struct async_signal_handler, struct
5189 async_event_handler): Reformat, remove typedef.
5190
5191 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5192
5193 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5194 access thistype->main_type->dyn_prop_list directly.
5195
5196 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5197
5198 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5199 (remove_dyn_prop): Remove. Update all users to use
5200 type::remove_dyn_prop.
5201 * gdbtypes.c (remove_dyn_prop): Rename to...
5202 (type::remove_dyn_prop): ... this.
5203
5204 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5205
5206 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5207 (add_dyn_prop): Remove. Update all users to use
5208 type::add_dyn_prop.
5209 * gdbtypes.c (add_dyn_prop): Rename to...
5210 (type::add_dyn_prop): ... this.
5211
5212 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5213
5214 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5215 (get_dyn_prop): Remove. Update all users to use
5216 type::dyn_prop.
5217 * gdbtypes.c (get_dyn_prop): Rename to...
5218 (type::dyn_prop): ... this.
5219
5220 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5221
5222 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5223
5224 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5225
5226 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5227 instruction, skip it if it's there.
5228
5229 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5230
5231 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5232
5233 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5234
5235 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5236 * gdbtypes.c (recursive_dump_type): Remove use of
5237 TYPE_INCOMPLETE.
5238
5239 2020-05-03 Tom Tromey <tom@tromey.com>
5240
5241 * breakpoint.c (catch_command, tcatch_command): Remove.
5242 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5243 add_show_prefix_cmd.
5244 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5245 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5246 Remove.
5247 (add_internal_problem_command): Use add_basic_prefix_cmd,
5248 add_show_prefix_cmd.
5249 * mips-tdep.c (set_mipsfpu_command): Remove.
5250 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5251 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5252 (_initialize_index_cache): Use add_basic_prefix_cmd.
5253 * memattr.c (dummy_cmd): Remove.
5254 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5255 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5256 (_initialize_tui_win): Use add_basic_prefix_cmd,
5257 add_show_prefix_cmd.
5258 * cli/cli-logging.c (set_logging_command): Remove.
5259 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5260 add_show_prefix_cmd.
5261 (show_logging_command): Remove.
5262 * target.c (target_command): Remove.
5263 (add_target): Use add_basic_prefix_cmd.
5264
5265 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5266
5267 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5268
5269 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5270
5271 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5272 info_command.
5273
5274 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5275
5276 * nbsd-nat.c (nbsd_enable_proc_events)
5277 (nbsd_nat_target::post_startup_inferior): Add.
5278 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5279 (nbsd_nat_target::update_thread_list): Rewrite.
5280 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5281 "PTRACE_LWP_CREATE".
5282 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5283
5284 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5285
5286 * stack.c (_initialize_stack): Remove duplicated creation
5287 of "frame" command and "f" alias.
5288
5289 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5290
5291 PR gdb/18706
5292 * gdbtypes.c (check_typedef): Calculate size of array of
5293 stubbed type.
5294
5295 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5296
5297 PR gdb/15559
5298 * i386-tdep.c (i386_push_dummy_call): Call
5299 i386_thiscall_push_dummy_call.
5300 (i386_thiscall_push_dummy_call): New function.
5301 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5302 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5303 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5304
5305 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5306
5307 * gdbarch.sh (do_read): Add shellcheck disable directive for
5308 warning SC2162.
5309
5310 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5311
5312 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5313 "referenced but not assigned" warning.
5314
5315 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5316
5317 * gdbarch.sh: Remove code that sets fallbackdefault.
5318
5319 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5320
5321 * gdbarch.sh: Use shell operators && and || instead of
5322 -a and -o.
5323
5324 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5325
5326 * gdbarch.sh: Use $(...) instead of `...`.
5327
5328 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5329
5330 * gdbarch.sh: Use double quotes around variables.
5331
5332 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5333
5334 * gdbarch.sh: Use %s with printf, instead of variables in the
5335 format string.
5336
5337 2020-04-29 Tom Tromey <tromey@adacore.com>
5338
5339 PR ada/25875:
5340 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5341 type fields here.
5342 (read_enumeration_type): Call
5343 update_enumeration_type_from_children later. Update comments.
5344 (process_enumeration_scope): Don't create type fields.
5345
5346 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5347
5348 * nbsd-tdep.c: Include "xml-syscall.h".
5349 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5350
5351 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5352
5353 * nbsd-nat.c: Include "sys/wait.h".
5354 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5355 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5356 (nbsd_nat_target::remove_exec_catchpoint)
5357 (nbsd_nat_target::set_syscall_catchpoint): Add.
5358 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5359 (nbsd_nat_target::insert_exec_catchpoint)
5360 (nbsd_nat_target::remove_exec_catchpoint)
5361 (nbsd_nat_target::set_syscall_catchpoint): Add.
5362 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5363 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5364 `nbsd_get_syscall_number'.
5365
5366 2020-04-29 Tom Tromey <tom@tromey.com>
5367
5368 * stack.c (print_block_frame_labels): Remove.
5369
5370 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5371
5372 PR gdb/17320
5373 * ada-valprint.c (val_print_packed_array_elements): Move array
5374 end bracket to new line.
5375 (ada_val_print_string): Remove extra spaces before first array
5376 element.
5377 * c-valprint.c (c_value_print_array): Likewise.
5378 * m2-valprint.c (m2_print_array_contents): Likewise.
5379 (m2_value_print_inner): Likewise.
5380 * p-valprint.c (pascal_value_print_inner): Likewise.
5381 * valprint.c (generic_val_print_array): Likewise.
5382 (value_print_array_elements): Move first array element and array
5383 end bracket to new line.
5384
5385 2020-04-29 Tom de Vries <tdevries@suse.de>
5386
5387 PR symtab/25889
5388 * linespec.c (find_method): Fix ix calculation.
5389
5390 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5391
5392 * syscalls/update-netbsd.sh: New file.
5393 * syscalls/netbsd.xml: Regenerate.
5394 * data-directory/Makefile.in: Register `netbsd.xml' in
5395 `SYSCALLS_FILES'.
5396
5397 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5398
5399 * syscalls/update-freebsd.sh: Add double quotes.
5400
5401 2020-04-28 Tom Tromey <tom@tromey.com>
5402
5403 * NEWS: Update.
5404 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5405 (cmdpy_init): Allow class_tui.
5406
5407 2020-04-28 Mark Williams <mark@myosotissp.com>
5408
5409 PR gdb/24480
5410 * dwarf2read.c: Add missing assingments to list_in_scope when
5411 start_symtab was already called.
5412
5413 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5414
5415 PR gdb/25881
5416 * dwarf2/read.c (offset_map_type): Use
5417 gdb:hash_enum<sect_offset> as hash function.
5418
5419 2020-04-28 Tom de Vries <tdevries@suse.de>
5420
5421 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5422 with DW_AT_signature.
5423
5424 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5425
5426 * configure.ac: Remove check for fs_base/gs_base in
5427 user_regs_struct.
5428 * configure: Re-generate.
5429 * config.in: Re-generate.
5430 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5431 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5432 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5433
5434 2020-04-27 Luis Machado <luis.machado@linaro.org>
5435
5436 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5437 problematic inline frame unwinding situation.
5438 * frame.c (frame_id_computed_p): New function.
5439 * frame.h (frame_id_computed_p): New prototype.
5440
5441 2020-04-26 Tom Tromey <tom@tromey.com>
5442
5443 * command.h (enum command_class) <class_pseudo>: Remove.
5444
5445 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5446
5447 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5448 and whitespace.
5449
5450 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5451
5452 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5453 `PT_GET_PROCESS_STATE' block.
5454
5455 2020-04-24 Tom Tromey <tom@tromey.com>
5456
5457 * symtab.h (symbol_get_demangled_name): Don't declare.
5458 * symtab.c (symbol_get_demangled_name): Remove.
5459 (general_symbol_info::natural_name)
5460 (general_symbol_info::demangled_name): Update.
5461
5462 2020-04-24 Tom Tromey <tom@tromey.com>
5463
5464 PR rust/25025:
5465 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5466
5467 2020-04-24 Tom Tromey <tom@tromey.com>
5468
5469 PR symtab/12707:
5470 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5471 exists.
5472 (new_symbol): Likewise.
5473 * compile/compile-object-load.c (get_out_value_type): Use
5474 symbol_matches_search_name.
5475
5476 2020-04-24 Tom Tromey <tom@tromey.com>
5477
5478 * dwarf2/read.c (add_partial_symbol): Do not call
5479 compute_and_set_names.
5480
5481 2020-04-24 Tom Tromey <tom@tromey.com>
5482
5483 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5484 overload.
5485
5486 2020-04-24 Tom Tromey <tom@tromey.com>
5487
5488 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5489 (add_psymbol_to_list): New overload. Make old overload call new
5490 one.
5491 * psympriv.h (add_psymbol_to_list): New overload.
5492
5493 2020-04-24 Tom Tromey <tom@tromey.com>
5494
5495 * dwarf2/read.c (partial_die_info::read) <case
5496 DW_AT_linkage_name>: Use value_as_string.
5497 (dwarf2_string_attr): Use value_as_string.
5498 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5499 method.
5500 * dwarf2/attribute.c (attribute::value_as_string): New method.
5501
5502 2020-04-24 Tom Tromey <tom@tromey.com>
5503
5504 * symtab.c (general_symbol_info::natural_name)
5505 (general_symbol_info::demangled_name): Check for language_rust.
5506
5507 2020-04-24 Tom Tromey <tom@tromey.com>
5508
5509 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5510 (dwarf2_physname): ... from here.
5511 (partial_die_info::read): Add Rust "{" hack.
5512
5513 2020-04-24 Tom Tromey <tom@tromey.com>
5514
5515 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5516 method.
5517 (symbol_set_demangled_name): Don't declare.
5518 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5519 symbol_set_demangled_name.
5520 (general_symbol_info::set_language)
5521 (general_symbol_info::compute_and_set_names): Update.
5522 * minsyms.c (minimal_symbol_reader::install): Update.
5523 * dwarf2/read.c (new_symbol): Update.
5524
5525 2020-04-24 Tom Tromey <tromey@adacore.com>
5526
5527 PR python/23662:
5528 * python/py-type.c (convert_field): Handle
5529 FIELD_LOC_KIND_DWARF_BLOCK.
5530 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5531 (typy_get_dynamic): Nw function.
5532 (type_object_getset): Add "dynamic".
5533 * NEWS: Add entry.
5534
5535 2020-04-24 Tom Tromey <tromey@adacore.com>
5536
5537 * ada-typeprint.c (print_choices, print_variant_part)
5538 (print_record_field_types_dynamic): New functions.
5539 (print_record_field_types): Use print_record_field_types_dynamic.
5540
5541 2020-04-24 Tom Tromey <tromey@adacore.com>
5542
5543 * dwarf2/read.c (handle_data_member_location): New overload.
5544 (dwarf2_add_field): Use it.
5545 (decode_locdesc): Add "computed" parameter. Update comment.
5546 * gdbtypes.c (is_dynamic_type_internal): Also look for
5547 FIELD_LOC_KIND_DWARF_BLOCK.
5548 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5549 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5550 virtual base classes.
5551 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5552 FIELD_LOC_KIND_DWARF_BLOCK.
5553
5554 2020-04-24 Tom Tromey <tromey@adacore.com>
5555
5556 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5557 * gdbtypes.c (is_dynamic_type_internal): Check
5558 TYPE_HAS_DYNAMIC_LENGTH.
5559 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5560 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5561 New macros.
5562 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5563 constant.
5564
5565 2020-04-24 Tom Tromey <tromey@adacore.com>
5566
5567 * dwarf2/read.c (struct variant_field): Rewrite.
5568 (struct variant_part_builder): New.
5569 (struct nextfield): Remove "variant" field. Add "offset".
5570 (struct field_info): Add "current_variant_part" and
5571 "variant_parts".
5572 (alloc_discriminant_info): Remove.
5573 (alloc_rust_variant): New function.
5574 (quirk_rust_enum): Update.
5575 (dwarf2_add_field): Set "offset" member. Don't handle
5576 DW_TAG_variant_part.
5577 (offset_map_type): New typedef.
5578 (convert_variant_range, create_one_variant)
5579 (create_one_variant_part, create_variant_parts)
5580 (add_variant_property): New functions.
5581 (dwarf2_attach_fields_to_type): Call add_variant_property.
5582 (read_structure_type): Don't handle DW_TAG_variant_part.
5583 (handle_variant_part, handle_variant): New functions.
5584 (handle_struct_member_die): Use them.
5585 (process_structure_scope): Don't handle variant parts.
5586 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5587 (struct discriminant_info): Remove.
5588 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5589 (struct main_type) <flag_discriminated_union>: Remove.
5590 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5591 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5592 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5593 Update.
5594 * valops.c (value_union_variant): Remove.
5595 * value.h (value_union_variant): Don't declare.
5596
5597 2020-04-24 Tom Tromey <tromey@adacore.com>
5598
5599 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5600 (ada_value_primitive_packed_val): Update.
5601 * ada-valprint.c (ada_value_print_1): Update.
5602 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5603 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5604 just an address. Use evaluate_for_locexpr_baton.
5605 (dwarf2_evaluate_property): Update.
5606 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5607 array_view.
5608 * findvar.c (default_read_var_value): Update.
5609 * gdbtypes.c (compute_variant_fields_inner)
5610 (resolve_dynamic_type_internal): Update.
5611 (resolve_dynamic_type): Change type of valaddr parameter.
5612 * gdbtypes.h (resolve_dynamic_type): Update.
5613 * valarith.c (value_subscripted_rvalue): Update.
5614 * value.c (value_from_contents_and_address): Update.
5615
5616 2020-04-24 Tom Tromey <tromey@adacore.com>
5617
5618 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5619 "push_initial_value" parameter.
5620 (dwarf2_evaluate_property): Likewise.
5621 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5622
5623 2020-04-24 Tom Tromey <tromey@adacore.com>
5624
5625 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5626 (variant::matches, compute_variant_fields_recurse)
5627 (compute_variant_fields_inner, compute_variant_fields): New
5628 functions.
5629 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5630 Use resolved_type after type is made.
5631 (operator==): Add new cases.
5632 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5633 (struct discriminant_range, struct variant, struct variant_part):
5634 New.
5635 (union dynamic_prop_data) <variant_parts, original_type>: New
5636 members.
5637 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5638 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5639 constants.
5640 * value.c (unpack_bits_as_long): Now public.
5641 * value.h (unpack_bits_as_long): Declare.
5642
5643 2020-04-24 Tom Tromey <tromey@adacore.com>
5644
5645 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5646 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5647
5648 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5649
5650 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5651
5652 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5653
5654 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5655 (remove_fork_catchpoint, post_startup_inferior)
5656 (post_attach): Move...
5657 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5658 (remove_fork_catchpoint, post_startup_inferior)
5659 (post_attach): ...here.
5660 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5661 (remove_fork_catchpoint, post_startup_inferior)
5662 (post_attach): Move...
5663 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5664 (remove_fork_catchpoint, post_startup_inferior)
5665 (post_attach): ...here.
5666
5667 2020-04-24 Tom Tromey <tromey@adacore.com>
5668
5669 * nat/windows-nat.h (struct windows_thread_info)
5670 <pc_adjusted>: New member.
5671 * windows-nat.c (windows_fetch_one_register): Check
5672 pc_adjusted.
5673 (windows_nat_target::get_windows_debug_event)
5674 (windows_nat_target::wait): Set pc_adjusted.
5675
5676 2020-04-24 Tom de Vries <tdevries@suse.de>
5677
5678 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5679 Run gdb-add-index inside temp dir.
5680
5681 2020-04-23 Tom Tromey <tromey@adacore.com>
5682
5683 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5684 in loop.
5685
5686 2020-04-23 Luis Machado <luis.machado@linaro.org>
5687
5688 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5689 get_frame_register instead of gdbarch_unwind_pc.
5690
5691 2020-04-23 Tom de Vries <tdevries@suse.de>
5692
5693 * symtab.c (lookup_global_symbol): Prefer def over decl.
5694
5695 2020-04-23 Tom de Vries <tdevries@suse.de>
5696
5697 PR symtab/25807
5698 * block.c (best_symbol, better_symbol): Promote to external.
5699 * block.h (best_symbol, better_symbol): Declare.
5700 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5701 decl.
5702
5703 2020-04-23 Tom Tromey <tromey@adacore.com>
5704
5705 PR ada/25837:
5706 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5707 "const char *", not a "const std::string &".
5708 <name_and_matcher::operator==>: Update.
5709 * unittests/lookup_name_info-selftests.c: Change type of
5710 "result".
5711
5712 2020-04-23 Tom Tromey <tom@tromey.com>
5713
5714 * inferior.h (iterate_over_inferiors): Don't declare.
5715 * inferior.c (iterate_over_inferiors): Remove.
5716 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5717 Remove.
5718 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5719 use iterate_over_inferiors.
5720 (darwin_resume_inferior_it)
5721 (struct resume_inferior_threads_param)
5722 (darwin_resume_inferior_threads_it): Remove.
5723 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5724
5725 2020-04-23 Tom de Vries <tdevries@suse.de>
5726
5727 * blockframe.c (find_pc_partial_function): Use
5728 find_pc_sect_compunit_symtab rather than
5729 objfile->sf->qf->find_pc_sect_compunit_symtab.
5730
5731 2020-04-22 Tom de Vries <tdevries@suse.de>
5732
5733 PR symtab/25764
5734 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5735 in psymtabs.
5736
5737 2020-04-22 Tom de Vries <tdevries@suse.de>
5738
5739 PR symtab/25801
5740 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5741 symtabs.
5742
5743 2020-04-22 Tom de Vries <tdevries@suse.de>
5744
5745 PR symtab/25700
5746 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5747 CU if already created.
5748
5749 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5750
5751 * infrun.c (displaced_step_fixup): Switch to the event_thread
5752 before calling displaced_step_restore, not after.
5753
5754 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5755
5756 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5757 its inferior is not recorded by us.
5758 (record_btrace_target_open): Replace call to
5759 all_non_exited_threads () with call to current_inferior
5760 ()->non_exited_threads ().
5761 (record_btrace_target::stop_recording): Likewise.
5762 (record_btrace_target::close): Likewise.
5763 (record_btrace_target::wait): Likewise.
5764 (record_btrace_target::record_stop_replaying): Likewise.
5765
5766 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5767
5768 * btrace.c (btrace_enable): Throw an error on double enables and
5769 when enabling recording fails.
5770 (btrace_disable): Throw an error if the thread is not recorded.
5771
5772 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5773
5774 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5775 request if we do not have a thread_info.
5776
5777 2020-04-21 Tom de Vries <tdevries@suse.de>
5778
5779 PR gdb/25471
5780 * thread.c
5781 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5782 exception in get_frame_id.
5783
5784 2020-04-20 Tom Tromey <tromey@adacore.com>
5785
5786 * python/python.c (struct gdbpy_event): Mark move constructor as
5787 noexcept.
5788 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5789 constructor as noexcept.
5790 * completer.h (struct completion_result): Mark move constructor as
5791 noexcept.
5792 * completer.c (completion_result::completion_result): Use
5793 initialization style. Don't call reset_match_list.
5794
5795 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5796
5797 * MAINTAINERS (Write After Approval): Add myself.
5798
5799 2020-04-18 Tom Tromey <tom@tromey.com>
5800
5801 * windows-tdep.c (init_w32_command_list)
5802 (w32_prefix_command_valid): Restore.
5803 (_initialize_windows_tdep): Call init_w32_command_list.
5804
5805 2020-04-18 Tom Tromey <tom@tromey.com>
5806
5807 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5808 * value.c (value_fn_field): Update.
5809 * valops.c (find_function_in_inferior)
5810 (value_allocate_space_in_inferior): Update.
5811 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5812 Update.
5813 * tui/tui-source.c (tui_source_window::set_contents): Update.
5814 * symtab.c (lookup_global_or_static_symbol)
5815 (find_function_start_sal_1, skip_prologue_sal)
5816 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5817 * symmisc.c (dump_msymbols, dump_symtab_1)
5818 (maintenance_print_one_line_table): Update.
5819 * symfile.c (init_entry_point_info, section_is_mapped)
5820 (list_overlays_command, simple_read_overlay_table)
5821 (simple_overlay_update_1): Update.
5822 * stap-probe.c (handle_stap_probe): Update.
5823 * stabsread.c (dbx_init_float_type, define_symbol)
5824 (read_one_struct_field, read_enum_type, read_range_type): Update.
5825 * source.c (info_line_command): Update.
5826 * python/python.c (gdbpy_source_objfile_script)
5827 (gdbpy_execute_objfile_script): Update.
5828 * python/py-type.c (save_objfile_types): Update.
5829 * python/py-objfile.c (py_free_objfile): Update.
5830 * python/py-inferior.c (python_new_objfile): Update.
5831 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5832 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5833 (maintenance_check_psymtabs): Update.
5834 * printcmd.c (info_address_command): Update.
5835 * objfiles.h (struct objfile) <arch>: New method, from
5836 get_objfile_arch.
5837 (get_objfile_arch): Don't declare.
5838 * objfiles.c (get_objfile_arch): Remove.
5839 (filter_overlapping_sections): Update.
5840 * minsyms.c (msymbol_is_function): Update.
5841 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5842 (output_nondebug_symbol): Update.
5843 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5844 (mdebug_expand_psymtab): Update.
5845 * machoread.c (macho_add_oso_symfile): Update.
5846 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5847 Update.
5848 * linux-fork.c (checkpoint_command): Update.
5849 * linespec.c (convert_linespec_to_sals): Update.
5850 * jit.c (finalize_symtab): Update.
5851 * infrun.c (insert_exception_resume_from_probe): Update.
5852 * ia64-tdep.c (ia64_find_unwind_table): Update.
5853 * hppa-tdep.c (internalize_unwinds): Update.
5854 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5855 Update.
5856 * gcore.c (call_target_sbrk): Update.
5857 * elfread.c (record_minimal_symbol, elf_symtab_read)
5858 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5859 (elf_gnu_ifunc_resolve_by_got): Update.
5860 * dwarf2/read.c (create_addrmap_from_index)
5861 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5862 (read_debug_names_from_section)
5863 (process_psymtab_comp_unit_reader, add_partial_symbol)
5864 (add_partial_subprogram, process_full_comp_unit)
5865 (read_file_scope, read_func_scope, read_lexical_block_scope)
5866 (read_call_site_scope, dwarf2_ranges_read)
5867 (dwarf2_record_block_ranges, dwarf2_add_field)
5868 (mark_common_block_symbol_computed, read_tag_pointer_type)
5869 (read_tag_string_type, dwarf2_init_float_type)
5870 (dwarf2_init_complex_target_type, read_base_type)
5871 (partial_die_info::read, partial_die_info::read)
5872 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5873 (dwarf2_fetch_die_loc_sect_off): Update.
5874 * dwarf2/loc.c (dwarf2_find_location_expression)
5875 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5876 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5877 (dwarf2_loc_desc_get_symbol_read_needs)
5878 (locexpr_describe_location_piece, locexpr_describe_location_1)
5879 (loclist_describe_location): Update.
5880 * dwarf2/index-write.c (write_debug_names): Update.
5881 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5882 * dtrace-probe.c (dtrace_process_dof): Update.
5883 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5884 (process_one_symbol): Update.
5885 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5886 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5887 (coff_read_enum_type): Update.
5888 * cli/cli-cmds.c (edit_command, list_command): Update.
5889 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5890 * breakpoint.c (create_overlay_event_breakpoint)
5891 (create_longjmp_master_breakpoint)
5892 (create_std_terminate_master_breakpoint)
5893 (create_exception_master_breakpoint, get_sal_arch): Update.
5894 * block.c (block_gdbarch): Update.
5895 * annotate.c (annotate_source_line): Update.
5896
5897 2020-04-17 Tom Tromey <tromey@adacore.com>
5898
5899 * auto-load.c (show_auto_load_cmd): Remove.
5900 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5901 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5902 (maintenance_print_arc_command): Remove.
5903 * tui/tui-win.c (tui_command): Remove.
5904 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5905 * tui/tui-layout.c (tui_layout_command): Remove.
5906 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5907 * python/python.c (user_set_python, user_show_python): Remove.
5908 (_initialize_python): Use add_basic_prefix_cmd,
5909 add_show_prefix_cmd.
5910 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5911 (install_gdb_commands): Use add_basic_prefix_cmd,
5912 add_show_prefix_cmd.
5913 (info_guile_command): Remove.
5914 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5915 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5916 add_show_prefix_cmd.
5917 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5918 Remove do_set and do_show parameters.
5919 * cli/cli-style.c (set_style, show_style): Remove.
5920 (_initialize_cli_style): Use add_basic_prefix_cmd,
5921 add_show_prefix_cmd.
5922 (cli_style_option::add_setshow_commands): Remove do_set and
5923 do_show parameters.
5924 (cli_style_option::add_setshow_commands): Use
5925 add_basic_prefix_cmd, add_show_prefix_cmd.
5926 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5927 (set_style_name): Remove.
5928 * cli/cli-dump.c (dump_command, append_command): Remove.
5929 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5930 (tekhex_dump_command, binary_dump_command)
5931 (binary_append_command): Remove.
5932 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5933 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5934 (init_w32_command_list): Remove; move into ...
5935 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5936 * valprint.c (set_print, show_print, set_print_raw)
5937 (show_print_raw): Remove.
5938 (_initialize_valprint): Use add_basic_prefix_cmd,
5939 add_show_prefix_cmd.
5940 * typeprint.c (set_print_type, show_print_type): Remove.
5941 (_initialize_typeprint): Use add_basic_prefix_cmd,
5942 add_show_prefix_cmd.
5943 * record.c (set_record_command, show_record_command): Remove.
5944 (_initialize_record): Use add_basic_prefix_cmd,
5945 add_show_prefix_cmd.
5946 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5947 add_show_prefix_cmd.
5948 (info_command, show_command, set_debug, show_debug): Remove.
5949 * top.h (set_history, show_history): Don't declare.
5950 * top.c (set_history, show_history): Remove.
5951 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5952 (unset_tdesc_cmd): Remove.
5953 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5954 add_show_prefix_cmd.
5955 * symtab.c (info_module_command): Remove.
5956 (_initialize_symtab): Use add_basic_prefix_cmd.
5957 * symfile.c (overlay_command): Remove.
5958 (_initialize_symfile): Use add_basic_prefix_cmd.
5959 * sparc64-tdep.c (info_adi_command): Remove.
5960 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5961 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5962 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5963 add_show_prefix_cmd.
5964 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5965 (_initialize_serial): Use add_basic_prefix_cmd,
5966 add_show_prefix_cmd.
5967 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5968 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5969 add_show_prefix_cmd.
5970 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5971 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5972 add_show_prefix_cmd.
5973 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5974 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5975 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5976 add_show_prefix_cmd.
5977 * remote.c (remote_command, set_remote_cmd): Remove.
5978 (_initialize_remote): Use add_basic_prefix_cmd.
5979 * record-full.c (set_record_full_command)
5980 (show_record_full_command): Remove.
5981 (_initialize_record_full): Use add_basic_prefix_cmd,
5982 add_show_prefix_cmd.
5983 * record-btrace.c (cmd_set_record_btrace)
5984 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5985 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5986 (cmd_show_record_btrace_pt): Remove.
5987 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5988 add_show_prefix_cmd.
5989 * ravenscar-thread.c (set_ravenscar_command)
5990 (show_ravenscar_command): Remove.
5991 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5992 add_show_prefix_cmd.
5993 * mips-tdep.c (show_mips_command, set_mips_command)
5994 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5995 add_show_prefix_cmd.
5996 * maint.c (maintenance_command, maintenance_info_command)
5997 (maintenance_check_command, maintenance_print_command)
5998 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5999 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6000 add_show_prefix_cmd.
6001 (show_per_command_cmd): Remove.
6002 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6003 Remove.
6004 (maintenance_show_test_settings_cmd): Remove.
6005 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6006 add_show_prefix_cmd.
6007 * maint-test-options.c (maintenance_test_options_command):
6008 Remove.
6009 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6010 * macrocmd.c (macro_command): Remove
6011 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6012 * language.c (set_check, show_check): Remove.
6013 (_initialize_language): Use add_basic_prefix_cmd,
6014 add_show_prefix_cmd.
6015 * infcmd.c (unset_command): Remove.
6016 (_initialize_infcmd): Use add_basic_prefix_cmd.
6017 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6018 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6019 add_show_prefix_cmd.
6020 * go32-nat.c (go32_info_dos_command): Remove.
6021 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6022 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6023 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6024 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6025 (_initialize_frame): Use add_basic_prefix_cmd,
6026 add_show_prefix_cmd.
6027 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6028 (_initialize_dcache): Use add_basic_prefix_cmd,
6029 add_show_prefix_cmd.
6030 * cp-support.c (maint_cplus_command): Remove.
6031 (_initialize_cp_support): Use add_basic_prefix_cmd.
6032 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6033 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6034 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6035 add_basic_prefix_cmd, add_show_prefix_cmd.
6036 * breakpoint.c (save_command): Remove.
6037 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6038 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6039 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6040 add_show_prefix_cmd.
6041 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6042 (set_ada_command, show_ada_command): Remove.
6043 (_initialize_ada_language): Use add_basic_prefix_cmd,
6044 add_show_prefix_cmd.
6045 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6046
6047 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6048
6049 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6050 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6051
6052 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6053
6054 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6055 warning messages.
6056
6057 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6058
6059 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6060 import table is not at beginning of .idata section.
6061
6062 2020-04-16 Pedro Alves <palves@redhat.com>
6063
6064 * inferior.c (delete_inferior): Use delete operator directly
6065 instead of delete_program_space.
6066 * progspace.c (add_program_space): New, factored out from
6067 program_space::program_space.
6068 (remove_program_space): New, factored out from
6069 delete_program_space.
6070 (program_space::program_space): Remove intro comment. Rewrite.
6071 (program_space::~program_space): Remove intro comment. Call
6072 remove_program_space.
6073 (delete_program_space): Delete.
6074 * progspace.h (program_space::program_space): Make explicit. Move
6075 intro comment here, adjusted.
6076 (program_space::~program_space): Move intro comment here,
6077 adjusted.
6078 (delete_program_space): Remove.
6079
6080 2020-04-16 Tom Tromey <tromey@adacore.com>
6081
6082 * windows-nat.c (windows_nat::handle_access_violation): New
6083 function.
6084 * nat/windows-nat.h (handle_access_violation): Declare.
6085 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6086 windows-nat.c. Call handle_access_violation.
6087
6088 2020-04-16 Tom de Vries <tdevries@suse.de>
6089
6090 PR symtab/25791
6091 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6092 CUs without psymtab.
6093
6094 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6095
6096 * python/python.c (do_start_initialization): Don't call
6097 PyEval_InitThreads for Python 3.9 and beyond.
6098
6099 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6100
6101 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6102 thread functions.
6103 (obsd_nat_target::wait): Likewise.
6104
6105 2020-04-15 Tom Tromey <tromey@adacore.com>
6106
6107 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6108 (DEBUG_EXCEPT): Use debug_printf.
6109
6110 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6111
6112 * completer.c (class completion_tracker::completion_hash_entry)
6113 <hash_name>: New member function.
6114 (completion_tracker::discard_completions): New callback to hash a
6115 completion_hash_entry, pass this to htab_create_alloc.
6116
6117 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6118
6119 * windows-nat.c (windows_make_so): Warn rather than stopping with
6120 an error if realpath() fails.
6121
6122 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6123
6124 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6125 (nbsd_nat_target::info_proc): Add do_status.
6126
6127 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6128 Tom de Vries <tdevries@suse.de>
6129
6130 PR symtab/25718
6131 * psympriv.h (struct partial_symtab::read_symtab)
6132 (struct partial_symtab::expand_psymtab)
6133 (struct partial_symtab::read_dependencies): Update comments.
6134 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6135 read_symtab for includer.
6136 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6137 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6138 (struct dwarf2_include_psymtab::m_readin): Remove.
6139 (struct dwarf2_include_psymtab::includer): New member function.
6140 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6141
6142 2020-04-14 Tom de Vries <tdevries@suse.de>
6143
6144 PR symtab/25720
6145 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6146 with NULL symbol_matcher and lookup_name.
6147 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6148 and lookup_name.
6149 * dwarf2/read.c (dw2_expand_symtabs_matching)
6150 (dw2_debug_names_expand_symtabs_matching): Same.
6151 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6152 Make lookup_name a pointer. Update comment.
6153 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6154 lookup_name being a pointer.
6155 * symfile.c (expand_symtabs_matching): Same.
6156 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6157 * linespec.c (iterate_over_all_matching_symtabs): Same.
6158
6159 2020-04-13 Tom Tromey <tom@tromey.com>
6160
6161 * run-on-main-thread.c: Update include.
6162 * unittests/main-thread-selftests.c: Update include.
6163 * tui/tui-win.c: Update include.
6164 * tui/tui-io.c: Update include.
6165 * tui/tui-interp.c: Update include.
6166 * tui/tui-hooks.c: Update include.
6167 * top.h: Update include.
6168 * top.c: Update include.
6169 * ser-base.c: Update include.
6170 * remote.c: Update include.
6171 * remote-notif.c: Update include.
6172 * remote-fileio.c: Update include.
6173 * record-full.c: Update include.
6174 * record-btrace.c: Update include.
6175 * python/python.c: Update include.
6176 * posix-hdep.c: Update include.
6177 * mingw-hdep.c: Update include.
6178 * mi/mi-main.c: Update include.
6179 * mi/mi-interp.c: Update include.
6180 * main.c: Update include.
6181 * linux-nat.c: Update include.
6182 * interps.c: Update include.
6183 * infrun.c: Update include.
6184 * inf-loop.c: Update include.
6185 * event-top.c: Update include.
6186 * event-loop.c: Move to ../gdbsupport/.
6187 * event-loop.h: Move to ../gdbsupport/.
6188 * async-event.h: Update include.
6189 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6190
6191 2020-04-13 Tom Tromey <tom@tromey.com>
6192
6193 * tui/tui-win.c: Include async-event.h.
6194 * remote.c: Include async-event.h.
6195 * remote-notif.c: Include async-event.h.
6196 * record-full.c: Include async-event.h.
6197 * record-btrace.c: Include async-event.h.
6198 * infrun.c: Include async-event.h.
6199 * event-top.c: Include async-event.h.
6200 * event-loop.h: Move some declarations to async-event.h.
6201 * event-loop.c: Don't include ser-event.h or top.h. Move some
6202 code to async-event.c.
6203 * async-event.h: New file.
6204 * async-event.c: New file.
6205 * Makefile.in (COMMON_SFILES): Add async-event.c.
6206 (HFILES_NO_SRCDIR): Add async-event.h.
6207
6208 2020-04-13 Tom Tromey <tom@tromey.com>
6209
6210 * utils.c (flush_streams): New function.
6211 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6212
6213 2020-04-13 Tom Tromey <tom@tromey.com>
6214
6215 * event-loop.c (handle_file_event): Use warning, not
6216 printf_unfiltered.
6217
6218 2020-04-13 Tom Tromey <tom@tromey.com>
6219
6220 * event-loop.c: Include <chrono>.
6221
6222 2020-04-13 Tom Tromey <tom@tromey.com>
6223
6224 * gdb_select.h: Move to ../gdbsupport/.
6225 * event-loop.c: Update include path.
6226 * top.c: Update include path.
6227 * ser-base.c: Update include path.
6228 * ui-file.c: Update include path.
6229 * ser-tcp.c: Update include path.
6230 * guile/scm-ports.c: Update include path.
6231 * posix-hdep.c: Update include path.
6232 * ser-unix.c: Update include path.
6233 * gdb_usleep.c: Update include path.
6234 * mingw-hdep.c: Update include path.
6235 * inflow.c: Update include path.
6236 * infrun.c: Update include path.
6237 * event-top.c: Update include path.
6238
6239 2020-04-13 Tom Tromey <tom@tromey.com>
6240
6241 * configure: Rebuild.
6242 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6243
6244 2020-04-13 Tom Tromey <tom@tromey.com>
6245
6246 * event-loop.h (start_event_loop): Don't declare.
6247 * event-loop.c (start_event_loop): Move...
6248 * main.c (start_event_loop): ...here. Now static.
6249
6250 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6251
6252 * MAINTAINERS: Update my email address.
6253
6254 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6255
6256 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6257 IP_ALL.
6258
6259 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6260
6261 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6262 (nbsd_nat_target::info_proc): Add do_cmdline.
6263
6264 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6265
6266 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6267 (nbsd_nat_target::info_proc): Add do_cwd.
6268
6269 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6270
6271 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6272
6273 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6274
6275 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6276 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6277 (nbsd_nat_target::info_proc): New functions.
6278 * nbsd-nat.c (kinfo_get_vmmap): New function.
6279 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6280 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6281 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6282 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6283 functions.
6284 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6285 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6286 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6287 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6288 (KINFO_VME_FLAG_GROWS_DOWN): New.
6289
6290 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6291
6292 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6293 bit shift.
6294
6295 2020-04-10 Tom Tromey <tromey@adacore.com>
6296
6297 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6298
6299 2020-04-10 Tom Tromey <tromey@adacore.com>
6300
6301 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6302 separate debug files.
6303
6304 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6305
6306 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6307 Move to...
6308 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6309 ... here.
6310 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6311 Check for STATUS_WX86_BREAKPOINT.
6312 (windows_nat_target::wait): Same.
6313
6314 2020-04-10 Tom de Vries <tdevries@suse.de>
6315
6316 PR cli/25808
6317 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6318
6319 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6320
6321 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6322 (Write After Approval): Remove Tom de Vries.
6323
6324 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6325
6326 revert partially:
6327 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6328
6329 * buildsym.c (record_line): Fix undefined behavior and preserve
6330 lines at eof.
6331
6332 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6333
6334 * auxv.h (svr4_auxv_parse): New.
6335 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6336 and generic_auxv_parse.
6337 (svr4_auxv_parse): Add.
6338 * obsd-tdep.c: Include "auxv.h".
6339 (obsd_auxv_parse): Remove.
6340 (obsd_init_abi): Remove comment.
6341 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6342 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6343 * nbsd-tdep.c: Include "auxv.h".
6344 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6345
6346 2020-04-08 Tom Tromey <tromey@adacore.com>
6347
6348 * nat/windows-nat.h (last_wait_event): Don't declare.
6349 (wait_for_debug_event): Update comment.
6350 * nat/windows-nat.c (last_wait_event): Now static.
6351
6352 2020-04-08 Tom Tromey <tromey@adacore.com>
6353
6354 * windows-nat.c (wait_for_debug_event): Move to
6355 nat/windows-nat.c.
6356 * nat/windows-nat.h (wait_for_debug_event): Declare.
6357 * nat/windows-nat.c (wait_for_debug_event): Move from
6358 windows-nat.c. No longer static.
6359
6360 2020-04-08 Tom Tromey <tromey@adacore.com>
6361
6362 * windows-nat.c (get_windows_debug_event): Use
6363 fetch_pending_stop.
6364 * nat/windows-nat.h (fetch_pending_stop): Declare.
6365 * nat/windows-nat.c (fetch_pending_stop): New function.
6366
6367 2020-04-08 Tom Tromey <tromey@adacore.com>
6368
6369 * windows-nat.c (windows_continue): Use matching_pending_stop and
6370 continue_last_debug_event.
6371 * nat/windows-nat.h (matching_pending_stop)
6372 (continue_last_debug_event): Declare.
6373 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6374 (matching_pending_stop, continue_last_debug_event): New
6375 functions.
6376
6377 2020-04-08 Tom Tromey <tromey@adacore.com>
6378
6379 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6380 (handle_exception_result): Move to nat/windows-nat.h.
6381 (DEBUG_EXCEPTION_SIMPLE): Remove.
6382 (windows_nat::handle_ms_vc_exception): New function.
6383 (handle_exception): Move to nat/windows-nat.c.
6384 (get_windows_debug_event): Update.
6385 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6386 nat/windows-nat.c.
6387 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6388 (handle_exception_result): Move from windows-nat.c.
6389 (handle_exception): Declare.
6390 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6391 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6392 windows-nat.c.
6393
6394 2020-04-08 Tom Tromey <tromey@adacore.com>
6395
6396 * windows-nat.c (exception_count, event_count): Remove.
6397 (handle_exception, get_windows_debug_event)
6398 (do_initial_windows_stuff): Update.
6399
6400 2020-04-08 Tom Tromey <tromey@adacore.com>
6401
6402 * windows-nat.c (windows_nat::handle_load_dll)
6403 (windows_nat::handle_unload_dll): Rename. No longer static.
6404 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6405 Declare.
6406
6407 2020-04-08 Tom Tromey <tromey@adacore.com>
6408
6409 * complaints.h (stop_whining): Declare at top-level.
6410 (complaint): Don't declare stop_whining.
6411
6412 2020-04-08 Tom Tromey <tromey@adacore.com>
6413
6414 * windows-nat.c (windows_nat::handle_output_debug_string):
6415 Rename. No longer static.
6416 * nat/windows-nat.h (handle_output_debug_string): Declare.
6417
6418 2020-04-08 Tom Tromey <tromey@adacore.com>
6419
6420 * windows-nat.c (current_process_handle, current_process_id)
6421 (main_thread_id, last_sig, current_event, last_wait_event)
6422 (current_windows_thread, desired_stop_thread_id, pending_stops)
6423 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6424 (display_selectors, fake_create_process)
6425 (get_windows_debug_event): Update.
6426 * nat/windows-nat.h (current_process_handle, current_process_id)
6427 (main_thread_id, last_sig, current_event, last_wait_event)
6428 (current_windows_thread, desired_stop_thread_id, pending_stops)
6429 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6430 * nat/windows-nat.c (current_process_handle, current_process_id)
6431 (main_thread_id, last_sig, current_event, last_wait_event)
6432 (current_windows_thread, desired_stop_thread_id, pending_stops)
6433 (siginfo_er): New globals. Move from windows-nat.c.
6434
6435 2020-04-08 Tom Tromey <tromey@adacore.com>
6436
6437 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6438 (handle_load_dll): Update.
6439 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6440
6441 2020-04-08 Tom Tromey <tromey@adacore.com>
6442
6443 * windows-nat.c (enum thread_disposition_type): Move to
6444 nat/windows-nat.h.
6445 (windows_nat::thread_rec): Rename from thread_rec. No longer
6446 static.
6447 (windows_add_thread, windows_nat_target::fetch_registers)
6448 (windows_nat_target::store_registers, handle_exception)
6449 (windows_nat_target::resume, get_windows_debug_event)
6450 (windows_nat_target::get_tib_address)
6451 (windows_nat_target::thread_name)
6452 (windows_nat_target::thread_alive): Update.
6453 * nat/windows-nat.h (enum thread_disposition_type): Move from
6454 windows-nat.c.
6455 (thread_rec): Declare.
6456
6457 2020-04-08 Tom Tromey <tromey@adacore.com>
6458
6459 * windows-nat.c: Add "using namespace".
6460 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6461 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6462
6463 2020-04-08 Tom Tromey <tromey@adacore.com>
6464
6465 * nat/windows-nat.h (struct windows_thread_info): Declare
6466 destructor.
6467 * nat/windows-nat.c (~windows_thread_info): New.
6468
6469 2020-04-08 Tom Tromey <tromey@adacore.com>
6470
6471 PR gdb/22992
6472 * windows-nat.c (current_event): Update comment.
6473 (last_wait_event, desired_stop_thread_id): New globals.
6474 (struct pending_stop): New.
6475 (pending_stops): New global.
6476 (windows_nat_target) <stopped_by_sw_breakpoint>
6477 <supports_stopped_by_sw_breakpoint>: New methods.
6478 (windows_fetch_one_register): Add assertions. Adjust PC.
6479 (windows_continue): Handle pending stops. Suspend other threads
6480 when stepping. Use last_wait_event
6481 (wait_for_debug_event): New function.
6482 (get_windows_debug_event): Use wait_for_debug_event. Handle
6483 pending stops. Queue spurious stops.
6484 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6485 (windows_nat_target::kill): Use wait_for_debug_event.
6486 * nat/windows-nat.h (struct windows_thread_info)
6487 <stopped_at_software_breakpoint>: New field.
6488 * nat/windows-nat.c (windows_thread_info::resume): Clear
6489 stopped_at_software_breakpoint.
6490
6491 2020-04-08 Tom Tromey <tromey@adacore.com>
6492
6493 * windows-nat.c (enum thread_disposition_type): New.
6494 (thread_rec): Replace "get_context" parameter with "disposition";
6495 change type.
6496 (windows_add_thread, windows_nat_target::fetch_registers)
6497 (windows_nat_target::store_registers, handle_exception)
6498 (windows_nat_target::resume, get_windows_debug_event)
6499 (windows_nat_target::get_tib_address)
6500 (windows_nat_target::thread_name)
6501 (windows_nat_target::thread_alive): Update.
6502
6503 2020-04-08 Tom Tromey <tromey@adacore.com>
6504
6505 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6506 (windows_continue): Use windows_continue::resume.
6507 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6508 resume>: Declare new methods.
6509 * nat/windows-nat.c: New file.
6510 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6511
6512 2020-04-08 Tom Tromey <tromey@adacore.com>
6513
6514 * windows-nat.c (windows_add_thread, windows_delete_thread)
6515 (windows_nat_target::fetch_registers)
6516 (windows_nat_target::store_registers, fake_create_process)
6517 (windows_nat_target::resume, windows_nat_target::resume)
6518 (get_windows_debug_event, windows_nat_target::wait)
6519 (windows_nat_target::pid_to_str)
6520 (windows_nat_target::get_tib_address)
6521 (windows_nat_target::get_ada_task_ptid)
6522 (windows_nat_target::thread_name)
6523 (windows_nat_target::thread_alive): Use lwp, not tid.
6524
6525 2020-04-08 Tom Tromey <tromey@adacore.com>
6526
6527 * windows-nat.c (handle_exception)
6528 (windows_nat_target::thread_name): Update.
6529 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6530 <name>: Now unique_xmalloc_ptr.
6531
6532 2020-04-08 Tom Tromey <tromey@adacore.com>
6533
6534 * windows-nat.c (thread_rec)
6535 (windows_nat_target::fetch_registers): Update.
6536 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6537 Update comment.
6538 <debug_registers_changed, reload_context>: Now bool.
6539
6540 2020-04-08 Tom Tromey <tromey@adacore.com>
6541
6542 * windows-nat.c (windows_add_thread): Use new.
6543 (windows_init_thread_list, windows_delete_thread): Use delete.
6544 (get_windows_debug_event): Update.
6545 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6546 destructor, and initializers.
6547
6548 2020-04-08 Tom Tromey <tromey@adacore.com>
6549
6550 * windows-nat.c (struct windows_thread_info): Remove.
6551 * nat/windows-nat.h: New file.
6552
6553 2020-04-08 Tom Tromey <tromey@adacore.com>
6554
6555 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6556 (thread_rec, windows_add_thread, windows_delete_thread)
6557 (windows_continue): Update.
6558
6559 2020-04-08 Tom Tromey <tromey@adacore.com>
6560
6561 * windows-nat.c (struct windows_thread_info): Remove typedef.
6562 (thread_head): Remove.
6563 (thread_list): New global.
6564 (thread_rec, windows_add_thread, windows_init_thread_list)
6565 (windows_delete_thread, windows_continue): Update.
6566
6567 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6568
6569 * windows-tdep.h (windows_init_abi): Add comment.
6570 (cygwin_init_abi): New declaration.
6571 * windows-tdep.c: Split signal enumeration in two, one for
6572 Windows and one for Cygwin.
6573 (windows_gdb_signal_to_target): Only deal with signal of the
6574 Windows OS ABI.
6575 (cygwin_gdb_signal_to_target): New function.
6576 (windows_init_abi): Rename to windows_init_abi_common, don't set
6577 gdb_signal_to_target gdbarch method. Add new new function with
6578 this name.
6579 (cygwin_init_abi): New function.
6580 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6581 comment. Don't call windows_init_abi.
6582 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6583 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6584 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6585 i386_windows_init_abi_common, don't call windows_init_abi. Add
6586 a new function of this name.
6587 (i386_cygwin_init_abi): New function.
6588 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6589 OS ABI Cygwin.
6590
6591 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6592
6593 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6594 parameter.c.
6595 (dwarf2_read_gdb_index): Update.
6596
6597 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6598
6599 * nbsd-tdep.c: Include "objfiles.h".
6600 (nbsd_skip_solib_resolver): New.
6601 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6602
6603 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6604
6605 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6606 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6607 with DW_LLE_base_addressx are being emitted in DWARFv5.
6608 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6609 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6610 unsigned integer.
6611
6612 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6613
6614 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6615 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6616 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6617 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6618 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6619 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6620 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6621
6622
6623 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6624
6625 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6626 (read_loclist_index): New function definition.
6627 (lookup_loclist_base): New function definition.
6628 (read_loclist_header): New function definition.
6629 (dwarf2_cu): Add loclist_base and loclist_header field.
6630 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6631 (read_full_die_1): Read the value of DW_AT_loclists_base.
6632 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6633 (read_attribute_value): Handle DW_FORM_loclistx.
6634 (skip_one_die): Handle DW_FORM_loclistx.
6635 (loclist_header): New structure declaration.
6636 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6637
6638 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6639
6640 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6641 constructor. Remove `addr` parameter from other constructor and
6642 add `per_cu` parameter.
6643 * dwarf2/read.c (create_partial_symtab): Update.
6644
6645 2020-04-07 Tom de Vries <tdevries@suse.de>
6646
6647 PR symtab/25796
6648 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6649 (partial_die_info::fixup): Inherit has_const_value.
6650
6651 2020-04-07 Tom de Vries <tdevries@suse.de>
6652
6653 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6654 symbols without address.
6655
6656 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6657
6658 * nbsd-nat.h (struct thread_info): Add forward declaration.
6659 (nbsd_nat_target::thread_alive): Add.
6660 (nbsd_nat_target::thread_name): Likewise.
6661 (nbsd_nat_target::update_thread_list): Likewise.
6662 (update_thread_list::post_attach): Likewise.
6663 (post_attach::pid_to_str): Likewise.
6664 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6665 (nbsd_thread_lister): Add.
6666 (nbsd_nat_target::thread_alive): Likewise.
6667 (nbsd_nat_target::thread_name): Likewise.
6668 (nbsd_add_threads): Likewise.
6669 (update_thread_list::post_attach): Likewise.
6670 (nbsd_nat_target::update_thread_list): Likewise.
6671 (post_attach::pid_to_str): Likewise.
6672
6673 2020-04-06 Tom Tromey <tromey@adacore.com>
6674
6675 * ada-valprint.c (print_variant_part): Extract the variant field.
6676 (print_field_values): Use the field as the outer value when
6677 recursing.
6678
6679 2020-04-06 Tom Tromey <tromey@adacore.com>
6680
6681 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6682 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6683 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6684 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6685 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6686
6687 2020-04-06 Tom Tromey <tromey@adacore.com>
6688
6689 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6690 TYPE_CODE_ERROR.
6691
6692 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6693
6694 * nbsd-tdep.c: Include "gdbarch.h".
6695 Define enum with NetBSD signal numbers.
6696 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6697 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6698 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6699 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6700 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6701 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6702 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6703 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6704 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6705 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6706 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6707 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6708
6709 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6710
6711 PR gdb/25325
6712 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6713
6714 2020-04-03 Tom Tromey <tromey@adacore.com>
6715
6716 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6717 Read constant block.
6718
6719 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6720
6721 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6722 (gdb_bfd_get_full_section_contents): New declaration.
6723 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6724 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6725 gdb_bfd_get_full_section_contents.
6726
6727 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6728
6729 * exec.c (build_section_table): Replace internal_error with
6730 gdb_assert.
6731 (section_table_xfer_memory_partial): Likewise.
6732 * mdebugread.c (parse_partial_symbols): Likewise.
6733 * psymtab.c (lookup_partial_symbol): Likewise.
6734 * utils.c (wrap_here): Likewise.
6735
6736 2020-04-02 Tom Tromey <tromey@adacore.com>
6737
6738 * f-lang.c (build_fortran_types): Use arch_type to initialize
6739 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6740
6741 2020-04-02 Tom Tromey <tromey@adacore.com>
6742
6743 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6744 of attributes.
6745
6746 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6747 Bernd Edlinger <bernd.edlinger@hotmail.de>
6748 Tom Tromey <tromey@adacore.com>
6749
6750 * buildsym.c (buildsym_compunit::record_line): Remove
6751 deduplication code.
6752
6753 2020-04-02 Tom de Vries <tdevries@suse.de>
6754
6755 PR ada/24671
6756 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6757
6758 2020-04-02 Tom de Vries <tdevries@suse.de>
6759
6760 * dwarf2/read.c (dwarf2_gdb_index_functions,
6761 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6762 NULL.
6763 * psymtab.c (psym_lookup_global_symbol_language): New function.
6764 (psym_functions): Init psym_lookup_global_symbol_language with
6765 psym_lookup_global_symbol_language.
6766 * symfile-debug.c (debug_sym_quick_functions): Init
6767 lookup_global_symbol_language with NULL.
6768 * symfile.c (set_initial_language): Remove fixme comment.
6769 * symfile.h (struct quick_symbol_functions): Add
6770 lookup_global_symbol_language.
6771 * symtab.c (find_quick_global_symbol_language): New function.
6772 (find_main_name): Use find_quick_global_symbol_language.
6773
6774 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6775
6776 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6777
6778 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6779
6780 * buildsym.c (record_line): Fix undefined behavior and preserve
6781 lines at eof.
6782
6783 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6784
6785 * buildsym.c (record_line): Fix the resizing condition.
6786
6787 2020-04-01 Tom Tromey <tom@tromey.com>
6788
6789 * value.h (value_literal_complex): Add comment.
6790 * valops.c (value_literal_complex): Refer to value.h.
6791
6792 2020-04-01 Tom Tromey <tom@tromey.com>
6793
6794 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6795 (scalar_type): New rule, from typebase.
6796 (typebase): Use scalar_type. Recognize complex types.
6797 (field_name): Handle FLOAT_KEYWORD.
6798 (ident_tokens): Add _Complex and __complex__.
6799
6800 2020-04-01 Tom Tromey <tom@tromey.com>
6801
6802 PR exp/25299:
6803 * valarith.c (promotion_type, complex_binop): New functions.
6804 (scalar_binop): Handle complex numbers. Use promotion_type.
6805 (value_pos, value_neg, value_complement): Handle complex numbers.
6806
6807 2020-04-01 Tom Tromey <tom@tromey.com>
6808
6809 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6810 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6811 (parse_number): Handle complex numbers.
6812
6813 2020-04-01 Tom Tromey <tom@tromey.com>
6814
6815 * c-valprint.c (c_decorations): Change complex suffix to "i".
6816
6817 2020-04-01 Tom Tromey <tom@tromey.com>
6818
6819 * valprint.c (generic_value_print_complex): Use accessors.
6820 * value.h (value_real_part, value_imaginary_part): Declare.
6821 * valops.c (value_real_part, value_imaginary_part): New
6822 functions.
6823 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6824
6825 2020-04-01 Tom Tromey <tom@tromey.com>
6826
6827 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6828 (read_range_type): Update.
6829 * mdebugread.c (basic_type): Update.
6830 * go-lang.c (build_go_types): Use init_complex_type.
6831 * gdbtypes.h (struct main_type) <complex_type>: New member.
6832 (init_complex_type): Update.
6833 (arch_complex_type): Don't declare.
6834 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6835 Make name if none given. Use alloc_type_copy. Look for cached
6836 complex type.
6837 (arch_complex_type): Remove.
6838 (gdbtypes_post_init): Use init_complex_type.
6839 * f-lang.c (build_fortran_types): Use init_complex_type.
6840 * dwarf2/read.c (read_base_type): Update.
6841 * d-lang.c (build_d_types): Use init_complex_type.
6842 * ctfread.c (read_base_type): Update.
6843
6844 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6845
6846 * infrun.c (stop_all_threads): Update assertion, plus when
6847 stopping threads, take into account that we might be trying
6848 to stop an all-stop target.
6849 (stop_waiting): Call 'stop_all_threads' if there exists a
6850 non-stop target.
6851
6852 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6853
6854 * target.h (exists_non_stop_target): New function declaration.
6855 * target.c (exists_non_stop_target): New function.
6856
6857 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6858
6859 PR gdb/24789
6860 * eval.c (is_integral_or_integral_reference): New function.
6861 (evaluate_subexp_standard): Allow integer references in
6862 pointer arithmetic.
6863
6864 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6865
6866 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6867 check for no ptid in the stop reply when the target is non-stop.
6868
6869 2020-04-01 Tom Tromey <tromey@adacore.com>
6870
6871 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6872 "name" parameter to rvalue reference. Initialize m_name_holder.
6873 <lookup_name_info>: New overloads.
6874 <name>: Return gdb::string_view.
6875 <c_str>: New method.
6876 <make_ignore_params>: Update.
6877 <search_name_hash>: Update.
6878 <language_lookup_name>: Return const char *.
6879 <m_name>: Change type.
6880 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6881 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6882 (lookup_name_info::match_any): Update.
6883 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6884 Update.
6885 * minsyms.c (linkage_name_str): Update.
6886 * language.c (default_symbol_name_matcher): Update.
6887 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6888 Update.
6889 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6890 (ada_lookup_name_info::ada_lookup_name_info): Update.
6891 (literal_symbol_name_matcher): Update.
6892
6893 2020-04-01 Tom Tromey <tromey@adacore.com>
6894
6895 * psymtab.c (psymtab_search_name): Remove function.
6896 (psym_lookup_symbol): Create search name and lookup name here.
6897 (lookup_partial_symbol): Remove "name" parameter; add
6898 lookup_name.
6899 (psym_expand_symtabs_for_function): Update.
6900
6901 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6902
6903 PR tui/25597:
6904 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6905
6906 2020-03-31 Tom Tromey <tromey@adacore.com>
6907
6908 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6909 memcpy.
6910
6911 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6912
6913 * features/riscv/32bit-csr.xml: Regenerated.
6914 * features/riscv/64bit-csr.xml: Regenerated.
6915
6916 2020-03-30 Tom Tromey <tromey@adacore.com>
6917
6918 * ada-valprint.c (print_variant_part): Update.
6919 * ada-lang.h (ada_which_variant_applies): Update.
6920 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6921 outer_valaddr parameters; replace with "outer" value parameter.
6922 (to_fixed_variant_branch_type): Update.
6923
6924 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6925
6926 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6927 <list>. Remove inclusion of observable.h.
6928 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6929 (struct arch_lwp_info): New struct.
6930 (class ppc_linux_dreg_interface): New class.
6931 (struct ppc_linux_process_info): New struct.
6932 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6933 <low_new_clone, low_forget_process, low_prepare_to_resume>
6934 <copy_thread_dreg_state, mark_thread_stale>
6935 <mark_debug_registers_changed, register_hw_breakpoint>
6936 <clear_hw_breakpoint, register_wp, clear_wp>
6937 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6938 <num_memory_accesses, get_trigger_type>
6939 <create_watchpoint_request, hwdebug_point_cmp>
6940 <init_arch_lwp_info, get_arch_lwp_info>
6941 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6942 methods.
6943 <struct ptid_hash>: New inner struct.
6944 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6945 members.
6946 (saved_dabr_value, hwdebug_info, max_slots_number)
6947 (struct hw_break_tuple, struct thread_points, ppc_threads)
6948 (have_ptrace_hwdebug_interface)
6949 (hwdebug_find_thread_points_by_tid)
6950 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6951 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6952 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6953 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6954 use m_dreg_interface.
6955 (hwdebug_point_cmp): Change to...
6956 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6957 reference arguments instead of pointers.
6958 (ppc_linux_nat_target::ranged_break_num_registers): Use
6959 m_dreg_interface.
6960 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6961 m_dreg_interface. Call register_hw_breakpoint.
6962 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6963 m_dreg_interface. Call clear_hw_breakpoint.
6964 (get_trigger_type): Change to...
6965 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6966 comment.
6967 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6968 use m_dreg_interface. Call register_hw_breakpoint.
6969 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6970 use m_dreg_interface. Call clear_hw_breakpoint.
6971 (can_use_watchpoint_cond_accel): Change to...
6972 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6973 method. Update comment, use m_dreg_interface and
6974 m_process_info.
6975 (calculate_dvc): Change to...
6976 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6977 m_dreg_interface.
6978 (num_memory_accesses): Change to...
6979 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6980 (check_condition): Change to...
6981 (ppc_linux_nat_target::check_condition): ...this method.
6982 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6983 comment, use m_dreg_interface.
6984 (create_watchpoint_request): Change to...
6985 (ppc_linux_nat_target::create_watchpoint_request): ...this
6986 method. Use m_dreg_interface.
6987 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6988 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6989 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6990 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6991 (ppc_linux_nat_target::low_forget_process)
6992 (ppc_linux_nat_target::low_new_fork)
6993 (ppc_linux_nat_target::low_new_clone)
6994 (ppc_linux_nat_target::low_delete_thread)
6995 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6996 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6997 only call mark_thread_stale.
6998 (ppc_linux_thread_exit): Remove.
6999 (ppc_linux_nat_target::stopped_data_address): Change to...
7000 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7001 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7002 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7003 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7004 comment. Call low_stopped_data_address.
7005 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7006 m_dreg_interface.
7007 (ppc_linux_nat_target::masked_watch_num_registers): Use
7008 m_dreg_interface.
7009 (ppc_linux_nat_target::copy_thread_dreg_state)
7010 (ppc_linux_nat_target::mark_thread_stale)
7011 (ppc_linux_nat_target::mark_debug_registers_changed)
7012 (ppc_linux_nat_target::register_hw_breakpoint)
7013 (ppc_linux_nat_target::clear_hw_breakpoint)
7014 (ppc_linux_nat_target::register_wp)
7015 (ppc_linux_nat_target::clear_wp)
7016 (ppc_linux_nat_target::init_arch_lwp_info)
7017 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7018 (_initialize_ppc_linux_nat): Remove observer callback.
7019
7020 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7021
7022 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7023 (ppc_linux_nat_target::auxv_parse)
7024 (ppc_linux_nat_target::read_description)
7025 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7026 Move up.
7027
7028 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7029
7030 * linux-nat.h (low_new_clone): New method.
7031 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7032
7033 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7034
7035 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7036 (dbx_expand_psymtab): ... this.
7037 (start_psymtab): Update.
7038 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7039 (mdebug_expand_psymtab): ... this.
7040 (parse_partial_symbols): Update.
7041 (new_psymtab): Update.
7042 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7043 (xcoff_expand_psymtab): ... this.
7044 (xcoff_start_psymtab): Update.
7045
7046 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7047
7048 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7049 <expand_dependencies>: ... this.
7050 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7051 (partial_symtab::expand_dependencies): ... this.
7052 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7053 Update.
7054 (dwarf2_psymtab::expand_psymtab): Update.
7055 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7056 * mdebugread.c (psymtab_to_symtab_1): Update.
7057 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7058
7059 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7060
7061 * psympriv.h (discard_psymtab): Remove.
7062 * dbxread.c (dbx_end_psymtab): Update.
7063 * xcoffread.c (xcoff_end_psymtab): Update.
7064
7065 2020-03-28 Tom Tromey <tom@tromey.com>
7066
7067 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7068 comment.
7069
7070 2020-03-28 Tom Tromey <tom@tromey.com>
7071
7072 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7073
7074 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7075
7076 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7077
7078 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7079
7080 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7081
7082 2020-03-26 Tom Tromey <tom@tromey.com>
7083
7084 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7085 (mark_common_block_symbol_computed, read_tag_string_type)
7086 (attr_to_dynamic_prop, read_subrange_type): Update.
7087 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7088 to be methods on struct attribute.
7089 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7090 (read_call_site_scope, partial_die_info::read)
7091 (partial_die_info::read, lookup_die_type, follow_die_ref):
7092 Update.
7093 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7094 from dwarf2_get_ref_die_offset.
7095 (attribute::constant_value): New method, from
7096 dwarf2_get_attr_constant_value.
7097 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7098 Declare method.
7099 <constant_value>: New method.
7100
7101 2020-03-26 Tom Tromey <tom@tromey.com>
7102
7103 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7104 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7105 (dwarf_type_encoding_name): Move to stringify.c.
7106 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7107 * dwarf2/stringify.c: New file.
7108 * dwarf2/stringify.h: New file.
7109
7110 2020-03-26 Tom Tromey <tom@tromey.com>
7111
7112 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7113 Rewrite.
7114
7115 2020-03-26 Tom Tromey <tom@tromey.com>
7116
7117 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7118 methods.
7119 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7120 (lookup_ranges_base): Likewise.
7121 (read_cutu_die_from_dwo, read_full_die_1): Update.
7122
7123 2020-03-26 Tom Tromey <tom@tromey.com>
7124
7125 * dwarf2/read.c (read_import_statement, read_file_scope)
7126 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7127 (read_lexical_block_scope, read_call_site_scope)
7128 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7129 (handle_struct_member_die, process_structure_scope)
7130 (update_enumeration_type_from_children)
7131 (process_enumeration_scope, read_array_type, read_common_block)
7132 (read_namespace, read_module, read_subroutine_type): Update.
7133 (sibling_die): Remove.
7134
7135 2020-03-26 Tom Tromey <tom@tromey.com>
7136
7137 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7138 (build_type_psymtabs_reader, read_structure_type)
7139 (read_enumeration_type, read_full_die_1): Update.
7140 (dwarf2_attr_no_follow): Move to die.h.
7141 * dwarf2/die.h (struct die_info) <attr>: New method.
7142
7143 2020-03-26 Tom Tromey <tom@tromey.com>
7144
7145 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7146 <base_address>: Now an optional.
7147 (dwarf2_find_base_address, dwarf2_rnglists_process)
7148 (dwarf2_ranges_process, fill_in_loclist_baton)
7149 (dwarf2_symbol_mark_computed): Update.
7150
7151 2020-03-26 Tom Tromey <tom@tromey.com>
7152
7153 * dwarf2/read.c (struct die_info): Move to die.h.
7154 * dwarf2/die.h: New file.
7155
7156 2020-03-26 Tom Tromey <tom@tromey.com>
7157
7158 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7159 * dwarf2/read.c
7160 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7161 Move to line-header.c.
7162 (read_checked_initial_length_and_offset, read_formatted_entries):
7163 Likewise.
7164 (dwarf_decode_line_header): Split into two.
7165 * dwarf2/line-header.c
7166 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7167 Move from read.c.
7168 (read_checked_initial_length_and_offset, read_formatted_entries):
7169 Likewise.
7170 (dwarf_decode_line_header): New function, split from read.c.
7171
7172 2020-03-26 Tom Tromey <tom@tromey.com>
7173
7174 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7175 Declare method.
7176 * dwarf2/read.c (read_attribute_value): Update.
7177 (dwarf2_per_objfile::read_line_string): Rename from
7178 read_indirect_line_string.
7179 (read_formatted_entries): Update.
7180
7181 2020-03-26 Tom Tromey <tom@tromey.com>
7182
7183 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7184 variable.
7185
7186 2020-03-26 Tom Tromey <tom@tromey.com>
7187
7188 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7189 const.
7190 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7191 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7192 parameter const.
7193
7194 2020-03-26 Tom Tromey <tom@tromey.com>
7195
7196 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7197 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7198 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7199 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7200
7201 2020-03-26 Tom Tromey <tom@tromey.com>
7202
7203 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7204 file_names_size, file_full_name, file_file_name>: Use const.
7205 <file_name_at, file_names>: Add const overload.
7206 * dwarf2/line-header.c (line_header::file_file_name)
7207 (line_header::file_full_name): Update.
7208
7209 2020-03-26 Tom Tromey <tom@tromey.com>
7210
7211 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7212 (macro_start_file, consume_improper_spaces)
7213 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7214 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7215 (dwarf_decode_macros): Move to macro.c.
7216 * dwarf2/macro.c: New file.
7217 * dwarf2/macro.h: New file.
7218 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7219
7220 2020-03-26 Tom Tromey <tom@tromey.com>
7221
7222 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7223 method.
7224 * dwarf2/section.c: New method. From
7225 read_indirect_string_at_offset_from.
7226 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7227 (read_indirect_string_at_offset_from): Move to section.c.
7228 (read_indirect_string_at_offset): Rewrite.
7229 (read_indirect_line_string_at_offset): Remove.
7230 (read_indirect_string, read_indirect_line_string)
7231 (dwarf_decode_macro_bytes): Update.
7232
7233 2020-03-26 Tom Tromey <tom@tromey.com>
7234
7235 * dwarf2/section.h (struct dwarf2_section_info)
7236 <overload_complaint>: Declare.
7237 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7238 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7239 Rename from dwarf2_section_buffer_overflow_complaint.
7240 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7241 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7242
7243 2020-03-26 Tom Tromey <tom@tromey.com>
7244
7245 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7246 Declare.
7247 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7248 Move from read.c.
7249 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7250 to section.c.
7251
7252 2020-03-26 Tom Tromey <tom@tromey.com>
7253
7254 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7255
7256 2020-03-26 Tom Tromey <tom@tromey.com>
7257
7258 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7259 "builder".
7260 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7261 parameter.
7262 (dwarf_decode_macros): Update.
7263
7264 2020-03-26 Tom Tromey <tom@tromey.com>
7265
7266 * dwarf2/read.c (read_attribute_value): Update.
7267 (read_indirect_string_from_dwz): Move to dwz.c; change into
7268 method.
7269 (dwarf_decode_macro_bytes): Update.
7270 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7271 * dwarf2/dwz.c: New file.
7272 * Makefile.in (COMMON_SFILES): Add dwz.c.
7273
7274 2020-03-26 Tom Tromey <tom@tromey.com>
7275
7276 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7277 * dwarf2/read.c: Add include.
7278 * dwarf2/index-write.c: Add include.
7279 * dwarf2/index-cache.c: Add include.
7280 * dwarf2/dwz.h: New file.
7281
7282 2020-03-25 Tom Tromey <tom@tromey.com>
7283
7284 * compile/compile-object-load.c (get_out_value_type): Mention
7285 correct symbol name in error message.
7286
7287 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7288
7289 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7290
7291 2020-03-25 Tom de Vries <tdevries@suse.de>
7292
7293 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7294 * symmisc.c (dump_symtab_1): Print user and includes fields.
7295 (maintenance_info_symtabs): Same.
7296
7297 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7298
7299 PR gdb/25534
7300 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7301 (riscv_regcache_cooked_write): New function.
7302 (riscv_push_dummy_call): Use new function.
7303 (riscv_return_value): Likewise.
7304
7305 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7306
7307 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7308 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7309 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7310 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7311 * infrun.c (follow_fork): Likewise.
7312 (follow_fork_inferior): Likewise.
7313 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7314 * linux-nat.h (class linux_nat_target): Likewise.
7315 * remote.c (class remote_target) <follow_fork>: Likewise.
7316 (remote_target::follow_fork): Likewise.
7317 * target-delegates.c: Re-generate.
7318 * target.c (default_follow_fork): Likewise.
7319 (target_follow_fork): Likewise.
7320 * target.h (struct target_ops) <follow_fork>: Likewise.
7321 (target_follow_fork): Likewise.
7322
7323 2020-03-24 Tom de Vries <tdevries@suse.de>
7324
7325 * psymtab.c (maintenance_info_psymtabs): Print user field.
7326
7327 2020-03-20 Tom Tromey <tromey@adacore.com>
7328
7329 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7330 const.
7331 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7332 const.
7333
7334 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7335
7336 * ptrace.m4: Don't check for ptrace declaration.
7337 * config.in: Re-generate.
7338 * configure: Re-generate.
7339 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7340 not defined.
7341
7342 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7343
7344 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7345 `PTRACE_TYPE_RET'.
7346 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7347 * sparc-nat.c (gdb_ptrace): Likewise.
7348 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7349
7350 2020-03-20 Tom Tromey <tromey@adacore.com>
7351
7352 * c-exp.y (lex_one_token): Fix assert.
7353
7354 2020-03-20 Tom Tromey <tromey@adacore.com>
7355
7356 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7357 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7358 strncpy call.
7359
7360 2020-03-20 Tom Tromey <tromey@adacore.com>
7361
7362 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7363
7364 2020-03-20 Tom Tromey <tromey@adacore.com>
7365
7366 * ada-valprint.c (print_variant_part): Remove parameters; switch
7367 to value-based API.
7368 (print_field_values): Likewise.
7369 (ada_val_print_struct_union): Likewise.
7370 (ada_value_print_1): Update.
7371
7372 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7373
7374 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7375 nbsd_nat_target instead of inf_ptrace_target.
7376 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7377 nbsd_nat_target.
7378
7379 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7380
7381 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7382 it to the ptrace call.
7383 * (store_registers): Likewise.
7384
7385 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7386
7387 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7388 it to the ptrace call.
7389 * (store_registers): Likewise.
7390
7391 2020-03-19 Luis Machado <luis.machado@linaro.org>
7392
7393 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7394 valid, fetch vg value from ptrace.
7395
7396 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7397 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7398 * inf-ptrace.c: Likewise.
7399 * (gdb_ptrace): Add.
7400 * (inf_ptrace_target::resume): Update.
7401 * (inf_ptrace_target::xfer_partial): Likewise.
7402 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7403 * (inf_ptrace_peek_poke): Update.
7404
7405 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7406
7407 * x86-bsd-nat.c (gdb_ptrace): New.
7408 * (x86bsd_dr_set): Add new argument `ptid'.
7409 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7410 x86bsd_dr_set_addr): Update.
7411
7412 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7413
7414 * remote.c (remote_target::process_stop_reply): Handle events for
7415 all threads differently.
7416
7417 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7418
7419 * completer.c (completion_tracker::remove_completion): Define new
7420 function.
7421 * completer.h (completion_tracker::remove_completion): Declare new
7422 function.
7423 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7424 when adding a C++ function symbol.
7425
7426 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7427
7428 * completer.c (completion_tracker::completion_hash_entry): Define
7429 new class.
7430 (advance_to_filename_complete_word_point): Call
7431 recompute_lowest_common_denominator.
7432 (completion_tracker::completion_tracker): Call discard_completions
7433 to setup the hash table.
7434 (completion_tracker::discard_completions): Allow for being called
7435 from the constructor, pass new equal function, and element deleter
7436 when constructing the hash table. Initialise new class member
7437 variables.
7438 (completion_tracker::maybe_add_completion): Remove use of
7439 m_entries_vec, and store more information into m_entries_hash.
7440 (completion_tracker::recompute_lcd_visitor): New function, most
7441 content taken from...
7442 (completion_tracker::recompute_lowest_common_denominator):
7443 ...here, this now just visits each item in the hash calling the
7444 above visitor.
7445 (completion_tracker::build_completion_result): Remove use of
7446 m_entries_vec, call recompute_lowest_common_denominator.
7447 * completer.h (completion_tracker::have_completions): Remove use
7448 of m_entries_vec.
7449 (completion_tracker::completion_hash_entry): Declare new class.
7450 (completion_tracker::recompute_lowest_common_denominator): Change
7451 function signature.
7452 (completion_tracker::recompute_lcd_visitor): Declare new function.
7453 (completion_tracker::m_entries_vec): Delete.
7454 (completion_tracker::m_entries_hash): Initialize to NULL.
7455 (completion_tracker::m_lowest_common_denominator_valid): New
7456 member variable.
7457 (completion_tracker::m_lowest_common_denominator_max_length): New
7458 member variable.
7459
7460 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7461
7462 * regformats/regdef.h: Put reg in gdb namespace.
7463
7464 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7465
7466 * i386-bsd-nat.c (gdb_ptrace): New.
7467 * (i386bsd_fetch_inferior_registers,
7468 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7469 * (i386bsd_fetch_inferior_registers,
7470 i386bsd_store_inferior_registers) Use gdb_ptrace.
7471
7472 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7473
7474 * amd64-bsd-nat.c (gdb_ptrace): New.
7475 * (amd64bsd_fetch_inferior_registers,
7476 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7477 * (amd64bsd_fetch_inferior_registers,
7478 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7479
7480 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7481
7482 * user-regs.c (user_reg::read): Rename to...
7483 (user_reg::xread): ...this.
7484 * (append_user_reg): Rename argument `read' to `xread'.
7485 * (user_reg_add_builtin): Likewise.
7486 * (user_reg_add): Likewise.
7487 * (value_of_user_reg): Likewise.
7488
7489 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7490
7491 * sparc-nat.c (gdb_ptrace): New.
7492 * sparc-nat.c (sparc_fetch_inferior_registers)
7493 (sparc_store_inferior_registers) Remove obsolete comment.
7494 * sparc-nat.c (sparc_fetch_inferior_registers)
7495 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7496 * sparc-nat.c (sparc_fetch_inferior_registers)
7497 (sparc_store_inferior_registers) Use gdb_ptrace.
7498
7499 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7500
7501 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7502 it to the ptrace call.
7503 * sh-nbsd-nat.c (store_registers): Likewise.
7504
7505 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7506
7507 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7508 nbsd_nat_target instead of inf_ptrace_target.
7509 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7510 nbsd_nat_target.
7511
7512 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7513
7514 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7515
7516 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7517
7518 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7519 <sys/sysctl.h>.
7520 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7521
7522 2020-03-17 Tom de Vries <tdevries@suse.de>
7523
7524 PR gdb/23710
7525 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7526 fields.
7527 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7528 fields.
7529 (process_imported_unit_die): Skip import of c++ CUs.
7530
7531 2020-03-16 Tom Tromey <tom@tromey.com>
7532
7533 * p-valprint.c (pascal_object_print_value): Initialize
7534 base_value.
7535
7536 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7537 Shahab Vahedi <shahab@synopsys.com>
7538
7539 * Makefile.in: Add arch/arc.o
7540 * configure.tgt: Likewise.
7541 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7542 (_initialize_arc_tdep): Don't initialize old target descriptions.
7543 (arc_read_description): New function to cache target descriptions.
7544 * arc-tdep.h (arc_read_description): Add proto type.
7545 * arch/arc.c: New file.
7546 * arch/arc.h: Likewise.
7547 * features/Makefile: Replace old target descriptions with new.
7548 * features/arc-arcompact.c: Remove.
7549 * features/arc-arcompact.xml: Likewise.
7550 * features/arc-v2.c: Likewise
7551 * features/arc-v2.xml: Likewise
7552 * features/arc/aux-arcompact.xml: New file.
7553 * features/arc/aux-v2.xml: Likewise.
7554 * features/arc/core-arcompact.xml: Likewise.
7555 * features/arc/core-v2.xml: Likewise.
7556 * features/arc/aux-arcompact.c: Generate.
7557 * features/arc/aux-v2.c: Likewise.
7558 * features/arc/core-arcompact.c: Likewise.
7559 * features/arc/core-v2.c: Likewise.
7560 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7561
7562 2020-03-16 Tom Tromey <tromey@adacore.com>
7563
7564 PR gdb/25663:
7565 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7566 putting value into bcache.
7567
7568 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7569
7570 PR gdb/21500
7571 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7572 to...
7573 (amd64_windows_init_abi_common): ... this. Don't set size of
7574 long type.
7575 (amd64_windows_init_abi): New function.
7576 (amd64_cygwin_init_abi): New function.
7577 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7578 the Cygwin OS ABI.
7579 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7580 comment.
7581
7582 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7583
7584 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7585 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7586 (pe_import_directory_entry): New struct type.
7587 (is_linked_with_cygwin_dll): New function.
7588 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7589 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7590 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7591
7592 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7593
7594 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7595 i386_cygwin_core_osabi_sniffer.
7596
7597 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7598
7599 * i386-cygwin-tdep.c: Rename to...
7600 * i386-windows-tdep.c: ... this.
7601 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7602 i386-windows-tdep.c.
7603 * configure.tgt: Likewise.
7604
7605 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7606
7607 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7608 * osabi.c (gdb_osabi_names): Add "Windows".
7609 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7610 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7611 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7612 i386_cygwin_osabi_sniffer.
7613 (_initialize_i386_cygwin_tdep): Register OS ABI
7614 GDB_OSABI_WINDOWS for i386.
7615 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7616 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7617 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7618 for x86-64.
7619 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7620 when the target matches '*-*-mingw*'.
7621
7622 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7623
7624 * defs.h (enum gdb_osabi): Move to...
7625 * osabi.h (enum gdb_osabi): ... here.
7626 * gdbarch.sh: Include osabi.h in gdbarch.h.
7627 * gdbarch.h: Re-generate.
7628
7629 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7630
7631 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7632 function.
7633 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7634
7635 2020-03-14 Tom Tromey <tom@tromey.com>
7636
7637 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7638 for C++.
7639 (c_type_print_modifier): Likewise. Add "language" parameter.
7640 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7641 (c_type_print_base_1): Update.
7642 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7643 constants.
7644 * type-stack.c (type_stack::insert): Handle tp_atomic and
7645 tp_restrict.
7646 (type_stack::follow_type_instance_flags): Likewise.
7647 (type_stack::follow_types): Likewise. Merge type-following code.
7648 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7649 (space_identifier, cv_with_space_id)
7650 (const_or_volatile_or_space_identifier_noopt)
7651 (const_or_volatile_or_space_identifier): Remove.
7652 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7653 rules.
7654 (ptr_operator, typebase): Update.
7655 (enum token_flag) <FLAG_C>: New constant.
7656 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7657 "_Atomic".
7658 (lex_one_token): Handle FLAG_C.
7659
7660 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7661
7662 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7663 it to the ptrace call.
7664 * m68k-bsd-nat.c (store_registers): Likewise.
7665
7666 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7667
7668 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7669 gdb_byte *.
7670 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7671 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7672 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7673
7674 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7675
7676 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7677 nbsd_nat_target instead of inf_ptrace_target.
7678 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7679 nbsd_nat_target.
7680
7681 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7682
7683 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7684 register_t.
7685
7686 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7687
7688 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7689 it to the ptrace call.
7690 * alpha-bsd-nat.c (store_registers): Likewise.
7691
7692 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7693
7694 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7695 includes.
7696 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7697 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7698 fill_fpregset): Likewise.
7699
7700 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7701
7702 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7703 nbsd_nat_target instead of inf_ptrace_target.
7704 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7705 nbsd_nat_target.
7706
7707 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7708
7709 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7710 register_t.
7711
7712 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7713
7714 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7715 it to the ptrace call.
7716 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7717 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7718 * arm-nbsd-nat.c (store_register): Likewise.
7719 * arm-nbsd-nat.c (store_regs): Likewise.
7720 * arm-nbsd-nat.c (store_fp_register): Likewise.
7721 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7722
7723 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7724
7725 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7726 nbsd_nat_target instead of inf_ptrace_target.
7727 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7728 nbsd_nat_target.
7729
7730 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7731
7732 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7733 it to the ptrace call.
7734 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7735
7736 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7737
7738 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7739 it to the ptrace call.
7740 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7741
7742 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7743
7744 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7745 gdb_byte *.
7746 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7747
7748 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7749
7750 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7751 instead of inf_ptrace_target.
7752 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7753 nbsd_nat_target.
7754
7755 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7756
7757 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7758 register_t.
7759
7760 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7761
7762 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7763 register_t.
7764
7765 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7766
7767 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7768 register_t.
7769
7770 2020-03-13 Tom Tromey <tom@tromey.com>
7771
7772 * value.h (val_print): Don't declare.
7773 * valprint.h (val_print_array_elements)
7774 (val_print_scalar_formatted, generic_val_print): Don't declare.
7775 * valprint.c (generic_val_print_array): Take a struct value.
7776 (generic_val_print_ptr, generic_val_print_memberptr)
7777 (generic_val_print_bool, generic_val_print_int)
7778 (generic_val_print_char, generic_val_print_complex)
7779 (generic_val_print): Remove.
7780 (generic_value_print): Update.
7781 (do_val_print): Remove unused parameters. Don't call
7782 la_val_print.
7783 (val_print): Remove.
7784 (common_val_print): Update. Don't call value_check_printable.
7785 (val_print_scalar_formatted, val_print_array_elements): Remove.
7786 * rust-lang.c (rust_val_print): Remove.
7787 (rust_language_defn): Update.
7788 * p-valprint.c (pascal_val_print): Remove.
7789 (pascal_value_print_inner): Update.
7790 (pascal_object_print_val_fields, pascal_object_print_val):
7791 Remove.
7792 (pascal_object_print_static_field): Update.
7793 * p-lang.h (pascal_val_print): Don't declare.
7794 * p-lang.c (pascal_language_defn): Update.
7795 * opencl-lang.c (opencl_language_defn): Update.
7796 * objc-lang.c (objc_language_defn): Update.
7797 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7798 * m2-lang.h (m2_val_print): Don't declare.
7799 * m2-lang.c (m2_language_defn): Update.
7800 * language.h (struct language_defn) <la_val_print>: Remove.
7801 * language.c (unk_lang_value_print_inner): Rename. Change
7802 argument types.
7803 (unknown_language_defn, auto_language_defn): Update.
7804 * go-valprint.c (go_val_print): Remove.
7805 * go-lang.h (go_val_print): Don't declare.
7806 * go-lang.c (go_language_defn): Update.
7807 * f-valprint.c (f_val_print): Remove.
7808 * f-lang.h (f_value_print): Don't declare.
7809 * f-lang.c (f_language_defn): Update.
7810 * d-valprint.c (d_val_print): Remove.
7811 * d-lang.h (d_value_print): Don't declare.
7812 * d-lang.c (d_language_defn): Update.
7813 * cp-valprint.c (cp_print_value_fields)
7814 (cp_print_value_fields_rtti, cp_print_value): Remove.
7815 (cp_print_static_field): Update.
7816 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7817 (c_val_print_struct, c_val_print_union, c_val_print_int)
7818 (c_val_print_memberptr, c_val_print): Remove.
7819 * c-lang.h (c_val_print_array, cp_print_value_fields)
7820 (cp_print_value_fields_rtti): Don't declare.
7821 * c-lang.c (c_language_defn, cplus_language_defn)
7822 (asm_language_defn, minimal_language_defn): Update.
7823 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7824 (ada_val_print_enum): Take a struct value.
7825 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7826 (ada_val_print): Remove.
7827 (ada_value_print_1): Update.
7828 (printable_val_type): Remove.
7829 * ada-lang.h (ada_val_print): Don't declare.
7830 * ada-lang.c (ada_language_defn): Update.
7831
7832 2020-03-13 Tom Tromey <tom@tromey.com>
7833
7834 * valprint.c (do_val_print): Update.
7835 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7836 a struct value.
7837 (value_to_value_object_no_release): Declare.
7838 * python/py-value.c (value_to_value_object_no_release): New
7839 function.
7840 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7841 struct value.
7842 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7843 function.
7844 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7845 a struct value.
7846 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7847 Declare.
7848 (gdbscm_apply_val_pretty_printer): Take a struct value.
7849 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7850 value.
7851 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7852 value.
7853 * extension-priv.h (struct extension_language_ops)
7854 <apply_val_pretty_printer>: Take a struct value.
7855 * cp-valprint.c (cp_print_value): Create a struct value.
7856 (cp_print_value): Update.
7857
7858 2020-03-13 Tom Tromey <tom@tromey.com>
7859
7860 * ada-valprint.c (print_field_values): Call common_val_print.
7861
7862 2020-03-13 Tom Tromey <tom@tromey.com>
7863
7864 * ada-valprint.c (val_print_packed_array_elements): Remove
7865 bitoffset and val parameters. Call common_val_print.
7866 (ada_val_print_string): Remove offset, address, and original_value
7867 parameters.
7868 (ada_val_print_array): Update.
7869 (ada_value_print_array): New function.
7870 (ada_value_print_1): Call it.
7871
7872 2020-03-13 Tom Tromey <tom@tromey.com>
7873
7874 * ada-valprint.c (ada_value_print): Use common_val_print.
7875
7876 2020-03-13 Tom Tromey <tom@tromey.com>
7877
7878 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7879
7880 2020-03-13 Tom Tromey <tom@tromey.com>
7881
7882 * ada-valprint.c (ada_value_print_num): New function.
7883 (ada_value_print_1): Use it.
7884
7885 2020-03-13 Tom Tromey <tom@tromey.com>
7886
7887 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7888
7889 2020-03-13 Tom Tromey <tom@tromey.com>
7890
7891 * ada-valprint.c (ada_value_print_ptr): New function.
7892 (ada_value_print_1): Use it.
7893
7894 2020-03-13 Tom Tromey <tom@tromey.com>
7895
7896 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7897 call common_val_print.
7898 (ada_val_print_1): Update.
7899 (ada_value_print_1): New function.
7900 (ada_value_print_inner): Rewrite.
7901
7902 2020-03-13 Tom Tromey <tom@tromey.com>
7903
7904 * cp-valprint.c (cp_print_value_fields): Update.
7905 (cp_print_value): New function.
7906
7907 2020-03-13 Tom Tromey <tom@tromey.com>
7908
7909 * m2-valprint.c (m2_value_print_inner): Use
7910 cp_print_value_fields.
7911 * cp-valprint.c (cp_print_value_fields): New function.
7912 * c-valprint.c (c_value_print_struct): New function.
7913 (c_value_print_inner): Use c_value_print_struct.
7914 * c-lang.h (cp_print_value_fields): Declare.
7915
7916 2020-03-13 Tom Tromey <tom@tromey.com>
7917
7918 * c-valprint.c (c_value_print_array): New function.
7919 (c_value_print_inner): Use it.
7920
7921 2020-03-13 Tom Tromey <tom@tromey.com>
7922
7923 * c-valprint.c (c_value_print_memberptr): New function.
7924 (c_value_print_inner): Use it.
7925
7926 2020-03-13 Tom Tromey <tom@tromey.com>
7927
7928 * c-valprint.c (c_value_print_int): New function.
7929 (c_value_print_inner): Use it.
7930
7931 2020-03-13 Tom Tromey <tom@tromey.com>
7932
7933 * c-valprint.c (c_value_print_ptr): New function.
7934 (c_value_print_inner): Use it.
7935
7936 2020-03-13 Tom Tromey <tom@tromey.com>
7937
7938 * c-valprint.c (c_value_print_inner): Rewrite.
7939
7940 2020-03-13 Tom Tromey <tom@tromey.com>
7941
7942 * valprint.c (generic_value_print_complex): New function.
7943 (generic_value_print): Use it.
7944
7945 2020-03-13 Tom Tromey <tom@tromey.com>
7946
7947 * valprint.c (generic_val_print_float): Don't call
7948 val_print_scalar_formatted.
7949 (generic_val_print, generic_value_print): Update.
7950
7951 2020-03-13 Tom Tromey <tom@tromey.com>
7952
7953 * valprint.c (generic_value_print_char): New function
7954 (generic_value_print): Use it.
7955
7956 2020-03-13 Tom Tromey <tom@tromey.com>
7957
7958 * valprint.c (generic_value_print_int): New function.
7959 (generic_value_print): Use it.
7960
7961 2020-03-13 Tom Tromey <tom@tromey.com>
7962
7963 * valprint.c (generic_value_print_bool): New function.
7964 (generic_value_print): Use it.
7965
7966 2020-03-13 Tom Tromey <tom@tromey.com>
7967
7968 * valprint.c (generic_val_print_func): Simplify.
7969 (generic_val_print, generic_value_print): Update.
7970
7971 2020-03-13 Tom Tromey <tom@tromey.com>
7972
7973 * valprint.c (generic_val_print_flags): Remove.
7974 (generic_val_print, generic_value_print): Update.
7975 (val_print_type_code_flags): Add original_value parameter.
7976
7977 2020-03-13 Tom Tromey <tom@tromey.com>
7978
7979 * valprint.c (generic_val_print): Update.
7980 (generic_value_print): Update.
7981 * valprint.c (generic_val_print_enum): Don't call
7982 val_print_scalar_formatted.
7983
7984 2020-03-13 Tom Tromey <tom@tromey.com>
7985
7986 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7987 * valprint.c (generic_value_print_ptr): New function.
7988
7989 2020-03-13 Tom Tromey <tom@tromey.com>
7990
7991 * valprint.c (generic_value_print): Rewrite.
7992
7993 2020-03-13 Tom Tromey <tom@tromey.com>
7994
7995 * p-valprint.c (pascal_object_print_value_fields)
7996 (pascal_object_print_value): New functions.
7997
7998 2020-03-13 Tom Tromey <tom@tromey.com>
7999
8000 * p-valprint.c (pascal_value_print_inner): Rewrite.
8001
8002 2020-03-13 Tom Tromey <tom@tromey.com>
8003
8004 * f-valprint.c (f_value_print_innner): Rewrite.
8005
8006 2020-03-13 Tom Tromey <tom@tromey.com>
8007
8008 * m2-valprint.c (m2_print_unbounded_array): New overload.
8009 (m2_print_unbounded_array): Update.
8010 (m2_print_array_contents): Take a struct value.
8011 (m2_value_print_inner): Rewrite.
8012
8013 2020-03-13 Tom Tromey <tom@tromey.com>
8014
8015 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8016 (d_value_print_inner): New function.
8017 * d-lang.h (d_value_print_inner): Declare.
8018 * d-lang.c (d_language_defn): Use d_value_print_inner.
8019
8020 2020-03-13 Tom Tromey <tom@tromey.com>
8021
8022 * go-valprint.c (go_value_print_inner): New function.
8023 * go-lang.h (go_value_print_inner): Declare.
8024 * go-lang.c (go_language_defn): Use go_value_print_inner.
8025
8026 2020-03-13 Tom Tromey <tom@tromey.com>
8027
8028 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8029 API.
8030 (rust_val_print): Rewrite.
8031 (rust_value_print_inner): New function, from rust_val_print.
8032 (rust_language_defn): Use rust_value_print_inner.
8033
8034 2020-03-13 Tom Tromey <tom@tromey.com>
8035
8036 * ada-valprint.c (ada_value_print_inner): New function.
8037 * ada-lang.h (ada_value_print_inner): Declare.
8038 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8039
8040 2020-03-13 Tom Tromey <tom@tromey.com>
8041
8042 * f-valprint.c (f_value_print_innner): New function.
8043 * f-lang.h (f_value_print_innner): Declare.
8044 * f-lang.c (f_language_defn): Use f_value_print_innner.
8045
8046 2020-03-13 Tom Tromey <tom@tromey.com>
8047
8048 * p-valprint.c (pascal_value_print_inner): New function.
8049 * p-lang.h (pascal_value_print_inner): Declare.
8050 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8051
8052 2020-03-13 Tom Tromey <tom@tromey.com>
8053
8054 * m2-valprint.c (m2_value_print_inner): New function.
8055 * m2-lang.h (m2_value_print_inner): Declare.
8056 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8057
8058 2020-03-13 Tom Tromey <tom@tromey.com>
8059
8060 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8061 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8062 * c-valprint.c (c_value_print_inner): New function.
8063 * c-lang.h (c_value_print_inner): Declare.
8064 * c-lang.c (c_language_defn, cplus_language_defn)
8065 (asm_language_defn, minimal_language_defn): Use
8066 c_value_print_inner.
8067
8068 2020-03-13 Tom Tromey <tom@tromey.com>
8069
8070 * p-valprint.c (pascal_object_print_value_fields): Now static.
8071 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8072
8073 2020-03-13 Tom Tromey <tom@tromey.com>
8074
8075 * c-valprint.c (c_val_print_array): Simplify.
8076
8077 2020-03-13 Tom Tromey <tom@tromey.com>
8078
8079 * valprint.c (value_print_array_elements): New function.
8080 * valprint.h (value_print_array_elements): Declare.
8081
8082 2020-03-13 Tom Tromey <tom@tromey.com>
8083
8084 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8085 * mips-tdep.c (mips_print_register): Use
8086 value_print_scalar_formatted.
8087
8088 2020-03-13 Tom Tromey <tom@tromey.com>
8089
8090 * valprint.h (value_print_scalar_formatted): Declare.
8091 * valprint.c (value_print_scalar_formatted): New function.
8092
8093 2020-03-13 Tom Tromey <tom@tromey.com>
8094
8095 * valprint.h (generic_value_print): Declare.
8096 * valprint.c (generic_value_print): New function.
8097
8098 2020-03-13 Tom Tromey <tom@tromey.com>
8099
8100 * valprint.c (do_val_print): Call la_value_print_inner, if
8101 available.
8102 * rust-lang.c (rust_language_defn): Update.
8103 * p-lang.c (pascal_language_defn): Update.
8104 * opencl-lang.c (opencl_language_defn): Update.
8105 * objc-lang.c (objc_language_defn): Update.
8106 * m2-lang.c (m2_language_defn): Update.
8107 * language.h (struct language_defn) <la_value_print_inner>: New
8108 member.
8109 * language.c (unknown_language_defn, auto_language_defn): Update.
8110 * go-lang.c (go_language_defn): Update.
8111 * f-lang.c (f_language_defn): Update.
8112 * d-lang.c (d_language_defn): Update.
8113 * c-lang.c (c_language_defn, cplus_language_defn)
8114 (asm_language_defn, minimal_language_defn): Update.
8115 * ada-lang.c (ada_language_defn): Update.
8116
8117 2020-03-13 Tom Tromey <tom@tromey.com>
8118
8119 * c-valprint.c (c_value_print): Use common_val_print.
8120
8121 2020-03-13 Tom Tromey <tom@tromey.com>
8122
8123 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8124
8125 2020-03-13 Tom Tromey <tom@tromey.com>
8126
8127 * f-valprint.c (f77_print_array_1, f_val_print): Use
8128 common_val_print.
8129
8130 2020-03-13 Tom Tromey <tom@tromey.com>
8131
8132 * riscv-tdep.c (riscv_print_one_register_info): Use
8133 common_val_print.
8134
8135 2020-03-13 Tom Tromey <tom@tromey.com>
8136
8137 * mi/mi-main.c (output_register): Use common_val_print.
8138
8139 2020-03-13 Tom Tromey <tom@tromey.com>
8140
8141 * infcmd.c (default_print_one_register_info): Use
8142 common_val_print.
8143
8144 2020-03-13 Tom Tromey <tom@tromey.com>
8145
8146 * valprint.h (common_val_print_checked): Declare.
8147 * valprint.c (common_val_print_checked): New function.
8148 * stack.c (print_frame_arg): Use common_val_print_checked.
8149
8150 2020-03-13 Tom Tromey <tom@tromey.com>
8151
8152 * valprint.c (do_val_print): New function, from val_print.
8153 (val_print): Use do_val_print.
8154 (common_val_print): Use do_val_print.
8155
8156 2020-03-13 Tom Tromey <tom@tromey.com>
8157
8158 * valprint.c (value_print): Use scoped_value_mark.
8159
8160 2020-03-13 Tom de Vries <tdevries@suse.de>
8161
8162 PR symtab/25646
8163 * psymtab.c (partial_symtab::partial_symtab): Don't set
8164 globals_offset and statics_offset. Push element onto
8165 current_global_psymbols and current_static_psymbols stacks.
8166 (concat): New function.
8167 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8168 element from current_global_psymbols and current_static_psymbols
8169 stacks. Concat popped elements to global_psymbols and
8170 static_symbols.
8171 (add_psymbol_to_list): Use current_global_psymbols and
8172 current_static_psymbols stacks.
8173 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8174 current_static_psymbols fields.
8175
8176 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8177
8178 * corelow.c (sniff_core_bfd): Remove.
8179 (class core_target) <m_core_vec>: Remove.
8180 (core_target::core_target): Update.
8181 (core_file_fns): Remove.
8182 (deprecated_add_core_fns): Remove.
8183 (default_core_sniffer): Remove.
8184 (sniff_core_bfd): Remove.
8185 (default_check_format): Remove.
8186 (gdb_check_format): Remove.
8187 (core_target_open): Update.
8188 (core_target::get_core_register_section): Update.
8189 (get_core_registers_cb): Update.
8190 (core_target::fetch_registers): Update.
8191 * gdbcore.h (struct core_fns): Remove.
8192 (deprecated_add_core_fns): Remove.
8193 (default_core_sniffer): Remove.
8194 (default_check_format): Remove.
8195
8196 2020-03-12 Tom Tromey <tom@tromey.com>
8197
8198 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8199 CORE_ADDR.
8200 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8201
8202 2020-03-12 Tom Tromey <tom@tromey.com>
8203
8204 * remote.c (remote_target::download_tracepoint)
8205 (remote_target::enable_tracepoint)
8206 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8207 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8208 sprintf_vma.
8209
8210 2020-03-12 Tom Tromey <tom@tromey.com>
8211
8212 * symfile-mem.c: Update CORE_ADDR size assert.
8213
8214 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8215
8216 * selftest.m4: Move to gdbsupport/.
8217 * acinclude.m4: Update path to selftest.m4.
8218
8219 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8220
8221 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8222 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8223 gdbarch-selfselftests.c and selftest-arch.c.
8224 (SUBDIR_UNITTESTS_OBS): Rename to...
8225 (SELFTESTS_OBS): ... this.
8226 (COMMON_SFILES): Remove disasm-selftests.c and
8227 gdbarch-selftests.c.
8228 * configure.ac: Don't add selftest-arch.{c,o} to
8229 CONFIG_{SRCS,OBS}.
8230 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8231 preprocessor conditions.
8232
8233 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8234
8235 * configure.ac: Don't source bfd/development.sh.
8236 * selftest.m4: Modify comment.
8237 * configure: Re-generate.
8238
8239 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8240
8241 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8242 not "true" or "false".
8243 * configure: Re-generate.
8244
8245 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8246
8247 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8248 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8249 renamed to arm_nbsd_supply_gregset.
8250 (fetch_register): Update to call arm_nbsd_supply_gregset.
8251 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8252 (arm_netbsd_nat_target::fetch_registers): Update.
8253 (fetch_elfcore_registers): Removed.
8254 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8255 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8256 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8257 not require NetBSD system headers.
8258 (arm_nbsd_regset): New struct.
8259 (arm_nbsd_iterate_over_regset_sections): New function.
8260 (arm_netbsd_init_abi_common): Updated to call
8261 set_gdbarch_iterate_over_regset_sections.
8262 * arm-nbsd-tdep.h: New file.
8263
8264 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8265
8266 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8267 recursion.
8268
8269 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8270
8271 * configure: Re-generate.
8272
8273 2020-03-11 Tom Tromey <tromey@adacore.com>
8274
8275 * ada-typeprint.c (print_choices): Fix comment.
8276
8277 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8278
8279 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8280 previous item in the list, when the list has no items.
8281
8282 2020-03-11 Tom de Vries <tdevries@suse.de>
8283
8284 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8285 PROP_LOCLIST handling code.
8286
8287 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8288
8289 * buildsym-legacy.c (record_line): Pass extra parameter to
8290 record_line.
8291 * buildsym.c (buildsym_compunit::record_line): Take an extra
8292 parameter, reduce duplication in the line table, and record the
8293 is_stmt flag in the line table.
8294 * buildsym.h (buildsym_compunit::record_line): Add extra
8295 parameter.
8296 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8297 non-statement lines.
8298 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8299 this to the symtab builder.
8300 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8301 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8302 through to dwarf_record_line_1.
8303 * infrun.c (process_event_stop_test): When stepping, don't stop at
8304 a non-statement instruction, and only refresh the step info when
8305 we land in the middle of a line's range. Also add an extra
8306 comment.
8307 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8308 field.
8309 * record-btrace.c (btrace_find_line_range): Only record lines
8310 marked as is-statement.
8311 * stack.c (frame_show_address): Show the frame address if we are
8312 in a non-statement sal.
8313 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8314 (maintenance_print_one_line_table): Print a header for the is_stmt
8315 column, and include is_stmt information in the output.
8316 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8317 preference to non-statements.
8318 (find_pcs_for_symtab_line): Prefer is-statement entries.
8319 (find_line_common): Likewise.
8320 * symtab.h (struct linetable_entry): Add is_stmt field.
8321 (struct symtab_and_line): Likewise.
8322 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8323 arranging the line table.
8324
8325 2020-03-07 Tom de Vries <tdevries@suse.de>
8326
8327 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8328 DIE.
8329
8330 2020-03-07 Tom Tromey <tom@tromey.com>
8331
8332 * valops.c (value_literal_complex): Remove obsolete comment.
8333 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8334 comment.
8335
8336 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8337
8338 * infrun.h: Forward-declare thread_info.
8339 (set_step_info): Add thread_info parameter, add doc.
8340 * infrun.c (set_step_info): Add thread_info parameter, move doc
8341 to header.
8342 * infrun.c (process_event_stop_test): Pass thread to
8343 set_step_info call.
8344 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8345 set_step_info.
8346 (prepare_one_step): Add thread_info parameter, pass it to
8347 set_step_frame and prepare_one_step (recursive) call.
8348 (step_1): Pass thread to prepare_one_step call.
8349 (step_command_fsm::should_stop): Pass thread to
8350 prepare_one_step.
8351 (until_next_fsm): Pass thread to set_step_frame call.
8352 (finish_command): Pass thread to set_step_info call.
8353
8354 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8355
8356 * windows-tdep.c (windows_solib_create_inferior_hook):
8357 Check if inferior is running.
8358
8359 2020-03-06 Tom de Vries <tdevries@suse.de>
8360
8361 * NEWS: Fix "the the".
8362 * ctfread.c: Same.
8363
8364 2020-03-06 Tom de Vries <tdevries@suse.de>
8365
8366 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8367
8368 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8369
8370 * .dir-locals.el: Add a comment referencing the other copies of
8371 this file.
8372
8373 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8374
8375 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8376 psargs.
8377
8378 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8379
8380 * .gitattributes: New file.
8381
8382 2020-03-04 Tom Tromey <tom@tromey.com>
8383
8384 * symmisc.c (print_symbol_bcache_statistics)
8385 (print_objfile_statistics): Update.
8386 * symfile.c (allocate_symtab): Use intern.
8387 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8388 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8389 macro_cache>: Remove.
8390 <string_cache>: New member.
8391 (struct objfile) <intern>: New methods.
8392 * elfread.c (elf_symtab_read): Use intern.
8393 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8394 (dwarf2_compute_name, dwarf2_physname)
8395 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8396 names.
8397 (guess_partial_die_structure_name): Update.
8398 (partial_die_info::fixup): Intern name.
8399 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8400 name.
8401 (dwarf2_name): Intern name. Update.
8402 * buildsym.c (buildsym_compunit::get_macro_table): Use
8403 string_cache.
8404
8405 2020-03-04 Tom Tromey <tom@tromey.com>
8406
8407 * jit.c (bfd_open_from_target_memory): Make "target" const.
8408 * corefile.c (gnutarget): Now const.
8409 * gdbcore.h (gnutarget): Now const.
8410
8411 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8412
8413 * NEWS: Mention support for WOW64 processes.
8414 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8415 (amd64_windows_segment_register_p): Remove static.
8416 (_initialize_amd64_windows_nat): Update.
8417 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8418 * i386-windows-nat.c (context_offset): Update.
8419 (i386_mappings): Rename and remove static.
8420 (i386_windows_segment_register_p): Remove static.
8421 (_initialize_i386_windows_nat): Update.
8422 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8423 (STATUS_WX86_SINGLE_STEP): New macro.
8424 (EnumProcessModulesEx): New macro.
8425 (Wow64SuspendThread): New macro.
8426 (Wow64GetThreadContext): New macro.
8427 (Wow64SetThreadContext): New macro.
8428 (Wow64GetThreadSelectorEntry): New macro.
8429 (windows_set_context_register_offsets): Add static.
8430 (windows_set_segment_register_p): Likewise.
8431 (windows_add_thread): Adapt for WOW64 processes.
8432 (windows_fetch_one_register): Likewise.
8433 (windows_nat_target::fetch_registers): Likewise.
8434 (windows_store_one_register): Likewise.
8435 (display_selector): Likewise.
8436 (display_selectors): Likewise.
8437 (handle_exception): Likewise.
8438 (windows_continue): Likewise.
8439 (windows_nat_target::resume): Likewise.
8440 (windows_add_all_dlls): Likewise.
8441 (do_initial_windows_stuff): Likewise.
8442 (windows_nat_target::attach): Likewise.
8443 (windows_get_exec_module_filename): Likewise.
8444 (windows_nat_target::create_inferior): Likewise.
8445 (windows_xfer_siginfo): Likewise.
8446 (_initialize_loadable): Initialize Wow64SuspendThread,
8447 Wow64GetThreadContext, Wow64SetThreadContext,
8448 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8449 * windows-nat.h (windows_set_context_register_offsets):
8450 Remove declaration.
8451 (windows_set_segment_register_p): Likewise.
8452 (i386_windows_segment_register_p): Add declaration.
8453 (amd64_windows_segment_register_p): Likewise.
8454
8455 2020-03-04 Luis Machado <luis.machado@linaro.org>
8456
8457 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8458 in "info registers" for AArch64/ARM.
8459
8460 The change caused "info registers" to not print GPR's.
8461
8462 gdb/ChangeLog:
8463
8464 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8465
8466 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8467 when reg->group is empty and reggroup is not.
8468
8469 2020-03-03 Tom Tromey <tromey@adacore.com>
8470
8471 * dwarf2/frame.c (struct dwarf2_frame_cache)
8472 <checked_tailcall_bottom, entry_cfa_sp_offset,
8473 entry_cfa_sp_offset_p>: Remove members.
8474 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8475 (dwarf2_frame_prev_register): Don't call
8476 dwarf2_tailcall_sniffer_first.
8477 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8478 * frame-unwind.c (add_unwinder): New fuction.
8479 (frame_unwind_init): Use it. Add tailcall unwinder.
8480
8481 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8482 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8483
8484 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8485 value should be printed as true.
8486
8487 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8488
8489 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8490 (windows_init_abi): Set and use windows_so_ops.
8491
8492 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8493
8494 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8495 when verifying if dealing with a convenience variable.
8496
8497 2020-03-03 Luis Machado <luis.machado@linaro.org>
8498
8499 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8500
8501 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8502
8503 * infrun.c (gdbarch_supports_displaced_stepping): New.
8504 (use_displaced_stepping): Break up conditions in smaller pieces.
8505 Use gdbarch_supports_displaced_stepping.
8506 (displaced_step_prepare_throw): Use
8507 gdbarch_supports_displaced_stepping.
8508
8509 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8510
8511 * NEWS: Mention new behaviour of the history filename.
8512 * top.c (write_history_p): Add comment.
8513 (show_write_history_p): Add header comment, give a different
8514 message when history writing is on, but the history filename is
8515 empty.
8516 (history_filename): Add comment.
8517 (history_filename_empty): New function.
8518 (show_history_filename): Add header comment, give a different
8519 message when the filename is empty.
8520 (init_history): Compare history_filename against nullptr, and only
8521 read history if the filename is not empty.
8522 (set_history_filename): Add header comment, and only make
8523 non-empty filenames absolute.
8524 (init_main): Make the filename argument to 'set history filename'
8525 optional.
8526
8527 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8528
8529 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8530 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8531 (fetch_fp_register): Update.
8532 (fetch_fp_regs): Update.
8533 (store_fp_register): Update.
8534 (store_fp_regs): Update.
8535 (arm_netbsd_nat_target::read_description): New function.
8536 (fetch_elfcore_registers): Update.
8537
8538 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8539
8540 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8541 general_thread if the stop reply is missing a thread-id.
8542 (remote_target::process_stop_reply): Use the first non-exited
8543 thread if the target didn't pass a thread-id.
8544 * infrun.c (do_target_wait): Move call to
8545 switch_to_inferior_no_thread to ....
8546 (do_target_wait_1): ... here.
8547
8548 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8549
8550 * debuginfod-support.c: Include defs.h first.
8551
8552 2020-02-28 Tom de Vries <tdevries@suse.de>
8553
8554 * symfile.c (set_initial_language): Use default language for lookup.
8555
8556 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8557
8558 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8559 reader variable, pass `this` to read_cutu_die_from_dwo.
8560
8561 2020-02-27 Aaron Merey <amerey@redhat.com>
8562
8563 * source.c (open_source_file): Check for nullptr when computing
8564 srcpath.
8565
8566 2020-02-27 Tom Tromey <tromey@adacore.com>
8567
8568 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8569 member.
8570 (dwarf2_add_field): Don't update nfields.
8571 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8572
8573 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8574
8575 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8576 abs.
8577
8578 2020-02-26 Tom Tromey <tom@tromey.com>
8579
8580 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8581 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8582 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8583 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8584 per_cu_data.
8585
8586 2020-02-26 Tom Tromey <tom@tromey.com>
8587
8588 * dwarf2/index-write.c (psym_index_map): Change type.
8589 (add_address_entry_worker, write_one_signatured_type)
8590 (recursively_count_psymbols, recursively_write_psymbols)
8591 (class debug_names, psyms_seen_size, write_gdbindex)
8592 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8593
8594 2020-02-26 Aaron Merey <amerey@redhat.com>
8595
8596 * Makefile.in: Handle optional debuginfod support.
8597 * NEWS: Update.
8598 * README: Add --with-debuginfod summary.
8599 * config.in: Regenerate.
8600 * configure: Regenerate.
8601 * configure.ac: Handle optional debuginfod support.
8602 * debuginfod-support.c: debuginfod helper functions.
8603 * debuginfod-support.h: Ditto.
8604 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8605 summary.
8606 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8607 when a dwz file cannot be found.
8608 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8609 debuginfo file cannot be found.
8610 * source.c (open_source_file): Query debuginfod servers when a
8611 source file cannot be found.
8612 * top.c (print_gdb_configuration): Include
8613 --{with,without}-debuginfod in the output.
8614
8615 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8616
8617 * thread.c (thr_try_catch_cmd): Print thread name.
8618
8619 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8620
8621 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8622 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8623 dwarf2_fetch_die_type_sect_off): Move to...
8624 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8625 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8626 dwarf2_fetch_die_type_sect_off): ... here.
8627 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8628 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8629 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8630
8631 2020-02-26 Tom de Vries <tdevries@suse.de>
8632
8633 PR gdb/25603
8634 * symfile.c (set_initial_language): Exit-early if
8635 language_mode == language_mode_manual.
8636
8637 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8638
8639 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8640 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8641 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8642
8643 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8644
8645 * gdbtypes.c (create_array_type_with_stride): Handle negative
8646 array strides.
8647 * valarith.c (value_subscripted_rvalue): Likewise.
8648
8649 2020-02-25 Luis Machado <luis.machado@linaro.org>
8650
8651 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8652
8653 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8654
8655 * loc.h (dwarf2_get_die_type): Move to...
8656 * read.h (dwarf2_get_die_type): ... here.
8657 * read.c (dwarf2_get_die_type): Move doc to header.
8658
8659 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8660
8661 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8662 'gnulib/Makefile.in' to the list.
8663
8664 2020-02-24 Tom Tromey <tom@tromey.com>
8665
8666 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8667 Remove.
8668 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8669 XOBNEWVEC.
8670
8671 2020-02-24 Tom Tromey <tom@tromey.com>
8672
8673 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8674 New method.
8675 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8676 (dw2_do_instantiate_symtab, dw2_get_file_names)
8677 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8678
8679 2020-02-24 Tom Tromey <tom@tromey.com>
8680
8681 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8682 make_scoped_restore.
8683 (dwarf2_psymtab::read_symtab): Don't clear
8684 reading_partial_symbols.
8685
8686 2020-02-24 Tom de Vries <tdevries@suse.de>
8687
8688 PR gdb/25592
8689 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8690
8691 2020-02-24 Tom de Vries <tdevries@suse.de>
8692
8693 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8694 commands layout next/prev/regs.
8695
8696 2020-02-22 Tom Tromey <tom@tromey.com>
8697
8698 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8699 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8700
8701 2020-02-22 Tom Tromey <tom@tromey.com>
8702
8703 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8704
8705 2020-02-22 Tom Tromey <tom@tromey.com>
8706
8707 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8708 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8709 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8710 * tui/tui.c (_initialize_tui): Add usage text.
8711
8712 2020-02-22 Tom Tromey <tom@tromey.com>
8713
8714 * tui/tui-win.c (tui_set_focus_command)
8715 (tui_set_win_height_command): Use error_no_arg.
8716 (_initialize_tui_win): Update help text.
8717 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8718
8719 2020-02-22 Tom Tromey <tom@tromey.com>
8720
8721 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8722 * tui/tui-disasm.h (struct tui_disasm_window)
8723 <display_start_addr>: Declare.
8724 * tui/tui-source.h (struct tui_source_window)
8725 <display_start_addr>: Declare.
8726 * tui/tui-winsource.h (struct tui_source_window_base)
8727 <show_source_line, display_start_addr>: New methods.
8728 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8729 Rename and move to protected section.
8730 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8731 (tui_source_window_base::do_erase_source_content): Update.
8732 (tui_source_window_base::show_source_line): Now a method.
8733 (tui_source_window_base::show_source_content)
8734 (tui_source_window_base::tui_source_window_base)
8735 (tui_source_window_base::rerender)
8736 (tui_source_window_base::refill)
8737 (tui_source_window_base::do_scroll_horizontal)
8738 (tui_source_window_base::set_is_exec_point_at)
8739 (tui_source_window_base::update_breakpoint_info)
8740 (tui_source_window_base::update_exec_info): Update.
8741 * tui/tui-source.c (tui_source_window::set_contents)
8742 (tui_source_window::showing_source_p)
8743 (tui_source_window::do_scroll_vertical)
8744 (tui_source_window::location_matches_p)
8745 (tui_source_window::line_is_displayed): Update.
8746 (tui_source_window::display_start_addr): New method.
8747 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8748 (tui_disasm_window::do_scroll_vertical)
8749 (tui_disasm_window::location_matches_p): Update.
8750 (tui_disasm_window::display_start_addr): New method.
8751
8752 2020-02-22 Tom Tromey <tom@tromey.com>
8753
8754 * NEWS: Add entry for gdb.register_window_type.
8755 * tui/tui-layout.h (window_factory): New typedef.
8756 (tui_register_window): Declare.
8757 * tui/tui-layout.c (saved_tui_windows): New global.
8758 (tui_apply_current_layout): Use it.
8759 (tui_register_window): New function.
8760 * python/python.c (do_start_initialization): Call
8761 gdbpy_initialize_tui.
8762 (python_GdbMethods): Add "register_window_type" function.
8763 * python/python-internal.h (gdbpy_register_tui_window)
8764 (gdbpy_initialize_tui): Declare.
8765 * python/py-tui.c: New file.
8766 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8767
8768 2020-02-22 Tom Tromey <tom@tromey.com>
8769
8770 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8771
8772 2020-02-22 Tom Tromey <tom@tromey.com>
8773
8774 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8775 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8776 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8777 (tui_set_win_focus_to): Move from tui-win.c.
8778
8779 2020-02-22 Tom Tromey <tom@tromey.com>
8780
8781 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8782 functions.
8783 (known_window_types): New global.
8784 (tui_get_window_by_name): Reimplement.
8785 (initialize_known_windows): New function.
8786 (validate_window_name): Rewrite.
8787 (_initialize_tui_layout): Call initialize_known_windows.
8788
8789 2020-02-22 Tom Tromey <tom@tromey.com>
8790
8791 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8792 Remove constants.
8793 * tui/tui-winsource.h (struct tui_source_window_base)
8794 <tui_source_window_base>: Remove parameter.
8795 * tui/tui-winsource.c
8796 (tui_source_window_base::tui_source_window_base): Remove
8797 parameter.
8798 (tui_source_window_base::refill): Update.
8799 * tui/tui-stack.h (struct tui_locator_window)
8800 <tui_locator_window>: Update.
8801 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8802 Default the constructor.
8803 * tui/tui-regs.h (struct tui_data_item_window)
8804 <tui_data_item_window>: Default the constructor.
8805 (struct tui_data_window) <tui_data_window>: Likewise.
8806 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8807 Default the constructor.
8808 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8809 Default the constructor.
8810 <type>: Remove.
8811 (struct tui_win_info) <tui_win_info>: Default the constructor.
8812 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8813 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8814 Default the constructor.
8815
8816 2020-02-22 Tom Tromey <tom@tromey.com>
8817
8818 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8819 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8820 * tui/tui-win.c (tui_resize_all): Don't call
8821 tui_delete_invisible_windows.
8822 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8823 done.
8824 (tui_set_layout): Update.
8825 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8826 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8827 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8828
8829 2020-02-22 Tom Tromey <tom@tromey.com>
8830
8831 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8832 correctly.
8833
8834 2020-02-22 Tom Tromey <tom@tromey.com>
8835
8836 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8837
8838 2020-02-22 Tom Tromey <tom@tromey.com>
8839
8840 * tui/tui-winsource.h (struct tui_source_window_iterator)
8841 <inner_iterator>: New etytypedef.
8842 <tui_source_window_iterator>: Take "end" parameter.
8843 <tui_source_window_iterator>: Take iterator.
8844 <operator*, advance>: Update.
8845 <m_iter>: Change type.
8846 <m_end>: New field.
8847 (struct tui_source_windows) <begin, end>: Update.
8848 * tui/tui-layout.c (tui_windows): New global.
8849 (tui_apply_current_layout): Clear tui_windows.
8850 (tui_layout_window::apply): Update tui_windows.
8851 * tui/tui-data.h (tui_windows): Declare.
8852 (all_tui_windows): Now inline function.
8853 (class tui_window_iterator, struct all_tui_windows): Remove.
8854
8855 2020-02-22 Tom Tromey <tom@tromey.com>
8856
8857 PR tui/17850:
8858 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8859 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8860 "height" argument.
8861 (class tui_layout_window) <get_sizes>: Likewise.
8862 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8863 argument.
8864 <get_sizes>: Add "height" argument.
8865 <m_vertical>: New field.
8866 * tui/tui-layout.c (tui_layout_split::clone): Update.
8867 (tui_layout_split::get_sizes): Add "height" argument.
8868 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8869 (tui_new_layout_command): Parse "-horizontal".
8870 (_initialize_tui_layout): Update help string.
8871 (tui_layout_split::specification): Add "-horizontal" when needed.
8872 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8873 argument.
8874 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8875 New methods.
8876
8877 2020-02-22 Tom Tromey <tom@tromey.com>
8878
8879 * tui/tui-layout.h (enum tui_adjust_result): New.
8880 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8881 (class tui_layout_window) <adjust_size>: Return
8882 tui_adjust_result. Rewrite.
8883 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8884 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8885
8886 2020-02-22 Tom Tromey <tom@tromey.com>
8887
8888 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8889 parameter and return types.
8890 (class tui_layout_base) <specification>: Add "depth".
8891 (class tui_layout_window) <specification>: Add "depth".
8892 (class tui_layout_split) <specification>: Add "depth".
8893 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8894 and return types.
8895 (tui_new_layout_command): Parse sub-layouts.
8896 (_initialize_tui_layout): Update help string.
8897 (tui_layout_window::specification): Add "depth".
8898 (add_layout_command): Update.
8899
8900 2020-02-22 Tom Tromey <tom@tromey.com>
8901
8902 * NEWS: Add "tui new-layout" item.
8903 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8904 Add new-layout command to help text.
8905 (validate_window_name): New function.
8906 (tui_new_layout_command): New function.
8907 (_initialize_tui_layout): Register "new-layout".
8908 (tui_layout_window::specification): New method.
8909 (tui_layout_window::specification): New method.
8910 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8911 method.
8912 (class tui_layout_window) <specification>: New method.
8913 (class tui_layout_split) <specification>: New method.
8914
8915 2020-02-22 Tom Tromey <tom@tromey.com>
8916
8917 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8918 * tui/tui-win.c (window_name_completer): Update comment.
8919 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8920 Declare method.
8921 (class tui_layout_window) <replace_window>: Likewise.
8922 (class tui_layout_split) <replace_window>: Likewise.
8923 (tui_set_layout): Don't declare.
8924 (tui_set_initial_layout): Declare function.
8925 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8926 (asm_regs_layout): New globals.
8927 (tui_current_layout, show_layout): Remove.
8928 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8929 (find_layout, tui_apply_layout): New function.
8930 (layout_completer): Remove.
8931 (tui_next_layout): Reimplement.
8932 (tui_next_layout_command): New function.
8933 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8934 (tui_regs_layout): Reimplement.
8935 (tui_regs_layout_command): New function.
8936 (extract_display_start_addr): Rewrite.
8937 (next_layout, prev_layout): Remove.
8938 (tui_layout_window::replace_window): New method.
8939 (tui_layout_split::replace_window): New method.
8940 (destroy_layout): New function.
8941 (layout_list): New global.
8942 (add_layout_command): New function.
8943 (initialize_layouts): Update.
8944 (tui_layout_command): New function.
8945 (_initialize_tui_layout): Install "layout" commands.
8946 * tui/tui-data.h (enum tui_layout_type): Remove.
8947 (tui_current_layout): Don't declare.
8948
8949 2020-02-22 Tom Tromey <tom@tromey.com>
8950
8951 * tui/tui-regs.c (tui_reg_layout): Remove.
8952 (tui_reg_command): Use tui_regs_layout.
8953 * tui/tui-layout.h (tui_reg_command): Declare.
8954 * tui/tui-layout.c (tui_reg_command): New function.
8955
8956 2020-02-22 Tom Tromey <tom@tromey.com>
8957
8958 * tui/tui.c (tui_rl_delete_other_windows): Call
8959 tui_remove_some_windows.
8960 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8961 Declare method.
8962 (class tui_layout_window) <remove_windows>: New method.
8963 (class tui_layout_split) <remove_windows>: Declare.
8964 (tui_remove_some_windows): Declare.
8965 * tui/tui-layout.c (tui_remove_some_windows): New function.
8966 (tui_layout_split::remove_windows): New method.
8967
8968 2020-02-22 Tom Tromey <tom@tromey.com>
8969
8970 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8971 * tui/tui-layout.h (tui_next_layout): Declare.
8972 * tui/tui-layout.c (tui_next_layout): New function.
8973
8974 2020-02-22 Tom Tromey <tom@tromey.com>
8975
8976 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8977 correct coordinates.
8978
8979 2020-02-22 Tom Tromey <tom@tromey.com>
8980
8981 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8982 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8983 DATA_WIN case.
8984
8985 2020-02-22 Tom Tromey <tom@tromey.com>
8986
8987 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8988 TUI_DISASM_WIN, not tui_win_list.
8989
8990 2020-02-22 Tom Tromey <tom@tromey.com>
8991
8992 * valprint.c (generic_val_print_enum_1)
8993 (val_print_type_code_flags): Style member names.
8994 * rust-lang.c (val_print_struct, rust_print_enum)
8995 (rust_print_struct_def, rust_internal_print_type): Style member
8996 names.
8997 * p-valprint.c (pascal_object_print_value_fields): Style member
8998 names. Only call fprintf_symbol_filtered for static members.
8999 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9000 * f-valprint.c (f_val_print): Style member names.
9001 * f-typeprint.c (f_type_print_base): Style member names.
9002 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9003 call fprintf_symbol_filtered for static members.
9004 (cp_print_class_member): Style member names.
9005 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9006 member names.
9007 * ada-valprint.c (ada_print_scalar): Style enum names.
9008 (ada_val_print_enum): Likewise.
9009 * ada-typeprint.c (print_enum_type): Style enum names.
9010
9011 2020-02-21 Tom Tromey <tom@tromey.com>
9012
9013 * psympriv.h (struct partial_symtab): Update comment.
9014
9015 2020-02-21 Tom Tromey <tromey@adacore.com>
9016
9017 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9018 type is CORE_ADDR.
9019
9020 2020-02-21 Tom de Vries <tdevries@suse.de>
9021
9022 PR gdb/25534
9023 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9024 if dependencies[i]->user != NULL.
9025
9026 2020-02-21 Ali Tamur <tamur@google.com>
9027
9028 * dwarf2/read.c (dwarf2_name): Add null check.
9029
9030 2020-02-20 Tom Tromey <tom@tromey.com>
9031
9032 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9033 ">=", in binary search.
9034 (dwarf2_find_containing_comp_unit): New overload.
9035 (run_test): New self-test.
9036 (_initialize_dwarf2_read): Register new test.
9037
9038 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9039
9040 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9041 * riscv-tdep.h: Likewise.
9042 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9043 rv32-only CSR.
9044 * features/riscv/64bit-csr.xml: Regenerated.
9045
9046 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9047 Tom Tromey <tom@tromey.com>
9048
9049 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9050 of 'fputc_unfiltered'.
9051 (putchar_unfiltered): Call 'fputc_unfiltered'.
9052 (fputc_unfiltered): Call 'fputs_unfiltered'.
9053
9054 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9055
9056 * config.in: Regenerate.
9057 * configure: Regenerate.
9058 * configure.ac: Add --with-python-libdir option.
9059 * main.c: Use WITH_PYTHON_LIBDIR.
9060
9061 2020-02-19 Tom Tromey <tom@tromey.com>
9062
9063 * symtab.c (general_symbol_info::compute_and_set_names): Use
9064 obstack_strndup. Simplify call to symbol_set_demangled_name.
9065
9066 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9067
9068 * dwarf2/read.c (allocate_signatured_type_table,
9069 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9070 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9071 Remove objfile parameter, update all callers.
9072
9073 2020-02-19 Doug Evans <dje@google.com>
9074
9075 PR rust/25535
9076 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9077 rust_enum_variant calculation.
9078
9079 2020-02-19 Tom Tromey <tromey@adacore.com>
9080
9081 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9082
9083 2020-02-19 Tom Tromey <tromey@adacore.com>
9084
9085 * ada-lang.c (cache_symbol): Use obstack_strdup.
9086
9087 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9088
9089 * configure: Regenerate.
9090
9091 2020-02-19 Tom Tromey <tromey@adacore.com>
9092
9093 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9094 NULL check.
9095
9096 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9097
9098 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9099
9100 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9101
9102 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9103 if GDBSERVER is not defined.
9104 (riscv_tdesc_cache): Likewise, also store const target_desc.
9105 (STATIC_IN_GDB): Define.
9106 (riscv_create_target_description): Update declaration with
9107 STATIC_IN_GDB.
9108 (riscv_lookup_target_description): New function, only define if
9109 GDBSERVER is not defined.
9110 * arch/riscv.h (riscv_create_target_description): Declare only
9111 when GDBSERVER is defined.
9112 (riscv_lookup_target_description): New declaration when GDBSERVER
9113 is not defined.
9114 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9115 (riscv_linux_read_features): ...this, and return
9116 riscv_gdbarch_features instead of target_desc.
9117 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9118 (riscv_linux_read_description): Rename to...
9119 (riscv_linux_read_features): ...this.
9120 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9121 Update to use riscv_gdbarch_features and
9122 riscv_lookup_target_description.
9123 * riscv-tdep.c (riscv_find_default_target_description): Use
9124 riscv_lookup_target_description instead of
9125 riscv_create_target_description.
9126
9127 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9128
9129 * valprint.c (generic_val_print_enum_1): When printing a flag
9130 enum with value 0 and there is no enumerator with value 0, print
9131 just "0" instead of "(unknown: 0x0)".
9132
9133 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9134
9135 * valprint.c (generic_val_print_enum_1): Print unknown part of
9136 flag enum in hex.
9137
9138 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9139
9140 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9141 flag enums to contain duplicate enumerators.
9142 * valprint.c (generic_val_print_enum_1): Update comment.
9143
9144 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9145
9146 * dwarf2/read.c: Include "count-one-bits.h".
9147 (update_enumeration_type_from_children): If an enumerator has
9148 multiple bits set, don't treat the enumeration as a "flag enum".
9149 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9150 of flag enums have 0 or 1 bit set.
9151
9152 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9153
9154 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9155 conversion.
9156 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9157 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9158 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9159 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9160 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9161
9162 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9163
9164 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9165
9166 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9167
9168 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9169 displaced_step_closure_up.
9170 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9171 (struct displaced_step_closure_up):
9172 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9173 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9174 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9175 Likewise.
9176 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9177 * gdbarch.c, gdbarch.h: Re-generate.
9178 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9179 displaced_step_closure_up.
9180 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9181 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9182 * infrun.h (displaced_step_closure_up): New type alias.
9183 (struct displaced_step_inferior_state) <step_closure>: Change
9184 type to displaced_step_closure_up.
9185 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9186 displaced_step_closure_up.
9187 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9188
9189 2020-02-14 Tom Tromey <tom@tromey.com>
9190
9191 * minidebug.c (gnu_debug_key): New global.
9192 (find_separate_debug_file_in_section): Use it.
9193
9194 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9195
9196 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9197 std::unique_ptr.
9198 * gdbarch.c: Re-generate.
9199 * gdbarch.h: Re-generate.
9200 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9201 change.
9202 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9203 type to std::unique_ptr.
9204 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9205 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9206 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9207 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9208 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9209 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9210 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9211 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9212 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9213
9214 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9215
9216 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9217 std::unique_ptr.
9218 (displaced_step_clear): Rename to...
9219 (displaced_step_reset): ... this. Just call displaced->reset ().
9220 (displaced_step_clear_cleanup): Rename to...
9221 (displaced_step_reset_cleanup): ... this.
9222 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9223 (displaced_step_fixup): Likewise.
9224 (resume_1): Likewise.
9225 (handle_inferior_event): Restore child's memory before calling
9226 displaced_step_fixup on the parent.
9227 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9228 to std::unique_ptr.
9229 <step_closure>: Change type to std::unique_ptr.
9230
9231 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9232
9233 * arm-tdep.c: Include count-one-bits.h.
9234 (cleanup_block_store_pc): Use count_one_bits.
9235 (cleanup_block_load_pc): Use count_one_bits.
9236 (arm_copy_block_xfer): Use count_one_bits.
9237 (thumb2_copy_block_xfer): Use count_one_bits.
9238 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9239 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9240 (thumb_get_next_pcs_raw): Use count_one_bits.
9241 (arm_get_next_pcs_raw): Use count_one_bits_l.
9242 * arch/arm.c (bitcount): Remove.
9243 * arch/arm.h (bitcount): Remove.
9244
9245 2020-02-14 Tom Tromey <tromey@adacore.com>
9246
9247 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9248 Update.
9249 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9250 * dwarf2/loc.c (call_site_find_chain_1): Return
9251 unique_xmalloc_ptr.
9252 (call_site_find_chain): Likewise.
9253
9254 2020-02-14 Richard Biener <rguenther@suse.de>
9255
9256 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9257 on expression with division operators.
9258
9259 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9260
9261 * MAINTAINERS (Write After Approval): Adding myself.
9262
9263 2020-02-12 Tom Tromey <tom@tromey.com>
9264
9265 * event-loop.c (event_data, gdb_event, event_handler_func):
9266 Remove.
9267
9268 2020-02-12 Tom Tromey <tom@tromey.com>
9269
9270 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9271 (dwarf2_frame_objfile_data): Add comment.
9272 (find_comp_unit, set_comp_unit): New functions.
9273 (dwarf2_frame_find_fde): Use find_comp_unit.
9274 (dwarf2_build_frame_info): Use set_comp_unit.
9275
9276 2020-02-12 Tom Tromey <tom@tromey.com>
9277
9278 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9279 (comp_unit): Don't initialize objfile.
9280 (execute_cfa_program): Add text_offset parameter.
9281 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9282 (dwarf2_frame_cache): Update.
9283 (dwarf2_build_frame_info): Don't set "objfile" member.
9284
9285 2020-02-12 Tom Tromey <tom@tromey.com>
9286
9287 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9288 (decode_frame_entry): Likewise.
9289 (dwarf2_build_frame_info): Update.
9290
9291 2020-02-12 Tom Tromey <tom@tromey.com>
9292
9293 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9294 (decode_frame_entry_1): Use the comp_unit obstack.
9295
9296 2020-02-12 Tom Tromey <tom@tromey.com>
9297
9298 * dwarf2/frame.c (struct comp_unit): Add initializers and
9299 constructor.
9300 (dwarf2_frame_objfile_data): Store a comp_unit.
9301 (dwarf2_frame_find_fde): Update.
9302 (dwarf2_build_frame_info): Use "new".
9303
9304 2020-02-12 Tom Tromey <tom@tromey.com>
9305
9306 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9307 (dwarf2_fde_table): Typedef for std::vector.
9308 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9309 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9310 (decode_frame_entry): Update.
9311 (dwarf2_build_frame_info): Use "new".
9312
9313 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9314
9315 * arm-tdep.c (arm_gdbarch_init): Update.
9316 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9317 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9318 have_neon, is_m>: Change to bool.
9319
9320 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9321
9322 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9323
9324 2020-02-12 Tom Tromey <tom@tromey.com>
9325
9326 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9327
9328 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9329
9330 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9331 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9332
9333 2020-02-11 Tom Tromey <tom@tromey.com>
9334
9335 * psymtab.h: Update comment.
9336
9337 2020-02-11 Tom Tromey <tom@tromey.com>
9338
9339 * gdb_obstack.h (struct auto_obstack): Use
9340 DISABLE_COPY_AND_ASSIGN.
9341
9342 2020-02-11 Tom Tromey <tom@tromey.com>
9343
9344 * dwarf2/frame.h (struct objfile): Don't forward declare.
9345
9346 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9347
9348 * cris-tdep.c (cris_supply_gregset): Change signature to match
9349 what struct regset expects.
9350 (cris_regset): New struct.
9351 (fetch_core_registers): Remove.
9352 (cris_iterate_over_regset_sections): New function.
9353 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9354 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9355
9356 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9357
9358 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9359 registers.
9360
9361 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9362
9363 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9364
9365 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9366
9367 * configure: Re-generate.
9368
9369 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9370
9371 * configure: Re-generate.
9372
9373 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9374
9375 * acinclude: Update warning.m4 path.
9376 * warning.m4: Move to gdbsupport.
9377
9378 2020-02-11 Tom Tromey <tromey@adacore.com>
9379
9380 * remote.c (remote_console_output): Update.
9381 * printcmd.c (printf_command): Update.
9382 * event-loop.c (gdb_wait_for_event): Update.
9383 * linux-nat.c (sigchld_handler): Update.
9384 * remote-sim.c (gdb_os_write_stdout): Update.
9385 (gdb_os_flush_stdout): Update.
9386 (gdb_os_flush_stderr): Update.
9387 (gdb_os_write_stderr): Update.
9388 * exceptions.c (print_exception): Update.
9389 * remote-fileio.c (remote_fileio_func_read): Update.
9390 (remote_fileio_func_write): Update.
9391 * tui/tui.c (tui_enable): Update.
9392 * tui/tui-interp.c (tui_interp::init): Update.
9393 * utils.c (init_page_info): Update.
9394 (putchar_unfiltered, fputc_unfiltered): Update.
9395 (gdb_flush): Update.
9396 (emit_style_escape): Update.
9397 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9398 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9399 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9400 (stderr_file::write): Update.
9401 (stderr_file::puts): Update.
9402 * ui-file.h (ui_file_isatty, ui_file_write)
9403 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9404 (ui_file_puts): Don't declare.
9405
9406 2020-02-10 Tom de Vries <tdevries@suse.de>
9407
9408 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9409 sentinel to char *.
9410
9411 2020-02-09 Tom de Vries <tdevries@suse.de>
9412
9413 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9414 filename if it matches "<artificial>".
9415
9416 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9417
9418 * windows-tdep.c (struct enum_value_name): New struct.
9419 (create_enum): New function.
9420 (windows_get_siginfo_type): Create and use enum types.
9421
9422 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9423
9424 * NEWS: Mention $_siginfo support for Windows.
9425 * windows-nat.c (handle_exception): Set siginfo_er.
9426 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9427 (windows_xfer_siginfo): New function.
9428 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9429 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9430 (init_windows_gdbarch_data): New function.
9431 (get_windows_gdbarch_data): New function.
9432 (windows_get_siginfo_type): New function.
9433 (windows_init_abi): Register windows_get_siginfo_type.
9434 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9435
9436 2020-02-08 Tom Tromey <tom@tromey.com>
9437
9438 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9439 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9440 <keep>: Declare method.
9441 <m_keep>: Remove member.
9442 <~cutu_reader>: Remove.
9443 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9444 (cutu_reader::cutu_reader): Update.
9445 (cutu_reader::keep): Rename from ~cutu_reader.
9446 (process_psymtab_comp_unit, build_type_psymtabs_1)
9447 (process_skeletonless_type_unit, load_partial_comp_unit)
9448 (load_full_comp_unit, dwarf2_read_addr_index)
9449 (read_signatured_type): Update.
9450
9451 2020-02-08 Tom Tromey <tom@tromey.com>
9452
9453 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9454 "want_partial_unit" parameter.
9455 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9456 Inline check for DW_TAG_partial_unit.
9457 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9458
9459 2020-02-08 Tom Tromey <tom@tromey.com>
9460
9461 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9462 read.c.
9463 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9464 read.c.
9465
9466 2020-02-08 Tom Tromey <tom@tromey.com>
9467
9468 * dwarf2/read.c (read_address): Move to comp-unit.c.
9469 (dwarf2_rnglists_process, dwarf2_ranges_process)
9470 (read_attribute_value, dwarf_decode_lines_1)
9471 (var_decode_location, decode_locdesc): Update.
9472 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9473 read.c. Remove "cu" parameter.
9474 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9475 method.
9476
9477 2020-02-08 Tom Tromey <tom@tromey.com>
9478
9479 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9480 (read_indirect_line_string): Update.
9481 * dwarf2/comp-unit.c (read_offset): Remove.
9482 (read_comp_unit_head): Update.
9483 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9484 method.
9485 (read_offset): Don't declare.
9486
9487 2020-02-08 Tom Tromey <tom@tromey.com>
9488
9489 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9490 * dwarf2/read.c (struct comp_unit_head): Move to
9491 dwarf2/comp-unit.h.
9492 (enum class rcuh_kind): Move to comp-unit.h.
9493 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9494 (read_comp_unit_head, error_check_comp_unit_head)
9495 (read_and_check_comp_unit_head): Move to comp-unit.c.
9496 (read_offset, dwarf_unit_type_name): Likewise.
9497 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9498 (cutu_reader::cutu_reader, read_call_site_scope)
9499 (find_partial_die, follow_die_offset): Update.
9500 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9501
9502 2020-02-08 Tom Tromey <tom@tromey.com>
9503
9504 * dwarf2/read.c (read_offset_1): Move to leb.c.
9505 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9506 (dwarf_decode_macro_bytes): Update.
9507 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9508 * dwarf2/leb.h (read_offset): Declare.
9509
9510 2020-02-08 Tom Tromey <tom@tromey.com>
9511
9512 * dwarf2/read.c (dwarf2_section_size): Remove.
9513 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9514 Update.
9515 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9516
9517 2020-02-08 Tom Tromey <tom@tromey.com>
9518
9519 * dwarf2/read.c (read_initial_length): Move to leb.c.
9520 * dwarf2/leb.h (read_initial_length): Declare.
9521 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9522 handle_nonstd parameter.
9523 * dwarf2/frame.c (read_initial_length): Remove.
9524 (decode_frame_entry_1): Update.
9525
9526 2020-02-08 Tom Tromey <tom@tromey.com>
9527
9528 * dwarf2/loc.c (dwarf2_find_location_expression)
9529 (dwarf_evaluate_loc_desc::get_tls_address)
9530 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9531 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9532 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9533 (dwarf2_compile_property_to_c)
9534 (dwarf2_loc_desc_get_symbol_read_needs)
9535 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9536 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9537 (loclist_describe_location, loclist_tracepoint_var_ref)
9538 (loclist_generate_c_location): Update.
9539 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9540 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9541 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9542 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9543 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9544 (dwarf2_per_cu_data::addr_size)
9545 (dwarf2_per_cu_data::ref_addr_size)
9546 (dwarf2_per_cu_data::text_offset)
9547 (dwarf2_per_cu_data::addr_type): Now methods.
9548 (per_cu_header_read_in): Make per_cu "const".
9549 (dwarf2_version): Remove.
9550 (dwarf2_per_cu_data::int_type): Now a method.
9551 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9552 (set_die_type, read_array_type, read_subrange_index_type)
9553 (read_tag_string_type, read_subrange_type): Update.
9554 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9555 offset_size, ref_addr_size, text_offset, addr_type, version,
9556 objfile, int_type, addr_sized_int_type>: Declare methods.
9557
9558 2020-02-08 Tom Tromey <tom@tromey.com>
9559
9560 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9561 Move earlier.
9562
9563 2020-02-08 Tom Tromey <tom@tromey.com>
9564
9565 * dwarf2/read.h (dwarf_line_debug): Declare.
9566 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9567 * dwarf2/read.c: Move line_header code to new files.
9568 (dwarf_line_debug): No longer static.
9569 * dwarf2/line-header.c: New file.
9570 * dwarf2/line-header.h: New file.
9571
9572 2020-02-08 Tom Tromey <tom@tromey.com>
9573
9574 * dwarf2/read.c (struct line_header) <file_full_name,
9575 file_file_name>: Return unique_xmalloc_ptr.
9576 (line_header::file_file_name): Update.
9577 (line_header::file_full_name): Update.
9578 (dw2_get_file_names_reader): Update.
9579 (macro_start_file): Update.
9580
9581 2020-02-08 Tom Tromey <tom@tromey.com>
9582
9583 * dwarf2/read.c (struct line_header) <file_full_name,
9584 file_file_name>: Declare methods.
9585 (dw2_get_file_names_reader): Update.
9586 (file_file_name): Now a method.
9587 (file_full_name): Likewise.
9588 (macro_start_file): Update.
9589
9590 2020-02-08 Tom Tromey <tom@tromey.com>
9591
9592 * dwarf2/read.c (dwarf_always_disassemble)
9593 (show_dwarf_always_disassemble): Move to loc.c.
9594 (_initialize_dwarf2_read): Move "always-disassemble" registration
9595 to loc.c.
9596 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9597 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9598 static.
9599 (show_dwarf_always_disassemble): Move from read.c.
9600 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9601
9602 2020-02-08 Tom Tromey <tom@tromey.com>
9603
9604 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9605 (create_quick_file_names_table): Return htab_up.
9606 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9607 Update.
9608 * dwarf2/read.h (struct dwarf2_per_objfile)
9609 <quick_file_names_table>: Now htab_up.
9610
9611 2020-02-08 Tom Tromey <tom@tromey.com>
9612
9613 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9614
9615 2020-02-08 Tom Tromey <tom@tromey.com>
9616
9617 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9618 Rewrite.
9619 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9620 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9621 (abbrev_table::abbrev_table): No longer inline.
9622 (ABBREV_HASH_SIZE): Remove.
9623 (abbrev_table::m_abbrevs): Now an htab_up.
9624
9625 2020-02-08 Tom Tromey <tom@tromey.com>
9626
9627 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9628 (cutu_reader): Update.
9629 (build_type_psymtabs_1): Update.
9630 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9631 (abbrev_table::alloc_abbrev): Update.
9632 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9633 (abbrev_table::read): New static method, renamed from
9634 abbrev_table_read_table.
9635 (abbrev_table::alloc_abbrev)
9636 (abbrev_table::add_abbrev): Now private.
9637 (abbrev_table::abbrev_table): Now private.
9638 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9639
9640 2020-02-08 Tom Tromey <tom@tromey.com>
9641
9642 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9643 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9644 htab_up.
9645
9646 2020-02-08 Tom Tromey <tom@tromey.com>
9647
9648 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9649 htab_up.
9650 (lookup_dwo_unit_in_dwp): Update.
9651 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9652 on obstack.
9653
9654 2020-02-08 Tom Tromey <tom@tromey.com>
9655
9656 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9657 obstack.
9658
9659 2020-02-08 Tom Tromey <tom@tromey.com>
9660
9661 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9662 line_header_hash.
9663 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9664 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9665 Change type to htab_up.
9666
9667 2020-02-08 Tom Tromey <tom@tromey.com>
9668
9669 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9670 htab_up. Don't allocate on obstack.
9671 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9672 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9673 Change type to htab_up.
9674
9675 2020-02-08 Tom Tromey <tom@tromey.com>
9676
9677 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9678 Change type to htab_up.
9679 * dwarf2/read.c (create_signatured_type_table_from_index)
9680 (create_signatured_type_table_from_debug_names)
9681 (create_all_type_units, add_type_unit)
9682 (lookup_dwo_signatured_type, lookup_signatured_type)
9683 (process_skeletonless_type_unit): Update.
9684 (create_debug_type_hash_table, create_debug_types_hash_table):
9685 Change type of types_htab.
9686 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9687 htab_up. Don't allocate on obstack.
9688 (create_cus_hash_table): Change type of cus_htab parameter.
9689 (struct dwo_file) <cus, tus>: Now htab_up.
9690 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9691 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9692 (queue_and_load_all_dwo_tus): Update.
9693 * dwarf2/index-write.c (write_gdbindex): Update.
9694 (write_debug_names): Update.
9695
9696 2020-02-08 Tom Tromey <tom@tromey.com>
9697
9698 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9699 dwarf2/read.c. Remove "next" member. Add constructor ntad
9700 destructor.
9701 (struct dwarf2_per_objfile) <queue>: New member.
9702 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9703 dwarf2/read.h.
9704 (dwarf2_queue, dwarf2_queue_tail): Remove.
9705 (class dwarf2_queue_guard): Add parameter to constructor. Use
9706 DISABLE_COPY_AND_ASSIGN.
9707 <m_per_objfile>: New member.
9708 <~dwarf2_queue_guard>: Rewrite.
9709 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9710 Update.
9711 (~dwarf2_queue_item): New.
9712
9713 2020-02-08 Tom Tromey <tom@tromey.com>
9714
9715 * dwarf2/read.c (struct die_info) <has_children>: New member.
9716 (dw2_get_file_names_reader): Remove has_children.
9717 (dw2_get_file_names): Update.
9718 (read_cutu_die_from_dwo): Remove has_children.
9719 (cutu_reader::init_tu_and_read_dwo_dies)
9720 (cutu_reader::cutu_reader): Update.
9721 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9722 Remove has_children.
9723 (build_type_psymtabs_1, process_skeletonless_type_unit)
9724 (load_partial_comp_unit, load_full_comp_unit): Update.
9725 (create_dwo_cu_reader): Remove has_children.
9726 (create_cus_hash_table, read_die_and_children): Update.
9727 (read_full_die_1,read_full_die): Remove has_children.
9728 (read_signatured_type): Update.
9729 (class cutu_reader) <has_children>: Remove.
9730
9731 2020-02-08 Tom Tromey <tom@tromey.com>
9732
9733 * dwarf2/expr.c: Rename from dwarf2expr.c.
9734 * dwarf2/expr.h: Rename from dwarf2expr.h.
9735 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9736 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9737 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9738 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9739 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9740 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9741 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9742 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9743 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9744 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9745 * dwarf2/loc.c: Rename from dwarf2loc.c.
9746 * dwarf2/loc.h: Rename from dwarf2loc.h.
9747 * dwarf2/read.c: Rename from dwarf2read.c.
9748 * dwarf2/read.h: Rename from dwarf2read.h.
9749 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9750 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9751 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9752 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9753 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9754 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9755 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9756 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9757 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9758 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9759 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9760 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9761 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9762 Update.
9763 * Makefile.in (COMMON_SFILES): Update.
9764 (HFILES_NO_SRCDIR): Update.
9765
9766 2020-02-08 Tom Tromey <tom@tromey.com>
9767
9768 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9769 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9770
9771 2020-02-08 Tom Tromey <tom@tromey.com>
9772
9773 * dwarf2read.h (struct die_info): Don't declare.
9774
9775 2020-02-08 Tom Tromey <tom@tromey.com>
9776
9777 * dwarf2read.h (die_info_ptr): Remove typedef.
9778
9779 2020-02-08 Tom Tromey <tom@tromey.com>
9780
9781 * dwarf2read.c (read_call_site_scope)
9782 (handle_data_member_location, dwarf2_add_member_fn)
9783 (mark_common_block_symbol_computed, read_common_block)
9784 (attr_to_dynamic_prop, partial_die_info::read)
9785 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9786 (dwarf2_symbol_mark_computed, set_die_type): Update.
9787 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9788 method.
9789 (attr_form_is_block): Don't declare.
9790 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9791
9792 2020-02-08 Tom Tromey <tom@tromey.com>
9793
9794 * dwarf2read.c (dwarf2_find_base_address, )
9795 (read_call_site_scope, rust_containing_type)
9796 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9797 (handle_data_member_location, dwarf2_add_member_fn)
9798 (get_alignment, read_structure_type, process_structure_scope)
9799 (mark_common_block_symbol_computed, read_common_block)
9800 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9801 (partial_die_info::read, read_attribute_value, new_symbol)
9802 (lookup_die_type, dwarf2_get_ref_die_offset)
9803 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9804 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9805 (dwarf2_symbol_mark_computed): Update.
9806 * dwarf2/attribute.h (struct attribute) <value_as_address,
9807 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9808 methods.
9809 (value_as_address, attr_form_is_section_offset)
9810 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9811 * dwarf2/attribute.c (attribute::value_as_address)
9812 (attribute::form_is_section_offset, attribute::form_is_constant)
9813 (attribute::form_is_ref): Now methods.
9814
9815 2020-02-08 Tom Tromey <tom@tromey.com>
9816
9817 * dwarf2read.c (struct attribute, DW_STRING)
9818 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9819 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9820 (attr_form_is_block, attr_form_is_section_offset)
9821 (attr_form_is_constant, attr_form_is_ref): Move.
9822 * dwarf2/attribute.h: New file.
9823 * dwarf2/attribute.c: New file, from dwarf2read.c.
9824 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9825
9826 2020-02-08 Tom Tromey <tom@tromey.com>
9827
9828 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9829 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9830 Move.
9831 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9832 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9833 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9834 abbrev.c.
9835 * dwarf2/abbrev.h: New file.
9836 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9837 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9838
9839 2020-02-08 Tom Tromey <tom@tromey.com>
9840
9841 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9842 (dwarf2_section_size, dwarf2_get_section_info)
9843 (create_signatured_type_table_from_debug_names)
9844 (create_addrmap_from_aranges, read_debug_names_from_section)
9845 (get_gdb_index_contents_from_section, read_comp_unit_head)
9846 (error_check_comp_unit_head, read_abbrev_offset)
9847 (create_debug_type_hash_table, init_cu_die_reader)
9848 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9849 (read_comp_units_from_section, create_cus_hash_table)
9850 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9851 (create_dwp_v2_section, dwarf2_rnglists_process)
9852 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9853 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9854 (read_indirect_string_from_dwz, read_addr_index_1)
9855 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9856 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9857 (fill_in_loclist_baton): Update.
9858 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9859 get_containing_section, get_bfd_owner, get_bfd_section,
9860 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9861 (dwarf2_read_section, get_section_name, get_section_file_name)
9862 (get_containing_section, get_section_bfd_owner)
9863 (get_section_bfd_section, get_section_name, get_section_file_name)
9864 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9865 declare.
9866 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9867 (dwarf2_section_info::get_bfd_owner)
9868 (dwarf2_section_info::get_bfd_section)
9869 (dwarf2_section_info::get_name)
9870 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9871 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9872 (dwarf2_section_info::read): Now methods.
9873 * dwarf-index-write.c (class debug_names): Update.
9874
9875 2020-02-08 Tom Tromey <tom@tromey.com>
9876
9877 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9878 Move to dwarf2/section.h.
9879 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9880 (get_section_bfd_section, get_section_name)
9881 (get_section_file_name, get_section_id, get_section_flags)
9882 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9883 dwarf2/section.c.
9884 * dwarf2/section.h: New file.
9885 * dwarf2/section.c: New file, from dwarf2read.c.
9886 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9887
9888 2020-02-08 Tom Tromey <tom@tromey.com>
9889
9890 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9891 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9892 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9893 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9894 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9895 * dwarf2/leb.h: New file, from dwarf2read.c.
9896 * dwarf2/leb.c: New file, from dwarf2read.c.
9897 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9898 Remove.
9899 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9900 (COMMON_SFILES): Add dwarf2/leb.c.
9901
9902 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9903
9904 GDB 9.1 released.
9905
9906 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9907
9908 PR gdb/25190:
9909 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9910 * gdb/remote.c (remote_console_output): Update.
9911 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9912 (ui_file_puts): ...this.
9913 * gdb/ui-file.h (ui_file_puts): Add declaration.
9914 * gdb/utils.c (emit_style_escape): Update.
9915 (flush_wrap_buffer): Update.
9916 (fputs_maybe_filtered): Update.
9917 (fputs_unfiltered): Add function.
9918
9919 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9920
9921 * gdb/event-loop.c (gdb_wait_for_event): Update.
9922 * gdb/printcmd.c (printf_command): Update.
9923 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9924 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9925 (gdb_os_flush_stderr): Update.
9926 * gdb/remote.c (remote_console_output): Update.
9927 * gdb/ui-file.c (gdb_flush): Rename to...
9928 (ui_file_flush): ...this.
9929 (stderr_file::write): Update.
9930 (stderr_file::puts): Update.
9931 * gdb/ui-file.h (gdb_flush): Rename to...
9932 (ui_file_flush): ...this.
9933 * gdb/utils.c (gdb_flush): Add function.
9934 * gdb/utils.h (gdb_flush): Add declaration.
9935
9936 2020-02-07 Tom Tromey <tromey@adacore.com>
9937
9938 PR breakpoints/24915:
9939 * source.c (find_and_open_source): Do not check basenames_may_differ.
9940
9941 2020-02-07 Tom Tromey <tom@tromey.com>
9942
9943 * README: Update gdbserver documentation.
9944 * gdbserver: Move to top level.
9945 * configure.tgt (build_gdbserver): Remove.
9946 * configure.ac: Remove --enable-gdbserver.
9947 * configure: Rebuild.
9948 * Makefile.in (distclean): Don't mention gdbserver.
9949
9950 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9951
9952 * source-cache.c (source_cache::ensure): Surround
9953 get_plain_source_lines with a try/catch.
9954 (source_cache::get_line_charpos): Get rid of try/catch
9955 and only check for the return value of "ensure".
9956 * tui/tui-source.c (tui_source_window::set_contents):
9957 Simplify "nlines" calculation.
9958
9959 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9960
9961 * MAINTAINERS (Write After Approval): Add myself.
9962
9963 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9964
9965 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9966 function call.
9967
9968 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9969
9970 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9971
9972 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9973
9974 * nat/riscv-linux-tdesc.h: New file.
9975 * nat/riscv-linux-tdesc.c: New file, taking code from...
9976 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9977 ... here.
9978 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9979 NATDEPFILES.
9980
9981 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9982
9983 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9984 we don't set the fake simulator ptid to the null_ptid.
9985
9986 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9987
9988 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9989 * gdbthread.h (class thread_info) <resumed>: Likewise.
9990 * infrun.c (resume_1): Likewise.
9991 (proceed): Likewise.
9992 (infrun_thread_stop_requested): Likewise.
9993 (stop_all_threads): Likewise.
9994 (handle_inferior_event): Likewise.
9995 (restart_threads): Likewise.
9996 (finish_step_over): Likewise.
9997 (keep_going_stepped_thread): Likewise.
9998 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9999 (linux_handle_extended_wait): Likewise.
10000 * record-btrace.c (get_thread_current_frame_id): Likewise.
10001 * record-full.c (record_full_wait_1): Likewise.
10002 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10003 * target.c (target_resume): Likewise.
10004 * thread.c (set_running_thread): Likewise.
10005
10006 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10007
10008 * f-valprint.c (f77_print_array_1): Changed datatype of index
10009 variable to LONGEST from int to enable it to contain bound
10010 values correctly.
10011
10012 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10013
10014 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10015 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10016 offsets according to FLEN determined.
10017 (riscv_linux_nat_target::read_description): Determine FLEN
10018 dynamically.
10019 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10020 according to FLEN determined.
10021 (riscv_linux_nat_target::store_registers): Likewise.
10022
10023 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10024
10025 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10026 when reg->group is empty and reggroup is not.
10027
10028 2020-01-31 Tom Tromey <tromey@adacore.com>
10029
10030 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10031 Call beneath target's mourn_inferior after unpushing.
10032
10033 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10034
10035 PR tui/9765
10036 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10037 have enough lines to fill the screen, still return the lowest
10038 address we found.
10039
10040 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10041
10042 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10043 '-', '<', and '>' commands.
10044
10045 2020-01-29 Pedro Alves <palves@redhat.com>
10046 Sergio Durigan Junior <sergiodj@redhat.com>
10047
10048 * infcmd.c (construct_inferior_arguments): Assert that
10049 'argc' is greater than 0.
10050
10051 2020-01-29 Luis Machado <luis.machado@linaro.org>
10052
10053 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10054 (BRK_INSN_MASK): Define to 0xd4200000.
10055 (aarch64_program_breakpoint_here_p): New function.
10056 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10057 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10058 breakpoint.c.
10059 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10060 breakpoint.h
10061 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10062 call gdbarch_program_breakpoint_here_p.
10063 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10064 default_program_breakpoint_here_p, changed return type to bool and
10065 simplified.
10066 * breakpoint.h (program_breakpoint_here): Moved prototype to
10067 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10068 return type to bool.
10069 * gdbarch.c: Regenerate.
10070 * gdbarch.h: Regenerate.
10071 * gdbarch.sh (program_breakpoint_here_p): New method.
10072 * infrun.c (handle_signal_stop): Call
10073 gdbarch_program_breakpoint_here_p.
10074
10075 2020-01-26 Tom Tromey <tom@tromey.com>
10076
10077 * ctfread.c (struct ctf_fp_info): Reindent.
10078 (_initialize_ctfread): Remove.
10079
10080 2020-01-26 Tom Tromey <tom@tromey.com>
10081
10082 * psymtab.c (partial_map_expand_apply)
10083 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10084 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10085 (psym_print_stats, psym_expand_symtabs_for_function)
10086 (psym_map_symbol_filenames, psym_map_matching_symbols)
10087 (psym_expand_symtabs_matching)
10088 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10089 (maintenance_check_psymtabs): Use new methods.
10090 * psympriv.h (struct partial_symtab) <readin_p,
10091 get_compunit_symtab>: New methods.
10092 <readin, compunit_symtab>: Remove members.
10093 (struct standard_psymtab): New.
10094 (struct legacy_psymtab): Derive from standard_psymtab.
10095 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10096 standard_psymtab.
10097 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10098
10099 2020-01-26 Tom Tromey <tom@tromey.com>
10100
10101 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10102 read_dependencies. Add assert.
10103 * psymtab.c (partial_symtab::read_dependencies): New method.
10104 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10105 method.
10106 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10107 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10108 read_dependencies.
10109 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10110 Add assert.
10111
10112 2020-01-26 Tom Tromey <tom@tromey.com>
10113
10114 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10115 Call expand_psymtab.
10116 (xcoff_read_symtab): Call expand_psymtab.
10117 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10118 legacy_expand_psymtab.
10119 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10120 method.
10121 (struct legacy_psymtab) <expand_psymtab>: Implement.
10122 <legacy_expand_psymtab>: New member.
10123 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10124 (parse_partial_symbols): Set legacy_expand_psymtab.
10125 (psymtab_to_symtab_1): Change argument order. Call
10126 expand_psymtab.
10127 (new_psymtab): Set legacy_expand_psymtab.
10128 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10129 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10130 expand_psymtab.
10131 (dwarf2_psymtab::expand_psymtab): Rename from
10132 psymtab_to_symtab_1. Call expand_psymtab.
10133 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10134 (dbx_end_psymtab): Likewise.
10135 (dbx_psymtab_to_symtab_1): Change argument order. Call
10136 expand_psymtab.
10137 (dbx_read_symtab): Call expand_psymtab.
10138 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10139 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10140 (ctf_psymtab::read_symtab): Call expand_psymtab.
10141
10142 2020-01-26 Tom Tromey <tom@tromey.com>
10143
10144 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10145 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10146 messages.
10147 * mdebugread.c (mdebug_read_symtab): Remove prints.
10148 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10149 assert.
10150 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10151
10152 2020-01-26 Tom Tromey <tom@tromey.com>
10153
10154 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10155 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10156 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10157 legacy_symtab.
10158 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10159 * psymtab.c (psymtab_to_symtab): Call method.
10160 (dump_psymtab): Update.
10161 * psympriv.h (struct partial_symtab): Add virtual destructor.
10162 <read_symtab>: New method.
10163 (struct legacy_symtab): New.
10164 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10165 (struct pst_map) <pst>: Now a legacy_psymtab.
10166 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10167 (new_psymtab): Use legacy_psymtab.
10168 * dwarf2read.h (struct dwarf2_psymtab): New.
10169 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10170 * dwarf2read.c (dwarf2_create_include_psymtab)
10171 (dwarf2_build_include_psymtabs, create_type_unit_group)
10172 (create_partial_symtab, process_psymtab_comp_unit_reader)
10173 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10174 (set_partial_user): Use dwarf2_psymtab.
10175 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10176 (psymtab_to_symtab_1, process_full_comp_unit)
10177 (process_full_type_unit, dwarf2_ranges_read)
10178 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10179 (dwarf_decode_lines): Use dwarf2_psymtab.
10180 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10181 (add_address_entry_worker, write_one_signatured_type)
10182 (recursively_count_psymbols, recursively_write_psymbols)
10183 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10184 (write_debug_names): Likewise.
10185 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10186 <pst>: Now a legacy_psymtab.
10187 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10188 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10189 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10190 * ctfread.c (struct ctf_psymtab): New.
10191 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10192 ctf_psymtab.
10193 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10194 (create_partial_symtab): Return a ctf_psymtab.
10195 (scan_partial_symbols): Update.
10196
10197 2020-01-26 Tom Tromey <tom@tromey.com>
10198
10199 * xcoffread.c (xcoff_start_psymtab): Use new.
10200 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10201 renamed from start_psymtab_common.
10202 * psympriv.h (struct partial_symtab): Add new constructor.
10203 (start_psymtab_common): Don't declare.
10204 * mdebugread.c (parse_partial_symbols): Use new.
10205 * dwarf2read.c (create_partial_symtab): Use new.
10206 * dbxread.c (start_psymtab): Use new.
10207 * ctfread.c (create_partial_symtab): Use new.
10208
10209 2020-01-26 Tom Tromey <tom@tromey.com>
10210
10211 * xcoffread.c (xcoff_end_psymtab): Use new.
10212 * psymtab.c (start_psymtab_common): Use new.
10213 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10214 Update.
10215 * psympriv.h (struct partial_symtab): Add parameters to
10216 constructor. Don't inline.
10217 (allocate_psymtab): Don't declare.
10218 * mdebugread.c (new_psymtab): Use new.
10219 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10220 * dbxread.c (dbx_end_psymtab): Use new.
10221
10222 2020-01-26 Tom Tromey <tom@tromey.com>
10223
10224 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10225 allocate_psymtab. Update documentation.
10226 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10227 allocate_psymtab. Do not use new.
10228 (allocate_psymtab): Use new. Update.
10229
10230 2020-01-26 Tom Tromey <tom@tromey.com>
10231
10232 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10233 * psymtab.c (psym_print_stats): Update.
10234 * psympriv.h (struct partial_symtab) <readin,
10235 psymtabs_addrmap_supported, anonymous>: Now bool.
10236 * mdebugread.c (psymtab_to_symtab_1): Update.
10237 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10238 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10239 (process_full_comp_unit, process_full_type_unit): Update.
10240 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10241 * ctfread.c (psymtab_to_symtab): Update.
10242
10243 2020-01-26 Tom Tromey <tom@tromey.com>
10244
10245 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10246 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10247 * psymtab.c (psymtab_storage): Delete psymtabs.
10248 (psymtab_storage::allocate_psymtab): Use new.
10249 (psymtab_storage::discard_psymtab): Use delete.
10250 * psympriv.h (struct partial_symtab): Add constructor and
10251 initializers.
10252
10253 2020-01-26 Tom Tromey <tom@tromey.com>
10254
10255 * machoread.c: Do not include psympriv.h.
10256
10257 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10258
10259 * NEWS: Mention the new option and the set/show commands.
10260
10261 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10262
10263 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10264 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10265 (validate_exec_file): New variables, enums, functions.
10266 (exec_file_locate_attach, print_section_info): Style the filenames.
10267 (_initialize_exec): Install show_exec_file_mismatch_command and
10268 set_exec_file_mismatch_command.
10269 * gdbcore.h (validate_exec_file): Declare.
10270 * infcmd.c (attach_command): Call validate_exec_file.
10271 * remote.c ( remote_target::remote_add_inferior): Likewise.
10272
10273 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10274
10275 * frame.c (find_frame_sal): Move call to get_next_frame into more
10276 inner scope.
10277 * inline-frame.c (inilne_state) <inline_state>: Update argument
10278 types.
10279 (inilne_state) <skipped_symbol>: Rename to...
10280 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10281 (skip_inline_frames): Build vector of skipped symbols and use this
10282 to reate the inline_state.
10283 (inline_skipped_symbol): Add a comment and some assertions, fetch
10284 skipped symbol from the list.
10285
10286 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10287
10288 * buildsym.c (lte_is_less_than): Delete.
10289 (buildsym_compunit::end_symtab_with_blockvector): Create local
10290 lambda function to sort line table entries, and use
10291 std::stable_sort instead of std::sort.
10292 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10293 markers when looking for a previous line.
10294
10295 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10296
10297 * dwarf2read.c (lnp_state_machine::record_line): Include
10298 end_sequence parameter in debug print out. Record the line if we
10299 are at an end_sequence marker even if it's not the start of a
10300 statement.
10301 * symmisc.c (maintenance_print_one_line_table): Print end of
10302 sequence markers with 'END' not '0'.
10303
10304 2020-01-24 Pedro Alves <palves@redhat.com>
10305
10306 PR gdb/25410
10307 * thread.c (scoped_restore_current_thread::restore): Use
10308 switch_to_inferior_no_thread.
10309 * exec.c: Include "progspace-and-thread.h".
10310 (add_target_sections, remove_target_sections):
10311 scoped_restore_current_pspace_and_thread instead of
10312 scoped_restore_current_thread.
10313 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10314 and aspace to the inferior before calling clone_program_space.
10315 Remove stale comment.
10316
10317 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10318
10319 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10320 (arm_netbsd_nat_target::fetch_registers): ...this.
10321 (arm_nbsd_nat_target::store_registers): Rename to...
10322 (arm_netbsd_nat_target::store_registers): ...this.
10323
10324 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10325
10326 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10327 register_t.
10328
10329 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10330
10331 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10332 Update comment.
10333 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10334 Likewise.
10335 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10336 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10337 the correct replacement (iterate_over_regset_sections).
10338 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10339 Update comment.
10340
10341 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10342
10343 PR gdb/23718
10344 * gdb/python/python.c (execute_gdb_command): Call
10345 async_enable_stdin in catch block.
10346
10347 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10348
10349 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10350 SWITCH_THRU_ALL_UIS.
10351
10352 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10353
10354 PR tui/9765
10355 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10356 comment, add extra parameter, and update to store previous symbol
10357 when appropriate.
10358 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10359 add extra parameter.
10360 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10361 remove unneeded parameter, add try/catch around gdb_print_insn,
10362 rewrite to add items to asm_lines vector.
10363 (tui_find_backward_disassembly_start_address): New function.
10364 (tui_find_disassembly_address): Updated throughout.
10365 (tui_disasm_window::set_contents): Update for changes to
10366 tui_disassemble.
10367 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10368 number of lines to scroll.
10369
10370 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10371
10372 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10373 (SECT_OFF_DATA): Likewise.
10374 (SECT_OFF_RODATA): Likewise.
10375 (SECT_OFF_TEXT): Likewise.
10376 (SECT_OFF_BSS): Likewise.
10377 (struct objfile) <text_section_offset, data_section_offset>: New
10378 methods.
10379 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10380 objfile::text_section_offset.
10381 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10382 * coffread.c (coff_symtab_read): Likewise.
10383 (enter_linenos): Likewise.
10384 (process_coff_symbol): Likewise.
10385 * ctfread.c (get_objfile_text_range): Likewise.
10386 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10387 Use objfile::data_section_offset.
10388 * dwarf2-frame.c (execute_cfa_program): Use
10389 objfile::text_section_offset.
10390 (dwarf2_frame_find_fde): Likewise.
10391 * dwarf2read.c (create_addrmap_from_index): Likewise.
10392 (create_addrmap_from_aranges): Likewise.
10393 (dw2_find_pc_sect_compunit_symtab): Likewise.
10394 (process_psymtab_comp_unit_reader): Likewise.
10395 (add_partial_symbol): Likewise.
10396 (add_partial_subprogram): Likewise.
10397 (process_full_comp_unit): Likewise.
10398 (read_file_scope): Likewise.
10399 (read_func_scope): Likewise.
10400 (read_lexical_block_scope): Likewise.
10401 (read_call_site_scope): Likewise.
10402 (dwarf2_rnglists_process): Likewise.
10403 (dwarf2_ranges_process): Likewise.
10404 (dwarf2_ranges_read): Likewise.
10405 (dwarf_decode_lines_1): Likewise.
10406 (new_symbol): Likewise.
10407 (dwarf2_fetch_die_loc_sect_off): Likewise.
10408 (dwarf2_per_cu_text_offset): Likewise.
10409 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10410 * hppa-tdep.c (read_unwind_info): Likewise.
10411 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10412 * psympriv.h (struct partial_symtab): Likewise.
10413 * psymtab.c (find_pc_sect_psymtab): Likewise.
10414 * solib-svr4.c (enable_break): Likewise.
10415 * stap-probe.c (relocate_address): Use
10416 objfile::data_section_offset.
10417 * xcoffread.c (enter_line_range): Use
10418 objfile::text_section_offset.
10419 (read_xcoff_symtab): Likewise.
10420
10421 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10422
10423 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10424 declaration to narrower scopes.
10425
10426 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10427
10428 * darwin-nat.h (struct darwin_exception_msg, enum
10429 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10430 Move up.
10431 (class darwin_nat_target) <wait_1, check_new_threads,
10432 decode_exception_message, decode_message, stop_inferior,
10433 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10434 * darwin-nat.c (darwin_check_new_threads): Rename to...
10435 (darwin_nat_target::check_new_threads): ... this.
10436 (darwin_suspend_inferior_it): Remove.
10437 (darwin_decode_exception_message): Rename to...
10438 (darwin_nat_target::decode_exception_message): ... this.
10439 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10440 (darwin_decode_message): Rename to...
10441 (darwin_nat_target::decode_message): ... this.
10442 (cancel_breakpoint): Rename to...
10443 (darwin_nat_target::cancel_breakpoint): ... this.
10444 (darwin_wait): Rename to...
10445 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10446 instead of iterate_over_inferiors.
10447 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10448 (darwin_stop_inferior): Rename to...
10449 (darwin_nat_target::stop_inferior): ... this.
10450 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10451 (darwin_init_thread_list): Rename to...
10452 (darwin_nat_target::init_thread_list): ... this.
10453 (darwin_ptrace_him): Rename to...
10454 (darwin_nat_target::ptrace_him): ... this.
10455 (darwin_nat_target::create_inferior): Pass lambda function to
10456 fork_inferior.
10457 (darwin_nat_target::detach): Call stop_inferior instead of
10458 darwin_stop_inferior.
10459 * fork-inferior.h (fork_inferior): Change init_trace_fun
10460 parameter to gdb::function_view.
10461 * fork-inferior.c (fork_inferior): Likewise.
10462
10463 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10464
10465 * i386-cygwin-tdep.c (core_process_module_section): Update.
10466 * windows-nat.c (struct lm_info_windows): Add text_offset.
10467 (windows_xfer_shared_libraries): Update.
10468 * windows-tdep.c (windows_xfer_shared_library):
10469 Add text_offset_cached argument.
10470 * windows-tdep.h (windows_xfer_shared_library): Update.
10471
10472 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10473
10474 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10475
10476 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10477
10478 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10479 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10480 replace with range-based for.
10481 (gdbsim_interrupt_inferior): Remove.
10482 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10483 with a range-based for. Inline code from
10484 gdbsim_interrupt_inferior.
10485
10486 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10487
10488 * infrun.c (proceed): Fix indentation.
10489
10490 2020-01-21 Tom Tromey <tromey@adacore.com>
10491
10492 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10493 * python/python.c (python_extension_ops): Update.
10494 (gdbpy_colorize): New function.
10495 * python/lib/gdb/__init__.py (colorize): New function.
10496 * extension.h (ext_lang_colorize): Declare.
10497 * extension.c (ext_lang_colorize): New function.
10498 * extension-priv.h (struct extension_language_ops) <colorize>: New
10499 member.
10500 * cli/cli-style.c (_initialize_cli_style): Update help text.
10501
10502 2020-01-21 Luis Machado <luis.machado@linaro.org>
10503
10504 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10505 <cond>: Change type to bool.
10506 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10507 (aarch64_displaced_step_cb): Likewise.
10508 (aarch64_displaced_step_tb): Likewise.
10509
10510 2020-01-21 Luis Machado <luis.machado@linaro.org>
10511
10512 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10513 output.
10514
10515 2020-01-21 Luis Machado <luis.machado@linaro.org>
10516
10517 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10518 <pc_adjust>: Adjust the documentation.
10519 (aarch64_displaced_step_fixup): Check if PC really moved before
10520 adjusting it.
10521
10522 2020-01-19 Tom Tromey <tom@tromey.com>
10523
10524 * disasm.c (~gdb_disassembler): New destructor.
10525 (gdb_buffered_insn_length): Call disassemble_free_target.
10526 * disasm.h (class gdb_disassembler): Declare destructor. Use
10527 DISABLE_COPY_AND_ASSIGN.
10528
10529 2020-01-19 Tom Tromey <tom@tromey.com>
10530
10531 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10532 (die_reader_func_ftype): Remove.
10533 (cutu_reader): New class.
10534 (dw2_get_file_names_reader): Remove "data" parameter.
10535 (dw2_get_file_names): Use cutu_reader.
10536 (create_debug_type_hash_table): Update.
10537 (read_cutu_die_from_dwo): Update comment.
10538 (lookup_dwo_unit): Add dwo_name parameter.
10539 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10540 die_reader_func_ftype and data parameters.
10541 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10542 Remove die_reader_func_ftype and data parameters.
10543 (~cutu_reader): New; from init_cutu_and_read_dies.
10544 (cutu_reader::cutu_reader): Rename from
10545 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10546 and data parameters.
10547 (init_cutu_and_read_dies_simple): Remove.
10548 (struct process_psymtab_comp_unit_data): Remove.
10549 (process_psymtab_comp_unit_reader): Remove data parameter; add
10550 want_partial_unit and pretend_language parameters.
10551 (process_psymtab_comp_unit): Use cutu_reader.
10552 (build_type_psymtabs_reader): Remove data parameter.
10553 (build_type_psymtabs_1): Use cutu_reader.
10554 (process_skeletonless_type_unit): Likewise.
10555 (load_partial_comp_unit_reader): Remove.
10556 (load_partial_comp_unit): Use cutu_reader.
10557 (load_full_comp_unit_reader): Remove.
10558 (load_full_comp_unit): Use cutu_reader.
10559 (struct create_dwo_cu_data): Remove.
10560 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10561 dwo_unit parameters.
10562 (create_cus_hash_table): Use cutu_reader.
10563 (struct dwarf2_read_addr_index_data): Remove.
10564 (dwarf2_read_addr_index_reader): Remove.
10565 (dwarf2_read_addr_index): Use cutu_reader.
10566 (read_signatured_type_reader): Remove.
10567 (read_signatured_type): Use cutu_reader.
10568
10569 2020-01-19 Tom Tromey <tom@tromey.com>
10570
10571 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10572 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10573 (tui_wrefresh): Declare.
10574 * tui/tui-wingeneral.c (suppress_output): New global.
10575 (tui_suppress_output, ~tui_suppress_output): New constructor and
10576 destructor.
10577 (tui_wrefresh): New function.
10578 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10579 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10580 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10581 method.
10582 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10583 tui_wrefresh.
10584 (tui_data_window::no_refresh): New method.
10585 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10586 (tui_reg_command): Use tui_suppress_output
10587 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10588 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10589 method.
10590 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10591
10592 2020-01-19 Tom Tromey <tom@tromey.com>
10593
10594 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10595 Handle case where symtab is null.
10596
10597 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10598
10599 * linux-fork.c (one_fork_p): Simplify.
10600
10601 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10602
10603 * top.c (struct qt_args): Remove.
10604 (kill_or_detach): Change return type to void, replace `void *`
10605 parameter with a proper one.
10606 (print_inferior_quit_action): Likewise.
10607 (quit_confirm): Use range-based for loop to iterate over inferiors.
10608 (quit_force): Likewise.
10609
10610 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10611
10612 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10613 `void *` parameter with proper parameters.
10614 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10615 (print_one_inferior): Change return type to void, replace `void *`
10616 parameter with proper parameters.
10617 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10618 inferiors.
10619 (get_other_inferior): Remove.
10620 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10621 inferiors.
10622
10623 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10624
10625 * mi/mi-interp.c (report_initial_inferior): Remove.
10626 (mi_interp::init): Use range-based for to iterate over inferiors.
10627
10628 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10629
10630 * python/py-inferior.c (build_inferior_list): Remove.
10631 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10632
10633 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10634
10635 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10636 (btrace_stitch_trace): Likewise.
10637 * charset.c (intermediate_encoding): Likewise (vaild).
10638 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10639 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10640 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10641
10642 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10643
10644 * windows-tdep.c (windows_get_tlb_type):
10645 Add rtl_user_process_parameters type.
10646
10647 2020-01-16 Pedro Alves <palves@redhat.com>
10648 Norbert Lange <nolange79@gmail.com>
10649
10650 PR build/24805
10651 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10652 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10653 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10654 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10655 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10656 (ps_plog): Redeclare exported functions with default visibility.
10657
10658 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10659
10660 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10661 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10662
10663 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10664
10665 * infcmd.c (post_create_inferior): Use get_thread_regcache
10666 instead of get_current_regcache.
10667
10668 2020-01-14 Tom Tromey <tom@tromey.com>
10669
10670 PR symtab/12535:
10671 * python/python.c (gdbpy_decode_line): Treat empty string the same
10672 as no argument.
10673
10674 2020-01-14 Tom Tromey <tom@tromey.com>
10675
10676 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10677
10678 2020-01-14 Tom Tromey <tom@tromey.com>
10679
10680 * nat/linux-btrace.c: Don't include <config.h>.
10681 * nat/linux-ptrace.c: Don't include <config.h>.
10682 * nat/x86-linux-dregs.c: Don't include <config.h>.
10683
10684 2020-01-14 Tom Tromey <tom@tromey.com>
10685
10686 * configure: Rebuild.
10687 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10688
10689 2020-01-14 Tom Tromey <tom@tromey.com>
10690
10691 * nat/x86-linux-dregs.c: Include configh.h.
10692 * nat/linux-ptrace.c: Include configh.h.
10693 * nat/linux-btrace.c: Include configh.h.
10694 * defs.h: Include config.h, bfd.h.
10695 * configure.ac: Don't source common.host.
10696 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10697 * configure: Rebuild.
10698 * acinclude.m4: Update path.
10699 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10700 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10701 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10702 (CLIBS): Add LIBSUPPORT.
10703 (CDEPS): Likewise.
10704 (COMMON_SFILES): Remove gdbsupport files.
10705 (HFILES_NO_SRCDIR): Likewise.
10706 (stamp-version): Update path to create-version.sh.
10707 (ALLDEPFILES): Remove gdbsupport files.
10708
10709 2020-01-14 Tom Tromey <tom@tromey.com>
10710
10711 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10712 USE_WIN32API when needed.
10713 * configure.ac (USE_WIN32API): Don't define.
10714 (WIN32LIBS): Use WIN32APILIBS.
10715 * configure: Rebuild.
10716
10717 2020-01-14 Tom Tromey <tom@tromey.com>
10718
10719 * configure: Rebuild.
10720 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10721
10722 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10723
10724 * skip.c (skip_function_command): Make skip w/o arguments use the
10725 name of the inlined function if pc is inside any inlined function.
10726
10727 2020-01-14 Luis Machado <luis.machado@linaro.org>
10728
10729 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10730 * infrun.c (resume_1): Likewise.
10731 (handle_inferior_event): Remove stale comment.
10732 * linux-nat.c (linux_nat_target::resume): Update comments.
10733 (save_stop_reason): Likewise.
10734 (linux_nat_filter_event): Likewise.
10735 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10736
10737 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10738
10739 * elfread.c (record_minimal_symbol): Set section index to 0 for
10740 non-allocatable sections.
10741
10742
10743 2020-01-13 Ali Tamur <tamur@google.com>
10744
10745 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10746 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10747 to gdb::optional. Update comments.
10748 (dwo_file): Update comments.
10749 (read_attribute): Update API to take an additional out parameter,
10750 need_reprocess. This is used to mark attributes that need other
10751 attributes (e.g. str_offsets_base) for correct computation which may not
10752 have been read yet.
10753 (read_attribute_reprocess): New function declaration.
10754 (read_addr_index): Likewise.
10755 (read_dwo_str_index): Likewise.
10756 (read_stub_str_index): Likewise.
10757 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10758 (lookup_addr_base): New function definition.
10759 (lookup_ranges_base): Likewise.
10760 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10761 lookup_ranges_base.
10762 (init_cutu_and_read_dies): Update comments.
10763 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10764 unit. This is used to inherit parent's str_offsets_base and addr_base.
10765 Update comments.
10766 (init_cutu_and_read_dies_simple): Reflect API changes.
10767 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10768 (create_cus_hash_table): Change API to take parent compile unit.
10769 Reflect API changes.
10770 (open_and_init_dwo_file): Reflect API changes.
10771 (dwarf2_get_pc_bounds): Update comments.
10772 (dwarf2_record_block_ranges): Likewise.
10773 (read_full_die_1): Change implementation to reprocess attributes that
10774 need str_offsets_base and addr_base.
10775 (partial_die_info::read): Likewise.
10776 (read_attribute_reprocess): New function definition.
10777 (read_attribute_value): Change API to take an additional out parameter,
10778 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10779 when a non-dwo compile unit has index based attributes.
10780 (read_attribute): Reflect API changes.
10781 (read_addr_index_1): Reflect API changes. Update comments.
10782 (dwarf2_read_addr_index_data): Reflect API changes.
10783 (dwarf2_read_addr_index): Likewise.
10784 (read_str_index): Change API and implementation. This becomes a helper
10785 to be used by the new string index related methods. Update error
10786 message and comments.
10787 (read_dwo_str_index): New function definition.
10788 (read_stub_str_index): Likewise.
10789 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10790 * symfile.h (dwarf2_debug_sections): Likewise.
10791 * xcoffread.c (dwarf2_debug_sections): Likewise.
10792
10793 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10794
10795 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10796 core_reg_sect type to gdb_byte *.
10797 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10798 * cris-tdep.c (fetch_core_registers): Likewise.
10799 * corelow.c (core_target::get_core_register_section): Change
10800 type of `contents` to gdb::byte_vector.
10801
10802 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10803
10804 * tui/tui-wingeneral.c (box_win): Position the title in the center
10805 of the border.
10806
10807 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10808
10809 * corelow.c (core_target::get_core_register_section): Use
10810 std::vector instead of alloca.
10811
10812 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10813
10814 * warning.m4: Add -Wmissing-declarations to build_warnings.
10815 * configure: Re-generate.
10816
10817 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10818
10819 * python/python.c (init__gdb_module): Add declaration.
10820
10821 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10822
10823 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10824 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10825 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10826 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10827 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10828 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10829 * ada-exp.y (_initialize_ada_exp): Add declaration.
10830 * ada-lang.c (_initialize_ada_language): Add declaration.
10831 * ada-tasks.c (_initialize_tasks): Add declaration.
10832 * agent.c (_initialize_agent): Add declaration.
10833 * aix-thread.c (_initialize_aix_thread): Add declaration.
10834 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10835 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10836 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10837 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10838 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10839 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10840 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10841 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10842 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10843 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10844 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10845 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10846 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10847 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10848 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10849 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10850 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10851 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10852 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10853 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10854 * annotate.c (_initialize_annotate): Add declaration.
10855 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10856 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10857 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10858 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10859 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10860 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10861 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10862 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10863 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10864 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10865 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10866 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10867 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10868 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10869 * auto-load.c (_initialize_auto_load): Add declaration.
10870 * auxv.c (_initialize_auxv): Add declaration.
10871 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10872 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10873 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10874 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10875 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10876 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10877 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10878 * breakpoint.c (_initialize_breakpoint): Add declaration.
10879 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10880 * btrace.c (_initialize_btrace): Add declaration.
10881 * charset.c (_initialize_charset): Add declaration.
10882 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10883 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10884 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10885 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10886 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10887 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10888 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10889 * coffread.c (_initialize_coffread): Add declaration.
10890 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10891 * compile/compile.c (_initialize_compile): Add declaration.
10892 * complaints.c (_initialize_complaints): Add declaration.
10893 * completer.c (_initialize_completer): Add declaration.
10894 * copying.c (_initialize_copying): Add declaration.
10895 * corefile.c (_initialize_core): Add declaration.
10896 * corelow.c (_initialize_corelow): Add declaration.
10897 * cp-abi.c (_initialize_cp_abi): Add declaration.
10898 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10899 * cp-support.c (_initialize_cp_support): Add declaration.
10900 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10901 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10902 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10903 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10904 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10905 * ctfread.c (_initialize_ctfread): Add declaration.
10906 * d-lang.c (_initialize_d_language): Add declaration.
10907 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10908 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10909 * dbxread.c (_initialize_dbxread): Add declaration.
10910 * dcache.c (_initialize_dcache): Add declaration.
10911 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10912 * disasm.c (_initialize_disasm): Add declaration.
10913 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10914 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10915 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10916 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10917 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10918 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10919 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10920 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10921 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10922 * elfread.c (_initialize_elfread): Add declaration.
10923 * exec.c (_initialize_exec): Add declaration.
10924 * extension.c (_initialize_extension): Add declaration.
10925 * f-lang.c (_initialize_f_language): Add declaration.
10926 * f-valprint.c (_initialize_f_valprint): Add declaration.
10927 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10928 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10929 * filesystem.c (_initialize_filesystem): Add declaration.
10930 * findcmd.c (_initialize_mem_search): Add declaration.
10931 * findvar.c (_initialize_findvar): Add declaration.
10932 * fork-child.c (_initialize_fork_child): Add declaration.
10933 * frame-base.c (_initialize_frame_base): Add declaration.
10934 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10935 * frame.c (_initialize_frame): Add declaration.
10936 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10937 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10938 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10939 * gcore.c (_initialize_gcore): Add declaration.
10940 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10941 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10942 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10943 * gdbarch.c (_initialize_gdbarch): Add declaration.
10944 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10945 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10946 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10947 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10948 * go-lang.c (_initialize_go_language): Add declaration.
10949 * go32-nat.c (_initialize_go32_nat): Add declaration.
10950 * guile/guile.c (_initialize_guile): Add declaration.
10951 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10952 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10953 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10954 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10955 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10956 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10957 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10958 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10959 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10960 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10961 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10962 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10963 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10964 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10965 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10966 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10967 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10968 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10969 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10970 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10971 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10972 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10973 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10974 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10975 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10976 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10977 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10978 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10979 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10980 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10981 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10982 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10983 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10984 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10985 * infcall.c (_initialize_infcall): Add declaration.
10986 * infcmd.c (_initialize_infcmd): Add declaration.
10987 * inflow.c (_initialize_inflow): Add declaration.
10988 * infrun.c (_initialize_infrun): Add declaration.
10989 * interps.c (_initialize_interpreter): Add declaration.
10990 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10991 * jit.c (_initialize_jit): Add declaration.
10992 * language.c (_initialize_language): Add declaration.
10993 * linux-fork.c (_initialize_linux_fork): Add declaration.
10994 * linux-nat.c (_initialize_linux_nat): Add declaration.
10995 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10996 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10997 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10998 * m2-lang.c (_initialize_m2_language): Add declaration.
10999 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11000 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11001 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11002 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11003 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11004 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11005 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11006 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11007 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11008 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11009 * machoread.c (_initialize_machoread): Add declaration.
11010 * macrocmd.c (_initialize_macrocmd): Add declaration.
11011 * macroscope.c (_initialize_macroscope): Add declaration.
11012 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11013 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11014 * maint.c (_initialize_maint_cmds): Add declaration.
11015 * mdebugread.c (_initialize_mdebugread): Add declaration.
11016 * memattr.c (_initialize_mem): Add declaration.
11017 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11018 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11019 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11020 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11021 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11022 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11023 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11024 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11025 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11026 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11027 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11028 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11029 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11030 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11031 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11032 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11033 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11034 * mipsread.c (_initialize_mipsread): Add declaration.
11035 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11036 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11037 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11038 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11039 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11040 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11041 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11042 * nto-procfs.c (_initialize_procfs): Add declaration.
11043 * objc-lang.c (_initialize_objc_language): Add declaration.
11044 * observable.c (_initialize_observer): Add declaration.
11045 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11046 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11047 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11048 * osabi.c (_initialize_gdb_osabi): Add declaration.
11049 * osdata.c (_initialize_osdata): Add declaration.
11050 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11051 * parse.c (_initialize_parse): Add declaration.
11052 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11053 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11054 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11055 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11056 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11057 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11058 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11059 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11060 * printcmd.c (_initialize_printcmd): Add declaration.
11061 * probe.c (_initialize_probe): Add declaration.
11062 * proc-api.c (_initialize_proc_api): Add declaration.
11063 * proc-events.c (_initialize_proc_events): Add declaration.
11064 * proc-service.c (_initialize_proc_service): Add declaration.
11065 * procfs.c (_initialize_procfs): Add declaration.
11066 * producer.c (_initialize_producer): Add declaration.
11067 * psymtab.c (_initialize_psymtab): Add declaration.
11068 * python/python.c (_initialize_python): Add declaration.
11069 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11070 * record-btrace.c (_initialize_record_btrace): Add declaration.
11071 * record-full.c (_initialize_record_full): Add declaration.
11072 * record.c (_initialize_record): Add declaration.
11073 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11074 * regcache.c (_initialize_regcache): Add declaration.
11075 * reggroups.c (_initialize_reggroup): Add declaration.
11076 * remote-notif.c (_initialize_notif): Add declaration.
11077 * remote-sim.c (_initialize_remote_sim): Add declaration.
11078 * remote.c (_initialize_remote): Add declaration.
11079 * reverse.c (_initialize_reverse): Add declaration.
11080 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11081 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11082 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11083 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11084 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11085 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11086 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11087 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11088 Add declaration.
11089 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11090 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11091 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11092 * rust-exp.y (_initialize_rust_exp): Add declaration.
11093 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11094 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11095 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11096 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11097 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11098 * score-tdep.c (_initialize_score_tdep): Add declaration.
11099 * ser-go32.c (_initialize_ser_dos): Add declaration.
11100 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11101 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11102 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11103 * ser-uds.c (_initialize_ser_socket): Add declaration.
11104 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11105 * serial.c (_initialize_serial): Add declaration.
11106 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11107 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11108 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11109 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11110 * skip.c (_initialize_step_skip): Add declaration.
11111 * sol-thread.c (_initialize_sol_thread): Add declaration.
11112 * solib-aix.c (_initialize_solib_aix): Add declaration.
11113 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11114 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11115 * solib-frv.c (_initialize_frv_solib): Add declaration.
11116 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11117 * solib-target.c (_initialize_solib_target): Add declaration.
11118 * solib.c (_initialize_solib): Add declaration.
11119 * source-cache.c (_initialize_source_cache): Add declaration.
11120 * source.c (_initialize_source): Add declaration.
11121 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11122 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11123 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11124 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11125 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11126 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11127 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11128 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11129 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11130 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11131 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11132 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11133 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11134 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11135 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11136 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11137 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11138 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11139 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11140 * stabsread.c (_initialize_stabsread): Add declaration.
11141 * stack.c (_initialize_stack): Add declaration.
11142 * stap-probe.c (_initialize_stap_probe): Add declaration.
11143 * std-regs.c (_initialize_frame_reg): Add declaration.
11144 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11145 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11146 * symfile.c (_initialize_symfile): Add declaration.
11147 * symmisc.c (_initialize_symmisc): Add declaration.
11148 * symtab.c (_initialize_symtab): Add declaration.
11149 * target.c (_initialize_target): Add declaration.
11150 * target-connection.c (_initialize_target_connection): Add
11151 declaration.
11152 * target-dcache.c (_initialize_target_dcache): Add declaration.
11153 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11154 * thread.c (_initialize_thread): Add declaration.
11155 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11156 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11157 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11158 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11159 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11160 * tracectf.c (_initialize_ctf): Add declaration.
11161 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11162 * tracefile.c (_initialize_tracefile): Add declaration.
11163 * tracepoint.c (_initialize_tracepoint): Add declaration.
11164 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11165 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11166 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11167 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11168 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11169 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11170 * tui/tui.c (_initialize_tui): Add declaration.
11171 * typeprint.c (_initialize_typeprint): Add declaration.
11172 * ui-style.c (_initialize_ui_style): Add declaration.
11173 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11174 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11175 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11176 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11177 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11178 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11179 * unittests/filtered_iterator-selftests.c
11180 (_initialize_filtered_iterator_selftests): Add declaration.
11181 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11182 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11183 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11184 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11185 * unittests/main-thread-selftests.c
11186 (_initialize_main_thread_selftests): Add declaration.
11187 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11188 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11189 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11190 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11191 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11192 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11193 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11194 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11195 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11196 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11197 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11198 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11199 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11200 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11201 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11202 declaration.
11203 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11204 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11205 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11206 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11207 * user-regs.c (_initialize_user_regs): Add declaration.
11208 * utils.c (_initialize_utils): Add declaration.
11209 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11210 * valops.c (_initialize_valops): Add declaration.
11211 * valprint.c (_initialize_valprint): Add declaration.
11212 * value.c (_initialize_values): Add declaration.
11213 * varobj.c (_initialize_varobj): Add declaration.
11214 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11215 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11216 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11217 * windows-nat.c (_initialize_windows_nat): Add declaration.
11218 (_initialize_check_for_gdb_ini): Add declaration.
11219 (_initialize_loadable): Add declaration.
11220 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11221 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11222 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11223 * xcoffread.c (_initialize_xcoffread): Add declaration.
11224 * xml-support.c (_initialize_xml_support): Add declaration.
11225 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11226 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11227 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11228 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11229
11230 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11231
11232 * regformats/regdat.sh: Generate declaration for init function.
11233
11234 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11235
11236 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11237 up.
11238 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11239 close_one_inferior>: New methods.
11240 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11241 pass down target to find_inferior_pid.
11242 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11243 Pass down target to find_inferior_ptid.
11244 (gdbsim_target::create_inferior): Pass down target to
11245 add_thread_silent.
11246 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11247 target down to find_inferior_ptid and switch_to_thread.
11248 (gdbsim_target::close): Update to call close_one_inferior.
11249 (struct resume_data): Remove.
11250 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11251 directly, rather than through a void pointer.
11252 (gdbsim_target::resume): Update to call resume_one_inferior.
11253
11254 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11255
11256 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11257
11258 2020-01-12 Pedro Alves <palves@redhat.com>
11259
11260 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11261 directly for the current inferior instead of
11262 discard_all_inferiors.
11263 (discard_all_inferiors): Delete.
11264
11265 2020-01-11 Tom Tromey <tom@tromey.com>
11266
11267 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11268 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11269 deprecated_safe_get_selected_frame.
11270
11271 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11272
11273 * inferior.c (print_inferior): Switch inferior before printing it.
11274
11275 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11276 Pedro Alves <palves@redhat.com>
11277
11278 * progspace-and-thread.c (switch_to_program_space_and_thread):
11279 Assert there's an inferior for PSPACE. Use
11280 switch_to_inferior_no_thread to switch the inferior too.
11281 * progspace.c (program_space::~program_space): Call
11282 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11283 (program_space::free_all_objfiles): Don't call clear_symtab_users
11284 here.
11285 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11286
11287 2020-01-10 Pedro Alves <palves@redhat.com>
11288
11289 * NEWS: Mention multi-target debugging, "info connections", and
11290 "add-inferior -no-connection".
11291
11292 2020-01-10 Pedro Alves <palves@redhat.com>
11293
11294 * infrun.c: Include "target-connection.h".
11295 (check_multi_target_resumption): New.
11296 (proceed): Call it.
11297 * target-connection.c (make_target_connection_string): Make
11298 extern.
11299 * target-connection.h (make_target_connection_string): Declare.
11300
11301 2020-01-10 Pedro Alves <palves@redhat.com>
11302
11303 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11304 * inferior.c (uiout_field_connection): New function.
11305 (print_inferior): Add new "connection-id" column.
11306 (add_inferior_command): Show connection number/string of added
11307 inferior.
11308 * process-stratum-target.h
11309 (process_stratum_target::connection_string): New virtual method.
11310 (process_stratum_target::connection_number): New field.
11311 * remote.c (remote_target::connection_string): New override.
11312 * target-connection.c: New file.
11313 * target-connection.h: New file.
11314 * target.c (decref_target): Remove process_stratum targets from
11315 the connection list.
11316 (target_stack::push): Add process_stratum targets to the
11317 connection list.
11318
11319 2020-01-10 Pedro Alves <palves@redhat.com>
11320
11321 Revert:
11322 2016-04-12 Pedro Alves <palves@redhat.com>
11323 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11324 Remove references to name.
11325 * serial.h (struct serial) <name>: Delete.
11326
11327 2020-01-10 Pedro Alves <palves@redhat.com>
11328
11329 * gdbarch-selftests.c (register_to_value_test): Remove "target
11330 already pushed" check.
11331
11332 2020-01-10 Pedro Alves <palves@redhat.com>
11333 John Baldwin <jhb@FreeBSD.org>
11334
11335 * aarch64-linux-nat.c
11336 (aarch64_linux_nat_target::thread_architecture): Adjust.
11337 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11338 (task_command_1): Likewise.
11339 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11340 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11341 (aix_thread_target::store_registers)
11342 (aix_thread_target::thread_alive): Adjust.
11343 * amd64-fbsd-tdep.c: Include "inferior.h".
11344 (amd64fbsd_get_thread_local_address): Pass down target.
11345 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11346 thread's gdbarch instead of target_gdbarch.
11347 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11348 get_last_target_status.
11349 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11350 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11351 inferiors.
11352 (update_inserted_breakpoint_locations): Skip if inferiors with no
11353 execution.
11354 (update_global_location_list): When handling moribund locations,
11355 find representative inferior for location's pspace, and use thread
11356 count of its process_stratum target.
11357 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11358 * bsd-uthread.c (bsd_uthread_target::wait): Use
11359 as_process_stratum_target and adjust thread_change_ptid and
11360 add_thread calls.
11361 (bsd_uthread_target::update_thread_list): Use
11362 as_process_stratum_target and adjust find_thread_ptid,
11363 thread_change_ptid and add_thread calls.
11364 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11365 find_thread_ptid call.
11366 * corelow.c (add_to_thread_list): Adjust add_thread call.
11367 (core_target_open): Adjust add_thread_silent and thread_count
11368 calls.
11369 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11370 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11371 * event-top.c (async_disconnect): Pop targets from all inferiors.
11372 * exec.c (add_target_sections): Push exec target on all inferiors
11373 sharing the program space.
11374 (remove_target_sections): Remove the exec target from all
11375 inferiors sharing the program space.
11376 (exec_on_vfork): New.
11377 * exec.h (exec_on_vfork): Declare.
11378 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11379 Pass it down.
11380 (fbsd_nat_target::update_thread_list): Adjust.
11381 (fbsd_nat_target::resume): Adjust.
11382 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11383 down.
11384 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11385 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11386 get_thread_arch_regcache call.
11387 * fork-child.c (gdb_startup_inferior): Pass target down to
11388 startup_inferior and set_executing.
11389 * gdbthread.h (struct process_stratum_target): Forward declare.
11390 (add_thread, add_thread_silent, add_thread_with_info)
11391 (in_thread_list): Add process_stratum_target parameter.
11392 (find_thread_ptid(inferior*, ptid_t)): New overload.
11393 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11394 parameter.
11395 (all_threads()): Delete overload.
11396 (all_threads, all_non_exited_threads): Add process_stratum_target
11397 parameter.
11398 (all_threads_safe): Use brace initialization.
11399 (thread_count): Add process_stratum_target parameter.
11400 (set_resumed, set_running, set_stop_requested, set_executing)
11401 (threads_are_executing, finish_thread_state): Add
11402 process_stratum_target parameter.
11403 (switch_to_thread): Use is_current_thread.
11404 * i386-fbsd-tdep.c: Include "inferior.h".
11405 (i386fbsd_get_thread_local_address): Pass down target.
11406 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11407 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11408 have_inferiors check.
11409 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11410 (inf_ptrace_target::attach): Adjust.
11411 * infcall.c (run_inferior_call): Adjust.
11412 * infcmd.c (run_command_1): Pass target to
11413 scoped_finish_thread_state.
11414 (proceed_thread_callback): Skip inferiors with no execution.
11415 (continue_command): Rename 'all_threads' local to avoid hiding
11416 'all_threads' function. Adjust get_last_target_status call.
11417 (prepare_one_step): Adjust set_running call.
11418 (signal_command): Use user_visible_resume_target. Compare thread
11419 pointers instead of inferior_ptid.
11420 (info_program_command): Adjust to pass down target.
11421 (attach_command): Mark target's 'thread_executing' flag.
11422 (stop_current_target_threads_ns): New, factored out from ...
11423 (interrupt_target_1): ... this. Switch inferior before making
11424 target calls.
11425 * inferior-iter.h
11426 (struct all_inferiors_iterator, struct all_inferiors_range)
11427 (struct all_inferiors_safe_range)
11428 (struct all_non_exited_inferiors_range): Filter on
11429 process_stratum_target too. Remove explicit.
11430 * inferior.c (inferior::inferior): Push dummy target on target
11431 stack.
11432 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11433 Add process_stratum_target parameter, and pass it down.
11434 (have_live_inferiors): Adjust.
11435 (switch_to_inferior_and_push_target): New.
11436 (add_inferior_command, clone_inferior_command): Handle
11437 "-no-connection" parameter. Use
11438 switch_to_inferior_and_push_target.
11439 (_initialize_inferior): Mention "-no-connection" option in
11440 the help of "add-inferior" and "clone-inferior" commands.
11441 * inferior.h: Include "process-stratum-target.h".
11442 (interrupt_target_1): Use bool.
11443 (struct inferior) <push_target, unpush_target, target_is_pushed,
11444 find_target_beneath, top_target, process_target, target_at,
11445 m_stack>: New.
11446 (discard_all_inferiors): Delete.
11447 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11448 (all_inferiors, all_non_exited_inferiors): Add
11449 process_stratum_target parameter.
11450 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11451 (target_last_proc_target): New global.
11452 (follow_fork_inferior): Push target on new inferior. Pass target
11453 to add_thread_silent. Call exec_on_vfork. Handle target's
11454 reference count.
11455 (follow_fork): Adjust get_last_target_status call. Also consider
11456 target.
11457 (follow_exec): Push target on new inferior.
11458 (struct execution_control_state) <target>: New field.
11459 (user_visible_resume_target): New.
11460 (do_target_resume): Call target_async.
11461 (resume_1): Set target's threads_executing flag. Consider resume
11462 target.
11463 (commit_resume_all_targets): New.
11464 (proceed): Also consider resume target. Skip threads of inferiors
11465 with no execution. Commit resumtion in all targets.
11466 (start_remote): Pass current inferior to wait_for_inferior.
11467 (infrun_thread_stop_requested): Consider target as well. Pass
11468 thread_info pointer to clear_inline_frame_state instead of ptid.
11469 (infrun_thread_thread_exit): Consider target as well.
11470 (random_pending_event_thread): New inferior parameter. Use it.
11471 (do_target_wait): Rename to ...
11472 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11473 down.
11474 (threads_are_resumed_pending_p, do_target_wait): New.
11475 (prepare_for_detach): Adjust calls.
11476 (wait_for_inferior): New inferior parameter. Handle it. Use
11477 do_target_wait_1 instead of do_target_wait.
11478 (fetch_inferior_event): Adjust. Switch to representative
11479 inferior. Pass target down.
11480 (set_last_target_status): Add process_stratum_target parameter.
11481 Save target in global.
11482 (get_last_target_status): Add process_stratum_target parameter and
11483 handle it.
11484 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11485 (context_switch): Check inferior_ptid == null_ptid before calling
11486 inferior_thread().
11487 (get_inferior_stop_soon): Pass down target.
11488 (wait_one): Rename to ...
11489 (poll_one_curr_target): ... this.
11490 (struct wait_one_event): New.
11491 (wait_one): New.
11492 (stop_all_threads): Adjust.
11493 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11494 event's target.
11495 (switch_back_to_stepped_thread): Also consider target.
11496 (print_stop_event): Update.
11497 (normal_stop): Update. Also consider the resume target.
11498 * infrun.h (wait_for_inferior): Remove declaration.
11499 (user_visible_resume_target): New declaration.
11500 (get_last_target_status, set_last_target_status): New
11501 process_stratum_target parameter.
11502 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11503 process_stratum_target parameter, and use it.
11504 (clear_inline_frame_state (thread_info*)): New.
11505 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11506 process_stratum_target parameter.
11507 (clear_inline_frame_state (thread_info*)): Declare.
11508 * linux-fork.c (delete_checkpoint_command): Pass target down to
11509 find_thread_ptid.
11510 (checkpoint_command): Adjust.
11511 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11512 instead of just tweaking inferior_ptid.
11513 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11514 (exit_lwp): Pass target down to find_thread_ptid.
11515 (attach_proc_task_lwp_callback): Pass target down to
11516 add_thread/set_running/set_executing.
11517 (linux_nat_target::attach): Pass target down to
11518 thread_change_ptid.
11519 (get_detach_signal): Pass target down to find_thread_ptid.
11520 Consider last target status's target.
11521 (linux_resume_one_lwp_throw, resume_lwp)
11522 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11523 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11524 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11525 (linux_nat_target::async_wait_fd): New.
11526 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11527 target down.
11528 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11529 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11530 * linux-thread-db.c (struct thread_db_info::process_target): New
11531 field.
11532 (add_thread_db_info): Save target.
11533 (get_thread_db_info): New process_stratum_target parameter. Also
11534 match target.
11535 (delete_thread_db_info): New process_stratum_target parameter.
11536 Also match target.
11537 (thread_from_lwp): Adjust to pass down target.
11538 (thread_db_notice_clone): Pass down target.
11539 (check_thread_db_callback): Pass down target.
11540 (try_thread_db_load_1): Always push the thread_db target.
11541 (try_thread_db_load, record_thread): Pass target down.
11542 (thread_db_target::detach): Pass target down. Always unpush the
11543 thread_db target.
11544 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11545 target down. Always unpush the thread_db target.
11546 (find_new_threads_callback, thread_db_find_new_threads_2)
11547 (thread_db_target::update_thread_list): Pass target down.
11548 (thread_db_target::pid_to_str): Pass current inferior down.
11549 (thread_db_target::get_thread_local_address): Pass target down.
11550 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11551 target down.
11552 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11553 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11554 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11555 (procfs_init_inferior): Rename to ...
11556 (procfs_target::procfs_init_inferior): ... this and adjust.
11557 (procfs_target::create_inferior, procfs_notice_thread)
11558 (procfs_do_thread_registers): Adjust.
11559 * ppc-fbsd-tdep.c: Include "inferior.h".
11560 (ppcfbsd_get_thread_local_address): Pass down target.
11561 * proc-service.c (ps_xfer_memory): Switch current inferior and
11562 program space as well.
11563 (get_ps_regcache): Pass target down.
11564 * process-stratum-target.c
11565 (process_stratum_target::thread_address_space)
11566 (process_stratum_target::thread_architecture): Pass target down.
11567 * process-stratum-target.h
11568 (process_stratum_target::threads_executing): New field.
11569 (as_process_stratum_target): New.
11570 * ravenscar-thread.c
11571 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11572 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11573 down.
11574 * record-btrace.c (record_btrace_target::info_record): Adjust.
11575 (record_btrace_target::record_method)
11576 (record_btrace_target::record_is_replaying)
11577 (record_btrace_target::fetch_registers)
11578 (get_thread_current_frame_id, record_btrace_target::resume)
11579 (record_btrace_target::wait, record_btrace_target::stop): Pass
11580 target down.
11581 * record-full.c (record_full_wait_1): Switch to event thread.
11582 Pass target down.
11583 * regcache.c (regcache::regcache)
11584 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11585 process_stratum_target parameter and handle it.
11586 (current_thread_target): New global.
11587 (get_thread_regcache): Add process_stratum_target parameter and
11588 handle it. Switch inferior before calling target method.
11589 (get_thread_regcache): Pass target down.
11590 (get_thread_regcache_for_ptid): Pass target down.
11591 (registers_changed_ptid): Add process_stratum_target parameter and
11592 handle it.
11593 (registers_changed_thread, registers_changed): Pass target down.
11594 (test_get_thread_arch_aspace_regcache): New.
11595 (current_regcache_test): Define a couple local test_target_ops
11596 instances and use them for testing.
11597 (readwrite_regcache): Pass process_stratum_target parameter.
11598 (cooked_read_test, cooked_write_test): Pass mock_target down.
11599 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11600 (get_thread_arch_aspace_regcache): Add process_stratum_target
11601 parameter.
11602 (regcache::target): New method.
11603 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11604 (regcache::registers_changed_ptid): Add process_stratum_target
11605 parameter.
11606 (regcache::m_target): New field.
11607 (registers_changed_ptid): Add process_stratum_target parameter.
11608 * remote.c (remote_state::supports_vCont_probed): New field.
11609 (remote_target::async_wait_fd): New method.
11610 (remote_unpush_and_throw): Add remote_target parameter.
11611 (get_current_remote_target): Adjust.
11612 (remote_target::remote_add_inferior): Push target.
11613 (remote_target::remote_add_thread)
11614 (remote_target::remote_notice_new_inferior)
11615 (get_remote_thread_info): Pass target down.
11616 (remote_target::update_thread_list): Skip threads of inferiors
11617 bound to other targets. (remote_target::close): Don't discard
11618 inferiors. (remote_target::add_current_inferior_and_thread)
11619 (remote_target::process_initial_stop_replies)
11620 (remote_target::start_remote)
11621 (remote_target::remote_serial_quit_handler): Pass down target.
11622 (remote_target::remote_unpush_target): New remote_target
11623 parameter. Unpush the target from all inferiors.
11624 (remote_target::remote_unpush_and_throw): New remote_target
11625 parameter. Pass it down.
11626 (remote_target::open_1): Check whether the current inferior has
11627 execution instead of checking whether any inferior is live. Pass
11628 target down.
11629 (remote_target::remote_detach_1): Pass down target. Use
11630 remote_unpush_target.
11631 (extended_remote_target::attach): Pass down target.
11632 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11633 (remote_target::append_resumption): Pass down target.
11634 (remote_target::append_pending_thread_resumptions)
11635 (remote_target::remote_resume_with_hc, remote_target::resume)
11636 (remote_target::commit_resume): Pass down target.
11637 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11638 (remote_target::interrupt_query)
11639 (remote_target::remove_new_fork_children)
11640 (remote_target::check_pending_events_prevent_wildcard_vcont)
11641 (remote_target::remote_parse_stop_reply)
11642 (remote_target::process_stop_reply): Pass down target.
11643 (first_remote_resumed_thread): New remote_target parameter. Pass
11644 it down.
11645 (remote_target::wait_as): Pass down target.
11646 (unpush_and_perror): New remote_target parameter. Pass it down.
11647 (remote_target::readchar, remote_target::remote_serial_write)
11648 (remote_target::getpkt_or_notif_sane_1)
11649 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11650 down target.
11651 (remote_target::mourn_inferior): Pass down target. Use
11652 remote_unpush_target.
11653 (remote_target::core_of_thread)
11654 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11655 (remote_target::pid_to_exec_file)
11656 (remote_target::thread_handle_to_thread_info): Pass down target.
11657 (remote_target::async_wait_fd): New.
11658 * riscv-fbsd-tdep.c: Include "inferior.h".
11659 (riscv_fbsd_get_thread_local_address): Pass down target.
11660 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11661 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11662 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11663 Adjust.
11664 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11665 * solib-svr4.c (enable_break): Pass down target.
11666 * spu-multiarch.c (parse_spufs_run): Pass down target.
11667 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11668 * target-delegates.c: Regenerate.
11669 * target.c (g_target_stack): Delete.
11670 (current_top_target): Return the current inferior's top target.
11671 (target_has_execution_1): Refer to the passed-in inferior's top
11672 target.
11673 (target_supports_terminal_ours): Check whether the initial
11674 inferior was already created.
11675 (decref_target): New.
11676 (target_stack::push): Incref/decref the target.
11677 (push_target, push_target, unpush_target): Adjust.
11678 (target_stack::unpush): Defref target.
11679 (target_is_pushed): Return bool. Adjust to refer to the current
11680 inferior's target stack.
11681 (dispose_inferior): Delete, and inline parts ...
11682 (target_preopen): ... here. Only dispose of the current inferior.
11683 (target_detach): Hold strong target reference while detaching.
11684 Pass target down.
11685 (target_thread_name): Add assertion.
11686 (target_resume): Pass down target.
11687 (target_ops::beneath, find_target_at): Adjust to refer to the
11688 current inferior's target stack.
11689 (get_dummy_target): New.
11690 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11691 has a thread running.
11692 (initialize_targets): Rename to ...
11693 (_initialize_target): ... this.
11694 * target.h: Include "gdbsupport/refcounted-object.h".
11695 (struct target_ops): Inherit refcounted_object.
11696 (target_ops::shortname, target_ops::longname): Make const.
11697 (target_ops::async_wait_fd): New method.
11698 (decref_target): Declare.
11699 (struct target_ops_ref_policy): New.
11700 (target_ops_ref): New typedef.
11701 (get_dummy_target): Declare function.
11702 (target_is_pushed): Return bool.
11703 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11704 (all_matching_threads_iterator::all_matching_threads_iterator):
11705 Handle filter target.
11706 * thread-iter.h (struct all_matching_threads_iterator, struct
11707 all_matching_threads_range, class all_non_exited_threads_range):
11708 Filter by target too. Remove explicit.
11709 * thread.c (threads_executing): Delete.
11710 (inferior_thread): Pass down current inferior.
11711 (clear_thread_inferior_resources): Pass down thread pointer
11712 instead of ptid_t.
11713 (add_thread_silent, add_thread_with_info, add_thread): Add
11714 process_stratum_target parameter. Use it for thread and inferior
11715 searches.
11716 (is_current_thread): New.
11717 (thread_info::deletable): Use it.
11718 (find_thread_ptid, thread_count, in_thread_list)
11719 (thread_change_ptid, set_resumed, set_running): New
11720 process_stratum_target parameter. Pass it down.
11721 (set_executing): New process_stratum_target parameter. Pass it
11722 down. Adjust reference to 'threads_executing'.
11723 (threads_are_executing): New process_stratum_target parameter.
11724 Adjust reference to 'threads_executing'.
11725 (set_stop_requested, finish_thread_state): New
11726 process_stratum_target parameter. Pass it down.
11727 (switch_to_thread): Also match inferior.
11728 (switch_to_thread): New process_stratum_target parameter. Pass it
11729 down.
11730 (update_threads_executing): Reimplement.
11731 * top.c (quit_force): Pop targets from all inferior.
11732 (gdb_init): Don't call initialize_targets.
11733 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11734 Declare.
11735 (windows_add_thread, windows_delete_thread): Adjust.
11736 (get_windows_debug_event): Rename to ...
11737 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11738 * tracefile-tfile.c (tfile_target_open): Pass down target.
11739 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11740 Forward declare.
11741 (switch_to_thread): Add process_stratum_target parameter.
11742 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11743 parameter. Use it.
11744 (mi_on_resume): Pass target down.
11745 * nat/fork-inferior.c (startup_inferior): Add
11746 process_stratum_target parameter. Pass it down.
11747 * nat/fork-inferior.h (startup_inferior): Add
11748 process_stratum_target parameter.
11749 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11750
11751 2020-01-10 Pedro Alves <palves@redhat.com>
11752
11753 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11754 directly. Instead find the first thread in the thread list and
11755 use switch_to_thread.
11756
11757 2020-01-10 Pedro Alves <palves@redhat.com>
11758
11759 * remote.c (remote_target::remote_add_inferior): Don't bind a
11760 process to the current inferior if the current inferior is already
11761 bound to a process.
11762
11763 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11764 Pedro Alves <palves@redhat.com>
11765
11766 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11767 If no process is specified, return null_ptid instead of
11768 inferior_ptid.
11769 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11770 TARGET_WAITKIND_SIGNALLED with no pid.
11771
11772 2020-01-10 Pedro Alves <palves@redhat.com>
11773
11774 * remote.c (first_remote_resumed_thread): New.
11775 (remote_target::wait_as): Use it as default event_ptid instead of
11776 inferior_ptid.
11777
11778 2020-01-10 Pedro Alves <palves@redhat.com>
11779
11780 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11781
11782 2020-01-10 Pedro Alves <palves@redhat.com>
11783
11784 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11785 not -1.
11786
11787 2020-01-10 Pedro Alves <palves@redhat.com>
11788
11789 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11790 ptid to get_last_target_status.
11791 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11792 ptid to get_last_target_status.
11793 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11794 get_last_target_status.
11795 (info_program_command): Don't pass a target_waitstatus to
11796 get_last_target_status.
11797 * infrun.c (init_wait_for_inferior): Use
11798 nullify_last_target_wait_ptid.
11799 (get_last_target_status): Handle nullptr arguments.
11800 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11801 (print_stop_event): Don't pass a ptid to get_last_target_status.
11802 (normal_stop): Don't pass a ptid to get_last_target_status.
11803 * infrun.h (get_last_target_status, set_last_target_status): Move
11804 comments here and update.
11805 (nullify_last_target_wait_ptid): Declare.
11806 * linux-fork.c (fork_load_infrun_state): Remove local extern
11807 declaration of nullify_last_target_wait_ptid.
11808 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11809 to get_last_target_status.
11810
11811 2020-01-10 Pedro Alves <palves@redhat.com>
11812
11813 * gdbthread.h (scoped_restore_current_thread)
11814 <dont_restore, restore, m_dont_restore>: Declare.
11815 * thread.c (thread_alive): Add assertion. Return bool.
11816 (switch_to_thread_if_alive): New.
11817 (prune_threads): Switch inferior/thread.
11818 (print_thread_info_1): Switch thread before calling target methods.
11819 (scoped_restore_current_thread::restore): New, factored out from
11820 ...
11821 (scoped_restore_current_thread::~scoped_restore_current_thread):
11822 ... this.
11823 (scoped_restore_current_thread::scoped_restore_current_thread):
11824 Add assertion.
11825 (thread_apply_all_command, thread_select): Use
11826 switch_to_thread_if_alive.
11827 * infrun.c (proceed, restart_threads, handle_signal_stop)
11828 (switch_back_to_stepped_thread): Switch current thread before
11829 calling target methods.
11830
11831 2020-01-10 Pedro Alves <palves@redhat.com>
11832
11833 * inferior.c (switch_to_inferior_no_thread): New function,
11834 factored out from ...
11835 (inferior_command): ... here.
11836 * inferior.h (switch_to_inferior_no_thread): Declare.
11837 * mi/mi-main.c (run_one_inferior): Use
11838 switch_to_inferior_no_thread.
11839
11840 2020-01-10 Pedro Alves <palves@redhat.com>
11841
11842 * infcmd.c (kill_command): Remove dead code.
11843
11844 2020-01-10 Pedro Alves <palves@redhat.com>
11845
11846 * remote.c (remote_target::mourn_inferior): No longer check
11847 whether the target is running.
11848
11849 2020-01-10 Pedro Alves <palves@redhat.com>
11850
11851 * corelow.c (core_target::has_execution): Change parameter type to
11852 inferior pointer.
11853 * inferior.c (number_of_live_inferiors): Use
11854 inferior::has_execution instead of target_has_execution_1.
11855 * inferior.h (inferior::has_execution): New.
11856 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11857 inferior::has_execution instead of target_has_execution_1.
11858 * process-stratum-target.c
11859 (process_stratum_target::has_execution): Change parameter type to
11860 inferior pointer. Check the inferior's PID instead of
11861 inferior_ptid.
11862 * process-stratum-target.h
11863 (process_stratum_target::has_execution): Change parameter type to
11864 inferior pointer.
11865 * record-full.c (record_full_core_target::has_execution): Change
11866 parameter type to inferior pointer.
11867 * target.c (target_has_execution_1): Change parameter type to
11868 inferior pointer.
11869 (target_has_execution_current): Adjust.
11870 * target.h (target_ops::has_execution): Change parameter type to
11871 inferior pointer.
11872 (target_has_execution_1): Change parameter type to inferior
11873 pointer. Change return type to bool.
11874 * tracefile.h (tracefile_target::has_execution): Change parameter
11875 type to inferior pointer.
11876
11877 2020-01-10 Pedro Alves <palves@redhat.com>
11878
11879 * exceptions.c (print_flush): Remove current_top_target() check.
11880
11881 2020-01-10 Pedro Alves <palves@redhat.com>
11882
11883 * remote.c (show_remote_exec_file): Show the current inferior's
11884 exec-file instead of the command variable's value.
11885
11886 2020-01-10 Pedro Alves <palves@redhat.com>
11887
11888 * record-full.c (record_full_resume_ptid): New global.
11889 (record_full_target::resume): Set it.
11890 (record_full_wait_1): Use record_full_resume_ptid instead of
11891 inferior_ptid.
11892
11893 2020-01-10 Pedro Alves <palves@redhat.com>
11894
11895 * gdbthread.h (scoped_restore_current_thread)
11896 <dont_restore, restore, m_dont_restore>: Declare.
11897 * thread.c (thread_alive): Add assertion. Return bool.
11898 (switch_to_thread_if_alive): New.
11899 (prune_threads): Switch inferior/thread.
11900 (print_thread_info_1): Switch thread before calling target methods.
11901 (scoped_restore_current_thread::restore): New, factored out from
11902 ...
11903 (scoped_restore_current_thread::~scoped_restore_current_thread):
11904 ... this.
11905 (scoped_restore_current_thread::scoped_restore_current_thread):
11906 Add assertion.
11907 (thread_apply_all_command, thread_select): Use
11908 switch_to_thread_if_alive.
11909
11910 2020-01-10 George Barrett <bob@bob131.so>
11911
11912 * stap-probe.c (stap_modify_semaphore): Don't check for null
11913 semaphores.
11914 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11915 for null semaphores.
11916
11917 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11918
11919 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11920 all source windows, and maintain horizontal scroll status while
11921 doing so.
11922
11923 2020-01-09 Tom Tromey <tom@tromey.com>
11924
11925 PR tui/18932:
11926 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11927 update_source_window, not print_source_lines.
11928
11929 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11930
11931 * tui/tui.c (tui_enable): Register tui hooks after calling
11932 tui_display_main.
11933
11934 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11935
11936 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11937
11938 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11939
11940 * thread.c (print_thread_info_1): Fix indentation.
11941
11942 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11943
11944 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11945 unique_xmalloc_ptr outside the if to always free the demangled name.
11946
11947 2020-01-08 Tom Tromey <tromey@adacore.com>
11948
11949 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11950 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11951 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11952 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11953 Remove.
11954 (section_offsets): New typedef.
11955 * symtab.c (fixup_section, get_msymbol_address): Update.
11956 * symmisc.c (dump_msymbols): Update.
11957 * symfile.h (relative_addr_info_to_section_offsets)
11958 (symfile_map_offsets_to_segments): Update.
11959 * symfile.c (build_section_addr_info_from_objfile)
11960 (init_objfile_sect_indices): Update.
11961 (struct place_section_arg): Change type of "offsets".
11962 (place_section): Update.
11963 (relative_addr_info_to_section_offsets): Change type of
11964 "section_offsets". Remove "num_sections" parameter.
11965 (default_symfile_offsets, syms_from_objfile_1)
11966 (set_objfile_default_section_offset): Update.
11967 (reread_symbols): No need to preserve section offsets by hand.
11968 (symfile_map_offsets_to_segments): Change type of "offsets".
11969 * stap-probe.c (relocate_address): Update.
11970 * stabsread.h (process_one_symbol): Update.
11971 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11972 (solib_target_relocate_section_addresses): Update.
11973 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11974 Update.
11975 * solib-frv.c (frv_relocate_main_executable): Update.
11976 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11977 * solib-aix.c (solib_aix_get_section_offsets): Change return
11978 type.
11979 (solib_aix_solib_create_inferior_hook): Update.
11980 * remote.c (remote_target::get_offsets): Update.
11981 * psymtab.c (find_pc_sect_psymtab): Update.
11982 * psympriv.h (struct partial_symbol) <address, text_low,
11983 text_high>: Update.
11984 * objfiles.h (obj_section_offset): Update.
11985 (struct objfile) <section_offsets>: Change type.
11986 <num_sections>: Remove.
11987 (objfile_relocate): Update.
11988 * objfiles.c (entry_point_address_query): Update
11989 (relocate_one_symbol): Change type of "section_offsets".
11990 (objfile_relocate1, objfile_relocate1): Change type of
11991 "new_offsets".
11992 (objfile_rebase1): Update.
11993 * mipsread.c (mipscoff_symfile_read): Update.
11994 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11995 parameter.
11996 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11997 (parse_external, psymtab_to_symtab_1): Update.
11998 * machoread.c (macho_symfile_offsets): Update.
11999 * ia64-tdep.c (ia64_find_unwind_table): Update.
12000 * hppa-tdep.c (read_unwind_info): Update.
12001 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12002 * dwarf2read.c (create_addrmap_from_index)
12003 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12004 (process_psymtab_comp_unit_reader, add_partial_symbol)
12005 (add_partial_subprogram, process_full_comp_unit)
12006 (read_file_scope, read_func_scope, read_lexical_block_scope)
12007 (read_call_site_scope, dwarf2_rnglists_process)
12008 (dwarf2_ranges_process, dwarf2_ranges_read)
12009 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12010 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12011 Update.
12012 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12013 Update.
12014 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12015 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12016 (process_one_symbol): Change type of "section_offsets".
12017 * ctfread.c (get_objfile_text_range): Update.
12018 * coffread.c (coff_symtab_read, enter_linenos)
12019 (process_coff_symbol): Update.
12020 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12021 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12022
12023 2020-01-08 Tom Tromey <tromey@adacore.com>
12024
12025 * dwarf2read.c (parse_macro_definition): Use std::string.
12026 (parse_macro_definition): Likewise.
12027
12028 2020-01-08 Tom Tromey <tromey@adacore.com>
12029
12030 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12031 (ATTR_ALLOC_CHUNK): Remove.
12032
12033 2020-01-08 Tom Tromey <tromey@adacore.com>
12034
12035 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12036
12037 2020-01-08 Tom Tromey <tromey@adacore.com>
12038
12039 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12040 (dwarf2_compute_name, open_dwo_file): Likewise.
12041 (process_enumeration_scope): Use std::vector.
12042 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12043 (partial_die_info::fixup, dwarf2_start_subfile)
12044 (guess_full_die_structure_name, dwarf2_name): Likewise.
12045 (determine_prefix): Update.
12046 (guess_full_die_structure_name): Make return type const.
12047 (partial_die_full_name): Return unique_xmalloc_ptr.
12048 (DW_FIELD_ALLOC_CHUNK): Remove.
12049
12050 2020-01-07 Tom Tromey <tromey@adacore.com>
12051
12052 PR build/24937:
12053 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12054
12055 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12056
12057 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12058
12059 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12060
12061 * stack.c (print_frame_info): Move disassemble_next_line code
12062 inside source_print block.
12063
12064 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12065
12066 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12067 gdb/signals.h, as we are now using native signal symbols.
12068
12069 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12070
12071 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12072 overflow by an early check of content vs threshold.
12073 * tui/tui-source.c (tui_source_window::line_is_displayed):
12074 Likewise.
12075
12076 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12077
12078 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12079
12080 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12081
12082 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12083 export table if no section contains it's RVA.
12084
12085 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12086
12087 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12088
12089 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12090
12091 * source.c (print_source_lines_base): Set last_line_listed.
12092
12093 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12094
12095 * tui/tui-disasm.c: Remove trailing spaces.
12096
12097 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12098 Pedro Alves <palves@redhat.com>
12099
12100 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12101 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12102 (windows_gdb_signal_to_target): New function, uses the above
12103 enumeration to convert GDB internal signal codes to equivalent
12104 Windows codes.
12105 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12106 * windows-nat.c: Include "gdb_wait.h".
12107 (get_windows_debug_event): Extract the fatal exception from the
12108 exit status and convert to the equivalent Posix signal number.
12109 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12110 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12111 * gdbsupport/gdb_wait.c: New file, implements
12112 windows_status_to_termsig.
12113 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12114 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12115
12116 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12117
12118 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12119 show_layout.
12120
12121 2020-01-05 Luis Machado <luis.machado@linaro.org>
12122
12123 * aarch64-linux-nat.c
12124 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12125 and bfd_mach_aarch64.
12126
12127 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12128
12129 * ui-file.c (stdio_file::can_emit_style_escape)
12130 (tee_file::can_emit_style_escape): Ensure style is used also on
12131 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12132 to gdb_stdout.
12133 * main.c (set_gdb_data_directory): Use file style to output the
12134 warning that the given pathname is not a directory.
12135 * top.c (show_history_filename, gdb_safe_append_history)
12136 (show_gdb_datadir): Use file style.
12137
12138 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12139
12140 * solib-target.c (struct lm_info_target):
12141 Change offsets to be a unique_xmalloc_ptr.
12142 (solib_target_relocate_section_addresses): Update.
12143
12144 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12145
12146 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12147
12148 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12149
12150 * MAINTAINERS (Write After Approval): Add myself.
12151
12152 2020-01-02 Luis Machado <luis.machado@linaro.org>
12153
12154 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12155 Cell BE architecture.
12156 * target.h (struct target_ops) <thread_architecture>: Likewise.
12157
12158 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12159
12160 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12161
12162 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12163
12164 * MAINTAINERS (Write After Approval): Add myself.
12165
12166 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12167
12168 * gdbarch.sh: Update copyright year range of generated files.
12169
12170 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12171
12172 Update copyright year range in all GDB files.
12173
12174 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12175
12176 * copyright.py: Convert to Python 3.
12177
12178 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12179
12180 * copyright.py: Adapt after move of gnulib directory from gdb
12181 directory to toplevel directory.
12182
12183 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12184
12185 * copyright.py (main): Exit if run from the wrong directory.
12186
12187 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12188
12189 * top.c (print_gdb_version): Change copyright year to 2020.
12190
12191 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12192
12193 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12194
12195 For older changes see ChangeLog-2019.
12196 \f
12197 Local Variables:
12198 mode: change-log
12199 left-margin: 8
12200 fill-column: 74
12201 version-control: never
12202 coding: utf-8
12203 End: