gdb/Makefile.in: Add DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS variables.
[binutils-gdb.git] / gdb / ChangeLog
1 2020-08-18 Aaron Merey <amerey@redhat.com>
2
3 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5 (CLIBS): Add DEBUGINFOD_LIBS.
6
7 2020-08-17 Sergei Trofimovich <siarheit@google.com>
8
9 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
10 'gdbarch_num_regs'.
11
12 2020-08-17 Tom Tromey <tromey@adacore.com>
13
14 * ada-varobj.c (ada_varobj_decode_var): Handle case where
15 ada_get_decoded_value returns NULL.
16
17 2020-08-17 Tom Tromey <tromey@adacore.com>
18
19 * python/py-inferior.c (infpy_search_memory): Use
20 gdb_py_object_from_ulongest.
21 * python/py-infevents.c (create_inferior_call_event_object)
22 (create_memory_changed_event_object): Use
23 gdb_py_object_from_ulongest.
24 * python/py-linetable.c (ltpy_entry_get_pc): Use
25 gdb_py_object_from_ulongest.
26
27 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
28
29 * loc.c (class symbol_needs_eval_context): Fix indentation.
30
31 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
32
33 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
34 bool.
35
36 2020-08-17 Tom de Vries <tdevries@suse.de>
37
38 PR gdb/26393
39 * gdbtypes.c (dump_dynamic_prop): New function.
40 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
41
42 2020-08-15 Tom de Vries <tdevries@suse.de>
43
44 PR backtrace/26390
45 * stack.c (print_frame_args): Temporarily set the selected
46 frame to FRAME while printing the frame's arguments.
47
48 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
49
50 PR breakpoints/26385
51 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
52 Always clear watchpoint with PTRACE_SET_DEBUGREG.
53
54 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
55
56 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
57 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
58 and >= to check return value instead of == -1 and != -1.
59
60 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
61
62 * utils.h (class gdb_argv) <as_array_view>: New method.
63 * utils.c (gdb_argv_as_array_view_test): New.
64 (_initialize_utils): Register selftest.
65 * maint.c (maintenance_selftest): Use the new method.
66
67 2020-08-13 Kamil Rytarowski <n54@gmx.com>
68
69 * target.h (supports_dumpcore, dumpcore): New
70 function declarations.
71 * target.c (supports_dumpcore, dumpcore): New
72 functions.
73 * target-delegates.c: Rebuild.
74 * gcore.c (gcore_command): Use target_supports_dumpcore ()
75 and target_dumpcore ().
76
77 2020-08-13 Aaron Merey <amerey@redhat.com>
78
79 * debuginfod-support.c: Replace global variables with user_data.
80
81 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
82
83 * maint.c (maintenance_selftest): Split args and pass array_view
84 to run_tests.
85
86 2020-08-12 Luis Machado <luis.machado@linaro.org>
87
88 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
89 type's length.
90 Use %s and pulongest to print the length.
91
92 2020-08-12 Pedro Alves <palves@redhat.com>
93
94 * NEWS: Move "Multi-target debugging support" item to the
95 "Changes since GDB 9" section.
96
97 2020-08-12 Pedro Alves <palves@redhat.com>
98
99 PR gdb/26336
100 * progspace.c (program_space::remove_objfile): Invalidate the
101 frame cache.
102
103 2020-08-11 Tom de Vries <tdevries@suse.de>
104
105 * MAINTAINERS: Mark ms1 as deleted.
106
107 2020-08-10 Luis Machado <luis.machado@linaro.org>
108
109 PR gdb/26310
110
111 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
112 act accordingly.
113 (aarch64_analyze_prologue_test): Add more unit tests to exercise
114 movz/str/stur/stp skipping behavior.
115
116 2020-08-10 Luis Machado <luis.machado@linaro.org>
117
118 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
119 struct user_sve_header instead of struct sve_context.
120
121 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
122
123 * read.h (dwarf2_fetch_die_loc_sect_off,
124 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
125 `void *` parameter with function_view.
126 * read.c (dwarf2_fetch_die_loc_sect_off,
127 dwarf2_fetch_die_loc_cu_off): Likewise.
128 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
129 (per_cu_dwarf_call): Adjust.
130 (get_frame_address_in_block_wrapper): Remove.
131 (indirect_synthetic_pointer): Adjust.
132 (get_ax_pc): Remove.
133 (dwarf2_compile_expr_to_ax): Adjust.
134
135 2020-08-08 Tom de Vries <tdevries@suse.de>
136
137 PR build/26344
138 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
139 constructor.
140 * regcache.c (get_thread_arch_aspace_regcache): Same.
141
142 2020-08-07 Tom Tromey <tromey@adacore.com>
143
144 * ravenscar-thread.c
145 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
146 New method.
147 (ravenscar_thread_target::wait): Check
148 runtime_initialized.
149 (ravenscar_thread_target::prepare_to_store)
150 (ravenscar_thread_target::stopped_by_sw_breakpoint)
151 (ravenscar_thread_target::stopped_by_hw_breakpoint)
152 (ravenscar_thread_target::stopped_by_watchpoint)
153 (ravenscar_thread_target::stopped_data_address)
154 (ravenscar_thread_target::core_of_thread): Use
155 scoped_restore_current_thread and
156 set_base_thread_from_ravenscar_task.
157
158 2020-08-07 Tom Tromey <tromey@adacore.com>
159
160 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
161
162 2020-08-07 Tom Tromey <tromey@adacore.com>
163
164 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
165 update_inferior_ptid before update_thread_list.
166 (temporarily_change_regcache_ptid): New class.
167 (ravenscar_thread_target::fetch_registers)
168 (ravenscar_thread_target::store_registers)
169 (ravenscar_thread_target::prepare_to_store): Use base thread when
170 forwarding operation.
171
172 2020-08-07 Tom Tromey <tromey@adacore.com>
173
174 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
175 "is_pid" case.
176
177 2020-08-07 Tom Tromey <tromey@adacore.com>
178
179 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
180 New methods.
181 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
182 first.
183 (ravenscar_thread_target::add_thread): Rename from
184 ravenscar_add_thread.
185 (ravenscar_thread_target::update_thread_list): Use a lambda.
186 (ravenscar_thread_target::xfer_partial): New method.
187
188 2020-08-07 Tom Tromey <tromey@adacore.com>
189
190 * ada-lang.h (ada_task_list_iterator_ftype): Now a
191 gdb::function_view.
192 (iterate_over_live_ada_tasks): Change type of argument.
193 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
194 of argument.
195
196 2020-08-07 Tom Tromey <tromey@adacore.com>
197
198 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
199 Remove.
200 (ravenscar_thread_target::extra_thread_info): Remove.
201 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
202 defer to target beneath for non-Ravenscar threads.
203
204 2020-08-07 Tom Tromey <tromey@adacore.com>
205
206 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
207 get_base_thread_from_ravenscar_task>: Now methods.
208 <m_cpu_map>: New member.
209 (ravenscar_thread_target::get_thread_base_cpu): Rename from
210 ravenscar_get_thread_base_cpu. Check m_cpu_map.
211 (ravenscar_thread_target::task_is_currently_active): Update.
212 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
213 Now a method.
214 (ravenscar_thread_target::add_active_thread): Put initial thread
215 into the m_cpu_map.
216
217 2020-08-07 Tom Tromey <tromey@adacore.com>
218
219 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
220 event_ptid.
221
222 2020-08-07 Tom Tromey <tromey@adacore.com>
223
224 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
225 runtime_initialized.
226
227 2020-08-07 Tom Tromey <tromey@adacore.com>
228
229 * ravenscar-thread.c (ravenscar_thread_target): Don't call
230 add_active_thread.
231 (ravenscar_thread_target::add_active_thread): Now public.
232 (ravenscar_inferior_created): Call add_active_thread after pushing
233 the target.
234
235 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
236
237 * regcache.c (ptid_regcache_map): New type.
238 (target_ptid_regcache_map): New type.
239 (regcaches): Change type to target_ptid_regcache_map.
240 (get_thread_arch_aspace_regcache): Update to regcaches' new
241 type.
242 (regcache_thread_ptid_changed): Likewise.
243 (registers_changed_ptid): Likewise.
244 (regcaches_size): Likewise.
245 (regcaches_test): Update.
246 (regcache_thread_ptid_changed): Update.
247 * regcache.h (regcache_up): New type.
248 * gdbsupport/ptid.h (hash_ptid): New struct.
249
250 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
251
252 * observable.h (thread_ptid_changed): Add parameter
253 `process_stratum_target *`.
254 * infrun.c (infrun_thread_ptid_changed): Add parameter
255 `process_stratum_target *` and use it.
256 (selftests): New namespace.
257 (infrun_thread_ptid_changed): New function.
258 (_initialize_infrun): Register selftest.
259 * regcache.c (regcache_thread_ptid_changed): Add parameter
260 `process_stratum_target *` and use it.
261 (regcache_thread_ptid_changed): New function.
262 (_initialize_regcache): Register selftest.
263 * thread.c (thread_change_ptid): Pass target to
264 thread_ptid_changed observable.
265
266 2020-08-06 Caroline Tice <cmtice@google.com>
267
268 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
269 (struct dwp_sections): Update field comments. Add loclists and
270 rnglists fields.
271 (struct virtual_v2_dwo_sections): Rename struct to
272 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
273 size & offset fields for loclists and rnglists.
274 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
275 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
276 skipping dummy type units.
277 (create_dwp_hash_table): Update the large comment above the function to
278 discuss Version 5 DWP files as well, with references. Update all the
279 version checks in the function to check for version 5 as well. Add new
280 section at the end to create dwp hash table for version 5.
281 (create_dwp_v2_section): Rename function to
282 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
283 Add V5 to error message text.
284 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
285 into calls to create_dwp_v2_or_v5_section.
286 (create_dwo_unit_in_dwp_v5): New function.
287 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
288 check for version2; add else clause to handle version 5.
289 (open_and_init_dwo_file): Add code to check dwarf version & only call
290 create_debug_types_hash_table (with sections.types) if version is not 5;
291 else call create_debug_type_hash_table, with sections.info.
292 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
293 version 5.
294 (dwarf2_locate_v5_dwp_sections): New function.
295 (open_and_init_dwp_file): Add else-if clause for version 5 to call
296 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
297
298 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
299
300 * regcache.h (class regcache): Remove friend
301 registers_changed_ptid.
302 <regcache_thread_ptid_changed>: Remove.
303 <regcaches>: Remove.
304 * regcache.c (regcache::regcaches): Rename to...
305 (regcaches): ... this. Make static.
306 (get_thread_arch_aspace_regcache): Update.
307 (regcache::regcache_thread_ptid_changed): Rename to...
308 (regcache_thread_ptid_changed): ... this. Update.
309 (class regcache_access): Remove.
310 (regcaches_test): Update.
311 (_initialize_regcache): Update.
312 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
313 <forward_list>.
314
315 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
316
317 * regcache.h (class regcache) <current_regcache>: Rename to...
318 <regcaches>: ... this. Move doc here.
319 * regcache.c (regcache::current_regcache) Rename to...
320 (regcache::regcaches): ... this. Move doc to header.
321 (get_thread_arch_aspace_regcache): Update.
322 (regcache::regcache_thread_ptid_changed): Update.
323 (registers_changed_ptid): Update.
324 (class regcache_access) <current_regcache_size>: Rename to...
325 <regcaches_size>: ... this.
326 (current_regcache_test): Rename to...
327 (regcaches_test): ... this.
328 (_initialize_regcache): Update.
329
330 2020-08-06 Victor Collod <vcollod@nvidia.com>
331
332 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
333
334 2020-08-05 Kevin Buettner <kevinb@redhat.com>
335
336 * corelow.c (core_target::build_file_mappings): Don't output
337 null pathname in warning.
338
339 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
340
341 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
342 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
343 gdb.dwarf2/dw2-single-line-discriminators.exp,
344 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
345
346 2020-08-05 Tom Tromey <tromey@adacore.com>
347
348 PR rust/26197:
349 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
350 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
351 Fix off-by-one and type size errors in ordinary case.
352
353 2020-08-05 Tom de Vries <tdevries@suse.de>
354
355 * gdbtypes.c (type_not_allocated, type_not_associated): Use
356 "prop->const_val () == 0" instead of "prop->const_val () != 0".
357
358 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
359
360 * frame.h (frame_id_p): Return bool.
361 (frame_id_artificial_p): Return bool.
362 (frame_id_eq): Return bool.
363 (has_stack_frames): Return bool.
364 (get_selected_frame): Fix typo in comment.
365 (get_frame_pc_if_available): Return bool.
366 (get_frame_address_in_block_if_available): Return bool.
367 (get_frame_func_if_available): Return bool.
368 (read_frame_register_unsigned): Return bool.
369 (get_frame_register_bytes): Return bool.
370 (safe_frame_unwind_memory): Return bool.
371 (deprecated_frame_register_read): Return bool.
372 (frame_unwinder_is): Return bool.
373 * frame.c (struct frame_info) <prev_arch::p>: Change type to
374 bool.
375 <this_id::p>: Likewise.
376 <prev_p>: Likewise.
377 (frame_stash_add): Return bool.
378 (get_frame_id): Use bool.
379 (frame_id_build_special) Use bool.
380 (frame_id_build_unavailable_stack): Use bool.
381 (frame_id_build): Use bool.
382 (frame_id_p): Return bool, use true/false instead of 1/0.
383 (frame_id_artificial_p): Likewise.
384 (frame_id_eq): Likewise.
385 (frame_id_inner): Likewise.
386 (get_frame_func_if_available): Likewise.
387 (read_frame_register_unsigned): Likewise.
388 (deprecated_frame_register_read): Likewise.
389 (get_frame_register_bytes): Likewise.
390 (has_stack_frames): Likewise.
391 (inside_main_func): Likewise.
392 (inside_entry_func): Likewise.
393 (get_frame_pc_if_available): Likewise.
394 (get_frame_address_in_block_if_available): Likewise.
395 (frame_unwinder_is): Likewise.
396 (safe_frame_unwind_memory): Likewise.
397 (frame_unwind_arch): Likewise.
398
399 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
400
401 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
402 type to cached_copy_status.
403 (fprintf_frame): Adjust.
404 (get_frame_func_if_available): Adjust.
405 (frame_cleanup_after_sniffer): Adjust.
406
407 2020-08-04 Mark Wielaard <mark@klomp.org>
408
409 * MAINTAINERS (Write After Approval): Update email address.
410
411 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
412
413 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
414 dynamic_prop::const_val.
415
416 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
417
418 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
419 dynamic_prop::kind.
420
421 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
422
423 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
424
425 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
426
427 * configure.tgt: Set gdb_sim for bpf-*-* targets.
428
429 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
430 Jose E. Marchesi <jose.marchesi@oracle.com>
431
432 * configure.tgt: Add entry for bpf-*-*.
433 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
434 (ALLDEPFILES): Add bpf-tdep.c.
435 * bpf-tdep.c: New file.
436 * MAINTAINERS: Add bpf target and maintainer.
437 * NEWS: Mention the support for the new target.
438
439 2020-08-04 Tom de Vries <tdevries@suse.de>
440
441 PR symtab/23270
442 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
443 Error.
444
445 2020-08-03 John Baldwin <jhb@FreeBSD.org>
446
447 * syscalls/freebsd.xml: Regenerate.
448
449 2020-08-03 John Baldwin <jhb@FreeBSD.org>
450
451 * syscalls/update-freebsd.sh: Fix usage and year range.
452
453 2020-08-03 Tom de Vries <tdevries@suse.de>
454
455 PR symtab/26333
456 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
457 DW_LNE_lo_user/DW_LNE_hi_user range.
458
459 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
460
461 PR ada/26318
462 * ada-lang.c (ada_modulus): Return 0 if property is not of const
463 kind.
464
465 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
466
467 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
468
469 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
470
471 * breakpoint.c (set_breakpoint_condition): Update the condition
472 expressions after checking that the input condition string parses
473 successfully and does not contain junk at the end.
474
475 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
476
477 * breakpoint.c (set_breakpoint_condition): Update the
478 condition string after parsing the new condition successfully.
479
480 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
481
482 * proc-api.c (_STRUCTURED_PROC): Don't define.
483 * proc-events.c: Likewise.
484 * proc-flags.c: Likewise.
485 * proc-why.c: Likewise.
486 * procfs.c: Likewise.
487
488 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
489 * configure, config.in: Regenerate.
490
491 2020-07-30 Tom de Vries <tdevries@suse.de>
492
493 PR build/26320
494 * ui-style.h (struct ui_file_style::color): Wrap m_value and
495 m_red/m_green/m_blue in a union.
496
497 2020-07-29 Tom de Vries <tdevries@suse.de>
498
499 PR tdep/26280
500 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
501
502 2020-07-28 Tom Tromey <tromey@adacore.com>
503
504 PR symtab/26270:
505 * symtab.h (find_pc_partial_function_sym): Declare.
506 * cli/cli-cmds.c (disassemble_command): Use
507 find_pc_partial_function_sym. Check asm_demangle.
508 * blockframe.c (cache_pc_function_sym): New global.
509 (cache_pc_function_name): Remove.
510 (clear_pc_function_cache): Update.
511 (find_pc_partial_function_sym): New function, from
512 find_pc_partial_function.
513 (find_pc_partial_function): Rewrite using
514 find_pc_partial_function_sym.
515
516 2020-07-28 Tom Tromey <tromey@adacore.com>
517
518 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
519 help. Add usage.
520
521 2020-07-28 Tom Tromey <tromey@adacore.com>
522
523 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
524 <DW_OP_GNU_variable_value>: Cast to address type.
525
526 2020-07-28 Kamil Rytarowski <n54@gmx.com>
527
528 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
529 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
530 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
531 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
532 (nbsd_get_siginfo_type): New.
533 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
534 (_initialize_nbsd_tdep): New.
535
536 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
537
538 PR binutils/26301
539 * configure: Regenerated.
540
541 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
542
543 PR binutils/26301
544 * configure: Regenerated.
545
546 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
547
548 * python/py-frame.c: Remove 'user-regs.h' include.
549 (frapy_read_register): Rewrite to make use of
550 gdbpy_parse_register_id.
551 * python/py-registers.c (gdbpy_parse_register_id): New function,
552 moved here from python/py-unwind.c. Updated the return type, and
553 also accepts register descriptor objects.
554 * python/py-unwind.c: Remove 'user-regs.h' include.
555 (pyuw_parse_register_id): Moved to python/py-registers.c.
556 (unwind_infopy_add_saved_register): Update to use
557 gdbpy_parse_register_id.
558 (pending_framepy_read_register): Likewise.
559 * python/python-internal.h (gdbpy_parse_register_id): Declare.
560
561 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
562
563 * python/py-registers.c: Add 'user-regs.h' include.
564 (register_descriptor_iter_find): New function.
565 (register_descriptor_iterator_object_methods): New static global
566 methods array.
567 (register_descriptor_iterator_object_type): Add pointer to methods
568 array.
569
570 2020-07-27 John Baldwin <jhb@FreeBSD.org>
571
572 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
573 for all architectures on FreeBSD 11.3 and later.
574
575 2020-07-27 Tom Tromey <tromey@adacore.com>
576
577 * gcore.h (load_corefile): Don't declare.
578
579 2020-07-27 Tom de Vries <tdevries@suse.de>
580
581 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
582 * config.in: Regenerate.
583 * configure: Regenerate.
584
585 2020-07-26 Eli Zaretskii <eliz@gnu.org>
586
587 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
588 ws2tcpip.h. When checking whether socklen_t type is defined, use
589 ws2tcpip.h if it is available and sys/socket.h isn't.
590 * configure: Regenerate.
591 * config.in: Regenerate.
592
593 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
594
595 PR fortran/23051
596 PR fortran/26139
597 * valops.c (value_ind): Pass address to
598 readjust_indirect_value_type.
599 * value.c (readjust_indirect_value_type): Make parameter
600 non-const, and add extra address parameter. Resolve original type
601 before using it.
602 * value.h (readjust_indirect_value_type): Update function
603 signature and comment.
604
605 2020-07-25 Tom de Vries <tdevries@suse.de>
606
607 PR symtab/26243
608 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
609 entries.
610
611 2020-07-24 Aaron Merey <amerey@redhat.com>
612
613 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
614 * configure: Rebuild.
615
616 2020-07-23 Kevin Buettner <kevinb@redhat.com>
617
618 PR corefiles/26294
619 * corelow.c (_initialize_corelow): Add period to help text
620 for "maintenance print core-file-backed-mappings".
621
622 2020-07-23 Pedro Alves <pedro@palves.net>
623
624 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
625 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
626 meanwhile.
627 * frame.c (frame_cache_generation, get_frame_cache_generation):
628 New.
629 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
630 (get_prev_frame_if_no_cycle): On exception, don't touch
631 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
632 * frame.h (get_frame_cache_generation): Declare.
633
634 2020-07-23 Tom de Vries <tdevries@suse.de>
635
636 PR tui/26282
637 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
638 New default constructor.
639
640 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
641
642 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
643 exclude non-statement entries.
644
645 2020-07-22 Kevin Buettner <kevinb@redhat.com>
646
647 * NEWS (New commands): Mention new command
648 "maintenance print core-file-backed-mappings".
649
650 2020-07-22 Kevin Buettner <kevinb@redhat.com>
651
652 * corelow.c (gdbcmd.h): Include.
653 (core_target::info_proc_mappings): New method.
654 (get_current_core_target): New function.
655 (maintenance_print_core_file_backed_mappings): New function.
656 (_initialize_corelow): Add core-file-backed-mappings to
657 "maint print" commands.
658
659 2020-07-22 Kevin Buettner <kevinb@redhat.com>
660
661 * linux-tdep.c (dump_note_entry_p): New function.
662 (linux_dump_mapping_p_ftype): New typedef.
663 (linux_find_memory_regions_full): Add new parameter,
664 should_dump_mapping_p.
665 (linux_find_memory_regions): Adjust call to
666 linux_find_memory_regions_full.
667 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
668 call to linux_find_memory_regions_full.
669
670 2020-07-22 Kevin Buettner <kevinb@redhat.com>
671
672 * corelow.c (solist.h, unordered_map): Include.
673 (class core_target): Add field m_core_file_mappings and
674 method build_file_mappings.
675 (core_target::core_target): Call build_file_mappings.
676 (core_target::~core_target): Free memory associated with
677 m_core_file_mappings.
678 (core_target::build_file_mappings): New method.
679 (core_target::xfer_partial): Use m_core_file_mappings
680 for memory transfers.
681 * linux-tdep.c (linux_read_core_file_mappings): New
682 function.
683 (linux_core_info_proc_mappings): Rewrite to use
684 linux_read_core_file_mappings.
685 (linux_init_abi): Register linux_read_core_file_mappings.
686
687 2020-07-22 Kevin Buettner <kevinb@redhat.com>
688
689 * arch-utils.c (default_read_core_file_mappings): New function.
690 * arch-utils.c (default_read_core_file_mappings): Declare.
691 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
692 * gdbarch.h, gdbarch.c: Regenerate.
693
694 2020-07-22 Kevin Buettner <kevinb@redhat.com>
695
696 PR corefiles/25631
697 * corelow.c (core_target:xfer_partial): Revise
698 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
699 case after first checking the stratum beneath the core
700 target.
701 (has_all_memory): Return true.
702 * target.c (raw_memory_xfer_partial): Revise comment
703 regarding use of has_all_memory.
704
705 2020-07-22 Kevin Buettner <kevinb@redhat.com>
706
707 * exec.h (section_table_xfer_memory): Revise declaration,
708 replacing section name parameter with an optional callback
709 predicate.
710 * exec.c (section_table_xfer_memory): Likewise.
711 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
712 of section_table_xfer_memory.
713
714 2020-07-22 Tom Tromey <tromey@adacore.com>
715
716 * mi/mi-cmd-stack.c (list_args_or_locals): Use
717 lookup_symbol_search_name.
718
719 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
720
721 * python/py-registers.c (gdbpy_register_object_data_init): Remove
722 redundant local variable.
723 (gdbpy_get_register_descriptor): Extract descriptor vector as a
724 reference, not pointer, update code accordingly.
725
726 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
727 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
728
729 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
730 * jit.c (jit_breakpoint_re_set_internal): Use the
731 `skip_jit_symbol_lookup` field.
732
733 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
734 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
735
736 * jit.c (jit_read_descriptor): Define the descriptor address once,
737 use twice.
738 (jit_breakpoint_deleted): Move the declaration of the loop variable
739 `iter` into the loop header.
740 (jit_breakpoint_re_set_internal): Move the declaration of the local
741 variable `objf_data` to the first point of definition.
742 (jit_event_handler): Move the declaration of local variables
743 `code_entry`, `entry_addr`, and `objf` to their first point of use.
744 Rename `objf` to `jited`.
745
746 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
747
748 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
749 Remove.
750 * jit.c (get_jiter_objfile_data): Update.
751
752 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
753 Simon Marchi <simon.marchi@polymtl.ca>
754
755 * jit.c (struct jit_program_space_data): Remove.
756 (jit_program_space_key): Remove.
757 (jiter_objfile_data::~jiter_objfile_data): Remove program space
758 stuff.
759 (get_jit_program_space_data): Remove.
760 (jit_breakpoint_deleted): Iterate on all of the program space's
761 objfiles.
762 (jit_inferior_init): Likewise.
763 (jit_breakpoint_re_set_internal): Likewise. Also change return
764 type to void.
765 (jit_breakpoint_re_set): Pass current_program_space to
766 jit_breakpoint_re_set_internal.
767
768 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
769
770 * jit.h (struct jiter_objfile_data) <cached_code_address,
771 jit_breakpoint>: Move to here from ...
772 * jit.c (jit_program_space_data): ... here.
773 (jiter_objfile_data::~jiter_objfile_data): Update.
774 (jit_breakpoint_deleted): Update.
775 (jit_breakpoint_re_set_internal): Update.
776
777 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
778
779 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
780 checks.
781 (jit_read_descriptor): Remove NULL check.
782 (jit_event_handler): Add an assertion.
783
784 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
785
786 * jit.h (struct jit_objfile_data): Split into...
787 (struct jiter_objfile_data): ... this ...
788 (struct jited_objfile_data): ... and this.
789 * objfiles.h (struct objfile) <jit_data>: Remove.
790 <jiter_data, jited_data>: New fields.
791 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
792 (jiter_objfile_data::~jiter_objfile_data): ... this.
793 (get_jit_objfile_data): Rename to ...
794 (get_jiter_objfile_data): ... this.
795 (add_objfile_entry): Update.
796 (jit_read_descriptor): Use get_jiter_objfile_data.
797 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
798 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
799 (jit_inferior_exit_hook): Use objfile's jited_data field.
800
801 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
802
803 * jit.h: Forward-declare `struct minimal_symbol`.
804 (struct jit_objfile_data): Migrate to here from jit.c; also add a
805 constructor, destructor, and an objfile* field.
806 * jit.c (jit_objfile_data): Remove.
807 (struct jit_objfile_data): Migrate from here to jit.h.
808 (jit_objfile_data::~jit_objfile_data): New destructor
809 implementation with code moved from free_objfile_data.
810 (free_objfile_data): Delete.
811 (get_jit_objfile_data): Update to use the jit_data field of objfile.
812 (jit_find_objf_with_entry_addr): Ditto.
813 (jit_inferior_exit_hook): Ditto.
814 (_initialize_jit): Remove the call to
815 register_objfile_data_with_cleanup.
816 * objfiles.h (struct objfile) <jit_data>: New field.
817
818 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
819
820 * jit.h: Forward-declare `struct objfile`.
821 (jit_event_handler): Add a second parameter, the JITer objfile.
822 * jit.c (jit_read_descriptor): Change the signature to take the
823 JITer objfile as an argument instead of the jit_program_space_data.
824 (jit_inferior_init): Update the call to jit_read_descriptor.
825 (jit_event_handler): Use the new JITer objfile argument when calling
826 jit_read_descriptor.
827 * breakpoint.c (handle_jit_event): Update the call to
828 jit_event_handler to pass the JITer objfile.
829
830 2020-07-21 John Baldwin <jhb@FreeBSD.org>
831
832 * gdbarch.c: Regenerate.
833 * gdbarch.h: Regenerate.
834 * gdbarch.sh (handle_segmentation_fault): Remove method.
835 * infrun.c (handle_segmentation_fault): Remove.
836 (print_signal_received_reason): Remove call to
837 handle_segmentation_fault.
838
839 2020-07-21 John Baldwin <jhb@FreeBSD.org>
840
841 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
842 Rename to sparc64_linux_report_signal_info and add siggnal
843 argument.
844 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
845 instead of sparc64_linux_handle_segmentation_fault.
846
847 2020-07-21 John Baldwin <jhb@FreeBSD.org>
848
849 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
850 i386_linux_report_signal_info instead of
851 i386_linux_handle_segmentation_fault.
852 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
853 to i386_linux_report_signal_info and add siggnal argument.
854 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
855 of i386_linux_handle_segmentation_fault.
856 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
857 to i386_linux_report_signal_info and add siggnal argument.
858
859 2020-07-21 John Baldwin <jhb@FreeBSD.org>
860
861 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
862 hook if present.
863
864 2020-07-21 John Baldwin <jhb@FreeBSD.org>
865
866 * gdbarch.c: Regenerate.
867 * gdbarch.h: Regenerate.
868 * gdbarch.sh (report_signal_info): New method.
869 * infrun.c (print_signal_received_reason): Invoke gdbarch
870 report_signal_info hook if present.
871
872 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
873
874 * python/py-registers.c : Add 'unordered_map' include.
875 (gdbpy_new_reggroup): Renamed to...
876 (gdbpy_get_reggroup): ...this. Update to only create register
877 group descriptors when needed.
878 (gdbpy_reggroup_iter_next): Update.
879
880 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
881
882 * python/py-registers.c (gdbpy_register_object_data): New static
883 global.
884 (gdbpy_register_object_data_init): New function.
885 (gdbpy_new_register_descriptor): Renamed to...
886 (gdbpy_get_register_descriptor): ...this, and update to reuse
887 existing register descriptors where possible.
888 (gdbpy_register_descriptor_iter_next): Update.
889 (gdbpy_initialize_registers): Register new gdbarch data.
890
891 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
892
893 * linux-nat.c (stopped_pids): Make static.
894
895 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
896
897 PR ada/26235
898 * gdbtypes.c (ada_discrete_type_low_bound,
899 ada_discrete_type_high_bound): Handle undefined bounds.
900
901 2020-07-21 Kamil Rytarowski <n54@gmx.com>
902
903 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
904 declaration.
905 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
906 function.
907
908 2020-07-20 John Baldwin <jhb@FreeBSD.org>
909
910 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
911 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
912 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
913 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
914 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
915 method.
916
917 2020-07-20 Ludovic Courtès <ludo@gnu.org>
918
919 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
920 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
921 which are deprecated in Guile 3.0.
922 * configure.ac (try_guile_versions): Add "guile-3.0".
923 * configure (try_guile_versions): Regenerate.
924 * NEWS: Update entry.
925
926 2020-07-20 Ludovic Courtès <ludo@gnu.org>
927 Doug Evans <dje@google.com>
928
929 PR gdb/21104
930 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
931 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
932 USING_GUILE_BEFORE_2_2.
933 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
934 Change type to 'scm_t_port_type *'.
935 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
936 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
937 parameter and honor it. Update callers.
938 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
939 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
940 functions.
941 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
942 USING_GUILE_BEFORE_2_2.
943 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
944 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
945 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
946 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
947 and 'SCM_PORT_TYPE'.
948 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
949 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
950 (gdbscm_memory_port_read, gdbscm_memory_port_write)
951 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
952 [!USING_GUILE_BEFORE_2_2]: New functions.
953 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
954 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
955 'gdbscm_memory_port_read'.
956 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
957 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
958 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
959 function.
960 (ioscm_init_memory_port): Remove.
961 (ioscm_init_memory_port_stream): New function
962 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
963 function.
964 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
965 Return scm_from_uint (0).
966 (gdbscm_set_memory_port_read_buffer_size_x)
967 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
968 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
969 Return scm_from_uint (0).
970 (gdbscm_set_memory_port_write_buffer_size_x)
971 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
972 * configure.ac (try_guile_versions): Add "guile-2.2".
973 * configure: Regenerate.
974 * NEWS: Add entry.
975
976 2020-07-18 Tom Tromey <tom@tromey.com>
977
978 * linux-nat.c (linux_multi_process): Remove.
979 (linux_nat_target::supports_multi_process): Return true.
980
981 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
982
983 * arch/riscv.c (riscv_tdesc_cache): Change map type.
984 (riscv_lookup_target_description): Return pointer out of
985 unique_ptr.
986 * target-descriptions.c (allocate_target_description): Add
987 comment.
988 (target_desc_deleter::operator()): Likewise.
989 * target-descriptions.h (struct target_desc_deleter): Moved to
990 gdbsupport/tdesc.h.
991 (target_desc_up): Likewise.
992
993 2020-07-17 Tom Tromey <tromey@adacore.com>
994
995 * linux-nat.c (linux_nat_target::supports_non_stop)
996 (linux_nat_target::always_non_stop_p): Use "true".
997 (linux_nat_target::supports_disable_randomization): Use "true" and
998 "false".
999
1000 2020-07-16 Caroline Tice <cmtice@google.com>
1001
1002 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1003 (RNGLIST_HEADER_SIZE64): New constant definition.
1004 (struct dwop_section_names): Add rnglists_dwo.
1005 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1006 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1007 (struct dwo_sections): Add rnglists field.
1008 (read_attribut_reprocess): Add tag parameter.
1009 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1010 (cu_debug_rnglists_section): New function (decl & definition).
1011 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1012 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1013 die whose range is being checked; get rnglist section from
1014 cu_debug_rnglists_section, to get from either objfile or dwo file as
1015 appropriate. Add cases for DW_RLE_base_addressx,
1016 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1017 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1018 test inside if-condition and updating complaint message.
1019 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1020 dwarf2_rnglists_process.
1021 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1022 dwarf2_ranges_process.
1023 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1024 need_ranges_base and update comment appropriately. Also pass die tag
1025 to dwarf2_ranges_read.
1026 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1027 need_ranges_base and update comment appropriately. Also pass die tag
1028 to dwarf2_ranges_process.
1029 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1030 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1031 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1032 need_ranges_base and update comment appropriately. Also pass die tag
1033 to read_attribute_reprocess and dwarf2_ranges_read.
1034 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1035 and update function comment appropriately.
1036 (read_loclist_index): Call read_loclists_rnglists_header instead of
1037 read_loclist_header.
1038 (read_rnglist_index): New function.
1039 (read_attribute_reprocess): Add tag parameter. Add code for
1040 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1041 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1042
1043 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1044
1045 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1046 being resolved.
1047
1048 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1049
1050 * arch-utils.c (show_architecture): Update formatting of messages.
1051
1052 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1053
1054 * gdbtypes.h (struct type) <bounds>: Handle array and string
1055 types.
1056 * ada-lang.c (assign_aggregate): Use type::bounds on
1057 array/string type.
1058 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1059 * c-varobj.c (c_number_of_children): Likewise.
1060 (c_describe_child): Likewise.
1061 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1062 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1063 (f_type_print_base): Likewise.
1064 * f-valprint.c (f77_array_offset_tbl): Likewise.
1065 (f77_get_upperbound): Likewise.
1066 (f77_print_array_1): Likewise.
1067 * guile/scm-type.c (gdbscm_type_range): Likewise.
1068 * m2-typeprint.c (m2_array): Likewise.
1069 (m2_is_long_set_of_type): Likewise.
1070 * m2-valprint.c (get_long_set_bounds): Likewise.
1071 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1072 * python/py-type.c (typy_range): Likewise.
1073 * rust-lang.c (rust_internal_print_type): Likewise.
1074 * type-stack.c (type_stack::follow_types): Likewise.
1075 * valarith.c (value_subscripted_rvalue): Likewise.
1076 * valops.c (value_cast): Likewise.
1077
1078 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1079
1080 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1081 callers to use the equivalent accessor methods.
1082
1083 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1084
1085 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1086 (struct type) <bit_stride>: New method.
1087 (TYPE_BIT_STRIDE): Remove.
1088 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1089
1090 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1091
1092 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1093 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1094 callers to use the equivalent accessor methods instead.
1095
1096 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1097
1098 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1099 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1100 callers to use the equivalent accessor methods instead.
1101
1102 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1103
1104 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1105 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1106 to use dynamic_prop::kind.
1107
1108 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1109
1110 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1111 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1112 to get the bound property's kind and check against
1113 PROP_UNDEFINED.
1114
1115 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1116
1117 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1118 all callers to use type::range_bounds followed by
1119 dynamic_prop::{low,high}.
1120
1121 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1122
1123 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1124 const_val, set_const_val, baton, set_locexpr, set_loclist,
1125 set_addr_offset, variant_parts, set_variant_parts,
1126 original_type, set_original_type>: New methods.
1127 <kind>: Rename to...
1128 <m_kind>: ... this. Update all users to use the new methods
1129 instead.
1130 <data>: Rename to...
1131 <m_data>: ... this. Update all users to use the new methods
1132 instead.
1133
1134 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1135
1136 * gdbtypes.c (get_discrete_bounds): Return failure if
1137 the range type's bounds are not both defined and constant
1138 values.
1139 (get_array_bounds): Update comment. Remove undefined bound check.
1140
1141 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1142
1143 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1144 the type::bounds method directly.
1145
1146 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1147
1148 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1149 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1150 are used to set the range type's bounds to use set_bounds.
1151
1152 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1153
1154 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1155
1156 2020-07-10 Pedro Alves <pedro@palves.net>
1157
1158 * gdbthread.h (inferior_ref): Define.
1159 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1160 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1161 * thread.c
1162 (scoped_restore_current_thread::restore):
1163 Adjust to gdb::ref_ptr.
1164 (scoped_restore_current_thread::~scoped_restore_current_thread):
1165 Remove manual decref handling.
1166 (scoped_restore_current_thread::scoped_restore_current_thread):
1167 Adjust to use
1168 inferior_ref::new_reference/thread_info_ref::new_reference.
1169 Incref the thread before calling get_frame_id instead of after.
1170 Let TARGET_CLOSE_ERROR propagate.
1171
1172 2020-07-10 Pedro Alves <pedro@palves.net>
1173
1174 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1175 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1176 NOT_AVAILABLE_ERROR.
1177 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1178 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1179
1180 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1181 Pedro Alves <pedro@palves.net>
1182
1183 PR gdb/26199
1184 * infrun.c (threads_are_resumed_pending_p): Delete.
1185 (do_target_wait): Remove threads_are_executing and
1186 threads_are_resumed_pending_p checks from the inferior_matches
1187 lambda. Update comments.
1188
1189 2020-07-10 Pedro Alves <pedro@palves.net>
1190
1191 PR gdb/26199
1192 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1193 executing threads.
1194
1195 2020-07-10 Pedro Alves <pedro@palves.net>
1196
1197 PR gdb/26199
1198 * infrun.c (handle_no_resumed): Handle multiple targets.
1199
1200 2020-07-10 Pedro Alves <pedro@palves.net>
1201
1202 PR gdb/26199
1203 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1204 target_is_async_p.
1205
1206 2020-07-10 Pedro Alves <pedro@palves.net>
1207
1208 PR gdb/26199
1209 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1210 threads, not all threads.
1211
1212 2020-07-10 Pedro Alves <pedro@palves.net>
1213
1214 PR gdb/26199
1215 * remote.c (remote_target::open_1): Pass remote target pointer as
1216 data to create_async_event_handler.
1217 (remote_async_inferior_event_handler): Mark async event handler
1218 before returning if the remote target still has either pending
1219 events or unacknowledged notifications.
1220
1221 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1222
1223 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1224 declaration.
1225 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1226 function.
1227
1228 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1229
1230 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1231 inferior_ptid.
1232
1233 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1234
1235 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1236 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1237 AT_FREEBSD_PS_STRINGS.
1238
1239 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1240
1241 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1242 of debugfile path on Windows.
1243
1244 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1245
1246 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1247 argument to 'data'.
1248
1249 2020-07-08 Tom Tromey <tromey@adacore.com>
1250
1251 * ada-lang.c (ada_exception_message_1): Use read_memory.
1252
1253 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1254
1255 PR python/22748
1256 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1257 special handling for inline frames.
1258 * findvar.c (value_of_register_lazy): Skip inline frames when
1259 creating lazy register values.
1260 * frame.c (frame_id_computed_p): Delete definition.
1261 * frame.h (frame_id_computed_p): Delete declaration.
1262
1263 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1264
1265 * NEWS: Mention additions to Python API.
1266 * python/py-arch.c (archpy_register_groups): New function.
1267 (arch_object_methods): Add 'register_groups' method.
1268 * python/py-registers.c (reggroup_iterator_object): New struct.
1269 (reggroup_object): New struct.
1270 (gdbpy_new_reggroup): New function.
1271 (gdbpy_reggroup_to_string): New function.
1272 (gdbpy_reggroup_name): New function.
1273 (gdbpy_reggroup_iter): New function.
1274 (gdbpy_reggroup_iter_next): New function.
1275 (gdbpy_new_reggroup_iterator): New function
1276 (gdbpy_initialize_registers): Register new types.
1277 (reggroup_iterator_object_type): Define new Python type.
1278 (gdbpy_reggroup_getset): New static global.
1279 (reggroup_object_type): Define new Python type.
1280 * python/python-internal.h
1281
1282 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1283
1284 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1285 * python/py-arch.c (archpy_registers): New function.
1286 (arch_object_methods): Add 'registers' method.
1287 * python/py-registers.c: New file.
1288 * python/python-internal.h
1289 (gdbpy_new_register_descriptor_iterator): Declare.
1290 (gdbpy_initialize_registers): Declare.
1291 * python/python.c (do_start_initialization): Call
1292 gdbpy_initialize_registers.
1293 * NEWS: Mention additions to the Python API.
1294
1295 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1296
1297 * NEWS: Mention new Python API method.
1298 * python/py-unwind.c (pending_framepy_architecture): New function.
1299 (pending_frame_object_methods): Add architecture method.
1300
1301 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1302
1303 * gdbarch.c: Regenerate.
1304 * gdbarch.h: Regenerate.
1305 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1306 (gdbarch_data): Use internal_error for the case where
1307 deprecated_set_gdbarch_data was originally needed.
1308 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1309 and use passed in obstack.
1310 (libunwind_frame_set_descr): Should no longer get back NULL from
1311 gdbarch_data.
1312 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1313 type.
1314 * user-regs.c (user_regs_init): Update parameters, and use passed
1315 in obstack.
1316 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1317 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1318
1319 2020-07-06 Tom de Vries <tdevries@suse.de>
1320
1321 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1322 End-Of-Sequence in lte_is_less_than.
1323 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1324 "gdb: Don't reorder line table entries too much when sorting".
1325
1326 2020-07-06 Tom de Vries <tdevries@suse.de>
1327
1328 PR tui/26205
1329 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1330
1331 2020-07-05 Tom de Vries <tdevries@suse.de>
1332
1333 PR build/26187
1334 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1335 std::uncaught_exceptions instead of deprecated
1336 std::uncaught_exception.
1337
1338 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1339
1340 * macroexp.h (macro_stringify): Return
1341 gdb::unique_xmalloc_ptr<char>.
1342 * macroexp.c (macro_stringify): Likewise.
1343 * macrotab.c (fixup_definition): Update.
1344
1345 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1346
1347 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1348 (lex_one_token): Update.
1349 * macroexp.c (struct macro_buffer) <release>: Return
1350 gdb::unique_xmalloc_ptr<char>.
1351 (macro_stringify): Update.
1352 (macro_expand): Update.
1353 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1354 * macroexp.h (macro_expand_next): Likewise.
1355
1356 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1357
1358 * macroexp.h (macro_lookup_ftype): Remove.
1359 (macro_expand, macro_expand_once, macro_expand_next): Remove
1360 lookup function parameters, add scope parameter.
1361 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1362 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1363 * macroscope.h (standard_macro_lookup): Change parameter type
1364 to macro_scope.
1365 * macroscope.c (standard_macro_lookup): Likewise.
1366 * c-exp.y (lex_one_token): Update.
1367 * macrocmd.c (macro_expand_command): Likewise.
1368 (macro_expand_once_command): Likewise.
1369
1370 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1371
1372 * inf-loop.c (inferior_event_handler): Remove client_data param.
1373 * inf-loop.h (inferior_event_handler): Likewise.
1374 * infcmd.c (step_1): Adjust.
1375 * infrun.c (proceed): Adjust.
1376 (fetch_inferior_event): Remove client_data param.
1377 (infrun_async_inferior_event_handler): Adjust.
1378 * infrun.h (fetch_inferior_event): Remove `void *` param.
1379 * linux-nat.c (handle_target_event): Adjust.
1380 * record-btrace.c (record_btrace_handle_async_inferior_event):
1381 Adjust.
1382 * record-full.c (record_full_async_inferior_event_handler):
1383 Adjust.
1384 * remote.c (remote_async_inferior_event_handler): Adjust.
1385
1386 2020-07-01 Tom Tromey <tom@tromey.com>
1387
1388 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1389 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1390
1391 2020-07-01 Tom Tromey <tom@tromey.com>
1392
1393 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1394 tui_gen_win_info.
1395 (tui_win_info::make_window): Merge with
1396 tui_gen_win_info::make_window.
1397 (tui_win_info::make_visible): Move from tui_gen_win_info.
1398 * tui/tui-win.c (tui_win_info::max_width): Move from
1399 tui_gen_win_info.
1400 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1401 type.
1402 <window_factory>: Likewise.
1403 * tui/tui-layout.c (tui_win_info::resize): Move from
1404 tui_gen_win_info.
1405 (make_standard_window): Change return type.
1406 (get_locator_window, tui_get_window_by_name): Likewise.
1407 (tui_layout_window::apply): Remove a cast.
1408 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1409 (struct tui_win_info): Merge with tui_gen_win_info.
1410 (struct tui_gen_win_info): Remove.
1411
1412 2020-07-01 Tom Tromey <tom@tromey.com>
1413
1414 * tui/tui-stack.h (struct tui_locator_window): Derive from
1415 tui_win_info.
1416 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1417 <can_box>: New method.
1418
1419 2020-07-01 Tom Tromey <tom@tromey.com>
1420
1421 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1422
1423 2020-07-01 Tom Tromey <tom@tromey.com>
1424
1425 * tui/tui-regs.c (tui_data_window::display_registers_from)
1426 (tui_data_window::display_registers_from)
1427 (tui_data_window::first_data_item_displayed)
1428 (tui_data_window::delete_data_content_windows): Update.
1429 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1430 Remove.
1431 (tui_data_window::check_register_values): Update.
1432 (tui_data_item_window::rerender): Add parameters. Update.
1433 (tui_data_item_window::refresh_window): Remove.
1434 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1435 virtual.
1436 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1437 tui_gen_win_info.
1438 <refresh_window, max_height, min_height>: Remove.
1439 <rerender>: Add parameters.
1440 <x, y, visible>: New members.
1441 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1442 <m_item_width>: New member.
1443
1444 2020-07-01 Tom Tromey <tom@tromey.com>
1445
1446 * tui/tui-regs.c (tui_data_window::show_register_group)
1447 (tui_data_window::check_register_values): Update.
1448 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1449 from item_no.
1450
1451 2020-07-01 Tom Tromey <tom@tromey.com>
1452
1453 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1454 useless "if".
1455
1456 2020-07-01 Tom Tromey <tom@tromey.com>
1457
1458 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1459 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1460
1461 2020-07-01 Tom Tromey <tom@tromey.com>
1462
1463 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1464 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1465 (struct tui_line_or_address): Move from tui-data.h.
1466 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1467 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1468 (tui_cmd_window, tui_source_window_base, tui_source_window)
1469 (tui_disasm_window): Don't declare.
1470 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1471 to tui-winsource.h.
1472 (SINGLE_KEY): Move to tui-stack.c.
1473
1474 2020-07-01 Tom Tromey <tom@tromey.com>
1475
1476 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1477 std::string.
1478 * tui/tui-regs.c (class tab_expansion_file): New.
1479 (tab_expansion_file::write): New method.
1480 (tui_register_format): Change return type. Use
1481 tab_expansion_file.
1482 (tui_get_register, tui_data_window::display_registers_from)
1483 (tui_data_item_window::rerender): Update.
1484 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1485 * tui/tui-io.c (tui_expand_tabs): Remove.
1486
1487 2020-07-01 Tom Tromey <tom@tromey.com>
1488
1489 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1490
1491 2020-07-01 Fangrui Song <maskray@google.com>
1492
1493 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1494
1495 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1496
1497 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1498 forms for DW_AT_associated and DW_AT_allocated attributes,
1499 which is already checked in function attr_to_dynamic_prop.
1500
1501 2020-06-30 Tom Tromey <tromey@adacore.com>
1502
1503 * dwarf2/read.c (quirk_rust_enum): Correctly call
1504 alloc_rust_variant for default-less enum.
1505
1506 2020-06-30 Tom Tromey <tromey@adacore.com>
1507
1508 PR build/26183:
1509 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1510 gdb::to_string.
1511
1512 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1513
1514 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1515 * gdbarch.h: Re-generate.
1516
1517 2020-06-28 Tom Tromey <tom@tromey.com>
1518
1519 * command.h (cmd_types): Remove.
1520 (cmd_type): Don't declare.
1521 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1522 typedef.
1523 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1524 * cli/cli-decode.c (cmd_type): Remove.
1525
1526 2020-06-27 Pedro Alves <palves@redhat.com>
1527
1528 * fork-child.c (prefork_hook): Adjust.
1529 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1530 Delete.
1531 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1532 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1533 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1534 Remove declarations.
1535 (struct inferior) <set_tty, tty>: New methods.
1536 (struct inferior) <terminal>: Rename to ...
1537 (struct inferior) <m_terminal>: ... this and make private.
1538 * main.c (captured_main_1): Adjust.
1539 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1540 (mi_cmd_inferior_tty_show): Adjust.
1541 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1542 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1543
1544 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1545
1546 * configure.ac: Add --enable-libctf: handle --disable-static
1547 properly.
1548 * acinclude.m4: sinclude ../config/enable.m4.
1549 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1550 (LIBCTF): Substitute in.
1551 (CTF_DEPS): New, likewise.
1552 (CLIBS): libctf needs symbols from libbfd: move earlier.
1553 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1554 flags.
1555 * ctfread.c: Surround in ENABLE_LIBCTF.
1556 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1557 * configure: Regenerate.
1558 * config.in: Likewise.
1559
1560 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1561
1562 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1563
1564 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1565
1566 * inferior.h (struct inferior) <terminal>: Change type to
1567 gdb::unique_xmalloc_ptr<char>.
1568 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1569 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1570 field, adjust to unique pointer.
1571 (get_inferior_io_terminal): Adjust to unique pointer.
1572
1573 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1574
1575 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1576 registers, not just the known core set of registers.
1577
1578 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1579
1580 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1581 fflags, frm, and fcsr registers.
1582 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1583 restore groups.
1584 (riscv_tdesc_unknown_reg): New function.
1585 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1586 tdesc_use_registers.
1587 * riscv-tdep.h (struct gdbarch_tdep): Add
1588 unknown_csrs_first_regnum, unknown_csrs_count,
1589 duplicate_fflags_regnum, duplicate_frm_regnum, and
1590 duplicate_fcsr_regnum fields.
1591
1592 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1593
1594 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1595 callback, use the callback (when not null) to help number unknown
1596 registers.
1597 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1598 (tdesc_use_registers): Add extra parameter to declaration.
1599
1600 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1601
1602 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1603 in the file.
1604 (class riscv_pending_register_alias): Likewise.
1605 (riscv_register_feature::register_info): Change 'required_p' field
1606 to 'required', and change its type. Add 'check' member function.
1607 (riscv_register_feature::register_info::check): Define new member
1608 function.
1609 (riscv_xreg_feature): Change initialisation of 'required' field.
1610 (riscv_freg_feature): Likewise.
1611 (riscv_virtual_feature): Likewise.
1612 (riscv_csr_feature): Likewise.
1613 (riscv_check_tdesc_feature): Take extra parameter, the csr
1614 tdesc_feature, rewrite the function to use the new
1615 riscv_register_feature::register_info::check function.
1616 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1617
1618 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1619
1620 * features/Makefile: Remove all references to the deleted files
1621 below.
1622 * features/riscv/32bit-csr.c: Deleted.
1623 * features/riscv/32bit-csr.xml: Deleted.
1624 * features/riscv/64bit-csr.c: Deleted.
1625 * features/riscv/64bit-csr.xml: Deleted.
1626 * features/riscv/rebuild-csr-xml.sh: Deleted.
1627
1628 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1629
1630 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1631 whitespace error for declaration of names member variable.
1632 (struct riscv_register_feature): Add new prefer_first_name member
1633 variable, and fix whitespace error in declaration of registers.
1634 (riscv_xreg_feature): Initialize prefer_first_name field.
1635 (riscv_freg_feature): Likewise.
1636 (riscv_virtual_feature): Likewise.
1637 (riscv_csr_feature): Likewise.
1638 (riscv_register_name): Expand on comments. Remove register name
1639 modifications for CSR and virtual registers.
1640
1641 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1642
1643 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1644 errors.
1645
1646 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1647
1648 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1649 riscv-opc.h.
1650 (class riscv_pending_register_alias): New class.
1651 (riscv_check_tdesc_feature): Take vector of pending aliases and
1652 populate it as appropriate.
1653 (riscv_setup_register_aliases): Delete.
1654 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1655 to riscv_check_tdesc_feature in all cases. Use the vector to
1656 create the register aliases.
1657
1658 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1659
1660 * sol2-tdep.c (sol2_static_transform_name): Remove.
1661 (sol2_init_abi): Don't register it.
1662 * gdbarch.sh (static_transform_name): Remove.
1663 * gdbarch.c, gdbarch.h: Regenerate.
1664
1665 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1666 gdbarch_static_transform_name.
1667 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1668 * stabsread.c (define_symbol) <'X'>: Remove.
1669 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1670 handling.
1671 <'V'>: Likewise.
1672 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1673 <'S'>: Remove call to gdbarch_static_transform_name.
1674
1675 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1676
1677 * procfs.c (procfs_pre_trace): New function.
1678 (procfs_target::create_inferior): Pass it to fork_inferior.
1679
1680 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1681
1682 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1683 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1684 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1685 sol2-tdep.o, sparc-sol2-tdep.o.
1686 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1687 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1688 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1689 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1690
1691 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1692
1693 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1694 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1695 Call sol2_init_abi.
1696 Remove calls to set_gdbarch_skip_solib_resolver,
1697 set_gdbarch_core_pid_to_str.
1698 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1699 (i386_sol2_static_transform_name): Remove.
1700 (i386_sol2_init_abi): Call sol2_init_abi.
1701 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1702 set_gdbarch_static_transform_name,
1703 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1704 Use sol2_sigtramp_p.
1705 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1706 (sol2_sigtramp_p): New function.
1707 (sol2_static_transform_name): New function.
1708 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1709 (sol2_init_abi): New function.
1710 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1711 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1712 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1713 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1714 (sparc_sol2_static_transform_name): Remove.
1715 (sparc32_sol2_init_abi): Call sol2_init_abi.
1716 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1717 set_gdbarch_static_transform_name,
1718 set_gdbarch_skip_solib_resolver,
1719 set_gdbarch_core_pid_to_str.
1720 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1721 (sparc_sol2_static_transform_name): Remove
1722 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1723 call sol2_sigtramp_p.
1724 (sparc64_sol2_init_abi): Call sol2_init_abi.
1725 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1726 set_gdbarch_static_transform_name,
1727 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1728
1729 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1730
1731 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1732 * exec.c (validate_exec_file): If from_tty, set both
1733 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1734 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1735 and from_tty, unconditionally ask a confirmation.
1736
1737 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1738
1739 * target-descriptions.c (tdesc_architecture_name): Protect against
1740 NULL pointer dereference.
1741 (maint_print_xml_tdesc_cmd): New function.
1742 (_initialize_target_descriptions): Register new 'maint print
1743 xml-tdesc' command and give it the filename completer.
1744 * NEWS: Mention new 'maint print xml-tdesc' command.
1745
1746 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1747
1748 * target-descriptions.c (class tdesc_compatible_info): New class.
1749 (struct target_desc): Change type of compatible vector.
1750 (tdesc_compatible_p): Update for change in type of
1751 target_desc::compatible.
1752 (tdesc_compatible_info_list): New function.
1753 (tdesc_compatible_info_arch_name): New function.
1754 (tdesc_add_compatible): Update for change in type of
1755 target_desc::compatible.
1756 (print_c_tdesc::visit_pre): Likewise.
1757
1758 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1759
1760 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1761 whitespace to underscore.
1762 (maint_print_c_tdesc_cmd): Use fake filename for target
1763 descriptions that came from the target.
1764 (_initialize_target_descriptions): Add filename command completion
1765 for 'maint print c-tdesc'.
1766
1767 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1768
1769 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1770 lines.
1771
1772 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1773
1774 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1775 lines.
1776 (dwarf2_find_location_expression): Likewise.
1777 (call_site_parameter_matches): Likewise.
1778 (dwarf2_compile_expr_to_ax): Likewise.
1779 (disassemble_dwarf_expression): Likewise.
1780 (loclist_describe_location): Likewise.
1781
1782 2020-06-23 Pedro Alves <palves@redhat.com>
1783
1784 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1785 progspace-and-thread.h. Include scoped-mock-context.h instead.
1786 (register_to_value_test): Use scoped_mock_context.
1787 * regcache.c: Include "scoped-mock-context.h".
1788 (cooked_read_test): Don't error out if a target is already pushed.
1789 Use scoped_mock_context. Adjust.
1790 * scoped-mock-context.h: New file.
1791
1792 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1793
1794 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1795 initializer.
1796 (ada_language::is_string_type_p): New member function.
1797 * c-lang.c (c_language_data): Delete la_is_string_type_p
1798 initializer.
1799 (cplus_language_data): Likewise.
1800 (asm_language_data): Likewise.
1801 (minimal_language_data): Likewise.
1802 * d-lang.c (d_language_data): Likewise.
1803 * f-lang.c (f_is_string_type_p): Delete function, implementation
1804 moved to f_language::is_string_type_p.
1805 (f_language_data): Delete la_is_string_type_p initializer.
1806 (f_language::is_string_type_p): New member function,
1807 implementation from f_is_string_type_p.
1808 * go-lang.c (go_is_string_type_p): Delete function, implementation
1809 moved to go_language::is_string_type_p.
1810 (go_language_data): Delete la_is_string_type_p initializer.
1811 (go_language::is_string_type_p): New member function,
1812 implementation from go_is_string_type_p.
1813 * language.c (language_defn::is_string_type_p): Define new member
1814 function.
1815 (default_is_string_type_p): Make static, add comment copied from
1816 header file.
1817 (unknown_language_data): Delete la_is_string_type_p initializer.
1818 (unknown_language::is_string_type_p): New member function.
1819 (auto_language_data): Delete la_is_string_type_p initializer.
1820 (auto_language::is_string_type_p): New member function.
1821 * language.h (language_data): Delete la_is_string_type_p field.
1822 (language_defn::is_string_type_p): Declare new function.
1823 (default_is_string_type_p): Delete desclaration, move comment to
1824 definition.
1825 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1826 moved to m2_language::is_string_type_p.
1827 (m2_language_data): Delete la_is_string_type_p initializer.
1828 (m2_language::is_string_type_p): New member function,
1829 implementation from m2_is_string_type_p.
1830 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1831 initializer.
1832 * opencl-lang.c (opencl_language_data): Likewise.
1833 * p-lang.c (pascal_is_string_type_p): Delete function,
1834 implementation moved to pascal_language::is_string_type_p.
1835 (pascal_language_data): Delete la_is_string_type_p initializer.
1836 (pascal_language::is_string_type_p): New member function,
1837 implementation from pascal_is_string_type_p.
1838 * rust-lang.c (rust_is_string_type_p): Delete function,
1839 implementation moved to rust_language::is_string_type_p.
1840 (rust_language_data): Delete la_is_string_type_p initializer.
1841 (rust_language::is_string_type_p): New member function,
1842 implementation from rust_is_string_type_p.
1843 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1844 is_string_type_p.
1845
1846 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1847
1848 * ada-lang.c (ada_language_data): Delete la_print_typedef
1849 initializer.
1850 (ada_language::print_typedef): New member function.
1851 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1852 (cplus_language_data): Likewise.
1853 (asm_language_data): Likewise.
1854 (minimal_language_data): Likewise.
1855 * d-lang.c (d_language_data): Likewise.
1856 * f-lang.c (f_language_data): Likewise.
1857 (f_language::print_typedef): New member function.
1858 * go-lang.c (go_language_data): Delete la_print_typedef
1859 initializer.
1860 * language.c (language_defn::print_typedef): Define member
1861 function.
1862 (unknown_language_data): Delete la_print_typedef initializer.
1863 (unknown_language::print_typedef): New member function.
1864 (auto_language_data): Delete la_print_typedef initializer.
1865 (auto_language::print_typedef): New member function.
1866 * language.h (language_data): Delete la_print_typedef field.
1867 (language_defn::print_typedef): Declare new member function.
1868 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1869 (default_print_typedef): Delete declaration.
1870 * m2-lang.c (m2_language_data): Delete la_print_typedef
1871 initializer.
1872 (m2_language::print_typedef): New member function.
1873 * objc-lang.c (objc_language_data): Delete la_print_typedef
1874 initializer.
1875 * opencl-lang.c (opencl_language_data): Likewise.
1876 * p-lang.c (pascal_language_data): Likewise.
1877 (pascal_language::print_typedef): New member function.
1878 * rust-lang.c (rust_print_typedef): Delete function,
1879 implementation moved to rust_language::print_typedef.
1880 (rust_language): Delete la_print_typedef initializer.
1881 (rust_language::print_typedef): New member function,
1882 implementation from rust_print_typedef.
1883 * typeprint.c (default_print_typedef): Delete.
1884
1885 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1886
1887 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1888 (ada_language::printstr): New member function.
1889 * c-lang.c (c_language_data): Delete la_printstr initializer.
1890 (cplus_language_data): Likewise.
1891 (asm_language_data): Likewise.
1892 (minimal_language_data): Likewise.
1893 * d-lang.c (d_language_data): Likewise.
1894 * f-lang.c (f_printstr): Rename to f_language::printstr.
1895 (f_language_data): Delete la_printstr initializer.
1896 (f_language::printstr): New member function, implementation from
1897 f_printstr.
1898 * go-lang.c (go_language_data): Delete la_printstr initializer.
1899 * language.c (language_defn::printstr): Define new member
1900 function.
1901 (unk_lang_printstr): Delete.
1902 (unknown_language_data): Delete la_printstr initializer.
1903 (unknown_language::printstr): New member function.
1904 (auto_language_data): Delete la_printstr initializer.
1905 (auto_language::printstr): New member function.
1906 * language.h (language_data): Delete la_printstr field.
1907 (language_defn::printstr): Declare new member function.
1908 (LA_PRINT_STRING): Update call to printstr.
1909 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1910 (m2_language_data): Delete la_printstr initializer.
1911 (m2_language::printstr): New member function, implementation from
1912 m2_printstr.
1913 * objc-lang.c (objc_language_data): Delete la_printstr
1914 initializer.
1915 * opencl-lang.c (opencl_language_data): Likewise.
1916 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1917 (pascal_language_data): Delete la_printstr initializer.
1918 (pascal_language::printstr): New member function, implementation
1919 from pascal_printstr.
1920 * p-lang.h (pascal_printstr): Delete declaration.
1921 * rust-lang.c (rust_printstr): Update header comment.
1922 (rust_language_data): Delete la_printstr initializer.
1923 (rust_language::printstr): New member function.
1924
1925 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1926
1927 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1928 (ada_language::printchar): New member function.
1929 * c-lang.c (c_language_data): Delete la_printchar initializer.
1930 (cplus_language_data): Likewise.
1931 (asm_language_data): Likewise.
1932 (minimal_language_data): Likewise.
1933 * d-lang.c (d_language_data): Likewise.
1934 * f-lang.c (f_printchar): Rename to f_language::printchar.
1935 (f_language_data): Delete la_printchar initializer.
1936 (f_language::printchar): New member function, implementation from
1937 f_printchar.
1938 * go-lang.c (go_language_data): Delete la_printchar initializer.
1939 * language.c (unk_lang_printchar): Delete.
1940 (language_defn::printchar): Define new member function.
1941 (unknown_language_data): Delete la_printchar initializer.
1942 (unknown_language::printchar): New member function.
1943 (auto_language_data): Delete la_printchar initializer.
1944 (auto_language::printchar): New member function.
1945 * language.h (language_data): Delete la_printchar field.
1946 (language_defn::printchar): Declare new member function.
1947 (LA_PRINT_CHAR): Update call to printchar.
1948 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1949 (m2_language::printchar): New member function.
1950 * objc-lang.c (objc_language_data): Delete la_printchar
1951 initializer.
1952 * opencl-lang.c (opencl_language_data): Likewise.
1953 * p-lang.c (pascal_language_data): Delete la_printchar
1954 initializer.
1955 (pascal_language::printchar): New member function.
1956 * rust-lang.c (rust_printchar): Rename to
1957 rust_language::printchar.
1958 (rust_language_data): Delete la_printchar initializer.
1959 (rust_language::printchar): New member function, implementation
1960 from rust_printchar.
1961
1962 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1963
1964 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1965 (ada_language_data): Delete la_emitchar initializer.
1966 (ada_language::emitchar): New member function, implementation from
1967 emit_char.
1968 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1969 (cplus_language_data): Likewise.
1970 (asm_language_data): Likewise.
1971 (minimal_language_data): Likewise.
1972 * d-lang.c (d_language_data): Likewise.
1973 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1974 (f_language_data): Delete la_emitchar initializer.
1975 (f_language::emitchar): New member function, implementation from
1976 f_emit_char.
1977 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1978 * language.c (unk_lang_emit_char): Delete.
1979 (language_defn::emitchar): New member function definition.
1980 (unknown_language_data): Delete la_emitchar initializer.
1981 (unknown_language::emitchar): New member function.
1982 (auto_language_data): Delete la_emitchar initializer.
1983 (auto_language::emitchar): New member function.
1984 * language.h (language_data): Delete la_emitchar field.
1985 (language_defn::emitchar): New member field declaration.
1986 (LA_EMIT_CHAR): Update call to emitchar.
1987 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1988 (m2_language_data): Delete la_emitchar initializer.
1989 (m2_language::emitchar): New member function, implementation from
1990 m2_emit_char.
1991 * objc-lang.c (objc_language_data): Delete la_emitchar
1992 initializer.
1993 * opencl-lang.c (opencl_language_data): Likewise.
1994 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1995 (pascal_language_data): Delete la_emitchar initializer.
1996 (pascal_language::emitchar): New member function, implementation
1997 from pascal_emit_char.
1998 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1999 (rust_language_data): Delete la_emitchar initializer.
2000 (rust_language::emitchar): New member function, implementation
2001 from rust_emitchar.
2002
2003 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2004
2005 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2006 (ada_language_data): Delete la_post_parser initializer.
2007 (ada_language::post_parser): New member function.
2008 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2009 (cplus_language_data): Likewise.
2010 (asm_language_data): Likewise.
2011 (minimal_language_data): Likewise.
2012 * d-lang.c (d_language_data): Likewise.
2013 * f-lang.c (f_language_data): Likewise.
2014 * go-lang.c (go_language_data): Likewise.
2015 * language.c (unknown_language_data): Likewise.
2016 (auto_language_data): Likewise.
2017 * language.h (language_data): Delete la_post_parser field.
2018 (language_defn::post_parser): New member function.
2019 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2020 * objc-lang.c (objc_language_data): Likewise.
2021 * opencl-lang.c (opencl_language_data): Likewise.
2022 * p-lang.c (pascal_language_data): Likewise.
2023 * parse.c (parse_exp_in_context): Update call to post_parser.
2024 (null_post_parser): Delete definition.
2025 * parser-defs.h (null_post_parser): Delete declaration.
2026 * rust-lang.c (rust_language_data): Delete la_post_parser
2027 initializer.
2028
2029 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2030
2031 * ada-lang.c (parse): Rename to ada_language::parser.
2032 (ada_language_data): Delete la_parser initializer.
2033 (ada_language::parser): New member function, implementation from
2034 parse.
2035 * c-lang.c (c_language_data): Delete la_parser initializer.
2036 (cplus_language_data): Likewise.
2037 (asm_language_data): Likewise.
2038 (minimal_language_data): Likewise.
2039 * d-lang.c (d_language_data): Likewise.
2040 (d_language::parser): New member function.
2041 * f-lang.c (f_language_data): Delete la_parser initializer.
2042 (f_language::parser): New member function.
2043 * go-lang.c (go_language_data): Delete la_parser initializer.
2044 (go_language::parser): New member function.
2045 * language.c (unk_lang_parser): Delete.
2046 (language_defn::parser): Define new member function.
2047 (unknown_language_data): Delete la_parser initializer.
2048 (unknown_language::parser): New member function.
2049 (auto_language_data): Delete la_parser initializer.
2050 (auto_language::parser): New member function.
2051 * language.h (language_data): Delete la_parser field.
2052 (language_defn::parser): Declare new member function.
2053 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2054 (m2_language::parser): New member function.
2055 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2056 * opencl-lang.c (opencl_language_data): Likewise.
2057 * p-lang.c (pascal_language_data): Likewise.
2058 (pascal_language::parser): New member function.
2059 * parse.c (parse_exp_in_context): Update call to parser.
2060 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2061 (rust_language::parser): New member function.
2062
2063 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2064
2065 * top.c (print_gdb_configuration): Print --with-python-libdir
2066 configuration value.
2067
2068 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2069
2070 * NEWS: Mention change to the alias command.
2071
2072 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2073
2074 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2075 (alias_command_completer)
2076 (make_alias_options_def_group): New functions.
2077 (alias_opts, alias_option_defs): New struct and array.
2078 (alias_usage_error): Update usage.
2079 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2080 Use option framework.
2081 (_initialize_cli_cmds): Update alias command help.
2082 Update aliases command help.
2083 (show_user):
2084 Add NULL for new default_args lookup_cmd argument.
2085 (valid_command_p): Rename to validate_aliased_command.
2086 Add NULL for new default_args lookup_cmd argument. Verify that the
2087 aliased_command has no default args.
2088 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2089 (lookup_cmd_1, lookup_cmd): New argument default_args.
2090 (add_alias_cmd):
2091 Add NULL for new default_args lookup_cmd argument.
2092 (print_help_for_command): Show default args under the layout
2093 alias some_alias = some_aliased_cmd some_alias_default_arg.
2094 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2095 xfree default_args in destructor.
2096 * cli/cli-script.c (process_next_line, do_define_command):
2097 Add NULL for new default_args lookup_cmd argument.
2098 * command.h: Declare new default_args argument in lookup_cmd
2099 and lookup_cmd_1.
2100 * completer.c (complete_line_internal_1):
2101 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2102 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2103 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2104 Likewise.
2105 * infcmd.c (_initialize_infcmd): Likewise.
2106 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2107 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2108 * python/py-param.c (add_setshow_generic): Likewise.
2109 * remote.c (_initialize_remote): Likewise.
2110 * top.c (execute_command): Prepend default_args if command has some.
2111 (set_verbose):
2112 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2113 * tracepoint.c (validate_actionline, encode_actions_1):
2114 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2115
2116 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2117
2118 * jit.c (jit_read_descriptor): Use bool as the return type.
2119 (jit_breakpoint_re_set_internal): Use bool as the return type.
2120 Invert the return value logic; return true if the jit breakpoint
2121 has been successfully initialized.
2122 (jit_inferior_init): Update the call to
2123 jit_breakpoint_re_set_internal.
2124
2125 2020-06-22 Pedro Alves <palves@redhat.com>
2126
2127 PR gdb/25939
2128 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2129 Use the current inferior instead. Don't return
2130 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2131 wait again.
2132 * sol-thread.c (sol_thread_target::wait): Don't reference
2133 inferior_ptid.
2134 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2135 (sol_update_thread_list_callback): Use the current inferior's pid
2136 instead of inferior_ptid.
2137
2138 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2139
2140 * procfs.c: Cleanup many comments.
2141
2142 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2143 (AFTER_WATCHFLAG): Replace by value.
2144
2145 (MAIN_PROC_NAME_FORMAT): Inline ...
2146 (create_procinfo): ... here.
2147
2148 (procfs_debug_inferior): Remove SYS_exec handling.
2149 (syscall_is_exec): Likewise.
2150 (procfs_set_exec_trap): Likewise.
2151
2152 (syscall_is_lwp_exit): Inline in callers.
2153 (syscall_is_exit): Likewise.
2154 (syscall_is_exec): Likewise.
2155 (syscall_is_lwp_create): Likewise.
2156
2157 (invalidate_cache): Remove #if 0 code.
2158
2159 (make_signal_thread_runnable): Remove.
2160 (procfs_target::resume): Remove #if 0 code.
2161
2162 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2163
2164 PR gdb/25939
2165 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2166 call ...
2167 (procfs_target::create_inferior): ... here.
2168
2169 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2170
2171 * exec.c (validate_exec_file): Ensure the build-id is up to
2172 date by calling reopen_exec_file (that checks file timestamp
2173 to decide to re-read the file).
2174
2175 2020-06-18 Pedro Alves <palves@redhat.com>
2176
2177 PR gdb/25412
2178 * gdbthread.h (delete_thread, delete_thread_silent)
2179 (find_thread_ptid): Update comments.
2180 * thread.c (current_thread_): New global.
2181 (is_current_thread): Move higher, and reimplement.
2182 (inferior_thread): Reimplement.
2183 (set_thread_exited): Use bool. Add assertions.
2184 (add_thread_silent): Simplify thread-reuse handling by always
2185 calling delete_thread.
2186 (delete_thread): Remove intro comment.
2187 (find_thread_ptid): Skip exited threads.
2188 (switch_to_thread_no_regs): Write to current_thread_.
2189 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2190 INFERIOR_PTID. Clear current_thread_.
2191
2192 2020-06-18 Pedro Alves <palves@redhat.com>
2193
2194 * aix-thread.c (pd_update): Use switch_to_thread.
2195
2196 2020-06-18 Pedro Alves <palves@redhat.com>
2197
2198 * ravenscar-thread.c (ravenscar_thread_target): Update.
2199 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2200 (ravenscar_thread_target::add_active_thread): ... this. Don't
2201 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2202 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2203
2204 2020-06-18 Pedro Alves <palves@redhat.com>
2205
2206 * nat/windows-nat.c (current_windows_thread): Remove.
2207 * nat/windows-nat.h (current_windows_thread): Remove.
2208 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2209 Adjust.
2210 (display_selectors): Adjust to fetch the current
2211 windows_thread_info based on inferior_ptid.
2212 (fake_create_process): No longer write to current_windows_thread.
2213 (windows_nat_target::get_windows_debug_event):
2214 Don't set inferior_ptid or current_windows_thread.
2215 (windows_nat_target::wait): Adjust to not rely on
2216 current_windows_thread.
2217 (do_initial_windows_stuff): Now a method of windows_nat_target.
2218 Switch to the last_ptid thread.
2219 (windows_nat_target::attach): Adjust.
2220 (windows_nat_target::detach): Use switch_to_no_thread instead of
2221 writing to inferior_ptid directly.
2222 (windows_nat_target::create_inferior): Adjust.
2223
2224 2020-06-18 Pedro Alves <palves@redhat.com>
2225
2226 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2227
2228 2020-06-18 Pedro Alves <palves@redhat.com>
2229
2230 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2231 after creating it, instead of writing to inferior_ptid. Don't
2232 write to inferior_ptid.
2233
2234 2020-06-18 Pedro Alves <palves@redhat.com>
2235
2236 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2237
2238 2020-06-18 Pedro Alves <palves@redhat.com>
2239
2240 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2241 it, instead of writing to inferior_ptid.
2242
2243 2020-06-18 Pedro Alves <palves@redhat.com>
2244
2245 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2246 to inferior_ptid.
2247
2248 2020-06-18 Pedro Alves <palves@redhat.com>
2249
2250 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2251 instead of writing to inferior_ptid directly.
2252
2253 2020-06-18 Pedro Alves <palves@redhat.com>
2254
2255 * corelow.c (core_target::close): Use switch_to_no_thread instead
2256 of writing to inferior_ptid directly.
2257 (add_to_thread_list, core_target_open): Use switch_to_thread
2258 instead of writing to inferior_ptid directly.
2259
2260 2020-06-18 Pedro Alves <palves@redhat.com>
2261
2262 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2263 inferior_ptid.
2264 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2265 inferior_ptid.
2266 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2267 inferior_ptid directly.
2268 (darwin_nat_target::init_thread_list): Switch to thread, instead
2269 of writing to inferior_ptid.
2270 (darwin_nat_target::attach): Don't write to inferior_ptid.
2271 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2272
2273 2020-06-18 Pedro Alves <palves@redhat.com>
2274
2275 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2276 thread.
2277 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2278 Instead use switch_to_thread.
2279 (gnu_nat_target::detach): Use switch_to_no_thread
2280 instead of writing to inferior_ptid directly. Used passed-in
2281 inferior instead of looking up the inferior by pid.
2282
2283 2020-06-18 Pedro Alves <palves@redhat.com>
2284
2285 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2286 inferior_ptid.
2287
2288 2020-06-18 Pedro Alves <palves@redhat.com>
2289
2290 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2291 inferior_ptid.
2292 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2293 thread.
2294 (nto_procfs_target::detach): Avoid referencing
2295 inferior_ptid. Use switch_to_no_thread instead of writing to
2296 inferior_ptid directly.
2297 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2298 instead of writing to inferior_ptid directly.
2299 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2300 to thread.
2301
2302 2020-06-18 Pedro Alves <palves@redhat.com>
2303
2304 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2305 after creating it, instead of writing to inferior_ptid.
2306 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2307 to inferior_ptid directly.
2308 (gdbsim_target::wait): Don't write to inferior_ptid.
2309
2310 2020-06-18 Pedro Alves <palves@redhat.com>
2311
2312 * remote.c (remote_target::remote_notice_new_inferior): Use
2313 switch_to_thread instead of writing to inferior_ptid directly.
2314 (remote_target::add_current_inferior_and_thread): Use
2315 switch_to_no_thread instead of writing to inferior_ptid directly.
2316 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2317 and switch_to_thread instead of using set_current_inferior or
2318 writing to inferior_ptid directly.
2319
2320 2020-06-18 Pedro Alves <palves@redhat.com>
2321
2322 * tracectf.c (ctf_target_open): Switch to added thread instead of
2323 writing to inferior_ptid directly.
2324 (ctf_target::close): Use switch_to_no_thread instead of writing to
2325 inferior_ptid directly.
2326
2327 2020-06-18 Pedro Alves <palves@redhat.com>
2328
2329 * tracefile-tfile.c (tfile_target_open): Don't write to
2330 inferior_ptid directly, instead switch to added thread.
2331 (tfile_target::close): Use switch_to_no_thread instead of writing
2332 to inferior_ptid directly.
2333
2334 2020-06-18 Pedro Alves <palves@redhat.com>
2335
2336 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2337 (procfs_target::detach): Use switch_to_no_thread
2338 instead of writing to inferior_ptid directly.
2339 (do_attach): Change return type to void. Switch to the added
2340 thread.
2341 (procfs_target::create_inferior): Switch to the added thread.
2342 (procfs_do_thread_registers): Don't write to inferior_ptid.
2343
2344 2020-06-18 Pedro Alves <palves@redhat.com>
2345
2346 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2347 of writing to inferior_ptid.
2348 (scoped_restore_exited_inferior): Delete.
2349 (handle_vfork_child_exec_or_exit): Simplify using
2350 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2351 instead of writing to inferior_ptid.
2352 (THREAD_STOPPED_BY): Delete.
2353 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2354 (thread_stopped_by_hw_breakpoint): Delete.
2355 (save_waitstatus): Use
2356 scoped_restore_current_thread+switch_to_thread, and call
2357 target_stopped_by_watchpoint instead of
2358 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2359 instead of thread_stopped_by_sw_breakpoint, and
2360 target_stopped_by_hw_breakpoint instead of
2361 thread_stopped_by_hw_breakpoint.
2362 (handle_inferior_event)
2363 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2364 inferior_ptid directly, nor
2365 set_current_inferior/set_current_program_space. Use
2366 switch_to_thread / switch_to_inferior_no_thread instead.
2367
2368 2020-06-18 Pedro Alves <palves@redhat.com>
2369
2370 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2371 instead of writing to inferior_ptid.
2372
2373 2020-06-18 Pedro Alves <palves@redhat.com>
2374
2375 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2376 added thread.
2377 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2378 to the added thread.
2379 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2380 instead of writing to inferior_ptid.
2381
2382 2020-06-18 Pedro Alves <palves@redhat.com>
2383
2384 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2385 (register_to_value_test): Mock a program_space too. Heap-allocate
2386 the address space. Don't write to inferior_ptid. Use
2387 switch_to_thread instead.
2388
2389 2020-06-18 Pedro Alves <palves@redhat.com>
2390
2391 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2392 Delete.
2393 (find_signalled_thread()): New, factored out from
2394 linux_make_corefile_notes and adjusted to handle exited threads.
2395 (linux_make_corefile_notes): Adjust to use the new
2396 find_signalled_thread.
2397
2398 2020-06-18 Pedro Alves <palves@redhat.com>
2399
2400 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2401 of saving/restoring inferior_ptid.
2402
2403 2020-06-17 Tom Tromey <tom@tromey.com>
2404
2405 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2406 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2407 declare.
2408 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2409
2410 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2411
2412 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2413 of partial symtabs.
2414
2415 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2416
2417 * regformats/reg-arm.dat: Remove.
2418 * regformats/reg-bfin.dat: Remove.
2419 * regformats/reg-cris.dat: Remove.
2420 * regformats/reg-crisv32.dat: Remove.
2421 * regformats/reg-m32r.dat: Remove.
2422 * regformats/reg-tilegx.dat: Remove.
2423 * regformats/reg-tilegx32.dat: Remove.
2424
2425 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2426
2427 * features/Makefile (WHICH): Remove arm files.
2428 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2429 * regformats/arm/arm-with-neon.dat: Remove.
2430 * regformats/arm/arm-with-vfpv2.dat: Remove.
2431 * regformats/arm/arm-with-vfpv3.dat: Remove.
2432
2433 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2434
2435 * features/Makefile (XMLTOC): Remove rx.xml.
2436
2437 2020-06-17 Pedro Alves <palves@redhat.com>
2438
2439 * gdbthread.h (thread_control_state) <trap_expected> Update
2440 comments.
2441
2442 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2443
2444 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2445 ada_language::lookup_symbol_nonlocal.
2446 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2447 (ada_language::lookup_symbol_nonlocal): New member function,
2448 implementation from ada_lookup_symbol_nonlocal.
2449 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2450 initializer.
2451 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2452 initializer.
2453 (cplus_language::lookup_symbol_nonlocal): New member function.
2454 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2455 (minimal_language_data) Likewise.
2456 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2457 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2458 initializer.
2459 (d_language::lookup_symbol_nonlocal): New member function.
2460 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2461 initializer.
2462 (f_language::lookup_symbol_nonlocal): New member function.
2463 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2464 initializer.
2465 * language.c (unknown_language_data): Likewise.
2466 (auto_language_data): Likewise.
2467 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2468 field.
2469 (language_defn::lookup_symbol_nonlocal): New member function.
2470 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2471 initializer.
2472 * objc-lang.c (objc_language_data): Likewise.
2473 * opencl-lang.c (opencl_language_data): Likewise.
2474 * p-lang.c (pascal_language_data): Likewise.
2475 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2476 rust_language::lookup_symbol_nonlocal.
2477 (rust_language_data): Delete la_lookup_symbol_nonlocal
2478 initializer.
2479 (rust_language::lookup_symbol_nonlocal): New member function,
2480 implementation from rust_lookup_symbol_nonlocal.
2481 * symtab.c (lookup_symbol_aux): Update call to
2482 lookup_symbol_nonlocal.
2483 (basic_lookup_symbol_nonlocal): Rename to...
2484 (language_defn::lookup_symbol_nonlocal): ...this, and update
2485 header comment. Remove language_defn parameter, and replace with
2486 uses of `this'.
2487 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2488
2489 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2490
2491 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2492 initializer.
2493 (ada_language::value_print_inner): New member function.
2494 * c-lang.c (c_language_data): Delete la_value_print_inner
2495 initializer.
2496 (cplus_language_data): Likewise.
2497 (asm_language_data): Likewise.
2498 (minimal_language_data): Likewise.
2499 * d-lang.c (d_language_data): Likewise.
2500 (d_language::value_print_inner): New member function.
2501 * f-lang.c (f_language_data): Delete la_value_print_inner
2502 initializer.
2503 (f_language::value_print_inner): New member function.
2504 * f-lang.h (f_value_print_innner): Rename to...
2505 (f_value_print_inner): ...this (note spelling of 'inner').
2506 * f-valprint.c (f_value_print_innner): Rename to...
2507 (f_value_print_inner): ...this (note spelling of 'inner').
2508 * go-lang.c (go_language_data): Delete la_value_print_inner
2509 initializer.
2510 (go_language::value_print_inner): New member function.
2511 * language.c (language_defn::value_print_inner): Define new member
2512 function.
2513 (unk_lang_value_print_inner): Delete.
2514 (unknown_language_data): Delete la_value_print_inner initializer.
2515 (unknown_language::value_print_inner): New member function.
2516 (auto_language_data): Delete la_value_print_inner initializer.
2517 (auto_language::value_print_inner): New member function.
2518 * language.h (language_data): Delete la_value_print_inner field.
2519 (language_defn::value_print_inner): Delcare new member function.
2520 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2521 initializer.
2522 (m2_language::value_print_inner): New member function.
2523 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2524 initializer.
2525 * opencl-lang.c (opencl_language_data): Likewise.
2526 * p-lang.c (pascal_language_data): Likewise.
2527 (pascal_language::value_print_inner): New member function.
2528 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2529 initializer.
2530 (rust_language::value_print_inner): New member function.
2531 * valprint.c (do_val_print): Update call to value_print_inner.
2532
2533 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2534
2535 * ada-lang.c (ada_language_data): Delete la_value_print
2536 initializer.
2537 (ada_language::value_print): New member function.
2538 * c-lang.c (c_language_data): Delete la_value_print initializer.
2539 (cplus_language_data): Likewise.
2540 (asm_language_data): Likewise.
2541 (minimal_language_data): Likewise.
2542 * d-lang.c (d_language_data): Likewise.
2543 * f-lang.c (f_language_data): Likewise.
2544 * go-lang.c (go_language_data): Likewise.
2545 * language.c (unk_lang_value_print): Delete.
2546 (language_defn::value_print): Define new member function.
2547 (unknown_language_data): Delete la_value_print initializer.
2548 (unknown_language::value_print): New member function.
2549 (auto_language_data): Delete la_value_print initializer.
2550 (auto_language::value_print): New member function.
2551 * language.h (language_data): Delete la_value_print field.
2552 (language_defn::value_print): Declare new member function.
2553 (LA_VALUE_PRINT): Update call to value_print.
2554 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2555 * objc-lang.c (objc_language_data): Likewise.
2556 * opencl-lang.c (opencl_language_data): Likewise.
2557 * p-lang.c (pascal_language_data): Likewise.
2558 (pascal_language::value_print): New member function.
2559 * rust-lang.c (rust_language_data): Delete la_value_print
2560 initializer.
2561
2562 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2563
2564 * ada-lang.c (ada_watch_location_expression): Rename to
2565 ada_language::watch_location_expression.
2566 (ada_language_data): Delete la_watch_location_expression
2567 initializer.
2568 (ada_language::watch_location_expression): New member function,
2569 implementation from ada_watch_location_expression.
2570 * breakpoint.c (watch_command_1): Update call to
2571 watch_location_expression.
2572 * c-lang.c (c_watch_location_expression): Rename to
2573 language_defn::watch_location_expression.
2574 (c_language_data): Delete la_watch_location_expression
2575 initializer.
2576 (cplus_language_data): Likewise.
2577 (asm_language_data): Likewise.
2578 (minimal_language_data): Likewise.
2579 * c-lang.h (c_watch_location_expression): Delete declaration.
2580 * d-lang.c (d_language_data): Delete la_watch_location_expression
2581 initializer.
2582 * f-lang.c (f_language_data): Likewise.
2583 * go-lang.c (go_language_data): Likewise.
2584 * language.c (language_defn::watch_location_expression): Member
2585 function implementation from c_watch_location_expression.
2586 (unknown_language_data): Delete la_watch_location_expression
2587 initializer.
2588 (auto_language_data): Likewise.
2589 * language.h (language_data): Delete la_watch_location_expression
2590 field.
2591 (language_defn::watch_location_expression): Declare new member
2592 function.
2593 * m2-lang.c (m2_language_data): Delete
2594 la_watch_location_expression initializer.
2595 * objc-lang.c (objc_language_data): Likewise.
2596 * opencl-lang.c (opencl_language_data): Likewise.
2597 * p-lang.c (pascal_language_data): Likewise.
2598 * rust-lang.c (rust_watch_location_expression): Rename to
2599 rust_language::watch_location_expression.
2600 (rust_language_data): Delete la_watch_location_expression
2601 initializer.
2602 (rust_language::watch_location_expression): New member function,
2603 implementation from rust_watch_location_expression.
2604
2605 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2606
2607 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2608 ada_language::collect_symbol_completion_matches.
2609 (ada_language_data): Delete la_collect_symbol_completion_matches
2610 initializer.
2611 (ada_language::collect_symbol_completion_matches): New member
2612 function, implementation from
2613 ada_collect_symbol_completion_matches.
2614 * c-lang.c (c_language_data): Delete
2615 la_collect_symbol_completion_matches initializer.
2616 (cplus_language_data): Likewise.
2617 (asm_language_data): Likewise.
2618 (minimal_language_data): Likewise.
2619 * d-lang.c (d_language_data): Likewise.
2620 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2621 f_language::collect_symbol_completion_matches.
2622 (f_language_data): Delete la_collect_symbol_completion_matches
2623 initializer.
2624 (f_language::collect_symbol_completion_matches) New member
2625 function, implementation from f_collect_symbol_completion_matches.
2626 * go-lang.c (go_language_data): Delete
2627 la_collect_symbol_completion_matches initializer.
2628 * language.c (unknown_language_data): Likewise.
2629 (auto_language_data): Likewise.
2630 * language.h (language_data): Delete
2631 la_collect_symbol_completion_matches field.
2632 (language_defn::collect_symbol_completion_matches): New member
2633 function.
2634 * m2-lang.c (m2_language_data): Delete
2635 la_collect_symbol_completion_matches initializer.
2636 * objc-lang.c (objc_language_data): Likewise.
2637 * opencl-lang.c (opencl_language_data): Likewise.
2638 * p-lang.c (pascal_language_data): Likewise.
2639 * rust-lang.c (rust_language_data): Likewise.
2640 * symtab.c (default_collect_symbol_completion_matches): Delete.
2641 (collect_symbol_completion_matches): Update call to
2642 collect_symbol_completion_matches.
2643 (collect_symbol_completion_matches_type): Likewise.
2644 * symtab.h (default_collect_symbol_completion_matches): Delete
2645 declaration.
2646
2647 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2648
2649 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2650 (ada_language_data): Delete la_word_break_characters initializer.
2651 (ada_language::word_break_characters): New member function.
2652 * c-lang.c (c_language_data): Delete la_word_break_characters
2653 initializer.
2654 (cplus_language_data): Likewise.
2655 (asm_language_data): Likewise.
2656 (minimal_language_data): Likewise.
2657 * completer.c: Update global comment.
2658 (advance_to_expression_complete_word_point): Update call to
2659 word_break_characters.
2660 (complete_files_symbols): Likewise.
2661 (complete_line_internal_1): Likewise.
2662 (default_completer_handle_brkchars): Likewise.
2663 (skip_quoted_chars): Likewise.
2664 * d-lang.c (d_language_data): Delete la_word_break_characters
2665 initializer.
2666 * f-lang.c (f_word_break_characters): Delete.
2667 (f_language_data): Delete la_word_break_characters initializer.
2668 (f_language::word_break_characters): New member function.
2669 * go-lang.c (go_language_data): Delete la_word_break_characters
2670 initializer.
2671 * language.c (unknown_language_data): Likewise.
2672 (auto_language_data): Likewise.
2673 * language.h (default_word_break_characters): Move declaration to
2674 earlier in the file.
2675 (language_data): Delete la_word_break_characters field.
2676 (language_defn::word_break_characters): New member function.
2677 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2678 initializer.
2679 * objc-lang.c (objc_language_data): Likewise.
2680 * opencl-lang.c (opencl_language_data): Likewise.
2681 * p-lang.c (pascal_language_data): Likewise.
2682 * rust-lang.c (rust_language_data): Likewise.
2683
2684 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2685
2686 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2687 (ada_language_data): Delete la_get_symbol_name_matcher
2688 initializer.
2689 (language_defn::get_symbol_name_matcher_inner): New member
2690 function.
2691 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2692 initializer.
2693 (cplus_language_data): Likewise.
2694 (cplus_language::get_symbol_name_matcher_inner): New member
2695 function.
2696 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2697 (minimal_language_data): Likewise.
2698 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2699 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2700 initializer.
2701 * dictionary.c (iter_match_first_hashed): Update call to
2702 get_symbol_name_matcher.
2703 (iter_match_next_hashed): Likewise.
2704 (iter_match_next_linear): Likewise.
2705 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2706 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2707 initializer.
2708 (f_language::get_symbol_name_matcher_inner): New member function.
2709 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2710 initializer.
2711 * language.c (default_symbol_name_matcher): Update header comment,
2712 make static.
2713 (language_defn::get_symbol_name_matcher): New definition.
2714 (language_defn::get_symbol_name_matcher_inner): Likewise.
2715 (get_symbol_name_matcher): Delete.
2716 (unknown_language_data): Delete la_get_symbol_name_matcher
2717 initializer.
2718 (auto_language_data): Likewise.
2719 * language.h (language_data): Delete la_get_symbol_name_matcher
2720 field.
2721 (language_defn::get_symbol_name_matcher): New member function.
2722 (language_defn::get_symbol_name_matcher_inner): Likewise.
2723 (default_symbol_name_matcher): Delete declaration.
2724 * linespec.c (find_methods): Update call to
2725 get_symbol_name_matcher.
2726 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2727 initializer.
2728 * minsyms.c (lookup_minimal_symbol): Update call to
2729 get_symbol_name_matcher.
2730 (iterate_over_minimal_symbols): Likewise.
2731 * objc-lang.c (objc_language_data): Delete
2732 la_get_symbol_name_matcher initializer.
2733 * opencl-lang.c (opencl_language_data): Likewise.
2734 * p-lang.c (pascal_language_data): Likewise.
2735 * psymtab.c (psymbol_name_matches): Update call to
2736 get_symbol_name_matcher.
2737 * rust-lang.c (rust_language_data): Delete
2738 la_get_symbol_name_matcher initializer.
2739 * symtab.c (symbol_matches_search_name): Update call to
2740 get_symbol_name_matcher.
2741 (compare_symbol_name): Likewise.
2742
2743 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2744
2745 * ada-lang.c (ada_language_data): Delete la_compute_program
2746 initializer.
2747 * c-lang.c (c_language_data): Likewise.
2748 (c_language::compute_program): New member function.
2749 (cplus_language_data): Delete la_compute_program initializer.
2750 (cplus_language::compute_program): New member function.
2751 (asm_language_data): Delete la_compute_program initializer.
2752 (minimal_language_data): Likewise.
2753 * c-lang.h (c_compute_program): Update comment.
2754 (cplus_compute_program): Likewise.
2755 * compile/compile-c-support.c (c_compute_program): Likewise.
2756 (cplus_compute_program): Likewise.
2757 * compile/compile.c (compile_to_object): Update call to
2758 la_compute_program.
2759 * d-lang.c (d_language_data): Delete la_compute_program
2760 initializer.
2761 * f-lang.c (f_language_data): Likewise.
2762 * go-lang.c (go_language_data): Likewise.
2763 * language.c (unknown_language_data): Likewise.
2764 (auto_language_data): Likewise.
2765 * language.h (language_data): Delete la_compute_program field.
2766 (language_defn::compute_program): New member function.
2767 * m2-lang.c (m2_language_data): Delete la_compute_program
2768 initializer.
2769 * objc-lang.c (objc_language_data): Likewise.
2770 * opencl-lang.c (opencl_language_data): Likewise.
2771 * p-lang.c (pascal_language_data): Likewise.
2772 * rust-lang.c (rust_language_data): Likewise.
2773
2774 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2775
2776 * ada-lang.c (ada_language_data) Delete
2777 la_class_name_from_physname initializer.
2778 * c-lang.c (c_language_data): Likewise.
2779 (cplus_language_data): Likewise.
2780 (cplus_language::class_name_from_physname): New member function.
2781 (asm_language_data): Delete la_class_name_from_physname
2782 initializer.
2783 (minimal_language_data): Likewise.
2784 * d-lang.c (d_language_data): Likewise.
2785 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2786 method on language_defn class.
2787 (guess_full_die_structure_name): Likewise.
2788 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2789 initializer.
2790 * go-lang.c (go_language_data): Likewise.
2791 * language.c (language_class_name_from_physname): Delete.
2792 (unk_lang_class_name): Delete.
2793 (unknown_language_data): Delete la_class_name_from_physname
2794 initializer.
2795 (auto_language_data): Likewise.
2796 * language.h (language_data): Delete la_class_name_from_physname
2797 field.
2798 (language_defn::class_name_from_physname): New function.
2799 (language_class_name_from_physname): Delete declaration.
2800 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2801 initializer.
2802 * objc-lang.c (objc_language_data): Likewise.
2803 * opencl-lang.c (opencl_language_data): Likewise.
2804 * p-lang.c (pascal_language_data): Likewise.
2805 * rust-lang.c (rust_language_data): Likewise.
2806
2807 2020-06-16 Tom Tromey <tom@tromey.com>
2808
2809 * tui/tui-data.h (STATUS_NAME): New macro.
2810 * tui/tui-layout.c (tui_remove_some_windows)
2811 (initialize_known_windows, tui_register_window)
2812 (tui_layout_split::remove_windows, initialize_layouts)
2813 (tui_new_layout_command): Don't use hard-coded window names.
2814
2815 2020-06-16 Tom Tromey <tom@tromey.com>
2816
2817 PR tui/25348:
2818 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2819 tui_initialize_readline. Only run once. Call rl_initialize.
2820 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2821 tui_initialize_readline.
2822 * tui/tui-io.c (tui_setup_io): Call
2823 tui_ensure_readline_initialized.
2824 * tui/tui-interp.c (tui_interp::init): Update.
2825
2826 2020-06-16 Tom Tromey <tom@tromey.com>
2827
2828 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2829 Also preserve the status window.
2830
2831 2020-06-16 Tom Tromey <tom@tromey.com>
2832
2833 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2834 where m_window==nullptr.
2835
2836 2020-06-15 Tom Tromey <tromey@adacore.com>
2837
2838 * windows-nat.c (windows_nat::handle_output_debug_string):
2839 Update.
2840 (windows_nat::handle_ms_vc_exception): Update.
2841 * target.h (target_read_string): Change API.
2842 * target.c (target_read_string): Change API.
2843 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2844 Update.
2845 * solib-frv.c (frv_current_sos): Update.
2846 * solib-dsbt.c (dsbt_current_sos): Update.
2847 * solib-darwin.c (darwin_current_sos): Update.
2848 * linux-thread-db.c (inferior_has_bug): Update.
2849 * expprint.c (print_subexp_standard): Update.
2850 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2851 (ada_exception_message_1): Update.
2852
2853 2020-06-15 Tom Tromey <tromey@adacore.com>
2854
2855 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2856
2857 2020-06-15 Tom Tromey <tromey@adacore.com>
2858
2859 * valprint.c (read_string): Update comment.
2860 * target.c (MIN): Remove.
2861 (target_read_string): Rewrite.
2862
2863 2020-06-15 Tom Tromey <tromey@adacore.com>
2864
2865 * corefile.c (read_memory_string): Remove.
2866 * ada-valprint.c (ada_value_print_ptr): Update.
2867 * ada-lang.h (ada_tag_name): Change return type.
2868 * ada-lang.c (type_from_tag): Update.
2869 (ada_tag_name_from_tsd): Change return type. Use
2870 target_read_string.
2871 (ada_tag_name): Likewise.
2872 * gdbcore.h (read_memory_string): Don't declare.
2873
2874 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2875
2876 * symtab.c (rbreak_command): Ignore Windows drive colon.
2877
2878 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2879
2880 * NEWS: Mention removed GDBserver host support.
2881
2882 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2883
2884 * features/riscv/rebuild-csr-xml.sh: Updated.
2885
2886 2020-06-11 Tom Tromey <tom@tromey.com>
2887
2888 PR gdb/18318:
2889 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2890
2891 2020-06-09 Jonny Grant <jg@jguk.org>
2892 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2893
2894 * main.c (captured_main_1): Don't print new line after help.
2895 (print_gdb_help): add mailing list and IRC channel information
2896 to --help. Add new lines between items in the footer. Remove
2897 quotes around bug url.
2898
2899 2020-06-11 Keith Seitz <keiths@redhat.com>
2900
2901 PR gdb/21356
2902 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2903 Resolve typedefs for type length calculations.
2904
2905 2020-06-10 Tom de Vries <tdevries@suse.de>
2906
2907 PR ada/24713
2908 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2909 (write_psymbols): Enable .gdb_index for ada.
2910 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2911 ada.
2912
2913 2020-06-10 Tom de Vries <tdevries@suse.de>
2914
2915 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2916 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2917 namei" instead of "const char *name" argument.
2918 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2919 dw2_symtab_iter_init.
2920
2921 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2922
2923 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2924 to use type::field and field::type instead.
2925
2926 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2927
2928 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2929 to use field::type instead.
2930
2931 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2932
2933 * gdbtypes.h (struct field) <type, set_type>: New methods.
2934 Rename `type` field to...
2935 <m_type>: ... this. Change references throughout to use type or
2936 set_type methods.
2937 (FIELD_TYPE): Use field::type. Change call sites that modify
2938 the field's type to use field::set_type instead.
2939
2940 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2941
2942 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2943 to use type::index_type instead.
2944
2945 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2946
2947 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2948 methods.
2949 (TYPE_INDEX_TYPE): Use type::index_type.
2950 * gdbtypes.c (create_array_type_with_stride): Likewise.
2951
2952 2020-06-07 Tom Tromey <tom@tromey.com>
2953
2954 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2955 parameter.
2956 (generic_value_print): Update.
2957
2958 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2959
2960 Revert commit 982a38f60b0.
2961 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2962
2963 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2964
2965 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2966 avoid use after free.
2967
2968 2020-06-05 Tom de Vries <tdevries@suse.de>
2969
2970 * NEWS: Fix typos.
2971
2972 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2973
2974 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2975 the per_bfd object.
2976 (dwarf2_read_debug_names): Likewise.
2977 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2978 object when re-using a per_bfd object with an index.
2979
2980 2020-06-03 Tom de Vries <tdevries@suse.de>
2981
2982 PR symtab/26046
2983 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2984 children for C++.
2985 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2986 DW_TAG_subprogram.
2987
2988 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2989
2990 * ada-lang.c (ada_language_data): Delete skip_trampoline
2991 initializer.
2992 * c-lang.c (c_language_data): Likewise.
2993 (cplus_language_data): Likewise.
2994 (cplus_language::skip_trampoline): New member function.
2995 (asm_language_data): Delete skip_trampoline initializer.
2996 (minimal_language_data): Likewise.
2997 * d-lang.c (d_language_data): Likewise.
2998 * f-lang.c (f_language_data): Likewise.
2999 * go-lang.c (go_language_data): Likewise.
3000 * language.c (unk_lang_trampoline): Delete function.
3001 (skip_language_trampoline): Update.
3002 (unknown_language_data): Delete skip_trampoline initializer.
3003 (auto_language_data): Likewise.
3004 * language.h (language_data): Delete skip_trampoline field.
3005 (language_defn::skip_trampoline): New function.
3006 * m2-lang.c (m2_language_data): Delete skip_trampoline
3007 initializer.
3008 * objc-lang.c (objc_skip_trampoline): Delete function, move
3009 implementation to objc_language::skip_trampoline.
3010 (objc_language_data): Delete skip_trampoline initializer.
3011 (objc_language::skip_trampoline): New member function with
3012 implementation from objc_skip_trampoline.
3013 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3014 initializer.
3015 * p-lang.c (pascal_language_data): Likewise.
3016 * rust-lang.c (rust_language_data): Likewise.
3017
3018 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3019
3020 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3021 (ada_language::demangle): New member function.
3022 * c-lang.c (c_language_data): Delete la_demangle initializer.
3023 (cplus_language_data): Delete la_demangle initializer.
3024 (cplus_language::demangle): New member function.
3025 (asm_language_data): Delete la_demangle initializer.
3026 (minimal_language_data): Delete la_demangle initializer.
3027 * d-lang.c (d_language_data): Delete la_demangle initializer.
3028 (d_language::demangle): New member function.
3029 * f-lang.c (f_language_data): Delete la_demangle initializer.
3030 (f_language::demangle): New member function.
3031 * go-lang.c (go_language_data): Delete la_demangle initializer.
3032 (go_language::demangle): New member function.
3033 * language.c (language_demangle): Update.
3034 (unk_lang_demangle): Delete.
3035 (unknown_language_data): Delete la_demangle initializer.
3036 (unknown_language::demangle): New member function.
3037 (auto_language_data): Delete la_demangle initializer.
3038 (auto_language::demangle): New member function.
3039 * language.h (language_data): Delete la_demangle field.
3040 (language_defn::demangle): New function.
3041 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3042 * objc-lang.c (objc_language_data): Delete la_demangle
3043 initializer.
3044 (objc_language::demangle): New member function.
3045 * opencl-lang.c (opencl_language_data): Delete la_demangle
3046 initializer.
3047 * p-lang.c (pascal_language_data): Likewise.
3048 * rust-lang.c (rust_language_data): Likewise.
3049 (rust_language::demangle): New member function.
3050
3051 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3052
3053 * ada-lang.c (ada_language_data): Delete la_print_type
3054 initializer.
3055 (ada_language::print_type): New member function.
3056 * c-lang.c (c_language_data): Delete la_print_type initializer.
3057 (c_language::print_type): New member function.
3058 (cplus_language_data): Delete la_print_type initializer.
3059 (cplus_language::print_type): New member function.
3060 (asm_language_data): Delete la_print_type initializer.
3061 (asm_language::print_type): New member function.
3062 (minimal_language_data): Delete la_print_type initializer.
3063 (minimal_language::print_type): New member function.
3064 * d-lang.c (d_language_data): Delete la_print_type initializer.
3065 (d_language::print_type): New member function.
3066 * f-lang.c (f_language_data): Delete la_print_type initializer.
3067 (f_language::print_type): New member function.
3068 * go-lang.c (go_language_data): Delete la_print_type initializer.
3069 (go_language::print_type): New member function.
3070 * language.c (unk_lang_print_type): Delete.
3071 (unknown_language_data): Delete la_print_type initializer.
3072 (unknown_language::print_type): New member function.
3073 (auto_language_data): Delete la_print_type initializer.
3074 (auto_language::print_type): New member function.
3075 * language.h (language_data): Delete la_print_type field.
3076 (language_defn::print_type): New function.
3077 (LA_PRINT_TYPE): Update.
3078 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3079 (m2_language::print_type): New member function.
3080 * objc-lang.c (objc_language_data): Delete la_print_type
3081 initializer.
3082 (objc_language::print_type): New member function.
3083 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3084 to opencl_language::print_type.
3085 (opencl_language_data): Delete la_print_type initializer.
3086 (opencl_language::print_type): New member function, implementation
3087 from opencl_print_type.
3088 * p-lang.c (pascal_language_data): Delete la_print_type
3089 initializer.
3090 (pascal_language::print_type): New member function.
3091 * rust-lang.c (rust_print_type): Delete, implementation moved to
3092 rust_language::print_type.
3093 (rust_language_data): Delete la_print_type initializer.
3094 (rust_language::print_type): New member function, implementation
3095 from rust_print_type.
3096
3097 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3098
3099 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3100 implementation moves to...
3101 (ada_language::sniff_from_mangled_name): ...here. Update return
3102 type.
3103 (ada_language_data): Delete la_sniff_from_mangled_name
3104 initializer.
3105 * c-lang.c (c_language_data): Likewise.
3106 (cplus_language_data): Likewise.
3107 (cplus_language::sniff_from_mangled_name): New member function,
3108 implementation taken from gdb_sniff_from_mangled_name.
3109 (asm_language_data): Delete la_sniff_from_mangled_name
3110 initializer.
3111 (minimal_language_data): Likewise.
3112 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3113 implementation moves to cplus_language::sniff_from_mangled_name.
3114 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3115 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3116 moves to...
3117 (d_language::sniff_from_mangled_name): ...here.
3118 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3119 * f-lang.c (f_language_data): Likewise.
3120 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3121 moves to...
3122 (go_language::sniff_from_mangled_name): ...here.
3123 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3124 * language.c (language_sniff_from_mangled_name): Delete.
3125 (unknown_language_data): Delete la_sniff_from_mangled_name
3126 initializer.
3127 (auto_language_data): Likewise.
3128 * language.h (language_data): Delete la_sniff_from_mangled_name
3129 field.
3130 (language_defn::sniff_from_mangled_name): New function.
3131 (language_sniff_from_mangled_name): Delete declaration.
3132 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3133 field.
3134 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3135 implementation moves to...
3136 (objc_language::sniff_from_mangled_name): ...here.
3137 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3138 * opencl-lang.c (opencl_language_data): Likewise.
3139 * p-lang.c (pascal_language_data): Likewise.
3140 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3141 implementation moves to...
3142 (rust_language::sniff_from_mangled_name): ...here.
3143 (rust_language_data): Delete la_sniff_from_mangled_name
3144 initializer.
3145 * symtab.c (symbol_find_demangled_name): Call
3146 sniff_from_mangled_name member function.
3147
3148 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3149
3150 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3151 initializer.
3152 * c-lang.c (c_language_data): Likewise.
3153 (cplus_language_data): Likewise.
3154 (cplus_language::search_name_hash): New member function.
3155 (asm_language_data): Delete la_search_name_hash initializer.
3156 (minimal_language_data): Likewise.
3157 * d-lang.c (d_language_data): Likewise.
3158 * dictionary.c (default_search_name_hash): Rename to...
3159 (language_defn::search_name_hash): ...this.
3160 * f-lang.c (f_language_data): Likewise.
3161 (f_language::search_name_hash): New member function.
3162 * go-lang.c (go_language_data): Delete la_search_name_hash
3163 initializer.
3164 * language.c (unknown_language_data): Likewise.
3165 (auto_language_data): Likewise.
3166 * language.h (struct language_data): Delete la_search_name_hash
3167 field.
3168 (language_defn::search_name_hash): Declare new member function.
3169 (default_search_name_hash): Delete declaration.
3170 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3171 initializer.
3172 * objc-lang.c (objc_language_data): Likewise.
3173 * opencl-lang.c (opencl_language_data): Likewise.
3174 * p-lang.c (pascal_language_data): Likewise.
3175 * rust-lang.c (rust_language_data): Likewise.
3176 * symtab.c (search_name_hash): Update call.
3177
3178 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3179
3180 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3181 initializer.
3182 * c-lang.c (class compile_instance): Declare.
3183 (c_language_data): Delete la_get_compile_instance initializer.
3184 (c_language::get_compile_instance): New member function.
3185 (cplus_language_data): Delete la_get_compile_instance initializer.
3186 (cplus_language::get_compile_instance): New member function.
3187 (asm_language_data): Delete la_get_compile_instance initializer.
3188 (minimal_language_data): Likewise.
3189 * c-lang.h (c_get_compile_context): Update comment.
3190 (cplus_get_compile_context): Update comment.
3191 * compile/compile.c (compile_to_object): Update calls, don't rely
3192 on function pointer being NULL.
3193 * d-lang.c (d_language_data): Delete la_get_compile_instance
3194 initializer.
3195 * f-lang.c (f_language_data): Likewise.
3196 * go-lang.c (go_language_data): Likewise.
3197 * language.c (unknown_language_data): Likewise.
3198 (auto_language_data): Likewise.
3199 * language.h (language_data): Delete la_get_compile_instance field.
3200 (language_defn::get_compile_instance): New member function.
3201 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3202 initializer.
3203 * objc-lang.c (objc_language_data): Likewise.
3204 * opencl-lang.c (opencl_language_data): Likewise.
3205 * p-lang.c (pascal_language_data): Likewise.
3206 * rust-lang.c (rust_language_data): Likewise.
3207
3208 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3209
3210 * ada-lang.c (ada_add_all_symbols): Update comment.
3211 (ada_iterate_over_symbols): Delete, move implementation to...
3212 (ada_language::iterate_over_symbols): ...here, a new member
3213 function, rewrite to use range based for loop.
3214 (ada_language_data): Delete la_iterate_over_symbols initializer.
3215 * c-lang.c (c_language_data): Likewise.
3216 (cplus_language_data): Likewise.
3217 (asm_language_data): Likewise.
3218 (minimal_language_data): Likewise.
3219 * d-lang.c (d_language_data): Likewise.
3220 * f-lang.c (f_language_data): Likewise.
3221 * go-lang.c (go_language_data): Likewise.
3222 * language.c (unknown_language_data): Likewise.
3223 (auto_language_data): Likewise.
3224 * language.h (language_data): Delete la_iterate_over_symbols field.
3225 (language_defn::iterate_over_symbols): New member function.
3226 (LA_ITERATE_OVER_SYMBOLS): Update.
3227 * linespec.c (iterate_over_all_matching_symtabs): Update.
3228 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3229 initializer.
3230 * objc-lang.c (objc_language_data): Likewise.
3231 * opencl-lang.c (opencl_language_data): Likewise.
3232 * p-lang.c (pascal_language_data): Likewise.
3233 * rust-lang.c (rust_language_data): Likewise.
3234
3235 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3236
3237 * ada-lang.c (ada_language_data): Delete
3238 la_lookup_transparent_type initializer.
3239 * c-lang.c (c_language_data): Likewise.
3240 (cplus_language_data): Likewise.
3241 (cplus_language::lookup_transparent_type): New member function.
3242 (asm_language_data): Delete la_lookup_transparent_type
3243 initializer.
3244 (minimal_language_data): Likewise.
3245 * d-lang.c (d_language_data): Likewise.
3246 * f-lang.c (f_language_data): Likewise.
3247 * go-lang.c (go_language_data): Likewise.
3248 * language.c (unknown_language_data): Likewise.
3249 (auto_language_data): Likewise.
3250 * language.h (struct language_data): Delete
3251 la_lookup_transparent_type field.
3252 (language_defn::lookup_transparent_type): New member function.
3253 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3254 initializer.
3255 * objc-lang.c (objc_language_data): Likewise.
3256 * opencl-lang.c (opencl_language_data): Likewise.
3257 * p-lang.c (pascal_language_data): Likewise.
3258 * rust-lang.c (rust_language_data): Likewise.
3259 * symtab.c (symbol_matches_domain): Update call.
3260
3261 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3262
3263 * ada-lang.c (ada_language_arch_info): Delete function, move
3264 implementation to...
3265 (ada_language::language_arch_info): ...here, a new member
3266 function.
3267 (ada_language_data): Delete la_language_arch_info.
3268 * c-lang.c (c_language_data): Likewise.
3269 (c_language::language_arch_info): New member function.
3270 (cplus_language_arch_info): Delete function, move
3271 implementation to...
3272 (cplus_language::language_arch_info): ...here, a new member
3273 function.
3274 (cplus_language_data): Delete la_language_arch_info.
3275 (asm_language_data): Likewise.
3276 (asm_language::language_arch_info): New member function.
3277 (minimal_language_data): Delete la_language_arch_info.
3278 (minimal_language::language_arch_info): New member function.
3279 * d-lang.c (d_language_arch_info): Delete function, move
3280 implementation to...
3281 (d_language::language_arch_info): ...here, a new member
3282 function.
3283 (d_language_data): Delete la_language_arch_info.
3284 * f-lang.c (f_language_arch_info): Delete function, move
3285 implementation to...
3286 (f_language::language_arch_info): ...here, a new member
3287 function.
3288 (f_language_data): Delete la_language_arch_info.
3289 * go-lang.c (go_language_arch_info): Delete function, move
3290 implementation to...
3291 (go_language::language_arch_info): ...here, a new member
3292 function.
3293 (go_language_data): Delete la_language_arch_info.
3294 * language.c (unknown_language_data): Likewise.
3295 (unknown_language::language_arch_info): New member function.
3296 (auto_language_data): Delete la_language_arch_info.
3297 (auto_language::language_arch_info): New member function.
3298 (language_gdbarch_post_init): Update call to
3299 la_language_arch_info.
3300 * language.h (language_data): Delete la_language_arch_info
3301 function pointer.
3302 (language_defn::language_arch_info): New function.
3303 * m2-lang.c (m2_language_arch_info): Delete function, move
3304 implementation to...
3305 (m2_language::language_arch_info): ...here, a new member
3306 function.
3307 (m2_language_data): Delete la_language_arch_info.
3308 * objc-lang.c (objc_language_arch_info): Delete function, move
3309 implementation to...
3310 (objc_language::language_arch_info): ...here, a new member
3311 function.
3312 (objc_language_data): Delete la_language_arch_info.
3313 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3314 implementation to...
3315 (opencl_language::language_arch_info): ...here, a new member
3316 function.
3317 (opencl_language_data): Delete la_language_arch_info.
3318 * p-lang.c (pascal_language_arch_info): Delete function, move
3319 implementation to...
3320 (pascal_language::language_arch_info): ...here, a new member
3321 function.
3322 (pascal_language_data): Delete la_language_arch_info.
3323 * rust-lang.c (rust_language_arch_info): Delete function, move
3324 implementation to...
3325 (rust_language::language_arch_info): ...here, a new member
3326 function.
3327 (rust_language_data): Delete la_language_arch_info.
3328
3329 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3330
3331 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3332 initializer.
3333 * c-lang.c (c_language_data): Likewise.
3334 (cplus_language_data): Likewise.
3335 (cplus_language::pass_by_reference_info): New method.
3336 (asm_language_data): Delete la_pass_by_reference initializer.
3337 (minimal_language_data): Likewise.
3338 * cp-abi.c (cp_pass_by_reference): Remove use of
3339 default_pass_by_reference.
3340 * d-lang.c (d_language_data): Likewise.
3341 * f-lang.c (f_language_data): Likewise.
3342 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3343 default_pass_by_reference.
3344 * go-lang.c (go_language_data): Likewise.
3345 * language.c (language_pass_by_reference): Update.
3346 (default_pass_by_reference): Delete.
3347 (unknown_language_data): Delete la_pass_by_reference
3348 initializer.
3349 (auto_language_data): Likewise.
3350 * language.h (struct language_data): Delete la_pass_by_reference
3351 field.
3352 (language_defn::pass_by_reference_info): New member function.
3353 (default_pass_by_reference): Delete declaration.
3354 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3355 initializer.
3356 * objc-lang.c (objc_language_data): Likewise.
3357 * opencl-lang.c (opencl_language_data): Likewise.
3358 * p-lang.c (pascal_language_data): Likewise.
3359 * rust-lang.c (rust_language_data): Likewise.
3360
3361 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3362
3363 * ada-lang.c (ada_read_var_value): Delete function, move
3364 implementation to...
3365 (ada_language::read_var_value): ...here.
3366 (ada_language_data): Delete la_read_var_value initializer.
3367 * c-lang.c (c_language_data): Likewise.
3368 (cplus_language_data): Likewise.
3369 (minimal_language_data): Likewise.
3370 * d-lang.c (d_language_data): Likewise.
3371 * f-lang.c (f_language_data): Likewise.
3372 * findvar.c (default_read_var_value): Rename to...
3373 (language_defn::read_var_value): ...this.
3374 * findvar.c (read_var_value): Update header comment, and change to
3375 call member function instead of function pointer.
3376 * go-lang.c (go_language_data): Likewise.
3377 * language.c (unknown_language_data): Delete la_read_var_value
3378 initializer.
3379 (auto_language_data): Likewise.
3380 * language.h (struct language_data): Delete la_read_var_value
3381 field.
3382 (language_defn::read_var_value): New member function.
3383 (default_read_var_value): Delete declaration.
3384 * m2-lang.c (m2_language_data): Delete la_read_var_value
3385 initializer.
3386 * objc-lang.c (objc_language_data): Likewise.
3387 * opencl-lang.c (opencl_language_data): Likewise.
3388 * p-lang.c (pascal_language_data): Likewise.
3389 * rust-lang.c (rust_language_data): Likewise.
3390 * value.h (default_read_var_value): Delete declaration.
3391
3392 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3393
3394 * ada-lang.c (ada_print_array_index): Delete function, move
3395 implementation to...
3396 (ada_language::print_array_index): ...here.
3397 (ada_language_data): Delete la_print_array_index initializer.
3398 * c-lang.c (c_language_data): Likewise.
3399 (cplus_language_data): Likewise.
3400 (minimal_language_data): Likewise.
3401 * d-lang.c (d_language_data): Likewise.
3402 * f-lang.c (f_language_data): Likewise.
3403 * go-lang.c (go_language_data): Likewise.
3404 * language.c (default_print_array_index): Delete function, move
3405 implementation to...
3406 (language_defn::print_array_index): ...here.
3407 (unknown_language_data): Delete la_print_array_index initializer.
3408 (auto_language_data): Likewise.
3409 * language.h (struct language_data): Delete la_print_array_index
3410 field.
3411 (language_defn::print_array_index): New member function.
3412 (LA_PRINT_ARRAY_INDEX): Update.
3413 (default_print_array_index): Delete declaration.
3414 * m2-lang.c (m2_language_data): Delete la_print_array_index
3415 initializer.
3416 * objc-lang.c (objc_language_data): Likewise.
3417 * opencl-lang.c (opencl_language_data): Likewise.
3418 * p-lang.c (pascal_language_data): Likewise.
3419 * rust-lang.c (rust_language_data): Likewise.
3420
3421 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3422
3423 * gdb/ada-lang.c (ada_language_defn): Convert to...
3424 (ada_language_data): ...this.
3425 (class ada_language): New class.
3426 (ada_language_defn): New static global.
3427 * gdb/c-lang.c (c_language_defn): Convert to...
3428 (c_language_data): ...this.
3429 (class c_language): New class.
3430 (c_language_defn): New static global.
3431 (cplus_language_defn): Convert to...
3432 (cplus_language_data): ...this.
3433 (class cplus_language): New class.
3434 (cplus_language_defn): New static global.
3435 (asm_language_defn): Convert to...
3436 (asm_language_data): ...this.
3437 (class asm_language): New class.
3438 (asm_language_defn): New static global.
3439 (minimal_language_defn): Convert to...
3440 (minimal_language_data): ...this.
3441 (class minimal_language): New class.
3442 (minimal_language_defn): New static global.
3443 * gdb/d-lang.c (d_language_defn): Convert to...
3444 (d_language_data): ...this.
3445 (class d_language): New class.
3446 (d_language_defn): New static global.
3447 * gdb/f-lang.c (f_language_defn): Convert to...
3448 (f_language_data): ...this.
3449 (class f_language): New class.
3450 (f_language_defn): New static global.
3451 * gdb/go-lang.c (go_language_defn): Convert to...
3452 (go_language_data): ...this.
3453 (class go_language): New class.
3454 (go_language_defn): New static global.
3455 * gdb/language.c (unknown_language_defn): Remove declaration.
3456 (current_language): Initialize to nullptr, real initialization is
3457 moved to _initialize_language.
3458 (languages): Delete global.
3459 (language_defn::languages): Define.
3460 (set_language_command): Use language_defn::languages.
3461 (set_language): Likewise.
3462 (range_error): Likewise.
3463 (language_enum): Likewise.
3464 (language_def): Likewise.
3465 (add_set_language_command): Use language_def::languages for the
3466 language list, and language_def to lookup language pointers.
3467 (skip_language_trampoline): Use language_defn::languages.
3468 (unknown_language_defn): Convert to...
3469 (unknown_language_data): ...this.
3470 (class unknown_language): New class.
3471 (unknown_language_defn): New static global.
3472 (auto_language_defn): Convert to...
3473 (auto_language_data): ...this.
3474 (class auto_language): New class.
3475 (auto_language_defn): New static global.
3476 (language_gdbarch_post_init): Use language_defn::languages.
3477 (_initialize_language): Initialize current_language.
3478 * gdb/language.h (struct language_defn): Rename to...
3479 (struct language_data): ...this.
3480 (struct language_defn): New.
3481 (auto_language_defn): Delete.
3482 (unknown_language_defn): Delete.
3483 (minimal_language_defn): Delete.
3484 (ada_language_defn): Delete.
3485 (asm_language_defn): Delete.
3486 (c_language_defn): Delete.
3487 (cplus_language_defn): Delete.
3488 (d_language_defn): Delete.
3489 (f_language_defn): Delete.
3490 (go_language_defn): Delete.
3491 (m2_language_defn): Delete.
3492 (objc_language_defn): Delete.
3493 (opencl_language_defn): Delete.
3494 (pascal_language_defn): Delete.
3495 (rust_language_defn): Delete.
3496 * gdb/m2-lang.c (m2_language_defn): Convert to...
3497 (m2_language_data): ...this.
3498 (class m2_language): New class.
3499 (m2_language_defn): New static global.
3500 * gdb/objc-lang.c (objc_language_defn): Convert to...
3501 (objc_language_data): ...this.
3502 (class objc_language): New class.
3503 (objc_language_defn): New static global.
3504 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3505 (opencl_language_data): ...this.
3506 (class opencl_language): New class.
3507 (opencl_language_defn): New static global.
3508 * gdb/p-lang.c (pascal_language_defn): Convert to...
3509 (pascal_language_data): ...this.
3510 (class pascal_language): New class.
3511 (pascal_language_defn): New static global.
3512 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3513 language pointer, update comment format.
3514 * gdb/rust-lang.c (rust_language_defn): Convert to...
3515 (rust_language_data): ...this.
3516 (class rust_language): New class.
3517 (rust_language_defn): New static global.
3518
3519 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3520
3521 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3522 member variable.
3523 <m_stmt_at_address>: New member variable.
3524 (lnp_state_machine::record_line): Don't record some lines, update
3525 tracking of is_stmt at the same address.
3526 (lnp_state_machine::lnp_state_machine): Initialise new member
3527 variables.
3528
3529 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3530
3531 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3532 "-include gnu-nat-mig.h".
3533 * gnu-nat-mig.h: New file.
3534 * gnu-nat.c: Include "gnu-nat-mig.h".
3535 (exc_server, msg_reply_server, notify_server,
3536 process_reply_server): Remove declarations.
3537
3538 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3539
3540 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3541 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3542 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3543 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3544 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3545 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3546 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3547 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3548 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3549 to gnu_nat_target class.
3550 * gnu-nat.c: Likewise.
3551 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3552 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3553 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3554 object.
3555 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3556 instead of `gnu_target'.
3557
3558 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3559
3560 * i386-gnu-tdep.c: Include "gdbcore.h"
3561 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3562 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3563 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3564 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3565 i386_gnu_sigcontext_addr): New functions
3566 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3567 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3568 tdep.
3569
3570 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3571
3572 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3573 before fork_inferior call. Avoid calling it if target_is_pushed returns
3574 true.
3575
3576 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3577
3578 * gnu-nat.h (gnu_target): New variable declaration.
3579 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3580 gnu_target.
3581 * gnu-nat.c (gnu_target): New variable.
3582 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3583 add_thread_silent, and add_thread calls.
3584 (gnu_nat_target::create_inferior): Pass gnu_target to
3585 add_thread_silent, thread_change_ptid call.
3586 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3587 call.
3588
3589 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3590
3591 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3592 (gnu_nat_target::find_memory_regions): Remove unused
3593 `old_address' variable.
3594
3595 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3596
3597 * gnu-nat.c: Include "gdbarch.h".
3598
3599 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3600
3601 * reply_mig_hack.awk (Error return): Cast function through
3602 void *, to bypass compiler function call check.
3603
3604 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3605
3606 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3607 $(srcdir)/reply_mig_hack.awk.
3608
3609 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3610
3611 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3612
3613 2020-05-30 Jonny Grant <jg@jguk.org>
3614
3615 * configure.ac (ACX_BUGURL): change bug URL to https.
3616
3617 2020-05-30 Pedro Alves <palves@redhat.com>
3618
3619 * cp-support.c (replace_typedefs_template): New.
3620 (replace_typedefs_qualified_name): Handle
3621 DEMANGLE_COMPONENT_TEMPLATE.
3622
3623 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3624
3625 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3626 dwarf2/index-cache.h, dwarf2/index-write.c,
3627 dwarf2/index-write.h, dwarf2/line-header.c,
3628 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3629 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3630 variables and fields from `dwarf2_per_objfile` to just
3631 `per_objfile` throughout.
3632
3633 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3634
3635 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3636 <push_dwarf_reg_entry_value>: Add comment.
3637
3638 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3639 Keith Seitz <keiths@redhat.com>
3640
3641 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3642 instead of PyEval_ReleaseLock.
3643 (class gdbpy_gil): Move to earlier in file.
3644 (finalize_python): Set gdb_python_initialized.
3645 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3646 when not initialized.
3647
3648 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3649
3650 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3651 <push_dwarf_reg_entry_value>: Remove assert. Override
3652 per_objfile with caller_per_objfile.
3653
3654 2020-05-28 Tom de Vries <tdevries@suse.de>
3655
3656 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3657 PR gold/15646 workaround to symbol kind "type".
3658
3659 2020-05-27 Tom Tromey <tromey@adacore.com>
3660
3661 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3662
3663 2020-05-27 Tom Tromey <tromey@adacore.com>
3664
3665 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3666 Use htab_find_with_hash.
3667 <add_abbrev>: Remove "abbrev_number" parameter.
3668 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3669 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3670 (hash_abbrev): Add comment.
3671 (abbrev_table::lookup_abbrev): Move to header file.
3672 (abbrev_table::read): Update.
3673
3674 2020-05-27 Tom Tromey <tromey@adacore.com>
3675
3676 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3677 method.
3678 <canonical_name>: New member.
3679 <raw_name>: Rename from "name".
3680 (partial_die_info): Initialize canonical_name.
3681 (scan_partial_symbols): Check raw_name.
3682 (partial_die_parent_scope, partial_die_full_name)
3683 (add_partial_symbol, add_partial_subprogram)
3684 (add_partial_enumeration, load_partial_dies): Use "name" method.
3685 (partial_die_info::name): New method.
3686 (partial_die_info::read, guess_partial_die_structure_name)
3687 (partial_die_info::fixup): Update.
3688
3689 2020-05-27 Tom Tromey <tromey@adacore.com>
3690
3691 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3692 <get_ref_die_offset>: Inline.
3693 <get_ref_die_offset_complaint>: New method.
3694 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3695 (attribute::get_ref_die_offset_complaint): Rename from
3696 get_ref_die_offset. Just issue complaint.
3697
3698 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3699
3700 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3701
3702 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3703
3704 * exec.c (exec_file_attach): Use errno value of first openp failure.
3705
3706 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3707
3708 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3709 Don't close thread handle.
3710
3711 2020-05-27 Tom Tromey <tom@tromey.com>
3712 Simon Marchi <simon.marchi@efficios.com>
3713
3714 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3715 shared_ptr.
3716 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3717 member.
3718 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3719 dwarf2_per_bfd_objfile_data_key>: New globals.
3720 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3721 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3722 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3723 shared.
3724 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3725 short-circuit when sharing.
3726 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3727 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3728
3729 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3730
3731 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3732 to...
3733 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3734 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3735
3736 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3737
3738 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3739 build_name_components, find_name_components_bounds>:
3740 Add per_objfile parameter.
3741 (struct mapped_index) <symbol_name_at>: Likewise.
3742 (struct mapped_debug_names): Remove constructor.
3743 <dwarf2_per_objfile>: Remove field.
3744 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3745 (mapped_index_base::find_name_components_bounds,
3746 mapped_index_base::build_name_components,
3747 dw2_expand_symtabs_matching_symbol): Likewise.
3748 (class mock_mapped_index) <symbol_name_at>: Likewise.
3749 (check_match): Likewise.
3750 (check_find_bounds_finds): Likewise.
3751 (test_mapped_index_find_name_component_bounds): Update.
3752 (CHECK_MATCH): Update.
3753 (dw2_expand_symtabs_matching): Update.
3754 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3755 per_objfile parameter.
3756 <find_vec_in_debug_names>: Likewise.
3757 <m_per_objfile>: New field.
3758 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3759 parameter.
3760 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3761 (dw2_debug_names_iterator::next): Update.
3762 (dw2_debug_names_lookup_symbol): Update.
3763 (dw2_debug_names_expand_symtabs_for_function): Update.
3764 (dw2_debug_names_map_matching_symbols): Update.
3765 (dw2_debug_names_expand_symtabs_matching): Update.
3766 (dwarf2_read_debug_names): Update.
3767
3768 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3769
3770 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3771 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3772 move to dwarf2_per_objfile.
3773 <read_in_chain>: Remove.
3774 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3775 remove_all_cus, age_comp_units>: New methods.
3776 <m_dwarf2_cus>: New member.
3777 (struct dwarf2_per_cu_data) <cu>: Remove.
3778 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3779 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3780 moved to methods of dwarf2_per_objfile.
3781 (dwarf2_clear_marks): Remove.
3782 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3783 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3784 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3785 (dwarf2_per_objfile::remove_all_cus): New.
3786 (class free_cached_comp_units) <~free_cached_comp_units>:
3787 Update.
3788 (load_cu): Update.
3789 (dw2_do_instantiate_symtab): Adjust.
3790 (fill_in_sig_entry_from_dwo_entry): Adjust.
3791 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3792 (cutu_reader::cutu_reader): Likewise.
3793 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3794 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3795 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3796 and dwarf2_per_objfile::age_comp_units.
3797 (load_partial_comp_unit): Update.
3798 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3799 (process_queue): Likewise.
3800 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3801 backlink.
3802 (dwarf2_read_addr_index): Likewise.
3803 (follow_die_offset): Likewise.
3804 (dwarf2_fetch_die_loc_sect_off): Likewise.
3805 (dwarf2_fetch_constant_bytes): Likewise.
3806 (dwarf2_fetch_die_type_sect_off): Likewise.
3807 (follow_die_sig_1): Likewise.
3808 (load_full_type_unit): Likewise.
3809 (read_signatured_type): Likewise.
3810 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3811 (dwarf2_cu::~dwarf2_cu): Remove.
3812 (dwarf2_per_objfile::get_cu): New.
3813 (dwarf2_per_objfile::set_cu): New.
3814 (age_cached_comp_units): Rename to...
3815 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3816 to std::unordered_map.
3817 (free_one_cached_comp_unit): Rename to...
3818 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3819 to std::unordered_map.
3820 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3821 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3822 a dwarf2_per_objfile in data.
3823 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3824 (dwarf2_clear_marks): Remove.
3825
3826 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3827
3828 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3829 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3830 (init_tu_and_read_dwo_dies): Likewise.
3831 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3832 (cutu_reader::cutu_reader): Likewise.
3833 (load_partial_comp_unit): Likewise.
3834 (process_psymtab_comp_unit): Update.
3835 (build_type_psymtabs_1): Update.
3836 (process_skeletonless_type_unit): Update.
3837 (load_full_comp_unit): Update.
3838 (find_partial_die): Update.
3839 (dwarf2_read_addr_index): Update.
3840 (read_signatured_type): Update.
3841
3842 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3843
3844 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3845 m_header_read_in>: New fields.
3846 <get_header>: New method.
3847 * dwarf2/read.c (per_cu_header_read_in): Remove.
3848 (dwarf2_per_cu_data::get_header): New.
3849 (dwarf2_per_cu_data::addr_size): Update.
3850 (dwarf2_per_cu_data::offset_size): Update.
3851 (dwarf2_per_cu_data::ref_addr_size): Update.
3852
3853 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3854
3855 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3856 (dw2_do_instantiate_symtab): Update.
3857 (queue_and_load_all_dwo_tus): Change parameter from
3858 dwarf2_per_cu_data to dwarf2_cu.
3859 (dwarf2_fetch_die_loc_sect_off): Update.
3860 (dwarf2_fetch_constant_bytes): Update.
3861 (dwarf2_fetch_die_type_sect_off): Update.
3862
3863 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3864
3865 * dwarf2/read.c (process_full_comp_unit,
3866 process_full_type_unit): Remove per_cu, per_objfile paramters.
3867 Add dwarf2_cu parameter.
3868 (process_queue): Update.
3869
3870 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3871
3872 * dwarf2/read.c (create_cu_from_index_list): Replace
3873 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3874 (create_cus_from_index_list): Likewise.
3875 (create_cus_from_index): Likewise.
3876 (create_signatured_type_table_from_index): Likewise.
3877 (create_cus_from_debug_names_list): Likewise.
3878 (create_cus_from_debug_names): Likewise.
3879 (dwarf2_read_gdb_index): Update.
3880 (dwarf2_read_debug_names): Update.
3881
3882 2020-05-27 Tom Tromey <tom@tromey.com>
3883 Simon Marchi <simon.marchi@efficios.com>
3884
3885 * dwarf2/read.h (struct dwarf2_per_objfile)
3886 <get_type_for_signatured_type, set_type_for_signatured_type>:
3887 New methods.
3888 <m_type_map>: New member.
3889 (struct signatured_type) <type>: Remove.
3890 * dwarf2/read.c
3891 (dwarf2_per_objfile::get_type_for_signatured_type,
3892 dwarf2_per_objfile::set_type_for_signatured_type): New.
3893 (get_signatured_type): Use new methods.
3894
3895 2020-05-27 Tom Tromey <tom@tromey.com>
3896 Simon Marchi <simon.marchi@efficios.com>
3897
3898 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3899 (struct dwarf2_per_objfile) <type_units>: New member.
3900 <get_type_unit_group_unshareable>: New method.
3901 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3902 num_symtabs, symtabs>: Remove; move to
3903 type_unit_group_unshareable.
3904 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3905 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3906 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3907
3908 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3909
3910 * dwarf2/read.h (struct dwarf2_per_cu_data):
3911 <dwarf2_per_objfile>: Remove.
3912 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3913 dwarf2_per_objfile.
3914 (create_signatured_type_table_from_index): Likewise.
3915 (create_signatured_type_table_from_debug_names): Likewise.
3916 (create_debug_type_hash_table): Likewise.
3917 (fill_in_sig_entry_from_dwo_entry): Likewise.
3918 (create_type_unit_group): Likewise.
3919 (read_comp_units_from_section): Likewise.
3920 (create_cus_hash_table): Likewise.
3921
3922 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3923
3924 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3925 dwarf2_per_cu_data::dwarf2_per_objfile.
3926 (compute_compunit_symtab_includes): Likewise.
3927 (dwarf2_cu::start_symtab): Likewise.
3928
3929 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3930
3931 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3932 parameter.
3933 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3934 (read_namespace_alias): Update.
3935 (lookup_die_type): Update.
3936 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3937 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3938 Update.
3939 (disassemble_dwarf_expression): Update.
3940
3941 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3942
3943 * dwarf2/read.h (struct dwarf2_queue_item): Add
3944 dwarf2_per_objfile parameter, assign new parameter.
3945 <per_objfile>: New field.
3946 * dwarf2/read.c (free_one_cached_comp_unit): Add
3947 dwarf2_per_objfile parameter.
3948 (queue_comp_unit): Likewise.
3949 (dw2_do_instantiate_symtab): Update.
3950 (process_psymtab_comp_unit): Update.
3951 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3952 (process_imported_unit_die): Update.
3953 (queue_and_load_dwo_tu): Update.
3954 (follow_die_offset): Update.
3955 (follow_die_sig_1): Update.
3956
3957 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3958
3959 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3960 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3961 (read_call_site_scope): Assign per_objfile.
3962 (dwarf2_per_cu_data::objfile): Remove.
3963 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3964 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3965 dwarf2_per_objfile parameter.
3966 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3967 dwarf2_per_objfile parameter.
3968 (dwarf_expr_reg_to_entry_parameter): Add output
3969 dwarf2_per_objfile parameter.
3970 (locexpr_get_frame_base): Update.
3971 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3972 <push_dwarf_reg_entry_value>: Update.
3973 <call_site_to_target_addr>: Update.
3974 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3975 parameter.
3976 (value_of_dwarf_reg_entry): Update.
3977 (rw_pieced_value): Update.
3978 (indirect_synthetic_pointer): Update.
3979 (dwarf2_evaluate_property): Update.
3980 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3981 parameter.
3982 (locexpr_read_variable): Update.
3983 (locexpr_get_symbol_read_needs): Update.
3984 (loclist_read_variable): Update.
3985
3986 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3987
3988 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3989 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3990 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3991 parameter.
3992 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3993 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3994 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3995 parameter.
3996 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3997 sect_variable_value): Add dwarf2_per_objfile parameter.
3998 (class dwarf_evaluate_loc_desc) <dwarf_call,
3999 dwarf_variable_value>: Update.
4000 (fetch_const_value_from_synthetic_pointer): Add
4001 dwarf2_per_objfile parameter.
4002 (fetch_const_value_from_synthetic_pointer): Update.
4003 (coerced_pieced_ref): Update.
4004 (class symbol_needs_eval_context) <dwarf_call,
4005 dwarf_variable_value>: Update.
4006 (dwarf2_compile_expr_to_ax): Update.
4007
4008 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4009
4010 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4011 parameter.
4012 (dwarf2_evaluate_loc_desc_full): Update.
4013
4014 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4015
4016 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4017 parameter.
4018 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4019 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4020 dwarf2_per_objfile parameter.
4021 (decode_debug_loc_dwo_addresses): Likewise.
4022 (dwarf2_find_location_expression): Update.
4023 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4024 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4025 parameter.
4026 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4027 parameter.
4028 (locexpr_describe_location_1): Likewise.
4029 (locexpr_describe_location): Update.
4030
4031 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4032
4033 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4034 Remove.
4035 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4036 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4037 (dwarf2_compile_property_to_c): Update.
4038 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4039 use text offset from objfile.
4040 (locexpr_tracepoint_var_ref): Update.
4041 (locexpr_generate_c_location): Update.
4042 (loclist_describe_location): Update.
4043 (loclist_tracepoint_var_ref): Update.
4044 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4045 dwarf2_per_objfile parameter.
4046 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4047 use text offset from objfile.
4048 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4049
4050 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4051
4052 * dwarf2/expr.h (struct dwarf_expr_context)
4053 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4054 <offset>: Remove.
4055 <per_objfile>: New member.
4056 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4057 dwarf2_per_objfile parameter. Don't set offset, set
4058 per_objfile.
4059 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4060 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4061 a dwarf2_per_objfile object instead of an offset.
4062 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4063 constructor.
4064 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4065 to dwarf2_expr_executor constructor. Don't set offset.
4066 (dwarf2_fetch_cfa_info): Update.
4067 (struct dwarf2_frame_cache) <text_offset>: Remove.
4068 <per_objfile>: New field.
4069 (dwarf2_frame_cache): Update.
4070 (dwarf2_frame_prev_register): Update.
4071 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4072 <dwarf_evaluate_loc_desc>: Add constructor.
4073 (dwarf2_evaluate_loc_desc_full): Update.
4074 (dwarf2_locexpr_baton_eval): Update.
4075 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4076 Add constructor.
4077 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4078
4079 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4080
4081 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4082 addr_sized_int_type>: Move to dwarf2_cu.
4083 <int_type>: Move to dwarf2_per_objfile.
4084 (struct dwarf2_per_objfile) <int_type>: Move here.
4085 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4086 addr_sized_int_type>: Move here.
4087 (read_func_scope): Update.
4088 (read_array_type): Update.
4089 (read_tag_string_type): Update.
4090 (attr_to_dynamic_prop): Update.
4091 (dwarf2_per_cu_data::int_type): Rename to...
4092 (dwarf2_per_objfile::int_type): ... this.
4093 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4094 (dwarf2_cu::addr_sized_int_type): ... this.
4095 (read_subrange_type): Update.
4096 (dwarf2_per_cu_data::addr_type): Rename to...
4097 (dwarf2_cu::addr_type): ... this.
4098 (set_die_type): Update.
4099
4100 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4101
4102 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4103 data through per_cu->cu.
4104
4105 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4106
4107 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4108 dwarf2_per_cu_data parameter fo dwarf2_cu.
4109 (lookup_dwo_type_unit): Likewise.
4110 (read_cutu_die_from_dwo): Likewise.
4111 (lookup_dwo_unit): Likewise.
4112 (open_and_init_dwo_file): Likewise.
4113 (lookup_dwo_cutu): Likewise.
4114 (lookup_dwo_comp_unit): Likewise.
4115 (lookup_dwo_type_unit): Likewise.
4116 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4117 (cutu_reader::cutu_reader): Update.
4118
4119 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4120
4121 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4122 parameter.
4123 (process_full_type_unit): Likewise.
4124 (process_queue): Update.
4125
4126 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4127
4128 * dwarf2/read.c (recursively_compute_inclusions): Add
4129 dwarf2_per_objfile parameter.
4130 (compute_compunit_symtab_includes): Likewise.
4131 (process_cu_includes): Update.
4132
4133 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4134
4135 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4136 parameter.
4137 (create_type_unit_group): Update.
4138 (process_psymtab_comp_unit_reader): Update.
4139 (build_type_psymtabs_reader): Update.
4140
4141 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4142
4143 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4144 object through m_this_cu->cu.
4145
4146 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4147
4148 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4149 the info parameter.
4150 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4151
4152 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4153
4154 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4155 per_objfile parameter.
4156 (load_full_type_unit): Add per_objfile parameter.
4157 (read_signatured_type): Likewise.
4158 (load_full_comp_unit): Likewise.
4159 (load_cu): Likewise.
4160 (dw2_do_instantiate_symtab): Likewise.
4161 (dw2_get_file_names): Likewise.
4162 (dw2_map_symtabs_matching_filename): Update.
4163 (dw_expand_symtabs_matching_file_matcher): Update.
4164 (dw2_map_symbol_filenames): Update.
4165 (process_psymtab_comp_unit): Add per_objfile parameter.
4166 (build_type_psymtabs_1): Update.
4167 (process_skeletonless_type_unit): Update.
4168 (dwarf2_build_psymtabs_hard): Update.
4169 (load_partial_comp_unit): Add per_objfile parameter.
4170 (scan_partial_symbols): Update.
4171 (load_full_comp_unit): Add per_objfile parameter.
4172 (process_imported_unit_die): Update.
4173 (create_cus_hash_table): Update.
4174 (find_partial_die): Update.
4175 (dwarf2_read_addr_index): Update.
4176 (follow_die_offset): Update.
4177 (dwarf2_fetch_die_loc_sect_off): Update.
4178 (dwarf2_fetch_constant_bytes): Update.
4179 (dwarf2_fetch_die_type_sect_off): Update.
4180 (follow_die_sig_1): Update.
4181 (load_full_type_unit): Add per_objfile parameter.
4182 (read_signatured_type): Likewise.
4183
4184 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4185
4186 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4187 of objfile_name.
4188
4189 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4190
4191 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4192 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4193 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4194 field.
4195 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4196 (create_cus_from_index): Update.
4197 (dwarf2_read_gdb_index): Update.
4198 (create_cus_from_debug_names): Update.
4199 (dwarf2_read_debug_names): Update.
4200 (get_abbrev_section_for_cu): Update.
4201 (create_all_comp_units): Update.
4202 (read_attribute_value): Update.
4203 (get_debug_line_section): Update.
4204 * dwarf2/index-cache.c (index_cache::store): Update.
4205 * dwarf2/index-write.c (save_gdb_index_command): Update.
4206 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4207
4208 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4209
4210 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4211 member.
4212 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4213 dwarf2_per_cu_data::per_bfd.
4214 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4215 (create_type_unit_group): Likewise.
4216 (queue_comp_unit): Remove reference to
4217 per_cu->dwarf2_per_objfile.
4218 (maybe_queue_comp_unit): Likewise.
4219 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4220 (create_cus_hash_table): Assign new field.
4221
4222 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4223
4224 * dwarf2/read.c: Replace
4225 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4226 dwarf2_cu->per_objfile throughout.
4227
4228 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4229
4230 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4231 parameter, don't use per_cu->dwarf2_per_objfile.
4232 (dw2_instantiate_symtab): Likewise.
4233 (dw2_find_last_source_symtab): Update.
4234 (dw2_map_expand_apply): Update.
4235 (dw2_lookup_symbol): Update.
4236 (dw2_expand_symtabs_for_function): Update.
4237 (dw2_expand_all_symtabs): Update.
4238 (dw2_expand_symtabs_with_fullname): Update.
4239 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4240 don't use per_cu->dwarf2_per_objfile.
4241 (dw2_expand_marked_cus): Update.
4242 (dw2_find_pc_sect_compunit_symtab): Update.
4243 (dw2_debug_names_lookup_symbol): Update.
4244 (dw2_debug_names_expand_symtabs_for_function): Update.
4245 (dw2_debug_names_map_matching_symbols): Update.
4246 (dwarf2_psymtab::expand_psymtab): Update.
4247
4248 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4249
4250 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4251 <per_objfile>: New member.
4252 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4253 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4254 call to dwarf2_cu.
4255 (cutu_reader::cutu_reader): Update.
4256 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4257
4258 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4259
4260 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4261 struct dwarf2_per_objfile.
4262 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4263 dwarf2_per_bfd.
4264 * dwarf2/read.c (set_die_type): Update.
4265 (get_die_type_at_offset): Update.
4266
4267 2020-05-27 Tom Tromey <tom@tromey.com>
4268 Simon Marchi <simon.marchi@efficios.com>
4269
4270 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4271 method.
4272 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4273 get_symtab, set_symtab>: New methods.
4274 <m_symtabs>: New field.
4275 (struct dwarf2_psymtab): Derive from partial_symtab.
4276 <readin_p, get_compunit_symtab>: Declare methods.
4277 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4278 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4279 New methods.
4280 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4281 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4282 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4283 (dw2_symtab_iter_next, dw2_print_stats)
4284 (dw2_expand_symtabs_with_fullname)
4285 (dw2_expand_symtabs_matching_one)
4286 (dw_expand_symtabs_matching_file_matcher)
4287 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4288 (dw2_debug_names_iterator::next)
4289 (dw2_debug_names_map_matching_symbols)
4290 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4291 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4292 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4293 New methods.
4294 (get_compunit_symtab, process_full_comp_unit)
4295 (process_full_type_unit): Update.
4296 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4297
4298 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4299
4300 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4301 then introduce a new dwarf2_per_objfile type.
4302 <read_line_string>: Move to the new dwarf2_per_objfile type.
4303 <objfile>: Likewise.
4304 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4305 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4306 dwarf2_per_objfile->per_bfd.
4307 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4308 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4309 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4310 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4311 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4312 (dwarf2_per_objfile::locate_sections): Rename to...
4313 (dwarf2_per_bfd::locate_sections): ... this.
4314 (dwarf2_per_objfile::get_cutu): Rename to...
4315 (dwarf2_per_bfd::get_cutu): ... this.
4316 (dwarf2_per_objfile::get_cu): Rename to...
4317 (dwarf2_per_bfd::get_cu): ... this.
4318 (dwarf2_per_objfile::get_tu): Rename to...
4319 (dwarf2_per_bfd::get_tu): ... this.
4320 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4321 (dwarf2_per_bfd::allocate_per_cu): ... this.
4322 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4323 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4324 (get_gdb_index_contents_ftype): Change parameter from
4325 dwarf2_per_objfile to dwarf2_per_bfd.
4326 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4327 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4328
4329 2020-05-27 Tom Tromey <tom@tromey.com>
4330 Simon Marchi <simon.marchi@efficios.com>
4331
4332 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4333 (allocate_piece_closure): Set "per_objfile" member.
4334 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4335 (locexpr_describe_location, loclist_describe_location): Use new
4336 member.
4337 * dwarf2/read.c (read_call_site_scope)
4338 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4339 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4340 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4341 handle_data_member_location): Set per_objfile member.
4342 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4343 member.
4344 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4345
4346 2020-05-27 Tom Tromey <tom@tromey.com>
4347
4348 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4349 allocate_signatured_type>: Declare new methods.
4350 <m_num_psymtabs>: New member.
4351 (struct dwarf2_per_cu_data) <index>: New member.
4352 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4353 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4354 (create_cu_from_index_list): Use allocate_per_cu.
4355 (create_signatured_type_table_from_index)
4356 (create_signatured_type_table_from_debug_names)
4357 (create_debug_type_hash_table, add_type_unit)
4358 (read_comp_units_from_section): Use allocate_signatured_type.
4359
4360 2020-05-27 Tom Tromey <tom@tromey.com>
4361
4362 * psymtab.c (partial_map_expand_apply)
4363 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4364 (psym_lookup_global_symbol_language)
4365 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4366 (psym_print_stats, psym_expand_symtabs_for_function)
4367 (psym_map_symbol_filenames, psym_map_matching_symbols)
4368 (psym_expand_symtabs_matching)
4369 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4370 (maintenance_check_psymtabs): Update.
4371 * psympriv.h (struct partial_symtab) <readin_p,
4372 get_compunit_symtab>: Add objfile parameter.
4373 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4374 Likewise.
4375 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4376 get_compunit_symtab>: Likewise.
4377 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4378
4379 2020-05-27 Tom Tromey <tom@tromey.com>
4380
4381 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4382 member.
4383 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4384 (create_cu_from_index_list)
4385 (create_signatured_type_table_from_index)
4386 (create_signatured_type_table_from_debug_names)
4387 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4388 (dwarf2_create_include_psymtab)
4389 (create_debug_type_hash_table, add_type_unit)
4390 (create_type_unit_group, read_comp_units_from_section)
4391 (dwarf2_compute_name, create_cus_hash_table)
4392 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4393 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4394 obstack.
4395 (dw2_get_real_path): Likewise. Change argument to
4396 dwarf2_per_objfile.
4397
4398 2020-05-27 Luis Machado <luis.machado@linaro.org>
4399
4400 PR tdep/26000
4401 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4402 for ldrd (immediate).
4403
4404 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4405
4406 * command.h: Add comment giving the name of class_tui.
4407 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4408 create the fake command for the help for class_tui.
4409
4410 2020-05-26 Tom Tromey <tromey@adacore.com>
4411
4412 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4413 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4414 (val_atr): New function.
4415 (value_val_atr): Use it.
4416 * ada-valprint.c (print_optional_low_bound): Change low bound
4417 handling for enums.
4418 (val_print_packed_array_elements): Don't call discrete_position.
4419 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4420 discrete_position for enum types.
4421 * language.c (default_print_array_index): Change type.
4422 * language.h (struct language_defn) <la_print_array_index>: Add
4423 index_type parameter, change type of index_value.
4424 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4425 (default_print_array_index): Update.
4426 * valprint.c (maybe_print_array_index): Don't call
4427 value_from_longest. Update.
4428 (value_print_array_elements): Don't call discrete_position.
4429
4430 2020-05-26 Tom Tromey <tromey@adacore.com>
4431
4432 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4433 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4434
4435 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4436
4437 PR gdb/13519
4438 * avr-tdep.c (avr_integer_to_address): Return data or code
4439 address accordingly to the second 'type' argument of the
4440 function.
4441
4442 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4443
4444 * infcmd.c, inferior.h: (construct_inferior_arguments):
4445 Moved function from here to gdbsupport/common-inferior.{h,cc}
4446
4447 2020-05-23 Tom Tromey <tom@tromey.com>
4448
4449 Revert commit eca1f90c:
4450 * NEWS: Remove entry for completion styling.
4451 * completer.c (_rl_completion_prefix_display_length): Move
4452 declaration later.
4453 (gdb_fnprint): Revert.
4454 (gdb_display_match_list_1): Likewise.
4455 * cli/cli-style.c (completion_prefix_style)
4456 (completion_difference_style, completion_suffix_style): Remove.
4457 (_initialize_cli_style): Revert.
4458 * cli/cli-style.h (completion_prefix_style)
4459 (completion_difference_style, completion_suffix_style): Don't
4460 declare.
4461
4462 2020-05-24 Pedro Alves <palves@redhat.com>
4463
4464 * symtab.c (completion_list_add_name): Return boolean indication
4465 of whether the symbol matched.
4466 (completion_list_add_symbol): Don't try to remove C++ aliases if
4467 the symbol didn't match in the first place.
4468 * symtab.h (completion_list_add_name): Return bool.
4469
4470 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4471
4472 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4473 type::field.
4474
4475 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4476
4477 GDB 9.2 released.
4478
4479 2020-05-23 Tom Tromey <tom@tromey.com>
4480
4481 * NEWS: Add entry for completion styling.
4482 * completer.c (_rl_completion_prefix_display_length): Move
4483 declaration earlier.
4484 (gdb_fnprint): Use completion_style.
4485 (gdb_display_match_list_1): Likewise.
4486 * cli/cli-style.c (completion_prefix_style)
4487 (completion_difference_style, completion_suffix_style): New
4488 globals.
4489 (_initialize_cli_style): Register new globals.
4490 * cli/cli-style.h (completion_prefix_style)
4491 (completion_difference_style, completion_suffix_style): Declare.
4492
4493 2020-05-23 Pedro Alves <palves@redhat.com>
4494
4495 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4496 (parse_escape): Use ISDIGIT instead of isdigit.
4497 (puts_debug): Use gdb_isprint instead of isprint.
4498 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4499 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4500 ISSPACE instead of isspace.
4501 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4502 instead of isspace.
4503 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4504 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4505 instead of isxdigit and ISDIGIT instead of isdigit.
4506
4507 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4508
4509 * gdbtypes.h (struct type) <field>: New method.
4510 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4511 or type::field.
4512
4513 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4514
4515 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4516 (TYPE_FIELDS): Use type::fields. Change all call sites that
4517 modify the propery to use type::set_fields instead.
4518
4519 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4520
4521 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4522 type::num_fields instead.
4523
4524 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4525
4526 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4527 methods.
4528 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4529 that modify the number of fields to use type::set_num_fields
4530 instead.
4531
4532 2020-05-22 Tom Tromey <tromey@adacore.com>
4533
4534 * compile/compile-object-load.h (munmap_list_free): Don't
4535 declare.
4536
4537 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4538
4539 * annotate.c (annotate_source_line): Update return type, add call
4540 to update current symtab and line.
4541 * annotate.h (annotate_source_line): Update return type, and
4542 extend header comment.
4543 * source.c (info_line_command): Check annotation_level before
4544 calling annotate_source_line.
4545 * stack.c (print_frame_info): If calling annotate_source_line
4546 returns true, then don't print any other source line information.
4547
4548 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4549
4550 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4551
4552 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4553
4554 * coffread.c (patch_type): Remove NULL check before xfree.
4555 * corefile.c (set_gnutarget): Likewise.
4556 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4557 * exec.c (build_section_table): Likewise.
4558 * remote.c (remote_target::pass_signals): Likewise.
4559 * utils.c (n_spaces): Likewise.
4560 * cli/cli-script.c (document_command): Likewise.
4561 * i386-windows-tdep.c (core_process_module_section): Likewise.
4562 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4563
4564 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4565
4566 * symfile.c (reread_symbols): Clear objfile's section_offsets
4567 vector and section indices, re-compute them by calling
4568 sym_offsets.
4569
4570 2020-05-20 Tom Tromey <tromey@adacore.com>
4571
4572 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4573 (desc_one_bound, desc_index_type): Compute field name.
4574
4575 2020-05-20 Tom de Vries <tdevries@suse.de>
4576
4577 PR symtab/25833
4578 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4579
4580 2020-05-20 Alan Modra <amodra@gmail.com>
4581
4582 PR 25993
4583 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4584 bfd_set_filename.
4585 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4586 passed to bfd_set_filename.
4587 * symfile-mem.c (add_vsyscall_page): Likewise for string
4588 passed to symbol_file_add_from_memory.
4589 (symbol_file_add_from_memory): Make name param a const char* and
4590 don't strdup.
4591
4592 2020-05-20 Alan Modra <amodra@gmail.com>
4593
4594 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4595 rather than accessing bfd->filename directly.
4596 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4597 and use bfd_section_name.
4598 * dwarf2/frame.c (decode_frame_entry): Likewise.
4599 * exec.c (exec_set_section_address): Likewise.
4600 * solib-aix.c (solib_aix_bfd_open): Likewise.
4601 * stap-probe.c (get_stap_base_address): Likewise.
4602 * symfile.c (reread_symbols): Likewise.
4603
4604 2020-05-19 Tom Tromey <tromey@adacore.com>
4605
4606 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4607
4608 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4609
4610 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4611
4612 2020-05-19 Pedro Alves <palves@redhat.com>
4613
4614 * NEWS (set exec-file-mismatch): Adjust entry.
4615 * exec.c: Include "build-id.h".
4616 (validate_exec_file): Try to match build IDs instead of filenames.
4617 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4618 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4619 and pass down 'warn_if_slow'.
4620 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4621 gdb_bfd_open_closure to pass it down.
4622 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4623
4624 2020-05-19 Pedro Alves <palves@redhat.com>
4625
4626 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4627 * target.c (target_fileio_open_1): Rename to target_fileio_open
4628 and make extern. Use bool.
4629 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4630 (target_fileio_read_alloc_1): Adjust.
4631 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4632 (target_fileio_open_warn_if_slow): Delete declaration.
4633
4634 2020-05-19 Pedro Alves <palves@redhat.com>
4635
4636 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4637 Adjust all callers.
4638
4639 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4640
4641 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4642 whether disp is negative.
4643
4644 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4645
4646 * symfile.h (struct symfile_segment_data)
4647 <~symfile_segment_data>: Remove.
4648 <segment_info>: Change to std::vector.
4649 * symfile.c (default_symfile_segments): Update.
4650 * elfread.c (elf_symfile_segments): Update.
4651
4652 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4653
4654 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4655 <segments>: New.
4656 <segment_bases, segment_sizes>: Remove.
4657 * symfile.c (default_symfile_segments): Update.
4658 * elfread.c (elf_symfile_segments): Update.
4659 * remote.c (remote_target::get_offsets): Update.
4660 * solib-target.c (solib_target_relocate_section_addresses):
4661 Update.
4662
4663 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4664
4665 * symfile.h (struct symfile_segment_data): Initialize fields.
4666 <~symfile_segment_data>: Add.
4667 (symfile_segment_data_up): New.
4668 (struct sym_fns) <sym_segments>: Return a
4669 symfile_segment_data_up.
4670 (default_symfile_segments): Return a symfile_segment_data_up.
4671 (free_symfile_segment_data): Remove.
4672 (get_symfile_segment_data): Return a symfile_segment_data_up.
4673 * symfile.c (default_symfile_segments): Likewise.
4674 (get_symfile_segment_data): Likewise.
4675 (free_symfile_segment_data): Remove.
4676 (symfile_find_segment_sections): Update.
4677 * elfread.c (elf_symfile_segments): Return a
4678 symfile_segment_data_up.
4679 * remote.c (remote_target::get_offsets): Update.
4680 * solib-target.c (solib_target_relocate_section_addresses):
4681 Update.
4682 * symfile-debug.c (debug_sym_segments): Return a
4683 symfile_segment_data_up.
4684
4685 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4686
4687 PR build/25981
4688 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4689 Hardcode register numbers.
4690
4691 PR build/25981
4692 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4693 procfs_find_LDT_entry): Remove.
4694 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4695 procfs_find_LDT_entry): Remove.
4696 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4697 Remove.
4698
4699 2020-05-17 Pedro Alves <palves@redhat.com>
4700 Andrew Burgess <andrew.burgess@embecosm.com>
4701 Keno Fischer <keno@juliacomputing.com>
4702
4703 PR gdb/25741
4704 * breakpoint.c (build_target_condition_list): Update comments.
4705 (build_target_command_list): Update comments and skip matching
4706 locations.
4707 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4708 a separate function. Simplify "set breakpoint auto-hw off"
4709 handling.
4710 (insert_breakpoints): Update comment.
4711 (tracepoint_locations_match): New parameter. For breakpoints,
4712 compare location types too, if the caller wants to.
4713 (handle_automatic_hardware_breakpoints): New functions.
4714 (bp_location_is_less_than): Also sort by location type and
4715 hardware breakpoint length.
4716 (update_global_location_list): Handle "set breakpoint auto-hw on"
4717 here.
4718 (update_breakpoint_locations): Ask breakpoint_locations_match to
4719 ignore location types.
4720
4721 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4722
4723 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4724 type::name instead.
4725
4726 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4727
4728 * gdbtypes.h (struct type) <name, set_name>: New methods.
4729 (TYPE_CODE): Use type::name. Change all call sites used to set
4730 the name to use type::set_name instead.
4731
4732 2020-05-16 Tom Tromey <tom@tromey.com>
4733
4734 * top.c (quit_force): Update.
4735 * infrun.c (handle_no_resumed): Update.
4736 * top.h (all_uis): New function.
4737 (ALL_UIS): Remove.
4738
4739 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4740
4741 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4742
4743 2020-05-16 Pedro Alves <palves@redhat.com>
4744
4745 * ia64-linux-nat.c
4746 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4747 Declare method.
4748 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4749
4750 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4751
4752 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4753 (sparc64_adi_info): Likewise.
4754
4755 2020-05-15 Tom Tromey <tom@tromey.com>
4756
4757 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4758 block_objfile.
4759 (lookup_objfile_from_block): Remove.
4760 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4761 (lookup_global_symbol): Use block_objfile.
4762 * symtab.h (lookup_objfile_from_block): Don't declare.
4763 * printcmd.c (clear_dangling_display_expressions): Use
4764 block_objfile.
4765 * parse.c (operator_check_standard): Use block_objfile.
4766
4767 2020-05-15 Tom Tromey <tom@tromey.com>
4768
4769 * language.c (language_alloc_type_symbol): Set
4770 SYMBOL_SECTION.
4771 * symtab.c (initialize_objfile_symbol): Remove.
4772 (allocate_symbol): Remove.
4773 (allocate_template_symbol): Remove.
4774 * dwarf2/read.c (fixup_go_packaging): Use "new".
4775 (new_symbol): Use "new".
4776 (read_variable): Don't call initialize_objfile_symbol. Use
4777 "new".
4778 (read_func_scope): Use "new".
4779 * xcoffread.c (process_xcoff_symbol): Don't call
4780 initialize_objfile_symbol.
4781 (SYMBOL_DUP): Remove.
4782 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4783 "new".
4784 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4785 (allocate_template_symbol): Don't declare.
4786 (struct symbol): Add copy constructor. Change defaults.
4787 * jit.c (finalize_symtab): Use "new".
4788 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4789 Use "new".
4790 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4791 (common_block_end): Use "new".
4792 * mdebugread.c (parse_symbol): Use "new".
4793 (new_symbol): Likewise.
4794
4795 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4796
4797 * NEWS: Mention changes to help and apropos.
4798
4799 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4800
4801 * command.h (enum command_class): Improve comments, document
4802 that class_alias is for user-defined aliases, give the class
4803 name for each class, remove unused class_xdb.
4804 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4805 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4806 by a precise class.
4807 * infcmd.c (_initialize_infcmd): Likewise.
4808 * reverse.c (_initialize_reverse): Likewise.
4809 * stack.c (_initialize_stack): Likewise.
4810 * symfile.c (_initialize_symfile): Likewise.
4811 * tracepoint.c (_initialize_tracepoint): Likewise.
4812
4813 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4814
4815 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4816 when their aliased command is traversed.
4817 (help_cmd): Add fput_command_names_styled call to
4818 output command name and aliases when command has an alias.
4819
4820 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4821
4822 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4823 * cli/cli-decode.c (help_cmd_list): Declare as static,
4824 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4825 a command together with the command.
4826 (fput_command_name_styled, fput_command_names_styled): New functions.
4827 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4828 fput_command_name_styled.
4829 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4830 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4831
4832 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4833
4834 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4835 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4836 * command.h (cmd_show_list): Likewise.
4837 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4838 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4839
4840 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4841
4842 * unittests/command-def-selftests.c (traverse_command_structure):
4843 Verify all commands of a list have the same prefix command and
4844 that only the top cmdlist commands have a null prefix.
4845
4846 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4847
4848 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4849 as prefix, not one of its aliases.
4850 (set_cmd_prefix): Remove.
4851 (do_add_cmd): Centralize the setting of the prefix of a command, when
4852 command is defined after its full chain of prefix commands.
4853 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4854 (add_setshow_cmd_full): Likewise.
4855 (update_prefix_field_of_prefixed_commands): New function.
4856 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4857 update_prefix_field_of_prefixed_commands.
4858 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4859 addresses of remote_set_cmdlist and remote_show_cmdlist given
4860 as argument, not the address of an argument.
4861 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4862 * gdb/remote.c (_initialize_remote): Likewise.
4863
4864 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4865
4866 * cli/cli-cmds.c (alias_command): Check for an existing alias
4867 using lookup_cmd_composition, as valid_command_p is too strict
4868 and forbids aliases that are the prefix of an existing alias
4869 or command.
4870 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4871 command is properly recognised as a valid command.
4872
4873 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4874
4875 * unittests/help-doc-selftests.c: Rename to
4876 unittests/command-def-selftests.c
4877 * unittests/command-def-selftests.c (help_doc_tests): Update some
4878 comments.
4879 (command_structure_tests, traverse_command_structure): New namespace
4880 and function.
4881 (command_structure_invariants_tests): New function.
4882 (_initialize_command_def_selftests) Renamed from
4883 _initialize_help_doc_selftests, register command_structure_invariants
4884 selftest.
4885
4886 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4887
4888 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4889 an alias of 'show'.
4890
4891 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4892
4893 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4894 ada_is_fixed_point_type. Update all callers.
4895 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4896 all callers.
4897 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4898 Update all callers.
4899 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4900 print_fixed_point_type. Update all callers.
4901 * ada-valprint.c (ada_value_print_num): Replace call to
4902 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4903
4904 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4905
4906 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4907 processors.
4908 (cpu_supports_bts): Add CV_AMD case.
4909
4910 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4911 Simon Marchi <simon.marchi@efficios.com>
4912
4913 * infrun.c (stop_all_threads): Collect multiple wait events at
4914 each pass.
4915
4916 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4917
4918 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4919 type::code instead.
4920
4921 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4922
4923 * gdbtypes.h (struct type) <code, set_code>: New methods.
4924 (TYPE_CODE): Use type::code. Change all call sites used to set
4925 the code to use type::set_code instead.
4926
4927 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4928 Tom de Vries <tdevries@suse.de>
4929 Pedro Alves <palves@redhat.com>
4930
4931 PR threads/25478
4932 * infrun.c (stop_all_threads): Do NOT ignore
4933 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4934 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4935 received.
4936 (handle_no_resumed): Remove code handling a live inferior with no
4937 threads.
4938 * remote.c (has_single_non_exited_thread): New.
4939 (remote_target::update_thread_list): Do not delete a thread if is
4940 the last thread of the process.
4941 * thread.c (thread_select): Call delete_exited_threads instead of
4942 prune_threads.
4943
4944 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4945
4946 * infrun.c (stop_all_threads): Enable/disable thread events of all
4947 targets. Move a debug message denoting the end of the function
4948 into the SCOPED_EXIT block.
4949
4950 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4951
4952 * process-stratum-target.h: Include <set>.
4953 (all_non_exited_process_targets, switch_to_target_no_thread): New
4954 function declarations.
4955 * process-stratum-target.c (all_non_exited_process_targets)
4956 (switch_to_target_no_thread): New function implementations.
4957
4958 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4959
4960 * infrun.c (handle_inferior_event): Extract out a piece of code
4961 into...
4962 (mark_non_executing_threads): ...this new function.
4963
4964 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4965
4966 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4967 use.
4968
4969 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4970
4971 * regcache.c (regcache_read_pc_protected): New function
4972 implementation that returns 0 if the PC cannot read via
4973 'regcache_read_pc'.
4974 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4975 instead of 'regcache_read_pc'.
4976 (keep_going_pass_signal): Ditto.
4977
4978 2020-05-13 Tom Tromey <tromey@adacore.com>
4979
4980 * ada-lang.c (align_value): Remove.
4981 (ada_template_to_fixed_record_type_1): Use align_up.
4982
4983 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4984
4985 * async-event.c: Update the copyright year.
4986 * async-event.h: Update the copyright year.
4987
4988 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4989
4990 * objfiles.h (is_addr_in_objfile,
4991 shared_objfile_contains_address_p): Return bool.
4992 * objfile.c (is_addr_in_objfile,
4993 shared_objfile_contains_address_p): Return bool.
4994
4995 2020-05-11 Tom Tromey <tromey@adacore.com>
4996
4997 * cli/cli-cmds.c (info_command): Restore.
4998 (_initialize_cli_cmds): Use add_prefix_command for "info".
4999 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5000
5001 2020-05-11 Tom Tromey <tromey@adacore.com>
5002
5003 * ada-lang.c (ada_value_primitive_field): Now public.
5004 * ada-lang.h (ada_value_primitive_field): Declare.
5005 * ada-valprint.c (print_field_values): Use
5006 ada_value_primitive_field for wrapper fields.
5007
5008 2020-05-11 Tom de Vries <tdevries@suse.de>
5009
5010 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5011 MODULE_DOMAIN.
5012
5013 2020-05-11 Tom de Vries <tdevries@suse.de>
5014
5015 PR symtab/25941
5016 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5017 with length 0, if not gdb-produced.
5018 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5019
5020 2020-05-09 Tom de Vries <tdevries@suse.de>
5021
5022 PR gdb/25955
5023 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5024 calculation.
5025
5026 2020-05-09 Tom Tromey <tom@tromey.com>
5027
5028 * top.c (server_command): Now bool.
5029 * top.h (server_command): Now bool.
5030
5031 2020-05-08 Tom Tromey <tromey@adacore.com>
5032
5033 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5034 already being processed.
5035
5036 2020-05-08 Tom Tromey <tom@tromey.com>
5037
5038 * printcmd.c (struct display) <next>: Remove.
5039 <display>: New constructor.
5040 <exp_string>: Now a std::string.
5041 <enabled_p>: Now a bool.
5042 (display_number): Move definition earlier.
5043 (displays): Rename from display_chain. Now a std::vector.
5044 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5045 (display_command): Update.
5046 (do_one_display, disable_display)
5047 (enable_disable_display_command, do_enable_disable_display):
5048 Update.
5049 (free_display): Remove.
5050 (clear_displays): Rewrite.
5051 (delete_display): Update.
5052 (map_display_numbers): Use function_view. Remove "data"
5053 parameter. Update.
5054 (do_delete_display): Remove.
5055 (undisplay_command): Update.
5056 (do_one_display, do_displays, disable_display)
5057 (info_display_command): Update.
5058 (do_enable_disable_display): Remove.
5059 (enable_disable_display_command)
5060 (clear_dangling_display_expressions): Update.
5061
5062 2020-05-08 Tom Tromey <tom@tromey.com>
5063
5064 * symtab.c (set_symbol_cache_size)
5065 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5066 (maintenance_print_symbol_cache_statistics): Update.
5067 * symmisc.c (print_symbol_bcache_statistics)
5068 (print_objfile_statistics, maintenance_print_objfiles)
5069 (maintenance_info_symtabs, maintenance_check_symtabs)
5070 (maintenance_expand_symtabs, maintenance_info_line_tables):
5071 Update.
5072 * symfile-debug.c (set_debug_symfile): Update.
5073 * source.c (forget_cached_source_info): Update.
5074 * python/python.c (gdbpy_progspaces): Update.
5075 * psymtab.c (maintenance_info_psymtabs): Update.
5076 * probe.c (parse_probes): Update.
5077 * linespec.c (iterate_over_all_matching_symtabs)
5078 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5079 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5080 * exec.c (exec_target::close): Update.
5081 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5082 * breakpoint.c (print_one_breakpoint_location)
5083 (create_longjmp_master_breakpoint)
5084 (create_std_terminate_master_breakpoint): Update.
5085 * progspace.c (program_spaces): Now a std::vector.
5086 (maybe_new_address_space): Update.
5087 (add_program_space): Remove.
5088 (program_space::program_space): Update.
5089 (remove_program_space): Update.
5090 (number_of_program_spaces): Remove.
5091 (print_program_space, update_address_spaces): Update.
5092 * progspace.h (program_spaces): Change type.
5093 (ALL_PSPACES): Remove.
5094 (number_of_program_spaces): Don't declare.
5095 (struct program_space) <next>: Remove.
5096
5097 2020-05-08 Tom Tromey <tom@tromey.com>
5098
5099 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5100 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5101 (enable_break): Update.
5102 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5103 (frv_fdpic_find_canonical_descriptor): Update.
5104 (frv_fetch_objfile_link_map): Update.
5105 * progspace.c (program_space::free_all_objfiles): Update.
5106 (program_space::solibs): New method.
5107 * progspace.h (struct program_space) <solibs>: New method.
5108 * solist.h (master_so_list): Don't declare.
5109 (ALL_SO_LIBS): Remove.
5110 * solib.h (so_list_head): Remove.
5111 (update_solib_list): Update comment.
5112 * solib.c (master_so_list): Remove.
5113 (solib_used, update_solib_list, solib_add)
5114 (info_sharedlibrary_command, clear_solib)
5115 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5116
5117 2020-05-08 Tom Tromey <tom@tromey.com>
5118
5119 * extension.c (extension_languages): Now a std::array.
5120 (ALL_EXTENSION_LANGUAGES): Remove.
5121 (get_ext_lang_defn, get_ext_lang_of_file)
5122 (eval_ext_lang_from_control_command): Update.
5123 (finish_ext_lang_initialization)
5124 (auto_load_ext_lang_scripts_for_objfile)
5125 (ext_lang_type_printers::ext_lang_type_printers)
5126 (apply_ext_lang_type_printers)
5127 (ext_lang_type_printers::~ext_lang_type_printers)
5128 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5129 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5130 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5131 (get_matching_xmethod_workers, ext_lang_colorize)
5132 (ext_lang_before_prompt): Update.
5133 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5134
5135 2020-05-08 Tom Tromey <tom@tromey.com>
5136
5137 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5138 overload.
5139 <swap_string, m_string>: Remove.
5140 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5141 Update.
5142 * stabsread.c (define_symbol, read_type): Update.
5143 * linespec.c (find_linespec_symbols): Update.
5144 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5145 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5146 * dbxread.c (read_dbx_symtab): Update.
5147 * cp-support.h (cp_canonicalize_string_full)
5148 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5149 Return unique_xmalloc_ptr.
5150 * cp-support.c (inspect_type): Update.
5151 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5152 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5153 Likewise.
5154 * c-typeprint.c (print_name_maybe_canonical): Update.
5155 * break-catch-throw.c (check_status_exception_catchpoint):
5156 Update.
5157
5158 2020-05-08 Tom de Vries <tdevries@suse.de>
5159
5160 * infrun.c (follow_fork): Copy current_line and current_symtab to
5161 child thread.
5162
5163 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5164
5165 * async-event.c (struct async_signal_handler, struct
5166 async_event_handler): Reformat, remove typedef.
5167
5168 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5169
5170 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5171 access thistype->main_type->dyn_prop_list directly.
5172
5173 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5174
5175 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5176 (remove_dyn_prop): Remove. Update all users to use
5177 type::remove_dyn_prop.
5178 * gdbtypes.c (remove_dyn_prop): Rename to...
5179 (type::remove_dyn_prop): ... this.
5180
5181 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5182
5183 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5184 (add_dyn_prop): Remove. Update all users to use
5185 type::add_dyn_prop.
5186 * gdbtypes.c (add_dyn_prop): Rename to...
5187 (type::add_dyn_prop): ... this.
5188
5189 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5190
5191 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5192 (get_dyn_prop): Remove. Update all users to use
5193 type::dyn_prop.
5194 * gdbtypes.c (get_dyn_prop): Rename to...
5195 (type::dyn_prop): ... this.
5196
5197 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5198
5199 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5200
5201 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5202
5203 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5204 instruction, skip it if it's there.
5205
5206 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5207
5208 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5209
5210 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5211
5212 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5213 * gdbtypes.c (recursive_dump_type): Remove use of
5214 TYPE_INCOMPLETE.
5215
5216 2020-05-03 Tom Tromey <tom@tromey.com>
5217
5218 * breakpoint.c (catch_command, tcatch_command): Remove.
5219 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5220 add_show_prefix_cmd.
5221 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5222 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5223 Remove.
5224 (add_internal_problem_command): Use add_basic_prefix_cmd,
5225 add_show_prefix_cmd.
5226 * mips-tdep.c (set_mipsfpu_command): Remove.
5227 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5228 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5229 (_initialize_index_cache): Use add_basic_prefix_cmd.
5230 * memattr.c (dummy_cmd): Remove.
5231 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5232 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5233 (_initialize_tui_win): Use add_basic_prefix_cmd,
5234 add_show_prefix_cmd.
5235 * cli/cli-logging.c (set_logging_command): Remove.
5236 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5237 add_show_prefix_cmd.
5238 (show_logging_command): Remove.
5239 * target.c (target_command): Remove.
5240 (add_target): Use add_basic_prefix_cmd.
5241
5242 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5243
5244 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5245
5246 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5247
5248 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5249 info_command.
5250
5251 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5252
5253 * nbsd-nat.c (nbsd_enable_proc_events)
5254 (nbsd_nat_target::post_startup_inferior): Add.
5255 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5256 (nbsd_nat_target::update_thread_list): Rewrite.
5257 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5258 "PTRACE_LWP_CREATE".
5259 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5260
5261 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5262
5263 * stack.c (_initialize_stack): Remove duplicated creation
5264 of "frame" command and "f" alias.
5265
5266 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5267
5268 PR gdb/18706
5269 * gdbtypes.c (check_typedef): Calculate size of array of
5270 stubbed type.
5271
5272 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5273
5274 PR gdb/15559
5275 * i386-tdep.c (i386_push_dummy_call): Call
5276 i386_thiscall_push_dummy_call.
5277 (i386_thiscall_push_dummy_call): New function.
5278 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5279 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5280 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5281
5282 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5283
5284 * gdbarch.sh (do_read): Add shellcheck disable directive for
5285 warning SC2162.
5286
5287 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5288
5289 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5290 "referenced but not assigned" warning.
5291
5292 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5293
5294 * gdbarch.sh: Remove code that sets fallbackdefault.
5295
5296 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5297
5298 * gdbarch.sh: Use shell operators && and || instead of
5299 -a and -o.
5300
5301 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5302
5303 * gdbarch.sh: Use $(...) instead of `...`.
5304
5305 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5306
5307 * gdbarch.sh: Use double quotes around variables.
5308
5309 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5310
5311 * gdbarch.sh: Use %s with printf, instead of variables in the
5312 format string.
5313
5314 2020-04-29 Tom Tromey <tromey@adacore.com>
5315
5316 PR ada/25875:
5317 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5318 type fields here.
5319 (read_enumeration_type): Call
5320 update_enumeration_type_from_children later. Update comments.
5321 (process_enumeration_scope): Don't create type fields.
5322
5323 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5324
5325 * nbsd-tdep.c: Include "xml-syscall.h".
5326 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5327
5328 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5329
5330 * nbsd-nat.c: Include "sys/wait.h".
5331 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5332 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5333 (nbsd_nat_target::remove_exec_catchpoint)
5334 (nbsd_nat_target::set_syscall_catchpoint): Add.
5335 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5336 (nbsd_nat_target::insert_exec_catchpoint)
5337 (nbsd_nat_target::remove_exec_catchpoint)
5338 (nbsd_nat_target::set_syscall_catchpoint): Add.
5339 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5340 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5341 `nbsd_get_syscall_number'.
5342
5343 2020-04-29 Tom Tromey <tom@tromey.com>
5344
5345 * stack.c (print_block_frame_labels): Remove.
5346
5347 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5348
5349 PR gdb/17320
5350 * ada-valprint.c (val_print_packed_array_elements): Move array
5351 end bracket to new line.
5352 (ada_val_print_string): Remove extra spaces before first array
5353 element.
5354 * c-valprint.c (c_value_print_array): Likewise.
5355 * m2-valprint.c (m2_print_array_contents): Likewise.
5356 (m2_value_print_inner): Likewise.
5357 * p-valprint.c (pascal_value_print_inner): Likewise.
5358 * valprint.c (generic_val_print_array): Likewise.
5359 (value_print_array_elements): Move first array element and array
5360 end bracket to new line.
5361
5362 2020-04-29 Tom de Vries <tdevries@suse.de>
5363
5364 PR symtab/25889
5365 * linespec.c (find_method): Fix ix calculation.
5366
5367 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5368
5369 * syscalls/update-netbsd.sh: New file.
5370 * syscalls/netbsd.xml: Regenerate.
5371 * data-directory/Makefile.in: Register `netbsd.xml' in
5372 `SYSCALLS_FILES'.
5373
5374 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5375
5376 * syscalls/update-freebsd.sh: Add double quotes.
5377
5378 2020-04-28 Tom Tromey <tom@tromey.com>
5379
5380 * NEWS: Update.
5381 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5382 (cmdpy_init): Allow class_tui.
5383
5384 2020-04-28 Mark Williams <mark@myosotissp.com>
5385
5386 PR gdb/24480
5387 * dwarf2read.c: Add missing assingments to list_in_scope when
5388 start_symtab was already called.
5389
5390 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5391
5392 PR gdb/25881
5393 * dwarf2/read.c (offset_map_type): Use
5394 gdb:hash_enum<sect_offset> as hash function.
5395
5396 2020-04-28 Tom de Vries <tdevries@suse.de>
5397
5398 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5399 with DW_AT_signature.
5400
5401 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5402
5403 * configure.ac: Remove check for fs_base/gs_base in
5404 user_regs_struct.
5405 * configure: Re-generate.
5406 * config.in: Re-generate.
5407 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5408 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5409 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5410
5411 2020-04-27 Luis Machado <luis.machado@linaro.org>
5412
5413 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5414 problematic inline frame unwinding situation.
5415 * frame.c (frame_id_computed_p): New function.
5416 * frame.h (frame_id_computed_p): New prototype.
5417
5418 2020-04-26 Tom Tromey <tom@tromey.com>
5419
5420 * command.h (enum command_class) <class_pseudo>: Remove.
5421
5422 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5423
5424 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5425 and whitespace.
5426
5427 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5428
5429 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5430 `PT_GET_PROCESS_STATE' block.
5431
5432 2020-04-24 Tom Tromey <tom@tromey.com>
5433
5434 * symtab.h (symbol_get_demangled_name): Don't declare.
5435 * symtab.c (symbol_get_demangled_name): Remove.
5436 (general_symbol_info::natural_name)
5437 (general_symbol_info::demangled_name): Update.
5438
5439 2020-04-24 Tom Tromey <tom@tromey.com>
5440
5441 PR rust/25025:
5442 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5443
5444 2020-04-24 Tom Tromey <tom@tromey.com>
5445
5446 PR symtab/12707:
5447 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5448 exists.
5449 (new_symbol): Likewise.
5450 * compile/compile-object-load.c (get_out_value_type): Use
5451 symbol_matches_search_name.
5452
5453 2020-04-24 Tom Tromey <tom@tromey.com>
5454
5455 * dwarf2/read.c (add_partial_symbol): Do not call
5456 compute_and_set_names.
5457
5458 2020-04-24 Tom Tromey <tom@tromey.com>
5459
5460 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5461 overload.
5462
5463 2020-04-24 Tom Tromey <tom@tromey.com>
5464
5465 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5466 (add_psymbol_to_list): New overload. Make old overload call new
5467 one.
5468 * psympriv.h (add_psymbol_to_list): New overload.
5469
5470 2020-04-24 Tom Tromey <tom@tromey.com>
5471
5472 * dwarf2/read.c (partial_die_info::read) <case
5473 DW_AT_linkage_name>: Use value_as_string.
5474 (dwarf2_string_attr): Use value_as_string.
5475 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5476 method.
5477 * dwarf2/attribute.c (attribute::value_as_string): New method.
5478
5479 2020-04-24 Tom Tromey <tom@tromey.com>
5480
5481 * symtab.c (general_symbol_info::natural_name)
5482 (general_symbol_info::demangled_name): Check for language_rust.
5483
5484 2020-04-24 Tom Tromey <tom@tromey.com>
5485
5486 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5487 (dwarf2_physname): ... from here.
5488 (partial_die_info::read): Add Rust "{" hack.
5489
5490 2020-04-24 Tom Tromey <tom@tromey.com>
5491
5492 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5493 method.
5494 (symbol_set_demangled_name): Don't declare.
5495 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5496 symbol_set_demangled_name.
5497 (general_symbol_info::set_language)
5498 (general_symbol_info::compute_and_set_names): Update.
5499 * minsyms.c (minimal_symbol_reader::install): Update.
5500 * dwarf2/read.c (new_symbol): Update.
5501
5502 2020-04-24 Tom Tromey <tromey@adacore.com>
5503
5504 PR python/23662:
5505 * python/py-type.c (convert_field): Handle
5506 FIELD_LOC_KIND_DWARF_BLOCK.
5507 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5508 (typy_get_dynamic): Nw function.
5509 (type_object_getset): Add "dynamic".
5510 * NEWS: Add entry.
5511
5512 2020-04-24 Tom Tromey <tromey@adacore.com>
5513
5514 * ada-typeprint.c (print_choices, print_variant_part)
5515 (print_record_field_types_dynamic): New functions.
5516 (print_record_field_types): Use print_record_field_types_dynamic.
5517
5518 2020-04-24 Tom Tromey <tromey@adacore.com>
5519
5520 * dwarf2/read.c (handle_data_member_location): New overload.
5521 (dwarf2_add_field): Use it.
5522 (decode_locdesc): Add "computed" parameter. Update comment.
5523 * gdbtypes.c (is_dynamic_type_internal): Also look for
5524 FIELD_LOC_KIND_DWARF_BLOCK.
5525 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5526 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5527 virtual base classes.
5528 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5529 FIELD_LOC_KIND_DWARF_BLOCK.
5530
5531 2020-04-24 Tom Tromey <tromey@adacore.com>
5532
5533 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5534 * gdbtypes.c (is_dynamic_type_internal): Check
5535 TYPE_HAS_DYNAMIC_LENGTH.
5536 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5537 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5538 New macros.
5539 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5540 constant.
5541
5542 2020-04-24 Tom Tromey <tromey@adacore.com>
5543
5544 * dwarf2/read.c (struct variant_field): Rewrite.
5545 (struct variant_part_builder): New.
5546 (struct nextfield): Remove "variant" field. Add "offset".
5547 (struct field_info): Add "current_variant_part" and
5548 "variant_parts".
5549 (alloc_discriminant_info): Remove.
5550 (alloc_rust_variant): New function.
5551 (quirk_rust_enum): Update.
5552 (dwarf2_add_field): Set "offset" member. Don't handle
5553 DW_TAG_variant_part.
5554 (offset_map_type): New typedef.
5555 (convert_variant_range, create_one_variant)
5556 (create_one_variant_part, create_variant_parts)
5557 (add_variant_property): New functions.
5558 (dwarf2_attach_fields_to_type): Call add_variant_property.
5559 (read_structure_type): Don't handle DW_TAG_variant_part.
5560 (handle_variant_part, handle_variant): New functions.
5561 (handle_struct_member_die): Use them.
5562 (process_structure_scope): Don't handle variant parts.
5563 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5564 (struct discriminant_info): Remove.
5565 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5566 (struct main_type) <flag_discriminated_union>: Remove.
5567 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5568 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5569 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5570 Update.
5571 * valops.c (value_union_variant): Remove.
5572 * value.h (value_union_variant): Don't declare.
5573
5574 2020-04-24 Tom Tromey <tromey@adacore.com>
5575
5576 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5577 (ada_value_primitive_packed_val): Update.
5578 * ada-valprint.c (ada_value_print_1): Update.
5579 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5580 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5581 just an address. Use evaluate_for_locexpr_baton.
5582 (dwarf2_evaluate_property): Update.
5583 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5584 array_view.
5585 * findvar.c (default_read_var_value): Update.
5586 * gdbtypes.c (compute_variant_fields_inner)
5587 (resolve_dynamic_type_internal): Update.
5588 (resolve_dynamic_type): Change type of valaddr parameter.
5589 * gdbtypes.h (resolve_dynamic_type): Update.
5590 * valarith.c (value_subscripted_rvalue): Update.
5591 * value.c (value_from_contents_and_address): Update.
5592
5593 2020-04-24 Tom Tromey <tromey@adacore.com>
5594
5595 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5596 "push_initial_value" parameter.
5597 (dwarf2_evaluate_property): Likewise.
5598 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5599
5600 2020-04-24 Tom Tromey <tromey@adacore.com>
5601
5602 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5603 (variant::matches, compute_variant_fields_recurse)
5604 (compute_variant_fields_inner, compute_variant_fields): New
5605 functions.
5606 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5607 Use resolved_type after type is made.
5608 (operator==): Add new cases.
5609 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5610 (struct discriminant_range, struct variant, struct variant_part):
5611 New.
5612 (union dynamic_prop_data) <variant_parts, original_type>: New
5613 members.
5614 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5615 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5616 constants.
5617 * value.c (unpack_bits_as_long): Now public.
5618 * value.h (unpack_bits_as_long): Declare.
5619
5620 2020-04-24 Tom Tromey <tromey@adacore.com>
5621
5622 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5623 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5624
5625 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5626
5627 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5628
5629 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5630
5631 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5632 (remove_fork_catchpoint, post_startup_inferior)
5633 (post_attach): Move...
5634 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5635 (remove_fork_catchpoint, post_startup_inferior)
5636 (post_attach): ...here.
5637 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5638 (remove_fork_catchpoint, post_startup_inferior)
5639 (post_attach): Move...
5640 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5641 (remove_fork_catchpoint, post_startup_inferior)
5642 (post_attach): ...here.
5643
5644 2020-04-24 Tom Tromey <tromey@adacore.com>
5645
5646 * nat/windows-nat.h (struct windows_thread_info)
5647 <pc_adjusted>: New member.
5648 * windows-nat.c (windows_fetch_one_register): Check
5649 pc_adjusted.
5650 (windows_nat_target::get_windows_debug_event)
5651 (windows_nat_target::wait): Set pc_adjusted.
5652
5653 2020-04-24 Tom de Vries <tdevries@suse.de>
5654
5655 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5656 Run gdb-add-index inside temp dir.
5657
5658 2020-04-23 Tom Tromey <tromey@adacore.com>
5659
5660 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5661 in loop.
5662
5663 2020-04-23 Luis Machado <luis.machado@linaro.org>
5664
5665 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5666 get_frame_register instead of gdbarch_unwind_pc.
5667
5668 2020-04-23 Tom de Vries <tdevries@suse.de>
5669
5670 * symtab.c (lookup_global_symbol): Prefer def over decl.
5671
5672 2020-04-23 Tom de Vries <tdevries@suse.de>
5673
5674 PR symtab/25807
5675 * block.c (best_symbol, better_symbol): Promote to external.
5676 * block.h (best_symbol, better_symbol): Declare.
5677 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5678 decl.
5679
5680 2020-04-23 Tom Tromey <tromey@adacore.com>
5681
5682 PR ada/25837:
5683 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5684 "const char *", not a "const std::string &".
5685 <name_and_matcher::operator==>: Update.
5686 * unittests/lookup_name_info-selftests.c: Change type of
5687 "result".
5688
5689 2020-04-23 Tom Tromey <tom@tromey.com>
5690
5691 * inferior.h (iterate_over_inferiors): Don't declare.
5692 * inferior.c (iterate_over_inferiors): Remove.
5693 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5694 Remove.
5695 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5696 use iterate_over_inferiors.
5697 (darwin_resume_inferior_it)
5698 (struct resume_inferior_threads_param)
5699 (darwin_resume_inferior_threads_it): Remove.
5700 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5701
5702 2020-04-23 Tom de Vries <tdevries@suse.de>
5703
5704 * blockframe.c (find_pc_partial_function): Use
5705 find_pc_sect_compunit_symtab rather than
5706 objfile->sf->qf->find_pc_sect_compunit_symtab.
5707
5708 2020-04-22 Tom de Vries <tdevries@suse.de>
5709
5710 PR symtab/25764
5711 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5712 in psymtabs.
5713
5714 2020-04-22 Tom de Vries <tdevries@suse.de>
5715
5716 PR symtab/25801
5717 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5718 symtabs.
5719
5720 2020-04-22 Tom de Vries <tdevries@suse.de>
5721
5722 PR symtab/25700
5723 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5724 CU if already created.
5725
5726 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5727
5728 * infrun.c (displaced_step_fixup): Switch to the event_thread
5729 before calling displaced_step_restore, not after.
5730
5731 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5732
5733 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5734 its inferior is not recorded by us.
5735 (record_btrace_target_open): Replace call to
5736 all_non_exited_threads () with call to current_inferior
5737 ()->non_exited_threads ().
5738 (record_btrace_target::stop_recording): Likewise.
5739 (record_btrace_target::close): Likewise.
5740 (record_btrace_target::wait): Likewise.
5741 (record_btrace_target::record_stop_replaying): Likewise.
5742
5743 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5744
5745 * btrace.c (btrace_enable): Throw an error on double enables and
5746 when enabling recording fails.
5747 (btrace_disable): Throw an error if the thread is not recorded.
5748
5749 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5750
5751 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5752 request if we do not have a thread_info.
5753
5754 2020-04-21 Tom de Vries <tdevries@suse.de>
5755
5756 PR gdb/25471
5757 * thread.c
5758 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5759 exception in get_frame_id.
5760
5761 2020-04-20 Tom Tromey <tromey@adacore.com>
5762
5763 * python/python.c (struct gdbpy_event): Mark move constructor as
5764 noexcept.
5765 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5766 constructor as noexcept.
5767 * completer.h (struct completion_result): Mark move constructor as
5768 noexcept.
5769 * completer.c (completion_result::completion_result): Use
5770 initialization style. Don't call reset_match_list.
5771
5772 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5773
5774 * MAINTAINERS (Write After Approval): Add myself.
5775
5776 2020-04-18 Tom Tromey <tom@tromey.com>
5777
5778 * windows-tdep.c (init_w32_command_list)
5779 (w32_prefix_command_valid): Restore.
5780 (_initialize_windows_tdep): Call init_w32_command_list.
5781
5782 2020-04-18 Tom Tromey <tom@tromey.com>
5783
5784 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5785 * value.c (value_fn_field): Update.
5786 * valops.c (find_function_in_inferior)
5787 (value_allocate_space_in_inferior): Update.
5788 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5789 Update.
5790 * tui/tui-source.c (tui_source_window::set_contents): Update.
5791 * symtab.c (lookup_global_or_static_symbol)
5792 (find_function_start_sal_1, skip_prologue_sal)
5793 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5794 * symmisc.c (dump_msymbols, dump_symtab_1)
5795 (maintenance_print_one_line_table): Update.
5796 * symfile.c (init_entry_point_info, section_is_mapped)
5797 (list_overlays_command, simple_read_overlay_table)
5798 (simple_overlay_update_1): Update.
5799 * stap-probe.c (handle_stap_probe): Update.
5800 * stabsread.c (dbx_init_float_type, define_symbol)
5801 (read_one_struct_field, read_enum_type, read_range_type): Update.
5802 * source.c (info_line_command): Update.
5803 * python/python.c (gdbpy_source_objfile_script)
5804 (gdbpy_execute_objfile_script): Update.
5805 * python/py-type.c (save_objfile_types): Update.
5806 * python/py-objfile.c (py_free_objfile): Update.
5807 * python/py-inferior.c (python_new_objfile): Update.
5808 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5809 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5810 (maintenance_check_psymtabs): Update.
5811 * printcmd.c (info_address_command): Update.
5812 * objfiles.h (struct objfile) <arch>: New method, from
5813 get_objfile_arch.
5814 (get_objfile_arch): Don't declare.
5815 * objfiles.c (get_objfile_arch): Remove.
5816 (filter_overlapping_sections): Update.
5817 * minsyms.c (msymbol_is_function): Update.
5818 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5819 (output_nondebug_symbol): Update.
5820 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5821 (mdebug_expand_psymtab): Update.
5822 * machoread.c (macho_add_oso_symfile): Update.
5823 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5824 Update.
5825 * linux-fork.c (checkpoint_command): Update.
5826 * linespec.c (convert_linespec_to_sals): Update.
5827 * jit.c (finalize_symtab): Update.
5828 * infrun.c (insert_exception_resume_from_probe): Update.
5829 * ia64-tdep.c (ia64_find_unwind_table): Update.
5830 * hppa-tdep.c (internalize_unwinds): Update.
5831 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5832 Update.
5833 * gcore.c (call_target_sbrk): Update.
5834 * elfread.c (record_minimal_symbol, elf_symtab_read)
5835 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5836 (elf_gnu_ifunc_resolve_by_got): Update.
5837 * dwarf2/read.c (create_addrmap_from_index)
5838 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5839 (read_debug_names_from_section)
5840 (process_psymtab_comp_unit_reader, add_partial_symbol)
5841 (add_partial_subprogram, process_full_comp_unit)
5842 (read_file_scope, read_func_scope, read_lexical_block_scope)
5843 (read_call_site_scope, dwarf2_ranges_read)
5844 (dwarf2_record_block_ranges, dwarf2_add_field)
5845 (mark_common_block_symbol_computed, read_tag_pointer_type)
5846 (read_tag_string_type, dwarf2_init_float_type)
5847 (dwarf2_init_complex_target_type, read_base_type)
5848 (partial_die_info::read, partial_die_info::read)
5849 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5850 (dwarf2_fetch_die_loc_sect_off): Update.
5851 * dwarf2/loc.c (dwarf2_find_location_expression)
5852 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5853 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5854 (dwarf2_loc_desc_get_symbol_read_needs)
5855 (locexpr_describe_location_piece, locexpr_describe_location_1)
5856 (loclist_describe_location): Update.
5857 * dwarf2/index-write.c (write_debug_names): Update.
5858 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5859 * dtrace-probe.c (dtrace_process_dof): Update.
5860 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5861 (process_one_symbol): Update.
5862 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5863 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5864 (coff_read_enum_type): Update.
5865 * cli/cli-cmds.c (edit_command, list_command): Update.
5866 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5867 * breakpoint.c (create_overlay_event_breakpoint)
5868 (create_longjmp_master_breakpoint)
5869 (create_std_terminate_master_breakpoint)
5870 (create_exception_master_breakpoint, get_sal_arch): Update.
5871 * block.c (block_gdbarch): Update.
5872 * annotate.c (annotate_source_line): Update.
5873
5874 2020-04-17 Tom Tromey <tromey@adacore.com>
5875
5876 * auto-load.c (show_auto_load_cmd): Remove.
5877 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5878 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5879 (maintenance_print_arc_command): Remove.
5880 * tui/tui-win.c (tui_command): Remove.
5881 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5882 * tui/tui-layout.c (tui_layout_command): Remove.
5883 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5884 * python/python.c (user_set_python, user_show_python): Remove.
5885 (_initialize_python): Use add_basic_prefix_cmd,
5886 add_show_prefix_cmd.
5887 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5888 (install_gdb_commands): Use add_basic_prefix_cmd,
5889 add_show_prefix_cmd.
5890 (info_guile_command): Remove.
5891 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5892 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5893 add_show_prefix_cmd.
5894 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5895 Remove do_set and do_show parameters.
5896 * cli/cli-style.c (set_style, show_style): Remove.
5897 (_initialize_cli_style): Use add_basic_prefix_cmd,
5898 add_show_prefix_cmd.
5899 (cli_style_option::add_setshow_commands): Remove do_set and
5900 do_show parameters.
5901 (cli_style_option::add_setshow_commands): Use
5902 add_basic_prefix_cmd, add_show_prefix_cmd.
5903 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5904 (set_style_name): Remove.
5905 * cli/cli-dump.c (dump_command, append_command): Remove.
5906 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5907 (tekhex_dump_command, binary_dump_command)
5908 (binary_append_command): Remove.
5909 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5910 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5911 (init_w32_command_list): Remove; move into ...
5912 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5913 * valprint.c (set_print, show_print, set_print_raw)
5914 (show_print_raw): Remove.
5915 (_initialize_valprint): Use add_basic_prefix_cmd,
5916 add_show_prefix_cmd.
5917 * typeprint.c (set_print_type, show_print_type): Remove.
5918 (_initialize_typeprint): Use add_basic_prefix_cmd,
5919 add_show_prefix_cmd.
5920 * record.c (set_record_command, show_record_command): Remove.
5921 (_initialize_record): Use add_basic_prefix_cmd,
5922 add_show_prefix_cmd.
5923 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5924 add_show_prefix_cmd.
5925 (info_command, show_command, set_debug, show_debug): Remove.
5926 * top.h (set_history, show_history): Don't declare.
5927 * top.c (set_history, show_history): Remove.
5928 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5929 (unset_tdesc_cmd): Remove.
5930 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5931 add_show_prefix_cmd.
5932 * symtab.c (info_module_command): Remove.
5933 (_initialize_symtab): Use add_basic_prefix_cmd.
5934 * symfile.c (overlay_command): Remove.
5935 (_initialize_symfile): Use add_basic_prefix_cmd.
5936 * sparc64-tdep.c (info_adi_command): Remove.
5937 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5938 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5939 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5940 add_show_prefix_cmd.
5941 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5942 (_initialize_serial): Use add_basic_prefix_cmd,
5943 add_show_prefix_cmd.
5944 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5945 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5946 add_show_prefix_cmd.
5947 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5948 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5949 add_show_prefix_cmd.
5950 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5951 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5952 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5953 add_show_prefix_cmd.
5954 * remote.c (remote_command, set_remote_cmd): Remove.
5955 (_initialize_remote): Use add_basic_prefix_cmd.
5956 * record-full.c (set_record_full_command)
5957 (show_record_full_command): Remove.
5958 (_initialize_record_full): Use add_basic_prefix_cmd,
5959 add_show_prefix_cmd.
5960 * record-btrace.c (cmd_set_record_btrace)
5961 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5962 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5963 (cmd_show_record_btrace_pt): Remove.
5964 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5965 add_show_prefix_cmd.
5966 * ravenscar-thread.c (set_ravenscar_command)
5967 (show_ravenscar_command): Remove.
5968 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5969 add_show_prefix_cmd.
5970 * mips-tdep.c (show_mips_command, set_mips_command)
5971 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5972 add_show_prefix_cmd.
5973 * maint.c (maintenance_command, maintenance_info_command)
5974 (maintenance_check_command, maintenance_print_command)
5975 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5976 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5977 add_show_prefix_cmd.
5978 (show_per_command_cmd): Remove.
5979 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5980 Remove.
5981 (maintenance_show_test_settings_cmd): Remove.
5982 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5983 add_show_prefix_cmd.
5984 * maint-test-options.c (maintenance_test_options_command):
5985 Remove.
5986 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5987 * macrocmd.c (macro_command): Remove
5988 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5989 * language.c (set_check, show_check): Remove.
5990 (_initialize_language): Use add_basic_prefix_cmd,
5991 add_show_prefix_cmd.
5992 * infcmd.c (unset_command): Remove.
5993 (_initialize_infcmd): Use add_basic_prefix_cmd.
5994 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5995 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5996 add_show_prefix_cmd.
5997 * go32-nat.c (go32_info_dos_command): Remove.
5998 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5999 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6000 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6001 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6002 (_initialize_frame): Use add_basic_prefix_cmd,
6003 add_show_prefix_cmd.
6004 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6005 (_initialize_dcache): Use add_basic_prefix_cmd,
6006 add_show_prefix_cmd.
6007 * cp-support.c (maint_cplus_command): Remove.
6008 (_initialize_cp_support): Use add_basic_prefix_cmd.
6009 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6010 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6011 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6012 add_basic_prefix_cmd, add_show_prefix_cmd.
6013 * breakpoint.c (save_command): Remove.
6014 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6015 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6016 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6017 add_show_prefix_cmd.
6018 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6019 (set_ada_command, show_ada_command): Remove.
6020 (_initialize_ada_language): Use add_basic_prefix_cmd,
6021 add_show_prefix_cmd.
6022 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6023
6024 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6025
6026 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6027 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6028
6029 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6030
6031 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6032 warning messages.
6033
6034 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6035
6036 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6037 import table is not at beginning of .idata section.
6038
6039 2020-04-16 Pedro Alves <palves@redhat.com>
6040
6041 * inferior.c (delete_inferior): Use delete operator directly
6042 instead of delete_program_space.
6043 * progspace.c (add_program_space): New, factored out from
6044 program_space::program_space.
6045 (remove_program_space): New, factored out from
6046 delete_program_space.
6047 (program_space::program_space): Remove intro comment. Rewrite.
6048 (program_space::~program_space): Remove intro comment. Call
6049 remove_program_space.
6050 (delete_program_space): Delete.
6051 * progspace.h (program_space::program_space): Make explicit. Move
6052 intro comment here, adjusted.
6053 (program_space::~program_space): Move intro comment here,
6054 adjusted.
6055 (delete_program_space): Remove.
6056
6057 2020-04-16 Tom Tromey <tromey@adacore.com>
6058
6059 * windows-nat.c (windows_nat::handle_access_violation): New
6060 function.
6061 * nat/windows-nat.h (handle_access_violation): Declare.
6062 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6063 windows-nat.c. Call handle_access_violation.
6064
6065 2020-04-16 Tom de Vries <tdevries@suse.de>
6066
6067 PR symtab/25791
6068 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6069 CUs without psymtab.
6070
6071 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6072
6073 * python/python.c (do_start_initialization): Don't call
6074 PyEval_InitThreads for Python 3.9 and beyond.
6075
6076 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6077
6078 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6079 thread functions.
6080 (obsd_nat_target::wait): Likewise.
6081
6082 2020-04-15 Tom Tromey <tromey@adacore.com>
6083
6084 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6085 (DEBUG_EXCEPT): Use debug_printf.
6086
6087 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6088
6089 * completer.c (class completion_tracker::completion_hash_entry)
6090 <hash_name>: New member function.
6091 (completion_tracker::discard_completions): New callback to hash a
6092 completion_hash_entry, pass this to htab_create_alloc.
6093
6094 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6095
6096 * windows-nat.c (windows_make_so): Warn rather than stopping with
6097 an error if realpath() fails.
6098
6099 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6100
6101 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6102 (nbsd_nat_target::info_proc): Add do_status.
6103
6104 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6105 Tom de Vries <tdevries@suse.de>
6106
6107 PR symtab/25718
6108 * psympriv.h (struct partial_symtab::read_symtab)
6109 (struct partial_symtab::expand_psymtab)
6110 (struct partial_symtab::read_dependencies): Update comments.
6111 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6112 read_symtab for includer.
6113 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6114 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6115 (struct dwarf2_include_psymtab::m_readin): Remove.
6116 (struct dwarf2_include_psymtab::includer): New member function.
6117 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6118
6119 2020-04-14 Tom de Vries <tdevries@suse.de>
6120
6121 PR symtab/25720
6122 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6123 with NULL symbol_matcher and lookup_name.
6124 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6125 and lookup_name.
6126 * dwarf2/read.c (dw2_expand_symtabs_matching)
6127 (dw2_debug_names_expand_symtabs_matching): Same.
6128 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6129 Make lookup_name a pointer. Update comment.
6130 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6131 lookup_name being a pointer.
6132 * symfile.c (expand_symtabs_matching): Same.
6133 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6134 * linespec.c (iterate_over_all_matching_symtabs): Same.
6135
6136 2020-04-13 Tom Tromey <tom@tromey.com>
6137
6138 * run-on-main-thread.c: Update include.
6139 * unittests/main-thread-selftests.c: Update include.
6140 * tui/tui-win.c: Update include.
6141 * tui/tui-io.c: Update include.
6142 * tui/tui-interp.c: Update include.
6143 * tui/tui-hooks.c: Update include.
6144 * top.h: Update include.
6145 * top.c: Update include.
6146 * ser-base.c: Update include.
6147 * remote.c: Update include.
6148 * remote-notif.c: Update include.
6149 * remote-fileio.c: Update include.
6150 * record-full.c: Update include.
6151 * record-btrace.c: Update include.
6152 * python/python.c: Update include.
6153 * posix-hdep.c: Update include.
6154 * mingw-hdep.c: Update include.
6155 * mi/mi-main.c: Update include.
6156 * mi/mi-interp.c: Update include.
6157 * main.c: Update include.
6158 * linux-nat.c: Update include.
6159 * interps.c: Update include.
6160 * infrun.c: Update include.
6161 * inf-loop.c: Update include.
6162 * event-top.c: Update include.
6163 * event-loop.c: Move to ../gdbsupport/.
6164 * event-loop.h: Move to ../gdbsupport/.
6165 * async-event.h: Update include.
6166 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6167
6168 2020-04-13 Tom Tromey <tom@tromey.com>
6169
6170 * tui/tui-win.c: Include async-event.h.
6171 * remote.c: Include async-event.h.
6172 * remote-notif.c: Include async-event.h.
6173 * record-full.c: Include async-event.h.
6174 * record-btrace.c: Include async-event.h.
6175 * infrun.c: Include async-event.h.
6176 * event-top.c: Include async-event.h.
6177 * event-loop.h: Move some declarations to async-event.h.
6178 * event-loop.c: Don't include ser-event.h or top.h. Move some
6179 code to async-event.c.
6180 * async-event.h: New file.
6181 * async-event.c: New file.
6182 * Makefile.in (COMMON_SFILES): Add async-event.c.
6183 (HFILES_NO_SRCDIR): Add async-event.h.
6184
6185 2020-04-13 Tom Tromey <tom@tromey.com>
6186
6187 * utils.c (flush_streams): New function.
6188 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6189
6190 2020-04-13 Tom Tromey <tom@tromey.com>
6191
6192 * event-loop.c (handle_file_event): Use warning, not
6193 printf_unfiltered.
6194
6195 2020-04-13 Tom Tromey <tom@tromey.com>
6196
6197 * event-loop.c: Include <chrono>.
6198
6199 2020-04-13 Tom Tromey <tom@tromey.com>
6200
6201 * gdb_select.h: Move to ../gdbsupport/.
6202 * event-loop.c: Update include path.
6203 * top.c: Update include path.
6204 * ser-base.c: Update include path.
6205 * ui-file.c: Update include path.
6206 * ser-tcp.c: Update include path.
6207 * guile/scm-ports.c: Update include path.
6208 * posix-hdep.c: Update include path.
6209 * ser-unix.c: Update include path.
6210 * gdb_usleep.c: Update include path.
6211 * mingw-hdep.c: Update include path.
6212 * inflow.c: Update include path.
6213 * infrun.c: Update include path.
6214 * event-top.c: Update include path.
6215
6216 2020-04-13 Tom Tromey <tom@tromey.com>
6217
6218 * configure: Rebuild.
6219 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6220
6221 2020-04-13 Tom Tromey <tom@tromey.com>
6222
6223 * event-loop.h (start_event_loop): Don't declare.
6224 * event-loop.c (start_event_loop): Move...
6225 * main.c (start_event_loop): ...here. Now static.
6226
6227 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6228
6229 * MAINTAINERS: Update my email address.
6230
6231 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6232
6233 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6234 IP_ALL.
6235
6236 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6237
6238 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6239 (nbsd_nat_target::info_proc): Add do_cmdline.
6240
6241 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6242
6243 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6244 (nbsd_nat_target::info_proc): Add do_cwd.
6245
6246 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6247
6248 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6249
6250 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6251
6252 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6253 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6254 (nbsd_nat_target::info_proc): New functions.
6255 * nbsd-nat.c (kinfo_get_vmmap): New function.
6256 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6257 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6258 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6259 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6260 functions.
6261 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6262 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6263 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6264 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6265 (KINFO_VME_FLAG_GROWS_DOWN): New.
6266
6267 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6268
6269 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6270 bit shift.
6271
6272 2020-04-10 Tom Tromey <tromey@adacore.com>
6273
6274 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6275
6276 2020-04-10 Tom Tromey <tromey@adacore.com>
6277
6278 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6279 separate debug files.
6280
6281 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6282
6283 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6284 Move to...
6285 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6286 ... here.
6287 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6288 Check for STATUS_WX86_BREAKPOINT.
6289 (windows_nat_target::wait): Same.
6290
6291 2020-04-10 Tom de Vries <tdevries@suse.de>
6292
6293 PR cli/25808
6294 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6295
6296 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6297
6298 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6299 (Write After Approval): Remove Tom de Vries.
6300
6301 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6302
6303 revert partially:
6304 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6305
6306 * buildsym.c (record_line): Fix undefined behavior and preserve
6307 lines at eof.
6308
6309 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6310
6311 * auxv.h (svr4_auxv_parse): New.
6312 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6313 and generic_auxv_parse.
6314 (svr4_auxv_parse): Add.
6315 * obsd-tdep.c: Include "auxv.h".
6316 (obsd_auxv_parse): Remove.
6317 (obsd_init_abi): Remove comment.
6318 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6319 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6320 * nbsd-tdep.c: Include "auxv.h".
6321 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6322
6323 2020-04-08 Tom Tromey <tromey@adacore.com>
6324
6325 * nat/windows-nat.h (last_wait_event): Don't declare.
6326 (wait_for_debug_event): Update comment.
6327 * nat/windows-nat.c (last_wait_event): Now static.
6328
6329 2020-04-08 Tom Tromey <tromey@adacore.com>
6330
6331 * windows-nat.c (wait_for_debug_event): Move to
6332 nat/windows-nat.c.
6333 * nat/windows-nat.h (wait_for_debug_event): Declare.
6334 * nat/windows-nat.c (wait_for_debug_event): Move from
6335 windows-nat.c. No longer static.
6336
6337 2020-04-08 Tom Tromey <tromey@adacore.com>
6338
6339 * windows-nat.c (get_windows_debug_event): Use
6340 fetch_pending_stop.
6341 * nat/windows-nat.h (fetch_pending_stop): Declare.
6342 * nat/windows-nat.c (fetch_pending_stop): New function.
6343
6344 2020-04-08 Tom Tromey <tromey@adacore.com>
6345
6346 * windows-nat.c (windows_continue): Use matching_pending_stop and
6347 continue_last_debug_event.
6348 * nat/windows-nat.h (matching_pending_stop)
6349 (continue_last_debug_event): Declare.
6350 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6351 (matching_pending_stop, continue_last_debug_event): New
6352 functions.
6353
6354 2020-04-08 Tom Tromey <tromey@adacore.com>
6355
6356 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6357 (handle_exception_result): Move to nat/windows-nat.h.
6358 (DEBUG_EXCEPTION_SIMPLE): Remove.
6359 (windows_nat::handle_ms_vc_exception): New function.
6360 (handle_exception): Move to nat/windows-nat.c.
6361 (get_windows_debug_event): Update.
6362 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6363 nat/windows-nat.c.
6364 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6365 (handle_exception_result): Move from windows-nat.c.
6366 (handle_exception): Declare.
6367 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6368 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6369 windows-nat.c.
6370
6371 2020-04-08 Tom Tromey <tromey@adacore.com>
6372
6373 * windows-nat.c (exception_count, event_count): Remove.
6374 (handle_exception, get_windows_debug_event)
6375 (do_initial_windows_stuff): Update.
6376
6377 2020-04-08 Tom Tromey <tromey@adacore.com>
6378
6379 * windows-nat.c (windows_nat::handle_load_dll)
6380 (windows_nat::handle_unload_dll): Rename. No longer static.
6381 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6382 Declare.
6383
6384 2020-04-08 Tom Tromey <tromey@adacore.com>
6385
6386 * complaints.h (stop_whining): Declare at top-level.
6387 (complaint): Don't declare stop_whining.
6388
6389 2020-04-08 Tom Tromey <tromey@adacore.com>
6390
6391 * windows-nat.c (windows_nat::handle_output_debug_string):
6392 Rename. No longer static.
6393 * nat/windows-nat.h (handle_output_debug_string): Declare.
6394
6395 2020-04-08 Tom Tromey <tromey@adacore.com>
6396
6397 * windows-nat.c (current_process_handle, current_process_id)
6398 (main_thread_id, last_sig, current_event, last_wait_event)
6399 (current_windows_thread, desired_stop_thread_id, pending_stops)
6400 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6401 (display_selectors, fake_create_process)
6402 (get_windows_debug_event): Update.
6403 * nat/windows-nat.h (current_process_handle, current_process_id)
6404 (main_thread_id, last_sig, current_event, last_wait_event)
6405 (current_windows_thread, desired_stop_thread_id, pending_stops)
6406 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6407 * nat/windows-nat.c (current_process_handle, current_process_id)
6408 (main_thread_id, last_sig, current_event, last_wait_event)
6409 (current_windows_thread, desired_stop_thread_id, pending_stops)
6410 (siginfo_er): New globals. Move from windows-nat.c.
6411
6412 2020-04-08 Tom Tromey <tromey@adacore.com>
6413
6414 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6415 (handle_load_dll): Update.
6416 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6417
6418 2020-04-08 Tom Tromey <tromey@adacore.com>
6419
6420 * windows-nat.c (enum thread_disposition_type): Move to
6421 nat/windows-nat.h.
6422 (windows_nat::thread_rec): Rename from thread_rec. No longer
6423 static.
6424 (windows_add_thread, windows_nat_target::fetch_registers)
6425 (windows_nat_target::store_registers, handle_exception)
6426 (windows_nat_target::resume, get_windows_debug_event)
6427 (windows_nat_target::get_tib_address)
6428 (windows_nat_target::thread_name)
6429 (windows_nat_target::thread_alive): Update.
6430 * nat/windows-nat.h (enum thread_disposition_type): Move from
6431 windows-nat.c.
6432 (thread_rec): Declare.
6433
6434 2020-04-08 Tom Tromey <tromey@adacore.com>
6435
6436 * windows-nat.c: Add "using namespace".
6437 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6438 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6439
6440 2020-04-08 Tom Tromey <tromey@adacore.com>
6441
6442 * nat/windows-nat.h (struct windows_thread_info): Declare
6443 destructor.
6444 * nat/windows-nat.c (~windows_thread_info): New.
6445
6446 2020-04-08 Tom Tromey <tromey@adacore.com>
6447
6448 PR gdb/22992
6449 * windows-nat.c (current_event): Update comment.
6450 (last_wait_event, desired_stop_thread_id): New globals.
6451 (struct pending_stop): New.
6452 (pending_stops): New global.
6453 (windows_nat_target) <stopped_by_sw_breakpoint>
6454 <supports_stopped_by_sw_breakpoint>: New methods.
6455 (windows_fetch_one_register): Add assertions. Adjust PC.
6456 (windows_continue): Handle pending stops. Suspend other threads
6457 when stepping. Use last_wait_event
6458 (wait_for_debug_event): New function.
6459 (get_windows_debug_event): Use wait_for_debug_event. Handle
6460 pending stops. Queue spurious stops.
6461 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6462 (windows_nat_target::kill): Use wait_for_debug_event.
6463 * nat/windows-nat.h (struct windows_thread_info)
6464 <stopped_at_software_breakpoint>: New field.
6465 * nat/windows-nat.c (windows_thread_info::resume): Clear
6466 stopped_at_software_breakpoint.
6467
6468 2020-04-08 Tom Tromey <tromey@adacore.com>
6469
6470 * windows-nat.c (enum thread_disposition_type): New.
6471 (thread_rec): Replace "get_context" parameter with "disposition";
6472 change type.
6473 (windows_add_thread, windows_nat_target::fetch_registers)
6474 (windows_nat_target::store_registers, handle_exception)
6475 (windows_nat_target::resume, get_windows_debug_event)
6476 (windows_nat_target::get_tib_address)
6477 (windows_nat_target::thread_name)
6478 (windows_nat_target::thread_alive): Update.
6479
6480 2020-04-08 Tom Tromey <tromey@adacore.com>
6481
6482 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6483 (windows_continue): Use windows_continue::resume.
6484 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6485 resume>: Declare new methods.
6486 * nat/windows-nat.c: New file.
6487 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6488
6489 2020-04-08 Tom Tromey <tromey@adacore.com>
6490
6491 * windows-nat.c (windows_add_thread, windows_delete_thread)
6492 (windows_nat_target::fetch_registers)
6493 (windows_nat_target::store_registers, fake_create_process)
6494 (windows_nat_target::resume, windows_nat_target::resume)
6495 (get_windows_debug_event, windows_nat_target::wait)
6496 (windows_nat_target::pid_to_str)
6497 (windows_nat_target::get_tib_address)
6498 (windows_nat_target::get_ada_task_ptid)
6499 (windows_nat_target::thread_name)
6500 (windows_nat_target::thread_alive): Use lwp, not tid.
6501
6502 2020-04-08 Tom Tromey <tromey@adacore.com>
6503
6504 * windows-nat.c (handle_exception)
6505 (windows_nat_target::thread_name): Update.
6506 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6507 <name>: Now unique_xmalloc_ptr.
6508
6509 2020-04-08 Tom Tromey <tromey@adacore.com>
6510
6511 * windows-nat.c (thread_rec)
6512 (windows_nat_target::fetch_registers): Update.
6513 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6514 Update comment.
6515 <debug_registers_changed, reload_context>: Now bool.
6516
6517 2020-04-08 Tom Tromey <tromey@adacore.com>
6518
6519 * windows-nat.c (windows_add_thread): Use new.
6520 (windows_init_thread_list, windows_delete_thread): Use delete.
6521 (get_windows_debug_event): Update.
6522 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6523 destructor, and initializers.
6524
6525 2020-04-08 Tom Tromey <tromey@adacore.com>
6526
6527 * windows-nat.c (struct windows_thread_info): Remove.
6528 * nat/windows-nat.h: New file.
6529
6530 2020-04-08 Tom Tromey <tromey@adacore.com>
6531
6532 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6533 (thread_rec, windows_add_thread, windows_delete_thread)
6534 (windows_continue): Update.
6535
6536 2020-04-08 Tom Tromey <tromey@adacore.com>
6537
6538 * windows-nat.c (struct windows_thread_info): Remove typedef.
6539 (thread_head): Remove.
6540 (thread_list): New global.
6541 (thread_rec, windows_add_thread, windows_init_thread_list)
6542 (windows_delete_thread, windows_continue): Update.
6543
6544 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6545
6546 * windows-tdep.h (windows_init_abi): Add comment.
6547 (cygwin_init_abi): New declaration.
6548 * windows-tdep.c: Split signal enumeration in two, one for
6549 Windows and one for Cygwin.
6550 (windows_gdb_signal_to_target): Only deal with signal of the
6551 Windows OS ABI.
6552 (cygwin_gdb_signal_to_target): New function.
6553 (windows_init_abi): Rename to windows_init_abi_common, don't set
6554 gdb_signal_to_target gdbarch method. Add new new function with
6555 this name.
6556 (cygwin_init_abi): New function.
6557 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6558 comment. Don't call windows_init_abi.
6559 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6560 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6561 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6562 i386_windows_init_abi_common, don't call windows_init_abi. Add
6563 a new function of this name.
6564 (i386_cygwin_init_abi): New function.
6565 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6566 OS ABI Cygwin.
6567
6568 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6569
6570 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6571 parameter.c.
6572 (dwarf2_read_gdb_index): Update.
6573
6574 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6575
6576 * nbsd-tdep.c: Include "objfiles.h".
6577 (nbsd_skip_solib_resolver): New.
6578 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6579
6580 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6581
6582 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6583 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6584 with DW_LLE_base_addressx are being emitted in DWARFv5.
6585 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6586 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6587 unsigned integer.
6588
6589 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6590
6591 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6592 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6593 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6594 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6595 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6596 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6597 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6598
6599
6600 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6601
6602 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6603 (read_loclist_index): New function definition.
6604 (lookup_loclist_base): New function definition.
6605 (read_loclist_header): New function definition.
6606 (dwarf2_cu): Add loclist_base and loclist_header field.
6607 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6608 (read_full_die_1): Read the value of DW_AT_loclists_base.
6609 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6610 (read_attribute_value): Handle DW_FORM_loclistx.
6611 (skip_one_die): Handle DW_FORM_loclistx.
6612 (loclist_header): New structure declaration.
6613 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6614
6615 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6616
6617 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6618 constructor. Remove `addr` parameter from other constructor and
6619 add `per_cu` parameter.
6620 * dwarf2/read.c (create_partial_symtab): Update.
6621
6622 2020-04-07 Tom de Vries <tdevries@suse.de>
6623
6624 PR symtab/25796
6625 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6626 (partial_die_info::fixup): Inherit has_const_value.
6627
6628 2020-04-07 Tom de Vries <tdevries@suse.de>
6629
6630 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6631 symbols without address.
6632
6633 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6634
6635 * nbsd-nat.h (struct thread_info): Add forward declaration.
6636 (nbsd_nat_target::thread_alive): Add.
6637 (nbsd_nat_target::thread_name): Likewise.
6638 (nbsd_nat_target::update_thread_list): Likewise.
6639 (update_thread_list::post_attach): Likewise.
6640 (post_attach::pid_to_str): Likewise.
6641 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6642 (nbsd_thread_lister): Add.
6643 (nbsd_nat_target::thread_alive): Likewise.
6644 (nbsd_nat_target::thread_name): Likewise.
6645 (nbsd_add_threads): Likewise.
6646 (update_thread_list::post_attach): Likewise.
6647 (nbsd_nat_target::update_thread_list): Likewise.
6648 (post_attach::pid_to_str): Likewise.
6649
6650 2020-04-06 Tom Tromey <tromey@adacore.com>
6651
6652 * ada-valprint.c (print_variant_part): Extract the variant field.
6653 (print_field_values): Use the field as the outer value when
6654 recursing.
6655
6656 2020-04-06 Tom Tromey <tromey@adacore.com>
6657
6658 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6659 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6660 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6661 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6662 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6663
6664 2020-04-06 Tom Tromey <tromey@adacore.com>
6665
6666 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6667 TYPE_CODE_ERROR.
6668
6669 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6670
6671 * nbsd-tdep.c: Include "gdbarch.h".
6672 Define enum with NetBSD signal numbers.
6673 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6674 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6675 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6676 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6677 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6678 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6679 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6680 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6681 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6682 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6683 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6684 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6685
6686 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6687
6688 PR gdb/25325
6689 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6690
6691 2020-04-03 Tom Tromey <tromey@adacore.com>
6692
6693 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6694 Read constant block.
6695
6696 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6697
6698 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6699 (gdb_bfd_get_full_section_contents): New declaration.
6700 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6701 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6702 gdb_bfd_get_full_section_contents.
6703
6704 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6705
6706 * exec.c (build_section_table): Replace internal_error with
6707 gdb_assert.
6708 (section_table_xfer_memory_partial): Likewise.
6709 * mdebugread.c (parse_partial_symbols): Likewise.
6710 * psymtab.c (lookup_partial_symbol): Likewise.
6711 * utils.c (wrap_here): Likewise.
6712
6713 2020-04-02 Tom Tromey <tromey@adacore.com>
6714
6715 * f-lang.c (build_fortran_types): Use arch_type to initialize
6716 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6717
6718 2020-04-02 Tom Tromey <tromey@adacore.com>
6719
6720 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6721 of attributes.
6722
6723 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6724 Bernd Edlinger <bernd.edlinger@hotmail.de>
6725 Tom Tromey <tromey@adacore.com>
6726
6727 * buildsym.c (buildsym_compunit::record_line): Remove
6728 deduplication code.
6729
6730 2020-04-02 Tom de Vries <tdevries@suse.de>
6731
6732 PR ada/24671
6733 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6734
6735 2020-04-02 Tom de Vries <tdevries@suse.de>
6736
6737 * dwarf2/read.c (dwarf2_gdb_index_functions,
6738 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6739 NULL.
6740 * psymtab.c (psym_lookup_global_symbol_language): New function.
6741 (psym_functions): Init psym_lookup_global_symbol_language with
6742 psym_lookup_global_symbol_language.
6743 * symfile-debug.c (debug_sym_quick_functions): Init
6744 lookup_global_symbol_language with NULL.
6745 * symfile.c (set_initial_language): Remove fixme comment.
6746 * symfile.h (struct quick_symbol_functions): Add
6747 lookup_global_symbol_language.
6748 * symtab.c (find_quick_global_symbol_language): New function.
6749 (find_main_name): Use find_quick_global_symbol_language.
6750
6751 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6752
6753 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6754
6755 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6756
6757 * buildsym.c (record_line): Fix undefined behavior and preserve
6758 lines at eof.
6759
6760 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6761
6762 * buildsym.c (record_line): Fix the resizing condition.
6763
6764 2020-04-01 Tom Tromey <tom@tromey.com>
6765
6766 * value.h (value_literal_complex): Add comment.
6767 * valops.c (value_literal_complex): Refer to value.h.
6768
6769 2020-04-01 Tom Tromey <tom@tromey.com>
6770
6771 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6772 (scalar_type): New rule, from typebase.
6773 (typebase): Use scalar_type. Recognize complex types.
6774 (field_name): Handle FLOAT_KEYWORD.
6775 (ident_tokens): Add _Complex and __complex__.
6776
6777 2020-04-01 Tom Tromey <tom@tromey.com>
6778
6779 PR exp/25299:
6780 * valarith.c (promotion_type, complex_binop): New functions.
6781 (scalar_binop): Handle complex numbers. Use promotion_type.
6782 (value_pos, value_neg, value_complement): Handle complex numbers.
6783
6784 2020-04-01 Tom Tromey <tom@tromey.com>
6785
6786 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6787 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6788 (parse_number): Handle complex numbers.
6789
6790 2020-04-01 Tom Tromey <tom@tromey.com>
6791
6792 * c-valprint.c (c_decorations): Change complex suffix to "i".
6793
6794 2020-04-01 Tom Tromey <tom@tromey.com>
6795
6796 * valprint.c (generic_value_print_complex): Use accessors.
6797 * value.h (value_real_part, value_imaginary_part): Declare.
6798 * valops.c (value_real_part, value_imaginary_part): New
6799 functions.
6800 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6801
6802 2020-04-01 Tom Tromey <tom@tromey.com>
6803
6804 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6805 (read_range_type): Update.
6806 * mdebugread.c (basic_type): Update.
6807 * go-lang.c (build_go_types): Use init_complex_type.
6808 * gdbtypes.h (struct main_type) <complex_type>: New member.
6809 (init_complex_type): Update.
6810 (arch_complex_type): Don't declare.
6811 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6812 Make name if none given. Use alloc_type_copy. Look for cached
6813 complex type.
6814 (arch_complex_type): Remove.
6815 (gdbtypes_post_init): Use init_complex_type.
6816 * f-lang.c (build_fortran_types): Use init_complex_type.
6817 * dwarf2/read.c (read_base_type): Update.
6818 * d-lang.c (build_d_types): Use init_complex_type.
6819 * ctfread.c (read_base_type): Update.
6820
6821 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6822
6823 * infrun.c (stop_all_threads): Update assertion, plus when
6824 stopping threads, take into account that we might be trying
6825 to stop an all-stop target.
6826 (stop_waiting): Call 'stop_all_threads' if there exists a
6827 non-stop target.
6828
6829 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6830
6831 * target.h (exists_non_stop_target): New function declaration.
6832 * target.c (exists_non_stop_target): New function.
6833
6834 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6835
6836 PR gdb/24789
6837 * eval.c (is_integral_or_integral_reference): New function.
6838 (evaluate_subexp_standard): Allow integer references in
6839 pointer arithmetic.
6840
6841 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6842
6843 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6844 check for no ptid in the stop reply when the target is non-stop.
6845
6846 2020-04-01 Tom Tromey <tromey@adacore.com>
6847
6848 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6849 "name" parameter to rvalue reference. Initialize m_name_holder.
6850 <lookup_name_info>: New overloads.
6851 <name>: Return gdb::string_view.
6852 <c_str>: New method.
6853 <make_ignore_params>: Update.
6854 <search_name_hash>: Update.
6855 <language_lookup_name>: Return const char *.
6856 <m_name>: Change type.
6857 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6858 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6859 (lookup_name_info::match_any): Update.
6860 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6861 Update.
6862 * minsyms.c (linkage_name_str): Update.
6863 * language.c (default_symbol_name_matcher): Update.
6864 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6865 Update.
6866 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6867 (ada_lookup_name_info::ada_lookup_name_info): Update.
6868 (literal_symbol_name_matcher): Update.
6869
6870 2020-04-01 Tom Tromey <tromey@adacore.com>
6871
6872 * psymtab.c (psymtab_search_name): Remove function.
6873 (psym_lookup_symbol): Create search name and lookup name here.
6874 (lookup_partial_symbol): Remove "name" parameter; add
6875 lookup_name.
6876 (psym_expand_symtabs_for_function): Update.
6877
6878 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6879
6880 PR tui/25597:
6881 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6882
6883 2020-03-31 Tom Tromey <tromey@adacore.com>
6884
6885 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6886 memcpy.
6887
6888 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6889
6890 * features/riscv/32bit-csr.xml: Regenerated.
6891 * features/riscv/64bit-csr.xml: Regenerated.
6892
6893 2020-03-30 Tom Tromey <tromey@adacore.com>
6894
6895 * ada-valprint.c (print_variant_part): Update.
6896 * ada-lang.h (ada_which_variant_applies): Update.
6897 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6898 outer_valaddr parameters; replace with "outer" value parameter.
6899 (to_fixed_variant_branch_type): Update.
6900
6901 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6902
6903 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6904 <list>. Remove inclusion of observable.h.
6905 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6906 (struct arch_lwp_info): New struct.
6907 (class ppc_linux_dreg_interface): New class.
6908 (struct ppc_linux_process_info): New struct.
6909 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6910 <low_new_clone, low_forget_process, low_prepare_to_resume>
6911 <copy_thread_dreg_state, mark_thread_stale>
6912 <mark_debug_registers_changed, register_hw_breakpoint>
6913 <clear_hw_breakpoint, register_wp, clear_wp>
6914 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6915 <num_memory_accesses, get_trigger_type>
6916 <create_watchpoint_request, hwdebug_point_cmp>
6917 <init_arch_lwp_info, get_arch_lwp_info>
6918 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6919 methods.
6920 <struct ptid_hash>: New inner struct.
6921 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6922 members.
6923 (saved_dabr_value, hwdebug_info, max_slots_number)
6924 (struct hw_break_tuple, struct thread_points, ppc_threads)
6925 (have_ptrace_hwdebug_interface)
6926 (hwdebug_find_thread_points_by_tid)
6927 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6928 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6929 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6930 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6931 use m_dreg_interface.
6932 (hwdebug_point_cmp): Change to...
6933 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6934 reference arguments instead of pointers.
6935 (ppc_linux_nat_target::ranged_break_num_registers): Use
6936 m_dreg_interface.
6937 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6938 m_dreg_interface. Call register_hw_breakpoint.
6939 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6940 m_dreg_interface. Call clear_hw_breakpoint.
6941 (get_trigger_type): Change to...
6942 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6943 comment.
6944 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6945 use m_dreg_interface. Call register_hw_breakpoint.
6946 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6947 use m_dreg_interface. Call clear_hw_breakpoint.
6948 (can_use_watchpoint_cond_accel): Change to...
6949 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6950 method. Update comment, use m_dreg_interface and
6951 m_process_info.
6952 (calculate_dvc): Change to...
6953 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6954 m_dreg_interface.
6955 (num_memory_accesses): Change to...
6956 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6957 (check_condition): Change to...
6958 (ppc_linux_nat_target::check_condition): ...this method.
6959 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6960 comment, use m_dreg_interface.
6961 (create_watchpoint_request): Change to...
6962 (ppc_linux_nat_target::create_watchpoint_request): ...this
6963 method. Use m_dreg_interface.
6964 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6965 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6966 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6967 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6968 (ppc_linux_nat_target::low_forget_process)
6969 (ppc_linux_nat_target::low_new_fork)
6970 (ppc_linux_nat_target::low_new_clone)
6971 (ppc_linux_nat_target::low_delete_thread)
6972 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6973 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6974 only call mark_thread_stale.
6975 (ppc_linux_thread_exit): Remove.
6976 (ppc_linux_nat_target::stopped_data_address): Change to...
6977 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6978 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6979 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6980 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6981 comment. Call low_stopped_data_address.
6982 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6983 m_dreg_interface.
6984 (ppc_linux_nat_target::masked_watch_num_registers): Use
6985 m_dreg_interface.
6986 (ppc_linux_nat_target::copy_thread_dreg_state)
6987 (ppc_linux_nat_target::mark_thread_stale)
6988 (ppc_linux_nat_target::mark_debug_registers_changed)
6989 (ppc_linux_nat_target::register_hw_breakpoint)
6990 (ppc_linux_nat_target::clear_hw_breakpoint)
6991 (ppc_linux_nat_target::register_wp)
6992 (ppc_linux_nat_target::clear_wp)
6993 (ppc_linux_nat_target::init_arch_lwp_info)
6994 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6995 (_initialize_ppc_linux_nat): Remove observer callback.
6996
6997 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6998
6999 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7000 (ppc_linux_nat_target::auxv_parse)
7001 (ppc_linux_nat_target::read_description)
7002 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7003 Move up.
7004
7005 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7006
7007 * linux-nat.h (low_new_clone): New method.
7008 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7009
7010 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7011
7012 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7013 (dbx_expand_psymtab): ... this.
7014 (start_psymtab): Update.
7015 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7016 (mdebug_expand_psymtab): ... this.
7017 (parse_partial_symbols): Update.
7018 (new_psymtab): Update.
7019 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7020 (xcoff_expand_psymtab): ... this.
7021 (xcoff_start_psymtab): Update.
7022
7023 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7024
7025 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7026 <expand_dependencies>: ... this.
7027 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7028 (partial_symtab::expand_dependencies): ... this.
7029 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7030 Update.
7031 (dwarf2_psymtab::expand_psymtab): Update.
7032 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7033 * mdebugread.c (psymtab_to_symtab_1): Update.
7034 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7035
7036 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7037
7038 * psympriv.h (discard_psymtab): Remove.
7039 * dbxread.c (dbx_end_psymtab): Update.
7040 * xcoffread.c (xcoff_end_psymtab): Update.
7041
7042 2020-03-28 Tom Tromey <tom@tromey.com>
7043
7044 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7045 comment.
7046
7047 2020-03-28 Tom Tromey <tom@tromey.com>
7048
7049 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7050
7051 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7052
7053 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7054
7055 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7056
7057 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7058
7059 2020-03-26 Tom Tromey <tom@tromey.com>
7060
7061 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7062 (mark_common_block_symbol_computed, read_tag_string_type)
7063 (attr_to_dynamic_prop, read_subrange_type): Update.
7064 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7065 to be methods on struct attribute.
7066 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7067 (read_call_site_scope, partial_die_info::read)
7068 (partial_die_info::read, lookup_die_type, follow_die_ref):
7069 Update.
7070 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7071 from dwarf2_get_ref_die_offset.
7072 (attribute::constant_value): New method, from
7073 dwarf2_get_attr_constant_value.
7074 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7075 Declare method.
7076 <constant_value>: New method.
7077
7078 2020-03-26 Tom Tromey <tom@tromey.com>
7079
7080 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7081 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7082 (dwarf_type_encoding_name): Move to stringify.c.
7083 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7084 * dwarf2/stringify.c: New file.
7085 * dwarf2/stringify.h: New file.
7086
7087 2020-03-26 Tom Tromey <tom@tromey.com>
7088
7089 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7090 Rewrite.
7091
7092 2020-03-26 Tom Tromey <tom@tromey.com>
7093
7094 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7095 methods.
7096 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7097 (lookup_ranges_base): Likewise.
7098 (read_cutu_die_from_dwo, read_full_die_1): Update.
7099
7100 2020-03-26 Tom Tromey <tom@tromey.com>
7101
7102 * dwarf2/read.c (read_import_statement, read_file_scope)
7103 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7104 (read_lexical_block_scope, read_call_site_scope)
7105 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7106 (handle_struct_member_die, process_structure_scope)
7107 (update_enumeration_type_from_children)
7108 (process_enumeration_scope, read_array_type, read_common_block)
7109 (read_namespace, read_module, read_subroutine_type): Update.
7110 (sibling_die): Remove.
7111
7112 2020-03-26 Tom Tromey <tom@tromey.com>
7113
7114 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7115 (build_type_psymtabs_reader, read_structure_type)
7116 (read_enumeration_type, read_full_die_1): Update.
7117 (dwarf2_attr_no_follow): Move to die.h.
7118 * dwarf2/die.h (struct die_info) <attr>: New method.
7119
7120 2020-03-26 Tom Tromey <tom@tromey.com>
7121
7122 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7123 <base_address>: Now an optional.
7124 (dwarf2_find_base_address, dwarf2_rnglists_process)
7125 (dwarf2_ranges_process, fill_in_loclist_baton)
7126 (dwarf2_symbol_mark_computed): Update.
7127
7128 2020-03-26 Tom Tromey <tom@tromey.com>
7129
7130 * dwarf2/read.c (struct die_info): Move to die.h.
7131 * dwarf2/die.h: New file.
7132
7133 2020-03-26 Tom Tromey <tom@tromey.com>
7134
7135 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7136 * dwarf2/read.c
7137 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7138 Move to line-header.c.
7139 (read_checked_initial_length_and_offset, read_formatted_entries):
7140 Likewise.
7141 (dwarf_decode_line_header): Split into two.
7142 * dwarf2/line-header.c
7143 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7144 Move from read.c.
7145 (read_checked_initial_length_and_offset, read_formatted_entries):
7146 Likewise.
7147 (dwarf_decode_line_header): New function, split from read.c.
7148
7149 2020-03-26 Tom Tromey <tom@tromey.com>
7150
7151 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7152 Declare method.
7153 * dwarf2/read.c (read_attribute_value): Update.
7154 (dwarf2_per_objfile::read_line_string): Rename from
7155 read_indirect_line_string.
7156 (read_formatted_entries): Update.
7157
7158 2020-03-26 Tom Tromey <tom@tromey.com>
7159
7160 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7161 variable.
7162
7163 2020-03-26 Tom Tromey <tom@tromey.com>
7164
7165 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7166 const.
7167 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7168 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7169 parameter const.
7170
7171 2020-03-26 Tom Tromey <tom@tromey.com>
7172
7173 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7174 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7175 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7176 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7177
7178 2020-03-26 Tom Tromey <tom@tromey.com>
7179
7180 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7181 file_names_size, file_full_name, file_file_name>: Use const.
7182 <file_name_at, file_names>: Add const overload.
7183 * dwarf2/line-header.c (line_header::file_file_name)
7184 (line_header::file_full_name): Update.
7185
7186 2020-03-26 Tom Tromey <tom@tromey.com>
7187
7188 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7189 (macro_start_file, consume_improper_spaces)
7190 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7191 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7192 (dwarf_decode_macros): Move to macro.c.
7193 * dwarf2/macro.c: New file.
7194 * dwarf2/macro.h: New file.
7195 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7196
7197 2020-03-26 Tom Tromey <tom@tromey.com>
7198
7199 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7200 method.
7201 * dwarf2/section.c: New method. From
7202 read_indirect_string_at_offset_from.
7203 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7204 (read_indirect_string_at_offset_from): Move to section.c.
7205 (read_indirect_string_at_offset): Rewrite.
7206 (read_indirect_line_string_at_offset): Remove.
7207 (read_indirect_string, read_indirect_line_string)
7208 (dwarf_decode_macro_bytes): Update.
7209
7210 2020-03-26 Tom Tromey <tom@tromey.com>
7211
7212 * dwarf2/section.h (struct dwarf2_section_info)
7213 <overload_complaint>: Declare.
7214 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7215 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7216 Rename from dwarf2_section_buffer_overflow_complaint.
7217 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7218 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7219
7220 2020-03-26 Tom Tromey <tom@tromey.com>
7221
7222 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7223 Declare.
7224 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7225 Move from read.c.
7226 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7227 to section.c.
7228
7229 2020-03-26 Tom Tromey <tom@tromey.com>
7230
7231 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7232
7233 2020-03-26 Tom Tromey <tom@tromey.com>
7234
7235 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7236 "builder".
7237 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7238 parameter.
7239 (dwarf_decode_macros): Update.
7240
7241 2020-03-26 Tom Tromey <tom@tromey.com>
7242
7243 * dwarf2/read.c (read_attribute_value): Update.
7244 (read_indirect_string_from_dwz): Move to dwz.c; change into
7245 method.
7246 (dwarf_decode_macro_bytes): Update.
7247 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7248 * dwarf2/dwz.c: New file.
7249 * Makefile.in (COMMON_SFILES): Add dwz.c.
7250
7251 2020-03-26 Tom Tromey <tom@tromey.com>
7252
7253 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7254 * dwarf2/read.c: Add include.
7255 * dwarf2/index-write.c: Add include.
7256 * dwarf2/index-cache.c: Add include.
7257 * dwarf2/dwz.h: New file.
7258
7259 2020-03-25 Tom Tromey <tom@tromey.com>
7260
7261 * compile/compile-object-load.c (get_out_value_type): Mention
7262 correct symbol name in error message.
7263
7264 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7265
7266 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7267
7268 2020-03-25 Tom de Vries <tdevries@suse.de>
7269
7270 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7271 * symmisc.c (dump_symtab_1): Print user and includes fields.
7272 (maintenance_info_symtabs): Same.
7273
7274 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7275
7276 PR gdb/25534
7277 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7278 (riscv_regcache_cooked_write): New function.
7279 (riscv_push_dummy_call): Use new function.
7280 (riscv_return_value): Likewise.
7281
7282 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7283
7284 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7285 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7286 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7287 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7288 * infrun.c (follow_fork): Likewise.
7289 (follow_fork_inferior): Likewise.
7290 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7291 * linux-nat.h (class linux_nat_target): Likewise.
7292 * remote.c (class remote_target) <follow_fork>: Likewise.
7293 (remote_target::follow_fork): Likewise.
7294 * target-delegates.c: Re-generate.
7295 * target.c (default_follow_fork): Likewise.
7296 (target_follow_fork): Likewise.
7297 * target.h (struct target_ops) <follow_fork>: Likewise.
7298 (target_follow_fork): Likewise.
7299
7300 2020-03-24 Tom de Vries <tdevries@suse.de>
7301
7302 * psymtab.c (maintenance_info_psymtabs): Print user field.
7303
7304 2020-03-20 Tom Tromey <tromey@adacore.com>
7305
7306 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7307 const.
7308 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7309 const.
7310
7311 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7312
7313 * ptrace.m4: Don't check for ptrace declaration.
7314 * config.in: Re-generate.
7315 * configure: Re-generate.
7316 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7317 not defined.
7318
7319 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7320
7321 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7322 `PTRACE_TYPE_RET'.
7323 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7324 * sparc-nat.c (gdb_ptrace): Likewise.
7325 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7326
7327 2020-03-20 Tom Tromey <tromey@adacore.com>
7328
7329 * c-exp.y (lex_one_token): Fix assert.
7330
7331 2020-03-20 Tom Tromey <tromey@adacore.com>
7332
7333 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7334 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7335 strncpy call.
7336
7337 2020-03-20 Tom Tromey <tromey@adacore.com>
7338
7339 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7340
7341 2020-03-20 Tom Tromey <tromey@adacore.com>
7342
7343 * ada-valprint.c (print_variant_part): Remove parameters; switch
7344 to value-based API.
7345 (print_field_values): Likewise.
7346 (ada_val_print_struct_union): Likewise.
7347 (ada_value_print_1): Update.
7348
7349 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7350
7351 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7352 nbsd_nat_target instead of inf_ptrace_target.
7353 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7354 nbsd_nat_target.
7355
7356 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7357
7358 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7359 it to the ptrace call.
7360 * (store_registers): Likewise.
7361
7362 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7363
7364 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7365 it to the ptrace call.
7366 * (store_registers): Likewise.
7367
7368 2020-03-19 Luis Machado <luis.machado@linaro.org>
7369
7370 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7371 valid, fetch vg value from ptrace.
7372
7373 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7374 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7375 * inf-ptrace.c: Likewise.
7376 * (gdb_ptrace): Add.
7377 * (inf_ptrace_target::resume): Update.
7378 * (inf_ptrace_target::xfer_partial): Likewise.
7379 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7380 * (inf_ptrace_peek_poke): Update.
7381
7382 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7383
7384 * x86-bsd-nat.c (gdb_ptrace): New.
7385 * (x86bsd_dr_set): Add new argument `ptid'.
7386 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7387 x86bsd_dr_set_addr): Update.
7388
7389 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7390
7391 * remote.c (remote_target::process_stop_reply): Handle events for
7392 all threads differently.
7393
7394 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7395
7396 * completer.c (completion_tracker::remove_completion): Define new
7397 function.
7398 * completer.h (completion_tracker::remove_completion): Declare new
7399 function.
7400 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7401 when adding a C++ function symbol.
7402
7403 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7404
7405 * completer.c (completion_tracker::completion_hash_entry): Define
7406 new class.
7407 (advance_to_filename_complete_word_point): Call
7408 recompute_lowest_common_denominator.
7409 (completion_tracker::completion_tracker): Call discard_completions
7410 to setup the hash table.
7411 (completion_tracker::discard_completions): Allow for being called
7412 from the constructor, pass new equal function, and element deleter
7413 when constructing the hash table. Initialise new class member
7414 variables.
7415 (completion_tracker::maybe_add_completion): Remove use of
7416 m_entries_vec, and store more information into m_entries_hash.
7417 (completion_tracker::recompute_lcd_visitor): New function, most
7418 content taken from...
7419 (completion_tracker::recompute_lowest_common_denominator):
7420 ...here, this now just visits each item in the hash calling the
7421 above visitor.
7422 (completion_tracker::build_completion_result): Remove use of
7423 m_entries_vec, call recompute_lowest_common_denominator.
7424 * completer.h (completion_tracker::have_completions): Remove use
7425 of m_entries_vec.
7426 (completion_tracker::completion_hash_entry): Declare new class.
7427 (completion_tracker::recompute_lowest_common_denominator): Change
7428 function signature.
7429 (completion_tracker::recompute_lcd_visitor): Declare new function.
7430 (completion_tracker::m_entries_vec): Delete.
7431 (completion_tracker::m_entries_hash): Initialize to NULL.
7432 (completion_tracker::m_lowest_common_denominator_valid): New
7433 member variable.
7434 (completion_tracker::m_lowest_common_denominator_max_length): New
7435 member variable.
7436
7437 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7438
7439 * regformats/regdef.h: Put reg in gdb namespace.
7440
7441 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7442
7443 * i386-bsd-nat.c (gdb_ptrace): New.
7444 * (i386bsd_fetch_inferior_registers,
7445 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7446 * (i386bsd_fetch_inferior_registers,
7447 i386bsd_store_inferior_registers) Use gdb_ptrace.
7448
7449 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7450
7451 * amd64-bsd-nat.c (gdb_ptrace): New.
7452 * (amd64bsd_fetch_inferior_registers,
7453 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7454 * (amd64bsd_fetch_inferior_registers,
7455 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7456
7457 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7458
7459 * user-regs.c (user_reg::read): Rename to...
7460 (user_reg::xread): ...this.
7461 * (append_user_reg): Rename argument `read' to `xread'.
7462 * (user_reg_add_builtin): Likewise.
7463 * (user_reg_add): Likewise.
7464 * (value_of_user_reg): Likewise.
7465
7466 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7467
7468 * sparc-nat.c (gdb_ptrace): New.
7469 * sparc-nat.c (sparc_fetch_inferior_registers)
7470 (sparc_store_inferior_registers) Remove obsolete comment.
7471 * sparc-nat.c (sparc_fetch_inferior_registers)
7472 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7473 * sparc-nat.c (sparc_fetch_inferior_registers)
7474 (sparc_store_inferior_registers) Use gdb_ptrace.
7475
7476 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7477
7478 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7479 it to the ptrace call.
7480 * sh-nbsd-nat.c (store_registers): Likewise.
7481
7482 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7483
7484 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7485 nbsd_nat_target instead of inf_ptrace_target.
7486 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7487 nbsd_nat_target.
7488
7489 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7490
7491 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7492
7493 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7494
7495 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7496 <sys/sysctl.h>.
7497 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7498
7499 2020-03-17 Tom de Vries <tdevries@suse.de>
7500
7501 PR gdb/23710
7502 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7503 fields.
7504 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7505 fields.
7506 (process_imported_unit_die): Skip import of c++ CUs.
7507
7508 2020-03-16 Tom Tromey <tom@tromey.com>
7509
7510 * p-valprint.c (pascal_object_print_value): Initialize
7511 base_value.
7512
7513 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7514 Shahab Vahedi <shahab@synopsys.com>
7515
7516 * Makefile.in: Add arch/arc.o
7517 * configure.tgt: Likewise.
7518 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7519 (_initialize_arc_tdep): Don't initialize old target descriptions.
7520 (arc_read_description): New function to cache target descriptions.
7521 * arc-tdep.h (arc_read_description): Add proto type.
7522 * arch/arc.c: New file.
7523 * arch/arc.h: Likewise.
7524 * features/Makefile: Replace old target descriptions with new.
7525 * features/arc-arcompact.c: Remove.
7526 * features/arc-arcompact.xml: Likewise.
7527 * features/arc-v2.c: Likewise
7528 * features/arc-v2.xml: Likewise
7529 * features/arc/aux-arcompact.xml: New file.
7530 * features/arc/aux-v2.xml: Likewise.
7531 * features/arc/core-arcompact.xml: Likewise.
7532 * features/arc/core-v2.xml: Likewise.
7533 * features/arc/aux-arcompact.c: Generate.
7534 * features/arc/aux-v2.c: Likewise.
7535 * features/arc/core-arcompact.c: Likewise.
7536 * features/arc/core-v2.c: Likewise.
7537 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7538
7539 2020-03-16 Tom Tromey <tromey@adacore.com>
7540
7541 PR gdb/25663:
7542 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7543 putting value into bcache.
7544
7545 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7546
7547 PR gdb/21500
7548 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7549 to...
7550 (amd64_windows_init_abi_common): ... this. Don't set size of
7551 long type.
7552 (amd64_windows_init_abi): New function.
7553 (amd64_cygwin_init_abi): New function.
7554 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7555 the Cygwin OS ABI.
7556 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7557 comment.
7558
7559 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7560
7561 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7562 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7563 (pe_import_directory_entry): New struct type.
7564 (is_linked_with_cygwin_dll): New function.
7565 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7566 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7567 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7568
7569 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7570
7571 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7572 i386_cygwin_core_osabi_sniffer.
7573
7574 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7575
7576 * i386-cygwin-tdep.c: Rename to...
7577 * i386-windows-tdep.c: ... this.
7578 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7579 i386-windows-tdep.c.
7580 * configure.tgt: Likewise.
7581
7582 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7583
7584 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7585 * osabi.c (gdb_osabi_names): Add "Windows".
7586 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7587 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7588 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7589 i386_cygwin_osabi_sniffer.
7590 (_initialize_i386_cygwin_tdep): Register OS ABI
7591 GDB_OSABI_WINDOWS for i386.
7592 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7593 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7594 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7595 for x86-64.
7596 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7597 when the target matches '*-*-mingw*'.
7598
7599 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7600
7601 * defs.h (enum gdb_osabi): Move to...
7602 * osabi.h (enum gdb_osabi): ... here.
7603 * gdbarch.sh: Include osabi.h in gdbarch.h.
7604 * gdbarch.h: Re-generate.
7605
7606 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7607
7608 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7609 function.
7610 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7611
7612 2020-03-14 Tom Tromey <tom@tromey.com>
7613
7614 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7615 for C++.
7616 (c_type_print_modifier): Likewise. Add "language" parameter.
7617 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7618 (c_type_print_base_1): Update.
7619 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7620 constants.
7621 * type-stack.c (type_stack::insert): Handle tp_atomic and
7622 tp_restrict.
7623 (type_stack::follow_type_instance_flags): Likewise.
7624 (type_stack::follow_types): Likewise. Merge type-following code.
7625 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7626 (space_identifier, cv_with_space_id)
7627 (const_or_volatile_or_space_identifier_noopt)
7628 (const_or_volatile_or_space_identifier): Remove.
7629 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7630 rules.
7631 (ptr_operator, typebase): Update.
7632 (enum token_flag) <FLAG_C>: New constant.
7633 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7634 "_Atomic".
7635 (lex_one_token): Handle FLAG_C.
7636
7637 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7638
7639 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7640 it to the ptrace call.
7641 * m68k-bsd-nat.c (store_registers): Likewise.
7642
7643 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7644
7645 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7646 gdb_byte *.
7647 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7648 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7649 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7650
7651 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7652
7653 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7654 nbsd_nat_target instead of inf_ptrace_target.
7655 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7656 nbsd_nat_target.
7657
7658 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7659
7660 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7661 register_t.
7662
7663 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7664
7665 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7666 it to the ptrace call.
7667 * alpha-bsd-nat.c (store_registers): Likewise.
7668
7669 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7670
7671 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7672 includes.
7673 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7674 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7675 fill_fpregset): Likewise.
7676
7677 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7678
7679 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7680 nbsd_nat_target instead of inf_ptrace_target.
7681 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7682 nbsd_nat_target.
7683
7684 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7685
7686 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7687 register_t.
7688
7689 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7690
7691 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7692 it to the ptrace call.
7693 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7694 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7695 * arm-nbsd-nat.c (store_register): Likewise.
7696 * arm-nbsd-nat.c (store_regs): Likewise.
7697 * arm-nbsd-nat.c (store_fp_register): Likewise.
7698 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7699
7700 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7701
7702 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7703 nbsd_nat_target instead of inf_ptrace_target.
7704 * arm-nbsd-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 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7710 it to the ptrace call.
7711 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7712
7713 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7714
7715 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7716 it to the ptrace call.
7717 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7718
7719 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7720
7721 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7722 gdb_byte *.
7723 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7724
7725 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7726
7727 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7728 instead of inf_ptrace_target.
7729 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7730 nbsd_nat_target.
7731
7732 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7733
7734 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7735 register_t.
7736
7737 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7738
7739 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7740 register_t.
7741
7742 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7743
7744 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7745 register_t.
7746
7747 2020-03-13 Tom Tromey <tom@tromey.com>
7748
7749 * value.h (val_print): Don't declare.
7750 * valprint.h (val_print_array_elements)
7751 (val_print_scalar_formatted, generic_val_print): Don't declare.
7752 * valprint.c (generic_val_print_array): Take a struct value.
7753 (generic_val_print_ptr, generic_val_print_memberptr)
7754 (generic_val_print_bool, generic_val_print_int)
7755 (generic_val_print_char, generic_val_print_complex)
7756 (generic_val_print): Remove.
7757 (generic_value_print): Update.
7758 (do_val_print): Remove unused parameters. Don't call
7759 la_val_print.
7760 (val_print): Remove.
7761 (common_val_print): Update. Don't call value_check_printable.
7762 (val_print_scalar_formatted, val_print_array_elements): Remove.
7763 * rust-lang.c (rust_val_print): Remove.
7764 (rust_language_defn): Update.
7765 * p-valprint.c (pascal_val_print): Remove.
7766 (pascal_value_print_inner): Update.
7767 (pascal_object_print_val_fields, pascal_object_print_val):
7768 Remove.
7769 (pascal_object_print_static_field): Update.
7770 * p-lang.h (pascal_val_print): Don't declare.
7771 * p-lang.c (pascal_language_defn): Update.
7772 * opencl-lang.c (opencl_language_defn): Update.
7773 * objc-lang.c (objc_language_defn): Update.
7774 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7775 * m2-lang.h (m2_val_print): Don't declare.
7776 * m2-lang.c (m2_language_defn): Update.
7777 * language.h (struct language_defn) <la_val_print>: Remove.
7778 * language.c (unk_lang_value_print_inner): Rename. Change
7779 argument types.
7780 (unknown_language_defn, auto_language_defn): Update.
7781 * go-valprint.c (go_val_print): Remove.
7782 * go-lang.h (go_val_print): Don't declare.
7783 * go-lang.c (go_language_defn): Update.
7784 * f-valprint.c (f_val_print): Remove.
7785 * f-lang.h (f_value_print): Don't declare.
7786 * f-lang.c (f_language_defn): Update.
7787 * d-valprint.c (d_val_print): Remove.
7788 * d-lang.h (d_value_print): Don't declare.
7789 * d-lang.c (d_language_defn): Update.
7790 * cp-valprint.c (cp_print_value_fields)
7791 (cp_print_value_fields_rtti, cp_print_value): Remove.
7792 (cp_print_static_field): Update.
7793 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7794 (c_val_print_struct, c_val_print_union, c_val_print_int)
7795 (c_val_print_memberptr, c_val_print): Remove.
7796 * c-lang.h (c_val_print_array, cp_print_value_fields)
7797 (cp_print_value_fields_rtti): Don't declare.
7798 * c-lang.c (c_language_defn, cplus_language_defn)
7799 (asm_language_defn, minimal_language_defn): Update.
7800 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7801 (ada_val_print_enum): Take a struct value.
7802 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7803 (ada_val_print): Remove.
7804 (ada_value_print_1): Update.
7805 (printable_val_type): Remove.
7806 * ada-lang.h (ada_val_print): Don't declare.
7807 * ada-lang.c (ada_language_defn): Update.
7808
7809 2020-03-13 Tom Tromey <tom@tromey.com>
7810
7811 * valprint.c (do_val_print): Update.
7812 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7813 a struct value.
7814 (value_to_value_object_no_release): Declare.
7815 * python/py-value.c (value_to_value_object_no_release): New
7816 function.
7817 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7818 struct value.
7819 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7820 function.
7821 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7822 a struct value.
7823 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7824 Declare.
7825 (gdbscm_apply_val_pretty_printer): Take a struct value.
7826 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7827 value.
7828 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7829 value.
7830 * extension-priv.h (struct extension_language_ops)
7831 <apply_val_pretty_printer>: Take a struct value.
7832 * cp-valprint.c (cp_print_value): Create a struct value.
7833 (cp_print_value): Update.
7834
7835 2020-03-13 Tom Tromey <tom@tromey.com>
7836
7837 * ada-valprint.c (print_field_values): Call common_val_print.
7838
7839 2020-03-13 Tom Tromey <tom@tromey.com>
7840
7841 * ada-valprint.c (val_print_packed_array_elements): Remove
7842 bitoffset and val parameters. Call common_val_print.
7843 (ada_val_print_string): Remove offset, address, and original_value
7844 parameters.
7845 (ada_val_print_array): Update.
7846 (ada_value_print_array): New function.
7847 (ada_value_print_1): Call it.
7848
7849 2020-03-13 Tom Tromey <tom@tromey.com>
7850
7851 * ada-valprint.c (ada_value_print): Use common_val_print.
7852
7853 2020-03-13 Tom Tromey <tom@tromey.com>
7854
7855 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7856
7857 2020-03-13 Tom Tromey <tom@tromey.com>
7858
7859 * ada-valprint.c (ada_value_print_num): New function.
7860 (ada_value_print_1): Use it.
7861
7862 2020-03-13 Tom Tromey <tom@tromey.com>
7863
7864 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7865
7866 2020-03-13 Tom Tromey <tom@tromey.com>
7867
7868 * ada-valprint.c (ada_value_print_ptr): New function.
7869 (ada_value_print_1): Use it.
7870
7871 2020-03-13 Tom Tromey <tom@tromey.com>
7872
7873 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7874 call common_val_print.
7875 (ada_val_print_1): Update.
7876 (ada_value_print_1): New function.
7877 (ada_value_print_inner): Rewrite.
7878
7879 2020-03-13 Tom Tromey <tom@tromey.com>
7880
7881 * cp-valprint.c (cp_print_value_fields): Update.
7882 (cp_print_value): New function.
7883
7884 2020-03-13 Tom Tromey <tom@tromey.com>
7885
7886 * m2-valprint.c (m2_value_print_inner): Use
7887 cp_print_value_fields.
7888 * cp-valprint.c (cp_print_value_fields): New function.
7889 * c-valprint.c (c_value_print_struct): New function.
7890 (c_value_print_inner): Use c_value_print_struct.
7891 * c-lang.h (cp_print_value_fields): Declare.
7892
7893 2020-03-13 Tom Tromey <tom@tromey.com>
7894
7895 * c-valprint.c (c_value_print_array): New function.
7896 (c_value_print_inner): Use it.
7897
7898 2020-03-13 Tom Tromey <tom@tromey.com>
7899
7900 * c-valprint.c (c_value_print_memberptr): New function.
7901 (c_value_print_inner): Use it.
7902
7903 2020-03-13 Tom Tromey <tom@tromey.com>
7904
7905 * c-valprint.c (c_value_print_int): New function.
7906 (c_value_print_inner): Use it.
7907
7908 2020-03-13 Tom Tromey <tom@tromey.com>
7909
7910 * c-valprint.c (c_value_print_ptr): New function.
7911 (c_value_print_inner): Use it.
7912
7913 2020-03-13 Tom Tromey <tom@tromey.com>
7914
7915 * c-valprint.c (c_value_print_inner): Rewrite.
7916
7917 2020-03-13 Tom Tromey <tom@tromey.com>
7918
7919 * valprint.c (generic_value_print_complex): New function.
7920 (generic_value_print): Use it.
7921
7922 2020-03-13 Tom Tromey <tom@tromey.com>
7923
7924 * valprint.c (generic_val_print_float): Don't call
7925 val_print_scalar_formatted.
7926 (generic_val_print, generic_value_print): Update.
7927
7928 2020-03-13 Tom Tromey <tom@tromey.com>
7929
7930 * valprint.c (generic_value_print_char): New function
7931 (generic_value_print): Use it.
7932
7933 2020-03-13 Tom Tromey <tom@tromey.com>
7934
7935 * valprint.c (generic_value_print_int): New function.
7936 (generic_value_print): Use it.
7937
7938 2020-03-13 Tom Tromey <tom@tromey.com>
7939
7940 * valprint.c (generic_value_print_bool): New function.
7941 (generic_value_print): Use it.
7942
7943 2020-03-13 Tom Tromey <tom@tromey.com>
7944
7945 * valprint.c (generic_val_print_func): Simplify.
7946 (generic_val_print, generic_value_print): Update.
7947
7948 2020-03-13 Tom Tromey <tom@tromey.com>
7949
7950 * valprint.c (generic_val_print_flags): Remove.
7951 (generic_val_print, generic_value_print): Update.
7952 (val_print_type_code_flags): Add original_value parameter.
7953
7954 2020-03-13 Tom Tromey <tom@tromey.com>
7955
7956 * valprint.c (generic_val_print): Update.
7957 (generic_value_print): Update.
7958 * valprint.c (generic_val_print_enum): Don't call
7959 val_print_scalar_formatted.
7960
7961 2020-03-13 Tom Tromey <tom@tromey.com>
7962
7963 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7964 * valprint.c (generic_value_print_ptr): New function.
7965
7966 2020-03-13 Tom Tromey <tom@tromey.com>
7967
7968 * valprint.c (generic_value_print): Rewrite.
7969
7970 2020-03-13 Tom Tromey <tom@tromey.com>
7971
7972 * p-valprint.c (pascal_object_print_value_fields)
7973 (pascal_object_print_value): New functions.
7974
7975 2020-03-13 Tom Tromey <tom@tromey.com>
7976
7977 * p-valprint.c (pascal_value_print_inner): Rewrite.
7978
7979 2020-03-13 Tom Tromey <tom@tromey.com>
7980
7981 * f-valprint.c (f_value_print_innner): Rewrite.
7982
7983 2020-03-13 Tom Tromey <tom@tromey.com>
7984
7985 * m2-valprint.c (m2_print_unbounded_array): New overload.
7986 (m2_print_unbounded_array): Update.
7987 (m2_print_array_contents): Take a struct value.
7988 (m2_value_print_inner): Rewrite.
7989
7990 2020-03-13 Tom Tromey <tom@tromey.com>
7991
7992 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7993 (d_value_print_inner): New function.
7994 * d-lang.h (d_value_print_inner): Declare.
7995 * d-lang.c (d_language_defn): Use d_value_print_inner.
7996
7997 2020-03-13 Tom Tromey <tom@tromey.com>
7998
7999 * go-valprint.c (go_value_print_inner): New function.
8000 * go-lang.h (go_value_print_inner): Declare.
8001 * go-lang.c (go_language_defn): Use go_value_print_inner.
8002
8003 2020-03-13 Tom Tromey <tom@tromey.com>
8004
8005 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8006 API.
8007 (rust_val_print): Rewrite.
8008 (rust_value_print_inner): New function, from rust_val_print.
8009 (rust_language_defn): Use rust_value_print_inner.
8010
8011 2020-03-13 Tom Tromey <tom@tromey.com>
8012
8013 * ada-valprint.c (ada_value_print_inner): New function.
8014 * ada-lang.h (ada_value_print_inner): Declare.
8015 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8016
8017 2020-03-13 Tom Tromey <tom@tromey.com>
8018
8019 * f-valprint.c (f_value_print_innner): New function.
8020 * f-lang.h (f_value_print_innner): Declare.
8021 * f-lang.c (f_language_defn): Use f_value_print_innner.
8022
8023 2020-03-13 Tom Tromey <tom@tromey.com>
8024
8025 * p-valprint.c (pascal_value_print_inner): New function.
8026 * p-lang.h (pascal_value_print_inner): Declare.
8027 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8028
8029 2020-03-13 Tom Tromey <tom@tromey.com>
8030
8031 * m2-valprint.c (m2_value_print_inner): New function.
8032 * m2-lang.h (m2_value_print_inner): Declare.
8033 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8034
8035 2020-03-13 Tom Tromey <tom@tromey.com>
8036
8037 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8038 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8039 * c-valprint.c (c_value_print_inner): New function.
8040 * c-lang.h (c_value_print_inner): Declare.
8041 * c-lang.c (c_language_defn, cplus_language_defn)
8042 (asm_language_defn, minimal_language_defn): Use
8043 c_value_print_inner.
8044
8045 2020-03-13 Tom Tromey <tom@tromey.com>
8046
8047 * p-valprint.c (pascal_object_print_value_fields): Now static.
8048 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8049
8050 2020-03-13 Tom Tromey <tom@tromey.com>
8051
8052 * c-valprint.c (c_val_print_array): Simplify.
8053
8054 2020-03-13 Tom Tromey <tom@tromey.com>
8055
8056 * valprint.c (value_print_array_elements): New function.
8057 * valprint.h (value_print_array_elements): Declare.
8058
8059 2020-03-13 Tom Tromey <tom@tromey.com>
8060
8061 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8062 * mips-tdep.c (mips_print_register): Use
8063 value_print_scalar_formatted.
8064
8065 2020-03-13 Tom Tromey <tom@tromey.com>
8066
8067 * valprint.h (value_print_scalar_formatted): Declare.
8068 * valprint.c (value_print_scalar_formatted): New function.
8069
8070 2020-03-13 Tom Tromey <tom@tromey.com>
8071
8072 * valprint.h (generic_value_print): Declare.
8073 * valprint.c (generic_value_print): New function.
8074
8075 2020-03-13 Tom Tromey <tom@tromey.com>
8076
8077 * valprint.c (do_val_print): Call la_value_print_inner, if
8078 available.
8079 * rust-lang.c (rust_language_defn): Update.
8080 * p-lang.c (pascal_language_defn): Update.
8081 * opencl-lang.c (opencl_language_defn): Update.
8082 * objc-lang.c (objc_language_defn): Update.
8083 * m2-lang.c (m2_language_defn): Update.
8084 * language.h (struct language_defn) <la_value_print_inner>: New
8085 member.
8086 * language.c (unknown_language_defn, auto_language_defn): Update.
8087 * go-lang.c (go_language_defn): Update.
8088 * f-lang.c (f_language_defn): Update.
8089 * d-lang.c (d_language_defn): Update.
8090 * c-lang.c (c_language_defn, cplus_language_defn)
8091 (asm_language_defn, minimal_language_defn): Update.
8092 * ada-lang.c (ada_language_defn): Update.
8093
8094 2020-03-13 Tom Tromey <tom@tromey.com>
8095
8096 * c-valprint.c (c_value_print): Use common_val_print.
8097
8098 2020-03-13 Tom Tromey <tom@tromey.com>
8099
8100 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8101
8102 2020-03-13 Tom Tromey <tom@tromey.com>
8103
8104 * f-valprint.c (f77_print_array_1, f_val_print): Use
8105 common_val_print.
8106
8107 2020-03-13 Tom Tromey <tom@tromey.com>
8108
8109 * riscv-tdep.c (riscv_print_one_register_info): Use
8110 common_val_print.
8111
8112 2020-03-13 Tom Tromey <tom@tromey.com>
8113
8114 * mi/mi-main.c (output_register): Use common_val_print.
8115
8116 2020-03-13 Tom Tromey <tom@tromey.com>
8117
8118 * infcmd.c (default_print_one_register_info): Use
8119 common_val_print.
8120
8121 2020-03-13 Tom Tromey <tom@tromey.com>
8122
8123 * valprint.h (common_val_print_checked): Declare.
8124 * valprint.c (common_val_print_checked): New function.
8125 * stack.c (print_frame_arg): Use common_val_print_checked.
8126
8127 2020-03-13 Tom Tromey <tom@tromey.com>
8128
8129 * valprint.c (do_val_print): New function, from val_print.
8130 (val_print): Use do_val_print.
8131 (common_val_print): Use do_val_print.
8132
8133 2020-03-13 Tom Tromey <tom@tromey.com>
8134
8135 * valprint.c (value_print): Use scoped_value_mark.
8136
8137 2020-03-13 Tom de Vries <tdevries@suse.de>
8138
8139 PR symtab/25646
8140 * psymtab.c (partial_symtab::partial_symtab): Don't set
8141 globals_offset and statics_offset. Push element onto
8142 current_global_psymbols and current_static_psymbols stacks.
8143 (concat): New function.
8144 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8145 element from current_global_psymbols and current_static_psymbols
8146 stacks. Concat popped elements to global_psymbols and
8147 static_symbols.
8148 (add_psymbol_to_list): Use current_global_psymbols and
8149 current_static_psymbols stacks.
8150 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8151 current_static_psymbols fields.
8152
8153 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8154
8155 * corelow.c (sniff_core_bfd): Remove.
8156 (class core_target) <m_core_vec>: Remove.
8157 (core_target::core_target): Update.
8158 (core_file_fns): Remove.
8159 (deprecated_add_core_fns): Remove.
8160 (default_core_sniffer): Remove.
8161 (sniff_core_bfd): Remove.
8162 (default_check_format): Remove.
8163 (gdb_check_format): Remove.
8164 (core_target_open): Update.
8165 (core_target::get_core_register_section): Update.
8166 (get_core_registers_cb): Update.
8167 (core_target::fetch_registers): Update.
8168 * gdbcore.h (struct core_fns): Remove.
8169 (deprecated_add_core_fns): Remove.
8170 (default_core_sniffer): Remove.
8171 (default_check_format): Remove.
8172
8173 2020-03-12 Tom Tromey <tom@tromey.com>
8174
8175 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8176 CORE_ADDR.
8177 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8178
8179 2020-03-12 Tom Tromey <tom@tromey.com>
8180
8181 * remote.c (remote_target::download_tracepoint)
8182 (remote_target::enable_tracepoint)
8183 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8184 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8185 sprintf_vma.
8186
8187 2020-03-12 Tom Tromey <tom@tromey.com>
8188
8189 * symfile-mem.c: Update CORE_ADDR size assert.
8190
8191 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8192
8193 * selftest.m4: Move to gdbsupport/.
8194 * acinclude.m4: Update path to selftest.m4.
8195
8196 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8197
8198 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8199 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8200 gdbarch-selfselftests.c and selftest-arch.c.
8201 (SUBDIR_UNITTESTS_OBS): Rename to...
8202 (SELFTESTS_OBS): ... this.
8203 (COMMON_SFILES): Remove disasm-selftests.c and
8204 gdbarch-selftests.c.
8205 * configure.ac: Don't add selftest-arch.{c,o} to
8206 CONFIG_{SRCS,OBS}.
8207 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8208 preprocessor conditions.
8209
8210 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8211
8212 * configure.ac: Don't source bfd/development.sh.
8213 * selftest.m4: Modify comment.
8214 * configure: Re-generate.
8215
8216 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8217
8218 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8219 not "true" or "false".
8220 * configure: Re-generate.
8221
8222 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8223
8224 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8225 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8226 renamed to arm_nbsd_supply_gregset.
8227 (fetch_register): Update to call arm_nbsd_supply_gregset.
8228 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8229 (arm_netbsd_nat_target::fetch_registers): Update.
8230 (fetch_elfcore_registers): Removed.
8231 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8232 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8233 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8234 not require NetBSD system headers.
8235 (arm_nbsd_regset): New struct.
8236 (arm_nbsd_iterate_over_regset_sections): New function.
8237 (arm_netbsd_init_abi_common): Updated to call
8238 set_gdbarch_iterate_over_regset_sections.
8239 * arm-nbsd-tdep.h: New file.
8240
8241 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8242
8243 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8244 recursion.
8245
8246 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8247
8248 * configure: Re-generate.
8249
8250 2020-03-11 Tom Tromey <tromey@adacore.com>
8251
8252 * ada-typeprint.c (print_choices): Fix comment.
8253
8254 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8255
8256 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8257 previous item in the list, when the list has no items.
8258
8259 2020-03-11 Tom de Vries <tdevries@suse.de>
8260
8261 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8262 PROP_LOCLIST handling code.
8263
8264 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8265
8266 * buildsym-legacy.c (record_line): Pass extra parameter to
8267 record_line.
8268 * buildsym.c (buildsym_compunit::record_line): Take an extra
8269 parameter, reduce duplication in the line table, and record the
8270 is_stmt flag in the line table.
8271 * buildsym.h (buildsym_compunit::record_line): Add extra
8272 parameter.
8273 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8274 non-statement lines.
8275 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8276 this to the symtab builder.
8277 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8278 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8279 through to dwarf_record_line_1.
8280 * infrun.c (process_event_stop_test): When stepping, don't stop at
8281 a non-statement instruction, and only refresh the step info when
8282 we land in the middle of a line's range. Also add an extra
8283 comment.
8284 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8285 field.
8286 * record-btrace.c (btrace_find_line_range): Only record lines
8287 marked as is-statement.
8288 * stack.c (frame_show_address): Show the frame address if we are
8289 in a non-statement sal.
8290 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8291 (maintenance_print_one_line_table): Print a header for the is_stmt
8292 column, and include is_stmt information in the output.
8293 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8294 preference to non-statements.
8295 (find_pcs_for_symtab_line): Prefer is-statement entries.
8296 (find_line_common): Likewise.
8297 * symtab.h (struct linetable_entry): Add is_stmt field.
8298 (struct symtab_and_line): Likewise.
8299 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8300 arranging the line table.
8301
8302 2020-03-07 Tom de Vries <tdevries@suse.de>
8303
8304 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8305 DIE.
8306
8307 2020-03-07 Tom Tromey <tom@tromey.com>
8308
8309 * valops.c (value_literal_complex): Remove obsolete comment.
8310 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8311 comment.
8312
8313 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8314
8315 * infrun.h: Forward-declare thread_info.
8316 (set_step_info): Add thread_info parameter, add doc.
8317 * infrun.c (set_step_info): Add thread_info parameter, move doc
8318 to header.
8319 * infrun.c (process_event_stop_test): Pass thread to
8320 set_step_info call.
8321 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8322 set_step_info.
8323 (prepare_one_step): Add thread_info parameter, pass it to
8324 set_step_frame and prepare_one_step (recursive) call.
8325 (step_1): Pass thread to prepare_one_step call.
8326 (step_command_fsm::should_stop): Pass thread to
8327 prepare_one_step.
8328 (until_next_fsm): Pass thread to set_step_frame call.
8329 (finish_command): Pass thread to set_step_info call.
8330
8331 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8332
8333 * windows-tdep.c (windows_solib_create_inferior_hook):
8334 Check if inferior is running.
8335
8336 2020-03-06 Tom de Vries <tdevries@suse.de>
8337
8338 * NEWS: Fix "the the".
8339 * ctfread.c: Same.
8340
8341 2020-03-06 Tom de Vries <tdevries@suse.de>
8342
8343 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8344
8345 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8346
8347 * .dir-locals.el: Add a comment referencing the other copies of
8348 this file.
8349
8350 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8351
8352 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8353 psargs.
8354
8355 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8356
8357 * .gitattributes: New file.
8358
8359 2020-03-04 Tom Tromey <tom@tromey.com>
8360
8361 * symmisc.c (print_symbol_bcache_statistics)
8362 (print_objfile_statistics): Update.
8363 * symfile.c (allocate_symtab): Use intern.
8364 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8365 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8366 macro_cache>: Remove.
8367 <string_cache>: New member.
8368 (struct objfile) <intern>: New methods.
8369 * elfread.c (elf_symtab_read): Use intern.
8370 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8371 (dwarf2_compute_name, dwarf2_physname)
8372 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8373 names.
8374 (guess_partial_die_structure_name): Update.
8375 (partial_die_info::fixup): Intern name.
8376 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8377 name.
8378 (dwarf2_name): Intern name. Update.
8379 * buildsym.c (buildsym_compunit::get_macro_table): Use
8380 string_cache.
8381
8382 2020-03-04 Tom Tromey <tom@tromey.com>
8383
8384 * jit.c (bfd_open_from_target_memory): Make "target" const.
8385 * corefile.c (gnutarget): Now const.
8386 * gdbcore.h (gnutarget): Now const.
8387
8388 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8389
8390 * NEWS: Mention support for WOW64 processes.
8391 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8392 (amd64_windows_segment_register_p): Remove static.
8393 (_initialize_amd64_windows_nat): Update.
8394 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8395 * i386-windows-nat.c (context_offset): Update.
8396 (i386_mappings): Rename and remove static.
8397 (i386_windows_segment_register_p): Remove static.
8398 (_initialize_i386_windows_nat): Update.
8399 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8400 (STATUS_WX86_SINGLE_STEP): New macro.
8401 (EnumProcessModulesEx): New macro.
8402 (Wow64SuspendThread): New macro.
8403 (Wow64GetThreadContext): New macro.
8404 (Wow64SetThreadContext): New macro.
8405 (Wow64GetThreadSelectorEntry): New macro.
8406 (windows_set_context_register_offsets): Add static.
8407 (windows_set_segment_register_p): Likewise.
8408 (windows_add_thread): Adapt for WOW64 processes.
8409 (windows_fetch_one_register): Likewise.
8410 (windows_nat_target::fetch_registers): Likewise.
8411 (windows_store_one_register): Likewise.
8412 (display_selector): Likewise.
8413 (display_selectors): Likewise.
8414 (handle_exception): Likewise.
8415 (windows_continue): Likewise.
8416 (windows_nat_target::resume): Likewise.
8417 (windows_add_all_dlls): Likewise.
8418 (do_initial_windows_stuff): Likewise.
8419 (windows_nat_target::attach): Likewise.
8420 (windows_get_exec_module_filename): Likewise.
8421 (windows_nat_target::create_inferior): Likewise.
8422 (windows_xfer_siginfo): Likewise.
8423 (_initialize_loadable): Initialize Wow64SuspendThread,
8424 Wow64GetThreadContext, Wow64SetThreadContext,
8425 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8426 * windows-nat.h (windows_set_context_register_offsets):
8427 Remove declaration.
8428 (windows_set_segment_register_p): Likewise.
8429 (i386_windows_segment_register_p): Add declaration.
8430 (amd64_windows_segment_register_p): Likewise.
8431
8432 2020-03-04 Luis Machado <luis.machado@linaro.org>
8433
8434 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8435 in "info registers" for AArch64/ARM.
8436
8437 The change caused "info registers" to not print GPR's.
8438
8439 gdb/ChangeLog:
8440
8441 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8442
8443 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8444 when reg->group is empty and reggroup is not.
8445
8446 2020-03-03 Tom Tromey <tromey@adacore.com>
8447
8448 * dwarf2/frame.c (struct dwarf2_frame_cache)
8449 <checked_tailcall_bottom, entry_cfa_sp_offset,
8450 entry_cfa_sp_offset_p>: Remove members.
8451 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8452 (dwarf2_frame_prev_register): Don't call
8453 dwarf2_tailcall_sniffer_first.
8454 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8455 * frame-unwind.c (add_unwinder): New fuction.
8456 (frame_unwind_init): Use it. Add tailcall unwinder.
8457
8458 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8459 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8460
8461 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8462 value should be printed as true.
8463
8464 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8465
8466 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8467 (windows_init_abi): Set and use windows_so_ops.
8468
8469 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8470
8471 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8472 when verifying if dealing with a convenience variable.
8473
8474 2020-03-03 Luis Machado <luis.machado@linaro.org>
8475
8476 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8477
8478 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8479
8480 * infrun.c (gdbarch_supports_displaced_stepping): New.
8481 (use_displaced_stepping): Break up conditions in smaller pieces.
8482 Use gdbarch_supports_displaced_stepping.
8483 (displaced_step_prepare_throw): Use
8484 gdbarch_supports_displaced_stepping.
8485
8486 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8487
8488 * NEWS: Mention new behaviour of the history filename.
8489 * top.c (write_history_p): Add comment.
8490 (show_write_history_p): Add header comment, give a different
8491 message when history writing is on, but the history filename is
8492 empty.
8493 (history_filename): Add comment.
8494 (history_filename_empty): New function.
8495 (show_history_filename): Add header comment, give a different
8496 message when the filename is empty.
8497 (init_history): Compare history_filename against nullptr, and only
8498 read history if the filename is not empty.
8499 (set_history_filename): Add header comment, and only make
8500 non-empty filenames absolute.
8501 (init_main): Make the filename argument to 'set history filename'
8502 optional.
8503
8504 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8505
8506 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8507 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8508 (fetch_fp_register): Update.
8509 (fetch_fp_regs): Update.
8510 (store_fp_register): Update.
8511 (store_fp_regs): Update.
8512 (arm_netbsd_nat_target::read_description): New function.
8513 (fetch_elfcore_registers): Update.
8514
8515 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8516
8517 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8518 general_thread if the stop reply is missing a thread-id.
8519 (remote_target::process_stop_reply): Use the first non-exited
8520 thread if the target didn't pass a thread-id.
8521 * infrun.c (do_target_wait): Move call to
8522 switch_to_inferior_no_thread to ....
8523 (do_target_wait_1): ... here.
8524
8525 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8526
8527 * debuginfod-support.c: Include defs.h first.
8528
8529 2020-02-28 Tom de Vries <tdevries@suse.de>
8530
8531 * symfile.c (set_initial_language): Use default language for lookup.
8532
8533 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8534
8535 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8536 reader variable, pass `this` to read_cutu_die_from_dwo.
8537
8538 2020-02-27 Aaron Merey <amerey@redhat.com>
8539
8540 * source.c (open_source_file): Check for nullptr when computing
8541 srcpath.
8542
8543 2020-02-27 Tom Tromey <tromey@adacore.com>
8544
8545 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8546 member.
8547 (dwarf2_add_field): Don't update nfields.
8548 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8549
8550 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8551
8552 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8553 abs.
8554
8555 2020-02-26 Tom Tromey <tom@tromey.com>
8556
8557 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8558 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8559 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8560 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8561 per_cu_data.
8562
8563 2020-02-26 Tom Tromey <tom@tromey.com>
8564
8565 * dwarf2/index-write.c (psym_index_map): Change type.
8566 (add_address_entry_worker, write_one_signatured_type)
8567 (recursively_count_psymbols, recursively_write_psymbols)
8568 (class debug_names, psyms_seen_size, write_gdbindex)
8569 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8570
8571 2020-02-26 Aaron Merey <amerey@redhat.com>
8572
8573 * Makefile.in: Handle optional debuginfod support.
8574 * NEWS: Update.
8575 * README: Add --with-debuginfod summary.
8576 * config.in: Regenerate.
8577 * configure: Regenerate.
8578 * configure.ac: Handle optional debuginfod support.
8579 * debuginfod-support.c: debuginfod helper functions.
8580 * debuginfod-support.h: Ditto.
8581 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8582 summary.
8583 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8584 when a dwz file cannot be found.
8585 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8586 debuginfo file cannot be found.
8587 * source.c (open_source_file): Query debuginfod servers when a
8588 source file cannot be found.
8589 * top.c (print_gdb_configuration): Include
8590 --{with,without}-debuginfod in the output.
8591
8592 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8593
8594 * thread.c (thr_try_catch_cmd): Print thread name.
8595
8596 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8597
8598 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8599 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8600 dwarf2_fetch_die_type_sect_off): Move to...
8601 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8602 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8603 dwarf2_fetch_die_type_sect_off): ... here.
8604 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8605 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8606 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8607
8608 2020-02-26 Tom de Vries <tdevries@suse.de>
8609
8610 PR gdb/25603
8611 * symfile.c (set_initial_language): Exit-early if
8612 language_mode == language_mode_manual.
8613
8614 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8615
8616 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8617 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8618 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8619
8620 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8621
8622 * gdbtypes.c (create_array_type_with_stride): Handle negative
8623 array strides.
8624 * valarith.c (value_subscripted_rvalue): Likewise.
8625
8626 2020-02-25 Luis Machado <luis.machado@linaro.org>
8627
8628 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8629
8630 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8631
8632 * loc.h (dwarf2_get_die_type): Move to...
8633 * read.h (dwarf2_get_die_type): ... here.
8634 * read.c (dwarf2_get_die_type): Move doc to header.
8635
8636 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8637
8638 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8639 'gnulib/Makefile.in' to the list.
8640
8641 2020-02-24 Tom Tromey <tom@tromey.com>
8642
8643 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8644 Remove.
8645 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8646 XOBNEWVEC.
8647
8648 2020-02-24 Tom Tromey <tom@tromey.com>
8649
8650 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8651 New method.
8652 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8653 (dw2_do_instantiate_symtab, dw2_get_file_names)
8654 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8655
8656 2020-02-24 Tom Tromey <tom@tromey.com>
8657
8658 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8659 make_scoped_restore.
8660 (dwarf2_psymtab::read_symtab): Don't clear
8661 reading_partial_symbols.
8662
8663 2020-02-24 Tom de Vries <tdevries@suse.de>
8664
8665 PR gdb/25592
8666 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8667
8668 2020-02-24 Tom de Vries <tdevries@suse.de>
8669
8670 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8671 commands layout next/prev/regs.
8672
8673 2020-02-22 Tom Tromey <tom@tromey.com>
8674
8675 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8676 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8677
8678 2020-02-22 Tom Tromey <tom@tromey.com>
8679
8680 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8681
8682 2020-02-22 Tom Tromey <tom@tromey.com>
8683
8684 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8685 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8686 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8687 * tui/tui.c (_initialize_tui): Add usage text.
8688
8689 2020-02-22 Tom Tromey <tom@tromey.com>
8690
8691 * tui/tui-win.c (tui_set_focus_command)
8692 (tui_set_win_height_command): Use error_no_arg.
8693 (_initialize_tui_win): Update help text.
8694 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8695
8696 2020-02-22 Tom Tromey <tom@tromey.com>
8697
8698 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8699 * tui/tui-disasm.h (struct tui_disasm_window)
8700 <display_start_addr>: Declare.
8701 * tui/tui-source.h (struct tui_source_window)
8702 <display_start_addr>: Declare.
8703 * tui/tui-winsource.h (struct tui_source_window_base)
8704 <show_source_line, display_start_addr>: New methods.
8705 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8706 Rename and move to protected section.
8707 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8708 (tui_source_window_base::do_erase_source_content): Update.
8709 (tui_source_window_base::show_source_line): Now a method.
8710 (tui_source_window_base::show_source_content)
8711 (tui_source_window_base::tui_source_window_base)
8712 (tui_source_window_base::rerender)
8713 (tui_source_window_base::refill)
8714 (tui_source_window_base::do_scroll_horizontal)
8715 (tui_source_window_base::set_is_exec_point_at)
8716 (tui_source_window_base::update_breakpoint_info)
8717 (tui_source_window_base::update_exec_info): Update.
8718 * tui/tui-source.c (tui_source_window::set_contents)
8719 (tui_source_window::showing_source_p)
8720 (tui_source_window::do_scroll_vertical)
8721 (tui_source_window::location_matches_p)
8722 (tui_source_window::line_is_displayed): Update.
8723 (tui_source_window::display_start_addr): New method.
8724 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8725 (tui_disasm_window::do_scroll_vertical)
8726 (tui_disasm_window::location_matches_p): Update.
8727 (tui_disasm_window::display_start_addr): New method.
8728
8729 2020-02-22 Tom Tromey <tom@tromey.com>
8730
8731 * NEWS: Add entry for gdb.register_window_type.
8732 * tui/tui-layout.h (window_factory): New typedef.
8733 (tui_register_window): Declare.
8734 * tui/tui-layout.c (saved_tui_windows): New global.
8735 (tui_apply_current_layout): Use it.
8736 (tui_register_window): New function.
8737 * python/python.c (do_start_initialization): Call
8738 gdbpy_initialize_tui.
8739 (python_GdbMethods): Add "register_window_type" function.
8740 * python/python-internal.h (gdbpy_register_tui_window)
8741 (gdbpy_initialize_tui): Declare.
8742 * python/py-tui.c: New file.
8743 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8744
8745 2020-02-22 Tom Tromey <tom@tromey.com>
8746
8747 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8748
8749 2020-02-22 Tom Tromey <tom@tromey.com>
8750
8751 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8752 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8753 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8754 (tui_set_win_focus_to): Move from tui-win.c.
8755
8756 2020-02-22 Tom Tromey <tom@tromey.com>
8757
8758 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8759 functions.
8760 (known_window_types): New global.
8761 (tui_get_window_by_name): Reimplement.
8762 (initialize_known_windows): New function.
8763 (validate_window_name): Rewrite.
8764 (_initialize_tui_layout): Call initialize_known_windows.
8765
8766 2020-02-22 Tom Tromey <tom@tromey.com>
8767
8768 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8769 Remove constants.
8770 * tui/tui-winsource.h (struct tui_source_window_base)
8771 <tui_source_window_base>: Remove parameter.
8772 * tui/tui-winsource.c
8773 (tui_source_window_base::tui_source_window_base): Remove
8774 parameter.
8775 (tui_source_window_base::refill): Update.
8776 * tui/tui-stack.h (struct tui_locator_window)
8777 <tui_locator_window>: Update.
8778 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8779 Default the constructor.
8780 * tui/tui-regs.h (struct tui_data_item_window)
8781 <tui_data_item_window>: Default the constructor.
8782 (struct tui_data_window) <tui_data_window>: Likewise.
8783 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8784 Default the constructor.
8785 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8786 Default the constructor.
8787 <type>: Remove.
8788 (struct tui_win_info) <tui_win_info>: Default the constructor.
8789 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8790 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8791 Default the constructor.
8792
8793 2020-02-22 Tom Tromey <tom@tromey.com>
8794
8795 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8796 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8797 * tui/tui-win.c (tui_resize_all): Don't call
8798 tui_delete_invisible_windows.
8799 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8800 done.
8801 (tui_set_layout): Update.
8802 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8803 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8804 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8805
8806 2020-02-22 Tom Tromey <tom@tromey.com>
8807
8808 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8809 correctly.
8810
8811 2020-02-22 Tom Tromey <tom@tromey.com>
8812
8813 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8814
8815 2020-02-22 Tom Tromey <tom@tromey.com>
8816
8817 * tui/tui-winsource.h (struct tui_source_window_iterator)
8818 <inner_iterator>: New etytypedef.
8819 <tui_source_window_iterator>: Take "end" parameter.
8820 <tui_source_window_iterator>: Take iterator.
8821 <operator*, advance>: Update.
8822 <m_iter>: Change type.
8823 <m_end>: New field.
8824 (struct tui_source_windows) <begin, end>: Update.
8825 * tui/tui-layout.c (tui_windows): New global.
8826 (tui_apply_current_layout): Clear tui_windows.
8827 (tui_layout_window::apply): Update tui_windows.
8828 * tui/tui-data.h (tui_windows): Declare.
8829 (all_tui_windows): Now inline function.
8830 (class tui_window_iterator, struct all_tui_windows): Remove.
8831
8832 2020-02-22 Tom Tromey <tom@tromey.com>
8833
8834 PR tui/17850:
8835 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8836 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8837 "height" argument.
8838 (class tui_layout_window) <get_sizes>: Likewise.
8839 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8840 argument.
8841 <get_sizes>: Add "height" argument.
8842 <m_vertical>: New field.
8843 * tui/tui-layout.c (tui_layout_split::clone): Update.
8844 (tui_layout_split::get_sizes): Add "height" argument.
8845 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8846 (tui_new_layout_command): Parse "-horizontal".
8847 (_initialize_tui_layout): Update help string.
8848 (tui_layout_split::specification): Add "-horizontal" when needed.
8849 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8850 argument.
8851 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8852 New methods.
8853
8854 2020-02-22 Tom Tromey <tom@tromey.com>
8855
8856 * tui/tui-layout.h (enum tui_adjust_result): New.
8857 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8858 (class tui_layout_window) <adjust_size>: Return
8859 tui_adjust_result. Rewrite.
8860 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8861 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8862
8863 2020-02-22 Tom Tromey <tom@tromey.com>
8864
8865 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8866 parameter and return types.
8867 (class tui_layout_base) <specification>: Add "depth".
8868 (class tui_layout_window) <specification>: Add "depth".
8869 (class tui_layout_split) <specification>: Add "depth".
8870 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8871 and return types.
8872 (tui_new_layout_command): Parse sub-layouts.
8873 (_initialize_tui_layout): Update help string.
8874 (tui_layout_window::specification): Add "depth".
8875 (add_layout_command): Update.
8876
8877 2020-02-22 Tom Tromey <tom@tromey.com>
8878
8879 * NEWS: Add "tui new-layout" item.
8880 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8881 Add new-layout command to help text.
8882 (validate_window_name): New function.
8883 (tui_new_layout_command): New function.
8884 (_initialize_tui_layout): Register "new-layout".
8885 (tui_layout_window::specification): New method.
8886 (tui_layout_window::specification): New method.
8887 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8888 method.
8889 (class tui_layout_window) <specification>: New method.
8890 (class tui_layout_split) <specification>: New method.
8891
8892 2020-02-22 Tom Tromey <tom@tromey.com>
8893
8894 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8895 * tui/tui-win.c (window_name_completer): Update comment.
8896 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8897 Declare method.
8898 (class tui_layout_window) <replace_window>: Likewise.
8899 (class tui_layout_split) <replace_window>: Likewise.
8900 (tui_set_layout): Don't declare.
8901 (tui_set_initial_layout): Declare function.
8902 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8903 (asm_regs_layout): New globals.
8904 (tui_current_layout, show_layout): Remove.
8905 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8906 (find_layout, tui_apply_layout): New function.
8907 (layout_completer): Remove.
8908 (tui_next_layout): Reimplement.
8909 (tui_next_layout_command): New function.
8910 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8911 (tui_regs_layout): Reimplement.
8912 (tui_regs_layout_command): New function.
8913 (extract_display_start_addr): Rewrite.
8914 (next_layout, prev_layout): Remove.
8915 (tui_layout_window::replace_window): New method.
8916 (tui_layout_split::replace_window): New method.
8917 (destroy_layout): New function.
8918 (layout_list): New global.
8919 (add_layout_command): New function.
8920 (initialize_layouts): Update.
8921 (tui_layout_command): New function.
8922 (_initialize_tui_layout): Install "layout" commands.
8923 * tui/tui-data.h (enum tui_layout_type): Remove.
8924 (tui_current_layout): Don't declare.
8925
8926 2020-02-22 Tom Tromey <tom@tromey.com>
8927
8928 * tui/tui-regs.c (tui_reg_layout): Remove.
8929 (tui_reg_command): Use tui_regs_layout.
8930 * tui/tui-layout.h (tui_reg_command): Declare.
8931 * tui/tui-layout.c (tui_reg_command): New function.
8932
8933 2020-02-22 Tom Tromey <tom@tromey.com>
8934
8935 * tui/tui.c (tui_rl_delete_other_windows): Call
8936 tui_remove_some_windows.
8937 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8938 Declare method.
8939 (class tui_layout_window) <remove_windows>: New method.
8940 (class tui_layout_split) <remove_windows>: Declare.
8941 (tui_remove_some_windows): Declare.
8942 * tui/tui-layout.c (tui_remove_some_windows): New function.
8943 (tui_layout_split::remove_windows): New method.
8944
8945 2020-02-22 Tom Tromey <tom@tromey.com>
8946
8947 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8948 * tui/tui-layout.h (tui_next_layout): Declare.
8949 * tui/tui-layout.c (tui_next_layout): New function.
8950
8951 2020-02-22 Tom Tromey <tom@tromey.com>
8952
8953 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8954 correct coordinates.
8955
8956 2020-02-22 Tom Tromey <tom@tromey.com>
8957
8958 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8959 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8960 DATA_WIN case.
8961
8962 2020-02-22 Tom Tromey <tom@tromey.com>
8963
8964 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8965 TUI_DISASM_WIN, not tui_win_list.
8966
8967 2020-02-22 Tom Tromey <tom@tromey.com>
8968
8969 * valprint.c (generic_val_print_enum_1)
8970 (val_print_type_code_flags): Style member names.
8971 * rust-lang.c (val_print_struct, rust_print_enum)
8972 (rust_print_struct_def, rust_internal_print_type): Style member
8973 names.
8974 * p-valprint.c (pascal_object_print_value_fields): Style member
8975 names. Only call fprintf_symbol_filtered for static members.
8976 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8977 * f-valprint.c (f_val_print): Style member names.
8978 * f-typeprint.c (f_type_print_base): Style member names.
8979 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8980 call fprintf_symbol_filtered for static members.
8981 (cp_print_class_member): Style member names.
8982 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8983 member names.
8984 * ada-valprint.c (ada_print_scalar): Style enum names.
8985 (ada_val_print_enum): Likewise.
8986 * ada-typeprint.c (print_enum_type): Style enum names.
8987
8988 2020-02-21 Tom Tromey <tom@tromey.com>
8989
8990 * psympriv.h (struct partial_symtab): Update comment.
8991
8992 2020-02-21 Tom Tromey <tromey@adacore.com>
8993
8994 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8995 type is CORE_ADDR.
8996
8997 2020-02-21 Tom de Vries <tdevries@suse.de>
8998
8999 PR gdb/25534
9000 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9001 if dependencies[i]->user != NULL.
9002
9003 2020-02-21 Ali Tamur <tamur@google.com>
9004
9005 * dwarf2/read.c (dwarf2_name): Add null check.
9006
9007 2020-02-20 Tom Tromey <tom@tromey.com>
9008
9009 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9010 ">=", in binary search.
9011 (dwarf2_find_containing_comp_unit): New overload.
9012 (run_test): New self-test.
9013 (_initialize_dwarf2_read): Register new test.
9014
9015 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9016
9017 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9018 * riscv-tdep.h: Likewise.
9019 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9020 rv32-only CSR.
9021 * features/riscv/64bit-csr.xml: Regenerated.
9022
9023 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9024 Tom Tromey <tom@tromey.com>
9025
9026 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9027 of 'fputc_unfiltered'.
9028 (putchar_unfiltered): Call 'fputc_unfiltered'.
9029 (fputc_unfiltered): Call 'fputs_unfiltered'.
9030
9031 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9032
9033 * config.in: Regenerate.
9034 * configure: Regenerate.
9035 * configure.ac: Add --with-python-libdir option.
9036 * main.c: Use WITH_PYTHON_LIBDIR.
9037
9038 2020-02-19 Tom Tromey <tom@tromey.com>
9039
9040 * symtab.c (general_symbol_info::compute_and_set_names): Use
9041 obstack_strndup. Simplify call to symbol_set_demangled_name.
9042
9043 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9044
9045 * dwarf2/read.c (allocate_signatured_type_table,
9046 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9047 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9048 Remove objfile parameter, update all callers.
9049
9050 2020-02-19 Doug Evans <dje@google.com>
9051
9052 PR rust/25535
9053 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9054 rust_enum_variant calculation.
9055
9056 2020-02-19 Tom Tromey <tromey@adacore.com>
9057
9058 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9059
9060 2020-02-19 Tom Tromey <tromey@adacore.com>
9061
9062 * ada-lang.c (cache_symbol): Use obstack_strdup.
9063
9064 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9065
9066 * configure: Regenerate.
9067
9068 2020-02-19 Tom Tromey <tromey@adacore.com>
9069
9070 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9071 NULL check.
9072
9073 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9074
9075 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9076
9077 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9078
9079 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9080 if GDBSERVER is not defined.
9081 (riscv_tdesc_cache): Likewise, also store const target_desc.
9082 (STATIC_IN_GDB): Define.
9083 (riscv_create_target_description): Update declaration with
9084 STATIC_IN_GDB.
9085 (riscv_lookup_target_description): New function, only define if
9086 GDBSERVER is not defined.
9087 * arch/riscv.h (riscv_create_target_description): Declare only
9088 when GDBSERVER is defined.
9089 (riscv_lookup_target_description): New declaration when GDBSERVER
9090 is not defined.
9091 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9092 (riscv_linux_read_features): ...this, and return
9093 riscv_gdbarch_features instead of target_desc.
9094 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9095 (riscv_linux_read_description): Rename to...
9096 (riscv_linux_read_features): ...this.
9097 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9098 Update to use riscv_gdbarch_features and
9099 riscv_lookup_target_description.
9100 * riscv-tdep.c (riscv_find_default_target_description): Use
9101 riscv_lookup_target_description instead of
9102 riscv_create_target_description.
9103
9104 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9105
9106 * valprint.c (generic_val_print_enum_1): When printing a flag
9107 enum with value 0 and there is no enumerator with value 0, print
9108 just "0" instead of "(unknown: 0x0)".
9109
9110 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9111
9112 * valprint.c (generic_val_print_enum_1): Print unknown part of
9113 flag enum in hex.
9114
9115 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9116
9117 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9118 flag enums to contain duplicate enumerators.
9119 * valprint.c (generic_val_print_enum_1): Update comment.
9120
9121 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9122
9123 * dwarf2/read.c: Include "count-one-bits.h".
9124 (update_enumeration_type_from_children): If an enumerator has
9125 multiple bits set, don't treat the enumeration as a "flag enum".
9126 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9127 of flag enums have 0 or 1 bit set.
9128
9129 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9130
9131 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9132 conversion.
9133 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9134 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9135 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9136 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9137 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9138
9139 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9140
9141 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9142
9143 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9144
9145 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9146 displaced_step_closure_up.
9147 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9148 (struct displaced_step_closure_up):
9149 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9150 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9151 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9152 Likewise.
9153 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9154 * gdbarch.c, gdbarch.h: Re-generate.
9155 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9156 displaced_step_closure_up.
9157 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9158 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9159 * infrun.h (displaced_step_closure_up): New type alias.
9160 (struct displaced_step_inferior_state) <step_closure>: Change
9161 type to displaced_step_closure_up.
9162 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9163 displaced_step_closure_up.
9164 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9165
9166 2020-02-14 Tom Tromey <tom@tromey.com>
9167
9168 * minidebug.c (gnu_debug_key): New global.
9169 (find_separate_debug_file_in_section): Use it.
9170
9171 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9172
9173 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9174 std::unique_ptr.
9175 * gdbarch.c: Re-generate.
9176 * gdbarch.h: Re-generate.
9177 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9178 change.
9179 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9180 type to std::unique_ptr.
9181 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9182 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9183 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9184 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9185 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9186 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9187 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9188 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9189 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9190
9191 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9192
9193 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9194 std::unique_ptr.
9195 (displaced_step_clear): Rename to...
9196 (displaced_step_reset): ... this. Just call displaced->reset ().
9197 (displaced_step_clear_cleanup): Rename to...
9198 (displaced_step_reset_cleanup): ... this.
9199 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9200 (displaced_step_fixup): Likewise.
9201 (resume_1): Likewise.
9202 (handle_inferior_event): Restore child's memory before calling
9203 displaced_step_fixup on the parent.
9204 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9205 to std::unique_ptr.
9206 <step_closure>: Change type to std::unique_ptr.
9207
9208 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9209
9210 * arm-tdep.c: Include count-one-bits.h.
9211 (cleanup_block_store_pc): Use count_one_bits.
9212 (cleanup_block_load_pc): Use count_one_bits.
9213 (arm_copy_block_xfer): Use count_one_bits.
9214 (thumb2_copy_block_xfer): Use count_one_bits.
9215 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9216 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9217 (thumb_get_next_pcs_raw): Use count_one_bits.
9218 (arm_get_next_pcs_raw): Use count_one_bits_l.
9219 * arch/arm.c (bitcount): Remove.
9220 * arch/arm.h (bitcount): Remove.
9221
9222 2020-02-14 Tom Tromey <tromey@adacore.com>
9223
9224 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9225 Update.
9226 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9227 * dwarf2/loc.c (call_site_find_chain_1): Return
9228 unique_xmalloc_ptr.
9229 (call_site_find_chain): Likewise.
9230
9231 2020-02-14 Richard Biener <rguenther@suse.de>
9232
9233 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9234 on expression with division operators.
9235
9236 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9237
9238 * MAINTAINERS (Write After Approval): Adding myself.
9239
9240 2020-02-12 Tom Tromey <tom@tromey.com>
9241
9242 * event-loop.c (event_data, gdb_event, event_handler_func):
9243 Remove.
9244
9245 2020-02-12 Tom Tromey <tom@tromey.com>
9246
9247 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9248 (dwarf2_frame_objfile_data): Add comment.
9249 (find_comp_unit, set_comp_unit): New functions.
9250 (dwarf2_frame_find_fde): Use find_comp_unit.
9251 (dwarf2_build_frame_info): Use set_comp_unit.
9252
9253 2020-02-12 Tom Tromey <tom@tromey.com>
9254
9255 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9256 (comp_unit): Don't initialize objfile.
9257 (execute_cfa_program): Add text_offset parameter.
9258 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9259 (dwarf2_frame_cache): Update.
9260 (dwarf2_build_frame_info): Don't set "objfile" member.
9261
9262 2020-02-12 Tom Tromey <tom@tromey.com>
9263
9264 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9265 (decode_frame_entry): Likewise.
9266 (dwarf2_build_frame_info): Update.
9267
9268 2020-02-12 Tom Tromey <tom@tromey.com>
9269
9270 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9271 (decode_frame_entry_1): Use the comp_unit obstack.
9272
9273 2020-02-12 Tom Tromey <tom@tromey.com>
9274
9275 * dwarf2/frame.c (struct comp_unit): Add initializers and
9276 constructor.
9277 (dwarf2_frame_objfile_data): Store a comp_unit.
9278 (dwarf2_frame_find_fde): Update.
9279 (dwarf2_build_frame_info): Use "new".
9280
9281 2020-02-12 Tom Tromey <tom@tromey.com>
9282
9283 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9284 (dwarf2_fde_table): Typedef for std::vector.
9285 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9286 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9287 (decode_frame_entry): Update.
9288 (dwarf2_build_frame_info): Use "new".
9289
9290 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9291
9292 * arm-tdep.c (arm_gdbarch_init): Update.
9293 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9294 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9295 have_neon, is_m>: Change to bool.
9296
9297 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9298
9299 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9300
9301 2020-02-12 Tom Tromey <tom@tromey.com>
9302
9303 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9304
9305 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9306
9307 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9308 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9309
9310 2020-02-11 Tom Tromey <tom@tromey.com>
9311
9312 * psymtab.h: Update comment.
9313
9314 2020-02-11 Tom Tromey <tom@tromey.com>
9315
9316 * gdb_obstack.h (struct auto_obstack): Use
9317 DISABLE_COPY_AND_ASSIGN.
9318
9319 2020-02-11 Tom Tromey <tom@tromey.com>
9320
9321 * dwarf2/frame.h (struct objfile): Don't forward declare.
9322
9323 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9324
9325 * cris-tdep.c (cris_supply_gregset): Change signature to match
9326 what struct regset expects.
9327 (cris_regset): New struct.
9328 (fetch_core_registers): Remove.
9329 (cris_iterate_over_regset_sections): New function.
9330 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9331 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9332
9333 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9334
9335 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9336 registers.
9337
9338 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9339
9340 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9341
9342 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9343
9344 * configure: Re-generate.
9345
9346 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9347
9348 * configure: Re-generate.
9349
9350 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9351
9352 * acinclude: Update warning.m4 path.
9353 * warning.m4: Move to gdbsupport.
9354
9355 2020-02-11 Tom Tromey <tromey@adacore.com>
9356
9357 * remote.c (remote_console_output): Update.
9358 * printcmd.c (printf_command): Update.
9359 * event-loop.c (gdb_wait_for_event): Update.
9360 * linux-nat.c (sigchld_handler): Update.
9361 * remote-sim.c (gdb_os_write_stdout): Update.
9362 (gdb_os_flush_stdout): Update.
9363 (gdb_os_flush_stderr): Update.
9364 (gdb_os_write_stderr): Update.
9365 * exceptions.c (print_exception): Update.
9366 * remote-fileio.c (remote_fileio_func_read): Update.
9367 (remote_fileio_func_write): Update.
9368 * tui/tui.c (tui_enable): Update.
9369 * tui/tui-interp.c (tui_interp::init): Update.
9370 * utils.c (init_page_info): Update.
9371 (putchar_unfiltered, fputc_unfiltered): Update.
9372 (gdb_flush): Update.
9373 (emit_style_escape): Update.
9374 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9375 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9376 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9377 (stderr_file::write): Update.
9378 (stderr_file::puts): Update.
9379 * ui-file.h (ui_file_isatty, ui_file_write)
9380 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9381 (ui_file_puts): Don't declare.
9382
9383 2020-02-10 Tom de Vries <tdevries@suse.de>
9384
9385 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9386 sentinel to char *.
9387
9388 2020-02-09 Tom de Vries <tdevries@suse.de>
9389
9390 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9391 filename if it matches "<artificial>".
9392
9393 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9394
9395 * windows-tdep.c (struct enum_value_name): New struct.
9396 (create_enum): New function.
9397 (windows_get_siginfo_type): Create and use enum types.
9398
9399 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9400
9401 * NEWS: Mention $_siginfo support for Windows.
9402 * windows-nat.c (handle_exception): Set siginfo_er.
9403 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9404 (windows_xfer_siginfo): New function.
9405 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9406 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9407 (init_windows_gdbarch_data): New function.
9408 (get_windows_gdbarch_data): New function.
9409 (windows_get_siginfo_type): New function.
9410 (windows_init_abi): Register windows_get_siginfo_type.
9411 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9412
9413 2020-02-08 Tom Tromey <tom@tromey.com>
9414
9415 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9416 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9417 <keep>: Declare method.
9418 <m_keep>: Remove member.
9419 <~cutu_reader>: Remove.
9420 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9421 (cutu_reader::cutu_reader): Update.
9422 (cutu_reader::keep): Rename from ~cutu_reader.
9423 (process_psymtab_comp_unit, build_type_psymtabs_1)
9424 (process_skeletonless_type_unit, load_partial_comp_unit)
9425 (load_full_comp_unit, dwarf2_read_addr_index)
9426 (read_signatured_type): Update.
9427
9428 2020-02-08 Tom Tromey <tom@tromey.com>
9429
9430 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9431 "want_partial_unit" parameter.
9432 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9433 Inline check for DW_TAG_partial_unit.
9434 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9435
9436 2020-02-08 Tom Tromey <tom@tromey.com>
9437
9438 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9439 read.c.
9440 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9441 read.c.
9442
9443 2020-02-08 Tom Tromey <tom@tromey.com>
9444
9445 * dwarf2/read.c (read_address): Move to comp-unit.c.
9446 (dwarf2_rnglists_process, dwarf2_ranges_process)
9447 (read_attribute_value, dwarf_decode_lines_1)
9448 (var_decode_location, decode_locdesc): Update.
9449 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9450 read.c. Remove "cu" parameter.
9451 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9452 method.
9453
9454 2020-02-08 Tom Tromey <tom@tromey.com>
9455
9456 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9457 (read_indirect_line_string): Update.
9458 * dwarf2/comp-unit.c (read_offset): Remove.
9459 (read_comp_unit_head): Update.
9460 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9461 method.
9462 (read_offset): Don't declare.
9463
9464 2020-02-08 Tom Tromey <tom@tromey.com>
9465
9466 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9467 * dwarf2/read.c (struct comp_unit_head): Move to
9468 dwarf2/comp-unit.h.
9469 (enum class rcuh_kind): Move to comp-unit.h.
9470 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9471 (read_comp_unit_head, error_check_comp_unit_head)
9472 (read_and_check_comp_unit_head): Move to comp-unit.c.
9473 (read_offset, dwarf_unit_type_name): Likewise.
9474 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9475 (cutu_reader::cutu_reader, read_call_site_scope)
9476 (find_partial_die, follow_die_offset): Update.
9477 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9478
9479 2020-02-08 Tom Tromey <tom@tromey.com>
9480
9481 * dwarf2/read.c (read_offset_1): Move to leb.c.
9482 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9483 (dwarf_decode_macro_bytes): Update.
9484 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9485 * dwarf2/leb.h (read_offset): Declare.
9486
9487 2020-02-08 Tom Tromey <tom@tromey.com>
9488
9489 * dwarf2/read.c (dwarf2_section_size): Remove.
9490 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9491 Update.
9492 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9493
9494 2020-02-08 Tom Tromey <tom@tromey.com>
9495
9496 * dwarf2/read.c (read_initial_length): Move to leb.c.
9497 * dwarf2/leb.h (read_initial_length): Declare.
9498 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9499 handle_nonstd parameter.
9500 * dwarf2/frame.c (read_initial_length): Remove.
9501 (decode_frame_entry_1): Update.
9502
9503 2020-02-08 Tom Tromey <tom@tromey.com>
9504
9505 * dwarf2/loc.c (dwarf2_find_location_expression)
9506 (dwarf_evaluate_loc_desc::get_tls_address)
9507 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9508 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9509 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9510 (dwarf2_compile_property_to_c)
9511 (dwarf2_loc_desc_get_symbol_read_needs)
9512 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9513 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9514 (loclist_describe_location, loclist_tracepoint_var_ref)
9515 (loclist_generate_c_location): Update.
9516 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9517 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9518 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9519 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9520 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9521 (dwarf2_per_cu_data::addr_size)
9522 (dwarf2_per_cu_data::ref_addr_size)
9523 (dwarf2_per_cu_data::text_offset)
9524 (dwarf2_per_cu_data::addr_type): Now methods.
9525 (per_cu_header_read_in): Make per_cu "const".
9526 (dwarf2_version): Remove.
9527 (dwarf2_per_cu_data::int_type): Now a method.
9528 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9529 (set_die_type, read_array_type, read_subrange_index_type)
9530 (read_tag_string_type, read_subrange_type): Update.
9531 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9532 offset_size, ref_addr_size, text_offset, addr_type, version,
9533 objfile, int_type, addr_sized_int_type>: Declare methods.
9534
9535 2020-02-08 Tom Tromey <tom@tromey.com>
9536
9537 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9538 Move earlier.
9539
9540 2020-02-08 Tom Tromey <tom@tromey.com>
9541
9542 * dwarf2/read.h (dwarf_line_debug): Declare.
9543 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9544 * dwarf2/read.c: Move line_header code to new files.
9545 (dwarf_line_debug): No longer static.
9546 * dwarf2/line-header.c: New file.
9547 * dwarf2/line-header.h: New file.
9548
9549 2020-02-08 Tom Tromey <tom@tromey.com>
9550
9551 * dwarf2/read.c (struct line_header) <file_full_name,
9552 file_file_name>: Return unique_xmalloc_ptr.
9553 (line_header::file_file_name): Update.
9554 (line_header::file_full_name): Update.
9555 (dw2_get_file_names_reader): Update.
9556 (macro_start_file): Update.
9557
9558 2020-02-08 Tom Tromey <tom@tromey.com>
9559
9560 * dwarf2/read.c (struct line_header) <file_full_name,
9561 file_file_name>: Declare methods.
9562 (dw2_get_file_names_reader): Update.
9563 (file_file_name): Now a method.
9564 (file_full_name): Likewise.
9565 (macro_start_file): Update.
9566
9567 2020-02-08 Tom Tromey <tom@tromey.com>
9568
9569 * dwarf2/read.c (dwarf_always_disassemble)
9570 (show_dwarf_always_disassemble): Move to loc.c.
9571 (_initialize_dwarf2_read): Move "always-disassemble" registration
9572 to loc.c.
9573 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9574 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9575 static.
9576 (show_dwarf_always_disassemble): Move from read.c.
9577 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9578
9579 2020-02-08 Tom Tromey <tom@tromey.com>
9580
9581 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9582 (create_quick_file_names_table): Return htab_up.
9583 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9584 Update.
9585 * dwarf2/read.h (struct dwarf2_per_objfile)
9586 <quick_file_names_table>: Now htab_up.
9587
9588 2020-02-08 Tom Tromey <tom@tromey.com>
9589
9590 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9591
9592 2020-02-08 Tom Tromey <tom@tromey.com>
9593
9594 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9595 Rewrite.
9596 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9597 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9598 (abbrev_table::abbrev_table): No longer inline.
9599 (ABBREV_HASH_SIZE): Remove.
9600 (abbrev_table::m_abbrevs): Now an htab_up.
9601
9602 2020-02-08 Tom Tromey <tom@tromey.com>
9603
9604 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9605 (cutu_reader): Update.
9606 (build_type_psymtabs_1): Update.
9607 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9608 (abbrev_table::alloc_abbrev): Update.
9609 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9610 (abbrev_table::read): New static method, renamed from
9611 abbrev_table_read_table.
9612 (abbrev_table::alloc_abbrev)
9613 (abbrev_table::add_abbrev): Now private.
9614 (abbrev_table::abbrev_table): Now private.
9615 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9616
9617 2020-02-08 Tom Tromey <tom@tromey.com>
9618
9619 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9620 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9621 htab_up.
9622
9623 2020-02-08 Tom Tromey <tom@tromey.com>
9624
9625 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9626 htab_up.
9627 (lookup_dwo_unit_in_dwp): Update.
9628 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9629 on obstack.
9630
9631 2020-02-08 Tom Tromey <tom@tromey.com>
9632
9633 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9634 obstack.
9635
9636 2020-02-08 Tom Tromey <tom@tromey.com>
9637
9638 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9639 line_header_hash.
9640 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9641 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9642 Change type to htab_up.
9643
9644 2020-02-08 Tom Tromey <tom@tromey.com>
9645
9646 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9647 htab_up. Don't allocate on obstack.
9648 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9649 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9650 Change type to htab_up.
9651
9652 2020-02-08 Tom Tromey <tom@tromey.com>
9653
9654 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9655 Change type to htab_up.
9656 * dwarf2/read.c (create_signatured_type_table_from_index)
9657 (create_signatured_type_table_from_debug_names)
9658 (create_all_type_units, add_type_unit)
9659 (lookup_dwo_signatured_type, lookup_signatured_type)
9660 (process_skeletonless_type_unit): Update.
9661 (create_debug_type_hash_table, create_debug_types_hash_table):
9662 Change type of types_htab.
9663 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9664 htab_up. Don't allocate on obstack.
9665 (create_cus_hash_table): Change type of cus_htab parameter.
9666 (struct dwo_file) <cus, tus>: Now htab_up.
9667 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9668 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9669 (queue_and_load_all_dwo_tus): Update.
9670 * dwarf2/index-write.c (write_gdbindex): Update.
9671 (write_debug_names): Update.
9672
9673 2020-02-08 Tom Tromey <tom@tromey.com>
9674
9675 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9676 dwarf2/read.c. Remove "next" member. Add constructor ntad
9677 destructor.
9678 (struct dwarf2_per_objfile) <queue>: New member.
9679 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9680 dwarf2/read.h.
9681 (dwarf2_queue, dwarf2_queue_tail): Remove.
9682 (class dwarf2_queue_guard): Add parameter to constructor. Use
9683 DISABLE_COPY_AND_ASSIGN.
9684 <m_per_objfile>: New member.
9685 <~dwarf2_queue_guard>: Rewrite.
9686 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9687 Update.
9688 (~dwarf2_queue_item): New.
9689
9690 2020-02-08 Tom Tromey <tom@tromey.com>
9691
9692 * dwarf2/read.c (struct die_info) <has_children>: New member.
9693 (dw2_get_file_names_reader): Remove has_children.
9694 (dw2_get_file_names): Update.
9695 (read_cutu_die_from_dwo): Remove has_children.
9696 (cutu_reader::init_tu_and_read_dwo_dies)
9697 (cutu_reader::cutu_reader): Update.
9698 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9699 Remove has_children.
9700 (build_type_psymtabs_1, process_skeletonless_type_unit)
9701 (load_partial_comp_unit, load_full_comp_unit): Update.
9702 (create_dwo_cu_reader): Remove has_children.
9703 (create_cus_hash_table, read_die_and_children): Update.
9704 (read_full_die_1,read_full_die): Remove has_children.
9705 (read_signatured_type): Update.
9706 (class cutu_reader) <has_children>: Remove.
9707
9708 2020-02-08 Tom Tromey <tom@tromey.com>
9709
9710 * dwarf2/expr.c: Rename from dwarf2expr.c.
9711 * dwarf2/expr.h: Rename from dwarf2expr.h.
9712 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9713 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9714 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9715 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9716 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9717 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9718 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9719 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9720 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9721 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9722 * dwarf2/loc.c: Rename from dwarf2loc.c.
9723 * dwarf2/loc.h: Rename from dwarf2loc.h.
9724 * dwarf2/read.c: Rename from dwarf2read.c.
9725 * dwarf2/read.h: Rename from dwarf2read.h.
9726 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9727 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9728 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9729 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9730 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9731 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9732 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9733 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9734 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9735 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9736 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9737 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9738 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9739 Update.
9740 * Makefile.in (COMMON_SFILES): Update.
9741 (HFILES_NO_SRCDIR): Update.
9742
9743 2020-02-08 Tom Tromey <tom@tromey.com>
9744
9745 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9746 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9747
9748 2020-02-08 Tom Tromey <tom@tromey.com>
9749
9750 * dwarf2read.h (struct die_info): Don't declare.
9751
9752 2020-02-08 Tom Tromey <tom@tromey.com>
9753
9754 * dwarf2read.h (die_info_ptr): Remove typedef.
9755
9756 2020-02-08 Tom Tromey <tom@tromey.com>
9757
9758 * dwarf2read.c (read_call_site_scope)
9759 (handle_data_member_location, dwarf2_add_member_fn)
9760 (mark_common_block_symbol_computed, read_common_block)
9761 (attr_to_dynamic_prop, partial_die_info::read)
9762 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9763 (dwarf2_symbol_mark_computed, set_die_type): Update.
9764 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9765 method.
9766 (attr_form_is_block): Don't declare.
9767 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9768
9769 2020-02-08 Tom Tromey <tom@tromey.com>
9770
9771 * dwarf2read.c (dwarf2_find_base_address, )
9772 (read_call_site_scope, rust_containing_type)
9773 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9774 (handle_data_member_location, dwarf2_add_member_fn)
9775 (get_alignment, read_structure_type, process_structure_scope)
9776 (mark_common_block_symbol_computed, read_common_block)
9777 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9778 (partial_die_info::read, read_attribute_value, new_symbol)
9779 (lookup_die_type, dwarf2_get_ref_die_offset)
9780 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9781 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9782 (dwarf2_symbol_mark_computed): Update.
9783 * dwarf2/attribute.h (struct attribute) <value_as_address,
9784 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9785 methods.
9786 (value_as_address, attr_form_is_section_offset)
9787 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9788 * dwarf2/attribute.c (attribute::value_as_address)
9789 (attribute::form_is_section_offset, attribute::form_is_constant)
9790 (attribute::form_is_ref): Now methods.
9791
9792 2020-02-08 Tom Tromey <tom@tromey.com>
9793
9794 * dwarf2read.c (struct attribute, DW_STRING)
9795 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9796 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9797 (attr_form_is_block, attr_form_is_section_offset)
9798 (attr_form_is_constant, attr_form_is_ref): Move.
9799 * dwarf2/attribute.h: New file.
9800 * dwarf2/attribute.c: New file, from dwarf2read.c.
9801 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9802
9803 2020-02-08 Tom Tromey <tom@tromey.com>
9804
9805 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9806 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9807 Move.
9808 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9809 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9810 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9811 abbrev.c.
9812 * dwarf2/abbrev.h: New file.
9813 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9814 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9815
9816 2020-02-08 Tom Tromey <tom@tromey.com>
9817
9818 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9819 (dwarf2_section_size, dwarf2_get_section_info)
9820 (create_signatured_type_table_from_debug_names)
9821 (create_addrmap_from_aranges, read_debug_names_from_section)
9822 (get_gdb_index_contents_from_section, read_comp_unit_head)
9823 (error_check_comp_unit_head, read_abbrev_offset)
9824 (create_debug_type_hash_table, init_cu_die_reader)
9825 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9826 (read_comp_units_from_section, create_cus_hash_table)
9827 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9828 (create_dwp_v2_section, dwarf2_rnglists_process)
9829 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9830 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9831 (read_indirect_string_from_dwz, read_addr_index_1)
9832 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9833 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9834 (fill_in_loclist_baton): Update.
9835 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9836 get_containing_section, get_bfd_owner, get_bfd_section,
9837 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9838 (dwarf2_read_section, get_section_name, get_section_file_name)
9839 (get_containing_section, get_section_bfd_owner)
9840 (get_section_bfd_section, get_section_name, get_section_file_name)
9841 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9842 declare.
9843 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9844 (dwarf2_section_info::get_bfd_owner)
9845 (dwarf2_section_info::get_bfd_section)
9846 (dwarf2_section_info::get_name)
9847 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9848 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9849 (dwarf2_section_info::read): Now methods.
9850 * dwarf-index-write.c (class debug_names): Update.
9851
9852 2020-02-08 Tom Tromey <tom@tromey.com>
9853
9854 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9855 Move to dwarf2/section.h.
9856 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9857 (get_section_bfd_section, get_section_name)
9858 (get_section_file_name, get_section_id, get_section_flags)
9859 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9860 dwarf2/section.c.
9861 * dwarf2/section.h: New file.
9862 * dwarf2/section.c: New file, from dwarf2read.c.
9863 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9864
9865 2020-02-08 Tom Tromey <tom@tromey.com>
9866
9867 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9868 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9869 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9870 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9871 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9872 * dwarf2/leb.h: New file, from dwarf2read.c.
9873 * dwarf2/leb.c: New file, from dwarf2read.c.
9874 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9875 Remove.
9876 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9877 (COMMON_SFILES): Add dwarf2/leb.c.
9878
9879 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9880
9881 GDB 9.1 released.
9882
9883 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9884
9885 PR gdb/25190:
9886 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9887 * gdb/remote.c (remote_console_output): Update.
9888 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9889 (ui_file_puts): ...this.
9890 * gdb/ui-file.h (ui_file_puts): Add declaration.
9891 * gdb/utils.c (emit_style_escape): Update.
9892 (flush_wrap_buffer): Update.
9893 (fputs_maybe_filtered): Update.
9894 (fputs_unfiltered): Add function.
9895
9896 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9897
9898 * gdb/event-loop.c (gdb_wait_for_event): Update.
9899 * gdb/printcmd.c (printf_command): Update.
9900 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9901 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9902 (gdb_os_flush_stderr): Update.
9903 * gdb/remote.c (remote_console_output): Update.
9904 * gdb/ui-file.c (gdb_flush): Rename to...
9905 (ui_file_flush): ...this.
9906 (stderr_file::write): Update.
9907 (stderr_file::puts): Update.
9908 * gdb/ui-file.h (gdb_flush): Rename to...
9909 (ui_file_flush): ...this.
9910 * gdb/utils.c (gdb_flush): Add function.
9911 * gdb/utils.h (gdb_flush): Add declaration.
9912
9913 2020-02-07 Tom Tromey <tromey@adacore.com>
9914
9915 PR breakpoints/24915:
9916 * source.c (find_and_open_source): Do not check basenames_may_differ.
9917
9918 2020-02-07 Tom Tromey <tom@tromey.com>
9919
9920 * README: Update gdbserver documentation.
9921 * gdbserver: Move to top level.
9922 * configure.tgt (build_gdbserver): Remove.
9923 * configure.ac: Remove --enable-gdbserver.
9924 * configure: Rebuild.
9925 * Makefile.in (distclean): Don't mention gdbserver.
9926
9927 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9928
9929 * source-cache.c (source_cache::ensure): Surround
9930 get_plain_source_lines with a try/catch.
9931 (source_cache::get_line_charpos): Get rid of try/catch
9932 and only check for the return value of "ensure".
9933 * tui/tui-source.c (tui_source_window::set_contents):
9934 Simplify "nlines" calculation.
9935
9936 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9937
9938 * MAINTAINERS (Write After Approval): Add myself.
9939
9940 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9941
9942 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9943 function call.
9944
9945 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9946
9947 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9948
9949 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9950
9951 * nat/riscv-linux-tdesc.h: New file.
9952 * nat/riscv-linux-tdesc.c: New file, taking code from...
9953 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9954 ... here.
9955 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9956 NATDEPFILES.
9957
9958 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9959
9960 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9961 we don't set the fake simulator ptid to the null_ptid.
9962
9963 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9964
9965 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9966 * gdbthread.h (class thread_info) <resumed>: Likewise.
9967 * infrun.c (resume_1): Likewise.
9968 (proceed): Likewise.
9969 (infrun_thread_stop_requested): Likewise.
9970 (stop_all_threads): Likewise.
9971 (handle_inferior_event): Likewise.
9972 (restart_threads): Likewise.
9973 (finish_step_over): Likewise.
9974 (keep_going_stepped_thread): Likewise.
9975 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9976 (linux_handle_extended_wait): Likewise.
9977 * record-btrace.c (get_thread_current_frame_id): Likewise.
9978 * record-full.c (record_full_wait_1): Likewise.
9979 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9980 * target.c (target_resume): Likewise.
9981 * thread.c (set_running_thread): Likewise.
9982
9983 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9984
9985 * f-valprint.c (f77_print_array_1): Changed datatype of index
9986 variable to LONGEST from int to enable it to contain bound
9987 values correctly.
9988
9989 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9990
9991 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9992 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9993 offsets according to FLEN determined.
9994 (riscv_linux_nat_target::read_description): Determine FLEN
9995 dynamically.
9996 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9997 according to FLEN determined.
9998 (riscv_linux_nat_target::store_registers): Likewise.
9999
10000 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10001
10002 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10003 when reg->group is empty and reggroup is not.
10004
10005 2020-01-31 Tom Tromey <tromey@adacore.com>
10006
10007 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10008 Call beneath target's mourn_inferior after unpushing.
10009
10010 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10011
10012 PR tui/9765
10013 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10014 have enough lines to fill the screen, still return the lowest
10015 address we found.
10016
10017 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10018
10019 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10020 '-', '<', and '>' commands.
10021
10022 2020-01-29 Pedro Alves <palves@redhat.com>
10023 Sergio Durigan Junior <sergiodj@redhat.com>
10024
10025 * infcmd.c (construct_inferior_arguments): Assert that
10026 'argc' is greater than 0.
10027
10028 2020-01-29 Luis Machado <luis.machado@linaro.org>
10029
10030 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10031 (BRK_INSN_MASK): Define to 0xd4200000.
10032 (aarch64_program_breakpoint_here_p): New function.
10033 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10034 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10035 breakpoint.c.
10036 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10037 breakpoint.h
10038 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10039 call gdbarch_program_breakpoint_here_p.
10040 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10041 default_program_breakpoint_here_p, changed return type to bool and
10042 simplified.
10043 * breakpoint.h (program_breakpoint_here): Moved prototype to
10044 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10045 return type to bool.
10046 * gdbarch.c: Regenerate.
10047 * gdbarch.h: Regenerate.
10048 * gdbarch.sh (program_breakpoint_here_p): New method.
10049 * infrun.c (handle_signal_stop): Call
10050 gdbarch_program_breakpoint_here_p.
10051
10052 2020-01-26 Tom Tromey <tom@tromey.com>
10053
10054 * ctfread.c (struct ctf_fp_info): Reindent.
10055 (_initialize_ctfread): Remove.
10056
10057 2020-01-26 Tom Tromey <tom@tromey.com>
10058
10059 * psymtab.c (partial_map_expand_apply)
10060 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10061 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10062 (psym_print_stats, psym_expand_symtabs_for_function)
10063 (psym_map_symbol_filenames, psym_map_matching_symbols)
10064 (psym_expand_symtabs_matching)
10065 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10066 (maintenance_check_psymtabs): Use new methods.
10067 * psympriv.h (struct partial_symtab) <readin_p,
10068 get_compunit_symtab>: New methods.
10069 <readin, compunit_symtab>: Remove members.
10070 (struct standard_psymtab): New.
10071 (struct legacy_psymtab): Derive from standard_psymtab.
10072 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10073 standard_psymtab.
10074 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10075
10076 2020-01-26 Tom Tromey <tom@tromey.com>
10077
10078 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10079 read_dependencies. Add assert.
10080 * psymtab.c (partial_symtab::read_dependencies): New method.
10081 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10082 method.
10083 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10084 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10085 read_dependencies.
10086 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10087 Add assert.
10088
10089 2020-01-26 Tom Tromey <tom@tromey.com>
10090
10091 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10092 Call expand_psymtab.
10093 (xcoff_read_symtab): Call expand_psymtab.
10094 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10095 legacy_expand_psymtab.
10096 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10097 method.
10098 (struct legacy_psymtab) <expand_psymtab>: Implement.
10099 <legacy_expand_psymtab>: New member.
10100 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10101 (parse_partial_symbols): Set legacy_expand_psymtab.
10102 (psymtab_to_symtab_1): Change argument order. Call
10103 expand_psymtab.
10104 (new_psymtab): Set legacy_expand_psymtab.
10105 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10106 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10107 expand_psymtab.
10108 (dwarf2_psymtab::expand_psymtab): Rename from
10109 psymtab_to_symtab_1. Call expand_psymtab.
10110 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10111 (dbx_end_psymtab): Likewise.
10112 (dbx_psymtab_to_symtab_1): Change argument order. Call
10113 expand_psymtab.
10114 (dbx_read_symtab): Call expand_psymtab.
10115 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10116 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10117 (ctf_psymtab::read_symtab): Call expand_psymtab.
10118
10119 2020-01-26 Tom Tromey <tom@tromey.com>
10120
10121 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10122 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10123 messages.
10124 * mdebugread.c (mdebug_read_symtab): Remove prints.
10125 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10126 assert.
10127 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10128
10129 2020-01-26 Tom Tromey <tom@tromey.com>
10130
10131 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10132 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10133 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10134 legacy_symtab.
10135 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10136 * psymtab.c (psymtab_to_symtab): Call method.
10137 (dump_psymtab): Update.
10138 * psympriv.h (struct partial_symtab): Add virtual destructor.
10139 <read_symtab>: New method.
10140 (struct legacy_symtab): New.
10141 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10142 (struct pst_map) <pst>: Now a legacy_psymtab.
10143 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10144 (new_psymtab): Use legacy_psymtab.
10145 * dwarf2read.h (struct dwarf2_psymtab): New.
10146 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10147 * dwarf2read.c (dwarf2_create_include_psymtab)
10148 (dwarf2_build_include_psymtabs, create_type_unit_group)
10149 (create_partial_symtab, process_psymtab_comp_unit_reader)
10150 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10151 (set_partial_user): Use dwarf2_psymtab.
10152 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10153 (psymtab_to_symtab_1, process_full_comp_unit)
10154 (process_full_type_unit, dwarf2_ranges_read)
10155 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10156 (dwarf_decode_lines): Use dwarf2_psymtab.
10157 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10158 (add_address_entry_worker, write_one_signatured_type)
10159 (recursively_count_psymbols, recursively_write_psymbols)
10160 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10161 (write_debug_names): Likewise.
10162 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10163 <pst>: Now a legacy_psymtab.
10164 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10165 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10166 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10167 * ctfread.c (struct ctf_psymtab): New.
10168 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10169 ctf_psymtab.
10170 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10171 (create_partial_symtab): Return a ctf_psymtab.
10172 (scan_partial_symbols): Update.
10173
10174 2020-01-26 Tom Tromey <tom@tromey.com>
10175
10176 * xcoffread.c (xcoff_start_psymtab): Use new.
10177 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10178 renamed from start_psymtab_common.
10179 * psympriv.h (struct partial_symtab): Add new constructor.
10180 (start_psymtab_common): Don't declare.
10181 * mdebugread.c (parse_partial_symbols): Use new.
10182 * dwarf2read.c (create_partial_symtab): Use new.
10183 * dbxread.c (start_psymtab): Use new.
10184 * ctfread.c (create_partial_symtab): Use new.
10185
10186 2020-01-26 Tom Tromey <tom@tromey.com>
10187
10188 * xcoffread.c (xcoff_end_psymtab): Use new.
10189 * psymtab.c (start_psymtab_common): Use new.
10190 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10191 Update.
10192 * psympriv.h (struct partial_symtab): Add parameters to
10193 constructor. Don't inline.
10194 (allocate_psymtab): Don't declare.
10195 * mdebugread.c (new_psymtab): Use new.
10196 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10197 * dbxread.c (dbx_end_psymtab): Use new.
10198
10199 2020-01-26 Tom Tromey <tom@tromey.com>
10200
10201 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10202 allocate_psymtab. Update documentation.
10203 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10204 allocate_psymtab. Do not use new.
10205 (allocate_psymtab): Use new. Update.
10206
10207 2020-01-26 Tom Tromey <tom@tromey.com>
10208
10209 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10210 * psymtab.c (psym_print_stats): Update.
10211 * psympriv.h (struct partial_symtab) <readin,
10212 psymtabs_addrmap_supported, anonymous>: Now bool.
10213 * mdebugread.c (psymtab_to_symtab_1): Update.
10214 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10215 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10216 (process_full_comp_unit, process_full_type_unit): Update.
10217 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10218 * ctfread.c (psymtab_to_symtab): Update.
10219
10220 2020-01-26 Tom Tromey <tom@tromey.com>
10221
10222 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10223 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10224 * psymtab.c (psymtab_storage): Delete psymtabs.
10225 (psymtab_storage::allocate_psymtab): Use new.
10226 (psymtab_storage::discard_psymtab): Use delete.
10227 * psympriv.h (struct partial_symtab): Add constructor and
10228 initializers.
10229
10230 2020-01-26 Tom Tromey <tom@tromey.com>
10231
10232 * machoread.c: Do not include psympriv.h.
10233
10234 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10235
10236 * NEWS: Mention the new option and the set/show commands.
10237
10238 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10239
10240 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10241 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10242 (validate_exec_file): New variables, enums, functions.
10243 (exec_file_locate_attach, print_section_info): Style the filenames.
10244 (_initialize_exec): Install show_exec_file_mismatch_command and
10245 set_exec_file_mismatch_command.
10246 * gdbcore.h (validate_exec_file): Declare.
10247 * infcmd.c (attach_command): Call validate_exec_file.
10248 * remote.c ( remote_target::remote_add_inferior): Likewise.
10249
10250 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10251
10252 * frame.c (find_frame_sal): Move call to get_next_frame into more
10253 inner scope.
10254 * inline-frame.c (inilne_state) <inline_state>: Update argument
10255 types.
10256 (inilne_state) <skipped_symbol>: Rename to...
10257 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10258 (skip_inline_frames): Build vector of skipped symbols and use this
10259 to reate the inline_state.
10260 (inline_skipped_symbol): Add a comment and some assertions, fetch
10261 skipped symbol from the list.
10262
10263 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10264
10265 * buildsym.c (lte_is_less_than): Delete.
10266 (buildsym_compunit::end_symtab_with_blockvector): Create local
10267 lambda function to sort line table entries, and use
10268 std::stable_sort instead of std::sort.
10269 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10270 markers when looking for a previous line.
10271
10272 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10273
10274 * dwarf2read.c (lnp_state_machine::record_line): Include
10275 end_sequence parameter in debug print out. Record the line if we
10276 are at an end_sequence marker even if it's not the start of a
10277 statement.
10278 * symmisc.c (maintenance_print_one_line_table): Print end of
10279 sequence markers with 'END' not '0'.
10280
10281 2020-01-24 Pedro Alves <palves@redhat.com>
10282
10283 PR gdb/25410
10284 * thread.c (scoped_restore_current_thread::restore): Use
10285 switch_to_inferior_no_thread.
10286 * exec.c: Include "progspace-and-thread.h".
10287 (add_target_sections, remove_target_sections):
10288 scoped_restore_current_pspace_and_thread instead of
10289 scoped_restore_current_thread.
10290 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10291 and aspace to the inferior before calling clone_program_space.
10292 Remove stale comment.
10293
10294 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10295
10296 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10297 (arm_netbsd_nat_target::fetch_registers): ...this.
10298 (arm_nbsd_nat_target::store_registers): Rename to...
10299 (arm_netbsd_nat_target::store_registers): ...this.
10300
10301 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10302
10303 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10304 register_t.
10305
10306 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10307
10308 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10309 Update comment.
10310 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10311 Likewise.
10312 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10313 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10314 the correct replacement (iterate_over_regset_sections).
10315 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10316 Update comment.
10317
10318 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10319
10320 PR gdb/23718
10321 * gdb/python/python.c (execute_gdb_command): Call
10322 async_enable_stdin in catch block.
10323
10324 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10325
10326 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10327 SWITCH_THRU_ALL_UIS.
10328
10329 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10330
10331 PR tui/9765
10332 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10333 comment, add extra parameter, and update to store previous symbol
10334 when appropriate.
10335 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10336 add extra parameter.
10337 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10338 remove unneeded parameter, add try/catch around gdb_print_insn,
10339 rewrite to add items to asm_lines vector.
10340 (tui_find_backward_disassembly_start_address): New function.
10341 (tui_find_disassembly_address): Updated throughout.
10342 (tui_disasm_window::set_contents): Update for changes to
10343 tui_disassemble.
10344 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10345 number of lines to scroll.
10346
10347 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10348
10349 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10350 (SECT_OFF_DATA): Likewise.
10351 (SECT_OFF_RODATA): Likewise.
10352 (SECT_OFF_TEXT): Likewise.
10353 (SECT_OFF_BSS): Likewise.
10354 (struct objfile) <text_section_offset, data_section_offset>: New
10355 methods.
10356 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10357 objfile::text_section_offset.
10358 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10359 * coffread.c (coff_symtab_read): Likewise.
10360 (enter_linenos): Likewise.
10361 (process_coff_symbol): Likewise.
10362 * ctfread.c (get_objfile_text_range): Likewise.
10363 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10364 Use objfile::data_section_offset.
10365 * dwarf2-frame.c (execute_cfa_program): Use
10366 objfile::text_section_offset.
10367 (dwarf2_frame_find_fde): Likewise.
10368 * dwarf2read.c (create_addrmap_from_index): Likewise.
10369 (create_addrmap_from_aranges): Likewise.
10370 (dw2_find_pc_sect_compunit_symtab): Likewise.
10371 (process_psymtab_comp_unit_reader): Likewise.
10372 (add_partial_symbol): Likewise.
10373 (add_partial_subprogram): Likewise.
10374 (process_full_comp_unit): Likewise.
10375 (read_file_scope): Likewise.
10376 (read_func_scope): Likewise.
10377 (read_lexical_block_scope): Likewise.
10378 (read_call_site_scope): Likewise.
10379 (dwarf2_rnglists_process): Likewise.
10380 (dwarf2_ranges_process): Likewise.
10381 (dwarf2_ranges_read): Likewise.
10382 (dwarf_decode_lines_1): Likewise.
10383 (new_symbol): Likewise.
10384 (dwarf2_fetch_die_loc_sect_off): Likewise.
10385 (dwarf2_per_cu_text_offset): Likewise.
10386 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10387 * hppa-tdep.c (read_unwind_info): Likewise.
10388 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10389 * psympriv.h (struct partial_symtab): Likewise.
10390 * psymtab.c (find_pc_sect_psymtab): Likewise.
10391 * solib-svr4.c (enable_break): Likewise.
10392 * stap-probe.c (relocate_address): Use
10393 objfile::data_section_offset.
10394 * xcoffread.c (enter_line_range): Use
10395 objfile::text_section_offset.
10396 (read_xcoff_symtab): Likewise.
10397
10398 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10399
10400 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10401 declaration to narrower scopes.
10402
10403 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10404
10405 * darwin-nat.h (struct darwin_exception_msg, enum
10406 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10407 Move up.
10408 (class darwin_nat_target) <wait_1, check_new_threads,
10409 decode_exception_message, decode_message, stop_inferior,
10410 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10411 * darwin-nat.c (darwin_check_new_threads): Rename to...
10412 (darwin_nat_target::check_new_threads): ... this.
10413 (darwin_suspend_inferior_it): Remove.
10414 (darwin_decode_exception_message): Rename to...
10415 (darwin_nat_target::decode_exception_message): ... this.
10416 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10417 (darwin_decode_message): Rename to...
10418 (darwin_nat_target::decode_message): ... this.
10419 (cancel_breakpoint): Rename to...
10420 (darwin_nat_target::cancel_breakpoint): ... this.
10421 (darwin_wait): Rename to...
10422 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10423 instead of iterate_over_inferiors.
10424 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10425 (darwin_stop_inferior): Rename to...
10426 (darwin_nat_target::stop_inferior): ... this.
10427 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10428 (darwin_init_thread_list): Rename to...
10429 (darwin_nat_target::init_thread_list): ... this.
10430 (darwin_ptrace_him): Rename to...
10431 (darwin_nat_target::ptrace_him): ... this.
10432 (darwin_nat_target::create_inferior): Pass lambda function to
10433 fork_inferior.
10434 (darwin_nat_target::detach): Call stop_inferior instead of
10435 darwin_stop_inferior.
10436 * fork-inferior.h (fork_inferior): Change init_trace_fun
10437 parameter to gdb::function_view.
10438 * fork-inferior.c (fork_inferior): Likewise.
10439
10440 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10441
10442 * i386-cygwin-tdep.c (core_process_module_section): Update.
10443 * windows-nat.c (struct lm_info_windows): Add text_offset.
10444 (windows_xfer_shared_libraries): Update.
10445 * windows-tdep.c (windows_xfer_shared_library):
10446 Add text_offset_cached argument.
10447 * windows-tdep.h (windows_xfer_shared_library): Update.
10448
10449 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10450
10451 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10452
10453 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10454
10455 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10456 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10457 replace with range-based for.
10458 (gdbsim_interrupt_inferior): Remove.
10459 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10460 with a range-based for. Inline code from
10461 gdbsim_interrupt_inferior.
10462
10463 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10464
10465 * infrun.c (proceed): Fix indentation.
10466
10467 2020-01-21 Tom Tromey <tromey@adacore.com>
10468
10469 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10470 * python/python.c (python_extension_ops): Update.
10471 (gdbpy_colorize): New function.
10472 * python/lib/gdb/__init__.py (colorize): New function.
10473 * extension.h (ext_lang_colorize): Declare.
10474 * extension.c (ext_lang_colorize): New function.
10475 * extension-priv.h (struct extension_language_ops) <colorize>: New
10476 member.
10477 * cli/cli-style.c (_initialize_cli_style): Update help text.
10478
10479 2020-01-21 Luis Machado <luis.machado@linaro.org>
10480
10481 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10482 <cond>: Change type to bool.
10483 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10484 (aarch64_displaced_step_cb): Likewise.
10485 (aarch64_displaced_step_tb): Likewise.
10486
10487 2020-01-21 Luis Machado <luis.machado@linaro.org>
10488
10489 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10490 output.
10491
10492 2020-01-21 Luis Machado <luis.machado@linaro.org>
10493
10494 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10495 <pc_adjust>: Adjust the documentation.
10496 (aarch64_displaced_step_fixup): Check if PC really moved before
10497 adjusting it.
10498
10499 2020-01-19 Tom Tromey <tom@tromey.com>
10500
10501 * disasm.c (~gdb_disassembler): New destructor.
10502 (gdb_buffered_insn_length): Call disassemble_free_target.
10503 * disasm.h (class gdb_disassembler): Declare destructor. Use
10504 DISABLE_COPY_AND_ASSIGN.
10505
10506 2020-01-19 Tom Tromey <tom@tromey.com>
10507
10508 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10509 (die_reader_func_ftype): Remove.
10510 (cutu_reader): New class.
10511 (dw2_get_file_names_reader): Remove "data" parameter.
10512 (dw2_get_file_names): Use cutu_reader.
10513 (create_debug_type_hash_table): Update.
10514 (read_cutu_die_from_dwo): Update comment.
10515 (lookup_dwo_unit): Add dwo_name parameter.
10516 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10517 die_reader_func_ftype and data parameters.
10518 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10519 Remove die_reader_func_ftype and data parameters.
10520 (~cutu_reader): New; from init_cutu_and_read_dies.
10521 (cutu_reader::cutu_reader): Rename from
10522 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10523 and data parameters.
10524 (init_cutu_and_read_dies_simple): Remove.
10525 (struct process_psymtab_comp_unit_data): Remove.
10526 (process_psymtab_comp_unit_reader): Remove data parameter; add
10527 want_partial_unit and pretend_language parameters.
10528 (process_psymtab_comp_unit): Use cutu_reader.
10529 (build_type_psymtabs_reader): Remove data parameter.
10530 (build_type_psymtabs_1): Use cutu_reader.
10531 (process_skeletonless_type_unit): Likewise.
10532 (load_partial_comp_unit_reader): Remove.
10533 (load_partial_comp_unit): Use cutu_reader.
10534 (load_full_comp_unit_reader): Remove.
10535 (load_full_comp_unit): Use cutu_reader.
10536 (struct create_dwo_cu_data): Remove.
10537 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10538 dwo_unit parameters.
10539 (create_cus_hash_table): Use cutu_reader.
10540 (struct dwarf2_read_addr_index_data): Remove.
10541 (dwarf2_read_addr_index_reader): Remove.
10542 (dwarf2_read_addr_index): Use cutu_reader.
10543 (read_signatured_type_reader): Remove.
10544 (read_signatured_type): Use cutu_reader.
10545
10546 2020-01-19 Tom Tromey <tom@tromey.com>
10547
10548 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10549 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10550 (tui_wrefresh): Declare.
10551 * tui/tui-wingeneral.c (suppress_output): New global.
10552 (tui_suppress_output, ~tui_suppress_output): New constructor and
10553 destructor.
10554 (tui_wrefresh): New function.
10555 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10556 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10557 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10558 method.
10559 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10560 tui_wrefresh.
10561 (tui_data_window::no_refresh): New method.
10562 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10563 (tui_reg_command): Use tui_suppress_output
10564 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10565 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10566 method.
10567 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10568
10569 2020-01-19 Tom Tromey <tom@tromey.com>
10570
10571 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10572 Handle case where symtab is null.
10573
10574 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10575
10576 * linux-fork.c (one_fork_p): Simplify.
10577
10578 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10579
10580 * top.c (struct qt_args): Remove.
10581 (kill_or_detach): Change return type to void, replace `void *`
10582 parameter with a proper one.
10583 (print_inferior_quit_action): Likewise.
10584 (quit_confirm): Use range-based for loop to iterate over inferiors.
10585 (quit_force): Likewise.
10586
10587 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10588
10589 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10590 `void *` parameter with proper parameters.
10591 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10592 (print_one_inferior): Change return type to void, replace `void *`
10593 parameter with proper parameters.
10594 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10595 inferiors.
10596 (get_other_inferior): Remove.
10597 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10598 inferiors.
10599
10600 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10601
10602 * mi/mi-interp.c (report_initial_inferior): Remove.
10603 (mi_interp::init): Use range-based for to iterate over inferiors.
10604
10605 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10606
10607 * python/py-inferior.c (build_inferior_list): Remove.
10608 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10609
10610 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10611
10612 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10613 (btrace_stitch_trace): Likewise.
10614 * charset.c (intermediate_encoding): Likewise (vaild).
10615 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10616 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10617 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10618
10619 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10620
10621 * windows-tdep.c (windows_get_tlb_type):
10622 Add rtl_user_process_parameters type.
10623
10624 2020-01-16 Pedro Alves <palves@redhat.com>
10625 Norbert Lange <nolange79@gmail.com>
10626
10627 PR build/24805
10628 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10629 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10630 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10631 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10632 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10633 (ps_plog): Redeclare exported functions with default visibility.
10634
10635 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10636
10637 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10638 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10639
10640 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10641
10642 * infcmd.c (post_create_inferior): Use get_thread_regcache
10643 instead of get_current_regcache.
10644
10645 2020-01-14 Tom Tromey <tom@tromey.com>
10646
10647 PR symtab/12535:
10648 * python/python.c (gdbpy_decode_line): Treat empty string the same
10649 as no argument.
10650
10651 2020-01-14 Tom Tromey <tom@tromey.com>
10652
10653 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10654
10655 2020-01-14 Tom Tromey <tom@tromey.com>
10656
10657 * nat/linux-btrace.c: Don't include <config.h>.
10658 * nat/linux-ptrace.c: Don't include <config.h>.
10659 * nat/x86-linux-dregs.c: Don't include <config.h>.
10660
10661 2020-01-14 Tom Tromey <tom@tromey.com>
10662
10663 * configure: Rebuild.
10664 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10665
10666 2020-01-14 Tom Tromey <tom@tromey.com>
10667
10668 * nat/x86-linux-dregs.c: Include configh.h.
10669 * nat/linux-ptrace.c: Include configh.h.
10670 * nat/linux-btrace.c: Include configh.h.
10671 * defs.h: Include config.h, bfd.h.
10672 * configure.ac: Don't source common.host.
10673 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10674 * configure: Rebuild.
10675 * acinclude.m4: Update path.
10676 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10677 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10678 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10679 (CLIBS): Add LIBSUPPORT.
10680 (CDEPS): Likewise.
10681 (COMMON_SFILES): Remove gdbsupport files.
10682 (HFILES_NO_SRCDIR): Likewise.
10683 (stamp-version): Update path to create-version.sh.
10684 (ALLDEPFILES): Remove gdbsupport files.
10685
10686 2020-01-14 Tom Tromey <tom@tromey.com>
10687
10688 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10689 USE_WIN32API when needed.
10690 * configure.ac (USE_WIN32API): Don't define.
10691 (WIN32LIBS): Use WIN32APILIBS.
10692 * configure: Rebuild.
10693
10694 2020-01-14 Tom Tromey <tom@tromey.com>
10695
10696 * configure: Rebuild.
10697 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10698
10699 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10700
10701 * skip.c (skip_function_command): Make skip w/o arguments use the
10702 name of the inlined function if pc is inside any inlined function.
10703
10704 2020-01-14 Luis Machado <luis.machado@linaro.org>
10705
10706 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10707 * infrun.c (resume_1): Likewise.
10708 (handle_inferior_event): Remove stale comment.
10709 * linux-nat.c (linux_nat_target::resume): Update comments.
10710 (save_stop_reason): Likewise.
10711 (linux_nat_filter_event): Likewise.
10712 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10713
10714 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10715
10716 * elfread.c (record_minimal_symbol): Set section index to 0 for
10717 non-allocatable sections.
10718
10719
10720 2020-01-13 Ali Tamur <tamur@google.com>
10721
10722 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10723 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10724 to gdb::optional. Update comments.
10725 (dwo_file): Update comments.
10726 (read_attribute): Update API to take an additional out parameter,
10727 need_reprocess. This is used to mark attributes that need other
10728 attributes (e.g. str_offsets_base) for correct computation which may not
10729 have been read yet.
10730 (read_attribute_reprocess): New function declaration.
10731 (read_addr_index): Likewise.
10732 (read_dwo_str_index): Likewise.
10733 (read_stub_str_index): Likewise.
10734 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10735 (lookup_addr_base): New function definition.
10736 (lookup_ranges_base): Likewise.
10737 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10738 lookup_ranges_base.
10739 (init_cutu_and_read_dies): Update comments.
10740 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10741 unit. This is used to inherit parent's str_offsets_base and addr_base.
10742 Update comments.
10743 (init_cutu_and_read_dies_simple): Reflect API changes.
10744 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10745 (create_cus_hash_table): Change API to take parent compile unit.
10746 Reflect API changes.
10747 (open_and_init_dwo_file): Reflect API changes.
10748 (dwarf2_get_pc_bounds): Update comments.
10749 (dwarf2_record_block_ranges): Likewise.
10750 (read_full_die_1): Change implementation to reprocess attributes that
10751 need str_offsets_base and addr_base.
10752 (partial_die_info::read): Likewise.
10753 (read_attribute_reprocess): New function definition.
10754 (read_attribute_value): Change API to take an additional out parameter,
10755 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10756 when a non-dwo compile unit has index based attributes.
10757 (read_attribute): Reflect API changes.
10758 (read_addr_index_1): Reflect API changes. Update comments.
10759 (dwarf2_read_addr_index_data): Reflect API changes.
10760 (dwarf2_read_addr_index): Likewise.
10761 (read_str_index): Change API and implementation. This becomes a helper
10762 to be used by the new string index related methods. Update error
10763 message and comments.
10764 (read_dwo_str_index): New function definition.
10765 (read_stub_str_index): Likewise.
10766 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10767 * symfile.h (dwarf2_debug_sections): Likewise.
10768 * xcoffread.c (dwarf2_debug_sections): Likewise.
10769
10770 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10771
10772 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10773 core_reg_sect type to gdb_byte *.
10774 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10775 * cris-tdep.c (fetch_core_registers): Likewise.
10776 * corelow.c (core_target::get_core_register_section): Change
10777 type of `contents` to gdb::byte_vector.
10778
10779 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10780
10781 * tui/tui-wingeneral.c (box_win): Position the title in the center
10782 of the border.
10783
10784 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10785
10786 * corelow.c (core_target::get_core_register_section): Use
10787 std::vector instead of alloca.
10788
10789 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10790
10791 * warning.m4: Add -Wmissing-declarations to build_warnings.
10792 * configure: Re-generate.
10793
10794 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10795
10796 * python/python.c (init__gdb_module): Add declaration.
10797
10798 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10799
10800 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10801 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10802 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10803 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10804 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10805 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10806 * ada-exp.y (_initialize_ada_exp): Add declaration.
10807 * ada-lang.c (_initialize_ada_language): Add declaration.
10808 * ada-tasks.c (_initialize_tasks): Add declaration.
10809 * agent.c (_initialize_agent): Add declaration.
10810 * aix-thread.c (_initialize_aix_thread): Add declaration.
10811 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10812 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10813 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10814 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10815 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10816 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10817 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10818 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10819 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10820 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10821 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10822 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10823 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10824 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10825 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10826 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10827 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10828 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10829 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10830 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10831 * annotate.c (_initialize_annotate): Add declaration.
10832 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10833 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10834 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10835 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10836 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10837 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10838 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10839 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10840 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10841 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10842 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10843 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10844 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10845 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10846 * auto-load.c (_initialize_auto_load): Add declaration.
10847 * auxv.c (_initialize_auxv): Add declaration.
10848 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10849 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10850 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10851 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10852 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10853 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10854 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10855 * breakpoint.c (_initialize_breakpoint): Add declaration.
10856 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10857 * btrace.c (_initialize_btrace): Add declaration.
10858 * charset.c (_initialize_charset): Add declaration.
10859 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10860 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10861 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10862 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10863 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10864 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10865 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10866 * coffread.c (_initialize_coffread): Add declaration.
10867 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10868 * compile/compile.c (_initialize_compile): Add declaration.
10869 * complaints.c (_initialize_complaints): Add declaration.
10870 * completer.c (_initialize_completer): Add declaration.
10871 * copying.c (_initialize_copying): Add declaration.
10872 * corefile.c (_initialize_core): Add declaration.
10873 * corelow.c (_initialize_corelow): Add declaration.
10874 * cp-abi.c (_initialize_cp_abi): Add declaration.
10875 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10876 * cp-support.c (_initialize_cp_support): Add declaration.
10877 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10878 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10879 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10880 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10881 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10882 * ctfread.c (_initialize_ctfread): Add declaration.
10883 * d-lang.c (_initialize_d_language): Add declaration.
10884 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10885 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10886 * dbxread.c (_initialize_dbxread): Add declaration.
10887 * dcache.c (_initialize_dcache): Add declaration.
10888 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10889 * disasm.c (_initialize_disasm): Add declaration.
10890 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10891 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10892 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10893 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10894 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10895 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10896 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10897 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10898 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10899 * elfread.c (_initialize_elfread): Add declaration.
10900 * exec.c (_initialize_exec): Add declaration.
10901 * extension.c (_initialize_extension): Add declaration.
10902 * f-lang.c (_initialize_f_language): Add declaration.
10903 * f-valprint.c (_initialize_f_valprint): Add declaration.
10904 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10905 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10906 * filesystem.c (_initialize_filesystem): Add declaration.
10907 * findcmd.c (_initialize_mem_search): Add declaration.
10908 * findvar.c (_initialize_findvar): Add declaration.
10909 * fork-child.c (_initialize_fork_child): Add declaration.
10910 * frame-base.c (_initialize_frame_base): Add declaration.
10911 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10912 * frame.c (_initialize_frame): Add declaration.
10913 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10914 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10915 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10916 * gcore.c (_initialize_gcore): Add declaration.
10917 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10918 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10919 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10920 * gdbarch.c (_initialize_gdbarch): Add declaration.
10921 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10922 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10923 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10924 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10925 * go-lang.c (_initialize_go_language): Add declaration.
10926 * go32-nat.c (_initialize_go32_nat): Add declaration.
10927 * guile/guile.c (_initialize_guile): Add declaration.
10928 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10929 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10930 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10931 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10932 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10933 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10934 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10935 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10936 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10937 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10938 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10939 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10940 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10941 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10942 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10943 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10944 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10945 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10946 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10947 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10948 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10949 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10950 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10951 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10952 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10953 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10954 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10955 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10956 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10957 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10958 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10959 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10960 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10961 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10962 * infcall.c (_initialize_infcall): Add declaration.
10963 * infcmd.c (_initialize_infcmd): Add declaration.
10964 * inflow.c (_initialize_inflow): Add declaration.
10965 * infrun.c (_initialize_infrun): Add declaration.
10966 * interps.c (_initialize_interpreter): Add declaration.
10967 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10968 * jit.c (_initialize_jit): Add declaration.
10969 * language.c (_initialize_language): Add declaration.
10970 * linux-fork.c (_initialize_linux_fork): Add declaration.
10971 * linux-nat.c (_initialize_linux_nat): Add declaration.
10972 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10973 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10974 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10975 * m2-lang.c (_initialize_m2_language): Add declaration.
10976 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10977 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10978 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10979 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10980 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10981 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10982 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10983 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10984 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10985 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10986 * machoread.c (_initialize_machoread): Add declaration.
10987 * macrocmd.c (_initialize_macrocmd): Add declaration.
10988 * macroscope.c (_initialize_macroscope): Add declaration.
10989 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10990 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10991 * maint.c (_initialize_maint_cmds): Add declaration.
10992 * mdebugread.c (_initialize_mdebugread): Add declaration.
10993 * memattr.c (_initialize_mem): Add declaration.
10994 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10995 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10996 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10997 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10998 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10999 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11000 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11001 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11002 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11003 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11004 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11005 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11006 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11007 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11008 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11009 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11010 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11011 * mipsread.c (_initialize_mipsread): Add declaration.
11012 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11013 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11014 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11015 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11016 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11017 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11018 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11019 * nto-procfs.c (_initialize_procfs): Add declaration.
11020 * objc-lang.c (_initialize_objc_language): Add declaration.
11021 * observable.c (_initialize_observer): Add declaration.
11022 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11023 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11024 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11025 * osabi.c (_initialize_gdb_osabi): Add declaration.
11026 * osdata.c (_initialize_osdata): Add declaration.
11027 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11028 * parse.c (_initialize_parse): Add declaration.
11029 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11030 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11031 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11032 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11033 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11034 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11035 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11036 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11037 * printcmd.c (_initialize_printcmd): Add declaration.
11038 * probe.c (_initialize_probe): Add declaration.
11039 * proc-api.c (_initialize_proc_api): Add declaration.
11040 * proc-events.c (_initialize_proc_events): Add declaration.
11041 * proc-service.c (_initialize_proc_service): Add declaration.
11042 * procfs.c (_initialize_procfs): Add declaration.
11043 * producer.c (_initialize_producer): Add declaration.
11044 * psymtab.c (_initialize_psymtab): Add declaration.
11045 * python/python.c (_initialize_python): Add declaration.
11046 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11047 * record-btrace.c (_initialize_record_btrace): Add declaration.
11048 * record-full.c (_initialize_record_full): Add declaration.
11049 * record.c (_initialize_record): Add declaration.
11050 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11051 * regcache.c (_initialize_regcache): Add declaration.
11052 * reggroups.c (_initialize_reggroup): Add declaration.
11053 * remote-notif.c (_initialize_notif): Add declaration.
11054 * remote-sim.c (_initialize_remote_sim): Add declaration.
11055 * remote.c (_initialize_remote): Add declaration.
11056 * reverse.c (_initialize_reverse): Add declaration.
11057 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11058 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11059 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11060 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11061 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11062 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11063 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11064 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11065 Add declaration.
11066 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11067 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11068 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11069 * rust-exp.y (_initialize_rust_exp): Add declaration.
11070 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11071 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11072 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11073 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11074 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11075 * score-tdep.c (_initialize_score_tdep): Add declaration.
11076 * ser-go32.c (_initialize_ser_dos): Add declaration.
11077 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11078 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11079 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11080 * ser-uds.c (_initialize_ser_socket): Add declaration.
11081 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11082 * serial.c (_initialize_serial): Add declaration.
11083 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11084 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11085 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11086 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11087 * skip.c (_initialize_step_skip): Add declaration.
11088 * sol-thread.c (_initialize_sol_thread): Add declaration.
11089 * solib-aix.c (_initialize_solib_aix): Add declaration.
11090 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11091 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11092 * solib-frv.c (_initialize_frv_solib): Add declaration.
11093 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11094 * solib-target.c (_initialize_solib_target): Add declaration.
11095 * solib.c (_initialize_solib): Add declaration.
11096 * source-cache.c (_initialize_source_cache): Add declaration.
11097 * source.c (_initialize_source): Add declaration.
11098 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11099 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11100 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11101 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11102 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11103 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11104 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11105 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11106 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11107 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11108 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11109 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11110 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11111 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11112 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11113 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11114 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11115 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11116 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11117 * stabsread.c (_initialize_stabsread): Add declaration.
11118 * stack.c (_initialize_stack): Add declaration.
11119 * stap-probe.c (_initialize_stap_probe): Add declaration.
11120 * std-regs.c (_initialize_frame_reg): Add declaration.
11121 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11122 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11123 * symfile.c (_initialize_symfile): Add declaration.
11124 * symmisc.c (_initialize_symmisc): Add declaration.
11125 * symtab.c (_initialize_symtab): Add declaration.
11126 * target.c (_initialize_target): Add declaration.
11127 * target-connection.c (_initialize_target_connection): Add
11128 declaration.
11129 * target-dcache.c (_initialize_target_dcache): Add declaration.
11130 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11131 * thread.c (_initialize_thread): Add declaration.
11132 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11133 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11134 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11135 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11136 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11137 * tracectf.c (_initialize_ctf): Add declaration.
11138 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11139 * tracefile.c (_initialize_tracefile): Add declaration.
11140 * tracepoint.c (_initialize_tracepoint): Add declaration.
11141 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11142 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11143 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11144 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11145 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11146 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11147 * tui/tui.c (_initialize_tui): Add declaration.
11148 * typeprint.c (_initialize_typeprint): Add declaration.
11149 * ui-style.c (_initialize_ui_style): Add declaration.
11150 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11151 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11152 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11153 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11154 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11155 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11156 * unittests/filtered_iterator-selftests.c
11157 (_initialize_filtered_iterator_selftests): Add declaration.
11158 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11159 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11160 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11161 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11162 * unittests/main-thread-selftests.c
11163 (_initialize_main_thread_selftests): Add declaration.
11164 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11165 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11166 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11167 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11168 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11169 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11170 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11171 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11172 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11173 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11174 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11175 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11176 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11177 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11178 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11179 declaration.
11180 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11181 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11182 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11183 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11184 * user-regs.c (_initialize_user_regs): Add declaration.
11185 * utils.c (_initialize_utils): Add declaration.
11186 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11187 * valops.c (_initialize_valops): Add declaration.
11188 * valprint.c (_initialize_valprint): Add declaration.
11189 * value.c (_initialize_values): Add declaration.
11190 * varobj.c (_initialize_varobj): Add declaration.
11191 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11192 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11193 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11194 * windows-nat.c (_initialize_windows_nat): Add declaration.
11195 (_initialize_check_for_gdb_ini): Add declaration.
11196 (_initialize_loadable): Add declaration.
11197 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11198 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11199 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11200 * xcoffread.c (_initialize_xcoffread): Add declaration.
11201 * xml-support.c (_initialize_xml_support): Add declaration.
11202 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11203 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11204 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11205 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11206
11207 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11208
11209 * regformats/regdat.sh: Generate declaration for init function.
11210
11211 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11212
11213 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11214 up.
11215 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11216 close_one_inferior>: New methods.
11217 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11218 pass down target to find_inferior_pid.
11219 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11220 Pass down target to find_inferior_ptid.
11221 (gdbsim_target::create_inferior): Pass down target to
11222 add_thread_silent.
11223 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11224 target down to find_inferior_ptid and switch_to_thread.
11225 (gdbsim_target::close): Update to call close_one_inferior.
11226 (struct resume_data): Remove.
11227 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11228 directly, rather than through a void pointer.
11229 (gdbsim_target::resume): Update to call resume_one_inferior.
11230
11231 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11232
11233 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11234
11235 2020-01-12 Pedro Alves <palves@redhat.com>
11236
11237 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11238 directly for the current inferior instead of
11239 discard_all_inferiors.
11240 (discard_all_inferiors): Delete.
11241
11242 2020-01-11 Tom Tromey <tom@tromey.com>
11243
11244 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11245 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11246 deprecated_safe_get_selected_frame.
11247
11248 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11249
11250 * inferior.c (print_inferior): Switch inferior before printing it.
11251
11252 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11253 Pedro Alves <palves@redhat.com>
11254
11255 * progspace-and-thread.c (switch_to_program_space_and_thread):
11256 Assert there's an inferior for PSPACE. Use
11257 switch_to_inferior_no_thread to switch the inferior too.
11258 * progspace.c (program_space::~program_space): Call
11259 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11260 (program_space::free_all_objfiles): Don't call clear_symtab_users
11261 here.
11262 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11263
11264 2020-01-10 Pedro Alves <palves@redhat.com>
11265
11266 * NEWS: Mention multi-target debugging, "info connections", and
11267 "add-inferior -no-connection".
11268
11269 2020-01-10 Pedro Alves <palves@redhat.com>
11270
11271 * infrun.c: Include "target-connection.h".
11272 (check_multi_target_resumption): New.
11273 (proceed): Call it.
11274 * target-connection.c (make_target_connection_string): Make
11275 extern.
11276 * target-connection.h (make_target_connection_string): Declare.
11277
11278 2020-01-10 Pedro Alves <palves@redhat.com>
11279
11280 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11281 * inferior.c (uiout_field_connection): New function.
11282 (print_inferior): Add new "connection-id" column.
11283 (add_inferior_command): Show connection number/string of added
11284 inferior.
11285 * process-stratum-target.h
11286 (process_stratum_target::connection_string): New virtual method.
11287 (process_stratum_target::connection_number): New field.
11288 * remote.c (remote_target::connection_string): New override.
11289 * target-connection.c: New file.
11290 * target-connection.h: New file.
11291 * target.c (decref_target): Remove process_stratum targets from
11292 the connection list.
11293 (target_stack::push): Add process_stratum targets to the
11294 connection list.
11295
11296 2020-01-10 Pedro Alves <palves@redhat.com>
11297
11298 Revert:
11299 2016-04-12 Pedro Alves <palves@redhat.com>
11300 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11301 Remove references to name.
11302 * serial.h (struct serial) <name>: Delete.
11303
11304 2020-01-10 Pedro Alves <palves@redhat.com>
11305
11306 * gdbarch-selftests.c (register_to_value_test): Remove "target
11307 already pushed" check.
11308
11309 2020-01-10 Pedro Alves <palves@redhat.com>
11310 John Baldwin <jhb@FreeBSD.org>
11311
11312 * aarch64-linux-nat.c
11313 (aarch64_linux_nat_target::thread_architecture): Adjust.
11314 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11315 (task_command_1): Likewise.
11316 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11317 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11318 (aix_thread_target::store_registers)
11319 (aix_thread_target::thread_alive): Adjust.
11320 * amd64-fbsd-tdep.c: Include "inferior.h".
11321 (amd64fbsd_get_thread_local_address): Pass down target.
11322 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11323 thread's gdbarch instead of target_gdbarch.
11324 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11325 get_last_target_status.
11326 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11327 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11328 inferiors.
11329 (update_inserted_breakpoint_locations): Skip if inferiors with no
11330 execution.
11331 (update_global_location_list): When handling moribund locations,
11332 find representative inferior for location's pspace, and use thread
11333 count of its process_stratum target.
11334 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11335 * bsd-uthread.c (bsd_uthread_target::wait): Use
11336 as_process_stratum_target and adjust thread_change_ptid and
11337 add_thread calls.
11338 (bsd_uthread_target::update_thread_list): Use
11339 as_process_stratum_target and adjust find_thread_ptid,
11340 thread_change_ptid and add_thread calls.
11341 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11342 find_thread_ptid call.
11343 * corelow.c (add_to_thread_list): Adjust add_thread call.
11344 (core_target_open): Adjust add_thread_silent and thread_count
11345 calls.
11346 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11347 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11348 * event-top.c (async_disconnect): Pop targets from all inferiors.
11349 * exec.c (add_target_sections): Push exec target on all inferiors
11350 sharing the program space.
11351 (remove_target_sections): Remove the exec target from all
11352 inferiors sharing the program space.
11353 (exec_on_vfork): New.
11354 * exec.h (exec_on_vfork): Declare.
11355 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11356 Pass it down.
11357 (fbsd_nat_target::update_thread_list): Adjust.
11358 (fbsd_nat_target::resume): Adjust.
11359 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11360 down.
11361 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11362 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11363 get_thread_arch_regcache call.
11364 * fork-child.c (gdb_startup_inferior): Pass target down to
11365 startup_inferior and set_executing.
11366 * gdbthread.h (struct process_stratum_target): Forward declare.
11367 (add_thread, add_thread_silent, add_thread_with_info)
11368 (in_thread_list): Add process_stratum_target parameter.
11369 (find_thread_ptid(inferior*, ptid_t)): New overload.
11370 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11371 parameter.
11372 (all_threads()): Delete overload.
11373 (all_threads, all_non_exited_threads): Add process_stratum_target
11374 parameter.
11375 (all_threads_safe): Use brace initialization.
11376 (thread_count): Add process_stratum_target parameter.
11377 (set_resumed, set_running, set_stop_requested, set_executing)
11378 (threads_are_executing, finish_thread_state): Add
11379 process_stratum_target parameter.
11380 (switch_to_thread): Use is_current_thread.
11381 * i386-fbsd-tdep.c: Include "inferior.h".
11382 (i386fbsd_get_thread_local_address): Pass down target.
11383 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11384 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11385 have_inferiors check.
11386 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11387 (inf_ptrace_target::attach): Adjust.
11388 * infcall.c (run_inferior_call): Adjust.
11389 * infcmd.c (run_command_1): Pass target to
11390 scoped_finish_thread_state.
11391 (proceed_thread_callback): Skip inferiors with no execution.
11392 (continue_command): Rename 'all_threads' local to avoid hiding
11393 'all_threads' function. Adjust get_last_target_status call.
11394 (prepare_one_step): Adjust set_running call.
11395 (signal_command): Use user_visible_resume_target. Compare thread
11396 pointers instead of inferior_ptid.
11397 (info_program_command): Adjust to pass down target.
11398 (attach_command): Mark target's 'thread_executing' flag.
11399 (stop_current_target_threads_ns): New, factored out from ...
11400 (interrupt_target_1): ... this. Switch inferior before making
11401 target calls.
11402 * inferior-iter.h
11403 (struct all_inferiors_iterator, struct all_inferiors_range)
11404 (struct all_inferiors_safe_range)
11405 (struct all_non_exited_inferiors_range): Filter on
11406 process_stratum_target too. Remove explicit.
11407 * inferior.c (inferior::inferior): Push dummy target on target
11408 stack.
11409 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11410 Add process_stratum_target parameter, and pass it down.
11411 (have_live_inferiors): Adjust.
11412 (switch_to_inferior_and_push_target): New.
11413 (add_inferior_command, clone_inferior_command): Handle
11414 "-no-connection" parameter. Use
11415 switch_to_inferior_and_push_target.
11416 (_initialize_inferior): Mention "-no-connection" option in
11417 the help of "add-inferior" and "clone-inferior" commands.
11418 * inferior.h: Include "process-stratum-target.h".
11419 (interrupt_target_1): Use bool.
11420 (struct inferior) <push_target, unpush_target, target_is_pushed,
11421 find_target_beneath, top_target, process_target, target_at,
11422 m_stack>: New.
11423 (discard_all_inferiors): Delete.
11424 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11425 (all_inferiors, all_non_exited_inferiors): Add
11426 process_stratum_target parameter.
11427 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11428 (target_last_proc_target): New global.
11429 (follow_fork_inferior): Push target on new inferior. Pass target
11430 to add_thread_silent. Call exec_on_vfork. Handle target's
11431 reference count.
11432 (follow_fork): Adjust get_last_target_status call. Also consider
11433 target.
11434 (follow_exec): Push target on new inferior.
11435 (struct execution_control_state) <target>: New field.
11436 (user_visible_resume_target): New.
11437 (do_target_resume): Call target_async.
11438 (resume_1): Set target's threads_executing flag. Consider resume
11439 target.
11440 (commit_resume_all_targets): New.
11441 (proceed): Also consider resume target. Skip threads of inferiors
11442 with no execution. Commit resumtion in all targets.
11443 (start_remote): Pass current inferior to wait_for_inferior.
11444 (infrun_thread_stop_requested): Consider target as well. Pass
11445 thread_info pointer to clear_inline_frame_state instead of ptid.
11446 (infrun_thread_thread_exit): Consider target as well.
11447 (random_pending_event_thread): New inferior parameter. Use it.
11448 (do_target_wait): Rename to ...
11449 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11450 down.
11451 (threads_are_resumed_pending_p, do_target_wait): New.
11452 (prepare_for_detach): Adjust calls.
11453 (wait_for_inferior): New inferior parameter. Handle it. Use
11454 do_target_wait_1 instead of do_target_wait.
11455 (fetch_inferior_event): Adjust. Switch to representative
11456 inferior. Pass target down.
11457 (set_last_target_status): Add process_stratum_target parameter.
11458 Save target in global.
11459 (get_last_target_status): Add process_stratum_target parameter and
11460 handle it.
11461 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11462 (context_switch): Check inferior_ptid == null_ptid before calling
11463 inferior_thread().
11464 (get_inferior_stop_soon): Pass down target.
11465 (wait_one): Rename to ...
11466 (poll_one_curr_target): ... this.
11467 (struct wait_one_event): New.
11468 (wait_one): New.
11469 (stop_all_threads): Adjust.
11470 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11471 event's target.
11472 (switch_back_to_stepped_thread): Also consider target.
11473 (print_stop_event): Update.
11474 (normal_stop): Update. Also consider the resume target.
11475 * infrun.h (wait_for_inferior): Remove declaration.
11476 (user_visible_resume_target): New declaration.
11477 (get_last_target_status, set_last_target_status): New
11478 process_stratum_target parameter.
11479 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11480 process_stratum_target parameter, and use it.
11481 (clear_inline_frame_state (thread_info*)): New.
11482 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11483 process_stratum_target parameter.
11484 (clear_inline_frame_state (thread_info*)): Declare.
11485 * linux-fork.c (delete_checkpoint_command): Pass target down to
11486 find_thread_ptid.
11487 (checkpoint_command): Adjust.
11488 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11489 instead of just tweaking inferior_ptid.
11490 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11491 (exit_lwp): Pass target down to find_thread_ptid.
11492 (attach_proc_task_lwp_callback): Pass target down to
11493 add_thread/set_running/set_executing.
11494 (linux_nat_target::attach): Pass target down to
11495 thread_change_ptid.
11496 (get_detach_signal): Pass target down to find_thread_ptid.
11497 Consider last target status's target.
11498 (linux_resume_one_lwp_throw, resume_lwp)
11499 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11500 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11501 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11502 (linux_nat_target::async_wait_fd): New.
11503 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11504 target down.
11505 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11506 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11507 * linux-thread-db.c (struct thread_db_info::process_target): New
11508 field.
11509 (add_thread_db_info): Save target.
11510 (get_thread_db_info): New process_stratum_target parameter. Also
11511 match target.
11512 (delete_thread_db_info): New process_stratum_target parameter.
11513 Also match target.
11514 (thread_from_lwp): Adjust to pass down target.
11515 (thread_db_notice_clone): Pass down target.
11516 (check_thread_db_callback): Pass down target.
11517 (try_thread_db_load_1): Always push the thread_db target.
11518 (try_thread_db_load, record_thread): Pass target down.
11519 (thread_db_target::detach): Pass target down. Always unpush the
11520 thread_db target.
11521 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11522 target down. Always unpush the thread_db target.
11523 (find_new_threads_callback, thread_db_find_new_threads_2)
11524 (thread_db_target::update_thread_list): Pass target down.
11525 (thread_db_target::pid_to_str): Pass current inferior down.
11526 (thread_db_target::get_thread_local_address): Pass target down.
11527 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11528 target down.
11529 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11530 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11531 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11532 (procfs_init_inferior): Rename to ...
11533 (procfs_target::procfs_init_inferior): ... this and adjust.
11534 (procfs_target::create_inferior, procfs_notice_thread)
11535 (procfs_do_thread_registers): Adjust.
11536 * ppc-fbsd-tdep.c: Include "inferior.h".
11537 (ppcfbsd_get_thread_local_address): Pass down target.
11538 * proc-service.c (ps_xfer_memory): Switch current inferior and
11539 program space as well.
11540 (get_ps_regcache): Pass target down.
11541 * process-stratum-target.c
11542 (process_stratum_target::thread_address_space)
11543 (process_stratum_target::thread_architecture): Pass target down.
11544 * process-stratum-target.h
11545 (process_stratum_target::threads_executing): New field.
11546 (as_process_stratum_target): New.
11547 * ravenscar-thread.c
11548 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11549 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11550 down.
11551 * record-btrace.c (record_btrace_target::info_record): Adjust.
11552 (record_btrace_target::record_method)
11553 (record_btrace_target::record_is_replaying)
11554 (record_btrace_target::fetch_registers)
11555 (get_thread_current_frame_id, record_btrace_target::resume)
11556 (record_btrace_target::wait, record_btrace_target::stop): Pass
11557 target down.
11558 * record-full.c (record_full_wait_1): Switch to event thread.
11559 Pass target down.
11560 * regcache.c (regcache::regcache)
11561 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11562 process_stratum_target parameter and handle it.
11563 (current_thread_target): New global.
11564 (get_thread_regcache): Add process_stratum_target parameter and
11565 handle it. Switch inferior before calling target method.
11566 (get_thread_regcache): Pass target down.
11567 (get_thread_regcache_for_ptid): Pass target down.
11568 (registers_changed_ptid): Add process_stratum_target parameter and
11569 handle it.
11570 (registers_changed_thread, registers_changed): Pass target down.
11571 (test_get_thread_arch_aspace_regcache): New.
11572 (current_regcache_test): Define a couple local test_target_ops
11573 instances and use them for testing.
11574 (readwrite_regcache): Pass process_stratum_target parameter.
11575 (cooked_read_test, cooked_write_test): Pass mock_target down.
11576 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11577 (get_thread_arch_aspace_regcache): Add process_stratum_target
11578 parameter.
11579 (regcache::target): New method.
11580 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11581 (regcache::registers_changed_ptid): Add process_stratum_target
11582 parameter.
11583 (regcache::m_target): New field.
11584 (registers_changed_ptid): Add process_stratum_target parameter.
11585 * remote.c (remote_state::supports_vCont_probed): New field.
11586 (remote_target::async_wait_fd): New method.
11587 (remote_unpush_and_throw): Add remote_target parameter.
11588 (get_current_remote_target): Adjust.
11589 (remote_target::remote_add_inferior): Push target.
11590 (remote_target::remote_add_thread)
11591 (remote_target::remote_notice_new_inferior)
11592 (get_remote_thread_info): Pass target down.
11593 (remote_target::update_thread_list): Skip threads of inferiors
11594 bound to other targets. (remote_target::close): Don't discard
11595 inferiors. (remote_target::add_current_inferior_and_thread)
11596 (remote_target::process_initial_stop_replies)
11597 (remote_target::start_remote)
11598 (remote_target::remote_serial_quit_handler): Pass down target.
11599 (remote_target::remote_unpush_target): New remote_target
11600 parameter. Unpush the target from all inferiors.
11601 (remote_target::remote_unpush_and_throw): New remote_target
11602 parameter. Pass it down.
11603 (remote_target::open_1): Check whether the current inferior has
11604 execution instead of checking whether any inferior is live. Pass
11605 target down.
11606 (remote_target::remote_detach_1): Pass down target. Use
11607 remote_unpush_target.
11608 (extended_remote_target::attach): Pass down target.
11609 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11610 (remote_target::append_resumption): Pass down target.
11611 (remote_target::append_pending_thread_resumptions)
11612 (remote_target::remote_resume_with_hc, remote_target::resume)
11613 (remote_target::commit_resume): Pass down target.
11614 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11615 (remote_target::interrupt_query)
11616 (remote_target::remove_new_fork_children)
11617 (remote_target::check_pending_events_prevent_wildcard_vcont)
11618 (remote_target::remote_parse_stop_reply)
11619 (remote_target::process_stop_reply): Pass down target.
11620 (first_remote_resumed_thread): New remote_target parameter. Pass
11621 it down.
11622 (remote_target::wait_as): Pass down target.
11623 (unpush_and_perror): New remote_target parameter. Pass it down.
11624 (remote_target::readchar, remote_target::remote_serial_write)
11625 (remote_target::getpkt_or_notif_sane_1)
11626 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11627 down target.
11628 (remote_target::mourn_inferior): Pass down target. Use
11629 remote_unpush_target.
11630 (remote_target::core_of_thread)
11631 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11632 (remote_target::pid_to_exec_file)
11633 (remote_target::thread_handle_to_thread_info): Pass down target.
11634 (remote_target::async_wait_fd): New.
11635 * riscv-fbsd-tdep.c: Include "inferior.h".
11636 (riscv_fbsd_get_thread_local_address): Pass down target.
11637 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11638 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11639 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11640 Adjust.
11641 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11642 * solib-svr4.c (enable_break): Pass down target.
11643 * spu-multiarch.c (parse_spufs_run): Pass down target.
11644 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11645 * target-delegates.c: Regenerate.
11646 * target.c (g_target_stack): Delete.
11647 (current_top_target): Return the current inferior's top target.
11648 (target_has_execution_1): Refer to the passed-in inferior's top
11649 target.
11650 (target_supports_terminal_ours): Check whether the initial
11651 inferior was already created.
11652 (decref_target): New.
11653 (target_stack::push): Incref/decref the target.
11654 (push_target, push_target, unpush_target): Adjust.
11655 (target_stack::unpush): Defref target.
11656 (target_is_pushed): Return bool. Adjust to refer to the current
11657 inferior's target stack.
11658 (dispose_inferior): Delete, and inline parts ...
11659 (target_preopen): ... here. Only dispose of the current inferior.
11660 (target_detach): Hold strong target reference while detaching.
11661 Pass target down.
11662 (target_thread_name): Add assertion.
11663 (target_resume): Pass down target.
11664 (target_ops::beneath, find_target_at): Adjust to refer to the
11665 current inferior's target stack.
11666 (get_dummy_target): New.
11667 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11668 has a thread running.
11669 (initialize_targets): Rename to ...
11670 (_initialize_target): ... this.
11671 * target.h: Include "gdbsupport/refcounted-object.h".
11672 (struct target_ops): Inherit refcounted_object.
11673 (target_ops::shortname, target_ops::longname): Make const.
11674 (target_ops::async_wait_fd): New method.
11675 (decref_target): Declare.
11676 (struct target_ops_ref_policy): New.
11677 (target_ops_ref): New typedef.
11678 (get_dummy_target): Declare function.
11679 (target_is_pushed): Return bool.
11680 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11681 (all_matching_threads_iterator::all_matching_threads_iterator):
11682 Handle filter target.
11683 * thread-iter.h (struct all_matching_threads_iterator, struct
11684 all_matching_threads_range, class all_non_exited_threads_range):
11685 Filter by target too. Remove explicit.
11686 * thread.c (threads_executing): Delete.
11687 (inferior_thread): Pass down current inferior.
11688 (clear_thread_inferior_resources): Pass down thread pointer
11689 instead of ptid_t.
11690 (add_thread_silent, add_thread_with_info, add_thread): Add
11691 process_stratum_target parameter. Use it for thread and inferior
11692 searches.
11693 (is_current_thread): New.
11694 (thread_info::deletable): Use it.
11695 (find_thread_ptid, thread_count, in_thread_list)
11696 (thread_change_ptid, set_resumed, set_running): New
11697 process_stratum_target parameter. Pass it down.
11698 (set_executing): New process_stratum_target parameter. Pass it
11699 down. Adjust reference to 'threads_executing'.
11700 (threads_are_executing): New process_stratum_target parameter.
11701 Adjust reference to 'threads_executing'.
11702 (set_stop_requested, finish_thread_state): New
11703 process_stratum_target parameter. Pass it down.
11704 (switch_to_thread): Also match inferior.
11705 (switch_to_thread): New process_stratum_target parameter. Pass it
11706 down.
11707 (update_threads_executing): Reimplement.
11708 * top.c (quit_force): Pop targets from all inferior.
11709 (gdb_init): Don't call initialize_targets.
11710 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11711 Declare.
11712 (windows_add_thread, windows_delete_thread): Adjust.
11713 (get_windows_debug_event): Rename to ...
11714 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11715 * tracefile-tfile.c (tfile_target_open): Pass down target.
11716 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11717 Forward declare.
11718 (switch_to_thread): Add process_stratum_target parameter.
11719 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11720 parameter. Use it.
11721 (mi_on_resume): Pass target down.
11722 * nat/fork-inferior.c (startup_inferior): Add
11723 process_stratum_target parameter. Pass it down.
11724 * nat/fork-inferior.h (startup_inferior): Add
11725 process_stratum_target parameter.
11726 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11727
11728 2020-01-10 Pedro Alves <palves@redhat.com>
11729
11730 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11731 directly. Instead find the first thread in the thread list and
11732 use switch_to_thread.
11733
11734 2020-01-10 Pedro Alves <palves@redhat.com>
11735
11736 * remote.c (remote_target::remote_add_inferior): Don't bind a
11737 process to the current inferior if the current inferior is already
11738 bound to a process.
11739
11740 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11741 Pedro Alves <palves@redhat.com>
11742
11743 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11744 If no process is specified, return null_ptid instead of
11745 inferior_ptid.
11746 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11747 TARGET_WAITKIND_SIGNALLED with no pid.
11748
11749 2020-01-10 Pedro Alves <palves@redhat.com>
11750
11751 * remote.c (first_remote_resumed_thread): New.
11752 (remote_target::wait_as): Use it as default event_ptid instead of
11753 inferior_ptid.
11754
11755 2020-01-10 Pedro Alves <palves@redhat.com>
11756
11757 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11758
11759 2020-01-10 Pedro Alves <palves@redhat.com>
11760
11761 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11762 not -1.
11763
11764 2020-01-10 Pedro Alves <palves@redhat.com>
11765
11766 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11767 ptid to get_last_target_status.
11768 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11769 ptid to get_last_target_status.
11770 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11771 get_last_target_status.
11772 (info_program_command): Don't pass a target_waitstatus to
11773 get_last_target_status.
11774 * infrun.c (init_wait_for_inferior): Use
11775 nullify_last_target_wait_ptid.
11776 (get_last_target_status): Handle nullptr arguments.
11777 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11778 (print_stop_event): Don't pass a ptid to get_last_target_status.
11779 (normal_stop): Don't pass a ptid to get_last_target_status.
11780 * infrun.h (get_last_target_status, set_last_target_status): Move
11781 comments here and update.
11782 (nullify_last_target_wait_ptid): Declare.
11783 * linux-fork.c (fork_load_infrun_state): Remove local extern
11784 declaration of nullify_last_target_wait_ptid.
11785 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11786 to get_last_target_status.
11787
11788 2020-01-10 Pedro Alves <palves@redhat.com>
11789
11790 * gdbthread.h (scoped_restore_current_thread)
11791 <dont_restore, restore, m_dont_restore>: Declare.
11792 * thread.c (thread_alive): Add assertion. Return bool.
11793 (switch_to_thread_if_alive): New.
11794 (prune_threads): Switch inferior/thread.
11795 (print_thread_info_1): Switch thread before calling target methods.
11796 (scoped_restore_current_thread::restore): New, factored out from
11797 ...
11798 (scoped_restore_current_thread::~scoped_restore_current_thread):
11799 ... this.
11800 (scoped_restore_current_thread::scoped_restore_current_thread):
11801 Add assertion.
11802 (thread_apply_all_command, thread_select): Use
11803 switch_to_thread_if_alive.
11804 * infrun.c (proceed, restart_threads, handle_signal_stop)
11805 (switch_back_to_stepped_thread): Switch current thread before
11806 calling target methods.
11807
11808 2020-01-10 Pedro Alves <palves@redhat.com>
11809
11810 * inferior.c (switch_to_inferior_no_thread): New function,
11811 factored out from ...
11812 (inferior_command): ... here.
11813 * inferior.h (switch_to_inferior_no_thread): Declare.
11814 * mi/mi-main.c (run_one_inferior): Use
11815 switch_to_inferior_no_thread.
11816
11817 2020-01-10 Pedro Alves <palves@redhat.com>
11818
11819 * infcmd.c (kill_command): Remove dead code.
11820
11821 2020-01-10 Pedro Alves <palves@redhat.com>
11822
11823 * remote.c (remote_target::mourn_inferior): No longer check
11824 whether the target is running.
11825
11826 2020-01-10 Pedro Alves <palves@redhat.com>
11827
11828 * corelow.c (core_target::has_execution): Change parameter type to
11829 inferior pointer.
11830 * inferior.c (number_of_live_inferiors): Use
11831 inferior::has_execution instead of target_has_execution_1.
11832 * inferior.h (inferior::has_execution): New.
11833 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11834 inferior::has_execution instead of target_has_execution_1.
11835 * process-stratum-target.c
11836 (process_stratum_target::has_execution): Change parameter type to
11837 inferior pointer. Check the inferior's PID instead of
11838 inferior_ptid.
11839 * process-stratum-target.h
11840 (process_stratum_target::has_execution): Change parameter type to
11841 inferior pointer.
11842 * record-full.c (record_full_core_target::has_execution): Change
11843 parameter type to inferior pointer.
11844 * target.c (target_has_execution_1): Change parameter type to
11845 inferior pointer.
11846 (target_has_execution_current): Adjust.
11847 * target.h (target_ops::has_execution): Change parameter type to
11848 inferior pointer.
11849 (target_has_execution_1): Change parameter type to inferior
11850 pointer. Change return type to bool.
11851 * tracefile.h (tracefile_target::has_execution): Change parameter
11852 type to inferior pointer.
11853
11854 2020-01-10 Pedro Alves <palves@redhat.com>
11855
11856 * exceptions.c (print_flush): Remove current_top_target() check.
11857
11858 2020-01-10 Pedro Alves <palves@redhat.com>
11859
11860 * remote.c (show_remote_exec_file): Show the current inferior's
11861 exec-file instead of the command variable's value.
11862
11863 2020-01-10 Pedro Alves <palves@redhat.com>
11864
11865 * record-full.c (record_full_resume_ptid): New global.
11866 (record_full_target::resume): Set it.
11867 (record_full_wait_1): Use record_full_resume_ptid instead of
11868 inferior_ptid.
11869
11870 2020-01-10 Pedro Alves <palves@redhat.com>
11871
11872 * gdbthread.h (scoped_restore_current_thread)
11873 <dont_restore, restore, m_dont_restore>: Declare.
11874 * thread.c (thread_alive): Add assertion. Return bool.
11875 (switch_to_thread_if_alive): New.
11876 (prune_threads): Switch inferior/thread.
11877 (print_thread_info_1): Switch thread before calling target methods.
11878 (scoped_restore_current_thread::restore): New, factored out from
11879 ...
11880 (scoped_restore_current_thread::~scoped_restore_current_thread):
11881 ... this.
11882 (scoped_restore_current_thread::scoped_restore_current_thread):
11883 Add assertion.
11884 (thread_apply_all_command, thread_select): Use
11885 switch_to_thread_if_alive.
11886
11887 2020-01-10 George Barrett <bob@bob131.so>
11888
11889 * stap-probe.c (stap_modify_semaphore): Don't check for null
11890 semaphores.
11891 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11892 for null semaphores.
11893
11894 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11895
11896 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11897 all source windows, and maintain horizontal scroll status while
11898 doing so.
11899
11900 2020-01-09 Tom Tromey <tom@tromey.com>
11901
11902 PR tui/18932:
11903 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11904 update_source_window, not print_source_lines.
11905
11906 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11907
11908 * tui/tui.c (tui_enable): Register tui hooks after calling
11909 tui_display_main.
11910
11911 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11912
11913 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11914
11915 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11916
11917 * thread.c (print_thread_info_1): Fix indentation.
11918
11919 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11920
11921 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11922 unique_xmalloc_ptr outside the if to always free the demangled name.
11923
11924 2020-01-08 Tom Tromey <tromey@adacore.com>
11925
11926 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11927 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11928 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11929 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11930 Remove.
11931 (section_offsets): New typedef.
11932 * symtab.c (fixup_section, get_msymbol_address): Update.
11933 * symmisc.c (dump_msymbols): Update.
11934 * symfile.h (relative_addr_info_to_section_offsets)
11935 (symfile_map_offsets_to_segments): Update.
11936 * symfile.c (build_section_addr_info_from_objfile)
11937 (init_objfile_sect_indices): Update.
11938 (struct place_section_arg): Change type of "offsets".
11939 (place_section): Update.
11940 (relative_addr_info_to_section_offsets): Change type of
11941 "section_offsets". Remove "num_sections" parameter.
11942 (default_symfile_offsets, syms_from_objfile_1)
11943 (set_objfile_default_section_offset): Update.
11944 (reread_symbols): No need to preserve section offsets by hand.
11945 (symfile_map_offsets_to_segments): Change type of "offsets".
11946 * stap-probe.c (relocate_address): Update.
11947 * stabsread.h (process_one_symbol): Update.
11948 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11949 (solib_target_relocate_section_addresses): Update.
11950 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11951 Update.
11952 * solib-frv.c (frv_relocate_main_executable): Update.
11953 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11954 * solib-aix.c (solib_aix_get_section_offsets): Change return
11955 type.
11956 (solib_aix_solib_create_inferior_hook): Update.
11957 * remote.c (remote_target::get_offsets): Update.
11958 * psymtab.c (find_pc_sect_psymtab): Update.
11959 * psympriv.h (struct partial_symbol) <address, text_low,
11960 text_high>: Update.
11961 * objfiles.h (obj_section_offset): Update.
11962 (struct objfile) <section_offsets>: Change type.
11963 <num_sections>: Remove.
11964 (objfile_relocate): Update.
11965 * objfiles.c (entry_point_address_query): Update
11966 (relocate_one_symbol): Change type of "section_offsets".
11967 (objfile_relocate1, objfile_relocate1): Change type of
11968 "new_offsets".
11969 (objfile_rebase1): Update.
11970 * mipsread.c (mipscoff_symfile_read): Update.
11971 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11972 parameter.
11973 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11974 (parse_external, psymtab_to_symtab_1): Update.
11975 * machoread.c (macho_symfile_offsets): Update.
11976 * ia64-tdep.c (ia64_find_unwind_table): Update.
11977 * hppa-tdep.c (read_unwind_info): Update.
11978 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11979 * dwarf2read.c (create_addrmap_from_index)
11980 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11981 (process_psymtab_comp_unit_reader, add_partial_symbol)
11982 (add_partial_subprogram, process_full_comp_unit)
11983 (read_file_scope, read_func_scope, read_lexical_block_scope)
11984 (read_call_site_scope, dwarf2_rnglists_process)
11985 (dwarf2_ranges_process, dwarf2_ranges_read)
11986 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11987 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11988 Update.
11989 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11990 Update.
11991 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11992 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11993 (process_one_symbol): Change type of "section_offsets".
11994 * ctfread.c (get_objfile_text_range): Update.
11995 * coffread.c (coff_symtab_read, enter_linenos)
11996 (process_coff_symbol): Update.
11997 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11998 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11999
12000 2020-01-08 Tom Tromey <tromey@adacore.com>
12001
12002 * dwarf2read.c (parse_macro_definition): Use std::string.
12003 (parse_macro_definition): Likewise.
12004
12005 2020-01-08 Tom Tromey <tromey@adacore.com>
12006
12007 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12008 (ATTR_ALLOC_CHUNK): Remove.
12009
12010 2020-01-08 Tom Tromey <tromey@adacore.com>
12011
12012 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12013
12014 2020-01-08 Tom Tromey <tromey@adacore.com>
12015
12016 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12017 (dwarf2_compute_name, open_dwo_file): Likewise.
12018 (process_enumeration_scope): Use std::vector.
12019 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12020 (partial_die_info::fixup, dwarf2_start_subfile)
12021 (guess_full_die_structure_name, dwarf2_name): Likewise.
12022 (determine_prefix): Update.
12023 (guess_full_die_structure_name): Make return type const.
12024 (partial_die_full_name): Return unique_xmalloc_ptr.
12025 (DW_FIELD_ALLOC_CHUNK): Remove.
12026
12027 2020-01-07 Tom Tromey <tromey@adacore.com>
12028
12029 PR build/24937:
12030 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12031
12032 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12033
12034 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12035
12036 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12037
12038 * stack.c (print_frame_info): Move disassemble_next_line code
12039 inside source_print block.
12040
12041 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12042
12043 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12044 gdb/signals.h, as we are now using native signal symbols.
12045
12046 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12047
12048 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12049 overflow by an early check of content vs threshold.
12050 * tui/tui-source.c (tui_source_window::line_is_displayed):
12051 Likewise.
12052
12053 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12054
12055 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12056
12057 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12058
12059 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12060 export table if no section contains it's RVA.
12061
12062 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12063
12064 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12065
12066 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12067
12068 * source.c (print_source_lines_base): Set last_line_listed.
12069
12070 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12071
12072 * tui/tui-disasm.c: Remove trailing spaces.
12073
12074 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12075 Pedro Alves <palves@redhat.com>
12076
12077 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12078 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12079 (windows_gdb_signal_to_target): New function, uses the above
12080 enumeration to convert GDB internal signal codes to equivalent
12081 Windows codes.
12082 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12083 * windows-nat.c: Include "gdb_wait.h".
12084 (get_windows_debug_event): Extract the fatal exception from the
12085 exit status and convert to the equivalent Posix signal number.
12086 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12087 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12088 * gdbsupport/gdb_wait.c: New file, implements
12089 windows_status_to_termsig.
12090 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12091 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12092
12093 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12094
12095 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12096 show_layout.
12097
12098 2020-01-05 Luis Machado <luis.machado@linaro.org>
12099
12100 * aarch64-linux-nat.c
12101 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12102 and bfd_mach_aarch64.
12103
12104 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12105
12106 * ui-file.c (stdio_file::can_emit_style_escape)
12107 (tee_file::can_emit_style_escape): Ensure style is used also on
12108 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12109 to gdb_stdout.
12110 * main.c (set_gdb_data_directory): Use file style to output the
12111 warning that the given pathname is not a directory.
12112 * top.c (show_history_filename, gdb_safe_append_history)
12113 (show_gdb_datadir): Use file style.
12114
12115 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12116
12117 * solib-target.c (struct lm_info_target):
12118 Change offsets to be a unique_xmalloc_ptr.
12119 (solib_target_relocate_section_addresses): Update.
12120
12121 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12122
12123 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12124
12125 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12126
12127 * MAINTAINERS (Write After Approval): Add myself.
12128
12129 2020-01-02 Luis Machado <luis.machado@linaro.org>
12130
12131 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12132 Cell BE architecture.
12133 * target.h (struct target_ops) <thread_architecture>: Likewise.
12134
12135 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12136
12137 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12138
12139 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12140
12141 * MAINTAINERS (Write After Approval): Add myself.
12142
12143 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12144
12145 * gdbarch.sh: Update copyright year range of generated files.
12146
12147 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12148
12149 Update copyright year range in all GDB files.
12150
12151 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12152
12153 * copyright.py: Convert to Python 3.
12154
12155 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12156
12157 * copyright.py: Adapt after move of gnulib directory from gdb
12158 directory to toplevel directory.
12159
12160 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12161
12162 * copyright.py (main): Exit if run from the wrong directory.
12163
12164 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12165
12166 * top.c (print_gdb_version): Change copyright year to 2020.
12167
12168 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12169
12170 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12171
12172 For older changes see ChangeLog-2019.
12173 \f
12174 Local Variables:
12175 mode: change-log
12176 left-margin: 8
12177 fill-column: 74
12178 version-control: never
12179 coding: utf-8
12180 End: