]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Add demangling support to readelf.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-08-11 Tom de Vries <tdevries@suse.de>
2
3 * MAINTAINERS: Mark ms1 as deleted.
4
5 2020-08-10 Luis Machado <luis.machado@linaro.org>
6
7 PR gdb/26310
8
9 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
10 act accordingly.
11 (aarch64_analyze_prologue_test): Add more unit tests to exercise
12 movz/str/stur/stp skipping behavior.
13
14 2020-08-10 Luis Machado <luis.machado@linaro.org>
15
16 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
17 struct user_sve_header instead of struct sve_context.
18
19 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
20
21 * read.h (dwarf2_fetch_die_loc_sect_off,
22 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
23 `void *` parameter with function_view.
24 * read.c (dwarf2_fetch_die_loc_sect_off,
25 dwarf2_fetch_die_loc_cu_off): Likewise.
26 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
27 (per_cu_dwarf_call): Adjust.
28 (get_frame_address_in_block_wrapper): Remove.
29 (indirect_synthetic_pointer): Adjust.
30 (get_ax_pc): Remove.
31 (dwarf2_compile_expr_to_ax): Adjust.
32
33 2020-08-08 Tom de Vries <tdevries@suse.de>
34
35 PR build/26344
36 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
37 constructor.
38 * regcache.c (get_thread_arch_aspace_regcache): Same.
39
40 2020-08-07 Tom Tromey <tromey@adacore.com>
41
42 * ravenscar-thread.c
43 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
44 New method.
45 (ravenscar_thread_target::wait): Check
46 runtime_initialized.
47 (ravenscar_thread_target::prepare_to_store)
48 (ravenscar_thread_target::stopped_by_sw_breakpoint)
49 (ravenscar_thread_target::stopped_by_hw_breakpoint)
50 (ravenscar_thread_target::stopped_by_watchpoint)
51 (ravenscar_thread_target::stopped_data_address)
52 (ravenscar_thread_target::core_of_thread): Use
53 scoped_restore_current_thread and
54 set_base_thread_from_ravenscar_task.
55
56 2020-08-07 Tom Tromey <tromey@adacore.com>
57
58 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
59
60 2020-08-07 Tom Tromey <tromey@adacore.com>
61
62 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
63 update_inferior_ptid before update_thread_list.
64 (temporarily_change_regcache_ptid): New class.
65 (ravenscar_thread_target::fetch_registers)
66 (ravenscar_thread_target::store_registers)
67 (ravenscar_thread_target::prepare_to_store): Use base thread when
68 forwarding operation.
69
70 2020-08-07 Tom Tromey <tromey@adacore.com>
71
72 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
73 "is_pid" case.
74
75 2020-08-07 Tom Tromey <tromey@adacore.com>
76
77 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
78 New methods.
79 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
80 first.
81 (ravenscar_thread_target::add_thread): Rename from
82 ravenscar_add_thread.
83 (ravenscar_thread_target::update_thread_list): Use a lambda.
84 (ravenscar_thread_target::xfer_partial): New method.
85
86 2020-08-07 Tom Tromey <tromey@adacore.com>
87
88 * ada-lang.h (ada_task_list_iterator_ftype): Now a
89 gdb::function_view.
90 (iterate_over_live_ada_tasks): Change type of argument.
91 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
92 of argument.
93
94 2020-08-07 Tom Tromey <tromey@adacore.com>
95
96 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
97 Remove.
98 (ravenscar_thread_target::extra_thread_info): Remove.
99 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
100 defer to target beneath for non-Ravenscar threads.
101
102 2020-08-07 Tom Tromey <tromey@adacore.com>
103
104 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
105 get_base_thread_from_ravenscar_task>: Now methods.
106 <m_cpu_map>: New member.
107 (ravenscar_thread_target::get_thread_base_cpu): Rename from
108 ravenscar_get_thread_base_cpu. Check m_cpu_map.
109 (ravenscar_thread_target::task_is_currently_active): Update.
110 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
111 Now a method.
112 (ravenscar_thread_target::add_active_thread): Put initial thread
113 into the m_cpu_map.
114
115 2020-08-07 Tom Tromey <tromey@adacore.com>
116
117 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
118 event_ptid.
119
120 2020-08-07 Tom Tromey <tromey@adacore.com>
121
122 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
123 runtime_initialized.
124
125 2020-08-07 Tom Tromey <tromey@adacore.com>
126
127 * ravenscar-thread.c (ravenscar_thread_target): Don't call
128 add_active_thread.
129 (ravenscar_thread_target::add_active_thread): Now public.
130 (ravenscar_inferior_created): Call add_active_thread after pushing
131 the target.
132
133 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
134
135 * regcache.c (ptid_regcache_map): New type.
136 (target_ptid_regcache_map): New type.
137 (regcaches): Change type to target_ptid_regcache_map.
138 (get_thread_arch_aspace_regcache): Update to regcaches' new
139 type.
140 (regcache_thread_ptid_changed): Likewise.
141 (registers_changed_ptid): Likewise.
142 (regcaches_size): Likewise.
143 (regcaches_test): Update.
144 (regcache_thread_ptid_changed): Update.
145 * regcache.h (regcache_up): New type.
146 * gdbsupport/ptid.h (hash_ptid): New struct.
147
148 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
149
150 * observable.h (thread_ptid_changed): Add parameter
151 `process_stratum_target *`.
152 * infrun.c (infrun_thread_ptid_changed): Add parameter
153 `process_stratum_target *` and use it.
154 (selftests): New namespace.
155 (infrun_thread_ptid_changed): New function.
156 (_initialize_infrun): Register selftest.
157 * regcache.c (regcache_thread_ptid_changed): Add parameter
158 `process_stratum_target *` and use it.
159 (regcache_thread_ptid_changed): New function.
160 (_initialize_regcache): Register selftest.
161 * thread.c (thread_change_ptid): Pass target to
162 thread_ptid_changed observable.
163
164 2020-08-06 Caroline Tice <cmtice@google.com>
165
166 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
167 (struct dwp_sections): Update field comments. Add loclists and
168 rnglists fields.
169 (struct virtual_v2_dwo_sections): Rename struct to
170 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
171 size & offset fields for loclists and rnglists.
172 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
173 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
174 skipping dummy type units.
175 (create_dwp_hash_table): Update the large comment above the function to
176 discuss Version 5 DWP files as well, with references. Update all the
177 version checks in the function to check for version 5 as well. Add new
178 section at the end to create dwp hash table for version 5.
179 (create_dwp_v2_section): Rename function to
180 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
181 Add V5 to error message text.
182 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
183 into calls to create_dwp_v2_or_v5_section.
184 (create_dwo_unit_in_dwp_v5): New function.
185 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
186 check for version2; add else clause to handle version 5.
187 (open_and_init_dwo_file): Add code to check dwarf version & only call
188 create_debug_types_hash_table (with sections.types) if version is not 5;
189 else call create_debug_type_hash_table, with sections.info.
190 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
191 version 5.
192 (dwarf2_locate_v5_dwp_sections): New function.
193 (open_and_init_dwp_file): Add else-if clause for version 5 to call
194 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
195
196 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
197
198 * regcache.h (class regcache): Remove friend
199 registers_changed_ptid.
200 <regcache_thread_ptid_changed>: Remove.
201 <regcaches>: Remove.
202 * regcache.c (regcache::regcaches): Rename to...
203 (regcaches): ... this. Make static.
204 (get_thread_arch_aspace_regcache): Update.
205 (regcache::regcache_thread_ptid_changed): Rename to...
206 (regcache_thread_ptid_changed): ... this. Update.
207 (class regcache_access): Remove.
208 (regcaches_test): Update.
209 (_initialize_regcache): Update.
210 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
211 <forward_list>.
212
213 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
214
215 * regcache.h (class regcache) <current_regcache>: Rename to...
216 <regcaches>: ... this. Move doc here.
217 * regcache.c (regcache::current_regcache) Rename to...
218 (regcache::regcaches): ... this. Move doc to header.
219 (get_thread_arch_aspace_regcache): Update.
220 (regcache::regcache_thread_ptid_changed): Update.
221 (registers_changed_ptid): Update.
222 (class regcache_access) <current_regcache_size>: Rename to...
223 <regcaches_size>: ... this.
224 (current_regcache_test): Rename to...
225 (regcaches_test): ... this.
226 (_initialize_regcache): Update.
227
228 2020-08-06 Victor Collod <vcollod@nvidia.com>
229
230 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
231
232 2020-08-05 Kevin Buettner <kevinb@redhat.com>
233
234 * corelow.c (core_target::build_file_mappings): Don't output
235 null pathname in warning.
236
237 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
238
239 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
240 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
241 gdb.dwarf2/dw2-single-line-discriminators.exp,
242 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
243
244 2020-08-05 Tom Tromey <tromey@adacore.com>
245
246 PR rust/26197:
247 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
248 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
249 Fix off-by-one and type size errors in ordinary case.
250
251 2020-08-05 Tom de Vries <tdevries@suse.de>
252
253 * gdbtypes.c (type_not_allocated, type_not_associated): Use
254 "prop->const_val () == 0" instead of "prop->const_val () != 0".
255
256 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
257
258 * frame.h (frame_id_p): Return bool.
259 (frame_id_artificial_p): Return bool.
260 (frame_id_eq): Return bool.
261 (has_stack_frames): Return bool.
262 (get_selected_frame): Fix typo in comment.
263 (get_frame_pc_if_available): Return bool.
264 (get_frame_address_in_block_if_available): Return bool.
265 (get_frame_func_if_available): Return bool.
266 (read_frame_register_unsigned): Return bool.
267 (get_frame_register_bytes): Return bool.
268 (safe_frame_unwind_memory): Return bool.
269 (deprecated_frame_register_read): Return bool.
270 (frame_unwinder_is): Return bool.
271 * frame.c (struct frame_info) <prev_arch::p>: Change type to
272 bool.
273 <this_id::p>: Likewise.
274 <prev_p>: Likewise.
275 (frame_stash_add): Return bool.
276 (get_frame_id): Use bool.
277 (frame_id_build_special) Use bool.
278 (frame_id_build_unavailable_stack): Use bool.
279 (frame_id_build): Use bool.
280 (frame_id_p): Return bool, use true/false instead of 1/0.
281 (frame_id_artificial_p): Likewise.
282 (frame_id_eq): Likewise.
283 (frame_id_inner): Likewise.
284 (get_frame_func_if_available): Likewise.
285 (read_frame_register_unsigned): Likewise.
286 (deprecated_frame_register_read): Likewise.
287 (get_frame_register_bytes): Likewise.
288 (has_stack_frames): Likewise.
289 (inside_main_func): Likewise.
290 (inside_entry_func): Likewise.
291 (get_frame_pc_if_available): Likewise.
292 (get_frame_address_in_block_if_available): Likewise.
293 (frame_unwinder_is): Likewise.
294 (safe_frame_unwind_memory): Likewise.
295 (frame_unwind_arch): Likewise.
296
297 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
298
299 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
300 type to cached_copy_status.
301 (fprintf_frame): Adjust.
302 (get_frame_func_if_available): Adjust.
303 (frame_cleanup_after_sniffer): Adjust.
304
305 2020-08-04 Mark Wielaard <mark@klomp.org>
306
307 * MAINTAINERS (Write After Approval): Update email address.
308
309 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
310
311 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
312 dynamic_prop::const_val.
313
314 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
315
316 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
317 dynamic_prop::kind.
318
319 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
320
321 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
322
323 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
324
325 * configure.tgt: Set gdb_sim for bpf-*-* targets.
326
327 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
328 Jose E. Marchesi <jose.marchesi@oracle.com>
329
330 * configure.tgt: Add entry for bpf-*-*.
331 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
332 (ALLDEPFILES): Add bpf-tdep.c.
333 * bpf-tdep.c: New file.
334 * MAINTAINERS: Add bpf target and maintainer.
335 * NEWS: Mention the support for the new target.
336
337 2020-08-04 Tom de Vries <tdevries@suse.de>
338
339 PR symtab/23270
340 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
341 Error.
342
343 2020-08-03 John Baldwin <jhb@FreeBSD.org>
344
345 * syscalls/freebsd.xml: Regenerate.
346
347 2020-08-03 John Baldwin <jhb@FreeBSD.org>
348
349 * syscalls/update-freebsd.sh: Fix usage and year range.
350
351 2020-08-03 Tom de Vries <tdevries@suse.de>
352
353 PR symtab/26333
354 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
355 DW_LNE_lo_user/DW_LNE_hi_user range.
356
357 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
358
359 PR ada/26318
360 * ada-lang.c (ada_modulus): Return 0 if property is not of const
361 kind.
362
363 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
364
365 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
366
367 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
368
369 * breakpoint.c (set_breakpoint_condition): Update the condition
370 expressions after checking that the input condition string parses
371 successfully and does not contain junk at the end.
372
373 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
374
375 * breakpoint.c (set_breakpoint_condition): Update the
376 condition string after parsing the new condition successfully.
377
378 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
379
380 * proc-api.c (_STRUCTURED_PROC): Don't define.
381 * proc-events.c: Likewise.
382 * proc-flags.c: Likewise.
383 * proc-why.c: Likewise.
384 * procfs.c: Likewise.
385
386 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
387 * configure, config.in: Regenerate.
388
389 2020-07-30 Tom de Vries <tdevries@suse.de>
390
391 PR build/26320
392 * ui-style.h (struct ui_file_style::color): Wrap m_value and
393 m_red/m_green/m_blue in a union.
394
395 2020-07-29 Tom de Vries <tdevries@suse.de>
396
397 PR tdep/26280
398 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
399
400 2020-07-28 Tom Tromey <tromey@adacore.com>
401
402 PR symtab/26270:
403 * symtab.h (find_pc_partial_function_sym): Declare.
404 * cli/cli-cmds.c (disassemble_command): Use
405 find_pc_partial_function_sym. Check asm_demangle.
406 * blockframe.c (cache_pc_function_sym): New global.
407 (cache_pc_function_name): Remove.
408 (clear_pc_function_cache): Update.
409 (find_pc_partial_function_sym): New function, from
410 find_pc_partial_function.
411 (find_pc_partial_function): Rewrite using
412 find_pc_partial_function_sym.
413
414 2020-07-28 Tom Tromey <tromey@adacore.com>
415
416 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
417 help. Add usage.
418
419 2020-07-28 Tom Tromey <tromey@adacore.com>
420
421 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
422 <DW_OP_GNU_variable_value>: Cast to address type.
423
424 2020-07-28 Kamil Rytarowski <n54@gmx.com>
425
426 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
427 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
428 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
429 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
430 (nbsd_get_siginfo_type): New.
431 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
432 (_initialize_nbsd_tdep): New.
433
434 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
435
436 PR binutils/26301
437 * configure: Regenerated.
438
439 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
440
441 PR binutils/26301
442 * configure: Regenerated.
443
444 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
445
446 * python/py-frame.c: Remove 'user-regs.h' include.
447 (frapy_read_register): Rewrite to make use of
448 gdbpy_parse_register_id.
449 * python/py-registers.c (gdbpy_parse_register_id): New function,
450 moved here from python/py-unwind.c. Updated the return type, and
451 also accepts register descriptor objects.
452 * python/py-unwind.c: Remove 'user-regs.h' include.
453 (pyuw_parse_register_id): Moved to python/py-registers.c.
454 (unwind_infopy_add_saved_register): Update to use
455 gdbpy_parse_register_id.
456 (pending_framepy_read_register): Likewise.
457 * python/python-internal.h (gdbpy_parse_register_id): Declare.
458
459 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
460
461 * python/py-registers.c: Add 'user-regs.h' include.
462 (register_descriptor_iter_find): New function.
463 (register_descriptor_iterator_object_methods): New static global
464 methods array.
465 (register_descriptor_iterator_object_type): Add pointer to methods
466 array.
467
468 2020-07-27 John Baldwin <jhb@FreeBSD.org>
469
470 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
471 for all architectures on FreeBSD 11.3 and later.
472
473 2020-07-27 Tom Tromey <tromey@adacore.com>
474
475 * gcore.h (load_corefile): Don't declare.
476
477 2020-07-27 Tom de Vries <tdevries@suse.de>
478
479 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
480 * config.in: Regenerate.
481 * configure: Regenerate.
482
483 2020-07-26 Eli Zaretskii <eliz@gnu.org>
484
485 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
486 ws2tcpip.h. When checking whether socklen_t type is defined, use
487 ws2tcpip.h if it is available and sys/socket.h isn't.
488 * configure: Regenerate.
489 * config.in: Regenerate.
490
491 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
492
493 PR fortran/23051
494 PR fortran/26139
495 * valops.c (value_ind): Pass address to
496 readjust_indirect_value_type.
497 * value.c (readjust_indirect_value_type): Make parameter
498 non-const, and add extra address parameter. Resolve original type
499 before using it.
500 * value.h (readjust_indirect_value_type): Update function
501 signature and comment.
502
503 2020-07-25 Tom de Vries <tdevries@suse.de>
504
505 PR symtab/26243
506 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
507 entries.
508
509 2020-07-24 Aaron Merey <amerey@redhat.com>
510
511 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
512 * configure: Rebuild.
513
514 2020-07-23 Kevin Buettner <kevinb@redhat.com>
515
516 PR corefiles/26294
517 * corelow.c (_initialize_corelow): Add period to help text
518 for "maintenance print core-file-backed-mappings".
519
520 2020-07-23 Pedro Alves <pedro@palves.net>
521
522 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
523 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
524 meanwhile.
525 * frame.c (frame_cache_generation, get_frame_cache_generation):
526 New.
527 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
528 (get_prev_frame_if_no_cycle): On exception, don't touch
529 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
530 * frame.h (get_frame_cache_generation): Declare.
531
532 2020-07-23 Tom de Vries <tdevries@suse.de>
533
534 PR tui/26282
535 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
536 New default constructor.
537
538 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
539
540 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
541 exclude non-statement entries.
542
543 2020-07-22 Kevin Buettner <kevinb@redhat.com>
544
545 * NEWS (New commands): Mention new command
546 "maintenance print core-file-backed-mappings".
547
548 2020-07-22 Kevin Buettner <kevinb@redhat.com>
549
550 * corelow.c (gdbcmd.h): Include.
551 (core_target::info_proc_mappings): New method.
552 (get_current_core_target): New function.
553 (maintenance_print_core_file_backed_mappings): New function.
554 (_initialize_corelow): Add core-file-backed-mappings to
555 "maint print" commands.
556
557 2020-07-22 Kevin Buettner <kevinb@redhat.com>
558
559 * linux-tdep.c (dump_note_entry_p): New function.
560 (linux_dump_mapping_p_ftype): New typedef.
561 (linux_find_memory_regions_full): Add new parameter,
562 should_dump_mapping_p.
563 (linux_find_memory_regions): Adjust call to
564 linux_find_memory_regions_full.
565 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
566 call to linux_find_memory_regions_full.
567
568 2020-07-22 Kevin Buettner <kevinb@redhat.com>
569
570 * corelow.c (solist.h, unordered_map): Include.
571 (class core_target): Add field m_core_file_mappings and
572 method build_file_mappings.
573 (core_target::core_target): Call build_file_mappings.
574 (core_target::~core_target): Free memory associated with
575 m_core_file_mappings.
576 (core_target::build_file_mappings): New method.
577 (core_target::xfer_partial): Use m_core_file_mappings
578 for memory transfers.
579 * linux-tdep.c (linux_read_core_file_mappings): New
580 function.
581 (linux_core_info_proc_mappings): Rewrite to use
582 linux_read_core_file_mappings.
583 (linux_init_abi): Register linux_read_core_file_mappings.
584
585 2020-07-22 Kevin Buettner <kevinb@redhat.com>
586
587 * arch-utils.c (default_read_core_file_mappings): New function.
588 * arch-utils.c (default_read_core_file_mappings): Declare.
589 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
590 * gdbarch.h, gdbarch.c: Regenerate.
591
592 2020-07-22 Kevin Buettner <kevinb@redhat.com>
593
594 PR corefiles/25631
595 * corelow.c (core_target:xfer_partial): Revise
596 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
597 case after first checking the stratum beneath the core
598 target.
599 (has_all_memory): Return true.
600 * target.c (raw_memory_xfer_partial): Revise comment
601 regarding use of has_all_memory.
602
603 2020-07-22 Kevin Buettner <kevinb@redhat.com>
604
605 * exec.h (section_table_xfer_memory): Revise declaration,
606 replacing section name parameter with an optional callback
607 predicate.
608 * exec.c (section_table_xfer_memory): Likewise.
609 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
610 of section_table_xfer_memory.
611
612 2020-07-22 Tom Tromey <tromey@adacore.com>
613
614 * mi/mi-cmd-stack.c (list_args_or_locals): Use
615 lookup_symbol_search_name.
616
617 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
618
619 * python/py-registers.c (gdbpy_register_object_data_init): Remove
620 redundant local variable.
621 (gdbpy_get_register_descriptor): Extract descriptor vector as a
622 reference, not pointer, update code accordingly.
623
624 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
625 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
626
627 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
628 * jit.c (jit_breakpoint_re_set_internal): Use the
629 `skip_jit_symbol_lookup` field.
630
631 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
632 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
633
634 * jit.c (jit_read_descriptor): Define the descriptor address once,
635 use twice.
636 (jit_breakpoint_deleted): Move the declaration of the loop variable
637 `iter` into the loop header.
638 (jit_breakpoint_re_set_internal): Move the declaration of the local
639 variable `objf_data` to the first point of definition.
640 (jit_event_handler): Move the declaration of local variables
641 `code_entry`, `entry_addr`, and `objf` to their first point of use.
642 Rename `objf` to `jited`.
643
644 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
645
646 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
647 Remove.
648 * jit.c (get_jiter_objfile_data): Update.
649
650 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
651 Simon Marchi <simon.marchi@polymtl.ca>
652
653 * jit.c (struct jit_program_space_data): Remove.
654 (jit_program_space_key): Remove.
655 (jiter_objfile_data::~jiter_objfile_data): Remove program space
656 stuff.
657 (get_jit_program_space_data): Remove.
658 (jit_breakpoint_deleted): Iterate on all of the program space's
659 objfiles.
660 (jit_inferior_init): Likewise.
661 (jit_breakpoint_re_set_internal): Likewise. Also change return
662 type to void.
663 (jit_breakpoint_re_set): Pass current_program_space to
664 jit_breakpoint_re_set_internal.
665
666 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
667
668 * jit.h (struct jiter_objfile_data) <cached_code_address,
669 jit_breakpoint>: Move to here from ...
670 * jit.c (jit_program_space_data): ... here.
671 (jiter_objfile_data::~jiter_objfile_data): Update.
672 (jit_breakpoint_deleted): Update.
673 (jit_breakpoint_re_set_internal): Update.
674
675 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
676
677 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
678 checks.
679 (jit_read_descriptor): Remove NULL check.
680 (jit_event_handler): Add an assertion.
681
682 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
683
684 * jit.h (struct jit_objfile_data): Split into...
685 (struct jiter_objfile_data): ... this ...
686 (struct jited_objfile_data): ... and this.
687 * objfiles.h (struct objfile) <jit_data>: Remove.
688 <jiter_data, jited_data>: New fields.
689 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
690 (jiter_objfile_data::~jiter_objfile_data): ... this.
691 (get_jit_objfile_data): Rename to ...
692 (get_jiter_objfile_data): ... this.
693 (add_objfile_entry): Update.
694 (jit_read_descriptor): Use get_jiter_objfile_data.
695 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
696 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
697 (jit_inferior_exit_hook): Use objfile's jited_data field.
698
699 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
700
701 * jit.h: Forward-declare `struct minimal_symbol`.
702 (struct jit_objfile_data): Migrate to here from jit.c; also add a
703 constructor, destructor, and an objfile* field.
704 * jit.c (jit_objfile_data): Remove.
705 (struct jit_objfile_data): Migrate from here to jit.h.
706 (jit_objfile_data::~jit_objfile_data): New destructor
707 implementation with code moved from free_objfile_data.
708 (free_objfile_data): Delete.
709 (get_jit_objfile_data): Update to use the jit_data field of objfile.
710 (jit_find_objf_with_entry_addr): Ditto.
711 (jit_inferior_exit_hook): Ditto.
712 (_initialize_jit): Remove the call to
713 register_objfile_data_with_cleanup.
714 * objfiles.h (struct objfile) <jit_data>: New field.
715
716 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
717
718 * jit.h: Forward-declare `struct objfile`.
719 (jit_event_handler): Add a second parameter, the JITer objfile.
720 * jit.c (jit_read_descriptor): Change the signature to take the
721 JITer objfile as an argument instead of the jit_program_space_data.
722 (jit_inferior_init): Update the call to jit_read_descriptor.
723 (jit_event_handler): Use the new JITer objfile argument when calling
724 jit_read_descriptor.
725 * breakpoint.c (handle_jit_event): Update the call to
726 jit_event_handler to pass the JITer objfile.
727
728 2020-07-21 John Baldwin <jhb@FreeBSD.org>
729
730 * gdbarch.c: Regenerate.
731 * gdbarch.h: Regenerate.
732 * gdbarch.sh (handle_segmentation_fault): Remove method.
733 * infrun.c (handle_segmentation_fault): Remove.
734 (print_signal_received_reason): Remove call to
735 handle_segmentation_fault.
736
737 2020-07-21 John Baldwin <jhb@FreeBSD.org>
738
739 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
740 Rename to sparc64_linux_report_signal_info and add siggnal
741 argument.
742 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
743 instead of sparc64_linux_handle_segmentation_fault.
744
745 2020-07-21 John Baldwin <jhb@FreeBSD.org>
746
747 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
748 i386_linux_report_signal_info instead of
749 i386_linux_handle_segmentation_fault.
750 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
751 to i386_linux_report_signal_info and add siggnal argument.
752 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
753 of i386_linux_handle_segmentation_fault.
754 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
755 to i386_linux_report_signal_info and add siggnal argument.
756
757 2020-07-21 John Baldwin <jhb@FreeBSD.org>
758
759 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
760 hook if present.
761
762 2020-07-21 John Baldwin <jhb@FreeBSD.org>
763
764 * gdbarch.c: Regenerate.
765 * gdbarch.h: Regenerate.
766 * gdbarch.sh (report_signal_info): New method.
767 * infrun.c (print_signal_received_reason): Invoke gdbarch
768 report_signal_info hook if present.
769
770 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
771
772 * python/py-registers.c : Add 'unordered_map' include.
773 (gdbpy_new_reggroup): Renamed to...
774 (gdbpy_get_reggroup): ...this. Update to only create register
775 group descriptors when needed.
776 (gdbpy_reggroup_iter_next): Update.
777
778 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
779
780 * python/py-registers.c (gdbpy_register_object_data): New static
781 global.
782 (gdbpy_register_object_data_init): New function.
783 (gdbpy_new_register_descriptor): Renamed to...
784 (gdbpy_get_register_descriptor): ...this, and update to reuse
785 existing register descriptors where possible.
786 (gdbpy_register_descriptor_iter_next): Update.
787 (gdbpy_initialize_registers): Register new gdbarch data.
788
789 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
790
791 * linux-nat.c (stopped_pids): Make static.
792
793 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
794
795 PR ada/26235
796 * gdbtypes.c (ada_discrete_type_low_bound,
797 ada_discrete_type_high_bound): Handle undefined bounds.
798
799 2020-07-21 Kamil Rytarowski <n54@gmx.com>
800
801 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
802 declaration.
803 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
804 function.
805
806 2020-07-20 John Baldwin <jhb@FreeBSD.org>
807
808 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
809 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
810 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
811 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
812 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
813 method.
814
815 2020-07-20 Ludovic Courtès <ludo@gnu.org>
816
817 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
818 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
819 which are deprecated in Guile 3.0.
820 * configure.ac (try_guile_versions): Add "guile-3.0".
821 * configure (try_guile_versions): Regenerate.
822 * NEWS: Update entry.
823
824 2020-07-20 Ludovic Courtès <ludo@gnu.org>
825 Doug Evans <dje@google.com>
826
827 PR gdb/21104
828 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
829 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
830 USING_GUILE_BEFORE_2_2.
831 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
832 Change type to 'scm_t_port_type *'.
833 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
834 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
835 parameter and honor it. Update callers.
836 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
837 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
838 functions.
839 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
840 USING_GUILE_BEFORE_2_2.
841 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
842 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
843 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
844 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
845 and 'SCM_PORT_TYPE'.
846 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
847 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
848 (gdbscm_memory_port_read, gdbscm_memory_port_write)
849 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
850 [!USING_GUILE_BEFORE_2_2]: New functions.
851 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
852 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
853 'gdbscm_memory_port_read'.
854 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
855 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
856 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
857 function.
858 (ioscm_init_memory_port): Remove.
859 (ioscm_init_memory_port_stream): New function
860 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
861 function.
862 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
863 Return scm_from_uint (0).
864 (gdbscm_set_memory_port_read_buffer_size_x)
865 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
866 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
867 Return scm_from_uint (0).
868 (gdbscm_set_memory_port_write_buffer_size_x)
869 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
870 * configure.ac (try_guile_versions): Add "guile-2.2".
871 * configure: Regenerate.
872 * NEWS: Add entry.
873
874 2020-07-18 Tom Tromey <tom@tromey.com>
875
876 * linux-nat.c (linux_multi_process): Remove.
877 (linux_nat_target::supports_multi_process): Return true.
878
879 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
880
881 * arch/riscv.c (riscv_tdesc_cache): Change map type.
882 (riscv_lookup_target_description): Return pointer out of
883 unique_ptr.
884 * target-descriptions.c (allocate_target_description): Add
885 comment.
886 (target_desc_deleter::operator()): Likewise.
887 * target-descriptions.h (struct target_desc_deleter): Moved to
888 gdbsupport/tdesc.h.
889 (target_desc_up): Likewise.
890
891 2020-07-17 Tom Tromey <tromey@adacore.com>
892
893 * linux-nat.c (linux_nat_target::supports_non_stop)
894 (linux_nat_target::always_non_stop_p): Use "true".
895 (linux_nat_target::supports_disable_randomization): Use "true" and
896 "false".
897
898 2020-07-16 Caroline Tice <cmtice@google.com>
899
900 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
901 (RNGLIST_HEADER_SIZE64): New constant definition.
902 (struct dwop_section_names): Add rnglists_dwo.
903 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
904 (struct loclist_header): Rename to 'loclists_rnglists_header'.
905 (struct dwo_sections): Add rnglists field.
906 (read_attribut_reprocess): Add tag parameter.
907 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
908 (cu_debug_rnglists_section): New function (decl & definition).
909 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
910 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
911 die whose range is being checked; get rnglist section from
912 cu_debug_rnglists_section, to get from either objfile or dwo file as
913 appropriate. Add cases for DW_RLE_base_addressx,
914 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
915 the base address to DW_RLE_offset_pairs (not to all ranges), moving
916 test inside if-condition and updating complaint message.
917 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
918 dwarf2_rnglists_process.
919 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
920 dwarf2_ranges_process.
921 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
922 need_ranges_base and update comment appropriately. Also pass die tag
923 to dwarf2_ranges_read.
924 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
925 need_ranges_base and update comment appropriately. Also pass die tag
926 to dwarf2_ranges_process.
927 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
928 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
929 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
930 need_ranges_base and update comment appropriately. Also pass die tag
931 to read_attribute_reprocess and dwarf2_ranges_read.
932 (read_loclist_header): Rename function to read_loclists_rnglists_header,
933 and update function comment appropriately.
934 (read_loclist_index): Call read_loclists_rnglists_header instead of
935 read_loclist_header.
936 (read_rnglist_index): New function.
937 (read_attribute_reprocess): Add tag parameter. Add code for
938 DW_FORM_rnglistx, passing tag to read_rnglist_index.
939 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
940
941 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
942
943 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
944 being resolved.
945
946 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
947
948 * arch-utils.c (show_architecture): Update formatting of messages.
949
950 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
951
952 * gdbtypes.h (struct type) <bounds>: Handle array and string
953 types.
954 * ada-lang.c (assign_aggregate): Use type::bounds on
955 array/string type.
956 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
957 * c-varobj.c (c_number_of_children): Likewise.
958 (c_describe_child): Likewise.
959 * eval.c (evaluate_subexp_for_sizeof): Likewise.
960 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
961 (f_type_print_base): Likewise.
962 * f-valprint.c (f77_array_offset_tbl): Likewise.
963 (f77_get_upperbound): Likewise.
964 (f77_print_array_1): Likewise.
965 * guile/scm-type.c (gdbscm_type_range): Likewise.
966 * m2-typeprint.c (m2_array): Likewise.
967 (m2_is_long_set_of_type): Likewise.
968 * m2-valprint.c (get_long_set_bounds): Likewise.
969 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
970 * python/py-type.c (typy_range): Likewise.
971 * rust-lang.c (rust_internal_print_type): Likewise.
972 * type-stack.c (type_stack::follow_types): Likewise.
973 * valarith.c (value_subscripted_rvalue): Likewise.
974 * valops.c (value_cast): Likewise.
975
976 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
977
978 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
979 callers to use the equivalent accessor methods.
980
981 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
982
983 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
984 (struct type) <bit_stride>: New method.
985 (TYPE_BIT_STRIDE): Remove.
986 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
987
988 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
989
990 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
991 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
992 callers to use the equivalent accessor methods instead.
993
994 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
995
996 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
997 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
998 callers to use the equivalent accessor methods instead.
999
1000 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1001
1002 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1003 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1004 to use dynamic_prop::kind.
1005
1006 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1007
1008 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1009 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1010 to get the bound property's kind and check against
1011 PROP_UNDEFINED.
1012
1013 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1014
1015 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1016 all callers to use type::range_bounds followed by
1017 dynamic_prop::{low,high}.
1018
1019 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1020
1021 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1022 const_val, set_const_val, baton, set_locexpr, set_loclist,
1023 set_addr_offset, variant_parts, set_variant_parts,
1024 original_type, set_original_type>: New methods.
1025 <kind>: Rename to...
1026 <m_kind>: ... this. Update all users to use the new methods
1027 instead.
1028 <data>: Rename to...
1029 <m_data>: ... this. Update all users to use the new methods
1030 instead.
1031
1032 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1033
1034 * gdbtypes.c (get_discrete_bounds): Return failure if
1035 the range type's bounds are not both defined and constant
1036 values.
1037 (get_array_bounds): Update comment. Remove undefined bound check.
1038
1039 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1040
1041 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1042 the type::bounds method directly.
1043
1044 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1045
1046 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1047 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1048 are used to set the range type's bounds to use set_bounds.
1049
1050 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1051
1052 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1053
1054 2020-07-10 Pedro Alves <pedro@palves.net>
1055
1056 * gdbthread.h (inferior_ref): Define.
1057 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1058 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1059 * thread.c
1060 (scoped_restore_current_thread::restore):
1061 Adjust to gdb::ref_ptr.
1062 (scoped_restore_current_thread::~scoped_restore_current_thread):
1063 Remove manual decref handling.
1064 (scoped_restore_current_thread::scoped_restore_current_thread):
1065 Adjust to use
1066 inferior_ref::new_reference/thread_info_ref::new_reference.
1067 Incref the thread before calling get_frame_id instead of after.
1068 Let TARGET_CLOSE_ERROR propagate.
1069
1070 2020-07-10 Pedro Alves <pedro@palves.net>
1071
1072 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1073 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1074 NOT_AVAILABLE_ERROR.
1075 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1076 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1077
1078 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1079 Pedro Alves <pedro@palves.net>
1080
1081 PR gdb/26199
1082 * infrun.c (threads_are_resumed_pending_p): Delete.
1083 (do_target_wait): Remove threads_are_executing and
1084 threads_are_resumed_pending_p checks from the inferior_matches
1085 lambda. Update comments.
1086
1087 2020-07-10 Pedro Alves <pedro@palves.net>
1088
1089 PR gdb/26199
1090 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1091 executing threads.
1092
1093 2020-07-10 Pedro Alves <pedro@palves.net>
1094
1095 PR gdb/26199
1096 * infrun.c (handle_no_resumed): Handle multiple targets.
1097
1098 2020-07-10 Pedro Alves <pedro@palves.net>
1099
1100 PR gdb/26199
1101 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1102 target_is_async_p.
1103
1104 2020-07-10 Pedro Alves <pedro@palves.net>
1105
1106 PR gdb/26199
1107 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1108 threads, not all threads.
1109
1110 2020-07-10 Pedro Alves <pedro@palves.net>
1111
1112 PR gdb/26199
1113 * remote.c (remote_target::open_1): Pass remote target pointer as
1114 data to create_async_event_handler.
1115 (remote_async_inferior_event_handler): Mark async event handler
1116 before returning if the remote target still has either pending
1117 events or unacknowledged notifications.
1118
1119 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1120
1121 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1122 declaration.
1123 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1124 function.
1125
1126 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1127
1128 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1129 inferior_ptid.
1130
1131 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1132
1133 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1134 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1135 AT_FREEBSD_PS_STRINGS.
1136
1137 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1138
1139 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1140 of debugfile path on Windows.
1141
1142 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1143
1144 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1145 argument to 'data'.
1146
1147 2020-07-08 Tom Tromey <tromey@adacore.com>
1148
1149 * ada-lang.c (ada_exception_message_1): Use read_memory.
1150
1151 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1152
1153 PR python/22748
1154 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1155 special handling for inline frames.
1156 * findvar.c (value_of_register_lazy): Skip inline frames when
1157 creating lazy register values.
1158 * frame.c (frame_id_computed_p): Delete definition.
1159 * frame.h (frame_id_computed_p): Delete declaration.
1160
1161 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1162
1163 * NEWS: Mention additions to Python API.
1164 * python/py-arch.c (archpy_register_groups): New function.
1165 (arch_object_methods): Add 'register_groups' method.
1166 * python/py-registers.c (reggroup_iterator_object): New struct.
1167 (reggroup_object): New struct.
1168 (gdbpy_new_reggroup): New function.
1169 (gdbpy_reggroup_to_string): New function.
1170 (gdbpy_reggroup_name): New function.
1171 (gdbpy_reggroup_iter): New function.
1172 (gdbpy_reggroup_iter_next): New function.
1173 (gdbpy_new_reggroup_iterator): New function
1174 (gdbpy_initialize_registers): Register new types.
1175 (reggroup_iterator_object_type): Define new Python type.
1176 (gdbpy_reggroup_getset): New static global.
1177 (reggroup_object_type): Define new Python type.
1178 * python/python-internal.h
1179
1180 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1181
1182 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1183 * python/py-arch.c (archpy_registers): New function.
1184 (arch_object_methods): Add 'registers' method.
1185 * python/py-registers.c: New file.
1186 * python/python-internal.h
1187 (gdbpy_new_register_descriptor_iterator): Declare.
1188 (gdbpy_initialize_registers): Declare.
1189 * python/python.c (do_start_initialization): Call
1190 gdbpy_initialize_registers.
1191 * NEWS: Mention additions to the Python API.
1192
1193 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1194
1195 * NEWS: Mention new Python API method.
1196 * python/py-unwind.c (pending_framepy_architecture): New function.
1197 (pending_frame_object_methods): Add architecture method.
1198
1199 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1200
1201 * gdbarch.c: Regenerate.
1202 * gdbarch.h: Regenerate.
1203 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1204 (gdbarch_data): Use internal_error for the case where
1205 deprecated_set_gdbarch_data was originally needed.
1206 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1207 and use passed in obstack.
1208 (libunwind_frame_set_descr): Should no longer get back NULL from
1209 gdbarch_data.
1210 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1211 type.
1212 * user-regs.c (user_regs_init): Update parameters, and use passed
1213 in obstack.
1214 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1215 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1216
1217 2020-07-06 Tom de Vries <tdevries@suse.de>
1218
1219 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1220 End-Of-Sequence in lte_is_less_than.
1221 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1222 "gdb: Don't reorder line table entries too much when sorting".
1223
1224 2020-07-06 Tom de Vries <tdevries@suse.de>
1225
1226 PR tui/26205
1227 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1228
1229 2020-07-05 Tom de Vries <tdevries@suse.de>
1230
1231 PR build/26187
1232 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1233 std::uncaught_exceptions instead of deprecated
1234 std::uncaught_exception.
1235
1236 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1237
1238 * macroexp.h (macro_stringify): Return
1239 gdb::unique_xmalloc_ptr<char>.
1240 * macroexp.c (macro_stringify): Likewise.
1241 * macrotab.c (fixup_definition): Update.
1242
1243 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1244
1245 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1246 (lex_one_token): Update.
1247 * macroexp.c (struct macro_buffer) <release>: Return
1248 gdb::unique_xmalloc_ptr<char>.
1249 (macro_stringify): Update.
1250 (macro_expand): Update.
1251 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1252 * macroexp.h (macro_expand_next): Likewise.
1253
1254 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1255
1256 * macroexp.h (macro_lookup_ftype): Remove.
1257 (macro_expand, macro_expand_once, macro_expand_next): Remove
1258 lookup function parameters, add scope parameter.
1259 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1260 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1261 * macroscope.h (standard_macro_lookup): Change parameter type
1262 to macro_scope.
1263 * macroscope.c (standard_macro_lookup): Likewise.
1264 * c-exp.y (lex_one_token): Update.
1265 * macrocmd.c (macro_expand_command): Likewise.
1266 (macro_expand_once_command): Likewise.
1267
1268 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1269
1270 * inf-loop.c (inferior_event_handler): Remove client_data param.
1271 * inf-loop.h (inferior_event_handler): Likewise.
1272 * infcmd.c (step_1): Adjust.
1273 * infrun.c (proceed): Adjust.
1274 (fetch_inferior_event): Remove client_data param.
1275 (infrun_async_inferior_event_handler): Adjust.
1276 * infrun.h (fetch_inferior_event): Remove `void *` param.
1277 * linux-nat.c (handle_target_event): Adjust.
1278 * record-btrace.c (record_btrace_handle_async_inferior_event):
1279 Adjust.
1280 * record-full.c (record_full_async_inferior_event_handler):
1281 Adjust.
1282 * remote.c (remote_async_inferior_event_handler): Adjust.
1283
1284 2020-07-01 Tom Tromey <tom@tromey.com>
1285
1286 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1287 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1288
1289 2020-07-01 Tom Tromey <tom@tromey.com>
1290
1291 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1292 tui_gen_win_info.
1293 (tui_win_info::make_window): Merge with
1294 tui_gen_win_info::make_window.
1295 (tui_win_info::make_visible): Move from tui_gen_win_info.
1296 * tui/tui-win.c (tui_win_info::max_width): Move from
1297 tui_gen_win_info.
1298 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1299 type.
1300 <window_factory>: Likewise.
1301 * tui/tui-layout.c (tui_win_info::resize): Move from
1302 tui_gen_win_info.
1303 (make_standard_window): Change return type.
1304 (get_locator_window, tui_get_window_by_name): Likewise.
1305 (tui_layout_window::apply): Remove a cast.
1306 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1307 (struct tui_win_info): Merge with tui_gen_win_info.
1308 (struct tui_gen_win_info): Remove.
1309
1310 2020-07-01 Tom Tromey <tom@tromey.com>
1311
1312 * tui/tui-stack.h (struct tui_locator_window): Derive from
1313 tui_win_info.
1314 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1315 <can_box>: New method.
1316
1317 2020-07-01 Tom Tromey <tom@tromey.com>
1318
1319 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1320
1321 2020-07-01 Tom Tromey <tom@tromey.com>
1322
1323 * tui/tui-regs.c (tui_data_window::display_registers_from)
1324 (tui_data_window::display_registers_from)
1325 (tui_data_window::first_data_item_displayed)
1326 (tui_data_window::delete_data_content_windows): Update.
1327 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1328 Remove.
1329 (tui_data_window::check_register_values): Update.
1330 (tui_data_item_window::rerender): Add parameters. Update.
1331 (tui_data_item_window::refresh_window): Remove.
1332 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1333 virtual.
1334 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1335 tui_gen_win_info.
1336 <refresh_window, max_height, min_height>: Remove.
1337 <rerender>: Add parameters.
1338 <x, y, visible>: New members.
1339 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1340 <m_item_width>: New member.
1341
1342 2020-07-01 Tom Tromey <tom@tromey.com>
1343
1344 * tui/tui-regs.c (tui_data_window::show_register_group)
1345 (tui_data_window::check_register_values): Update.
1346 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1347 from item_no.
1348
1349 2020-07-01 Tom Tromey <tom@tromey.com>
1350
1351 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1352 useless "if".
1353
1354 2020-07-01 Tom Tromey <tom@tromey.com>
1355
1356 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1357 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1358
1359 2020-07-01 Tom Tromey <tom@tromey.com>
1360
1361 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1362 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1363 (struct tui_line_or_address): Move from tui-data.h.
1364 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1365 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1366 (tui_cmd_window, tui_source_window_base, tui_source_window)
1367 (tui_disasm_window): Don't declare.
1368 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1369 to tui-winsource.h.
1370 (SINGLE_KEY): Move to tui-stack.c.
1371
1372 2020-07-01 Tom Tromey <tom@tromey.com>
1373
1374 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1375 std::string.
1376 * tui/tui-regs.c (class tab_expansion_file): New.
1377 (tab_expansion_file::write): New method.
1378 (tui_register_format): Change return type. Use
1379 tab_expansion_file.
1380 (tui_get_register, tui_data_window::display_registers_from)
1381 (tui_data_item_window::rerender): Update.
1382 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1383 * tui/tui-io.c (tui_expand_tabs): Remove.
1384
1385 2020-07-01 Tom Tromey <tom@tromey.com>
1386
1387 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1388
1389 2020-07-01 Fangrui Song <maskray@google.com>
1390
1391 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1392
1393 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1394
1395 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1396 forms for DW_AT_associated and DW_AT_allocated attributes,
1397 which is already checked in function attr_to_dynamic_prop.
1398
1399 2020-06-30 Tom Tromey <tromey@adacore.com>
1400
1401 * dwarf2/read.c (quirk_rust_enum): Correctly call
1402 alloc_rust_variant for default-less enum.
1403
1404 2020-06-30 Tom Tromey <tromey@adacore.com>
1405
1406 PR build/26183:
1407 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1408 gdb::to_string.
1409
1410 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1411
1412 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1413 * gdbarch.h: Re-generate.
1414
1415 2020-06-28 Tom Tromey <tom@tromey.com>
1416
1417 * command.h (cmd_types): Remove.
1418 (cmd_type): Don't declare.
1419 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1420 typedef.
1421 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1422 * cli/cli-decode.c (cmd_type): Remove.
1423
1424 2020-06-27 Pedro Alves <palves@redhat.com>
1425
1426 * fork-child.c (prefork_hook): Adjust.
1427 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1428 Delete.
1429 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1430 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1431 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1432 Remove declarations.
1433 (struct inferior) <set_tty, tty>: New methods.
1434 (struct inferior) <terminal>: Rename to ...
1435 (struct inferior) <m_terminal>: ... this and make private.
1436 * main.c (captured_main_1): Adjust.
1437 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1438 (mi_cmd_inferior_tty_show): Adjust.
1439 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1440 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1441
1442 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1443
1444 * configure.ac: Add --enable-libctf: handle --disable-static
1445 properly.
1446 * acinclude.m4: sinclude ../config/enable.m4.
1447 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1448 (LIBCTF): Substitute in.
1449 (CTF_DEPS): New, likewise.
1450 (CLIBS): libctf needs symbols from libbfd: move earlier.
1451 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1452 flags.
1453 * ctfread.c: Surround in ENABLE_LIBCTF.
1454 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1455 * configure: Regenerate.
1456 * config.in: Likewise.
1457
1458 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1459
1460 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1461
1462 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1463
1464 * inferior.h (struct inferior) <terminal>: Change type to
1465 gdb::unique_xmalloc_ptr<char>.
1466 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1467 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1468 field, adjust to unique pointer.
1469 (get_inferior_io_terminal): Adjust to unique pointer.
1470
1471 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1472
1473 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1474 registers, not just the known core set of registers.
1475
1476 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1477
1478 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1479 fflags, frm, and fcsr registers.
1480 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1481 restore groups.
1482 (riscv_tdesc_unknown_reg): New function.
1483 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1484 tdesc_use_registers.
1485 * riscv-tdep.h (struct gdbarch_tdep): Add
1486 unknown_csrs_first_regnum, unknown_csrs_count,
1487 duplicate_fflags_regnum, duplicate_frm_regnum, and
1488 duplicate_fcsr_regnum fields.
1489
1490 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1491
1492 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1493 callback, use the callback (when not null) to help number unknown
1494 registers.
1495 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1496 (tdesc_use_registers): Add extra parameter to declaration.
1497
1498 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1499
1500 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1501 in the file.
1502 (class riscv_pending_register_alias): Likewise.
1503 (riscv_register_feature::register_info): Change 'required_p' field
1504 to 'required', and change its type. Add 'check' member function.
1505 (riscv_register_feature::register_info::check): Define new member
1506 function.
1507 (riscv_xreg_feature): Change initialisation of 'required' field.
1508 (riscv_freg_feature): Likewise.
1509 (riscv_virtual_feature): Likewise.
1510 (riscv_csr_feature): Likewise.
1511 (riscv_check_tdesc_feature): Take extra parameter, the csr
1512 tdesc_feature, rewrite the function to use the new
1513 riscv_register_feature::register_info::check function.
1514 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1515
1516 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1517
1518 * features/Makefile: Remove all references to the deleted files
1519 below.
1520 * features/riscv/32bit-csr.c: Deleted.
1521 * features/riscv/32bit-csr.xml: Deleted.
1522 * features/riscv/64bit-csr.c: Deleted.
1523 * features/riscv/64bit-csr.xml: Deleted.
1524 * features/riscv/rebuild-csr-xml.sh: Deleted.
1525
1526 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1527
1528 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1529 whitespace error for declaration of names member variable.
1530 (struct riscv_register_feature): Add new prefer_first_name member
1531 variable, and fix whitespace error in declaration of registers.
1532 (riscv_xreg_feature): Initialize prefer_first_name field.
1533 (riscv_freg_feature): Likewise.
1534 (riscv_virtual_feature): Likewise.
1535 (riscv_csr_feature): Likewise.
1536 (riscv_register_name): Expand on comments. Remove register name
1537 modifications for CSR and virtual registers.
1538
1539 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1540
1541 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1542 errors.
1543
1544 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1545
1546 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1547 riscv-opc.h.
1548 (class riscv_pending_register_alias): New class.
1549 (riscv_check_tdesc_feature): Take vector of pending aliases and
1550 populate it as appropriate.
1551 (riscv_setup_register_aliases): Delete.
1552 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1553 to riscv_check_tdesc_feature in all cases. Use the vector to
1554 create the register aliases.
1555
1556 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1557
1558 * sol2-tdep.c (sol2_static_transform_name): Remove.
1559 (sol2_init_abi): Don't register it.
1560 * gdbarch.sh (static_transform_name): Remove.
1561 * gdbarch.c, gdbarch.h: Regenerate.
1562
1563 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1564 gdbarch_static_transform_name.
1565 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1566 * stabsread.c (define_symbol) <'X'>: Remove.
1567 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1568 handling.
1569 <'V'>: Likewise.
1570 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1571 <'S'>: Remove call to gdbarch_static_transform_name.
1572
1573 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1574
1575 * procfs.c (procfs_pre_trace): New function.
1576 (procfs_target::create_inferior): Pass it to fork_inferior.
1577
1578 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1579
1580 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1581 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1582 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1583 sol2-tdep.o, sparc-sol2-tdep.o.
1584 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1585 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1586 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1587 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1588
1589 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1590
1591 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1592 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1593 Call sol2_init_abi.
1594 Remove calls to set_gdbarch_skip_solib_resolver,
1595 set_gdbarch_core_pid_to_str.
1596 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1597 (i386_sol2_static_transform_name): Remove.
1598 (i386_sol2_init_abi): Call sol2_init_abi.
1599 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1600 set_gdbarch_static_transform_name,
1601 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1602 Use sol2_sigtramp_p.
1603 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1604 (sol2_sigtramp_p): New function.
1605 (sol2_static_transform_name): New function.
1606 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1607 (sol2_init_abi): New function.
1608 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1609 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1610 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1611 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1612 (sparc_sol2_static_transform_name): Remove.
1613 (sparc32_sol2_init_abi): Call sol2_init_abi.
1614 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1615 set_gdbarch_static_transform_name,
1616 set_gdbarch_skip_solib_resolver,
1617 set_gdbarch_core_pid_to_str.
1618 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1619 (sparc_sol2_static_transform_name): Remove
1620 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1621 call sol2_sigtramp_p.
1622 (sparc64_sol2_init_abi): Call sol2_init_abi.
1623 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1624 set_gdbarch_static_transform_name,
1625 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1626
1627 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1628
1629 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1630 * exec.c (validate_exec_file): If from_tty, set both
1631 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1632 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1633 and from_tty, unconditionally ask a confirmation.
1634
1635 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1636
1637 * target-descriptions.c (tdesc_architecture_name): Protect against
1638 NULL pointer dereference.
1639 (maint_print_xml_tdesc_cmd): New function.
1640 (_initialize_target_descriptions): Register new 'maint print
1641 xml-tdesc' command and give it the filename completer.
1642 * NEWS: Mention new 'maint print xml-tdesc' command.
1643
1644 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1645
1646 * target-descriptions.c (class tdesc_compatible_info): New class.
1647 (struct target_desc): Change type of compatible vector.
1648 (tdesc_compatible_p): Update for change in type of
1649 target_desc::compatible.
1650 (tdesc_compatible_info_list): New function.
1651 (tdesc_compatible_info_arch_name): New function.
1652 (tdesc_add_compatible): Update for change in type of
1653 target_desc::compatible.
1654 (print_c_tdesc::visit_pre): Likewise.
1655
1656 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1657
1658 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1659 whitespace to underscore.
1660 (maint_print_c_tdesc_cmd): Use fake filename for target
1661 descriptions that came from the target.
1662 (_initialize_target_descriptions): Add filename command completion
1663 for 'maint print c-tdesc'.
1664
1665 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1666
1667 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1668 lines.
1669
1670 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1671
1672 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1673 lines.
1674 (dwarf2_find_location_expression): Likewise.
1675 (call_site_parameter_matches): Likewise.
1676 (dwarf2_compile_expr_to_ax): Likewise.
1677 (disassemble_dwarf_expression): Likewise.
1678 (loclist_describe_location): Likewise.
1679
1680 2020-06-23 Pedro Alves <palves@redhat.com>
1681
1682 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1683 progspace-and-thread.h. Include scoped-mock-context.h instead.
1684 (register_to_value_test): Use scoped_mock_context.
1685 * regcache.c: Include "scoped-mock-context.h".
1686 (cooked_read_test): Don't error out if a target is already pushed.
1687 Use scoped_mock_context. Adjust.
1688 * scoped-mock-context.h: New file.
1689
1690 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1691
1692 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1693 initializer.
1694 (ada_language::is_string_type_p): New member function.
1695 * c-lang.c (c_language_data): Delete la_is_string_type_p
1696 initializer.
1697 (cplus_language_data): Likewise.
1698 (asm_language_data): Likewise.
1699 (minimal_language_data): Likewise.
1700 * d-lang.c (d_language_data): Likewise.
1701 * f-lang.c (f_is_string_type_p): Delete function, implementation
1702 moved to f_language::is_string_type_p.
1703 (f_language_data): Delete la_is_string_type_p initializer.
1704 (f_language::is_string_type_p): New member function,
1705 implementation from f_is_string_type_p.
1706 * go-lang.c (go_is_string_type_p): Delete function, implementation
1707 moved to go_language::is_string_type_p.
1708 (go_language_data): Delete la_is_string_type_p initializer.
1709 (go_language::is_string_type_p): New member function,
1710 implementation from go_is_string_type_p.
1711 * language.c (language_defn::is_string_type_p): Define new member
1712 function.
1713 (default_is_string_type_p): Make static, add comment copied from
1714 header file.
1715 (unknown_language_data): Delete la_is_string_type_p initializer.
1716 (unknown_language::is_string_type_p): New member function.
1717 (auto_language_data): Delete la_is_string_type_p initializer.
1718 (auto_language::is_string_type_p): New member function.
1719 * language.h (language_data): Delete la_is_string_type_p field.
1720 (language_defn::is_string_type_p): Declare new function.
1721 (default_is_string_type_p): Delete desclaration, move comment to
1722 definition.
1723 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1724 moved to m2_language::is_string_type_p.
1725 (m2_language_data): Delete la_is_string_type_p initializer.
1726 (m2_language::is_string_type_p): New member function,
1727 implementation from m2_is_string_type_p.
1728 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1729 initializer.
1730 * opencl-lang.c (opencl_language_data): Likewise.
1731 * p-lang.c (pascal_is_string_type_p): Delete function,
1732 implementation moved to pascal_language::is_string_type_p.
1733 (pascal_language_data): Delete la_is_string_type_p initializer.
1734 (pascal_language::is_string_type_p): New member function,
1735 implementation from pascal_is_string_type_p.
1736 * rust-lang.c (rust_is_string_type_p): Delete function,
1737 implementation moved to rust_language::is_string_type_p.
1738 (rust_language_data): Delete la_is_string_type_p initializer.
1739 (rust_language::is_string_type_p): New member function,
1740 implementation from rust_is_string_type_p.
1741 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1742 is_string_type_p.
1743
1744 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1745
1746 * ada-lang.c (ada_language_data): Delete la_print_typedef
1747 initializer.
1748 (ada_language::print_typedef): New member function.
1749 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1750 (cplus_language_data): Likewise.
1751 (asm_language_data): Likewise.
1752 (minimal_language_data): Likewise.
1753 * d-lang.c (d_language_data): Likewise.
1754 * f-lang.c (f_language_data): Likewise.
1755 (f_language::print_typedef): New member function.
1756 * go-lang.c (go_language_data): Delete la_print_typedef
1757 initializer.
1758 * language.c (language_defn::print_typedef): Define member
1759 function.
1760 (unknown_language_data): Delete la_print_typedef initializer.
1761 (unknown_language::print_typedef): New member function.
1762 (auto_language_data): Delete la_print_typedef initializer.
1763 (auto_language::print_typedef): New member function.
1764 * language.h (language_data): Delete la_print_typedef field.
1765 (language_defn::print_typedef): Declare new member function.
1766 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1767 (default_print_typedef): Delete declaration.
1768 * m2-lang.c (m2_language_data): Delete la_print_typedef
1769 initializer.
1770 (m2_language::print_typedef): New member function.
1771 * objc-lang.c (objc_language_data): Delete la_print_typedef
1772 initializer.
1773 * opencl-lang.c (opencl_language_data): Likewise.
1774 * p-lang.c (pascal_language_data): Likewise.
1775 (pascal_language::print_typedef): New member function.
1776 * rust-lang.c (rust_print_typedef): Delete function,
1777 implementation moved to rust_language::print_typedef.
1778 (rust_language): Delete la_print_typedef initializer.
1779 (rust_language::print_typedef): New member function,
1780 implementation from rust_print_typedef.
1781 * typeprint.c (default_print_typedef): Delete.
1782
1783 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1784
1785 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1786 (ada_language::printstr): New member function.
1787 * c-lang.c (c_language_data): Delete la_printstr initializer.
1788 (cplus_language_data): Likewise.
1789 (asm_language_data): Likewise.
1790 (minimal_language_data): Likewise.
1791 * d-lang.c (d_language_data): Likewise.
1792 * f-lang.c (f_printstr): Rename to f_language::printstr.
1793 (f_language_data): Delete la_printstr initializer.
1794 (f_language::printstr): New member function, implementation from
1795 f_printstr.
1796 * go-lang.c (go_language_data): Delete la_printstr initializer.
1797 * language.c (language_defn::printstr): Define new member
1798 function.
1799 (unk_lang_printstr): Delete.
1800 (unknown_language_data): Delete la_printstr initializer.
1801 (unknown_language::printstr): New member function.
1802 (auto_language_data): Delete la_printstr initializer.
1803 (auto_language::printstr): New member function.
1804 * language.h (language_data): Delete la_printstr field.
1805 (language_defn::printstr): Declare new member function.
1806 (LA_PRINT_STRING): Update call to printstr.
1807 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1808 (m2_language_data): Delete la_printstr initializer.
1809 (m2_language::printstr): New member function, implementation from
1810 m2_printstr.
1811 * objc-lang.c (objc_language_data): Delete la_printstr
1812 initializer.
1813 * opencl-lang.c (opencl_language_data): Likewise.
1814 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1815 (pascal_language_data): Delete la_printstr initializer.
1816 (pascal_language::printstr): New member function, implementation
1817 from pascal_printstr.
1818 * p-lang.h (pascal_printstr): Delete declaration.
1819 * rust-lang.c (rust_printstr): Update header comment.
1820 (rust_language_data): Delete la_printstr initializer.
1821 (rust_language::printstr): New member function.
1822
1823 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1824
1825 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1826 (ada_language::printchar): New member function.
1827 * c-lang.c (c_language_data): Delete la_printchar initializer.
1828 (cplus_language_data): Likewise.
1829 (asm_language_data): Likewise.
1830 (minimal_language_data): Likewise.
1831 * d-lang.c (d_language_data): Likewise.
1832 * f-lang.c (f_printchar): Rename to f_language::printchar.
1833 (f_language_data): Delete la_printchar initializer.
1834 (f_language::printchar): New member function, implementation from
1835 f_printchar.
1836 * go-lang.c (go_language_data): Delete la_printchar initializer.
1837 * language.c (unk_lang_printchar): Delete.
1838 (language_defn::printchar): Define new member function.
1839 (unknown_language_data): Delete la_printchar initializer.
1840 (unknown_language::printchar): New member function.
1841 (auto_language_data): Delete la_printchar initializer.
1842 (auto_language::printchar): New member function.
1843 * language.h (language_data): Delete la_printchar field.
1844 (language_defn::printchar): Declare new member function.
1845 (LA_PRINT_CHAR): Update call to printchar.
1846 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1847 (m2_language::printchar): New member function.
1848 * objc-lang.c (objc_language_data): Delete la_printchar
1849 initializer.
1850 * opencl-lang.c (opencl_language_data): Likewise.
1851 * p-lang.c (pascal_language_data): Delete la_printchar
1852 initializer.
1853 (pascal_language::printchar): New member function.
1854 * rust-lang.c (rust_printchar): Rename to
1855 rust_language::printchar.
1856 (rust_language_data): Delete la_printchar initializer.
1857 (rust_language::printchar): New member function, implementation
1858 from rust_printchar.
1859
1860 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1861
1862 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1863 (ada_language_data): Delete la_emitchar initializer.
1864 (ada_language::emitchar): New member function, implementation from
1865 emit_char.
1866 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1867 (cplus_language_data): Likewise.
1868 (asm_language_data): Likewise.
1869 (minimal_language_data): Likewise.
1870 * d-lang.c (d_language_data): Likewise.
1871 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1872 (f_language_data): Delete la_emitchar initializer.
1873 (f_language::emitchar): New member function, implementation from
1874 f_emit_char.
1875 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1876 * language.c (unk_lang_emit_char): Delete.
1877 (language_defn::emitchar): New member function definition.
1878 (unknown_language_data): Delete la_emitchar initializer.
1879 (unknown_language::emitchar): New member function.
1880 (auto_language_data): Delete la_emitchar initializer.
1881 (auto_language::emitchar): New member function.
1882 * language.h (language_data): Delete la_emitchar field.
1883 (language_defn::emitchar): New member field declaration.
1884 (LA_EMIT_CHAR): Update call to emitchar.
1885 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1886 (m2_language_data): Delete la_emitchar initializer.
1887 (m2_language::emitchar): New member function, implementation from
1888 m2_emit_char.
1889 * objc-lang.c (objc_language_data): Delete la_emitchar
1890 initializer.
1891 * opencl-lang.c (opencl_language_data): Likewise.
1892 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1893 (pascal_language_data): Delete la_emitchar initializer.
1894 (pascal_language::emitchar): New member function, implementation
1895 from pascal_emit_char.
1896 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1897 (rust_language_data): Delete la_emitchar initializer.
1898 (rust_language::emitchar): New member function, implementation
1899 from rust_emitchar.
1900
1901 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1902
1903 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1904 (ada_language_data): Delete la_post_parser initializer.
1905 (ada_language::post_parser): New member function.
1906 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1907 (cplus_language_data): Likewise.
1908 (asm_language_data): Likewise.
1909 (minimal_language_data): Likewise.
1910 * d-lang.c (d_language_data): Likewise.
1911 * f-lang.c (f_language_data): Likewise.
1912 * go-lang.c (go_language_data): Likewise.
1913 * language.c (unknown_language_data): Likewise.
1914 (auto_language_data): Likewise.
1915 * language.h (language_data): Delete la_post_parser field.
1916 (language_defn::post_parser): New member function.
1917 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1918 * objc-lang.c (objc_language_data): Likewise.
1919 * opencl-lang.c (opencl_language_data): Likewise.
1920 * p-lang.c (pascal_language_data): Likewise.
1921 * parse.c (parse_exp_in_context): Update call to post_parser.
1922 (null_post_parser): Delete definition.
1923 * parser-defs.h (null_post_parser): Delete declaration.
1924 * rust-lang.c (rust_language_data): Delete la_post_parser
1925 initializer.
1926
1927 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1928
1929 * ada-lang.c (parse): Rename to ada_language::parser.
1930 (ada_language_data): Delete la_parser initializer.
1931 (ada_language::parser): New member function, implementation from
1932 parse.
1933 * c-lang.c (c_language_data): Delete la_parser initializer.
1934 (cplus_language_data): Likewise.
1935 (asm_language_data): Likewise.
1936 (minimal_language_data): Likewise.
1937 * d-lang.c (d_language_data): Likewise.
1938 (d_language::parser): New member function.
1939 * f-lang.c (f_language_data): Delete la_parser initializer.
1940 (f_language::parser): New member function.
1941 * go-lang.c (go_language_data): Delete la_parser initializer.
1942 (go_language::parser): New member function.
1943 * language.c (unk_lang_parser): Delete.
1944 (language_defn::parser): Define new member function.
1945 (unknown_language_data): Delete la_parser initializer.
1946 (unknown_language::parser): New member function.
1947 (auto_language_data): Delete la_parser initializer.
1948 (auto_language::parser): New member function.
1949 * language.h (language_data): Delete la_parser field.
1950 (language_defn::parser): Declare new member function.
1951 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1952 (m2_language::parser): New member function.
1953 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1954 * opencl-lang.c (opencl_language_data): Likewise.
1955 * p-lang.c (pascal_language_data): Likewise.
1956 (pascal_language::parser): New member function.
1957 * parse.c (parse_exp_in_context): Update call to parser.
1958 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1959 (rust_language::parser): New member function.
1960
1961 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1962
1963 * top.c (print_gdb_configuration): Print --with-python-libdir
1964 configuration value.
1965
1966 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1967
1968 * NEWS: Mention change to the alias command.
1969
1970 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1971
1972 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1973 (alias_command_completer)
1974 (make_alias_options_def_group): New functions.
1975 (alias_opts, alias_option_defs): New struct and array.
1976 (alias_usage_error): Update usage.
1977 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1978 Use option framework.
1979 (_initialize_cli_cmds): Update alias command help.
1980 Update aliases command help.
1981 (show_user):
1982 Add NULL for new default_args lookup_cmd argument.
1983 (valid_command_p): Rename to validate_aliased_command.
1984 Add NULL for new default_args lookup_cmd argument. Verify that the
1985 aliased_command has no default args.
1986 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1987 (lookup_cmd_1, lookup_cmd): New argument default_args.
1988 (add_alias_cmd):
1989 Add NULL for new default_args lookup_cmd argument.
1990 (print_help_for_command): Show default args under the layout
1991 alias some_alias = some_aliased_cmd some_alias_default_arg.
1992 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1993 xfree default_args in destructor.
1994 * cli/cli-script.c (process_next_line, do_define_command):
1995 Add NULL for new default_args lookup_cmd argument.
1996 * command.h: Declare new default_args argument in lookup_cmd
1997 and lookup_cmd_1.
1998 * completer.c (complete_line_internal_1):
1999 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2000 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2001 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2002 Likewise.
2003 * infcmd.c (_initialize_infcmd): Likewise.
2004 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2005 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2006 * python/py-param.c (add_setshow_generic): Likewise.
2007 * remote.c (_initialize_remote): Likewise.
2008 * top.c (execute_command): Prepend default_args if command has some.
2009 (set_verbose):
2010 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2011 * tracepoint.c (validate_actionline, encode_actions_1):
2012 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2013
2014 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2015
2016 * jit.c (jit_read_descriptor): Use bool as the return type.
2017 (jit_breakpoint_re_set_internal): Use bool as the return type.
2018 Invert the return value logic; return true if the jit breakpoint
2019 has been successfully initialized.
2020 (jit_inferior_init): Update the call to
2021 jit_breakpoint_re_set_internal.
2022
2023 2020-06-22 Pedro Alves <palves@redhat.com>
2024
2025 PR gdb/25939
2026 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2027 Use the current inferior instead. Don't return
2028 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2029 wait again.
2030 * sol-thread.c (sol_thread_target::wait): Don't reference
2031 inferior_ptid.
2032 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2033 (sol_update_thread_list_callback): Use the current inferior's pid
2034 instead of inferior_ptid.
2035
2036 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2037
2038 * procfs.c: Cleanup many comments.
2039
2040 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2041 (AFTER_WATCHFLAG): Replace by value.
2042
2043 (MAIN_PROC_NAME_FORMAT): Inline ...
2044 (create_procinfo): ... here.
2045
2046 (procfs_debug_inferior): Remove SYS_exec handling.
2047 (syscall_is_exec): Likewise.
2048 (procfs_set_exec_trap): Likewise.
2049
2050 (syscall_is_lwp_exit): Inline in callers.
2051 (syscall_is_exit): Likewise.
2052 (syscall_is_exec): Likewise.
2053 (syscall_is_lwp_create): Likewise.
2054
2055 (invalidate_cache): Remove #if 0 code.
2056
2057 (make_signal_thread_runnable): Remove.
2058 (procfs_target::resume): Remove #if 0 code.
2059
2060 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2061
2062 PR gdb/25939
2063 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2064 call ...
2065 (procfs_target::create_inferior): ... here.
2066
2067 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2068
2069 * exec.c (validate_exec_file): Ensure the build-id is up to
2070 date by calling reopen_exec_file (that checks file timestamp
2071 to decide to re-read the file).
2072
2073 2020-06-18 Pedro Alves <palves@redhat.com>
2074
2075 PR gdb/25412
2076 * gdbthread.h (delete_thread, delete_thread_silent)
2077 (find_thread_ptid): Update comments.
2078 * thread.c (current_thread_): New global.
2079 (is_current_thread): Move higher, and reimplement.
2080 (inferior_thread): Reimplement.
2081 (set_thread_exited): Use bool. Add assertions.
2082 (add_thread_silent): Simplify thread-reuse handling by always
2083 calling delete_thread.
2084 (delete_thread): Remove intro comment.
2085 (find_thread_ptid): Skip exited threads.
2086 (switch_to_thread_no_regs): Write to current_thread_.
2087 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2088 INFERIOR_PTID. Clear current_thread_.
2089
2090 2020-06-18 Pedro Alves <palves@redhat.com>
2091
2092 * aix-thread.c (pd_update): Use switch_to_thread.
2093
2094 2020-06-18 Pedro Alves <palves@redhat.com>
2095
2096 * ravenscar-thread.c (ravenscar_thread_target): Update.
2097 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2098 (ravenscar_thread_target::add_active_thread): ... this. Don't
2099 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2100 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2101
2102 2020-06-18 Pedro Alves <palves@redhat.com>
2103
2104 * nat/windows-nat.c (current_windows_thread): Remove.
2105 * nat/windows-nat.h (current_windows_thread): Remove.
2106 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2107 Adjust.
2108 (display_selectors): Adjust to fetch the current
2109 windows_thread_info based on inferior_ptid.
2110 (fake_create_process): No longer write to current_windows_thread.
2111 (windows_nat_target::get_windows_debug_event):
2112 Don't set inferior_ptid or current_windows_thread.
2113 (windows_nat_target::wait): Adjust to not rely on
2114 current_windows_thread.
2115 (do_initial_windows_stuff): Now a method of windows_nat_target.
2116 Switch to the last_ptid thread.
2117 (windows_nat_target::attach): Adjust.
2118 (windows_nat_target::detach): Use switch_to_no_thread instead of
2119 writing to inferior_ptid directly.
2120 (windows_nat_target::create_inferior): Adjust.
2121
2122 2020-06-18 Pedro Alves <palves@redhat.com>
2123
2124 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2125
2126 2020-06-18 Pedro Alves <palves@redhat.com>
2127
2128 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2129 after creating it, instead of writing to inferior_ptid. Don't
2130 write to inferior_ptid.
2131
2132 2020-06-18 Pedro Alves <palves@redhat.com>
2133
2134 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2135
2136 2020-06-18 Pedro Alves <palves@redhat.com>
2137
2138 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2139 it, instead of writing to inferior_ptid.
2140
2141 2020-06-18 Pedro Alves <palves@redhat.com>
2142
2143 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2144 to inferior_ptid.
2145
2146 2020-06-18 Pedro Alves <palves@redhat.com>
2147
2148 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2149 instead of writing to inferior_ptid directly.
2150
2151 2020-06-18 Pedro Alves <palves@redhat.com>
2152
2153 * corelow.c (core_target::close): Use switch_to_no_thread instead
2154 of writing to inferior_ptid directly.
2155 (add_to_thread_list, core_target_open): Use switch_to_thread
2156 instead of writing to inferior_ptid directly.
2157
2158 2020-06-18 Pedro Alves <palves@redhat.com>
2159
2160 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2161 inferior_ptid.
2162 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2163 inferior_ptid.
2164 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2165 inferior_ptid directly.
2166 (darwin_nat_target::init_thread_list): Switch to thread, instead
2167 of writing to inferior_ptid.
2168 (darwin_nat_target::attach): Don't write to inferior_ptid.
2169 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2170
2171 2020-06-18 Pedro Alves <palves@redhat.com>
2172
2173 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2174 thread.
2175 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2176 Instead use switch_to_thread.
2177 (gnu_nat_target::detach): Use switch_to_no_thread
2178 instead of writing to inferior_ptid directly. Used passed-in
2179 inferior instead of looking up the inferior by pid.
2180
2181 2020-06-18 Pedro Alves <palves@redhat.com>
2182
2183 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2184 inferior_ptid.
2185
2186 2020-06-18 Pedro Alves <palves@redhat.com>
2187
2188 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2189 inferior_ptid.
2190 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2191 thread.
2192 (nto_procfs_target::detach): Avoid referencing
2193 inferior_ptid. Use switch_to_no_thread instead of writing to
2194 inferior_ptid directly.
2195 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2196 instead of writing to inferior_ptid directly.
2197 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2198 to thread.
2199
2200 2020-06-18 Pedro Alves <palves@redhat.com>
2201
2202 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2203 after creating it, instead of writing to inferior_ptid.
2204 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2205 to inferior_ptid directly.
2206 (gdbsim_target::wait): Don't write to inferior_ptid.
2207
2208 2020-06-18 Pedro Alves <palves@redhat.com>
2209
2210 * remote.c (remote_target::remote_notice_new_inferior): Use
2211 switch_to_thread instead of writing to inferior_ptid directly.
2212 (remote_target::add_current_inferior_and_thread): Use
2213 switch_to_no_thread instead of writing to inferior_ptid directly.
2214 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2215 and switch_to_thread instead of using set_current_inferior or
2216 writing to inferior_ptid directly.
2217
2218 2020-06-18 Pedro Alves <palves@redhat.com>
2219
2220 * tracectf.c (ctf_target_open): Switch to added thread instead of
2221 writing to inferior_ptid directly.
2222 (ctf_target::close): Use switch_to_no_thread instead of writing to
2223 inferior_ptid directly.
2224
2225 2020-06-18 Pedro Alves <palves@redhat.com>
2226
2227 * tracefile-tfile.c (tfile_target_open): Don't write to
2228 inferior_ptid directly, instead switch to added thread.
2229 (tfile_target::close): Use switch_to_no_thread instead of writing
2230 to inferior_ptid directly.
2231
2232 2020-06-18 Pedro Alves <palves@redhat.com>
2233
2234 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2235 (procfs_target::detach): Use switch_to_no_thread
2236 instead of writing to inferior_ptid directly.
2237 (do_attach): Change return type to void. Switch to the added
2238 thread.
2239 (procfs_target::create_inferior): Switch to the added thread.
2240 (procfs_do_thread_registers): Don't write to inferior_ptid.
2241
2242 2020-06-18 Pedro Alves <palves@redhat.com>
2243
2244 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2245 of writing to inferior_ptid.
2246 (scoped_restore_exited_inferior): Delete.
2247 (handle_vfork_child_exec_or_exit): Simplify using
2248 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2249 instead of writing to inferior_ptid.
2250 (THREAD_STOPPED_BY): Delete.
2251 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2252 (thread_stopped_by_hw_breakpoint): Delete.
2253 (save_waitstatus): Use
2254 scoped_restore_current_thread+switch_to_thread, and call
2255 target_stopped_by_watchpoint instead of
2256 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2257 instead of thread_stopped_by_sw_breakpoint, and
2258 target_stopped_by_hw_breakpoint instead of
2259 thread_stopped_by_hw_breakpoint.
2260 (handle_inferior_event)
2261 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2262 inferior_ptid directly, nor
2263 set_current_inferior/set_current_program_space. Use
2264 switch_to_thread / switch_to_inferior_no_thread instead.
2265
2266 2020-06-18 Pedro Alves <palves@redhat.com>
2267
2268 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2269 instead of writing to inferior_ptid.
2270
2271 2020-06-18 Pedro Alves <palves@redhat.com>
2272
2273 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2274 added thread.
2275 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2276 to the added thread.
2277 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2278 instead of writing to inferior_ptid.
2279
2280 2020-06-18 Pedro Alves <palves@redhat.com>
2281
2282 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2283 (register_to_value_test): Mock a program_space too. Heap-allocate
2284 the address space. Don't write to inferior_ptid. Use
2285 switch_to_thread instead.
2286
2287 2020-06-18 Pedro Alves <palves@redhat.com>
2288
2289 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2290 Delete.
2291 (find_signalled_thread()): New, factored out from
2292 linux_make_corefile_notes and adjusted to handle exited threads.
2293 (linux_make_corefile_notes): Adjust to use the new
2294 find_signalled_thread.
2295
2296 2020-06-18 Pedro Alves <palves@redhat.com>
2297
2298 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2299 of saving/restoring inferior_ptid.
2300
2301 2020-06-17 Tom Tromey <tom@tromey.com>
2302
2303 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2304 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2305 declare.
2306 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2307
2308 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2309
2310 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2311 of partial symtabs.
2312
2313 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2314
2315 * regformats/reg-arm.dat: Remove.
2316 * regformats/reg-bfin.dat: Remove.
2317 * regformats/reg-cris.dat: Remove.
2318 * regformats/reg-crisv32.dat: Remove.
2319 * regformats/reg-m32r.dat: Remove.
2320 * regformats/reg-tilegx.dat: Remove.
2321 * regformats/reg-tilegx32.dat: Remove.
2322
2323 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2324
2325 * features/Makefile (WHICH): Remove arm files.
2326 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2327 * regformats/arm/arm-with-neon.dat: Remove.
2328 * regformats/arm/arm-with-vfpv2.dat: Remove.
2329 * regformats/arm/arm-with-vfpv3.dat: Remove.
2330
2331 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2332
2333 * features/Makefile (XMLTOC): Remove rx.xml.
2334
2335 2020-06-17 Pedro Alves <palves@redhat.com>
2336
2337 * gdbthread.h (thread_control_state) <trap_expected> Update
2338 comments.
2339
2340 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2341
2342 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2343 ada_language::lookup_symbol_nonlocal.
2344 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2345 (ada_language::lookup_symbol_nonlocal): New member function,
2346 implementation from ada_lookup_symbol_nonlocal.
2347 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2348 initializer.
2349 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2350 initializer.
2351 (cplus_language::lookup_symbol_nonlocal): New member function.
2352 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2353 (minimal_language_data) Likewise.
2354 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2355 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2356 initializer.
2357 (d_language::lookup_symbol_nonlocal): New member function.
2358 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2359 initializer.
2360 (f_language::lookup_symbol_nonlocal): New member function.
2361 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2362 initializer.
2363 * language.c (unknown_language_data): Likewise.
2364 (auto_language_data): Likewise.
2365 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2366 field.
2367 (language_defn::lookup_symbol_nonlocal): New member function.
2368 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2369 initializer.
2370 * objc-lang.c (objc_language_data): Likewise.
2371 * opencl-lang.c (opencl_language_data): Likewise.
2372 * p-lang.c (pascal_language_data): Likewise.
2373 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2374 rust_language::lookup_symbol_nonlocal.
2375 (rust_language_data): Delete la_lookup_symbol_nonlocal
2376 initializer.
2377 (rust_language::lookup_symbol_nonlocal): New member function,
2378 implementation from rust_lookup_symbol_nonlocal.
2379 * symtab.c (lookup_symbol_aux): Update call to
2380 lookup_symbol_nonlocal.
2381 (basic_lookup_symbol_nonlocal): Rename to...
2382 (language_defn::lookup_symbol_nonlocal): ...this, and update
2383 header comment. Remove language_defn parameter, and replace with
2384 uses of `this'.
2385 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2386
2387 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2388
2389 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2390 initializer.
2391 (ada_language::value_print_inner): New member function.
2392 * c-lang.c (c_language_data): Delete la_value_print_inner
2393 initializer.
2394 (cplus_language_data): Likewise.
2395 (asm_language_data): Likewise.
2396 (minimal_language_data): Likewise.
2397 * d-lang.c (d_language_data): Likewise.
2398 (d_language::value_print_inner): New member function.
2399 * f-lang.c (f_language_data): Delete la_value_print_inner
2400 initializer.
2401 (f_language::value_print_inner): New member function.
2402 * f-lang.h (f_value_print_innner): Rename to...
2403 (f_value_print_inner): ...this (note spelling of 'inner').
2404 * f-valprint.c (f_value_print_innner): Rename to...
2405 (f_value_print_inner): ...this (note spelling of 'inner').
2406 * go-lang.c (go_language_data): Delete la_value_print_inner
2407 initializer.
2408 (go_language::value_print_inner): New member function.
2409 * language.c (language_defn::value_print_inner): Define new member
2410 function.
2411 (unk_lang_value_print_inner): Delete.
2412 (unknown_language_data): Delete la_value_print_inner initializer.
2413 (unknown_language::value_print_inner): New member function.
2414 (auto_language_data): Delete la_value_print_inner initializer.
2415 (auto_language::value_print_inner): New member function.
2416 * language.h (language_data): Delete la_value_print_inner field.
2417 (language_defn::value_print_inner): Delcare new member function.
2418 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2419 initializer.
2420 (m2_language::value_print_inner): New member function.
2421 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2422 initializer.
2423 * opencl-lang.c (opencl_language_data): Likewise.
2424 * p-lang.c (pascal_language_data): Likewise.
2425 (pascal_language::value_print_inner): New member function.
2426 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2427 initializer.
2428 (rust_language::value_print_inner): New member function.
2429 * valprint.c (do_val_print): Update call to value_print_inner.
2430
2431 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2432
2433 * ada-lang.c (ada_language_data): Delete la_value_print
2434 initializer.
2435 (ada_language::value_print): New member function.
2436 * c-lang.c (c_language_data): Delete la_value_print initializer.
2437 (cplus_language_data): Likewise.
2438 (asm_language_data): Likewise.
2439 (minimal_language_data): Likewise.
2440 * d-lang.c (d_language_data): Likewise.
2441 * f-lang.c (f_language_data): Likewise.
2442 * go-lang.c (go_language_data): Likewise.
2443 * language.c (unk_lang_value_print): Delete.
2444 (language_defn::value_print): Define new member function.
2445 (unknown_language_data): Delete la_value_print initializer.
2446 (unknown_language::value_print): New member function.
2447 (auto_language_data): Delete la_value_print initializer.
2448 (auto_language::value_print): New member function.
2449 * language.h (language_data): Delete la_value_print field.
2450 (language_defn::value_print): Declare new member function.
2451 (LA_VALUE_PRINT): Update call to value_print.
2452 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2453 * objc-lang.c (objc_language_data): Likewise.
2454 * opencl-lang.c (opencl_language_data): Likewise.
2455 * p-lang.c (pascal_language_data): Likewise.
2456 (pascal_language::value_print): New member function.
2457 * rust-lang.c (rust_language_data): Delete la_value_print
2458 initializer.
2459
2460 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2461
2462 * ada-lang.c (ada_watch_location_expression): Rename to
2463 ada_language::watch_location_expression.
2464 (ada_language_data): Delete la_watch_location_expression
2465 initializer.
2466 (ada_language::watch_location_expression): New member function,
2467 implementation from ada_watch_location_expression.
2468 * breakpoint.c (watch_command_1): Update call to
2469 watch_location_expression.
2470 * c-lang.c (c_watch_location_expression): Rename to
2471 language_defn::watch_location_expression.
2472 (c_language_data): Delete la_watch_location_expression
2473 initializer.
2474 (cplus_language_data): Likewise.
2475 (asm_language_data): Likewise.
2476 (minimal_language_data): Likewise.
2477 * c-lang.h (c_watch_location_expression): Delete declaration.
2478 * d-lang.c (d_language_data): Delete la_watch_location_expression
2479 initializer.
2480 * f-lang.c (f_language_data): Likewise.
2481 * go-lang.c (go_language_data): Likewise.
2482 * language.c (language_defn::watch_location_expression): Member
2483 function implementation from c_watch_location_expression.
2484 (unknown_language_data): Delete la_watch_location_expression
2485 initializer.
2486 (auto_language_data): Likewise.
2487 * language.h (language_data): Delete la_watch_location_expression
2488 field.
2489 (language_defn::watch_location_expression): Declare new member
2490 function.
2491 * m2-lang.c (m2_language_data): Delete
2492 la_watch_location_expression initializer.
2493 * objc-lang.c (objc_language_data): Likewise.
2494 * opencl-lang.c (opencl_language_data): Likewise.
2495 * p-lang.c (pascal_language_data): Likewise.
2496 * rust-lang.c (rust_watch_location_expression): Rename to
2497 rust_language::watch_location_expression.
2498 (rust_language_data): Delete la_watch_location_expression
2499 initializer.
2500 (rust_language::watch_location_expression): New member function,
2501 implementation from rust_watch_location_expression.
2502
2503 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2504
2505 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2506 ada_language::collect_symbol_completion_matches.
2507 (ada_language_data): Delete la_collect_symbol_completion_matches
2508 initializer.
2509 (ada_language::collect_symbol_completion_matches): New member
2510 function, implementation from
2511 ada_collect_symbol_completion_matches.
2512 * c-lang.c (c_language_data): Delete
2513 la_collect_symbol_completion_matches initializer.
2514 (cplus_language_data): Likewise.
2515 (asm_language_data): Likewise.
2516 (minimal_language_data): Likewise.
2517 * d-lang.c (d_language_data): Likewise.
2518 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2519 f_language::collect_symbol_completion_matches.
2520 (f_language_data): Delete la_collect_symbol_completion_matches
2521 initializer.
2522 (f_language::collect_symbol_completion_matches) New member
2523 function, implementation from f_collect_symbol_completion_matches.
2524 * go-lang.c (go_language_data): Delete
2525 la_collect_symbol_completion_matches initializer.
2526 * language.c (unknown_language_data): Likewise.
2527 (auto_language_data): Likewise.
2528 * language.h (language_data): Delete
2529 la_collect_symbol_completion_matches field.
2530 (language_defn::collect_symbol_completion_matches): New member
2531 function.
2532 * m2-lang.c (m2_language_data): Delete
2533 la_collect_symbol_completion_matches initializer.
2534 * objc-lang.c (objc_language_data): Likewise.
2535 * opencl-lang.c (opencl_language_data): Likewise.
2536 * p-lang.c (pascal_language_data): Likewise.
2537 * rust-lang.c (rust_language_data): Likewise.
2538 * symtab.c (default_collect_symbol_completion_matches): Delete.
2539 (collect_symbol_completion_matches): Update call to
2540 collect_symbol_completion_matches.
2541 (collect_symbol_completion_matches_type): Likewise.
2542 * symtab.h (default_collect_symbol_completion_matches): Delete
2543 declaration.
2544
2545 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2546
2547 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2548 (ada_language_data): Delete la_word_break_characters initializer.
2549 (ada_language::word_break_characters): New member function.
2550 * c-lang.c (c_language_data): Delete la_word_break_characters
2551 initializer.
2552 (cplus_language_data): Likewise.
2553 (asm_language_data): Likewise.
2554 (minimal_language_data): Likewise.
2555 * completer.c: Update global comment.
2556 (advance_to_expression_complete_word_point): Update call to
2557 word_break_characters.
2558 (complete_files_symbols): Likewise.
2559 (complete_line_internal_1): Likewise.
2560 (default_completer_handle_brkchars): Likewise.
2561 (skip_quoted_chars): Likewise.
2562 * d-lang.c (d_language_data): Delete la_word_break_characters
2563 initializer.
2564 * f-lang.c (f_word_break_characters): Delete.
2565 (f_language_data): Delete la_word_break_characters initializer.
2566 (f_language::word_break_characters): New member function.
2567 * go-lang.c (go_language_data): Delete la_word_break_characters
2568 initializer.
2569 * language.c (unknown_language_data): Likewise.
2570 (auto_language_data): Likewise.
2571 * language.h (default_word_break_characters): Move declaration to
2572 earlier in the file.
2573 (language_data): Delete la_word_break_characters field.
2574 (language_defn::word_break_characters): New member function.
2575 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2576 initializer.
2577 * objc-lang.c (objc_language_data): Likewise.
2578 * opencl-lang.c (opencl_language_data): Likewise.
2579 * p-lang.c (pascal_language_data): Likewise.
2580 * rust-lang.c (rust_language_data): Likewise.
2581
2582 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2583
2584 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2585 (ada_language_data): Delete la_get_symbol_name_matcher
2586 initializer.
2587 (language_defn::get_symbol_name_matcher_inner): New member
2588 function.
2589 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2590 initializer.
2591 (cplus_language_data): Likewise.
2592 (cplus_language::get_symbol_name_matcher_inner): New member
2593 function.
2594 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2595 (minimal_language_data): Likewise.
2596 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2597 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2598 initializer.
2599 * dictionary.c (iter_match_first_hashed): Update call to
2600 get_symbol_name_matcher.
2601 (iter_match_next_hashed): Likewise.
2602 (iter_match_next_linear): Likewise.
2603 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2604 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2605 initializer.
2606 (f_language::get_symbol_name_matcher_inner): New member function.
2607 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2608 initializer.
2609 * language.c (default_symbol_name_matcher): Update header comment,
2610 make static.
2611 (language_defn::get_symbol_name_matcher): New definition.
2612 (language_defn::get_symbol_name_matcher_inner): Likewise.
2613 (get_symbol_name_matcher): Delete.
2614 (unknown_language_data): Delete la_get_symbol_name_matcher
2615 initializer.
2616 (auto_language_data): Likewise.
2617 * language.h (language_data): Delete la_get_symbol_name_matcher
2618 field.
2619 (language_defn::get_symbol_name_matcher): New member function.
2620 (language_defn::get_symbol_name_matcher_inner): Likewise.
2621 (default_symbol_name_matcher): Delete declaration.
2622 * linespec.c (find_methods): Update call to
2623 get_symbol_name_matcher.
2624 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2625 initializer.
2626 * minsyms.c (lookup_minimal_symbol): Update call to
2627 get_symbol_name_matcher.
2628 (iterate_over_minimal_symbols): Likewise.
2629 * objc-lang.c (objc_language_data): Delete
2630 la_get_symbol_name_matcher initializer.
2631 * opencl-lang.c (opencl_language_data): Likewise.
2632 * p-lang.c (pascal_language_data): Likewise.
2633 * psymtab.c (psymbol_name_matches): Update call to
2634 get_symbol_name_matcher.
2635 * rust-lang.c (rust_language_data): Delete
2636 la_get_symbol_name_matcher initializer.
2637 * symtab.c (symbol_matches_search_name): Update call to
2638 get_symbol_name_matcher.
2639 (compare_symbol_name): Likewise.
2640
2641 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2642
2643 * ada-lang.c (ada_language_data): Delete la_compute_program
2644 initializer.
2645 * c-lang.c (c_language_data): Likewise.
2646 (c_language::compute_program): New member function.
2647 (cplus_language_data): Delete la_compute_program initializer.
2648 (cplus_language::compute_program): New member function.
2649 (asm_language_data): Delete la_compute_program initializer.
2650 (minimal_language_data): Likewise.
2651 * c-lang.h (c_compute_program): Update comment.
2652 (cplus_compute_program): Likewise.
2653 * compile/compile-c-support.c (c_compute_program): Likewise.
2654 (cplus_compute_program): Likewise.
2655 * compile/compile.c (compile_to_object): Update call to
2656 la_compute_program.
2657 * d-lang.c (d_language_data): Delete la_compute_program
2658 initializer.
2659 * f-lang.c (f_language_data): Likewise.
2660 * go-lang.c (go_language_data): Likewise.
2661 * language.c (unknown_language_data): Likewise.
2662 (auto_language_data): Likewise.
2663 * language.h (language_data): Delete la_compute_program field.
2664 (language_defn::compute_program): New member function.
2665 * m2-lang.c (m2_language_data): Delete la_compute_program
2666 initializer.
2667 * objc-lang.c (objc_language_data): Likewise.
2668 * opencl-lang.c (opencl_language_data): Likewise.
2669 * p-lang.c (pascal_language_data): Likewise.
2670 * rust-lang.c (rust_language_data): Likewise.
2671
2672 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2673
2674 * ada-lang.c (ada_language_data) Delete
2675 la_class_name_from_physname initializer.
2676 * c-lang.c (c_language_data): Likewise.
2677 (cplus_language_data): Likewise.
2678 (cplus_language::class_name_from_physname): New member function.
2679 (asm_language_data): Delete la_class_name_from_physname
2680 initializer.
2681 (minimal_language_data): Likewise.
2682 * d-lang.c (d_language_data): Likewise.
2683 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2684 method on language_defn class.
2685 (guess_full_die_structure_name): Likewise.
2686 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2687 initializer.
2688 * go-lang.c (go_language_data): Likewise.
2689 * language.c (language_class_name_from_physname): Delete.
2690 (unk_lang_class_name): Delete.
2691 (unknown_language_data): Delete la_class_name_from_physname
2692 initializer.
2693 (auto_language_data): Likewise.
2694 * language.h (language_data): Delete la_class_name_from_physname
2695 field.
2696 (language_defn::class_name_from_physname): New function.
2697 (language_class_name_from_physname): Delete declaration.
2698 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2699 initializer.
2700 * objc-lang.c (objc_language_data): Likewise.
2701 * opencl-lang.c (opencl_language_data): Likewise.
2702 * p-lang.c (pascal_language_data): Likewise.
2703 * rust-lang.c (rust_language_data): Likewise.
2704
2705 2020-06-16 Tom Tromey <tom@tromey.com>
2706
2707 * tui/tui-data.h (STATUS_NAME): New macro.
2708 * tui/tui-layout.c (tui_remove_some_windows)
2709 (initialize_known_windows, tui_register_window)
2710 (tui_layout_split::remove_windows, initialize_layouts)
2711 (tui_new_layout_command): Don't use hard-coded window names.
2712
2713 2020-06-16 Tom Tromey <tom@tromey.com>
2714
2715 PR tui/25348:
2716 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2717 tui_initialize_readline. Only run once. Call rl_initialize.
2718 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2719 tui_initialize_readline.
2720 * tui/tui-io.c (tui_setup_io): Call
2721 tui_ensure_readline_initialized.
2722 * tui/tui-interp.c (tui_interp::init): Update.
2723
2724 2020-06-16 Tom Tromey <tom@tromey.com>
2725
2726 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2727 Also preserve the status window.
2728
2729 2020-06-16 Tom Tromey <tom@tromey.com>
2730
2731 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2732 where m_window==nullptr.
2733
2734 2020-06-15 Tom Tromey <tromey@adacore.com>
2735
2736 * windows-nat.c (windows_nat::handle_output_debug_string):
2737 Update.
2738 (windows_nat::handle_ms_vc_exception): Update.
2739 * target.h (target_read_string): Change API.
2740 * target.c (target_read_string): Change API.
2741 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2742 Update.
2743 * solib-frv.c (frv_current_sos): Update.
2744 * solib-dsbt.c (dsbt_current_sos): Update.
2745 * solib-darwin.c (darwin_current_sos): Update.
2746 * linux-thread-db.c (inferior_has_bug): Update.
2747 * expprint.c (print_subexp_standard): Update.
2748 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2749 (ada_exception_message_1): Update.
2750
2751 2020-06-15 Tom Tromey <tromey@adacore.com>
2752
2753 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2754
2755 2020-06-15 Tom Tromey <tromey@adacore.com>
2756
2757 * valprint.c (read_string): Update comment.
2758 * target.c (MIN): Remove.
2759 (target_read_string): Rewrite.
2760
2761 2020-06-15 Tom Tromey <tromey@adacore.com>
2762
2763 * corefile.c (read_memory_string): Remove.
2764 * ada-valprint.c (ada_value_print_ptr): Update.
2765 * ada-lang.h (ada_tag_name): Change return type.
2766 * ada-lang.c (type_from_tag): Update.
2767 (ada_tag_name_from_tsd): Change return type. Use
2768 target_read_string.
2769 (ada_tag_name): Likewise.
2770 * gdbcore.h (read_memory_string): Don't declare.
2771
2772 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2773
2774 * symtab.c (rbreak_command): Ignore Windows drive colon.
2775
2776 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2777
2778 * NEWS: Mention removed GDBserver host support.
2779
2780 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2781
2782 * features/riscv/rebuild-csr-xml.sh: Updated.
2783
2784 2020-06-11 Tom Tromey <tom@tromey.com>
2785
2786 PR gdb/18318:
2787 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2788
2789 2020-06-09 Jonny Grant <jg@jguk.org>
2790 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2791
2792 * main.c (captured_main_1): Don't print new line after help.
2793 (print_gdb_help): add mailing list and IRC channel information
2794 to --help. Add new lines between items in the footer. Remove
2795 quotes around bug url.
2796
2797 2020-06-11 Keith Seitz <keiths@redhat.com>
2798
2799 PR gdb/21356
2800 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2801 Resolve typedefs for type length calculations.
2802
2803 2020-06-10 Tom de Vries <tdevries@suse.de>
2804
2805 PR ada/24713
2806 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2807 (write_psymbols): Enable .gdb_index for ada.
2808 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2809 ada.
2810
2811 2020-06-10 Tom de Vries <tdevries@suse.de>
2812
2813 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2814 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2815 namei" instead of "const char *name" argument.
2816 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2817 dw2_symtab_iter_init.
2818
2819 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2820
2821 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2822 to use type::field and field::type instead.
2823
2824 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2825
2826 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2827 to use field::type instead.
2828
2829 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2830
2831 * gdbtypes.h (struct field) <type, set_type>: New methods.
2832 Rename `type` field to...
2833 <m_type>: ... this. Change references throughout to use type or
2834 set_type methods.
2835 (FIELD_TYPE): Use field::type. Change call sites that modify
2836 the field's type to use field::set_type instead.
2837
2838 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2839
2840 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2841 to use type::index_type instead.
2842
2843 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2844
2845 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2846 methods.
2847 (TYPE_INDEX_TYPE): Use type::index_type.
2848 * gdbtypes.c (create_array_type_with_stride): Likewise.
2849
2850 2020-06-07 Tom Tromey <tom@tromey.com>
2851
2852 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2853 parameter.
2854 (generic_value_print): Update.
2855
2856 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2857
2858 Revert commit 982a38f60b0.
2859 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2860
2861 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2862
2863 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2864 avoid use after free.
2865
2866 2020-06-05 Tom de Vries <tdevries@suse.de>
2867
2868 * NEWS: Fix typos.
2869
2870 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2871
2872 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2873 the per_bfd object.
2874 (dwarf2_read_debug_names): Likewise.
2875 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2876 object when re-using a per_bfd object with an index.
2877
2878 2020-06-03 Tom de Vries <tdevries@suse.de>
2879
2880 PR symtab/26046
2881 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2882 children for C++.
2883 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2884 DW_TAG_subprogram.
2885
2886 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2887
2888 * ada-lang.c (ada_language_data): Delete skip_trampoline
2889 initializer.
2890 * c-lang.c (c_language_data): Likewise.
2891 (cplus_language_data): Likewise.
2892 (cplus_language::skip_trampoline): New member function.
2893 (asm_language_data): Delete skip_trampoline initializer.
2894 (minimal_language_data): Likewise.
2895 * d-lang.c (d_language_data): Likewise.
2896 * f-lang.c (f_language_data): Likewise.
2897 * go-lang.c (go_language_data): Likewise.
2898 * language.c (unk_lang_trampoline): Delete function.
2899 (skip_language_trampoline): Update.
2900 (unknown_language_data): Delete skip_trampoline initializer.
2901 (auto_language_data): Likewise.
2902 * language.h (language_data): Delete skip_trampoline field.
2903 (language_defn::skip_trampoline): New function.
2904 * m2-lang.c (m2_language_data): Delete skip_trampoline
2905 initializer.
2906 * objc-lang.c (objc_skip_trampoline): Delete function, move
2907 implementation to objc_language::skip_trampoline.
2908 (objc_language_data): Delete skip_trampoline initializer.
2909 (objc_language::skip_trampoline): New member function with
2910 implementation from objc_skip_trampoline.
2911 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2912 initializer.
2913 * p-lang.c (pascal_language_data): Likewise.
2914 * rust-lang.c (rust_language_data): Likewise.
2915
2916 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2917
2918 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2919 (ada_language::demangle): New member function.
2920 * c-lang.c (c_language_data): Delete la_demangle initializer.
2921 (cplus_language_data): Delete la_demangle initializer.
2922 (cplus_language::demangle): New member function.
2923 (asm_language_data): Delete la_demangle initializer.
2924 (minimal_language_data): Delete la_demangle initializer.
2925 * d-lang.c (d_language_data): Delete la_demangle initializer.
2926 (d_language::demangle): New member function.
2927 * f-lang.c (f_language_data): Delete la_demangle initializer.
2928 (f_language::demangle): New member function.
2929 * go-lang.c (go_language_data): Delete la_demangle initializer.
2930 (go_language::demangle): New member function.
2931 * language.c (language_demangle): Update.
2932 (unk_lang_demangle): Delete.
2933 (unknown_language_data): Delete la_demangle initializer.
2934 (unknown_language::demangle): New member function.
2935 (auto_language_data): Delete la_demangle initializer.
2936 (auto_language::demangle): New member function.
2937 * language.h (language_data): Delete la_demangle field.
2938 (language_defn::demangle): New function.
2939 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2940 * objc-lang.c (objc_language_data): Delete la_demangle
2941 initializer.
2942 (objc_language::demangle): New member function.
2943 * opencl-lang.c (opencl_language_data): Delete la_demangle
2944 initializer.
2945 * p-lang.c (pascal_language_data): Likewise.
2946 * rust-lang.c (rust_language_data): Likewise.
2947 (rust_language::demangle): New member function.
2948
2949 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2950
2951 * ada-lang.c (ada_language_data): Delete la_print_type
2952 initializer.
2953 (ada_language::print_type): New member function.
2954 * c-lang.c (c_language_data): Delete la_print_type initializer.
2955 (c_language::print_type): New member function.
2956 (cplus_language_data): Delete la_print_type initializer.
2957 (cplus_language::print_type): New member function.
2958 (asm_language_data): Delete la_print_type initializer.
2959 (asm_language::print_type): New member function.
2960 (minimal_language_data): Delete la_print_type initializer.
2961 (minimal_language::print_type): New member function.
2962 * d-lang.c (d_language_data): Delete la_print_type initializer.
2963 (d_language::print_type): New member function.
2964 * f-lang.c (f_language_data): Delete la_print_type initializer.
2965 (f_language::print_type): New member function.
2966 * go-lang.c (go_language_data): Delete la_print_type initializer.
2967 (go_language::print_type): New member function.
2968 * language.c (unk_lang_print_type): Delete.
2969 (unknown_language_data): Delete la_print_type initializer.
2970 (unknown_language::print_type): New member function.
2971 (auto_language_data): Delete la_print_type initializer.
2972 (auto_language::print_type): New member function.
2973 * language.h (language_data): Delete la_print_type field.
2974 (language_defn::print_type): New function.
2975 (LA_PRINT_TYPE): Update.
2976 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2977 (m2_language::print_type): New member function.
2978 * objc-lang.c (objc_language_data): Delete la_print_type
2979 initializer.
2980 (objc_language::print_type): New member function.
2981 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2982 to opencl_language::print_type.
2983 (opencl_language_data): Delete la_print_type initializer.
2984 (opencl_language::print_type): New member function, implementation
2985 from opencl_print_type.
2986 * p-lang.c (pascal_language_data): Delete la_print_type
2987 initializer.
2988 (pascal_language::print_type): New member function.
2989 * rust-lang.c (rust_print_type): Delete, implementation moved to
2990 rust_language::print_type.
2991 (rust_language_data): Delete la_print_type initializer.
2992 (rust_language::print_type): New member function, implementation
2993 from rust_print_type.
2994
2995 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2996
2997 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2998 implementation moves to...
2999 (ada_language::sniff_from_mangled_name): ...here. Update return
3000 type.
3001 (ada_language_data): Delete la_sniff_from_mangled_name
3002 initializer.
3003 * c-lang.c (c_language_data): Likewise.
3004 (cplus_language_data): Likewise.
3005 (cplus_language::sniff_from_mangled_name): New member function,
3006 implementation taken from gdb_sniff_from_mangled_name.
3007 (asm_language_data): Delete la_sniff_from_mangled_name
3008 initializer.
3009 (minimal_language_data): Likewise.
3010 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3011 implementation moves to cplus_language::sniff_from_mangled_name.
3012 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3013 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3014 moves to...
3015 (d_language::sniff_from_mangled_name): ...here.
3016 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3017 * f-lang.c (f_language_data): Likewise.
3018 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3019 moves to...
3020 (go_language::sniff_from_mangled_name): ...here.
3021 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3022 * language.c (language_sniff_from_mangled_name): Delete.
3023 (unknown_language_data): Delete la_sniff_from_mangled_name
3024 initializer.
3025 (auto_language_data): Likewise.
3026 * language.h (language_data): Delete la_sniff_from_mangled_name
3027 field.
3028 (language_defn::sniff_from_mangled_name): New function.
3029 (language_sniff_from_mangled_name): Delete declaration.
3030 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3031 field.
3032 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3033 implementation moves to...
3034 (objc_language::sniff_from_mangled_name): ...here.
3035 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3036 * opencl-lang.c (opencl_language_data): Likewise.
3037 * p-lang.c (pascal_language_data): Likewise.
3038 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3039 implementation moves to...
3040 (rust_language::sniff_from_mangled_name): ...here.
3041 (rust_language_data): Delete la_sniff_from_mangled_name
3042 initializer.
3043 * symtab.c (symbol_find_demangled_name): Call
3044 sniff_from_mangled_name member function.
3045
3046 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3047
3048 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3049 initializer.
3050 * c-lang.c (c_language_data): Likewise.
3051 (cplus_language_data): Likewise.
3052 (cplus_language::search_name_hash): New member function.
3053 (asm_language_data): Delete la_search_name_hash initializer.
3054 (minimal_language_data): Likewise.
3055 * d-lang.c (d_language_data): Likewise.
3056 * dictionary.c (default_search_name_hash): Rename to...
3057 (language_defn::search_name_hash): ...this.
3058 * f-lang.c (f_language_data): Likewise.
3059 (f_language::search_name_hash): New member function.
3060 * go-lang.c (go_language_data): Delete la_search_name_hash
3061 initializer.
3062 * language.c (unknown_language_data): Likewise.
3063 (auto_language_data): Likewise.
3064 * language.h (struct language_data): Delete la_search_name_hash
3065 field.
3066 (language_defn::search_name_hash): Declare new member function.
3067 (default_search_name_hash): Delete declaration.
3068 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3069 initializer.
3070 * objc-lang.c (objc_language_data): Likewise.
3071 * opencl-lang.c (opencl_language_data): Likewise.
3072 * p-lang.c (pascal_language_data): Likewise.
3073 * rust-lang.c (rust_language_data): Likewise.
3074 * symtab.c (search_name_hash): Update call.
3075
3076 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3077
3078 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3079 initializer.
3080 * c-lang.c (class compile_instance): Declare.
3081 (c_language_data): Delete la_get_compile_instance initializer.
3082 (c_language::get_compile_instance): New member function.
3083 (cplus_language_data): Delete la_get_compile_instance initializer.
3084 (cplus_language::get_compile_instance): New member function.
3085 (asm_language_data): Delete la_get_compile_instance initializer.
3086 (minimal_language_data): Likewise.
3087 * c-lang.h (c_get_compile_context): Update comment.
3088 (cplus_get_compile_context): Update comment.
3089 * compile/compile.c (compile_to_object): Update calls, don't rely
3090 on function pointer being NULL.
3091 * d-lang.c (d_language_data): Delete la_get_compile_instance
3092 initializer.
3093 * f-lang.c (f_language_data): Likewise.
3094 * go-lang.c (go_language_data): Likewise.
3095 * language.c (unknown_language_data): Likewise.
3096 (auto_language_data): Likewise.
3097 * language.h (language_data): Delete la_get_compile_instance field.
3098 (language_defn::get_compile_instance): New member function.
3099 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3100 initializer.
3101 * objc-lang.c (objc_language_data): Likewise.
3102 * opencl-lang.c (opencl_language_data): Likewise.
3103 * p-lang.c (pascal_language_data): Likewise.
3104 * rust-lang.c (rust_language_data): Likewise.
3105
3106 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3107
3108 * ada-lang.c (ada_add_all_symbols): Update comment.
3109 (ada_iterate_over_symbols): Delete, move implementation to...
3110 (ada_language::iterate_over_symbols): ...here, a new member
3111 function, rewrite to use range based for loop.
3112 (ada_language_data): Delete la_iterate_over_symbols initializer.
3113 * c-lang.c (c_language_data): Likewise.
3114 (cplus_language_data): Likewise.
3115 (asm_language_data): Likewise.
3116 (minimal_language_data): Likewise.
3117 * d-lang.c (d_language_data): Likewise.
3118 * f-lang.c (f_language_data): Likewise.
3119 * go-lang.c (go_language_data): Likewise.
3120 * language.c (unknown_language_data): Likewise.
3121 (auto_language_data): Likewise.
3122 * language.h (language_data): Delete la_iterate_over_symbols field.
3123 (language_defn::iterate_over_symbols): New member function.
3124 (LA_ITERATE_OVER_SYMBOLS): Update.
3125 * linespec.c (iterate_over_all_matching_symtabs): Update.
3126 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3127 initializer.
3128 * objc-lang.c (objc_language_data): Likewise.
3129 * opencl-lang.c (opencl_language_data): Likewise.
3130 * p-lang.c (pascal_language_data): Likewise.
3131 * rust-lang.c (rust_language_data): Likewise.
3132
3133 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3134
3135 * ada-lang.c (ada_language_data): Delete
3136 la_lookup_transparent_type initializer.
3137 * c-lang.c (c_language_data): Likewise.
3138 (cplus_language_data): Likewise.
3139 (cplus_language::lookup_transparent_type): New member function.
3140 (asm_language_data): Delete la_lookup_transparent_type
3141 initializer.
3142 (minimal_language_data): Likewise.
3143 * d-lang.c (d_language_data): Likewise.
3144 * f-lang.c (f_language_data): Likewise.
3145 * go-lang.c (go_language_data): Likewise.
3146 * language.c (unknown_language_data): Likewise.
3147 (auto_language_data): Likewise.
3148 * language.h (struct language_data): Delete
3149 la_lookup_transparent_type field.
3150 (language_defn::lookup_transparent_type): New member function.
3151 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3152 initializer.
3153 * objc-lang.c (objc_language_data): Likewise.
3154 * opencl-lang.c (opencl_language_data): Likewise.
3155 * p-lang.c (pascal_language_data): Likewise.
3156 * rust-lang.c (rust_language_data): Likewise.
3157 * symtab.c (symbol_matches_domain): Update call.
3158
3159 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3160
3161 * ada-lang.c (ada_language_arch_info): Delete function, move
3162 implementation to...
3163 (ada_language::language_arch_info): ...here, a new member
3164 function.
3165 (ada_language_data): Delete la_language_arch_info.
3166 * c-lang.c (c_language_data): Likewise.
3167 (c_language::language_arch_info): New member function.
3168 (cplus_language_arch_info): Delete function, move
3169 implementation to...
3170 (cplus_language::language_arch_info): ...here, a new member
3171 function.
3172 (cplus_language_data): Delete la_language_arch_info.
3173 (asm_language_data): Likewise.
3174 (asm_language::language_arch_info): New member function.
3175 (minimal_language_data): Delete la_language_arch_info.
3176 (minimal_language::language_arch_info): New member function.
3177 * d-lang.c (d_language_arch_info): Delete function, move
3178 implementation to...
3179 (d_language::language_arch_info): ...here, a new member
3180 function.
3181 (d_language_data): Delete la_language_arch_info.
3182 * f-lang.c (f_language_arch_info): Delete function, move
3183 implementation to...
3184 (f_language::language_arch_info): ...here, a new member
3185 function.
3186 (f_language_data): Delete la_language_arch_info.
3187 * go-lang.c (go_language_arch_info): Delete function, move
3188 implementation to...
3189 (go_language::language_arch_info): ...here, a new member
3190 function.
3191 (go_language_data): Delete la_language_arch_info.
3192 * language.c (unknown_language_data): Likewise.
3193 (unknown_language::language_arch_info): New member function.
3194 (auto_language_data): Delete la_language_arch_info.
3195 (auto_language::language_arch_info): New member function.
3196 (language_gdbarch_post_init): Update call to
3197 la_language_arch_info.
3198 * language.h (language_data): Delete la_language_arch_info
3199 function pointer.
3200 (language_defn::language_arch_info): New function.
3201 * m2-lang.c (m2_language_arch_info): Delete function, move
3202 implementation to...
3203 (m2_language::language_arch_info): ...here, a new member
3204 function.
3205 (m2_language_data): Delete la_language_arch_info.
3206 * objc-lang.c (objc_language_arch_info): Delete function, move
3207 implementation to...
3208 (objc_language::language_arch_info): ...here, a new member
3209 function.
3210 (objc_language_data): Delete la_language_arch_info.
3211 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3212 implementation to...
3213 (opencl_language::language_arch_info): ...here, a new member
3214 function.
3215 (opencl_language_data): Delete la_language_arch_info.
3216 * p-lang.c (pascal_language_arch_info): Delete function, move
3217 implementation to...
3218 (pascal_language::language_arch_info): ...here, a new member
3219 function.
3220 (pascal_language_data): Delete la_language_arch_info.
3221 * rust-lang.c (rust_language_arch_info): Delete function, move
3222 implementation to...
3223 (rust_language::language_arch_info): ...here, a new member
3224 function.
3225 (rust_language_data): Delete la_language_arch_info.
3226
3227 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3228
3229 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3230 initializer.
3231 * c-lang.c (c_language_data): Likewise.
3232 (cplus_language_data): Likewise.
3233 (cplus_language::pass_by_reference_info): New method.
3234 (asm_language_data): Delete la_pass_by_reference initializer.
3235 (minimal_language_data): Likewise.
3236 * cp-abi.c (cp_pass_by_reference): Remove use of
3237 default_pass_by_reference.
3238 * d-lang.c (d_language_data): Likewise.
3239 * f-lang.c (f_language_data): Likewise.
3240 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3241 default_pass_by_reference.
3242 * go-lang.c (go_language_data): Likewise.
3243 * language.c (language_pass_by_reference): Update.
3244 (default_pass_by_reference): Delete.
3245 (unknown_language_data): Delete la_pass_by_reference
3246 initializer.
3247 (auto_language_data): Likewise.
3248 * language.h (struct language_data): Delete la_pass_by_reference
3249 field.
3250 (language_defn::pass_by_reference_info): New member function.
3251 (default_pass_by_reference): Delete declaration.
3252 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3253 initializer.
3254 * objc-lang.c (objc_language_data): Likewise.
3255 * opencl-lang.c (opencl_language_data): Likewise.
3256 * p-lang.c (pascal_language_data): Likewise.
3257 * rust-lang.c (rust_language_data): Likewise.
3258
3259 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3260
3261 * ada-lang.c (ada_read_var_value): Delete function, move
3262 implementation to...
3263 (ada_language::read_var_value): ...here.
3264 (ada_language_data): Delete la_read_var_value initializer.
3265 * c-lang.c (c_language_data): Likewise.
3266 (cplus_language_data): Likewise.
3267 (minimal_language_data): Likewise.
3268 * d-lang.c (d_language_data): Likewise.
3269 * f-lang.c (f_language_data): Likewise.
3270 * findvar.c (default_read_var_value): Rename to...
3271 (language_defn::read_var_value): ...this.
3272 * findvar.c (read_var_value): Update header comment, and change to
3273 call member function instead of function pointer.
3274 * go-lang.c (go_language_data): Likewise.
3275 * language.c (unknown_language_data): Delete la_read_var_value
3276 initializer.
3277 (auto_language_data): Likewise.
3278 * language.h (struct language_data): Delete la_read_var_value
3279 field.
3280 (language_defn::read_var_value): New member function.
3281 (default_read_var_value): Delete declaration.
3282 * m2-lang.c (m2_language_data): Delete la_read_var_value
3283 initializer.
3284 * objc-lang.c (objc_language_data): Likewise.
3285 * opencl-lang.c (opencl_language_data): Likewise.
3286 * p-lang.c (pascal_language_data): Likewise.
3287 * rust-lang.c (rust_language_data): Likewise.
3288 * value.h (default_read_var_value): Delete declaration.
3289
3290 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3291
3292 * ada-lang.c (ada_print_array_index): Delete function, move
3293 implementation to...
3294 (ada_language::print_array_index): ...here.
3295 (ada_language_data): Delete la_print_array_index initializer.
3296 * c-lang.c (c_language_data): Likewise.
3297 (cplus_language_data): Likewise.
3298 (minimal_language_data): Likewise.
3299 * d-lang.c (d_language_data): Likewise.
3300 * f-lang.c (f_language_data): Likewise.
3301 * go-lang.c (go_language_data): Likewise.
3302 * language.c (default_print_array_index): Delete function, move
3303 implementation to...
3304 (language_defn::print_array_index): ...here.
3305 (unknown_language_data): Delete la_print_array_index initializer.
3306 (auto_language_data): Likewise.
3307 * language.h (struct language_data): Delete la_print_array_index
3308 field.
3309 (language_defn::print_array_index): New member function.
3310 (LA_PRINT_ARRAY_INDEX): Update.
3311 (default_print_array_index): Delete declaration.
3312 * m2-lang.c (m2_language_data): Delete la_print_array_index
3313 initializer.
3314 * objc-lang.c (objc_language_data): Likewise.
3315 * opencl-lang.c (opencl_language_data): Likewise.
3316 * p-lang.c (pascal_language_data): Likewise.
3317 * rust-lang.c (rust_language_data): Likewise.
3318
3319 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3320
3321 * gdb/ada-lang.c (ada_language_defn): Convert to...
3322 (ada_language_data): ...this.
3323 (class ada_language): New class.
3324 (ada_language_defn): New static global.
3325 * gdb/c-lang.c (c_language_defn): Convert to...
3326 (c_language_data): ...this.
3327 (class c_language): New class.
3328 (c_language_defn): New static global.
3329 (cplus_language_defn): Convert to...
3330 (cplus_language_data): ...this.
3331 (class cplus_language): New class.
3332 (cplus_language_defn): New static global.
3333 (asm_language_defn): Convert to...
3334 (asm_language_data): ...this.
3335 (class asm_language): New class.
3336 (asm_language_defn): New static global.
3337 (minimal_language_defn): Convert to...
3338 (minimal_language_data): ...this.
3339 (class minimal_language): New class.
3340 (minimal_language_defn): New static global.
3341 * gdb/d-lang.c (d_language_defn): Convert to...
3342 (d_language_data): ...this.
3343 (class d_language): New class.
3344 (d_language_defn): New static global.
3345 * gdb/f-lang.c (f_language_defn): Convert to...
3346 (f_language_data): ...this.
3347 (class f_language): New class.
3348 (f_language_defn): New static global.
3349 * gdb/go-lang.c (go_language_defn): Convert to...
3350 (go_language_data): ...this.
3351 (class go_language): New class.
3352 (go_language_defn): New static global.
3353 * gdb/language.c (unknown_language_defn): Remove declaration.
3354 (current_language): Initialize to nullptr, real initialization is
3355 moved to _initialize_language.
3356 (languages): Delete global.
3357 (language_defn::languages): Define.
3358 (set_language_command): Use language_defn::languages.
3359 (set_language): Likewise.
3360 (range_error): Likewise.
3361 (language_enum): Likewise.
3362 (language_def): Likewise.
3363 (add_set_language_command): Use language_def::languages for the
3364 language list, and language_def to lookup language pointers.
3365 (skip_language_trampoline): Use language_defn::languages.
3366 (unknown_language_defn): Convert to...
3367 (unknown_language_data): ...this.
3368 (class unknown_language): New class.
3369 (unknown_language_defn): New static global.
3370 (auto_language_defn): Convert to...
3371 (auto_language_data): ...this.
3372 (class auto_language): New class.
3373 (auto_language_defn): New static global.
3374 (language_gdbarch_post_init): Use language_defn::languages.
3375 (_initialize_language): Initialize current_language.
3376 * gdb/language.h (struct language_defn): Rename to...
3377 (struct language_data): ...this.
3378 (struct language_defn): New.
3379 (auto_language_defn): Delete.
3380 (unknown_language_defn): Delete.
3381 (minimal_language_defn): Delete.
3382 (ada_language_defn): Delete.
3383 (asm_language_defn): Delete.
3384 (c_language_defn): Delete.
3385 (cplus_language_defn): Delete.
3386 (d_language_defn): Delete.
3387 (f_language_defn): Delete.
3388 (go_language_defn): Delete.
3389 (m2_language_defn): Delete.
3390 (objc_language_defn): Delete.
3391 (opencl_language_defn): Delete.
3392 (pascal_language_defn): Delete.
3393 (rust_language_defn): Delete.
3394 * gdb/m2-lang.c (m2_language_defn): Convert to...
3395 (m2_language_data): ...this.
3396 (class m2_language): New class.
3397 (m2_language_defn): New static global.
3398 * gdb/objc-lang.c (objc_language_defn): Convert to...
3399 (objc_language_data): ...this.
3400 (class objc_language): New class.
3401 (objc_language_defn): New static global.
3402 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3403 (opencl_language_data): ...this.
3404 (class opencl_language): New class.
3405 (opencl_language_defn): New static global.
3406 * gdb/p-lang.c (pascal_language_defn): Convert to...
3407 (pascal_language_data): ...this.
3408 (class pascal_language): New class.
3409 (pascal_language_defn): New static global.
3410 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3411 language pointer, update comment format.
3412 * gdb/rust-lang.c (rust_language_defn): Convert to...
3413 (rust_language_data): ...this.
3414 (class rust_language): New class.
3415 (rust_language_defn): New static global.
3416
3417 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3418
3419 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3420 member variable.
3421 <m_stmt_at_address>: New member variable.
3422 (lnp_state_machine::record_line): Don't record some lines, update
3423 tracking of is_stmt at the same address.
3424 (lnp_state_machine::lnp_state_machine): Initialise new member
3425 variables.
3426
3427 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3428
3429 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3430 "-include gnu-nat-mig.h".
3431 * gnu-nat-mig.h: New file.
3432 * gnu-nat.c: Include "gnu-nat-mig.h".
3433 (exc_server, msg_reply_server, notify_server,
3434 process_reply_server): Remove declarations.
3435
3436 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3437
3438 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3439 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3440 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3441 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3442 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3443 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3444 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3445 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3446 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3447 to gnu_nat_target class.
3448 * gnu-nat.c: Likewise.
3449 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3450 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3451 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3452 object.
3453 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3454 instead of `gnu_target'.
3455
3456 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3457
3458 * i386-gnu-tdep.c: Include "gdbcore.h"
3459 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3460 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3461 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3462 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3463 i386_gnu_sigcontext_addr): New functions
3464 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3465 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3466 tdep.
3467
3468 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3469
3470 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3471 before fork_inferior call. Avoid calling it if target_is_pushed returns
3472 true.
3473
3474 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3475
3476 * gnu-nat.h (gnu_target): New variable declaration.
3477 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3478 gnu_target.
3479 * gnu-nat.c (gnu_target): New variable.
3480 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3481 add_thread_silent, and add_thread calls.
3482 (gnu_nat_target::create_inferior): Pass gnu_target to
3483 add_thread_silent, thread_change_ptid call.
3484 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3485 call.
3486
3487 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3488
3489 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3490 (gnu_nat_target::find_memory_regions): Remove unused
3491 `old_address' variable.
3492
3493 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3494
3495 * gnu-nat.c: Include "gdbarch.h".
3496
3497 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3498
3499 * reply_mig_hack.awk (Error return): Cast function through
3500 void *, to bypass compiler function call check.
3501
3502 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3503
3504 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3505 $(srcdir)/reply_mig_hack.awk.
3506
3507 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3508
3509 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3510
3511 2020-05-30 Jonny Grant <jg@jguk.org>
3512
3513 * configure.ac (ACX_BUGURL): change bug URL to https.
3514
3515 2020-05-30 Pedro Alves <palves@redhat.com>
3516
3517 * cp-support.c (replace_typedefs_template): New.
3518 (replace_typedefs_qualified_name): Handle
3519 DEMANGLE_COMPONENT_TEMPLATE.
3520
3521 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3522
3523 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3524 dwarf2/index-cache.h, dwarf2/index-write.c,
3525 dwarf2/index-write.h, dwarf2/line-header.c,
3526 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3527 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3528 variables and fields from `dwarf2_per_objfile` to just
3529 `per_objfile` throughout.
3530
3531 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3532
3533 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3534 <push_dwarf_reg_entry_value>: Add comment.
3535
3536 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3537 Keith Seitz <keiths@redhat.com>
3538
3539 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3540 instead of PyEval_ReleaseLock.
3541 (class gdbpy_gil): Move to earlier in file.
3542 (finalize_python): Set gdb_python_initialized.
3543 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3544 when not initialized.
3545
3546 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3547
3548 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3549 <push_dwarf_reg_entry_value>: Remove assert. Override
3550 per_objfile with caller_per_objfile.
3551
3552 2020-05-28 Tom de Vries <tdevries@suse.de>
3553
3554 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3555 PR gold/15646 workaround to symbol kind "type".
3556
3557 2020-05-27 Tom Tromey <tromey@adacore.com>
3558
3559 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3560
3561 2020-05-27 Tom Tromey <tromey@adacore.com>
3562
3563 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3564 Use htab_find_with_hash.
3565 <add_abbrev>: Remove "abbrev_number" parameter.
3566 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3567 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3568 (hash_abbrev): Add comment.
3569 (abbrev_table::lookup_abbrev): Move to header file.
3570 (abbrev_table::read): Update.
3571
3572 2020-05-27 Tom Tromey <tromey@adacore.com>
3573
3574 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3575 method.
3576 <canonical_name>: New member.
3577 <raw_name>: Rename from "name".
3578 (partial_die_info): Initialize canonical_name.
3579 (scan_partial_symbols): Check raw_name.
3580 (partial_die_parent_scope, partial_die_full_name)
3581 (add_partial_symbol, add_partial_subprogram)
3582 (add_partial_enumeration, load_partial_dies): Use "name" method.
3583 (partial_die_info::name): New method.
3584 (partial_die_info::read, guess_partial_die_structure_name)
3585 (partial_die_info::fixup): Update.
3586
3587 2020-05-27 Tom Tromey <tromey@adacore.com>
3588
3589 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3590 <get_ref_die_offset>: Inline.
3591 <get_ref_die_offset_complaint>: New method.
3592 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3593 (attribute::get_ref_die_offset_complaint): Rename from
3594 get_ref_die_offset. Just issue complaint.
3595
3596 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3597
3598 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3599
3600 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3601
3602 * exec.c (exec_file_attach): Use errno value of first openp failure.
3603
3604 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3605
3606 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3607 Don't close thread handle.
3608
3609 2020-05-27 Tom Tromey <tom@tromey.com>
3610 Simon Marchi <simon.marchi@efficios.com>
3611
3612 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3613 shared_ptr.
3614 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3615 member.
3616 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3617 dwarf2_per_bfd_objfile_data_key>: New globals.
3618 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3619 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3620 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3621 shared.
3622 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3623 short-circuit when sharing.
3624 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3625 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3626
3627 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3628
3629 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3630 to...
3631 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3632 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3633
3634 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3635
3636 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3637 build_name_components, find_name_components_bounds>:
3638 Add per_objfile parameter.
3639 (struct mapped_index) <symbol_name_at>: Likewise.
3640 (struct mapped_debug_names): Remove constructor.
3641 <dwarf2_per_objfile>: Remove field.
3642 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3643 (mapped_index_base::find_name_components_bounds,
3644 mapped_index_base::build_name_components,
3645 dw2_expand_symtabs_matching_symbol): Likewise.
3646 (class mock_mapped_index) <symbol_name_at>: Likewise.
3647 (check_match): Likewise.
3648 (check_find_bounds_finds): Likewise.
3649 (test_mapped_index_find_name_component_bounds): Update.
3650 (CHECK_MATCH): Update.
3651 (dw2_expand_symtabs_matching): Update.
3652 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3653 per_objfile parameter.
3654 <find_vec_in_debug_names>: Likewise.
3655 <m_per_objfile>: New field.
3656 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3657 parameter.
3658 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3659 (dw2_debug_names_iterator::next): Update.
3660 (dw2_debug_names_lookup_symbol): Update.
3661 (dw2_debug_names_expand_symtabs_for_function): Update.
3662 (dw2_debug_names_map_matching_symbols): Update.
3663 (dw2_debug_names_expand_symtabs_matching): Update.
3664 (dwarf2_read_debug_names): Update.
3665
3666 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3667
3668 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3669 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3670 move to dwarf2_per_objfile.
3671 <read_in_chain>: Remove.
3672 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3673 remove_all_cus, age_comp_units>: New methods.
3674 <m_dwarf2_cus>: New member.
3675 (struct dwarf2_per_cu_data) <cu>: Remove.
3676 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3677 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3678 moved to methods of dwarf2_per_objfile.
3679 (dwarf2_clear_marks): Remove.
3680 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3681 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3682 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3683 (dwarf2_per_objfile::remove_all_cus): New.
3684 (class free_cached_comp_units) <~free_cached_comp_units>:
3685 Update.
3686 (load_cu): Update.
3687 (dw2_do_instantiate_symtab): Adjust.
3688 (fill_in_sig_entry_from_dwo_entry): Adjust.
3689 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3690 (cutu_reader::cutu_reader): Likewise.
3691 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3692 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3693 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3694 and dwarf2_per_objfile::age_comp_units.
3695 (load_partial_comp_unit): Update.
3696 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3697 (process_queue): Likewise.
3698 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3699 backlink.
3700 (dwarf2_read_addr_index): Likewise.
3701 (follow_die_offset): Likewise.
3702 (dwarf2_fetch_die_loc_sect_off): Likewise.
3703 (dwarf2_fetch_constant_bytes): Likewise.
3704 (dwarf2_fetch_die_type_sect_off): Likewise.
3705 (follow_die_sig_1): Likewise.
3706 (load_full_type_unit): Likewise.
3707 (read_signatured_type): Likewise.
3708 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3709 (dwarf2_cu::~dwarf2_cu): Remove.
3710 (dwarf2_per_objfile::get_cu): New.
3711 (dwarf2_per_objfile::set_cu): New.
3712 (age_cached_comp_units): Rename to...
3713 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3714 to std::unordered_map.
3715 (free_one_cached_comp_unit): Rename to...
3716 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3717 to std::unordered_map.
3718 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3719 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3720 a dwarf2_per_objfile in data.
3721 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3722 (dwarf2_clear_marks): Remove.
3723
3724 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3725
3726 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3727 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3728 (init_tu_and_read_dwo_dies): Likewise.
3729 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3730 (cutu_reader::cutu_reader): Likewise.
3731 (load_partial_comp_unit): Likewise.
3732 (process_psymtab_comp_unit): Update.
3733 (build_type_psymtabs_1): Update.
3734 (process_skeletonless_type_unit): Update.
3735 (load_full_comp_unit): Update.
3736 (find_partial_die): Update.
3737 (dwarf2_read_addr_index): Update.
3738 (read_signatured_type): Update.
3739
3740 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3741
3742 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3743 m_header_read_in>: New fields.
3744 <get_header>: New method.
3745 * dwarf2/read.c (per_cu_header_read_in): Remove.
3746 (dwarf2_per_cu_data::get_header): New.
3747 (dwarf2_per_cu_data::addr_size): Update.
3748 (dwarf2_per_cu_data::offset_size): Update.
3749 (dwarf2_per_cu_data::ref_addr_size): Update.
3750
3751 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3752
3753 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3754 (dw2_do_instantiate_symtab): Update.
3755 (queue_and_load_all_dwo_tus): Change parameter from
3756 dwarf2_per_cu_data to dwarf2_cu.
3757 (dwarf2_fetch_die_loc_sect_off): Update.
3758 (dwarf2_fetch_constant_bytes): Update.
3759 (dwarf2_fetch_die_type_sect_off): Update.
3760
3761 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3762
3763 * dwarf2/read.c (process_full_comp_unit,
3764 process_full_type_unit): Remove per_cu, per_objfile paramters.
3765 Add dwarf2_cu parameter.
3766 (process_queue): Update.
3767
3768 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3769
3770 * dwarf2/read.c (create_cu_from_index_list): Replace
3771 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3772 (create_cus_from_index_list): Likewise.
3773 (create_cus_from_index): Likewise.
3774 (create_signatured_type_table_from_index): Likewise.
3775 (create_cus_from_debug_names_list): Likewise.
3776 (create_cus_from_debug_names): Likewise.
3777 (dwarf2_read_gdb_index): Update.
3778 (dwarf2_read_debug_names): Update.
3779
3780 2020-05-27 Tom Tromey <tom@tromey.com>
3781 Simon Marchi <simon.marchi@efficios.com>
3782
3783 * dwarf2/read.h (struct dwarf2_per_objfile)
3784 <get_type_for_signatured_type, set_type_for_signatured_type>:
3785 New methods.
3786 <m_type_map>: New member.
3787 (struct signatured_type) <type>: Remove.
3788 * dwarf2/read.c
3789 (dwarf2_per_objfile::get_type_for_signatured_type,
3790 dwarf2_per_objfile::set_type_for_signatured_type): New.
3791 (get_signatured_type): Use new methods.
3792
3793 2020-05-27 Tom Tromey <tom@tromey.com>
3794 Simon Marchi <simon.marchi@efficios.com>
3795
3796 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3797 (struct dwarf2_per_objfile) <type_units>: New member.
3798 <get_type_unit_group_unshareable>: New method.
3799 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3800 num_symtabs, symtabs>: Remove; move to
3801 type_unit_group_unshareable.
3802 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3803 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3804 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3805
3806 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3807
3808 * dwarf2/read.h (struct dwarf2_per_cu_data):
3809 <dwarf2_per_objfile>: Remove.
3810 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3811 dwarf2_per_objfile.
3812 (create_signatured_type_table_from_index): Likewise.
3813 (create_signatured_type_table_from_debug_names): Likewise.
3814 (create_debug_type_hash_table): Likewise.
3815 (fill_in_sig_entry_from_dwo_entry): Likewise.
3816 (create_type_unit_group): Likewise.
3817 (read_comp_units_from_section): Likewise.
3818 (create_cus_hash_table): Likewise.
3819
3820 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3821
3822 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3823 dwarf2_per_cu_data::dwarf2_per_objfile.
3824 (compute_compunit_symtab_includes): Likewise.
3825 (dwarf2_cu::start_symtab): Likewise.
3826
3827 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3828
3829 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3830 parameter.
3831 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3832 (read_namespace_alias): Update.
3833 (lookup_die_type): Update.
3834 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3835 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3836 Update.
3837 (disassemble_dwarf_expression): Update.
3838
3839 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3840
3841 * dwarf2/read.h (struct dwarf2_queue_item): Add
3842 dwarf2_per_objfile parameter, assign new parameter.
3843 <per_objfile>: New field.
3844 * dwarf2/read.c (free_one_cached_comp_unit): Add
3845 dwarf2_per_objfile parameter.
3846 (queue_comp_unit): Likewise.
3847 (dw2_do_instantiate_symtab): Update.
3848 (process_psymtab_comp_unit): Update.
3849 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3850 (process_imported_unit_die): Update.
3851 (queue_and_load_dwo_tu): Update.
3852 (follow_die_offset): Update.
3853 (follow_die_sig_1): Update.
3854
3855 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3856
3857 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3858 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3859 (read_call_site_scope): Assign per_objfile.
3860 (dwarf2_per_cu_data::objfile): Remove.
3861 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3862 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3863 dwarf2_per_objfile parameter.
3864 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3865 dwarf2_per_objfile parameter.
3866 (dwarf_expr_reg_to_entry_parameter): Add output
3867 dwarf2_per_objfile parameter.
3868 (locexpr_get_frame_base): Update.
3869 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3870 <push_dwarf_reg_entry_value>: Update.
3871 <call_site_to_target_addr>: Update.
3872 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3873 parameter.
3874 (value_of_dwarf_reg_entry): Update.
3875 (rw_pieced_value): Update.
3876 (indirect_synthetic_pointer): Update.
3877 (dwarf2_evaluate_property): Update.
3878 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3879 parameter.
3880 (locexpr_read_variable): Update.
3881 (locexpr_get_symbol_read_needs): Update.
3882 (loclist_read_variable): Update.
3883
3884 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3885
3886 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3887 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3888 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3889 parameter.
3890 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3891 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3892 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3893 parameter.
3894 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3895 sect_variable_value): Add dwarf2_per_objfile parameter.
3896 (class dwarf_evaluate_loc_desc) <dwarf_call,
3897 dwarf_variable_value>: Update.
3898 (fetch_const_value_from_synthetic_pointer): Add
3899 dwarf2_per_objfile parameter.
3900 (fetch_const_value_from_synthetic_pointer): Update.
3901 (coerced_pieced_ref): Update.
3902 (class symbol_needs_eval_context) <dwarf_call,
3903 dwarf_variable_value>: Update.
3904 (dwarf2_compile_expr_to_ax): Update.
3905
3906 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3907
3908 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3909 parameter.
3910 (dwarf2_evaluate_loc_desc_full): Update.
3911
3912 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3913
3914 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3915 parameter.
3916 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3917 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3918 dwarf2_per_objfile parameter.
3919 (decode_debug_loc_dwo_addresses): Likewise.
3920 (dwarf2_find_location_expression): Update.
3921 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3922 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3923 parameter.
3924 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3925 parameter.
3926 (locexpr_describe_location_1): Likewise.
3927 (locexpr_describe_location): Update.
3928
3929 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3930
3931 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3932 Remove.
3933 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3934 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3935 (dwarf2_compile_property_to_c): Update.
3936 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3937 use text offset from objfile.
3938 (locexpr_tracepoint_var_ref): Update.
3939 (locexpr_generate_c_location): Update.
3940 (loclist_describe_location): Update.
3941 (loclist_tracepoint_var_ref): Update.
3942 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3943 dwarf2_per_objfile parameter.
3944 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3945 use text offset from objfile.
3946 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3947
3948 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3949
3950 * dwarf2/expr.h (struct dwarf_expr_context)
3951 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3952 <offset>: Remove.
3953 <per_objfile>: New member.
3954 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3955 dwarf2_per_objfile parameter. Don't set offset, set
3956 per_objfile.
3957 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3958 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3959 a dwarf2_per_objfile object instead of an offset.
3960 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3961 constructor.
3962 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3963 to dwarf2_expr_executor constructor. Don't set offset.
3964 (dwarf2_fetch_cfa_info): Update.
3965 (struct dwarf2_frame_cache) <text_offset>: Remove.
3966 <per_objfile>: New field.
3967 (dwarf2_frame_cache): Update.
3968 (dwarf2_frame_prev_register): Update.
3969 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3970 <dwarf_evaluate_loc_desc>: Add constructor.
3971 (dwarf2_evaluate_loc_desc_full): Update.
3972 (dwarf2_locexpr_baton_eval): Update.
3973 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3974 Add constructor.
3975 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3976
3977 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3978
3979 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3980 addr_sized_int_type>: Move to dwarf2_cu.
3981 <int_type>: Move to dwarf2_per_objfile.
3982 (struct dwarf2_per_objfile) <int_type>: Move here.
3983 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3984 addr_sized_int_type>: Move here.
3985 (read_func_scope): Update.
3986 (read_array_type): Update.
3987 (read_tag_string_type): Update.
3988 (attr_to_dynamic_prop): Update.
3989 (dwarf2_per_cu_data::int_type): Rename to...
3990 (dwarf2_per_objfile::int_type): ... this.
3991 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3992 (dwarf2_cu::addr_sized_int_type): ... this.
3993 (read_subrange_type): Update.
3994 (dwarf2_per_cu_data::addr_type): Rename to...
3995 (dwarf2_cu::addr_type): ... this.
3996 (set_die_type): Update.
3997
3998 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3999
4000 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4001 data through per_cu->cu.
4002
4003 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4004
4005 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4006 dwarf2_per_cu_data parameter fo dwarf2_cu.
4007 (lookup_dwo_type_unit): Likewise.
4008 (read_cutu_die_from_dwo): Likewise.
4009 (lookup_dwo_unit): Likewise.
4010 (open_and_init_dwo_file): Likewise.
4011 (lookup_dwo_cutu): Likewise.
4012 (lookup_dwo_comp_unit): Likewise.
4013 (lookup_dwo_type_unit): Likewise.
4014 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4015 (cutu_reader::cutu_reader): Update.
4016
4017 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4018
4019 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4020 parameter.
4021 (process_full_type_unit): Likewise.
4022 (process_queue): Update.
4023
4024 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4025
4026 * dwarf2/read.c (recursively_compute_inclusions): Add
4027 dwarf2_per_objfile parameter.
4028 (compute_compunit_symtab_includes): Likewise.
4029 (process_cu_includes): Update.
4030
4031 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4032
4033 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4034 parameter.
4035 (create_type_unit_group): Update.
4036 (process_psymtab_comp_unit_reader): Update.
4037 (build_type_psymtabs_reader): Update.
4038
4039 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4040
4041 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4042 object through m_this_cu->cu.
4043
4044 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4045
4046 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4047 the info parameter.
4048 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4049
4050 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4051
4052 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4053 per_objfile parameter.
4054 (load_full_type_unit): Add per_objfile parameter.
4055 (read_signatured_type): Likewise.
4056 (load_full_comp_unit): Likewise.
4057 (load_cu): Likewise.
4058 (dw2_do_instantiate_symtab): Likewise.
4059 (dw2_get_file_names): Likewise.
4060 (dw2_map_symtabs_matching_filename): Update.
4061 (dw_expand_symtabs_matching_file_matcher): Update.
4062 (dw2_map_symbol_filenames): Update.
4063 (process_psymtab_comp_unit): Add per_objfile parameter.
4064 (build_type_psymtabs_1): Update.
4065 (process_skeletonless_type_unit): Update.
4066 (dwarf2_build_psymtabs_hard): Update.
4067 (load_partial_comp_unit): Add per_objfile parameter.
4068 (scan_partial_symbols): Update.
4069 (load_full_comp_unit): Add per_objfile parameter.
4070 (process_imported_unit_die): Update.
4071 (create_cus_hash_table): Update.
4072 (find_partial_die): Update.
4073 (dwarf2_read_addr_index): Update.
4074 (follow_die_offset): Update.
4075 (dwarf2_fetch_die_loc_sect_off): Update.
4076 (dwarf2_fetch_constant_bytes): Update.
4077 (dwarf2_fetch_die_type_sect_off): Update.
4078 (follow_die_sig_1): Update.
4079 (load_full_type_unit): Add per_objfile parameter.
4080 (read_signatured_type): Likewise.
4081
4082 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4083
4084 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4085 of objfile_name.
4086
4087 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4088
4089 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4090 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4091 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4092 field.
4093 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4094 (create_cus_from_index): Update.
4095 (dwarf2_read_gdb_index): Update.
4096 (create_cus_from_debug_names): Update.
4097 (dwarf2_read_debug_names): Update.
4098 (get_abbrev_section_for_cu): Update.
4099 (create_all_comp_units): Update.
4100 (read_attribute_value): Update.
4101 (get_debug_line_section): Update.
4102 * dwarf2/index-cache.c (index_cache::store): Update.
4103 * dwarf2/index-write.c (save_gdb_index_command): Update.
4104 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4105
4106 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4107
4108 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4109 member.
4110 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4111 dwarf2_per_cu_data::per_bfd.
4112 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4113 (create_type_unit_group): Likewise.
4114 (queue_comp_unit): Remove reference to
4115 per_cu->dwarf2_per_objfile.
4116 (maybe_queue_comp_unit): Likewise.
4117 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4118 (create_cus_hash_table): Assign new field.
4119
4120 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4121
4122 * dwarf2/read.c: Replace
4123 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4124 dwarf2_cu->per_objfile throughout.
4125
4126 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4127
4128 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4129 parameter, don't use per_cu->dwarf2_per_objfile.
4130 (dw2_instantiate_symtab): Likewise.
4131 (dw2_find_last_source_symtab): Update.
4132 (dw2_map_expand_apply): Update.
4133 (dw2_lookup_symbol): Update.
4134 (dw2_expand_symtabs_for_function): Update.
4135 (dw2_expand_all_symtabs): Update.
4136 (dw2_expand_symtabs_with_fullname): Update.
4137 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4138 don't use per_cu->dwarf2_per_objfile.
4139 (dw2_expand_marked_cus): Update.
4140 (dw2_find_pc_sect_compunit_symtab): Update.
4141 (dw2_debug_names_lookup_symbol): Update.
4142 (dw2_debug_names_expand_symtabs_for_function): Update.
4143 (dw2_debug_names_map_matching_symbols): Update.
4144 (dwarf2_psymtab::expand_psymtab): Update.
4145
4146 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4147
4148 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4149 <per_objfile>: New member.
4150 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4151 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4152 call to dwarf2_cu.
4153 (cutu_reader::cutu_reader): Update.
4154 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4155
4156 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4157
4158 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4159 struct dwarf2_per_objfile.
4160 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4161 dwarf2_per_bfd.
4162 * dwarf2/read.c (set_die_type): Update.
4163 (get_die_type_at_offset): Update.
4164
4165 2020-05-27 Tom Tromey <tom@tromey.com>
4166 Simon Marchi <simon.marchi@efficios.com>
4167
4168 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4169 method.
4170 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4171 get_symtab, set_symtab>: New methods.
4172 <m_symtabs>: New field.
4173 (struct dwarf2_psymtab): Derive from partial_symtab.
4174 <readin_p, get_compunit_symtab>: Declare methods.
4175 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4176 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4177 New methods.
4178 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4179 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4180 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4181 (dw2_symtab_iter_next, dw2_print_stats)
4182 (dw2_expand_symtabs_with_fullname)
4183 (dw2_expand_symtabs_matching_one)
4184 (dw_expand_symtabs_matching_file_matcher)
4185 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4186 (dw2_debug_names_iterator::next)
4187 (dw2_debug_names_map_matching_symbols)
4188 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4189 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4190 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4191 New methods.
4192 (get_compunit_symtab, process_full_comp_unit)
4193 (process_full_type_unit): Update.
4194 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4195
4196 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4197
4198 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4199 then introduce a new dwarf2_per_objfile type.
4200 <read_line_string>: Move to the new dwarf2_per_objfile type.
4201 <objfile>: Likewise.
4202 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4203 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4204 dwarf2_per_objfile->per_bfd.
4205 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4206 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4207 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4208 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4209 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4210 (dwarf2_per_objfile::locate_sections): Rename to...
4211 (dwarf2_per_bfd::locate_sections): ... this.
4212 (dwarf2_per_objfile::get_cutu): Rename to...
4213 (dwarf2_per_bfd::get_cutu): ... this.
4214 (dwarf2_per_objfile::get_cu): Rename to...
4215 (dwarf2_per_bfd::get_cu): ... this.
4216 (dwarf2_per_objfile::get_tu): Rename to...
4217 (dwarf2_per_bfd::get_tu): ... this.
4218 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4219 (dwarf2_per_bfd::allocate_per_cu): ... this.
4220 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4221 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4222 (get_gdb_index_contents_ftype): Change parameter from
4223 dwarf2_per_objfile to dwarf2_per_bfd.
4224 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4225 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4226
4227 2020-05-27 Tom Tromey <tom@tromey.com>
4228 Simon Marchi <simon.marchi@efficios.com>
4229
4230 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4231 (allocate_piece_closure): Set "per_objfile" member.
4232 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4233 (locexpr_describe_location, loclist_describe_location): Use new
4234 member.
4235 * dwarf2/read.c (read_call_site_scope)
4236 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4237 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4238 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4239 handle_data_member_location): Set per_objfile member.
4240 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4241 member.
4242 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4243
4244 2020-05-27 Tom Tromey <tom@tromey.com>
4245
4246 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4247 allocate_signatured_type>: Declare new methods.
4248 <m_num_psymtabs>: New member.
4249 (struct dwarf2_per_cu_data) <index>: New member.
4250 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4251 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4252 (create_cu_from_index_list): Use allocate_per_cu.
4253 (create_signatured_type_table_from_index)
4254 (create_signatured_type_table_from_debug_names)
4255 (create_debug_type_hash_table, add_type_unit)
4256 (read_comp_units_from_section): Use allocate_signatured_type.
4257
4258 2020-05-27 Tom Tromey <tom@tromey.com>
4259
4260 * psymtab.c (partial_map_expand_apply)
4261 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4262 (psym_lookup_global_symbol_language)
4263 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4264 (psym_print_stats, psym_expand_symtabs_for_function)
4265 (psym_map_symbol_filenames, psym_map_matching_symbols)
4266 (psym_expand_symtabs_matching)
4267 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4268 (maintenance_check_psymtabs): Update.
4269 * psympriv.h (struct partial_symtab) <readin_p,
4270 get_compunit_symtab>: Add objfile parameter.
4271 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4272 Likewise.
4273 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4274 get_compunit_symtab>: Likewise.
4275 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4276
4277 2020-05-27 Tom Tromey <tom@tromey.com>
4278
4279 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4280 member.
4281 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4282 (create_cu_from_index_list)
4283 (create_signatured_type_table_from_index)
4284 (create_signatured_type_table_from_debug_names)
4285 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4286 (dwarf2_create_include_psymtab)
4287 (create_debug_type_hash_table, add_type_unit)
4288 (create_type_unit_group, read_comp_units_from_section)
4289 (dwarf2_compute_name, create_cus_hash_table)
4290 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4291 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4292 obstack.
4293 (dw2_get_real_path): Likewise. Change argument to
4294 dwarf2_per_objfile.
4295
4296 2020-05-27 Luis Machado <luis.machado@linaro.org>
4297
4298 PR tdep/26000
4299 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4300 for ldrd (immediate).
4301
4302 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4303
4304 * command.h: Add comment giving the name of class_tui.
4305 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4306 create the fake command for the help for class_tui.
4307
4308 2020-05-26 Tom Tromey <tromey@adacore.com>
4309
4310 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4311 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4312 (val_atr): New function.
4313 (value_val_atr): Use it.
4314 * ada-valprint.c (print_optional_low_bound): Change low bound
4315 handling for enums.
4316 (val_print_packed_array_elements): Don't call discrete_position.
4317 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4318 discrete_position for enum types.
4319 * language.c (default_print_array_index): Change type.
4320 * language.h (struct language_defn) <la_print_array_index>: Add
4321 index_type parameter, change type of index_value.
4322 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4323 (default_print_array_index): Update.
4324 * valprint.c (maybe_print_array_index): Don't call
4325 value_from_longest. Update.
4326 (value_print_array_elements): Don't call discrete_position.
4327
4328 2020-05-26 Tom Tromey <tromey@adacore.com>
4329
4330 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4331 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4332
4333 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4334
4335 PR gdb/13519
4336 * avr-tdep.c (avr_integer_to_address): Return data or code
4337 address accordingly to the second 'type' argument of the
4338 function.
4339
4340 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4341
4342 * infcmd.c, inferior.h: (construct_inferior_arguments):
4343 Moved function from here to gdbsupport/common-inferior.{h,cc}
4344
4345 2020-05-23 Tom Tromey <tom@tromey.com>
4346
4347 Revert commit eca1f90c:
4348 * NEWS: Remove entry for completion styling.
4349 * completer.c (_rl_completion_prefix_display_length): Move
4350 declaration later.
4351 (gdb_fnprint): Revert.
4352 (gdb_display_match_list_1): Likewise.
4353 * cli/cli-style.c (completion_prefix_style)
4354 (completion_difference_style, completion_suffix_style): Remove.
4355 (_initialize_cli_style): Revert.
4356 * cli/cli-style.h (completion_prefix_style)
4357 (completion_difference_style, completion_suffix_style): Don't
4358 declare.
4359
4360 2020-05-24 Pedro Alves <palves@redhat.com>
4361
4362 * symtab.c (completion_list_add_name): Return boolean indication
4363 of whether the symbol matched.
4364 (completion_list_add_symbol): Don't try to remove C++ aliases if
4365 the symbol didn't match in the first place.
4366 * symtab.h (completion_list_add_name): Return bool.
4367
4368 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4369
4370 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4371 type::field.
4372
4373 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4374
4375 GDB 9.2 released.
4376
4377 2020-05-23 Tom Tromey <tom@tromey.com>
4378
4379 * NEWS: Add entry for completion styling.
4380 * completer.c (_rl_completion_prefix_display_length): Move
4381 declaration earlier.
4382 (gdb_fnprint): Use completion_style.
4383 (gdb_display_match_list_1): Likewise.
4384 * cli/cli-style.c (completion_prefix_style)
4385 (completion_difference_style, completion_suffix_style): New
4386 globals.
4387 (_initialize_cli_style): Register new globals.
4388 * cli/cli-style.h (completion_prefix_style)
4389 (completion_difference_style, completion_suffix_style): Declare.
4390
4391 2020-05-23 Pedro Alves <palves@redhat.com>
4392
4393 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4394 (parse_escape): Use ISDIGIT instead of isdigit.
4395 (puts_debug): Use gdb_isprint instead of isprint.
4396 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4397 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4398 ISSPACE instead of isspace.
4399 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4400 instead of isspace.
4401 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4402 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4403 instead of isxdigit and ISDIGIT instead of isdigit.
4404
4405 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4406
4407 * gdbtypes.h (struct type) <field>: New method.
4408 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4409 or type::field.
4410
4411 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4412
4413 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4414 (TYPE_FIELDS): Use type::fields. Change all call sites that
4415 modify the propery to use type::set_fields instead.
4416
4417 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4418
4419 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4420 type::num_fields instead.
4421
4422 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4423
4424 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4425 methods.
4426 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4427 that modify the number of fields to use type::set_num_fields
4428 instead.
4429
4430 2020-05-22 Tom Tromey <tromey@adacore.com>
4431
4432 * compile/compile-object-load.h (munmap_list_free): Don't
4433 declare.
4434
4435 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4436
4437 * annotate.c (annotate_source_line): Update return type, add call
4438 to update current symtab and line.
4439 * annotate.h (annotate_source_line): Update return type, and
4440 extend header comment.
4441 * source.c (info_line_command): Check annotation_level before
4442 calling annotate_source_line.
4443 * stack.c (print_frame_info): If calling annotate_source_line
4444 returns true, then don't print any other source line information.
4445
4446 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4447
4448 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4449
4450 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4451
4452 * coffread.c (patch_type): Remove NULL check before xfree.
4453 * corefile.c (set_gnutarget): Likewise.
4454 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4455 * exec.c (build_section_table): Likewise.
4456 * remote.c (remote_target::pass_signals): Likewise.
4457 * utils.c (n_spaces): Likewise.
4458 * cli/cli-script.c (document_command): Likewise.
4459 * i386-windows-tdep.c (core_process_module_section): Likewise.
4460 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4461
4462 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4463
4464 * symfile.c (reread_symbols): Clear objfile's section_offsets
4465 vector and section indices, re-compute them by calling
4466 sym_offsets.
4467
4468 2020-05-20 Tom Tromey <tromey@adacore.com>
4469
4470 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4471 (desc_one_bound, desc_index_type): Compute field name.
4472
4473 2020-05-20 Tom de Vries <tdevries@suse.de>
4474
4475 PR symtab/25833
4476 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4477
4478 2020-05-20 Alan Modra <amodra@gmail.com>
4479
4480 PR 25993
4481 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4482 bfd_set_filename.
4483 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4484 passed to bfd_set_filename.
4485 * symfile-mem.c (add_vsyscall_page): Likewise for string
4486 passed to symbol_file_add_from_memory.
4487 (symbol_file_add_from_memory): Make name param a const char* and
4488 don't strdup.
4489
4490 2020-05-20 Alan Modra <amodra@gmail.com>
4491
4492 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4493 rather than accessing bfd->filename directly.
4494 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4495 and use bfd_section_name.
4496 * dwarf2/frame.c (decode_frame_entry): Likewise.
4497 * exec.c (exec_set_section_address): Likewise.
4498 * solib-aix.c (solib_aix_bfd_open): Likewise.
4499 * stap-probe.c (get_stap_base_address): Likewise.
4500 * symfile.c (reread_symbols): Likewise.
4501
4502 2020-05-19 Tom Tromey <tromey@adacore.com>
4503
4504 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4505
4506 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4507
4508 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4509
4510 2020-05-19 Pedro Alves <palves@redhat.com>
4511
4512 * NEWS (set exec-file-mismatch): Adjust entry.
4513 * exec.c: Include "build-id.h".
4514 (validate_exec_file): Try to match build IDs instead of filenames.
4515 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4516 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4517 and pass down 'warn_if_slow'.
4518 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4519 gdb_bfd_open_closure to pass it down.
4520 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4521
4522 2020-05-19 Pedro Alves <palves@redhat.com>
4523
4524 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4525 * target.c (target_fileio_open_1): Rename to target_fileio_open
4526 and make extern. Use bool.
4527 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4528 (target_fileio_read_alloc_1): Adjust.
4529 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4530 (target_fileio_open_warn_if_slow): Delete declaration.
4531
4532 2020-05-19 Pedro Alves <palves@redhat.com>
4533
4534 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4535 Adjust all callers.
4536
4537 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4538
4539 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4540 whether disp is negative.
4541
4542 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4543
4544 * symfile.h (struct symfile_segment_data)
4545 <~symfile_segment_data>: Remove.
4546 <segment_info>: Change to std::vector.
4547 * symfile.c (default_symfile_segments): Update.
4548 * elfread.c (elf_symfile_segments): Update.
4549
4550 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4551
4552 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4553 <segments>: New.
4554 <segment_bases, segment_sizes>: Remove.
4555 * symfile.c (default_symfile_segments): Update.
4556 * elfread.c (elf_symfile_segments): Update.
4557 * remote.c (remote_target::get_offsets): Update.
4558 * solib-target.c (solib_target_relocate_section_addresses):
4559 Update.
4560
4561 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4562
4563 * symfile.h (struct symfile_segment_data): Initialize fields.
4564 <~symfile_segment_data>: Add.
4565 (symfile_segment_data_up): New.
4566 (struct sym_fns) <sym_segments>: Return a
4567 symfile_segment_data_up.
4568 (default_symfile_segments): Return a symfile_segment_data_up.
4569 (free_symfile_segment_data): Remove.
4570 (get_symfile_segment_data): Return a symfile_segment_data_up.
4571 * symfile.c (default_symfile_segments): Likewise.
4572 (get_symfile_segment_data): Likewise.
4573 (free_symfile_segment_data): Remove.
4574 (symfile_find_segment_sections): Update.
4575 * elfread.c (elf_symfile_segments): Return a
4576 symfile_segment_data_up.
4577 * remote.c (remote_target::get_offsets): Update.
4578 * solib-target.c (solib_target_relocate_section_addresses):
4579 Update.
4580 * symfile-debug.c (debug_sym_segments): Return a
4581 symfile_segment_data_up.
4582
4583 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4584
4585 PR build/25981
4586 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4587 Hardcode register numbers.
4588
4589 PR build/25981
4590 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4591 procfs_find_LDT_entry): Remove.
4592 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4593 procfs_find_LDT_entry): Remove.
4594 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4595 Remove.
4596
4597 2020-05-17 Pedro Alves <palves@redhat.com>
4598 Andrew Burgess <andrew.burgess@embecosm.com>
4599 Keno Fischer <keno@juliacomputing.com>
4600
4601 PR gdb/25741
4602 * breakpoint.c (build_target_condition_list): Update comments.
4603 (build_target_command_list): Update comments and skip matching
4604 locations.
4605 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4606 a separate function. Simplify "set breakpoint auto-hw off"
4607 handling.
4608 (insert_breakpoints): Update comment.
4609 (tracepoint_locations_match): New parameter. For breakpoints,
4610 compare location types too, if the caller wants to.
4611 (handle_automatic_hardware_breakpoints): New functions.
4612 (bp_location_is_less_than): Also sort by location type and
4613 hardware breakpoint length.
4614 (update_global_location_list): Handle "set breakpoint auto-hw on"
4615 here.
4616 (update_breakpoint_locations): Ask breakpoint_locations_match to
4617 ignore location types.
4618
4619 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4620
4621 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4622 type::name instead.
4623
4624 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4625
4626 * gdbtypes.h (struct type) <name, set_name>: New methods.
4627 (TYPE_CODE): Use type::name. Change all call sites used to set
4628 the name to use type::set_name instead.
4629
4630 2020-05-16 Tom Tromey <tom@tromey.com>
4631
4632 * top.c (quit_force): Update.
4633 * infrun.c (handle_no_resumed): Update.
4634 * top.h (all_uis): New function.
4635 (ALL_UIS): Remove.
4636
4637 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4638
4639 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4640
4641 2020-05-16 Pedro Alves <palves@redhat.com>
4642
4643 * ia64-linux-nat.c
4644 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4645 Declare method.
4646 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4647
4648 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4649
4650 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4651 (sparc64_adi_info): Likewise.
4652
4653 2020-05-15 Tom Tromey <tom@tromey.com>
4654
4655 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4656 block_objfile.
4657 (lookup_objfile_from_block): Remove.
4658 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4659 (lookup_global_symbol): Use block_objfile.
4660 * symtab.h (lookup_objfile_from_block): Don't declare.
4661 * printcmd.c (clear_dangling_display_expressions): Use
4662 block_objfile.
4663 * parse.c (operator_check_standard): Use block_objfile.
4664
4665 2020-05-15 Tom Tromey <tom@tromey.com>
4666
4667 * language.c (language_alloc_type_symbol): Set
4668 SYMBOL_SECTION.
4669 * symtab.c (initialize_objfile_symbol): Remove.
4670 (allocate_symbol): Remove.
4671 (allocate_template_symbol): Remove.
4672 * dwarf2/read.c (fixup_go_packaging): Use "new".
4673 (new_symbol): Use "new".
4674 (read_variable): Don't call initialize_objfile_symbol. Use
4675 "new".
4676 (read_func_scope): Use "new".
4677 * xcoffread.c (process_xcoff_symbol): Don't call
4678 initialize_objfile_symbol.
4679 (SYMBOL_DUP): Remove.
4680 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4681 "new".
4682 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4683 (allocate_template_symbol): Don't declare.
4684 (struct symbol): Add copy constructor. Change defaults.
4685 * jit.c (finalize_symtab): Use "new".
4686 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4687 Use "new".
4688 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4689 (common_block_end): Use "new".
4690 * mdebugread.c (parse_symbol): Use "new".
4691 (new_symbol): Likewise.
4692
4693 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4694
4695 * NEWS: Mention changes to help and apropos.
4696
4697 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4698
4699 * command.h (enum command_class): Improve comments, document
4700 that class_alias is for user-defined aliases, give the class
4701 name for each class, remove unused class_xdb.
4702 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4703 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4704 by a precise class.
4705 * infcmd.c (_initialize_infcmd): Likewise.
4706 * reverse.c (_initialize_reverse): Likewise.
4707 * stack.c (_initialize_stack): Likewise.
4708 * symfile.c (_initialize_symfile): Likewise.
4709 * tracepoint.c (_initialize_tracepoint): Likewise.
4710
4711 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4712
4713 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4714 when their aliased command is traversed.
4715 (help_cmd): Add fput_command_names_styled call to
4716 output command name and aliases when command has an alias.
4717
4718 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4719
4720 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4721 * cli/cli-decode.c (help_cmd_list): Declare as static,
4722 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4723 a command together with the command.
4724 (fput_command_name_styled, fput_command_names_styled): New functions.
4725 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4726 fput_command_name_styled.
4727 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4728 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4729
4730 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4731
4732 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4733 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4734 * command.h (cmd_show_list): Likewise.
4735 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4736 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4737
4738 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4739
4740 * unittests/command-def-selftests.c (traverse_command_structure):
4741 Verify all commands of a list have the same prefix command and
4742 that only the top cmdlist commands have a null prefix.
4743
4744 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4745
4746 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4747 as prefix, not one of its aliases.
4748 (set_cmd_prefix): Remove.
4749 (do_add_cmd): Centralize the setting of the prefix of a command, when
4750 command is defined after its full chain of prefix commands.
4751 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4752 (add_setshow_cmd_full): Likewise.
4753 (update_prefix_field_of_prefixed_commands): New function.
4754 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4755 update_prefix_field_of_prefixed_commands.
4756 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4757 addresses of remote_set_cmdlist and remote_show_cmdlist given
4758 as argument, not the address of an argument.
4759 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4760 * gdb/remote.c (_initialize_remote): Likewise.
4761
4762 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4763
4764 * cli/cli-cmds.c (alias_command): Check for an existing alias
4765 using lookup_cmd_composition, as valid_command_p is too strict
4766 and forbids aliases that are the prefix of an existing alias
4767 or command.
4768 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4769 command is properly recognised as a valid command.
4770
4771 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4772
4773 * unittests/help-doc-selftests.c: Rename to
4774 unittests/command-def-selftests.c
4775 * unittests/command-def-selftests.c (help_doc_tests): Update some
4776 comments.
4777 (command_structure_tests, traverse_command_structure): New namespace
4778 and function.
4779 (command_structure_invariants_tests): New function.
4780 (_initialize_command_def_selftests) Renamed from
4781 _initialize_help_doc_selftests, register command_structure_invariants
4782 selftest.
4783
4784 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4785
4786 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4787 an alias of 'show'.
4788
4789 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4790
4791 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4792 ada_is_fixed_point_type. Update all callers.
4793 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4794 all callers.
4795 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4796 Update all callers.
4797 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4798 print_fixed_point_type. Update all callers.
4799 * ada-valprint.c (ada_value_print_num): Replace call to
4800 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4801
4802 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4803
4804 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4805 processors.
4806 (cpu_supports_bts): Add CV_AMD case.
4807
4808 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4809 Simon Marchi <simon.marchi@efficios.com>
4810
4811 * infrun.c (stop_all_threads): Collect multiple wait events at
4812 each pass.
4813
4814 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4815
4816 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4817 type::code instead.
4818
4819 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4820
4821 * gdbtypes.h (struct type) <code, set_code>: New methods.
4822 (TYPE_CODE): Use type::code. Change all call sites used to set
4823 the code to use type::set_code instead.
4824
4825 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4826 Tom de Vries <tdevries@suse.de>
4827 Pedro Alves <palves@redhat.com>
4828
4829 PR threads/25478
4830 * infrun.c (stop_all_threads): Do NOT ignore
4831 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4832 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4833 received.
4834 (handle_no_resumed): Remove code handling a live inferior with no
4835 threads.
4836 * remote.c (has_single_non_exited_thread): New.
4837 (remote_target::update_thread_list): Do not delete a thread if is
4838 the last thread of the process.
4839 * thread.c (thread_select): Call delete_exited_threads instead of
4840 prune_threads.
4841
4842 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4843
4844 * infrun.c (stop_all_threads): Enable/disable thread events of all
4845 targets. Move a debug message denoting the end of the function
4846 into the SCOPED_EXIT block.
4847
4848 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4849
4850 * process-stratum-target.h: Include <set>.
4851 (all_non_exited_process_targets, switch_to_target_no_thread): New
4852 function declarations.
4853 * process-stratum-target.c (all_non_exited_process_targets)
4854 (switch_to_target_no_thread): New function implementations.
4855
4856 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4857
4858 * infrun.c (handle_inferior_event): Extract out a piece of code
4859 into...
4860 (mark_non_executing_threads): ...this new function.
4861
4862 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4863
4864 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4865 use.
4866
4867 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4868
4869 * regcache.c (regcache_read_pc_protected): New function
4870 implementation that returns 0 if the PC cannot read via
4871 'regcache_read_pc'.
4872 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4873 instead of 'regcache_read_pc'.
4874 (keep_going_pass_signal): Ditto.
4875
4876 2020-05-13 Tom Tromey <tromey@adacore.com>
4877
4878 * ada-lang.c (align_value): Remove.
4879 (ada_template_to_fixed_record_type_1): Use align_up.
4880
4881 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4882
4883 * async-event.c: Update the copyright year.
4884 * async-event.h: Update the copyright year.
4885
4886 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4887
4888 * objfiles.h (is_addr_in_objfile,
4889 shared_objfile_contains_address_p): Return bool.
4890 * objfile.c (is_addr_in_objfile,
4891 shared_objfile_contains_address_p): Return bool.
4892
4893 2020-05-11 Tom Tromey <tromey@adacore.com>
4894
4895 * cli/cli-cmds.c (info_command): Restore.
4896 (_initialize_cli_cmds): Use add_prefix_command for "info".
4897 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4898
4899 2020-05-11 Tom Tromey <tromey@adacore.com>
4900
4901 * ada-lang.c (ada_value_primitive_field): Now public.
4902 * ada-lang.h (ada_value_primitive_field): Declare.
4903 * ada-valprint.c (print_field_values): Use
4904 ada_value_primitive_field for wrapper fields.
4905
4906 2020-05-11 Tom de Vries <tdevries@suse.de>
4907
4908 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4909 MODULE_DOMAIN.
4910
4911 2020-05-11 Tom de Vries <tdevries@suse.de>
4912
4913 PR symtab/25941
4914 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4915 with length 0, if not gdb-produced.
4916 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4917
4918 2020-05-09 Tom de Vries <tdevries@suse.de>
4919
4920 PR gdb/25955
4921 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4922 calculation.
4923
4924 2020-05-09 Tom Tromey <tom@tromey.com>
4925
4926 * top.c (server_command): Now bool.
4927 * top.h (server_command): Now bool.
4928
4929 2020-05-08 Tom Tromey <tromey@adacore.com>
4930
4931 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4932 already being processed.
4933
4934 2020-05-08 Tom Tromey <tom@tromey.com>
4935
4936 * printcmd.c (struct display) <next>: Remove.
4937 <display>: New constructor.
4938 <exp_string>: Now a std::string.
4939 <enabled_p>: Now a bool.
4940 (display_number): Move definition earlier.
4941 (displays): Rename from display_chain. Now a std::vector.
4942 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4943 (display_command): Update.
4944 (do_one_display, disable_display)
4945 (enable_disable_display_command, do_enable_disable_display):
4946 Update.
4947 (free_display): Remove.
4948 (clear_displays): Rewrite.
4949 (delete_display): Update.
4950 (map_display_numbers): Use function_view. Remove "data"
4951 parameter. Update.
4952 (do_delete_display): Remove.
4953 (undisplay_command): Update.
4954 (do_one_display, do_displays, disable_display)
4955 (info_display_command): Update.
4956 (do_enable_disable_display): Remove.
4957 (enable_disable_display_command)
4958 (clear_dangling_display_expressions): Update.
4959
4960 2020-05-08 Tom Tromey <tom@tromey.com>
4961
4962 * symtab.c (set_symbol_cache_size)
4963 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4964 (maintenance_print_symbol_cache_statistics): Update.
4965 * symmisc.c (print_symbol_bcache_statistics)
4966 (print_objfile_statistics, maintenance_print_objfiles)
4967 (maintenance_info_symtabs, maintenance_check_symtabs)
4968 (maintenance_expand_symtabs, maintenance_info_line_tables):
4969 Update.
4970 * symfile-debug.c (set_debug_symfile): Update.
4971 * source.c (forget_cached_source_info): Update.
4972 * python/python.c (gdbpy_progspaces): Update.
4973 * psymtab.c (maintenance_info_psymtabs): Update.
4974 * probe.c (parse_probes): Update.
4975 * linespec.c (iterate_over_all_matching_symtabs)
4976 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4977 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4978 * exec.c (exec_target::close): Update.
4979 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4980 * breakpoint.c (print_one_breakpoint_location)
4981 (create_longjmp_master_breakpoint)
4982 (create_std_terminate_master_breakpoint): Update.
4983 * progspace.c (program_spaces): Now a std::vector.
4984 (maybe_new_address_space): Update.
4985 (add_program_space): Remove.
4986 (program_space::program_space): Update.
4987 (remove_program_space): Update.
4988 (number_of_program_spaces): Remove.
4989 (print_program_space, update_address_spaces): Update.
4990 * progspace.h (program_spaces): Change type.
4991 (ALL_PSPACES): Remove.
4992 (number_of_program_spaces): Don't declare.
4993 (struct program_space) <next>: Remove.
4994
4995 2020-05-08 Tom Tromey <tom@tromey.com>
4996
4997 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4998 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4999 (enable_break): Update.
5000 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5001 (frv_fdpic_find_canonical_descriptor): Update.
5002 (frv_fetch_objfile_link_map): Update.
5003 * progspace.c (program_space::free_all_objfiles): Update.
5004 (program_space::solibs): New method.
5005 * progspace.h (struct program_space) <solibs>: New method.
5006 * solist.h (master_so_list): Don't declare.
5007 (ALL_SO_LIBS): Remove.
5008 * solib.h (so_list_head): Remove.
5009 (update_solib_list): Update comment.
5010 * solib.c (master_so_list): Remove.
5011 (solib_used, update_solib_list, solib_add)
5012 (info_sharedlibrary_command, clear_solib)
5013 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5014
5015 2020-05-08 Tom Tromey <tom@tromey.com>
5016
5017 * extension.c (extension_languages): Now a std::array.
5018 (ALL_EXTENSION_LANGUAGES): Remove.
5019 (get_ext_lang_defn, get_ext_lang_of_file)
5020 (eval_ext_lang_from_control_command): Update.
5021 (finish_ext_lang_initialization)
5022 (auto_load_ext_lang_scripts_for_objfile)
5023 (ext_lang_type_printers::ext_lang_type_printers)
5024 (apply_ext_lang_type_printers)
5025 (ext_lang_type_printers::~ext_lang_type_printers)
5026 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5027 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5028 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5029 (get_matching_xmethod_workers, ext_lang_colorize)
5030 (ext_lang_before_prompt): Update.
5031 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5032
5033 2020-05-08 Tom Tromey <tom@tromey.com>
5034
5035 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5036 overload.
5037 <swap_string, m_string>: Remove.
5038 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5039 Update.
5040 * stabsread.c (define_symbol, read_type): Update.
5041 * linespec.c (find_linespec_symbols): Update.
5042 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5043 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5044 * dbxread.c (read_dbx_symtab): Update.
5045 * cp-support.h (cp_canonicalize_string_full)
5046 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5047 Return unique_xmalloc_ptr.
5048 * cp-support.c (inspect_type): Update.
5049 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5050 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5051 Likewise.
5052 * c-typeprint.c (print_name_maybe_canonical): Update.
5053 * break-catch-throw.c (check_status_exception_catchpoint):
5054 Update.
5055
5056 2020-05-08 Tom de Vries <tdevries@suse.de>
5057
5058 * infrun.c (follow_fork): Copy current_line and current_symtab to
5059 child thread.
5060
5061 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5062
5063 * async-event.c (struct async_signal_handler, struct
5064 async_event_handler): Reformat, remove typedef.
5065
5066 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5067
5068 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5069 access thistype->main_type->dyn_prop_list directly.
5070
5071 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5072
5073 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5074 (remove_dyn_prop): Remove. Update all users to use
5075 type::remove_dyn_prop.
5076 * gdbtypes.c (remove_dyn_prop): Rename to...
5077 (type::remove_dyn_prop): ... this.
5078
5079 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5080
5081 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5082 (add_dyn_prop): Remove. Update all users to use
5083 type::add_dyn_prop.
5084 * gdbtypes.c (add_dyn_prop): Rename to...
5085 (type::add_dyn_prop): ... this.
5086
5087 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5088
5089 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5090 (get_dyn_prop): Remove. Update all users to use
5091 type::dyn_prop.
5092 * gdbtypes.c (get_dyn_prop): Rename to...
5093 (type::dyn_prop): ... this.
5094
5095 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5096
5097 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5098
5099 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5100
5101 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5102 instruction, skip it if it's there.
5103
5104 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5105
5106 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5107
5108 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5109
5110 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5111 * gdbtypes.c (recursive_dump_type): Remove use of
5112 TYPE_INCOMPLETE.
5113
5114 2020-05-03 Tom Tromey <tom@tromey.com>
5115
5116 * breakpoint.c (catch_command, tcatch_command): Remove.
5117 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5118 add_show_prefix_cmd.
5119 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5120 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5121 Remove.
5122 (add_internal_problem_command): Use add_basic_prefix_cmd,
5123 add_show_prefix_cmd.
5124 * mips-tdep.c (set_mipsfpu_command): Remove.
5125 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5126 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5127 (_initialize_index_cache): Use add_basic_prefix_cmd.
5128 * memattr.c (dummy_cmd): Remove.
5129 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5130 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5131 (_initialize_tui_win): Use add_basic_prefix_cmd,
5132 add_show_prefix_cmd.
5133 * cli/cli-logging.c (set_logging_command): Remove.
5134 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5135 add_show_prefix_cmd.
5136 (show_logging_command): Remove.
5137 * target.c (target_command): Remove.
5138 (add_target): Use add_basic_prefix_cmd.
5139
5140 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5141
5142 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5143
5144 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5145
5146 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5147 info_command.
5148
5149 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5150
5151 * nbsd-nat.c (nbsd_enable_proc_events)
5152 (nbsd_nat_target::post_startup_inferior): Add.
5153 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5154 (nbsd_nat_target::update_thread_list): Rewrite.
5155 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5156 "PTRACE_LWP_CREATE".
5157 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5158
5159 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5160
5161 * stack.c (_initialize_stack): Remove duplicated creation
5162 of "frame" command and "f" alias.
5163
5164 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5165
5166 PR gdb/18706
5167 * gdbtypes.c (check_typedef): Calculate size of array of
5168 stubbed type.
5169
5170 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5171
5172 PR gdb/15559
5173 * i386-tdep.c (i386_push_dummy_call): Call
5174 i386_thiscall_push_dummy_call.
5175 (i386_thiscall_push_dummy_call): New function.
5176 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5177 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5178 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5179
5180 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5181
5182 * gdbarch.sh (do_read): Add shellcheck disable directive for
5183 warning SC2162.
5184
5185 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5186
5187 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5188 "referenced but not assigned" warning.
5189
5190 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5191
5192 * gdbarch.sh: Remove code that sets fallbackdefault.
5193
5194 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5195
5196 * gdbarch.sh: Use shell operators && and || instead of
5197 -a and -o.
5198
5199 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5200
5201 * gdbarch.sh: Use $(...) instead of `...`.
5202
5203 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5204
5205 * gdbarch.sh: Use double quotes around variables.
5206
5207 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5208
5209 * gdbarch.sh: Use %s with printf, instead of variables in the
5210 format string.
5211
5212 2020-04-29 Tom Tromey <tromey@adacore.com>
5213
5214 PR ada/25875:
5215 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5216 type fields here.
5217 (read_enumeration_type): Call
5218 update_enumeration_type_from_children later. Update comments.
5219 (process_enumeration_scope): Don't create type fields.
5220
5221 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5222
5223 * nbsd-tdep.c: Include "xml-syscall.h".
5224 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5225
5226 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5227
5228 * nbsd-nat.c: Include "sys/wait.h".
5229 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5230 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5231 (nbsd_nat_target::remove_exec_catchpoint)
5232 (nbsd_nat_target::set_syscall_catchpoint): Add.
5233 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5234 (nbsd_nat_target::insert_exec_catchpoint)
5235 (nbsd_nat_target::remove_exec_catchpoint)
5236 (nbsd_nat_target::set_syscall_catchpoint): Add.
5237 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5238 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5239 `nbsd_get_syscall_number'.
5240
5241 2020-04-29 Tom Tromey <tom@tromey.com>
5242
5243 * stack.c (print_block_frame_labels): Remove.
5244
5245 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5246
5247 PR gdb/17320
5248 * ada-valprint.c (val_print_packed_array_elements): Move array
5249 end bracket to new line.
5250 (ada_val_print_string): Remove extra spaces before first array
5251 element.
5252 * c-valprint.c (c_value_print_array): Likewise.
5253 * m2-valprint.c (m2_print_array_contents): Likewise.
5254 (m2_value_print_inner): Likewise.
5255 * p-valprint.c (pascal_value_print_inner): Likewise.
5256 * valprint.c (generic_val_print_array): Likewise.
5257 (value_print_array_elements): Move first array element and array
5258 end bracket to new line.
5259
5260 2020-04-29 Tom de Vries <tdevries@suse.de>
5261
5262 PR symtab/25889
5263 * linespec.c (find_method): Fix ix calculation.
5264
5265 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5266
5267 * syscalls/update-netbsd.sh: New file.
5268 * syscalls/netbsd.xml: Regenerate.
5269 * data-directory/Makefile.in: Register `netbsd.xml' in
5270 `SYSCALLS_FILES'.
5271
5272 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5273
5274 * syscalls/update-freebsd.sh: Add double quotes.
5275
5276 2020-04-28 Tom Tromey <tom@tromey.com>
5277
5278 * NEWS: Update.
5279 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5280 (cmdpy_init): Allow class_tui.
5281
5282 2020-04-28 Mark Williams <mark@myosotissp.com>
5283
5284 PR gdb/24480
5285 * dwarf2read.c: Add missing assingments to list_in_scope when
5286 start_symtab was already called.
5287
5288 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5289
5290 PR gdb/25881
5291 * dwarf2/read.c (offset_map_type): Use
5292 gdb:hash_enum<sect_offset> as hash function.
5293
5294 2020-04-28 Tom de Vries <tdevries@suse.de>
5295
5296 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5297 with DW_AT_signature.
5298
5299 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5300
5301 * configure.ac: Remove check for fs_base/gs_base in
5302 user_regs_struct.
5303 * configure: Re-generate.
5304 * config.in: Re-generate.
5305 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5306 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5307 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5308
5309 2020-04-27 Luis Machado <luis.machado@linaro.org>
5310
5311 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5312 problematic inline frame unwinding situation.
5313 * frame.c (frame_id_computed_p): New function.
5314 * frame.h (frame_id_computed_p): New prototype.
5315
5316 2020-04-26 Tom Tromey <tom@tromey.com>
5317
5318 * command.h (enum command_class) <class_pseudo>: Remove.
5319
5320 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5321
5322 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5323 and whitespace.
5324
5325 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5326
5327 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5328 `PT_GET_PROCESS_STATE' block.
5329
5330 2020-04-24 Tom Tromey <tom@tromey.com>
5331
5332 * symtab.h (symbol_get_demangled_name): Don't declare.
5333 * symtab.c (symbol_get_demangled_name): Remove.
5334 (general_symbol_info::natural_name)
5335 (general_symbol_info::demangled_name): Update.
5336
5337 2020-04-24 Tom Tromey <tom@tromey.com>
5338
5339 PR rust/25025:
5340 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5341
5342 2020-04-24 Tom Tromey <tom@tromey.com>
5343
5344 PR symtab/12707:
5345 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5346 exists.
5347 (new_symbol): Likewise.
5348 * compile/compile-object-load.c (get_out_value_type): Use
5349 symbol_matches_search_name.
5350
5351 2020-04-24 Tom Tromey <tom@tromey.com>
5352
5353 * dwarf2/read.c (add_partial_symbol): Do not call
5354 compute_and_set_names.
5355
5356 2020-04-24 Tom Tromey <tom@tromey.com>
5357
5358 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5359 overload.
5360
5361 2020-04-24 Tom Tromey <tom@tromey.com>
5362
5363 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5364 (add_psymbol_to_list): New overload. Make old overload call new
5365 one.
5366 * psympriv.h (add_psymbol_to_list): New overload.
5367
5368 2020-04-24 Tom Tromey <tom@tromey.com>
5369
5370 * dwarf2/read.c (partial_die_info::read) <case
5371 DW_AT_linkage_name>: Use value_as_string.
5372 (dwarf2_string_attr): Use value_as_string.
5373 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5374 method.
5375 * dwarf2/attribute.c (attribute::value_as_string): New method.
5376
5377 2020-04-24 Tom Tromey <tom@tromey.com>
5378
5379 * symtab.c (general_symbol_info::natural_name)
5380 (general_symbol_info::demangled_name): Check for language_rust.
5381
5382 2020-04-24 Tom Tromey <tom@tromey.com>
5383
5384 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5385 (dwarf2_physname): ... from here.
5386 (partial_die_info::read): Add Rust "{" hack.
5387
5388 2020-04-24 Tom Tromey <tom@tromey.com>
5389
5390 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5391 method.
5392 (symbol_set_demangled_name): Don't declare.
5393 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5394 symbol_set_demangled_name.
5395 (general_symbol_info::set_language)
5396 (general_symbol_info::compute_and_set_names): Update.
5397 * minsyms.c (minimal_symbol_reader::install): Update.
5398 * dwarf2/read.c (new_symbol): Update.
5399
5400 2020-04-24 Tom Tromey <tromey@adacore.com>
5401
5402 PR python/23662:
5403 * python/py-type.c (convert_field): Handle
5404 FIELD_LOC_KIND_DWARF_BLOCK.
5405 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5406 (typy_get_dynamic): Nw function.
5407 (type_object_getset): Add "dynamic".
5408 * NEWS: Add entry.
5409
5410 2020-04-24 Tom Tromey <tromey@adacore.com>
5411
5412 * ada-typeprint.c (print_choices, print_variant_part)
5413 (print_record_field_types_dynamic): New functions.
5414 (print_record_field_types): Use print_record_field_types_dynamic.
5415
5416 2020-04-24 Tom Tromey <tromey@adacore.com>
5417
5418 * dwarf2/read.c (handle_data_member_location): New overload.
5419 (dwarf2_add_field): Use it.
5420 (decode_locdesc): Add "computed" parameter. Update comment.
5421 * gdbtypes.c (is_dynamic_type_internal): Also look for
5422 FIELD_LOC_KIND_DWARF_BLOCK.
5423 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5424 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5425 virtual base classes.
5426 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5427 FIELD_LOC_KIND_DWARF_BLOCK.
5428
5429 2020-04-24 Tom Tromey <tromey@adacore.com>
5430
5431 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5432 * gdbtypes.c (is_dynamic_type_internal): Check
5433 TYPE_HAS_DYNAMIC_LENGTH.
5434 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5435 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5436 New macros.
5437 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5438 constant.
5439
5440 2020-04-24 Tom Tromey <tromey@adacore.com>
5441
5442 * dwarf2/read.c (struct variant_field): Rewrite.
5443 (struct variant_part_builder): New.
5444 (struct nextfield): Remove "variant" field. Add "offset".
5445 (struct field_info): Add "current_variant_part" and
5446 "variant_parts".
5447 (alloc_discriminant_info): Remove.
5448 (alloc_rust_variant): New function.
5449 (quirk_rust_enum): Update.
5450 (dwarf2_add_field): Set "offset" member. Don't handle
5451 DW_TAG_variant_part.
5452 (offset_map_type): New typedef.
5453 (convert_variant_range, create_one_variant)
5454 (create_one_variant_part, create_variant_parts)
5455 (add_variant_property): New functions.
5456 (dwarf2_attach_fields_to_type): Call add_variant_property.
5457 (read_structure_type): Don't handle DW_TAG_variant_part.
5458 (handle_variant_part, handle_variant): New functions.
5459 (handle_struct_member_die): Use them.
5460 (process_structure_scope): Don't handle variant parts.
5461 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5462 (struct discriminant_info): Remove.
5463 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5464 (struct main_type) <flag_discriminated_union>: Remove.
5465 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5466 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5467 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5468 Update.
5469 * valops.c (value_union_variant): Remove.
5470 * value.h (value_union_variant): Don't declare.
5471
5472 2020-04-24 Tom Tromey <tromey@adacore.com>
5473
5474 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5475 (ada_value_primitive_packed_val): Update.
5476 * ada-valprint.c (ada_value_print_1): Update.
5477 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5478 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5479 just an address. Use evaluate_for_locexpr_baton.
5480 (dwarf2_evaluate_property): Update.
5481 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5482 array_view.
5483 * findvar.c (default_read_var_value): Update.
5484 * gdbtypes.c (compute_variant_fields_inner)
5485 (resolve_dynamic_type_internal): Update.
5486 (resolve_dynamic_type): Change type of valaddr parameter.
5487 * gdbtypes.h (resolve_dynamic_type): Update.
5488 * valarith.c (value_subscripted_rvalue): Update.
5489 * value.c (value_from_contents_and_address): Update.
5490
5491 2020-04-24 Tom Tromey <tromey@adacore.com>
5492
5493 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5494 "push_initial_value" parameter.
5495 (dwarf2_evaluate_property): Likewise.
5496 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5497
5498 2020-04-24 Tom Tromey <tromey@adacore.com>
5499
5500 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5501 (variant::matches, compute_variant_fields_recurse)
5502 (compute_variant_fields_inner, compute_variant_fields): New
5503 functions.
5504 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5505 Use resolved_type after type is made.
5506 (operator==): Add new cases.
5507 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5508 (struct discriminant_range, struct variant, struct variant_part):
5509 New.
5510 (union dynamic_prop_data) <variant_parts, original_type>: New
5511 members.
5512 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5513 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5514 constants.
5515 * value.c (unpack_bits_as_long): Now public.
5516 * value.h (unpack_bits_as_long): Declare.
5517
5518 2020-04-24 Tom Tromey <tromey@adacore.com>
5519
5520 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5521 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5522
5523 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5524
5525 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5526
5527 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5528
5529 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5530 (remove_fork_catchpoint, post_startup_inferior)
5531 (post_attach): Move...
5532 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5533 (remove_fork_catchpoint, post_startup_inferior)
5534 (post_attach): ...here.
5535 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5536 (remove_fork_catchpoint, post_startup_inferior)
5537 (post_attach): Move...
5538 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5539 (remove_fork_catchpoint, post_startup_inferior)
5540 (post_attach): ...here.
5541
5542 2020-04-24 Tom Tromey <tromey@adacore.com>
5543
5544 * nat/windows-nat.h (struct windows_thread_info)
5545 <pc_adjusted>: New member.
5546 * windows-nat.c (windows_fetch_one_register): Check
5547 pc_adjusted.
5548 (windows_nat_target::get_windows_debug_event)
5549 (windows_nat_target::wait): Set pc_adjusted.
5550
5551 2020-04-24 Tom de Vries <tdevries@suse.de>
5552
5553 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5554 Run gdb-add-index inside temp dir.
5555
5556 2020-04-23 Tom Tromey <tromey@adacore.com>
5557
5558 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5559 in loop.
5560
5561 2020-04-23 Luis Machado <luis.machado@linaro.org>
5562
5563 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5564 get_frame_register instead of gdbarch_unwind_pc.
5565
5566 2020-04-23 Tom de Vries <tdevries@suse.de>
5567
5568 * symtab.c (lookup_global_symbol): Prefer def over decl.
5569
5570 2020-04-23 Tom de Vries <tdevries@suse.de>
5571
5572 PR symtab/25807
5573 * block.c (best_symbol, better_symbol): Promote to external.
5574 * block.h (best_symbol, better_symbol): Declare.
5575 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5576 decl.
5577
5578 2020-04-23 Tom Tromey <tromey@adacore.com>
5579
5580 PR ada/25837:
5581 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5582 "const char *", not a "const std::string &".
5583 <name_and_matcher::operator==>: Update.
5584 * unittests/lookup_name_info-selftests.c: Change type of
5585 "result".
5586
5587 2020-04-23 Tom Tromey <tom@tromey.com>
5588
5589 * inferior.h (iterate_over_inferiors): Don't declare.
5590 * inferior.c (iterate_over_inferiors): Remove.
5591 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5592 Remove.
5593 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5594 use iterate_over_inferiors.
5595 (darwin_resume_inferior_it)
5596 (struct resume_inferior_threads_param)
5597 (darwin_resume_inferior_threads_it): Remove.
5598 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5599
5600 2020-04-23 Tom de Vries <tdevries@suse.de>
5601
5602 * blockframe.c (find_pc_partial_function): Use
5603 find_pc_sect_compunit_symtab rather than
5604 objfile->sf->qf->find_pc_sect_compunit_symtab.
5605
5606 2020-04-22 Tom de Vries <tdevries@suse.de>
5607
5608 PR symtab/25764
5609 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5610 in psymtabs.
5611
5612 2020-04-22 Tom de Vries <tdevries@suse.de>
5613
5614 PR symtab/25801
5615 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5616 symtabs.
5617
5618 2020-04-22 Tom de Vries <tdevries@suse.de>
5619
5620 PR symtab/25700
5621 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5622 CU if already created.
5623
5624 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5625
5626 * infrun.c (displaced_step_fixup): Switch to the event_thread
5627 before calling displaced_step_restore, not after.
5628
5629 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5630
5631 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5632 its inferior is not recorded by us.
5633 (record_btrace_target_open): Replace call to
5634 all_non_exited_threads () with call to current_inferior
5635 ()->non_exited_threads ().
5636 (record_btrace_target::stop_recording): Likewise.
5637 (record_btrace_target::close): Likewise.
5638 (record_btrace_target::wait): Likewise.
5639 (record_btrace_target::record_stop_replaying): Likewise.
5640
5641 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5642
5643 * btrace.c (btrace_enable): Throw an error on double enables and
5644 when enabling recording fails.
5645 (btrace_disable): Throw an error if the thread is not recorded.
5646
5647 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5648
5649 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5650 request if we do not have a thread_info.
5651
5652 2020-04-21 Tom de Vries <tdevries@suse.de>
5653
5654 PR gdb/25471
5655 * thread.c
5656 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5657 exception in get_frame_id.
5658
5659 2020-04-20 Tom Tromey <tromey@adacore.com>
5660
5661 * python/python.c (struct gdbpy_event): Mark move constructor as
5662 noexcept.
5663 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5664 constructor as noexcept.
5665 * completer.h (struct completion_result): Mark move constructor as
5666 noexcept.
5667 * completer.c (completion_result::completion_result): Use
5668 initialization style. Don't call reset_match_list.
5669
5670 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5671
5672 * MAINTAINERS (Write After Approval): Add myself.
5673
5674 2020-04-18 Tom Tromey <tom@tromey.com>
5675
5676 * windows-tdep.c (init_w32_command_list)
5677 (w32_prefix_command_valid): Restore.
5678 (_initialize_windows_tdep): Call init_w32_command_list.
5679
5680 2020-04-18 Tom Tromey <tom@tromey.com>
5681
5682 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5683 * value.c (value_fn_field): Update.
5684 * valops.c (find_function_in_inferior)
5685 (value_allocate_space_in_inferior): Update.
5686 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5687 Update.
5688 * tui/tui-source.c (tui_source_window::set_contents): Update.
5689 * symtab.c (lookup_global_or_static_symbol)
5690 (find_function_start_sal_1, skip_prologue_sal)
5691 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5692 * symmisc.c (dump_msymbols, dump_symtab_1)
5693 (maintenance_print_one_line_table): Update.
5694 * symfile.c (init_entry_point_info, section_is_mapped)
5695 (list_overlays_command, simple_read_overlay_table)
5696 (simple_overlay_update_1): Update.
5697 * stap-probe.c (handle_stap_probe): Update.
5698 * stabsread.c (dbx_init_float_type, define_symbol)
5699 (read_one_struct_field, read_enum_type, read_range_type): Update.
5700 * source.c (info_line_command): Update.
5701 * python/python.c (gdbpy_source_objfile_script)
5702 (gdbpy_execute_objfile_script): Update.
5703 * python/py-type.c (save_objfile_types): Update.
5704 * python/py-objfile.c (py_free_objfile): Update.
5705 * python/py-inferior.c (python_new_objfile): Update.
5706 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5707 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5708 (maintenance_check_psymtabs): Update.
5709 * printcmd.c (info_address_command): Update.
5710 * objfiles.h (struct objfile) <arch>: New method, from
5711 get_objfile_arch.
5712 (get_objfile_arch): Don't declare.
5713 * objfiles.c (get_objfile_arch): Remove.
5714 (filter_overlapping_sections): Update.
5715 * minsyms.c (msymbol_is_function): Update.
5716 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5717 (output_nondebug_symbol): Update.
5718 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5719 (mdebug_expand_psymtab): Update.
5720 * machoread.c (macho_add_oso_symfile): Update.
5721 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5722 Update.
5723 * linux-fork.c (checkpoint_command): Update.
5724 * linespec.c (convert_linespec_to_sals): Update.
5725 * jit.c (finalize_symtab): Update.
5726 * infrun.c (insert_exception_resume_from_probe): Update.
5727 * ia64-tdep.c (ia64_find_unwind_table): Update.
5728 * hppa-tdep.c (internalize_unwinds): Update.
5729 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5730 Update.
5731 * gcore.c (call_target_sbrk): Update.
5732 * elfread.c (record_minimal_symbol, elf_symtab_read)
5733 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5734 (elf_gnu_ifunc_resolve_by_got): Update.
5735 * dwarf2/read.c (create_addrmap_from_index)
5736 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5737 (read_debug_names_from_section)
5738 (process_psymtab_comp_unit_reader, add_partial_symbol)
5739 (add_partial_subprogram, process_full_comp_unit)
5740 (read_file_scope, read_func_scope, read_lexical_block_scope)
5741 (read_call_site_scope, dwarf2_ranges_read)
5742 (dwarf2_record_block_ranges, dwarf2_add_field)
5743 (mark_common_block_symbol_computed, read_tag_pointer_type)
5744 (read_tag_string_type, dwarf2_init_float_type)
5745 (dwarf2_init_complex_target_type, read_base_type)
5746 (partial_die_info::read, partial_die_info::read)
5747 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5748 (dwarf2_fetch_die_loc_sect_off): Update.
5749 * dwarf2/loc.c (dwarf2_find_location_expression)
5750 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5751 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5752 (dwarf2_loc_desc_get_symbol_read_needs)
5753 (locexpr_describe_location_piece, locexpr_describe_location_1)
5754 (loclist_describe_location): Update.
5755 * dwarf2/index-write.c (write_debug_names): Update.
5756 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5757 * dtrace-probe.c (dtrace_process_dof): Update.
5758 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5759 (process_one_symbol): Update.
5760 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5761 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5762 (coff_read_enum_type): Update.
5763 * cli/cli-cmds.c (edit_command, list_command): Update.
5764 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5765 * breakpoint.c (create_overlay_event_breakpoint)
5766 (create_longjmp_master_breakpoint)
5767 (create_std_terminate_master_breakpoint)
5768 (create_exception_master_breakpoint, get_sal_arch): Update.
5769 * block.c (block_gdbarch): Update.
5770 * annotate.c (annotate_source_line): Update.
5771
5772 2020-04-17 Tom Tromey <tromey@adacore.com>
5773
5774 * auto-load.c (show_auto_load_cmd): Remove.
5775 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5776 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5777 (maintenance_print_arc_command): Remove.
5778 * tui/tui-win.c (tui_command): Remove.
5779 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5780 * tui/tui-layout.c (tui_layout_command): Remove.
5781 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5782 * python/python.c (user_set_python, user_show_python): Remove.
5783 (_initialize_python): Use add_basic_prefix_cmd,
5784 add_show_prefix_cmd.
5785 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5786 (install_gdb_commands): Use add_basic_prefix_cmd,
5787 add_show_prefix_cmd.
5788 (info_guile_command): Remove.
5789 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5790 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5791 add_show_prefix_cmd.
5792 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5793 Remove do_set and do_show parameters.
5794 * cli/cli-style.c (set_style, show_style): Remove.
5795 (_initialize_cli_style): Use add_basic_prefix_cmd,
5796 add_show_prefix_cmd.
5797 (cli_style_option::add_setshow_commands): Remove do_set and
5798 do_show parameters.
5799 (cli_style_option::add_setshow_commands): Use
5800 add_basic_prefix_cmd, add_show_prefix_cmd.
5801 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5802 (set_style_name): Remove.
5803 * cli/cli-dump.c (dump_command, append_command): Remove.
5804 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5805 (tekhex_dump_command, binary_dump_command)
5806 (binary_append_command): Remove.
5807 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5808 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5809 (init_w32_command_list): Remove; move into ...
5810 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5811 * valprint.c (set_print, show_print, set_print_raw)
5812 (show_print_raw): Remove.
5813 (_initialize_valprint): Use add_basic_prefix_cmd,
5814 add_show_prefix_cmd.
5815 * typeprint.c (set_print_type, show_print_type): Remove.
5816 (_initialize_typeprint): Use add_basic_prefix_cmd,
5817 add_show_prefix_cmd.
5818 * record.c (set_record_command, show_record_command): Remove.
5819 (_initialize_record): Use add_basic_prefix_cmd,
5820 add_show_prefix_cmd.
5821 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5822 add_show_prefix_cmd.
5823 (info_command, show_command, set_debug, show_debug): Remove.
5824 * top.h (set_history, show_history): Don't declare.
5825 * top.c (set_history, show_history): Remove.
5826 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5827 (unset_tdesc_cmd): Remove.
5828 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5829 add_show_prefix_cmd.
5830 * symtab.c (info_module_command): Remove.
5831 (_initialize_symtab): Use add_basic_prefix_cmd.
5832 * symfile.c (overlay_command): Remove.
5833 (_initialize_symfile): Use add_basic_prefix_cmd.
5834 * sparc64-tdep.c (info_adi_command): Remove.
5835 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5836 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5837 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5838 add_show_prefix_cmd.
5839 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5840 (_initialize_serial): Use add_basic_prefix_cmd,
5841 add_show_prefix_cmd.
5842 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5843 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5844 add_show_prefix_cmd.
5845 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5846 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5847 add_show_prefix_cmd.
5848 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5849 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5850 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5851 add_show_prefix_cmd.
5852 * remote.c (remote_command, set_remote_cmd): Remove.
5853 (_initialize_remote): Use add_basic_prefix_cmd.
5854 * record-full.c (set_record_full_command)
5855 (show_record_full_command): Remove.
5856 (_initialize_record_full): Use add_basic_prefix_cmd,
5857 add_show_prefix_cmd.
5858 * record-btrace.c (cmd_set_record_btrace)
5859 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5860 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5861 (cmd_show_record_btrace_pt): Remove.
5862 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5863 add_show_prefix_cmd.
5864 * ravenscar-thread.c (set_ravenscar_command)
5865 (show_ravenscar_command): Remove.
5866 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5867 add_show_prefix_cmd.
5868 * mips-tdep.c (show_mips_command, set_mips_command)
5869 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5870 add_show_prefix_cmd.
5871 * maint.c (maintenance_command, maintenance_info_command)
5872 (maintenance_check_command, maintenance_print_command)
5873 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5874 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5875 add_show_prefix_cmd.
5876 (show_per_command_cmd): Remove.
5877 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5878 Remove.
5879 (maintenance_show_test_settings_cmd): Remove.
5880 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5881 add_show_prefix_cmd.
5882 * maint-test-options.c (maintenance_test_options_command):
5883 Remove.
5884 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5885 * macrocmd.c (macro_command): Remove
5886 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5887 * language.c (set_check, show_check): Remove.
5888 (_initialize_language): Use add_basic_prefix_cmd,
5889 add_show_prefix_cmd.
5890 * infcmd.c (unset_command): Remove.
5891 (_initialize_infcmd): Use add_basic_prefix_cmd.
5892 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5893 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5894 add_show_prefix_cmd.
5895 * go32-nat.c (go32_info_dos_command): Remove.
5896 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5897 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5898 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5899 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5900 (_initialize_frame): Use add_basic_prefix_cmd,
5901 add_show_prefix_cmd.
5902 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5903 (_initialize_dcache): Use add_basic_prefix_cmd,
5904 add_show_prefix_cmd.
5905 * cp-support.c (maint_cplus_command): Remove.
5906 (_initialize_cp_support): Use add_basic_prefix_cmd.
5907 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5908 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5909 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5910 add_basic_prefix_cmd, add_show_prefix_cmd.
5911 * breakpoint.c (save_command): Remove.
5912 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5913 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5914 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5915 add_show_prefix_cmd.
5916 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5917 (set_ada_command, show_ada_command): Remove.
5918 (_initialize_ada_language): Use add_basic_prefix_cmd,
5919 add_show_prefix_cmd.
5920 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5921
5922 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5923
5924 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5925 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5926
5927 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5928
5929 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5930 warning messages.
5931
5932 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5933
5934 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5935 import table is not at beginning of .idata section.
5936
5937 2020-04-16 Pedro Alves <palves@redhat.com>
5938
5939 * inferior.c (delete_inferior): Use delete operator directly
5940 instead of delete_program_space.
5941 * progspace.c (add_program_space): New, factored out from
5942 program_space::program_space.
5943 (remove_program_space): New, factored out from
5944 delete_program_space.
5945 (program_space::program_space): Remove intro comment. Rewrite.
5946 (program_space::~program_space): Remove intro comment. Call
5947 remove_program_space.
5948 (delete_program_space): Delete.
5949 * progspace.h (program_space::program_space): Make explicit. Move
5950 intro comment here, adjusted.
5951 (program_space::~program_space): Move intro comment here,
5952 adjusted.
5953 (delete_program_space): Remove.
5954
5955 2020-04-16 Tom Tromey <tromey@adacore.com>
5956
5957 * windows-nat.c (windows_nat::handle_access_violation): New
5958 function.
5959 * nat/windows-nat.h (handle_access_violation): Declare.
5960 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5961 windows-nat.c. Call handle_access_violation.
5962
5963 2020-04-16 Tom de Vries <tdevries@suse.de>
5964
5965 PR symtab/25791
5966 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5967 CUs without psymtab.
5968
5969 2020-04-16 Kevin Buettner <kevinb@redhat.com>
5970
5971 * python/python.c (do_start_initialization): Don't call
5972 PyEval_InitThreads for Python 3.9 and beyond.
5973
5974 2020-04-15 Kamil Rytarowski <n54@gmx.com>
5975
5976 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5977 thread functions.
5978 (obsd_nat_target::wait): Likewise.
5979
5980 2020-04-15 Tom Tromey <tromey@adacore.com>
5981
5982 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5983 (DEBUG_EXCEPT): Use debug_printf.
5984
5985 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5986
5987 * completer.c (class completion_tracker::completion_hash_entry)
5988 <hash_name>: New member function.
5989 (completion_tracker::discard_completions): New callback to hash a
5990 completion_hash_entry, pass this to htab_create_alloc.
5991
5992 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5993
5994 * windows-nat.c (windows_make_so): Warn rather than stopping with
5995 an error if realpath() fails.
5996
5997 2020-04-14 Kamil Rytarowski <n54@gmx.com>
5998
5999 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6000 (nbsd_nat_target::info_proc): Add do_status.
6001
6002 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6003 Tom de Vries <tdevries@suse.de>
6004
6005 PR symtab/25718
6006 * psympriv.h (struct partial_symtab::read_symtab)
6007 (struct partial_symtab::expand_psymtab)
6008 (struct partial_symtab::read_dependencies): Update comments.
6009 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6010 read_symtab for includer.
6011 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6012 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6013 (struct dwarf2_include_psymtab::m_readin): Remove.
6014 (struct dwarf2_include_psymtab::includer): New member function.
6015 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6016
6017 2020-04-14 Tom de Vries <tdevries@suse.de>
6018
6019 PR symtab/25720
6020 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6021 with NULL symbol_matcher and lookup_name.
6022 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6023 and lookup_name.
6024 * dwarf2/read.c (dw2_expand_symtabs_matching)
6025 (dw2_debug_names_expand_symtabs_matching): Same.
6026 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6027 Make lookup_name a pointer. Update comment.
6028 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6029 lookup_name being a pointer.
6030 * symfile.c (expand_symtabs_matching): Same.
6031 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6032 * linespec.c (iterate_over_all_matching_symtabs): Same.
6033
6034 2020-04-13 Tom Tromey <tom@tromey.com>
6035
6036 * run-on-main-thread.c: Update include.
6037 * unittests/main-thread-selftests.c: Update include.
6038 * tui/tui-win.c: Update include.
6039 * tui/tui-io.c: Update include.
6040 * tui/tui-interp.c: Update include.
6041 * tui/tui-hooks.c: Update include.
6042 * top.h: Update include.
6043 * top.c: Update include.
6044 * ser-base.c: Update include.
6045 * remote.c: Update include.
6046 * remote-notif.c: Update include.
6047 * remote-fileio.c: Update include.
6048 * record-full.c: Update include.
6049 * record-btrace.c: Update include.
6050 * python/python.c: Update include.
6051 * posix-hdep.c: Update include.
6052 * mingw-hdep.c: Update include.
6053 * mi/mi-main.c: Update include.
6054 * mi/mi-interp.c: Update include.
6055 * main.c: Update include.
6056 * linux-nat.c: Update include.
6057 * interps.c: Update include.
6058 * infrun.c: Update include.
6059 * inf-loop.c: Update include.
6060 * event-top.c: Update include.
6061 * event-loop.c: Move to ../gdbsupport/.
6062 * event-loop.h: Move to ../gdbsupport/.
6063 * async-event.h: Update include.
6064 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6065
6066 2020-04-13 Tom Tromey <tom@tromey.com>
6067
6068 * tui/tui-win.c: Include async-event.h.
6069 * remote.c: Include async-event.h.
6070 * remote-notif.c: Include async-event.h.
6071 * record-full.c: Include async-event.h.
6072 * record-btrace.c: Include async-event.h.
6073 * infrun.c: Include async-event.h.
6074 * event-top.c: Include async-event.h.
6075 * event-loop.h: Move some declarations to async-event.h.
6076 * event-loop.c: Don't include ser-event.h or top.h. Move some
6077 code to async-event.c.
6078 * async-event.h: New file.
6079 * async-event.c: New file.
6080 * Makefile.in (COMMON_SFILES): Add async-event.c.
6081 (HFILES_NO_SRCDIR): Add async-event.h.
6082
6083 2020-04-13 Tom Tromey <tom@tromey.com>
6084
6085 * utils.c (flush_streams): New function.
6086 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6087
6088 2020-04-13 Tom Tromey <tom@tromey.com>
6089
6090 * event-loop.c (handle_file_event): Use warning, not
6091 printf_unfiltered.
6092
6093 2020-04-13 Tom Tromey <tom@tromey.com>
6094
6095 * event-loop.c: Include <chrono>.
6096
6097 2020-04-13 Tom Tromey <tom@tromey.com>
6098
6099 * gdb_select.h: Move to ../gdbsupport/.
6100 * event-loop.c: Update include path.
6101 * top.c: Update include path.
6102 * ser-base.c: Update include path.
6103 * ui-file.c: Update include path.
6104 * ser-tcp.c: Update include path.
6105 * guile/scm-ports.c: Update include path.
6106 * posix-hdep.c: Update include path.
6107 * ser-unix.c: Update include path.
6108 * gdb_usleep.c: Update include path.
6109 * mingw-hdep.c: Update include path.
6110 * inflow.c: Update include path.
6111 * infrun.c: Update include path.
6112 * event-top.c: Update include path.
6113
6114 2020-04-13 Tom Tromey <tom@tromey.com>
6115
6116 * configure: Rebuild.
6117 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6118
6119 2020-04-13 Tom Tromey <tom@tromey.com>
6120
6121 * event-loop.h (start_event_loop): Don't declare.
6122 * event-loop.c (start_event_loop): Move...
6123 * main.c (start_event_loop): ...here. Now static.
6124
6125 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6126
6127 * MAINTAINERS: Update my email address.
6128
6129 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6130
6131 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6132 IP_ALL.
6133
6134 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6135
6136 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6137 (nbsd_nat_target::info_proc): Add do_cmdline.
6138
6139 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6140
6141 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6142 (nbsd_nat_target::info_proc): Add do_cwd.
6143
6144 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6145
6146 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6147
6148 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6149
6150 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6151 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6152 (nbsd_nat_target::info_proc): New functions.
6153 * nbsd-nat.c (kinfo_get_vmmap): New function.
6154 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6155 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6156 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6157 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6158 functions.
6159 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6160 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6161 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6162 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6163 (KINFO_VME_FLAG_GROWS_DOWN): New.
6164
6165 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6166
6167 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6168 bit shift.
6169
6170 2020-04-10 Tom Tromey <tromey@adacore.com>
6171
6172 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6173
6174 2020-04-10 Tom Tromey <tromey@adacore.com>
6175
6176 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6177 separate debug files.
6178
6179 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6180
6181 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6182 Move to...
6183 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6184 ... here.
6185 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6186 Check for STATUS_WX86_BREAKPOINT.
6187 (windows_nat_target::wait): Same.
6188
6189 2020-04-10 Tom de Vries <tdevries@suse.de>
6190
6191 PR cli/25808
6192 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6193
6194 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6195
6196 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6197 (Write After Approval): Remove Tom de Vries.
6198
6199 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6200
6201 revert partially:
6202 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6203
6204 * buildsym.c (record_line): Fix undefined behavior and preserve
6205 lines at eof.
6206
6207 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6208
6209 * auxv.h (svr4_auxv_parse): New.
6210 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6211 and generic_auxv_parse.
6212 (svr4_auxv_parse): Add.
6213 * obsd-tdep.c: Include "auxv.h".
6214 (obsd_auxv_parse): Remove.
6215 (obsd_init_abi): Remove comment.
6216 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6217 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6218 * nbsd-tdep.c: Include "auxv.h".
6219 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6220
6221 2020-04-08 Tom Tromey <tromey@adacore.com>
6222
6223 * nat/windows-nat.h (last_wait_event): Don't declare.
6224 (wait_for_debug_event): Update comment.
6225 * nat/windows-nat.c (last_wait_event): Now static.
6226
6227 2020-04-08 Tom Tromey <tromey@adacore.com>
6228
6229 * windows-nat.c (wait_for_debug_event): Move to
6230 nat/windows-nat.c.
6231 * nat/windows-nat.h (wait_for_debug_event): Declare.
6232 * nat/windows-nat.c (wait_for_debug_event): Move from
6233 windows-nat.c. No longer static.
6234
6235 2020-04-08 Tom Tromey <tromey@adacore.com>
6236
6237 * windows-nat.c (get_windows_debug_event): Use
6238 fetch_pending_stop.
6239 * nat/windows-nat.h (fetch_pending_stop): Declare.
6240 * nat/windows-nat.c (fetch_pending_stop): New function.
6241
6242 2020-04-08 Tom Tromey <tromey@adacore.com>
6243
6244 * windows-nat.c (windows_continue): Use matching_pending_stop and
6245 continue_last_debug_event.
6246 * nat/windows-nat.h (matching_pending_stop)
6247 (continue_last_debug_event): Declare.
6248 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6249 (matching_pending_stop, continue_last_debug_event): New
6250 functions.
6251
6252 2020-04-08 Tom Tromey <tromey@adacore.com>
6253
6254 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6255 (handle_exception_result): Move to nat/windows-nat.h.
6256 (DEBUG_EXCEPTION_SIMPLE): Remove.
6257 (windows_nat::handle_ms_vc_exception): New function.
6258 (handle_exception): Move to nat/windows-nat.c.
6259 (get_windows_debug_event): Update.
6260 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6261 nat/windows-nat.c.
6262 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6263 (handle_exception_result): Move from windows-nat.c.
6264 (handle_exception): Declare.
6265 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6266 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6267 windows-nat.c.
6268
6269 2020-04-08 Tom Tromey <tromey@adacore.com>
6270
6271 * windows-nat.c (exception_count, event_count): Remove.
6272 (handle_exception, get_windows_debug_event)
6273 (do_initial_windows_stuff): Update.
6274
6275 2020-04-08 Tom Tromey <tromey@adacore.com>
6276
6277 * windows-nat.c (windows_nat::handle_load_dll)
6278 (windows_nat::handle_unload_dll): Rename. No longer static.
6279 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6280 Declare.
6281
6282 2020-04-08 Tom Tromey <tromey@adacore.com>
6283
6284 * complaints.h (stop_whining): Declare at top-level.
6285 (complaint): Don't declare stop_whining.
6286
6287 2020-04-08 Tom Tromey <tromey@adacore.com>
6288
6289 * windows-nat.c (windows_nat::handle_output_debug_string):
6290 Rename. No longer static.
6291 * nat/windows-nat.h (handle_output_debug_string): Declare.
6292
6293 2020-04-08 Tom Tromey <tromey@adacore.com>
6294
6295 * windows-nat.c (current_process_handle, current_process_id)
6296 (main_thread_id, last_sig, current_event, last_wait_event)
6297 (current_windows_thread, desired_stop_thread_id, pending_stops)
6298 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6299 (display_selectors, fake_create_process)
6300 (get_windows_debug_event): Update.
6301 * nat/windows-nat.h (current_process_handle, current_process_id)
6302 (main_thread_id, last_sig, current_event, last_wait_event)
6303 (current_windows_thread, desired_stop_thread_id, pending_stops)
6304 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6305 * nat/windows-nat.c (current_process_handle, current_process_id)
6306 (main_thread_id, last_sig, current_event, last_wait_event)
6307 (current_windows_thread, desired_stop_thread_id, pending_stops)
6308 (siginfo_er): New globals. Move from windows-nat.c.
6309
6310 2020-04-08 Tom Tromey <tromey@adacore.com>
6311
6312 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6313 (handle_load_dll): Update.
6314 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6315
6316 2020-04-08 Tom Tromey <tromey@adacore.com>
6317
6318 * windows-nat.c (enum thread_disposition_type): Move to
6319 nat/windows-nat.h.
6320 (windows_nat::thread_rec): Rename from thread_rec. No longer
6321 static.
6322 (windows_add_thread, windows_nat_target::fetch_registers)
6323 (windows_nat_target::store_registers, handle_exception)
6324 (windows_nat_target::resume, get_windows_debug_event)
6325 (windows_nat_target::get_tib_address)
6326 (windows_nat_target::thread_name)
6327 (windows_nat_target::thread_alive): Update.
6328 * nat/windows-nat.h (enum thread_disposition_type): Move from
6329 windows-nat.c.
6330 (thread_rec): Declare.
6331
6332 2020-04-08 Tom Tromey <tromey@adacore.com>
6333
6334 * windows-nat.c: Add "using namespace".
6335 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6336 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6337
6338 2020-04-08 Tom Tromey <tromey@adacore.com>
6339
6340 * nat/windows-nat.h (struct windows_thread_info): Declare
6341 destructor.
6342 * nat/windows-nat.c (~windows_thread_info): New.
6343
6344 2020-04-08 Tom Tromey <tromey@adacore.com>
6345
6346 PR gdb/22992
6347 * windows-nat.c (current_event): Update comment.
6348 (last_wait_event, desired_stop_thread_id): New globals.
6349 (struct pending_stop): New.
6350 (pending_stops): New global.
6351 (windows_nat_target) <stopped_by_sw_breakpoint>
6352 <supports_stopped_by_sw_breakpoint>: New methods.
6353 (windows_fetch_one_register): Add assertions. Adjust PC.
6354 (windows_continue): Handle pending stops. Suspend other threads
6355 when stepping. Use last_wait_event
6356 (wait_for_debug_event): New function.
6357 (get_windows_debug_event): Use wait_for_debug_event. Handle
6358 pending stops. Queue spurious stops.
6359 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6360 (windows_nat_target::kill): Use wait_for_debug_event.
6361 * nat/windows-nat.h (struct windows_thread_info)
6362 <stopped_at_software_breakpoint>: New field.
6363 * nat/windows-nat.c (windows_thread_info::resume): Clear
6364 stopped_at_software_breakpoint.
6365
6366 2020-04-08 Tom Tromey <tromey@adacore.com>
6367
6368 * windows-nat.c (enum thread_disposition_type): New.
6369 (thread_rec): Replace "get_context" parameter with "disposition";
6370 change type.
6371 (windows_add_thread, windows_nat_target::fetch_registers)
6372 (windows_nat_target::store_registers, handle_exception)
6373 (windows_nat_target::resume, get_windows_debug_event)
6374 (windows_nat_target::get_tib_address)
6375 (windows_nat_target::thread_name)
6376 (windows_nat_target::thread_alive): Update.
6377
6378 2020-04-08 Tom Tromey <tromey@adacore.com>
6379
6380 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6381 (windows_continue): Use windows_continue::resume.
6382 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6383 resume>: Declare new methods.
6384 * nat/windows-nat.c: New file.
6385 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6386
6387 2020-04-08 Tom Tromey <tromey@adacore.com>
6388
6389 * windows-nat.c (windows_add_thread, windows_delete_thread)
6390 (windows_nat_target::fetch_registers)
6391 (windows_nat_target::store_registers, fake_create_process)
6392 (windows_nat_target::resume, windows_nat_target::resume)
6393 (get_windows_debug_event, windows_nat_target::wait)
6394 (windows_nat_target::pid_to_str)
6395 (windows_nat_target::get_tib_address)
6396 (windows_nat_target::get_ada_task_ptid)
6397 (windows_nat_target::thread_name)
6398 (windows_nat_target::thread_alive): Use lwp, not tid.
6399
6400 2020-04-08 Tom Tromey <tromey@adacore.com>
6401
6402 * windows-nat.c (handle_exception)
6403 (windows_nat_target::thread_name): Update.
6404 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6405 <name>: Now unique_xmalloc_ptr.
6406
6407 2020-04-08 Tom Tromey <tromey@adacore.com>
6408
6409 * windows-nat.c (thread_rec)
6410 (windows_nat_target::fetch_registers): Update.
6411 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6412 Update comment.
6413 <debug_registers_changed, reload_context>: Now bool.
6414
6415 2020-04-08 Tom Tromey <tromey@adacore.com>
6416
6417 * windows-nat.c (windows_add_thread): Use new.
6418 (windows_init_thread_list, windows_delete_thread): Use delete.
6419 (get_windows_debug_event): Update.
6420 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6421 destructor, and initializers.
6422
6423 2020-04-08 Tom Tromey <tromey@adacore.com>
6424
6425 * windows-nat.c (struct windows_thread_info): Remove.
6426 * nat/windows-nat.h: New file.
6427
6428 2020-04-08 Tom Tromey <tromey@adacore.com>
6429
6430 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6431 (thread_rec, windows_add_thread, windows_delete_thread)
6432 (windows_continue): Update.
6433
6434 2020-04-08 Tom Tromey <tromey@adacore.com>
6435
6436 * windows-nat.c (struct windows_thread_info): Remove typedef.
6437 (thread_head): Remove.
6438 (thread_list): New global.
6439 (thread_rec, windows_add_thread, windows_init_thread_list)
6440 (windows_delete_thread, windows_continue): Update.
6441
6442 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6443
6444 * windows-tdep.h (windows_init_abi): Add comment.
6445 (cygwin_init_abi): New declaration.
6446 * windows-tdep.c: Split signal enumeration in two, one for
6447 Windows and one for Cygwin.
6448 (windows_gdb_signal_to_target): Only deal with signal of the
6449 Windows OS ABI.
6450 (cygwin_gdb_signal_to_target): New function.
6451 (windows_init_abi): Rename to windows_init_abi_common, don't set
6452 gdb_signal_to_target gdbarch method. Add new new function with
6453 this name.
6454 (cygwin_init_abi): New function.
6455 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6456 comment. Don't call windows_init_abi.
6457 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6458 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6459 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6460 i386_windows_init_abi_common, don't call windows_init_abi. Add
6461 a new function of this name.
6462 (i386_cygwin_init_abi): New function.
6463 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6464 OS ABI Cygwin.
6465
6466 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6467
6468 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6469 parameter.c.
6470 (dwarf2_read_gdb_index): Update.
6471
6472 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6473
6474 * nbsd-tdep.c: Include "objfiles.h".
6475 (nbsd_skip_solib_resolver): New.
6476 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6477
6478 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6479
6480 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6481 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6482 with DW_LLE_base_addressx are being emitted in DWARFv5.
6483 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6484 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6485 unsigned integer.
6486
6487 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6488
6489 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6490 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6491 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6492 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6493 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6494 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6495 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6496
6497
6498 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6499
6500 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6501 (read_loclist_index): New function definition.
6502 (lookup_loclist_base): New function definition.
6503 (read_loclist_header): New function definition.
6504 (dwarf2_cu): Add loclist_base and loclist_header field.
6505 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6506 (read_full_die_1): Read the value of DW_AT_loclists_base.
6507 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6508 (read_attribute_value): Handle DW_FORM_loclistx.
6509 (skip_one_die): Handle DW_FORM_loclistx.
6510 (loclist_header): New structure declaration.
6511 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6512
6513 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6514
6515 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6516 constructor. Remove `addr` parameter from other constructor and
6517 add `per_cu` parameter.
6518 * dwarf2/read.c (create_partial_symtab): Update.
6519
6520 2020-04-07 Tom de Vries <tdevries@suse.de>
6521
6522 PR symtab/25796
6523 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6524 (partial_die_info::fixup): Inherit has_const_value.
6525
6526 2020-04-07 Tom de Vries <tdevries@suse.de>
6527
6528 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6529 symbols without address.
6530
6531 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6532
6533 * nbsd-nat.h (struct thread_info): Add forward declaration.
6534 (nbsd_nat_target::thread_alive): Add.
6535 (nbsd_nat_target::thread_name): Likewise.
6536 (nbsd_nat_target::update_thread_list): Likewise.
6537 (update_thread_list::post_attach): Likewise.
6538 (post_attach::pid_to_str): Likewise.
6539 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6540 (nbsd_thread_lister): Add.
6541 (nbsd_nat_target::thread_alive): Likewise.
6542 (nbsd_nat_target::thread_name): Likewise.
6543 (nbsd_add_threads): Likewise.
6544 (update_thread_list::post_attach): Likewise.
6545 (nbsd_nat_target::update_thread_list): Likewise.
6546 (post_attach::pid_to_str): Likewise.
6547
6548 2020-04-06 Tom Tromey <tromey@adacore.com>
6549
6550 * ada-valprint.c (print_variant_part): Extract the variant field.
6551 (print_field_values): Use the field as the outer value when
6552 recursing.
6553
6554 2020-04-06 Tom Tromey <tromey@adacore.com>
6555
6556 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6557 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6558 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6559 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6560 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6561
6562 2020-04-06 Tom Tromey <tromey@adacore.com>
6563
6564 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6565 TYPE_CODE_ERROR.
6566
6567 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6568
6569 * nbsd-tdep.c: Include "gdbarch.h".
6570 Define enum with NetBSD signal numbers.
6571 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6572 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6573 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6574 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6575 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6576 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6577 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6578 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6579 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6580 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6581 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6582 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6583
6584 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6585
6586 PR gdb/25325
6587 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6588
6589 2020-04-03 Tom Tromey <tromey@adacore.com>
6590
6591 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6592 Read constant block.
6593
6594 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6595
6596 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6597 (gdb_bfd_get_full_section_contents): New declaration.
6598 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6599 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6600 gdb_bfd_get_full_section_contents.
6601
6602 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6603
6604 * exec.c (build_section_table): Replace internal_error with
6605 gdb_assert.
6606 (section_table_xfer_memory_partial): Likewise.
6607 * mdebugread.c (parse_partial_symbols): Likewise.
6608 * psymtab.c (lookup_partial_symbol): Likewise.
6609 * utils.c (wrap_here): Likewise.
6610
6611 2020-04-02 Tom Tromey <tromey@adacore.com>
6612
6613 * f-lang.c (build_fortran_types): Use arch_type to initialize
6614 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6615
6616 2020-04-02 Tom Tromey <tromey@adacore.com>
6617
6618 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6619 of attributes.
6620
6621 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6622 Bernd Edlinger <bernd.edlinger@hotmail.de>
6623 Tom Tromey <tromey@adacore.com>
6624
6625 * buildsym.c (buildsym_compunit::record_line): Remove
6626 deduplication code.
6627
6628 2020-04-02 Tom de Vries <tdevries@suse.de>
6629
6630 PR ada/24671
6631 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6632
6633 2020-04-02 Tom de Vries <tdevries@suse.de>
6634
6635 * dwarf2/read.c (dwarf2_gdb_index_functions,
6636 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6637 NULL.
6638 * psymtab.c (psym_lookup_global_symbol_language): New function.
6639 (psym_functions): Init psym_lookup_global_symbol_language with
6640 psym_lookup_global_symbol_language.
6641 * symfile-debug.c (debug_sym_quick_functions): Init
6642 lookup_global_symbol_language with NULL.
6643 * symfile.c (set_initial_language): Remove fixme comment.
6644 * symfile.h (struct quick_symbol_functions): Add
6645 lookup_global_symbol_language.
6646 * symtab.c (find_quick_global_symbol_language): New function.
6647 (find_main_name): Use find_quick_global_symbol_language.
6648
6649 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6650
6651 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6652
6653 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6654
6655 * buildsym.c (record_line): Fix undefined behavior and preserve
6656 lines at eof.
6657
6658 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6659
6660 * buildsym.c (record_line): Fix the resizing condition.
6661
6662 2020-04-01 Tom Tromey <tom@tromey.com>
6663
6664 * value.h (value_literal_complex): Add comment.
6665 * valops.c (value_literal_complex): Refer to value.h.
6666
6667 2020-04-01 Tom Tromey <tom@tromey.com>
6668
6669 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6670 (scalar_type): New rule, from typebase.
6671 (typebase): Use scalar_type. Recognize complex types.
6672 (field_name): Handle FLOAT_KEYWORD.
6673 (ident_tokens): Add _Complex and __complex__.
6674
6675 2020-04-01 Tom Tromey <tom@tromey.com>
6676
6677 PR exp/25299:
6678 * valarith.c (promotion_type, complex_binop): New functions.
6679 (scalar_binop): Handle complex numbers. Use promotion_type.
6680 (value_pos, value_neg, value_complement): Handle complex numbers.
6681
6682 2020-04-01 Tom Tromey <tom@tromey.com>
6683
6684 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6685 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6686 (parse_number): Handle complex numbers.
6687
6688 2020-04-01 Tom Tromey <tom@tromey.com>
6689
6690 * c-valprint.c (c_decorations): Change complex suffix to "i".
6691
6692 2020-04-01 Tom Tromey <tom@tromey.com>
6693
6694 * valprint.c (generic_value_print_complex): Use accessors.
6695 * value.h (value_real_part, value_imaginary_part): Declare.
6696 * valops.c (value_real_part, value_imaginary_part): New
6697 functions.
6698 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6699
6700 2020-04-01 Tom Tromey <tom@tromey.com>
6701
6702 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6703 (read_range_type): Update.
6704 * mdebugread.c (basic_type): Update.
6705 * go-lang.c (build_go_types): Use init_complex_type.
6706 * gdbtypes.h (struct main_type) <complex_type>: New member.
6707 (init_complex_type): Update.
6708 (arch_complex_type): Don't declare.
6709 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6710 Make name if none given. Use alloc_type_copy. Look for cached
6711 complex type.
6712 (arch_complex_type): Remove.
6713 (gdbtypes_post_init): Use init_complex_type.
6714 * f-lang.c (build_fortran_types): Use init_complex_type.
6715 * dwarf2/read.c (read_base_type): Update.
6716 * d-lang.c (build_d_types): Use init_complex_type.
6717 * ctfread.c (read_base_type): Update.
6718
6719 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6720
6721 * infrun.c (stop_all_threads): Update assertion, plus when
6722 stopping threads, take into account that we might be trying
6723 to stop an all-stop target.
6724 (stop_waiting): Call 'stop_all_threads' if there exists a
6725 non-stop target.
6726
6727 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6728
6729 * target.h (exists_non_stop_target): New function declaration.
6730 * target.c (exists_non_stop_target): New function.
6731
6732 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6733
6734 PR gdb/24789
6735 * eval.c (is_integral_or_integral_reference): New function.
6736 (evaluate_subexp_standard): Allow integer references in
6737 pointer arithmetic.
6738
6739 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6740
6741 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6742 check for no ptid in the stop reply when the target is non-stop.
6743
6744 2020-04-01 Tom Tromey <tromey@adacore.com>
6745
6746 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6747 "name" parameter to rvalue reference. Initialize m_name_holder.
6748 <lookup_name_info>: New overloads.
6749 <name>: Return gdb::string_view.
6750 <c_str>: New method.
6751 <make_ignore_params>: Update.
6752 <search_name_hash>: Update.
6753 <language_lookup_name>: Return const char *.
6754 <m_name>: Change type.
6755 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6756 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6757 (lookup_name_info::match_any): Update.
6758 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6759 Update.
6760 * minsyms.c (linkage_name_str): Update.
6761 * language.c (default_symbol_name_matcher): Update.
6762 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6763 Update.
6764 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6765 (ada_lookup_name_info::ada_lookup_name_info): Update.
6766 (literal_symbol_name_matcher): Update.
6767
6768 2020-04-01 Tom Tromey <tromey@adacore.com>
6769
6770 * psymtab.c (psymtab_search_name): Remove function.
6771 (psym_lookup_symbol): Create search name and lookup name here.
6772 (lookup_partial_symbol): Remove "name" parameter; add
6773 lookup_name.
6774 (psym_expand_symtabs_for_function): Update.
6775
6776 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6777
6778 PR tui/25597:
6779 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6780
6781 2020-03-31 Tom Tromey <tromey@adacore.com>
6782
6783 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6784 memcpy.
6785
6786 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6787
6788 * features/riscv/32bit-csr.xml: Regenerated.
6789 * features/riscv/64bit-csr.xml: Regenerated.
6790
6791 2020-03-30 Tom Tromey <tromey@adacore.com>
6792
6793 * ada-valprint.c (print_variant_part): Update.
6794 * ada-lang.h (ada_which_variant_applies): Update.
6795 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6796 outer_valaddr parameters; replace with "outer" value parameter.
6797 (to_fixed_variant_branch_type): Update.
6798
6799 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6800
6801 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6802 <list>. Remove inclusion of observable.h.
6803 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6804 (struct arch_lwp_info): New struct.
6805 (class ppc_linux_dreg_interface): New class.
6806 (struct ppc_linux_process_info): New struct.
6807 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6808 <low_new_clone, low_forget_process, low_prepare_to_resume>
6809 <copy_thread_dreg_state, mark_thread_stale>
6810 <mark_debug_registers_changed, register_hw_breakpoint>
6811 <clear_hw_breakpoint, register_wp, clear_wp>
6812 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6813 <num_memory_accesses, get_trigger_type>
6814 <create_watchpoint_request, hwdebug_point_cmp>
6815 <init_arch_lwp_info, get_arch_lwp_info>
6816 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6817 methods.
6818 <struct ptid_hash>: New inner struct.
6819 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6820 members.
6821 (saved_dabr_value, hwdebug_info, max_slots_number)
6822 (struct hw_break_tuple, struct thread_points, ppc_threads)
6823 (have_ptrace_hwdebug_interface)
6824 (hwdebug_find_thread_points_by_tid)
6825 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6826 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6827 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6828 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6829 use m_dreg_interface.
6830 (hwdebug_point_cmp): Change to...
6831 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6832 reference arguments instead of pointers.
6833 (ppc_linux_nat_target::ranged_break_num_registers): Use
6834 m_dreg_interface.
6835 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6836 m_dreg_interface. Call register_hw_breakpoint.
6837 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6838 m_dreg_interface. Call clear_hw_breakpoint.
6839 (get_trigger_type): Change to...
6840 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6841 comment.
6842 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6843 use m_dreg_interface. Call register_hw_breakpoint.
6844 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6845 use m_dreg_interface. Call clear_hw_breakpoint.
6846 (can_use_watchpoint_cond_accel): Change to...
6847 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6848 method. Update comment, use m_dreg_interface and
6849 m_process_info.
6850 (calculate_dvc): Change to...
6851 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6852 m_dreg_interface.
6853 (num_memory_accesses): Change to...
6854 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6855 (check_condition): Change to...
6856 (ppc_linux_nat_target::check_condition): ...this method.
6857 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6858 comment, use m_dreg_interface.
6859 (create_watchpoint_request): Change to...
6860 (ppc_linux_nat_target::create_watchpoint_request): ...this
6861 method. Use m_dreg_interface.
6862 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6863 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6864 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6865 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6866 (ppc_linux_nat_target::low_forget_process)
6867 (ppc_linux_nat_target::low_new_fork)
6868 (ppc_linux_nat_target::low_new_clone)
6869 (ppc_linux_nat_target::low_delete_thread)
6870 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6871 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6872 only call mark_thread_stale.
6873 (ppc_linux_thread_exit): Remove.
6874 (ppc_linux_nat_target::stopped_data_address): Change to...
6875 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6876 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6877 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6878 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6879 comment. Call low_stopped_data_address.
6880 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6881 m_dreg_interface.
6882 (ppc_linux_nat_target::masked_watch_num_registers): Use
6883 m_dreg_interface.
6884 (ppc_linux_nat_target::copy_thread_dreg_state)
6885 (ppc_linux_nat_target::mark_thread_stale)
6886 (ppc_linux_nat_target::mark_debug_registers_changed)
6887 (ppc_linux_nat_target::register_hw_breakpoint)
6888 (ppc_linux_nat_target::clear_hw_breakpoint)
6889 (ppc_linux_nat_target::register_wp)
6890 (ppc_linux_nat_target::clear_wp)
6891 (ppc_linux_nat_target::init_arch_lwp_info)
6892 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6893 (_initialize_ppc_linux_nat): Remove observer callback.
6894
6895 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6896
6897 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6898 (ppc_linux_nat_target::auxv_parse)
6899 (ppc_linux_nat_target::read_description)
6900 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6901 Move up.
6902
6903 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6904
6905 * linux-nat.h (low_new_clone): New method.
6906 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6907
6908 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6909
6910 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6911 (dbx_expand_psymtab): ... this.
6912 (start_psymtab): Update.
6913 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6914 (mdebug_expand_psymtab): ... this.
6915 (parse_partial_symbols): Update.
6916 (new_psymtab): Update.
6917 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6918 (xcoff_expand_psymtab): ... this.
6919 (xcoff_start_psymtab): Update.
6920
6921 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6922
6923 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6924 <expand_dependencies>: ... this.
6925 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6926 (partial_symtab::expand_dependencies): ... this.
6927 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6928 Update.
6929 (dwarf2_psymtab::expand_psymtab): Update.
6930 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6931 * mdebugread.c (psymtab_to_symtab_1): Update.
6932 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6933
6934 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6935
6936 * psympriv.h (discard_psymtab): Remove.
6937 * dbxread.c (dbx_end_psymtab): Update.
6938 * xcoffread.c (xcoff_end_psymtab): Update.
6939
6940 2020-03-28 Tom Tromey <tom@tromey.com>
6941
6942 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6943 comment.
6944
6945 2020-03-28 Tom Tromey <tom@tromey.com>
6946
6947 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6948
6949 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
6950
6951 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6952
6953 2020-03-26 John Baldwin <jhb@FreeBSD.org>
6954
6955 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6956
6957 2020-03-26 Tom Tromey <tom@tromey.com>
6958
6959 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6960 (mark_common_block_symbol_computed, read_tag_string_type)
6961 (attr_to_dynamic_prop, read_subrange_type): Update.
6962 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6963 to be methods on struct attribute.
6964 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6965 (read_call_site_scope, partial_die_info::read)
6966 (partial_die_info::read, lookup_die_type, follow_die_ref):
6967 Update.
6968 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6969 from dwarf2_get_ref_die_offset.
6970 (attribute::constant_value): New method, from
6971 dwarf2_get_attr_constant_value.
6972 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6973 Declare method.
6974 <constant_value>: New method.
6975
6976 2020-03-26 Tom Tromey <tom@tromey.com>
6977
6978 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6979 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6980 (dwarf_type_encoding_name): Move to stringify.c.
6981 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6982 * dwarf2/stringify.c: New file.
6983 * dwarf2/stringify.h: New file.
6984
6985 2020-03-26 Tom Tromey <tom@tromey.com>
6986
6987 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6988 Rewrite.
6989
6990 2020-03-26 Tom Tromey <tom@tromey.com>
6991
6992 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6993 methods.
6994 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6995 (lookup_ranges_base): Likewise.
6996 (read_cutu_die_from_dwo, read_full_die_1): Update.
6997
6998 2020-03-26 Tom Tromey <tom@tromey.com>
6999
7000 * dwarf2/read.c (read_import_statement, read_file_scope)
7001 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7002 (read_lexical_block_scope, read_call_site_scope)
7003 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7004 (handle_struct_member_die, process_structure_scope)
7005 (update_enumeration_type_from_children)
7006 (process_enumeration_scope, read_array_type, read_common_block)
7007 (read_namespace, read_module, read_subroutine_type): Update.
7008 (sibling_die): Remove.
7009
7010 2020-03-26 Tom Tromey <tom@tromey.com>
7011
7012 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7013 (build_type_psymtabs_reader, read_structure_type)
7014 (read_enumeration_type, read_full_die_1): Update.
7015 (dwarf2_attr_no_follow): Move to die.h.
7016 * dwarf2/die.h (struct die_info) <attr>: New method.
7017
7018 2020-03-26 Tom Tromey <tom@tromey.com>
7019
7020 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7021 <base_address>: Now an optional.
7022 (dwarf2_find_base_address, dwarf2_rnglists_process)
7023 (dwarf2_ranges_process, fill_in_loclist_baton)
7024 (dwarf2_symbol_mark_computed): Update.
7025
7026 2020-03-26 Tom Tromey <tom@tromey.com>
7027
7028 * dwarf2/read.c (struct die_info): Move to die.h.
7029 * dwarf2/die.h: New file.
7030
7031 2020-03-26 Tom Tromey <tom@tromey.com>
7032
7033 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7034 * dwarf2/read.c
7035 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7036 Move to line-header.c.
7037 (read_checked_initial_length_and_offset, read_formatted_entries):
7038 Likewise.
7039 (dwarf_decode_line_header): Split into two.
7040 * dwarf2/line-header.c
7041 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7042 Move from read.c.
7043 (read_checked_initial_length_and_offset, read_formatted_entries):
7044 Likewise.
7045 (dwarf_decode_line_header): New function, split from read.c.
7046
7047 2020-03-26 Tom Tromey <tom@tromey.com>
7048
7049 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7050 Declare method.
7051 * dwarf2/read.c (read_attribute_value): Update.
7052 (dwarf2_per_objfile::read_line_string): Rename from
7053 read_indirect_line_string.
7054 (read_formatted_entries): Update.
7055
7056 2020-03-26 Tom Tromey <tom@tromey.com>
7057
7058 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7059 variable.
7060
7061 2020-03-26 Tom Tromey <tom@tromey.com>
7062
7063 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7064 const.
7065 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7066 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7067 parameter const.
7068
7069 2020-03-26 Tom Tromey <tom@tromey.com>
7070
7071 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7072 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7073 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7074 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7075
7076 2020-03-26 Tom Tromey <tom@tromey.com>
7077
7078 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7079 file_names_size, file_full_name, file_file_name>: Use const.
7080 <file_name_at, file_names>: Add const overload.
7081 * dwarf2/line-header.c (line_header::file_file_name)
7082 (line_header::file_full_name): Update.
7083
7084 2020-03-26 Tom Tromey <tom@tromey.com>
7085
7086 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7087 (macro_start_file, consume_improper_spaces)
7088 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7089 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7090 (dwarf_decode_macros): Move to macro.c.
7091 * dwarf2/macro.c: New file.
7092 * dwarf2/macro.h: New file.
7093 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7094
7095 2020-03-26 Tom Tromey <tom@tromey.com>
7096
7097 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7098 method.
7099 * dwarf2/section.c: New method. From
7100 read_indirect_string_at_offset_from.
7101 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7102 (read_indirect_string_at_offset_from): Move to section.c.
7103 (read_indirect_string_at_offset): Rewrite.
7104 (read_indirect_line_string_at_offset): Remove.
7105 (read_indirect_string, read_indirect_line_string)
7106 (dwarf_decode_macro_bytes): Update.
7107
7108 2020-03-26 Tom Tromey <tom@tromey.com>
7109
7110 * dwarf2/section.h (struct dwarf2_section_info)
7111 <overload_complaint>: Declare.
7112 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7113 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7114 Rename from dwarf2_section_buffer_overflow_complaint.
7115 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7116 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7117
7118 2020-03-26 Tom Tromey <tom@tromey.com>
7119
7120 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7121 Declare.
7122 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7123 Move from read.c.
7124 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7125 to section.c.
7126
7127 2020-03-26 Tom Tromey <tom@tromey.com>
7128
7129 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7130
7131 2020-03-26 Tom Tromey <tom@tromey.com>
7132
7133 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7134 "builder".
7135 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7136 parameter.
7137 (dwarf_decode_macros): Update.
7138
7139 2020-03-26 Tom Tromey <tom@tromey.com>
7140
7141 * dwarf2/read.c (read_attribute_value): Update.
7142 (read_indirect_string_from_dwz): Move to dwz.c; change into
7143 method.
7144 (dwarf_decode_macro_bytes): Update.
7145 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7146 * dwarf2/dwz.c: New file.
7147 * Makefile.in (COMMON_SFILES): Add dwz.c.
7148
7149 2020-03-26 Tom Tromey <tom@tromey.com>
7150
7151 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7152 * dwarf2/read.c: Add include.
7153 * dwarf2/index-write.c: Add include.
7154 * dwarf2/index-cache.c: Add include.
7155 * dwarf2/dwz.h: New file.
7156
7157 2020-03-25 Tom Tromey <tom@tromey.com>
7158
7159 * compile/compile-object-load.c (get_out_value_type): Mention
7160 correct symbol name in error message.
7161
7162 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7163
7164 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7165
7166 2020-03-25 Tom de Vries <tdevries@suse.de>
7167
7168 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7169 * symmisc.c (dump_symtab_1): Print user and includes fields.
7170 (maintenance_info_symtabs): Same.
7171
7172 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7173
7174 PR gdb/25534
7175 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7176 (riscv_regcache_cooked_write): New function.
7177 (riscv_push_dummy_call): Use new function.
7178 (riscv_return_value): Likewise.
7179
7180 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7181
7182 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7183 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7184 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7185 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7186 * infrun.c (follow_fork): Likewise.
7187 (follow_fork_inferior): Likewise.
7188 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7189 * linux-nat.h (class linux_nat_target): Likewise.
7190 * remote.c (class remote_target) <follow_fork>: Likewise.
7191 (remote_target::follow_fork): Likewise.
7192 * target-delegates.c: Re-generate.
7193 * target.c (default_follow_fork): Likewise.
7194 (target_follow_fork): Likewise.
7195 * target.h (struct target_ops) <follow_fork>: Likewise.
7196 (target_follow_fork): Likewise.
7197
7198 2020-03-24 Tom de Vries <tdevries@suse.de>
7199
7200 * psymtab.c (maintenance_info_psymtabs): Print user field.
7201
7202 2020-03-20 Tom Tromey <tromey@adacore.com>
7203
7204 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7205 const.
7206 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7207 const.
7208
7209 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7210
7211 * ptrace.m4: Don't check for ptrace declaration.
7212 * config.in: Re-generate.
7213 * configure: Re-generate.
7214 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7215 not defined.
7216
7217 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7218
7219 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7220 `PTRACE_TYPE_RET'.
7221 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7222 * sparc-nat.c (gdb_ptrace): Likewise.
7223 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7224
7225 2020-03-20 Tom Tromey <tromey@adacore.com>
7226
7227 * c-exp.y (lex_one_token): Fix assert.
7228
7229 2020-03-20 Tom Tromey <tromey@adacore.com>
7230
7231 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7232 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7233 strncpy call.
7234
7235 2020-03-20 Tom Tromey <tromey@adacore.com>
7236
7237 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7238
7239 2020-03-20 Tom Tromey <tromey@adacore.com>
7240
7241 * ada-valprint.c (print_variant_part): Remove parameters; switch
7242 to value-based API.
7243 (print_field_values): Likewise.
7244 (ada_val_print_struct_union): Likewise.
7245 (ada_value_print_1): Update.
7246
7247 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7248
7249 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7250 nbsd_nat_target instead of inf_ptrace_target.
7251 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7252 nbsd_nat_target.
7253
7254 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7255
7256 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7257 it to the ptrace call.
7258 * (store_registers): Likewise.
7259
7260 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7261
7262 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7263 it to the ptrace call.
7264 * (store_registers): Likewise.
7265
7266 2020-03-19 Luis Machado <luis.machado@linaro.org>
7267
7268 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7269 valid, fetch vg value from ptrace.
7270
7271 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7272 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7273 * inf-ptrace.c: Likewise.
7274 * (gdb_ptrace): Add.
7275 * (inf_ptrace_target::resume): Update.
7276 * (inf_ptrace_target::xfer_partial): Likewise.
7277 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7278 * (inf_ptrace_peek_poke): Update.
7279
7280 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7281
7282 * x86-bsd-nat.c (gdb_ptrace): New.
7283 * (x86bsd_dr_set): Add new argument `ptid'.
7284 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7285 x86bsd_dr_set_addr): Update.
7286
7287 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7288
7289 * remote.c (remote_target::process_stop_reply): Handle events for
7290 all threads differently.
7291
7292 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7293
7294 * completer.c (completion_tracker::remove_completion): Define new
7295 function.
7296 * completer.h (completion_tracker::remove_completion): Declare new
7297 function.
7298 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7299 when adding a C++ function symbol.
7300
7301 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7302
7303 * completer.c (completion_tracker::completion_hash_entry): Define
7304 new class.
7305 (advance_to_filename_complete_word_point): Call
7306 recompute_lowest_common_denominator.
7307 (completion_tracker::completion_tracker): Call discard_completions
7308 to setup the hash table.
7309 (completion_tracker::discard_completions): Allow for being called
7310 from the constructor, pass new equal function, and element deleter
7311 when constructing the hash table. Initialise new class member
7312 variables.
7313 (completion_tracker::maybe_add_completion): Remove use of
7314 m_entries_vec, and store more information into m_entries_hash.
7315 (completion_tracker::recompute_lcd_visitor): New function, most
7316 content taken from...
7317 (completion_tracker::recompute_lowest_common_denominator):
7318 ...here, this now just visits each item in the hash calling the
7319 above visitor.
7320 (completion_tracker::build_completion_result): Remove use of
7321 m_entries_vec, call recompute_lowest_common_denominator.
7322 * completer.h (completion_tracker::have_completions): Remove use
7323 of m_entries_vec.
7324 (completion_tracker::completion_hash_entry): Declare new class.
7325 (completion_tracker::recompute_lowest_common_denominator): Change
7326 function signature.
7327 (completion_tracker::recompute_lcd_visitor): Declare new function.
7328 (completion_tracker::m_entries_vec): Delete.
7329 (completion_tracker::m_entries_hash): Initialize to NULL.
7330 (completion_tracker::m_lowest_common_denominator_valid): New
7331 member variable.
7332 (completion_tracker::m_lowest_common_denominator_max_length): New
7333 member variable.
7334
7335 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7336
7337 * regformats/regdef.h: Put reg in gdb namespace.
7338
7339 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7340
7341 * i386-bsd-nat.c (gdb_ptrace): New.
7342 * (i386bsd_fetch_inferior_registers,
7343 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7344 * (i386bsd_fetch_inferior_registers,
7345 i386bsd_store_inferior_registers) Use gdb_ptrace.
7346
7347 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7348
7349 * amd64-bsd-nat.c (gdb_ptrace): New.
7350 * (amd64bsd_fetch_inferior_registers,
7351 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7352 * (amd64bsd_fetch_inferior_registers,
7353 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7354
7355 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7356
7357 * user-regs.c (user_reg::read): Rename to...
7358 (user_reg::xread): ...this.
7359 * (append_user_reg): Rename argument `read' to `xread'.
7360 * (user_reg_add_builtin): Likewise.
7361 * (user_reg_add): Likewise.
7362 * (value_of_user_reg): Likewise.
7363
7364 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7365
7366 * sparc-nat.c (gdb_ptrace): New.
7367 * sparc-nat.c (sparc_fetch_inferior_registers)
7368 (sparc_store_inferior_registers) Remove obsolete comment.
7369 * sparc-nat.c (sparc_fetch_inferior_registers)
7370 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7371 * sparc-nat.c (sparc_fetch_inferior_registers)
7372 (sparc_store_inferior_registers) Use gdb_ptrace.
7373
7374 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7375
7376 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7377 it to the ptrace call.
7378 * sh-nbsd-nat.c (store_registers): Likewise.
7379
7380 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7381
7382 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7383 nbsd_nat_target instead of inf_ptrace_target.
7384 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7385 nbsd_nat_target.
7386
7387 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7388
7389 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7390
7391 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7392
7393 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7394 <sys/sysctl.h>.
7395 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7396
7397 2020-03-17 Tom de Vries <tdevries@suse.de>
7398
7399 PR gdb/23710
7400 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7401 fields.
7402 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7403 fields.
7404 (process_imported_unit_die): Skip import of c++ CUs.
7405
7406 2020-03-16 Tom Tromey <tom@tromey.com>
7407
7408 * p-valprint.c (pascal_object_print_value): Initialize
7409 base_value.
7410
7411 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7412 Shahab Vahedi <shahab@synopsys.com>
7413
7414 * Makefile.in: Add arch/arc.o
7415 * configure.tgt: Likewise.
7416 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7417 (_initialize_arc_tdep): Don't initialize old target descriptions.
7418 (arc_read_description): New function to cache target descriptions.
7419 * arc-tdep.h (arc_read_description): Add proto type.
7420 * arch/arc.c: New file.
7421 * arch/arc.h: Likewise.
7422 * features/Makefile: Replace old target descriptions with new.
7423 * features/arc-arcompact.c: Remove.
7424 * features/arc-arcompact.xml: Likewise.
7425 * features/arc-v2.c: Likewise
7426 * features/arc-v2.xml: Likewise
7427 * features/arc/aux-arcompact.xml: New file.
7428 * features/arc/aux-v2.xml: Likewise.
7429 * features/arc/core-arcompact.xml: Likewise.
7430 * features/arc/core-v2.xml: Likewise.
7431 * features/arc/aux-arcompact.c: Generate.
7432 * features/arc/aux-v2.c: Likewise.
7433 * features/arc/core-arcompact.c: Likewise.
7434 * features/arc/core-v2.c: Likewise.
7435 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7436
7437 2020-03-16 Tom Tromey <tromey@adacore.com>
7438
7439 PR gdb/25663:
7440 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7441 putting value into bcache.
7442
7443 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7444
7445 PR gdb/21500
7446 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7447 to...
7448 (amd64_windows_init_abi_common): ... this. Don't set size of
7449 long type.
7450 (amd64_windows_init_abi): New function.
7451 (amd64_cygwin_init_abi): New function.
7452 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7453 the Cygwin OS ABI.
7454 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7455 comment.
7456
7457 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7458
7459 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7460 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7461 (pe_import_directory_entry): New struct type.
7462 (is_linked_with_cygwin_dll): New function.
7463 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7464 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7465 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7466
7467 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7468
7469 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7470 i386_cygwin_core_osabi_sniffer.
7471
7472 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7473
7474 * i386-cygwin-tdep.c: Rename to...
7475 * i386-windows-tdep.c: ... this.
7476 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7477 i386-windows-tdep.c.
7478 * configure.tgt: Likewise.
7479
7480 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7481
7482 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7483 * osabi.c (gdb_osabi_names): Add "Windows".
7484 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7485 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7486 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7487 i386_cygwin_osabi_sniffer.
7488 (_initialize_i386_cygwin_tdep): Register OS ABI
7489 GDB_OSABI_WINDOWS for i386.
7490 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7491 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7492 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7493 for x86-64.
7494 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7495 when the target matches '*-*-mingw*'.
7496
7497 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7498
7499 * defs.h (enum gdb_osabi): Move to...
7500 * osabi.h (enum gdb_osabi): ... here.
7501 * gdbarch.sh: Include osabi.h in gdbarch.h.
7502 * gdbarch.h: Re-generate.
7503
7504 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7505
7506 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7507 function.
7508 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7509
7510 2020-03-14 Tom Tromey <tom@tromey.com>
7511
7512 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7513 for C++.
7514 (c_type_print_modifier): Likewise. Add "language" parameter.
7515 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7516 (c_type_print_base_1): Update.
7517 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7518 constants.
7519 * type-stack.c (type_stack::insert): Handle tp_atomic and
7520 tp_restrict.
7521 (type_stack::follow_type_instance_flags): Likewise.
7522 (type_stack::follow_types): Likewise. Merge type-following code.
7523 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7524 (space_identifier, cv_with_space_id)
7525 (const_or_volatile_or_space_identifier_noopt)
7526 (const_or_volatile_or_space_identifier): Remove.
7527 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7528 rules.
7529 (ptr_operator, typebase): Update.
7530 (enum token_flag) <FLAG_C>: New constant.
7531 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7532 "_Atomic".
7533 (lex_one_token): Handle FLAG_C.
7534
7535 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7536
7537 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7538 it to the ptrace call.
7539 * m68k-bsd-nat.c (store_registers): Likewise.
7540
7541 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7542
7543 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7544 gdb_byte *.
7545 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7546 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7547 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7548
7549 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7550
7551 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7552 nbsd_nat_target instead of inf_ptrace_target.
7553 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7554 nbsd_nat_target.
7555
7556 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7557
7558 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7559 register_t.
7560
7561 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7562
7563 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7564 it to the ptrace call.
7565 * alpha-bsd-nat.c (store_registers): Likewise.
7566
7567 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7568
7569 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7570 includes.
7571 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7572 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7573 fill_fpregset): Likewise.
7574
7575 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7576
7577 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7578 nbsd_nat_target instead of inf_ptrace_target.
7579 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7580 nbsd_nat_target.
7581
7582 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7583
7584 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7585 register_t.
7586
7587 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7588
7589 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7590 it to the ptrace call.
7591 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7592 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7593 * arm-nbsd-nat.c (store_register): Likewise.
7594 * arm-nbsd-nat.c (store_regs): Likewise.
7595 * arm-nbsd-nat.c (store_fp_register): Likewise.
7596 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7597
7598 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7599
7600 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7601 nbsd_nat_target instead of inf_ptrace_target.
7602 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7603 nbsd_nat_target.
7604
7605 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7606
7607 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7608 it to the ptrace call.
7609 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7610
7611 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7612
7613 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7614 it to the ptrace call.
7615 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7616
7617 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7618
7619 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7620 gdb_byte *.
7621 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7622
7623 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7624
7625 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7626 instead of inf_ptrace_target.
7627 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7628 nbsd_nat_target.
7629
7630 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7631
7632 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7633 register_t.
7634
7635 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7636
7637 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7638 register_t.
7639
7640 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7641
7642 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7643 register_t.
7644
7645 2020-03-13 Tom Tromey <tom@tromey.com>
7646
7647 * value.h (val_print): Don't declare.
7648 * valprint.h (val_print_array_elements)
7649 (val_print_scalar_formatted, generic_val_print): Don't declare.
7650 * valprint.c (generic_val_print_array): Take a struct value.
7651 (generic_val_print_ptr, generic_val_print_memberptr)
7652 (generic_val_print_bool, generic_val_print_int)
7653 (generic_val_print_char, generic_val_print_complex)
7654 (generic_val_print): Remove.
7655 (generic_value_print): Update.
7656 (do_val_print): Remove unused parameters. Don't call
7657 la_val_print.
7658 (val_print): Remove.
7659 (common_val_print): Update. Don't call value_check_printable.
7660 (val_print_scalar_formatted, val_print_array_elements): Remove.
7661 * rust-lang.c (rust_val_print): Remove.
7662 (rust_language_defn): Update.
7663 * p-valprint.c (pascal_val_print): Remove.
7664 (pascal_value_print_inner): Update.
7665 (pascal_object_print_val_fields, pascal_object_print_val):
7666 Remove.
7667 (pascal_object_print_static_field): Update.
7668 * p-lang.h (pascal_val_print): Don't declare.
7669 * p-lang.c (pascal_language_defn): Update.
7670 * opencl-lang.c (opencl_language_defn): Update.
7671 * objc-lang.c (objc_language_defn): Update.
7672 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7673 * m2-lang.h (m2_val_print): Don't declare.
7674 * m2-lang.c (m2_language_defn): Update.
7675 * language.h (struct language_defn) <la_val_print>: Remove.
7676 * language.c (unk_lang_value_print_inner): Rename. Change
7677 argument types.
7678 (unknown_language_defn, auto_language_defn): Update.
7679 * go-valprint.c (go_val_print): Remove.
7680 * go-lang.h (go_val_print): Don't declare.
7681 * go-lang.c (go_language_defn): Update.
7682 * f-valprint.c (f_val_print): Remove.
7683 * f-lang.h (f_value_print): Don't declare.
7684 * f-lang.c (f_language_defn): Update.
7685 * d-valprint.c (d_val_print): Remove.
7686 * d-lang.h (d_value_print): Don't declare.
7687 * d-lang.c (d_language_defn): Update.
7688 * cp-valprint.c (cp_print_value_fields)
7689 (cp_print_value_fields_rtti, cp_print_value): Remove.
7690 (cp_print_static_field): Update.
7691 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7692 (c_val_print_struct, c_val_print_union, c_val_print_int)
7693 (c_val_print_memberptr, c_val_print): Remove.
7694 * c-lang.h (c_val_print_array, cp_print_value_fields)
7695 (cp_print_value_fields_rtti): Don't declare.
7696 * c-lang.c (c_language_defn, cplus_language_defn)
7697 (asm_language_defn, minimal_language_defn): Update.
7698 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7699 (ada_val_print_enum): Take a struct value.
7700 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7701 (ada_val_print): Remove.
7702 (ada_value_print_1): Update.
7703 (printable_val_type): Remove.
7704 * ada-lang.h (ada_val_print): Don't declare.
7705 * ada-lang.c (ada_language_defn): Update.
7706
7707 2020-03-13 Tom Tromey <tom@tromey.com>
7708
7709 * valprint.c (do_val_print): Update.
7710 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7711 a struct value.
7712 (value_to_value_object_no_release): Declare.
7713 * python/py-value.c (value_to_value_object_no_release): New
7714 function.
7715 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7716 struct value.
7717 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7718 function.
7719 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7720 a struct value.
7721 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7722 Declare.
7723 (gdbscm_apply_val_pretty_printer): Take a struct value.
7724 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7725 value.
7726 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7727 value.
7728 * extension-priv.h (struct extension_language_ops)
7729 <apply_val_pretty_printer>: Take a struct value.
7730 * cp-valprint.c (cp_print_value): Create a struct value.
7731 (cp_print_value): Update.
7732
7733 2020-03-13 Tom Tromey <tom@tromey.com>
7734
7735 * ada-valprint.c (print_field_values): Call common_val_print.
7736
7737 2020-03-13 Tom Tromey <tom@tromey.com>
7738
7739 * ada-valprint.c (val_print_packed_array_elements): Remove
7740 bitoffset and val parameters. Call common_val_print.
7741 (ada_val_print_string): Remove offset, address, and original_value
7742 parameters.
7743 (ada_val_print_array): Update.
7744 (ada_value_print_array): New function.
7745 (ada_value_print_1): Call it.
7746
7747 2020-03-13 Tom Tromey <tom@tromey.com>
7748
7749 * ada-valprint.c (ada_value_print): Use common_val_print.
7750
7751 2020-03-13 Tom Tromey <tom@tromey.com>
7752
7753 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7754
7755 2020-03-13 Tom Tromey <tom@tromey.com>
7756
7757 * ada-valprint.c (ada_value_print_num): New function.
7758 (ada_value_print_1): Use it.
7759
7760 2020-03-13 Tom Tromey <tom@tromey.com>
7761
7762 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7763
7764 2020-03-13 Tom Tromey <tom@tromey.com>
7765
7766 * ada-valprint.c (ada_value_print_ptr): New function.
7767 (ada_value_print_1): Use it.
7768
7769 2020-03-13 Tom Tromey <tom@tromey.com>
7770
7771 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7772 call common_val_print.
7773 (ada_val_print_1): Update.
7774 (ada_value_print_1): New function.
7775 (ada_value_print_inner): Rewrite.
7776
7777 2020-03-13 Tom Tromey <tom@tromey.com>
7778
7779 * cp-valprint.c (cp_print_value_fields): Update.
7780 (cp_print_value): New function.
7781
7782 2020-03-13 Tom Tromey <tom@tromey.com>
7783
7784 * m2-valprint.c (m2_value_print_inner): Use
7785 cp_print_value_fields.
7786 * cp-valprint.c (cp_print_value_fields): New function.
7787 * c-valprint.c (c_value_print_struct): New function.
7788 (c_value_print_inner): Use c_value_print_struct.
7789 * c-lang.h (cp_print_value_fields): Declare.
7790
7791 2020-03-13 Tom Tromey <tom@tromey.com>
7792
7793 * c-valprint.c (c_value_print_array): New function.
7794 (c_value_print_inner): Use it.
7795
7796 2020-03-13 Tom Tromey <tom@tromey.com>
7797
7798 * c-valprint.c (c_value_print_memberptr): New function.
7799 (c_value_print_inner): Use it.
7800
7801 2020-03-13 Tom Tromey <tom@tromey.com>
7802
7803 * c-valprint.c (c_value_print_int): New function.
7804 (c_value_print_inner): Use it.
7805
7806 2020-03-13 Tom Tromey <tom@tromey.com>
7807
7808 * c-valprint.c (c_value_print_ptr): New function.
7809 (c_value_print_inner): Use it.
7810
7811 2020-03-13 Tom Tromey <tom@tromey.com>
7812
7813 * c-valprint.c (c_value_print_inner): Rewrite.
7814
7815 2020-03-13 Tom Tromey <tom@tromey.com>
7816
7817 * valprint.c (generic_value_print_complex): New function.
7818 (generic_value_print): Use it.
7819
7820 2020-03-13 Tom Tromey <tom@tromey.com>
7821
7822 * valprint.c (generic_val_print_float): Don't call
7823 val_print_scalar_formatted.
7824 (generic_val_print, generic_value_print): Update.
7825
7826 2020-03-13 Tom Tromey <tom@tromey.com>
7827
7828 * valprint.c (generic_value_print_char): New function
7829 (generic_value_print): Use it.
7830
7831 2020-03-13 Tom Tromey <tom@tromey.com>
7832
7833 * valprint.c (generic_value_print_int): New function.
7834 (generic_value_print): Use it.
7835
7836 2020-03-13 Tom Tromey <tom@tromey.com>
7837
7838 * valprint.c (generic_value_print_bool): New function.
7839 (generic_value_print): Use it.
7840
7841 2020-03-13 Tom Tromey <tom@tromey.com>
7842
7843 * valprint.c (generic_val_print_func): Simplify.
7844 (generic_val_print, generic_value_print): Update.
7845
7846 2020-03-13 Tom Tromey <tom@tromey.com>
7847
7848 * valprint.c (generic_val_print_flags): Remove.
7849 (generic_val_print, generic_value_print): Update.
7850 (val_print_type_code_flags): Add original_value parameter.
7851
7852 2020-03-13 Tom Tromey <tom@tromey.com>
7853
7854 * valprint.c (generic_val_print): Update.
7855 (generic_value_print): Update.
7856 * valprint.c (generic_val_print_enum): Don't call
7857 val_print_scalar_formatted.
7858
7859 2020-03-13 Tom Tromey <tom@tromey.com>
7860
7861 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7862 * valprint.c (generic_value_print_ptr): New function.
7863
7864 2020-03-13 Tom Tromey <tom@tromey.com>
7865
7866 * valprint.c (generic_value_print): Rewrite.
7867
7868 2020-03-13 Tom Tromey <tom@tromey.com>
7869
7870 * p-valprint.c (pascal_object_print_value_fields)
7871 (pascal_object_print_value): New functions.
7872
7873 2020-03-13 Tom Tromey <tom@tromey.com>
7874
7875 * p-valprint.c (pascal_value_print_inner): Rewrite.
7876
7877 2020-03-13 Tom Tromey <tom@tromey.com>
7878
7879 * f-valprint.c (f_value_print_innner): Rewrite.
7880
7881 2020-03-13 Tom Tromey <tom@tromey.com>
7882
7883 * m2-valprint.c (m2_print_unbounded_array): New overload.
7884 (m2_print_unbounded_array): Update.
7885 (m2_print_array_contents): Take a struct value.
7886 (m2_value_print_inner): Rewrite.
7887
7888 2020-03-13 Tom Tromey <tom@tromey.com>
7889
7890 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7891 (d_value_print_inner): New function.
7892 * d-lang.h (d_value_print_inner): Declare.
7893 * d-lang.c (d_language_defn): Use d_value_print_inner.
7894
7895 2020-03-13 Tom Tromey <tom@tromey.com>
7896
7897 * go-valprint.c (go_value_print_inner): New function.
7898 * go-lang.h (go_value_print_inner): Declare.
7899 * go-lang.c (go_language_defn): Use go_value_print_inner.
7900
7901 2020-03-13 Tom Tromey <tom@tromey.com>
7902
7903 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7904 API.
7905 (rust_val_print): Rewrite.
7906 (rust_value_print_inner): New function, from rust_val_print.
7907 (rust_language_defn): Use rust_value_print_inner.
7908
7909 2020-03-13 Tom Tromey <tom@tromey.com>
7910
7911 * ada-valprint.c (ada_value_print_inner): New function.
7912 * ada-lang.h (ada_value_print_inner): Declare.
7913 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7914
7915 2020-03-13 Tom Tromey <tom@tromey.com>
7916
7917 * f-valprint.c (f_value_print_innner): New function.
7918 * f-lang.h (f_value_print_innner): Declare.
7919 * f-lang.c (f_language_defn): Use f_value_print_innner.
7920
7921 2020-03-13 Tom Tromey <tom@tromey.com>
7922
7923 * p-valprint.c (pascal_value_print_inner): New function.
7924 * p-lang.h (pascal_value_print_inner): Declare.
7925 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7926
7927 2020-03-13 Tom Tromey <tom@tromey.com>
7928
7929 * m2-valprint.c (m2_value_print_inner): New function.
7930 * m2-lang.h (m2_value_print_inner): Declare.
7931 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7932
7933 2020-03-13 Tom Tromey <tom@tromey.com>
7934
7935 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7936 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7937 * c-valprint.c (c_value_print_inner): New function.
7938 * c-lang.h (c_value_print_inner): Declare.
7939 * c-lang.c (c_language_defn, cplus_language_defn)
7940 (asm_language_defn, minimal_language_defn): Use
7941 c_value_print_inner.
7942
7943 2020-03-13 Tom Tromey <tom@tromey.com>
7944
7945 * p-valprint.c (pascal_object_print_value_fields): Now static.
7946 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7947
7948 2020-03-13 Tom Tromey <tom@tromey.com>
7949
7950 * c-valprint.c (c_val_print_array): Simplify.
7951
7952 2020-03-13 Tom Tromey <tom@tromey.com>
7953
7954 * valprint.c (value_print_array_elements): New function.
7955 * valprint.h (value_print_array_elements): Declare.
7956
7957 2020-03-13 Tom Tromey <tom@tromey.com>
7958
7959 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7960 * mips-tdep.c (mips_print_register): Use
7961 value_print_scalar_formatted.
7962
7963 2020-03-13 Tom Tromey <tom@tromey.com>
7964
7965 * valprint.h (value_print_scalar_formatted): Declare.
7966 * valprint.c (value_print_scalar_formatted): New function.
7967
7968 2020-03-13 Tom Tromey <tom@tromey.com>
7969
7970 * valprint.h (generic_value_print): Declare.
7971 * valprint.c (generic_value_print): New function.
7972
7973 2020-03-13 Tom Tromey <tom@tromey.com>
7974
7975 * valprint.c (do_val_print): Call la_value_print_inner, if
7976 available.
7977 * rust-lang.c (rust_language_defn): Update.
7978 * p-lang.c (pascal_language_defn): Update.
7979 * opencl-lang.c (opencl_language_defn): Update.
7980 * objc-lang.c (objc_language_defn): Update.
7981 * m2-lang.c (m2_language_defn): Update.
7982 * language.h (struct language_defn) <la_value_print_inner>: New
7983 member.
7984 * language.c (unknown_language_defn, auto_language_defn): Update.
7985 * go-lang.c (go_language_defn): Update.
7986 * f-lang.c (f_language_defn): Update.
7987 * d-lang.c (d_language_defn): Update.
7988 * c-lang.c (c_language_defn, cplus_language_defn)
7989 (asm_language_defn, minimal_language_defn): Update.
7990 * ada-lang.c (ada_language_defn): Update.
7991
7992 2020-03-13 Tom Tromey <tom@tromey.com>
7993
7994 * c-valprint.c (c_value_print): Use common_val_print.
7995
7996 2020-03-13 Tom Tromey <tom@tromey.com>
7997
7998 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7999
8000 2020-03-13 Tom Tromey <tom@tromey.com>
8001
8002 * f-valprint.c (f77_print_array_1, f_val_print): Use
8003 common_val_print.
8004
8005 2020-03-13 Tom Tromey <tom@tromey.com>
8006
8007 * riscv-tdep.c (riscv_print_one_register_info): Use
8008 common_val_print.
8009
8010 2020-03-13 Tom Tromey <tom@tromey.com>
8011
8012 * mi/mi-main.c (output_register): Use common_val_print.
8013
8014 2020-03-13 Tom Tromey <tom@tromey.com>
8015
8016 * infcmd.c (default_print_one_register_info): Use
8017 common_val_print.
8018
8019 2020-03-13 Tom Tromey <tom@tromey.com>
8020
8021 * valprint.h (common_val_print_checked): Declare.
8022 * valprint.c (common_val_print_checked): New function.
8023 * stack.c (print_frame_arg): Use common_val_print_checked.
8024
8025 2020-03-13 Tom Tromey <tom@tromey.com>
8026
8027 * valprint.c (do_val_print): New function, from val_print.
8028 (val_print): Use do_val_print.
8029 (common_val_print): Use do_val_print.
8030
8031 2020-03-13 Tom Tromey <tom@tromey.com>
8032
8033 * valprint.c (value_print): Use scoped_value_mark.
8034
8035 2020-03-13 Tom de Vries <tdevries@suse.de>
8036
8037 PR symtab/25646
8038 * psymtab.c (partial_symtab::partial_symtab): Don't set
8039 globals_offset and statics_offset. Push element onto
8040 current_global_psymbols and current_static_psymbols stacks.
8041 (concat): New function.
8042 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8043 element from current_global_psymbols and current_static_psymbols
8044 stacks. Concat popped elements to global_psymbols and
8045 static_symbols.
8046 (add_psymbol_to_list): Use current_global_psymbols and
8047 current_static_psymbols stacks.
8048 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8049 current_static_psymbols fields.
8050
8051 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8052
8053 * corelow.c (sniff_core_bfd): Remove.
8054 (class core_target) <m_core_vec>: Remove.
8055 (core_target::core_target): Update.
8056 (core_file_fns): Remove.
8057 (deprecated_add_core_fns): Remove.
8058 (default_core_sniffer): Remove.
8059 (sniff_core_bfd): Remove.
8060 (default_check_format): Remove.
8061 (gdb_check_format): Remove.
8062 (core_target_open): Update.
8063 (core_target::get_core_register_section): Update.
8064 (get_core_registers_cb): Update.
8065 (core_target::fetch_registers): Update.
8066 * gdbcore.h (struct core_fns): Remove.
8067 (deprecated_add_core_fns): Remove.
8068 (default_core_sniffer): Remove.
8069 (default_check_format): Remove.
8070
8071 2020-03-12 Tom Tromey <tom@tromey.com>
8072
8073 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8074 CORE_ADDR.
8075 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8076
8077 2020-03-12 Tom Tromey <tom@tromey.com>
8078
8079 * remote.c (remote_target::download_tracepoint)
8080 (remote_target::enable_tracepoint)
8081 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8082 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8083 sprintf_vma.
8084
8085 2020-03-12 Tom Tromey <tom@tromey.com>
8086
8087 * symfile-mem.c: Update CORE_ADDR size assert.
8088
8089 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8090
8091 * selftest.m4: Move to gdbsupport/.
8092 * acinclude.m4: Update path to selftest.m4.
8093
8094 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8095
8096 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8097 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8098 gdbarch-selfselftests.c and selftest-arch.c.
8099 (SUBDIR_UNITTESTS_OBS): Rename to...
8100 (SELFTESTS_OBS): ... this.
8101 (COMMON_SFILES): Remove disasm-selftests.c and
8102 gdbarch-selftests.c.
8103 * configure.ac: Don't add selftest-arch.{c,o} to
8104 CONFIG_{SRCS,OBS}.
8105 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8106 preprocessor conditions.
8107
8108 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8109
8110 * configure.ac: Don't source bfd/development.sh.
8111 * selftest.m4: Modify comment.
8112 * configure: Re-generate.
8113
8114 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8115
8116 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8117 not "true" or "false".
8118 * configure: Re-generate.
8119
8120 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8121
8122 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8123 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8124 renamed to arm_nbsd_supply_gregset.
8125 (fetch_register): Update to call arm_nbsd_supply_gregset.
8126 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8127 (arm_netbsd_nat_target::fetch_registers): Update.
8128 (fetch_elfcore_registers): Removed.
8129 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8130 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8131 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8132 not require NetBSD system headers.
8133 (arm_nbsd_regset): New struct.
8134 (arm_nbsd_iterate_over_regset_sections): New function.
8135 (arm_netbsd_init_abi_common): Updated to call
8136 set_gdbarch_iterate_over_regset_sections.
8137 * arm-nbsd-tdep.h: New file.
8138
8139 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8140
8141 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8142 recursion.
8143
8144 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8145
8146 * configure: Re-generate.
8147
8148 2020-03-11 Tom Tromey <tromey@adacore.com>
8149
8150 * ada-typeprint.c (print_choices): Fix comment.
8151
8152 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8153
8154 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8155 previous item in the list, when the list has no items.
8156
8157 2020-03-11 Tom de Vries <tdevries@suse.de>
8158
8159 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8160 PROP_LOCLIST handling code.
8161
8162 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8163
8164 * buildsym-legacy.c (record_line): Pass extra parameter to
8165 record_line.
8166 * buildsym.c (buildsym_compunit::record_line): Take an extra
8167 parameter, reduce duplication in the line table, and record the
8168 is_stmt flag in the line table.
8169 * buildsym.h (buildsym_compunit::record_line): Add extra
8170 parameter.
8171 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8172 non-statement lines.
8173 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8174 this to the symtab builder.
8175 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8176 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8177 through to dwarf_record_line_1.
8178 * infrun.c (process_event_stop_test): When stepping, don't stop at
8179 a non-statement instruction, and only refresh the step info when
8180 we land in the middle of a line's range. Also add an extra
8181 comment.
8182 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8183 field.
8184 * record-btrace.c (btrace_find_line_range): Only record lines
8185 marked as is-statement.
8186 * stack.c (frame_show_address): Show the frame address if we are
8187 in a non-statement sal.
8188 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8189 (maintenance_print_one_line_table): Print a header for the is_stmt
8190 column, and include is_stmt information in the output.
8191 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8192 preference to non-statements.
8193 (find_pcs_for_symtab_line): Prefer is-statement entries.
8194 (find_line_common): Likewise.
8195 * symtab.h (struct linetable_entry): Add is_stmt field.
8196 (struct symtab_and_line): Likewise.
8197 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8198 arranging the line table.
8199
8200 2020-03-07 Tom de Vries <tdevries@suse.de>
8201
8202 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8203 DIE.
8204
8205 2020-03-07 Tom Tromey <tom@tromey.com>
8206
8207 * valops.c (value_literal_complex): Remove obsolete comment.
8208 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8209 comment.
8210
8211 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8212
8213 * infrun.h: Forward-declare thread_info.
8214 (set_step_info): Add thread_info parameter, add doc.
8215 * infrun.c (set_step_info): Add thread_info parameter, move doc
8216 to header.
8217 * infrun.c (process_event_stop_test): Pass thread to
8218 set_step_info call.
8219 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8220 set_step_info.
8221 (prepare_one_step): Add thread_info parameter, pass it to
8222 set_step_frame and prepare_one_step (recursive) call.
8223 (step_1): Pass thread to prepare_one_step call.
8224 (step_command_fsm::should_stop): Pass thread to
8225 prepare_one_step.
8226 (until_next_fsm): Pass thread to set_step_frame call.
8227 (finish_command): Pass thread to set_step_info call.
8228
8229 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8230
8231 * windows-tdep.c (windows_solib_create_inferior_hook):
8232 Check if inferior is running.
8233
8234 2020-03-06 Tom de Vries <tdevries@suse.de>
8235
8236 * NEWS: Fix "the the".
8237 * ctfread.c: Same.
8238
8239 2020-03-06 Tom de Vries <tdevries@suse.de>
8240
8241 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8242
8243 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8244
8245 * .dir-locals.el: Add a comment referencing the other copies of
8246 this file.
8247
8248 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8249
8250 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8251 psargs.
8252
8253 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8254
8255 * .gitattributes: New file.
8256
8257 2020-03-04 Tom Tromey <tom@tromey.com>
8258
8259 * symmisc.c (print_symbol_bcache_statistics)
8260 (print_objfile_statistics): Update.
8261 * symfile.c (allocate_symtab): Use intern.
8262 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8263 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8264 macro_cache>: Remove.
8265 <string_cache>: New member.
8266 (struct objfile) <intern>: New methods.
8267 * elfread.c (elf_symtab_read): Use intern.
8268 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8269 (dwarf2_compute_name, dwarf2_physname)
8270 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8271 names.
8272 (guess_partial_die_structure_name): Update.
8273 (partial_die_info::fixup): Intern name.
8274 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8275 name.
8276 (dwarf2_name): Intern name. Update.
8277 * buildsym.c (buildsym_compunit::get_macro_table): Use
8278 string_cache.
8279
8280 2020-03-04 Tom Tromey <tom@tromey.com>
8281
8282 * jit.c (bfd_open_from_target_memory): Make "target" const.
8283 * corefile.c (gnutarget): Now const.
8284 * gdbcore.h (gnutarget): Now const.
8285
8286 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8287
8288 * NEWS: Mention support for WOW64 processes.
8289 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8290 (amd64_windows_segment_register_p): Remove static.
8291 (_initialize_amd64_windows_nat): Update.
8292 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8293 * i386-windows-nat.c (context_offset): Update.
8294 (i386_mappings): Rename and remove static.
8295 (i386_windows_segment_register_p): Remove static.
8296 (_initialize_i386_windows_nat): Update.
8297 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8298 (STATUS_WX86_SINGLE_STEP): New macro.
8299 (EnumProcessModulesEx): New macro.
8300 (Wow64SuspendThread): New macro.
8301 (Wow64GetThreadContext): New macro.
8302 (Wow64SetThreadContext): New macro.
8303 (Wow64GetThreadSelectorEntry): New macro.
8304 (windows_set_context_register_offsets): Add static.
8305 (windows_set_segment_register_p): Likewise.
8306 (windows_add_thread): Adapt for WOW64 processes.
8307 (windows_fetch_one_register): Likewise.
8308 (windows_nat_target::fetch_registers): Likewise.
8309 (windows_store_one_register): Likewise.
8310 (display_selector): Likewise.
8311 (display_selectors): Likewise.
8312 (handle_exception): Likewise.
8313 (windows_continue): Likewise.
8314 (windows_nat_target::resume): Likewise.
8315 (windows_add_all_dlls): Likewise.
8316 (do_initial_windows_stuff): Likewise.
8317 (windows_nat_target::attach): Likewise.
8318 (windows_get_exec_module_filename): Likewise.
8319 (windows_nat_target::create_inferior): Likewise.
8320 (windows_xfer_siginfo): Likewise.
8321 (_initialize_loadable): Initialize Wow64SuspendThread,
8322 Wow64GetThreadContext, Wow64SetThreadContext,
8323 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8324 * windows-nat.h (windows_set_context_register_offsets):
8325 Remove declaration.
8326 (windows_set_segment_register_p): Likewise.
8327 (i386_windows_segment_register_p): Add declaration.
8328 (amd64_windows_segment_register_p): Likewise.
8329
8330 2020-03-04 Luis Machado <luis.machado@linaro.org>
8331
8332 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8333 in "info registers" for AArch64/ARM.
8334
8335 The change caused "info registers" to not print GPR's.
8336
8337 gdb/ChangeLog:
8338
8339 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8340
8341 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8342 when reg->group is empty and reggroup is not.
8343
8344 2020-03-03 Tom Tromey <tromey@adacore.com>
8345
8346 * dwarf2/frame.c (struct dwarf2_frame_cache)
8347 <checked_tailcall_bottom, entry_cfa_sp_offset,
8348 entry_cfa_sp_offset_p>: Remove members.
8349 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8350 (dwarf2_frame_prev_register): Don't call
8351 dwarf2_tailcall_sniffer_first.
8352 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8353 * frame-unwind.c (add_unwinder): New fuction.
8354 (frame_unwind_init): Use it. Add tailcall unwinder.
8355
8356 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8357 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8358
8359 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8360 value should be printed as true.
8361
8362 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8363
8364 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8365 (windows_init_abi): Set and use windows_so_ops.
8366
8367 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8368
8369 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8370 when verifying if dealing with a convenience variable.
8371
8372 2020-03-03 Luis Machado <luis.machado@linaro.org>
8373
8374 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8375
8376 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8377
8378 * infrun.c (gdbarch_supports_displaced_stepping): New.
8379 (use_displaced_stepping): Break up conditions in smaller pieces.
8380 Use gdbarch_supports_displaced_stepping.
8381 (displaced_step_prepare_throw): Use
8382 gdbarch_supports_displaced_stepping.
8383
8384 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8385
8386 * NEWS: Mention new behaviour of the history filename.
8387 * top.c (write_history_p): Add comment.
8388 (show_write_history_p): Add header comment, give a different
8389 message when history writing is on, but the history filename is
8390 empty.
8391 (history_filename): Add comment.
8392 (history_filename_empty): New function.
8393 (show_history_filename): Add header comment, give a different
8394 message when the filename is empty.
8395 (init_history): Compare history_filename against nullptr, and only
8396 read history if the filename is not empty.
8397 (set_history_filename): Add header comment, and only make
8398 non-empty filenames absolute.
8399 (init_main): Make the filename argument to 'set history filename'
8400 optional.
8401
8402 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8403
8404 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8405 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8406 (fetch_fp_register): Update.
8407 (fetch_fp_regs): Update.
8408 (store_fp_register): Update.
8409 (store_fp_regs): Update.
8410 (arm_netbsd_nat_target::read_description): New function.
8411 (fetch_elfcore_registers): Update.
8412
8413 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8414
8415 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8416 general_thread if the stop reply is missing a thread-id.
8417 (remote_target::process_stop_reply): Use the first non-exited
8418 thread if the target didn't pass a thread-id.
8419 * infrun.c (do_target_wait): Move call to
8420 switch_to_inferior_no_thread to ....
8421 (do_target_wait_1): ... here.
8422
8423 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8424
8425 * debuginfod-support.c: Include defs.h first.
8426
8427 2020-02-28 Tom de Vries <tdevries@suse.de>
8428
8429 * symfile.c (set_initial_language): Use default language for lookup.
8430
8431 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8432
8433 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8434 reader variable, pass `this` to read_cutu_die_from_dwo.
8435
8436 2020-02-27 Aaron Merey <amerey@redhat.com>
8437
8438 * source.c (open_source_file): Check for nullptr when computing
8439 srcpath.
8440
8441 2020-02-27 Tom Tromey <tromey@adacore.com>
8442
8443 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8444 member.
8445 (dwarf2_add_field): Don't update nfields.
8446 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8447
8448 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8449
8450 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8451 abs.
8452
8453 2020-02-26 Tom Tromey <tom@tromey.com>
8454
8455 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8456 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8457 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8458 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8459 per_cu_data.
8460
8461 2020-02-26 Tom Tromey <tom@tromey.com>
8462
8463 * dwarf2/index-write.c (psym_index_map): Change type.
8464 (add_address_entry_worker, write_one_signatured_type)
8465 (recursively_count_psymbols, recursively_write_psymbols)
8466 (class debug_names, psyms_seen_size, write_gdbindex)
8467 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8468
8469 2020-02-26 Aaron Merey <amerey@redhat.com>
8470
8471 * Makefile.in: Handle optional debuginfod support.
8472 * NEWS: Update.
8473 * README: Add --with-debuginfod summary.
8474 * config.in: Regenerate.
8475 * configure: Regenerate.
8476 * configure.ac: Handle optional debuginfod support.
8477 * debuginfod-support.c: debuginfod helper functions.
8478 * debuginfod-support.h: Ditto.
8479 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8480 summary.
8481 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8482 when a dwz file cannot be found.
8483 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8484 debuginfo file cannot be found.
8485 * source.c (open_source_file): Query debuginfod servers when a
8486 source file cannot be found.
8487 * top.c (print_gdb_configuration): Include
8488 --{with,without}-debuginfod in the output.
8489
8490 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8491
8492 * thread.c (thr_try_catch_cmd): Print thread name.
8493
8494 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8495
8496 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8497 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8498 dwarf2_fetch_die_type_sect_off): Move to...
8499 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8500 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8501 dwarf2_fetch_die_type_sect_off): ... here.
8502 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8503 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8504 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8505
8506 2020-02-26 Tom de Vries <tdevries@suse.de>
8507
8508 PR gdb/25603
8509 * symfile.c (set_initial_language): Exit-early if
8510 language_mode == language_mode_manual.
8511
8512 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8513
8514 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8515 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8516 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8517
8518 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8519
8520 * gdbtypes.c (create_array_type_with_stride): Handle negative
8521 array strides.
8522 * valarith.c (value_subscripted_rvalue): Likewise.
8523
8524 2020-02-25 Luis Machado <luis.machado@linaro.org>
8525
8526 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8527
8528 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8529
8530 * loc.h (dwarf2_get_die_type): Move to...
8531 * read.h (dwarf2_get_die_type): ... here.
8532 * read.c (dwarf2_get_die_type): Move doc to header.
8533
8534 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8535
8536 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8537 'gnulib/Makefile.in' to the list.
8538
8539 2020-02-24 Tom Tromey <tom@tromey.com>
8540
8541 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8542 Remove.
8543 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8544 XOBNEWVEC.
8545
8546 2020-02-24 Tom Tromey <tom@tromey.com>
8547
8548 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8549 New method.
8550 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8551 (dw2_do_instantiate_symtab, dw2_get_file_names)
8552 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8553
8554 2020-02-24 Tom Tromey <tom@tromey.com>
8555
8556 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8557 make_scoped_restore.
8558 (dwarf2_psymtab::read_symtab): Don't clear
8559 reading_partial_symbols.
8560
8561 2020-02-24 Tom de Vries <tdevries@suse.de>
8562
8563 PR gdb/25592
8564 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8565
8566 2020-02-24 Tom de Vries <tdevries@suse.de>
8567
8568 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8569 commands layout next/prev/regs.
8570
8571 2020-02-22 Tom Tromey <tom@tromey.com>
8572
8573 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8574 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8575
8576 2020-02-22 Tom Tromey <tom@tromey.com>
8577
8578 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8579
8580 2020-02-22 Tom Tromey <tom@tromey.com>
8581
8582 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8583 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8584 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8585 * tui/tui.c (_initialize_tui): Add usage text.
8586
8587 2020-02-22 Tom Tromey <tom@tromey.com>
8588
8589 * tui/tui-win.c (tui_set_focus_command)
8590 (tui_set_win_height_command): Use error_no_arg.
8591 (_initialize_tui_win): Update help text.
8592 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8593
8594 2020-02-22 Tom Tromey <tom@tromey.com>
8595
8596 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8597 * tui/tui-disasm.h (struct tui_disasm_window)
8598 <display_start_addr>: Declare.
8599 * tui/tui-source.h (struct tui_source_window)
8600 <display_start_addr>: Declare.
8601 * tui/tui-winsource.h (struct tui_source_window_base)
8602 <show_source_line, display_start_addr>: New methods.
8603 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8604 Rename and move to protected section.
8605 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8606 (tui_source_window_base::do_erase_source_content): Update.
8607 (tui_source_window_base::show_source_line): Now a method.
8608 (tui_source_window_base::show_source_content)
8609 (tui_source_window_base::tui_source_window_base)
8610 (tui_source_window_base::rerender)
8611 (tui_source_window_base::refill)
8612 (tui_source_window_base::do_scroll_horizontal)
8613 (tui_source_window_base::set_is_exec_point_at)
8614 (tui_source_window_base::update_breakpoint_info)
8615 (tui_source_window_base::update_exec_info): Update.
8616 * tui/tui-source.c (tui_source_window::set_contents)
8617 (tui_source_window::showing_source_p)
8618 (tui_source_window::do_scroll_vertical)
8619 (tui_source_window::location_matches_p)
8620 (tui_source_window::line_is_displayed): Update.
8621 (tui_source_window::display_start_addr): New method.
8622 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8623 (tui_disasm_window::do_scroll_vertical)
8624 (tui_disasm_window::location_matches_p): Update.
8625 (tui_disasm_window::display_start_addr): New method.
8626
8627 2020-02-22 Tom Tromey <tom@tromey.com>
8628
8629 * NEWS: Add entry for gdb.register_window_type.
8630 * tui/tui-layout.h (window_factory): New typedef.
8631 (tui_register_window): Declare.
8632 * tui/tui-layout.c (saved_tui_windows): New global.
8633 (tui_apply_current_layout): Use it.
8634 (tui_register_window): New function.
8635 * python/python.c (do_start_initialization): Call
8636 gdbpy_initialize_tui.
8637 (python_GdbMethods): Add "register_window_type" function.
8638 * python/python-internal.h (gdbpy_register_tui_window)
8639 (gdbpy_initialize_tui): Declare.
8640 * python/py-tui.c: New file.
8641 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8642
8643 2020-02-22 Tom Tromey <tom@tromey.com>
8644
8645 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8646
8647 2020-02-22 Tom Tromey <tom@tromey.com>
8648
8649 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8650 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8651 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8652 (tui_set_win_focus_to): Move from tui-win.c.
8653
8654 2020-02-22 Tom Tromey <tom@tromey.com>
8655
8656 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8657 functions.
8658 (known_window_types): New global.
8659 (tui_get_window_by_name): Reimplement.
8660 (initialize_known_windows): New function.
8661 (validate_window_name): Rewrite.
8662 (_initialize_tui_layout): Call initialize_known_windows.
8663
8664 2020-02-22 Tom Tromey <tom@tromey.com>
8665
8666 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8667 Remove constants.
8668 * tui/tui-winsource.h (struct tui_source_window_base)
8669 <tui_source_window_base>: Remove parameter.
8670 * tui/tui-winsource.c
8671 (tui_source_window_base::tui_source_window_base): Remove
8672 parameter.
8673 (tui_source_window_base::refill): Update.
8674 * tui/tui-stack.h (struct tui_locator_window)
8675 <tui_locator_window>: Update.
8676 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8677 Default the constructor.
8678 * tui/tui-regs.h (struct tui_data_item_window)
8679 <tui_data_item_window>: Default the constructor.
8680 (struct tui_data_window) <tui_data_window>: Likewise.
8681 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8682 Default the constructor.
8683 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8684 Default the constructor.
8685 <type>: Remove.
8686 (struct tui_win_info) <tui_win_info>: Default the constructor.
8687 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8688 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8689 Default the constructor.
8690
8691 2020-02-22 Tom Tromey <tom@tromey.com>
8692
8693 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8694 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8695 * tui/tui-win.c (tui_resize_all): Don't call
8696 tui_delete_invisible_windows.
8697 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8698 done.
8699 (tui_set_layout): Update.
8700 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8701 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8702 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8703
8704 2020-02-22 Tom Tromey <tom@tromey.com>
8705
8706 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8707 correctly.
8708
8709 2020-02-22 Tom Tromey <tom@tromey.com>
8710
8711 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8712
8713 2020-02-22 Tom Tromey <tom@tromey.com>
8714
8715 * tui/tui-winsource.h (struct tui_source_window_iterator)
8716 <inner_iterator>: New etytypedef.
8717 <tui_source_window_iterator>: Take "end" parameter.
8718 <tui_source_window_iterator>: Take iterator.
8719 <operator*, advance>: Update.
8720 <m_iter>: Change type.
8721 <m_end>: New field.
8722 (struct tui_source_windows) <begin, end>: Update.
8723 * tui/tui-layout.c (tui_windows): New global.
8724 (tui_apply_current_layout): Clear tui_windows.
8725 (tui_layout_window::apply): Update tui_windows.
8726 * tui/tui-data.h (tui_windows): Declare.
8727 (all_tui_windows): Now inline function.
8728 (class tui_window_iterator, struct all_tui_windows): Remove.
8729
8730 2020-02-22 Tom Tromey <tom@tromey.com>
8731
8732 PR tui/17850:
8733 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8734 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8735 "height" argument.
8736 (class tui_layout_window) <get_sizes>: Likewise.
8737 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8738 argument.
8739 <get_sizes>: Add "height" argument.
8740 <m_vertical>: New field.
8741 * tui/tui-layout.c (tui_layout_split::clone): Update.
8742 (tui_layout_split::get_sizes): Add "height" argument.
8743 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8744 (tui_new_layout_command): Parse "-horizontal".
8745 (_initialize_tui_layout): Update help string.
8746 (tui_layout_split::specification): Add "-horizontal" when needed.
8747 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8748 argument.
8749 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8750 New methods.
8751
8752 2020-02-22 Tom Tromey <tom@tromey.com>
8753
8754 * tui/tui-layout.h (enum tui_adjust_result): New.
8755 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8756 (class tui_layout_window) <adjust_size>: Return
8757 tui_adjust_result. Rewrite.
8758 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8759 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8760
8761 2020-02-22 Tom Tromey <tom@tromey.com>
8762
8763 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8764 parameter and return types.
8765 (class tui_layout_base) <specification>: Add "depth".
8766 (class tui_layout_window) <specification>: Add "depth".
8767 (class tui_layout_split) <specification>: Add "depth".
8768 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8769 and return types.
8770 (tui_new_layout_command): Parse sub-layouts.
8771 (_initialize_tui_layout): Update help string.
8772 (tui_layout_window::specification): Add "depth".
8773 (add_layout_command): Update.
8774
8775 2020-02-22 Tom Tromey <tom@tromey.com>
8776
8777 * NEWS: Add "tui new-layout" item.
8778 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8779 Add new-layout command to help text.
8780 (validate_window_name): New function.
8781 (tui_new_layout_command): New function.
8782 (_initialize_tui_layout): Register "new-layout".
8783 (tui_layout_window::specification): New method.
8784 (tui_layout_window::specification): New method.
8785 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8786 method.
8787 (class tui_layout_window) <specification>: New method.
8788 (class tui_layout_split) <specification>: New method.
8789
8790 2020-02-22 Tom Tromey <tom@tromey.com>
8791
8792 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8793 * tui/tui-win.c (window_name_completer): Update comment.
8794 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8795 Declare method.
8796 (class tui_layout_window) <replace_window>: Likewise.
8797 (class tui_layout_split) <replace_window>: Likewise.
8798 (tui_set_layout): Don't declare.
8799 (tui_set_initial_layout): Declare function.
8800 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8801 (asm_regs_layout): New globals.
8802 (tui_current_layout, show_layout): Remove.
8803 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8804 (find_layout, tui_apply_layout): New function.
8805 (layout_completer): Remove.
8806 (tui_next_layout): Reimplement.
8807 (tui_next_layout_command): New function.
8808 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8809 (tui_regs_layout): Reimplement.
8810 (tui_regs_layout_command): New function.
8811 (extract_display_start_addr): Rewrite.
8812 (next_layout, prev_layout): Remove.
8813 (tui_layout_window::replace_window): New method.
8814 (tui_layout_split::replace_window): New method.
8815 (destroy_layout): New function.
8816 (layout_list): New global.
8817 (add_layout_command): New function.
8818 (initialize_layouts): Update.
8819 (tui_layout_command): New function.
8820 (_initialize_tui_layout): Install "layout" commands.
8821 * tui/tui-data.h (enum tui_layout_type): Remove.
8822 (tui_current_layout): Don't declare.
8823
8824 2020-02-22 Tom Tromey <tom@tromey.com>
8825
8826 * tui/tui-regs.c (tui_reg_layout): Remove.
8827 (tui_reg_command): Use tui_regs_layout.
8828 * tui/tui-layout.h (tui_reg_command): Declare.
8829 * tui/tui-layout.c (tui_reg_command): New function.
8830
8831 2020-02-22 Tom Tromey <tom@tromey.com>
8832
8833 * tui/tui.c (tui_rl_delete_other_windows): Call
8834 tui_remove_some_windows.
8835 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8836 Declare method.
8837 (class tui_layout_window) <remove_windows>: New method.
8838 (class tui_layout_split) <remove_windows>: Declare.
8839 (tui_remove_some_windows): Declare.
8840 * tui/tui-layout.c (tui_remove_some_windows): New function.
8841 (tui_layout_split::remove_windows): New method.
8842
8843 2020-02-22 Tom Tromey <tom@tromey.com>
8844
8845 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8846 * tui/tui-layout.h (tui_next_layout): Declare.
8847 * tui/tui-layout.c (tui_next_layout): New function.
8848
8849 2020-02-22 Tom Tromey <tom@tromey.com>
8850
8851 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8852 correct coordinates.
8853
8854 2020-02-22 Tom Tromey <tom@tromey.com>
8855
8856 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8857 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8858 DATA_WIN case.
8859
8860 2020-02-22 Tom Tromey <tom@tromey.com>
8861
8862 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8863 TUI_DISASM_WIN, not tui_win_list.
8864
8865 2020-02-22 Tom Tromey <tom@tromey.com>
8866
8867 * valprint.c (generic_val_print_enum_1)
8868 (val_print_type_code_flags): Style member names.
8869 * rust-lang.c (val_print_struct, rust_print_enum)
8870 (rust_print_struct_def, rust_internal_print_type): Style member
8871 names.
8872 * p-valprint.c (pascal_object_print_value_fields): Style member
8873 names. Only call fprintf_symbol_filtered for static members.
8874 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8875 * f-valprint.c (f_val_print): Style member names.
8876 * f-typeprint.c (f_type_print_base): Style member names.
8877 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8878 call fprintf_symbol_filtered for static members.
8879 (cp_print_class_member): Style member names.
8880 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8881 member names.
8882 * ada-valprint.c (ada_print_scalar): Style enum names.
8883 (ada_val_print_enum): Likewise.
8884 * ada-typeprint.c (print_enum_type): Style enum names.
8885
8886 2020-02-21 Tom Tromey <tom@tromey.com>
8887
8888 * psympriv.h (struct partial_symtab): Update comment.
8889
8890 2020-02-21 Tom Tromey <tromey@adacore.com>
8891
8892 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8893 type is CORE_ADDR.
8894
8895 2020-02-21 Tom de Vries <tdevries@suse.de>
8896
8897 PR gdb/25534
8898 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8899 if dependencies[i]->user != NULL.
8900
8901 2020-02-21 Ali Tamur <tamur@google.com>
8902
8903 * dwarf2/read.c (dwarf2_name): Add null check.
8904
8905 2020-02-20 Tom Tromey <tom@tromey.com>
8906
8907 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8908 ">=", in binary search.
8909 (dwarf2_find_containing_comp_unit): New overload.
8910 (run_test): New self-test.
8911 (_initialize_dwarf2_read): Register new test.
8912
8913 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8914
8915 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8916 * riscv-tdep.h: Likewise.
8917 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8918 rv32-only CSR.
8919 * features/riscv/64bit-csr.xml: Regenerated.
8920
8921 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8922 Tom Tromey <tom@tromey.com>
8923
8924 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8925 of 'fputc_unfiltered'.
8926 (putchar_unfiltered): Call 'fputc_unfiltered'.
8927 (fputc_unfiltered): Call 'fputs_unfiltered'.
8928
8929 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8930
8931 * config.in: Regenerate.
8932 * configure: Regenerate.
8933 * configure.ac: Add --with-python-libdir option.
8934 * main.c: Use WITH_PYTHON_LIBDIR.
8935
8936 2020-02-19 Tom Tromey <tom@tromey.com>
8937
8938 * symtab.c (general_symbol_info::compute_and_set_names): Use
8939 obstack_strndup. Simplify call to symbol_set_demangled_name.
8940
8941 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
8942
8943 * dwarf2/read.c (allocate_signatured_type_table,
8944 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8945 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8946 Remove objfile parameter, update all callers.
8947
8948 2020-02-19 Doug Evans <dje@google.com>
8949
8950 PR rust/25535
8951 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8952 rust_enum_variant calculation.
8953
8954 2020-02-19 Tom Tromey <tromey@adacore.com>
8955
8956 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8957
8958 2020-02-19 Tom Tromey <tromey@adacore.com>
8959
8960 * ada-lang.c (cache_symbol): Use obstack_strdup.
8961
8962 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8963
8964 * configure: Regenerate.
8965
8966 2020-02-19 Tom Tromey <tromey@adacore.com>
8967
8968 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8969 NULL check.
8970
8971 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
8972
8973 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8974
8975 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8976
8977 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8978 if GDBSERVER is not defined.
8979 (riscv_tdesc_cache): Likewise, also store const target_desc.
8980 (STATIC_IN_GDB): Define.
8981 (riscv_create_target_description): Update declaration with
8982 STATIC_IN_GDB.
8983 (riscv_lookup_target_description): New function, only define if
8984 GDBSERVER is not defined.
8985 * arch/riscv.h (riscv_create_target_description): Declare only
8986 when GDBSERVER is defined.
8987 (riscv_lookup_target_description): New declaration when GDBSERVER
8988 is not defined.
8989 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8990 (riscv_linux_read_features): ...this, and return
8991 riscv_gdbarch_features instead of target_desc.
8992 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8993 (riscv_linux_read_description): Rename to...
8994 (riscv_linux_read_features): ...this.
8995 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8996 Update to use riscv_gdbarch_features and
8997 riscv_lookup_target_description.
8998 * riscv-tdep.c (riscv_find_default_target_description): Use
8999 riscv_lookup_target_description instead of
9000 riscv_create_target_description.
9001
9002 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9003
9004 * valprint.c (generic_val_print_enum_1): When printing a flag
9005 enum with value 0 and there is no enumerator with value 0, print
9006 just "0" instead of "(unknown: 0x0)".
9007
9008 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9009
9010 * valprint.c (generic_val_print_enum_1): Print unknown part of
9011 flag enum in hex.
9012
9013 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9014
9015 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9016 flag enums to contain duplicate enumerators.
9017 * valprint.c (generic_val_print_enum_1): Update comment.
9018
9019 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9020
9021 * dwarf2/read.c: Include "count-one-bits.h".
9022 (update_enumeration_type_from_children): If an enumerator has
9023 multiple bits set, don't treat the enumeration as a "flag enum".
9024 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9025 of flag enums have 0 or 1 bit set.
9026
9027 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9028
9029 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9030 conversion.
9031 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9032 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9033 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9034 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9035 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9036
9037 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9038
9039 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9040
9041 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9042
9043 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9044 displaced_step_closure_up.
9045 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9046 (struct displaced_step_closure_up):
9047 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9048 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9049 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9050 Likewise.
9051 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9052 * gdbarch.c, gdbarch.h: Re-generate.
9053 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9054 displaced_step_closure_up.
9055 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9056 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9057 * infrun.h (displaced_step_closure_up): New type alias.
9058 (struct displaced_step_inferior_state) <step_closure>: Change
9059 type to displaced_step_closure_up.
9060 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9061 displaced_step_closure_up.
9062 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9063
9064 2020-02-14 Tom Tromey <tom@tromey.com>
9065
9066 * minidebug.c (gnu_debug_key): New global.
9067 (find_separate_debug_file_in_section): Use it.
9068
9069 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9070
9071 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9072 std::unique_ptr.
9073 * gdbarch.c: Re-generate.
9074 * gdbarch.h: Re-generate.
9075 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9076 change.
9077 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9078 type to std::unique_ptr.
9079 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9080 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9081 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9082 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9083 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9084 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9085 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9086 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9087 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9088
9089 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9090
9091 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9092 std::unique_ptr.
9093 (displaced_step_clear): Rename to...
9094 (displaced_step_reset): ... this. Just call displaced->reset ().
9095 (displaced_step_clear_cleanup): Rename to...
9096 (displaced_step_reset_cleanup): ... this.
9097 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9098 (displaced_step_fixup): Likewise.
9099 (resume_1): Likewise.
9100 (handle_inferior_event): Restore child's memory before calling
9101 displaced_step_fixup on the parent.
9102 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9103 to std::unique_ptr.
9104 <step_closure>: Change type to std::unique_ptr.
9105
9106 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9107
9108 * arm-tdep.c: Include count-one-bits.h.
9109 (cleanup_block_store_pc): Use count_one_bits.
9110 (cleanup_block_load_pc): Use count_one_bits.
9111 (arm_copy_block_xfer): Use count_one_bits.
9112 (thumb2_copy_block_xfer): Use count_one_bits.
9113 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9114 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9115 (thumb_get_next_pcs_raw): Use count_one_bits.
9116 (arm_get_next_pcs_raw): Use count_one_bits_l.
9117 * arch/arm.c (bitcount): Remove.
9118 * arch/arm.h (bitcount): Remove.
9119
9120 2020-02-14 Tom Tromey <tromey@adacore.com>
9121
9122 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9123 Update.
9124 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9125 * dwarf2/loc.c (call_site_find_chain_1): Return
9126 unique_xmalloc_ptr.
9127 (call_site_find_chain): Likewise.
9128
9129 2020-02-14 Richard Biener <rguenther@suse.de>
9130
9131 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9132 on expression with division operators.
9133
9134 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9135
9136 * MAINTAINERS (Write After Approval): Adding myself.
9137
9138 2020-02-12 Tom Tromey <tom@tromey.com>
9139
9140 * event-loop.c (event_data, gdb_event, event_handler_func):
9141 Remove.
9142
9143 2020-02-12 Tom Tromey <tom@tromey.com>
9144
9145 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9146 (dwarf2_frame_objfile_data): Add comment.
9147 (find_comp_unit, set_comp_unit): New functions.
9148 (dwarf2_frame_find_fde): Use find_comp_unit.
9149 (dwarf2_build_frame_info): Use set_comp_unit.
9150
9151 2020-02-12 Tom Tromey <tom@tromey.com>
9152
9153 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9154 (comp_unit): Don't initialize objfile.
9155 (execute_cfa_program): Add text_offset parameter.
9156 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9157 (dwarf2_frame_cache): Update.
9158 (dwarf2_build_frame_info): Don't set "objfile" member.
9159
9160 2020-02-12 Tom Tromey <tom@tromey.com>
9161
9162 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9163 (decode_frame_entry): Likewise.
9164 (dwarf2_build_frame_info): Update.
9165
9166 2020-02-12 Tom Tromey <tom@tromey.com>
9167
9168 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9169 (decode_frame_entry_1): Use the comp_unit obstack.
9170
9171 2020-02-12 Tom Tromey <tom@tromey.com>
9172
9173 * dwarf2/frame.c (struct comp_unit): Add initializers and
9174 constructor.
9175 (dwarf2_frame_objfile_data): Store a comp_unit.
9176 (dwarf2_frame_find_fde): Update.
9177 (dwarf2_build_frame_info): Use "new".
9178
9179 2020-02-12 Tom Tromey <tom@tromey.com>
9180
9181 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9182 (dwarf2_fde_table): Typedef for std::vector.
9183 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9184 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9185 (decode_frame_entry): Update.
9186 (dwarf2_build_frame_info): Use "new".
9187
9188 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9189
9190 * arm-tdep.c (arm_gdbarch_init): Update.
9191 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9192 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9193 have_neon, is_m>: Change to bool.
9194
9195 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9196
9197 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9198
9199 2020-02-12 Tom Tromey <tom@tromey.com>
9200
9201 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9202
9203 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9204
9205 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9206 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9207
9208 2020-02-11 Tom Tromey <tom@tromey.com>
9209
9210 * psymtab.h: Update comment.
9211
9212 2020-02-11 Tom Tromey <tom@tromey.com>
9213
9214 * gdb_obstack.h (struct auto_obstack): Use
9215 DISABLE_COPY_AND_ASSIGN.
9216
9217 2020-02-11 Tom Tromey <tom@tromey.com>
9218
9219 * dwarf2/frame.h (struct objfile): Don't forward declare.
9220
9221 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9222
9223 * cris-tdep.c (cris_supply_gregset): Change signature to match
9224 what struct regset expects.
9225 (cris_regset): New struct.
9226 (fetch_core_registers): Remove.
9227 (cris_iterate_over_regset_sections): New function.
9228 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9229 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9230
9231 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9232
9233 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9234 registers.
9235
9236 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9237
9238 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9239
9240 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9241
9242 * configure: Re-generate.
9243
9244 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9245
9246 * configure: Re-generate.
9247
9248 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9249
9250 * acinclude: Update warning.m4 path.
9251 * warning.m4: Move to gdbsupport.
9252
9253 2020-02-11 Tom Tromey <tromey@adacore.com>
9254
9255 * remote.c (remote_console_output): Update.
9256 * printcmd.c (printf_command): Update.
9257 * event-loop.c (gdb_wait_for_event): Update.
9258 * linux-nat.c (sigchld_handler): Update.
9259 * remote-sim.c (gdb_os_write_stdout): Update.
9260 (gdb_os_flush_stdout): Update.
9261 (gdb_os_flush_stderr): Update.
9262 (gdb_os_write_stderr): Update.
9263 * exceptions.c (print_exception): Update.
9264 * remote-fileio.c (remote_fileio_func_read): Update.
9265 (remote_fileio_func_write): Update.
9266 * tui/tui.c (tui_enable): Update.
9267 * tui/tui-interp.c (tui_interp::init): Update.
9268 * utils.c (init_page_info): Update.
9269 (putchar_unfiltered, fputc_unfiltered): Update.
9270 (gdb_flush): Update.
9271 (emit_style_escape): Update.
9272 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9273 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9274 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9275 (stderr_file::write): Update.
9276 (stderr_file::puts): Update.
9277 * ui-file.h (ui_file_isatty, ui_file_write)
9278 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9279 (ui_file_puts): Don't declare.
9280
9281 2020-02-10 Tom de Vries <tdevries@suse.de>
9282
9283 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9284 sentinel to char *.
9285
9286 2020-02-09 Tom de Vries <tdevries@suse.de>
9287
9288 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9289 filename if it matches "<artificial>".
9290
9291 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9292
9293 * windows-tdep.c (struct enum_value_name): New struct.
9294 (create_enum): New function.
9295 (windows_get_siginfo_type): Create and use enum types.
9296
9297 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9298
9299 * NEWS: Mention $_siginfo support for Windows.
9300 * windows-nat.c (handle_exception): Set siginfo_er.
9301 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9302 (windows_xfer_siginfo): New function.
9303 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9304 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9305 (init_windows_gdbarch_data): New function.
9306 (get_windows_gdbarch_data): New function.
9307 (windows_get_siginfo_type): New function.
9308 (windows_init_abi): Register windows_get_siginfo_type.
9309 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9310
9311 2020-02-08 Tom Tromey <tom@tromey.com>
9312
9313 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9314 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9315 <keep>: Declare method.
9316 <m_keep>: Remove member.
9317 <~cutu_reader>: Remove.
9318 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9319 (cutu_reader::cutu_reader): Update.
9320 (cutu_reader::keep): Rename from ~cutu_reader.
9321 (process_psymtab_comp_unit, build_type_psymtabs_1)
9322 (process_skeletonless_type_unit, load_partial_comp_unit)
9323 (load_full_comp_unit, dwarf2_read_addr_index)
9324 (read_signatured_type): Update.
9325
9326 2020-02-08 Tom Tromey <tom@tromey.com>
9327
9328 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9329 "want_partial_unit" parameter.
9330 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9331 Inline check for DW_TAG_partial_unit.
9332 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9333
9334 2020-02-08 Tom Tromey <tom@tromey.com>
9335
9336 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9337 read.c.
9338 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9339 read.c.
9340
9341 2020-02-08 Tom Tromey <tom@tromey.com>
9342
9343 * dwarf2/read.c (read_address): Move to comp-unit.c.
9344 (dwarf2_rnglists_process, dwarf2_ranges_process)
9345 (read_attribute_value, dwarf_decode_lines_1)
9346 (var_decode_location, decode_locdesc): Update.
9347 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9348 read.c. Remove "cu" parameter.
9349 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9350 method.
9351
9352 2020-02-08 Tom Tromey <tom@tromey.com>
9353
9354 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9355 (read_indirect_line_string): Update.
9356 * dwarf2/comp-unit.c (read_offset): Remove.
9357 (read_comp_unit_head): Update.
9358 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9359 method.
9360 (read_offset): Don't declare.
9361
9362 2020-02-08 Tom Tromey <tom@tromey.com>
9363
9364 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9365 * dwarf2/read.c (struct comp_unit_head): Move to
9366 dwarf2/comp-unit.h.
9367 (enum class rcuh_kind): Move to comp-unit.h.
9368 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9369 (read_comp_unit_head, error_check_comp_unit_head)
9370 (read_and_check_comp_unit_head): Move to comp-unit.c.
9371 (read_offset, dwarf_unit_type_name): Likewise.
9372 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9373 (cutu_reader::cutu_reader, read_call_site_scope)
9374 (find_partial_die, follow_die_offset): Update.
9375 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9376
9377 2020-02-08 Tom Tromey <tom@tromey.com>
9378
9379 * dwarf2/read.c (read_offset_1): Move to leb.c.
9380 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9381 (dwarf_decode_macro_bytes): Update.
9382 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9383 * dwarf2/leb.h (read_offset): Declare.
9384
9385 2020-02-08 Tom Tromey <tom@tromey.com>
9386
9387 * dwarf2/read.c (dwarf2_section_size): Remove.
9388 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9389 Update.
9390 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9391
9392 2020-02-08 Tom Tromey <tom@tromey.com>
9393
9394 * dwarf2/read.c (read_initial_length): Move to leb.c.
9395 * dwarf2/leb.h (read_initial_length): Declare.
9396 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9397 handle_nonstd parameter.
9398 * dwarf2/frame.c (read_initial_length): Remove.
9399 (decode_frame_entry_1): Update.
9400
9401 2020-02-08 Tom Tromey <tom@tromey.com>
9402
9403 * dwarf2/loc.c (dwarf2_find_location_expression)
9404 (dwarf_evaluate_loc_desc::get_tls_address)
9405 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9406 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9407 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9408 (dwarf2_compile_property_to_c)
9409 (dwarf2_loc_desc_get_symbol_read_needs)
9410 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9411 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9412 (loclist_describe_location, loclist_tracepoint_var_ref)
9413 (loclist_generate_c_location): Update.
9414 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9415 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9416 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9417 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9418 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9419 (dwarf2_per_cu_data::addr_size)
9420 (dwarf2_per_cu_data::ref_addr_size)
9421 (dwarf2_per_cu_data::text_offset)
9422 (dwarf2_per_cu_data::addr_type): Now methods.
9423 (per_cu_header_read_in): Make per_cu "const".
9424 (dwarf2_version): Remove.
9425 (dwarf2_per_cu_data::int_type): Now a method.
9426 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9427 (set_die_type, read_array_type, read_subrange_index_type)
9428 (read_tag_string_type, read_subrange_type): Update.
9429 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9430 offset_size, ref_addr_size, text_offset, addr_type, version,
9431 objfile, int_type, addr_sized_int_type>: Declare methods.
9432
9433 2020-02-08 Tom Tromey <tom@tromey.com>
9434
9435 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9436 Move earlier.
9437
9438 2020-02-08 Tom Tromey <tom@tromey.com>
9439
9440 * dwarf2/read.h (dwarf_line_debug): Declare.
9441 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9442 * dwarf2/read.c: Move line_header code to new files.
9443 (dwarf_line_debug): No longer static.
9444 * dwarf2/line-header.c: New file.
9445 * dwarf2/line-header.h: New file.
9446
9447 2020-02-08 Tom Tromey <tom@tromey.com>
9448
9449 * dwarf2/read.c (struct line_header) <file_full_name,
9450 file_file_name>: Return unique_xmalloc_ptr.
9451 (line_header::file_file_name): Update.
9452 (line_header::file_full_name): Update.
9453 (dw2_get_file_names_reader): Update.
9454 (macro_start_file): Update.
9455
9456 2020-02-08 Tom Tromey <tom@tromey.com>
9457
9458 * dwarf2/read.c (struct line_header) <file_full_name,
9459 file_file_name>: Declare methods.
9460 (dw2_get_file_names_reader): Update.
9461 (file_file_name): Now a method.
9462 (file_full_name): Likewise.
9463 (macro_start_file): Update.
9464
9465 2020-02-08 Tom Tromey <tom@tromey.com>
9466
9467 * dwarf2/read.c (dwarf_always_disassemble)
9468 (show_dwarf_always_disassemble): Move to loc.c.
9469 (_initialize_dwarf2_read): Move "always-disassemble" registration
9470 to loc.c.
9471 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9472 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9473 static.
9474 (show_dwarf_always_disassemble): Move from read.c.
9475 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9476
9477 2020-02-08 Tom Tromey <tom@tromey.com>
9478
9479 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9480 (create_quick_file_names_table): Return htab_up.
9481 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9482 Update.
9483 * dwarf2/read.h (struct dwarf2_per_objfile)
9484 <quick_file_names_table>: Now htab_up.
9485
9486 2020-02-08 Tom Tromey <tom@tromey.com>
9487
9488 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9489
9490 2020-02-08 Tom Tromey <tom@tromey.com>
9491
9492 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9493 Rewrite.
9494 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9495 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9496 (abbrev_table::abbrev_table): No longer inline.
9497 (ABBREV_HASH_SIZE): Remove.
9498 (abbrev_table::m_abbrevs): Now an htab_up.
9499
9500 2020-02-08 Tom Tromey <tom@tromey.com>
9501
9502 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9503 (cutu_reader): Update.
9504 (build_type_psymtabs_1): Update.
9505 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9506 (abbrev_table::alloc_abbrev): Update.
9507 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9508 (abbrev_table::read): New static method, renamed from
9509 abbrev_table_read_table.
9510 (abbrev_table::alloc_abbrev)
9511 (abbrev_table::add_abbrev): Now private.
9512 (abbrev_table::abbrev_table): Now private.
9513 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9514
9515 2020-02-08 Tom Tromey <tom@tromey.com>
9516
9517 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9518 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9519 htab_up.
9520
9521 2020-02-08 Tom Tromey <tom@tromey.com>
9522
9523 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9524 htab_up.
9525 (lookup_dwo_unit_in_dwp): Update.
9526 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9527 on obstack.
9528
9529 2020-02-08 Tom Tromey <tom@tromey.com>
9530
9531 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9532 obstack.
9533
9534 2020-02-08 Tom Tromey <tom@tromey.com>
9535
9536 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9537 line_header_hash.
9538 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9539 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9540 Change type to htab_up.
9541
9542 2020-02-08 Tom Tromey <tom@tromey.com>
9543
9544 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9545 htab_up. Don't allocate on obstack.
9546 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9547 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9548 Change type to htab_up.
9549
9550 2020-02-08 Tom Tromey <tom@tromey.com>
9551
9552 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9553 Change type to htab_up.
9554 * dwarf2/read.c (create_signatured_type_table_from_index)
9555 (create_signatured_type_table_from_debug_names)
9556 (create_all_type_units, add_type_unit)
9557 (lookup_dwo_signatured_type, lookup_signatured_type)
9558 (process_skeletonless_type_unit): Update.
9559 (create_debug_type_hash_table, create_debug_types_hash_table):
9560 Change type of types_htab.
9561 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9562 htab_up. Don't allocate on obstack.
9563 (create_cus_hash_table): Change type of cus_htab parameter.
9564 (struct dwo_file) <cus, tus>: Now htab_up.
9565 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9566 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9567 (queue_and_load_all_dwo_tus): Update.
9568 * dwarf2/index-write.c (write_gdbindex): Update.
9569 (write_debug_names): Update.
9570
9571 2020-02-08 Tom Tromey <tom@tromey.com>
9572
9573 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9574 dwarf2/read.c. Remove "next" member. Add constructor ntad
9575 destructor.
9576 (struct dwarf2_per_objfile) <queue>: New member.
9577 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9578 dwarf2/read.h.
9579 (dwarf2_queue, dwarf2_queue_tail): Remove.
9580 (class dwarf2_queue_guard): Add parameter to constructor. Use
9581 DISABLE_COPY_AND_ASSIGN.
9582 <m_per_objfile>: New member.
9583 <~dwarf2_queue_guard>: Rewrite.
9584 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9585 Update.
9586 (~dwarf2_queue_item): New.
9587
9588 2020-02-08 Tom Tromey <tom@tromey.com>
9589
9590 * dwarf2/read.c (struct die_info) <has_children>: New member.
9591 (dw2_get_file_names_reader): Remove has_children.
9592 (dw2_get_file_names): Update.
9593 (read_cutu_die_from_dwo): Remove has_children.
9594 (cutu_reader::init_tu_and_read_dwo_dies)
9595 (cutu_reader::cutu_reader): Update.
9596 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9597 Remove has_children.
9598 (build_type_psymtabs_1, process_skeletonless_type_unit)
9599 (load_partial_comp_unit, load_full_comp_unit): Update.
9600 (create_dwo_cu_reader): Remove has_children.
9601 (create_cus_hash_table, read_die_and_children): Update.
9602 (read_full_die_1,read_full_die): Remove has_children.
9603 (read_signatured_type): Update.
9604 (class cutu_reader) <has_children>: Remove.
9605
9606 2020-02-08 Tom Tromey <tom@tromey.com>
9607
9608 * dwarf2/expr.c: Rename from dwarf2expr.c.
9609 * dwarf2/expr.h: Rename from dwarf2expr.h.
9610 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9611 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9612 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9613 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9614 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9615 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9616 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9617 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9618 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9619 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9620 * dwarf2/loc.c: Rename from dwarf2loc.c.
9621 * dwarf2/loc.h: Rename from dwarf2loc.h.
9622 * dwarf2/read.c: Rename from dwarf2read.c.
9623 * dwarf2/read.h: Rename from dwarf2read.h.
9624 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9625 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9626 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9627 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9628 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9629 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9630 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9631 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9632 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9633 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9634 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9635 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9636 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9637 Update.
9638 * Makefile.in (COMMON_SFILES): Update.
9639 (HFILES_NO_SRCDIR): Update.
9640
9641 2020-02-08 Tom Tromey <tom@tromey.com>
9642
9643 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9644 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9645
9646 2020-02-08 Tom Tromey <tom@tromey.com>
9647
9648 * dwarf2read.h (struct die_info): Don't declare.
9649
9650 2020-02-08 Tom Tromey <tom@tromey.com>
9651
9652 * dwarf2read.h (die_info_ptr): Remove typedef.
9653
9654 2020-02-08 Tom Tromey <tom@tromey.com>
9655
9656 * dwarf2read.c (read_call_site_scope)
9657 (handle_data_member_location, dwarf2_add_member_fn)
9658 (mark_common_block_symbol_computed, read_common_block)
9659 (attr_to_dynamic_prop, partial_die_info::read)
9660 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9661 (dwarf2_symbol_mark_computed, set_die_type): Update.
9662 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9663 method.
9664 (attr_form_is_block): Don't declare.
9665 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9666
9667 2020-02-08 Tom Tromey <tom@tromey.com>
9668
9669 * dwarf2read.c (dwarf2_find_base_address, )
9670 (read_call_site_scope, rust_containing_type)
9671 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9672 (handle_data_member_location, dwarf2_add_member_fn)
9673 (get_alignment, read_structure_type, process_structure_scope)
9674 (mark_common_block_symbol_computed, read_common_block)
9675 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9676 (partial_die_info::read, read_attribute_value, new_symbol)
9677 (lookup_die_type, dwarf2_get_ref_die_offset)
9678 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9679 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9680 (dwarf2_symbol_mark_computed): Update.
9681 * dwarf2/attribute.h (struct attribute) <value_as_address,
9682 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9683 methods.
9684 (value_as_address, attr_form_is_section_offset)
9685 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9686 * dwarf2/attribute.c (attribute::value_as_address)
9687 (attribute::form_is_section_offset, attribute::form_is_constant)
9688 (attribute::form_is_ref): Now methods.
9689
9690 2020-02-08 Tom Tromey <tom@tromey.com>
9691
9692 * dwarf2read.c (struct attribute, DW_STRING)
9693 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9694 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9695 (attr_form_is_block, attr_form_is_section_offset)
9696 (attr_form_is_constant, attr_form_is_ref): Move.
9697 * dwarf2/attribute.h: New file.
9698 * dwarf2/attribute.c: New file, from dwarf2read.c.
9699 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9700
9701 2020-02-08 Tom Tromey <tom@tromey.com>
9702
9703 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9704 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9705 Move.
9706 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9707 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9708 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9709 abbrev.c.
9710 * dwarf2/abbrev.h: New file.
9711 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9712 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9713
9714 2020-02-08 Tom Tromey <tom@tromey.com>
9715
9716 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9717 (dwarf2_section_size, dwarf2_get_section_info)
9718 (create_signatured_type_table_from_debug_names)
9719 (create_addrmap_from_aranges, read_debug_names_from_section)
9720 (get_gdb_index_contents_from_section, read_comp_unit_head)
9721 (error_check_comp_unit_head, read_abbrev_offset)
9722 (create_debug_type_hash_table, init_cu_die_reader)
9723 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9724 (read_comp_units_from_section, create_cus_hash_table)
9725 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9726 (create_dwp_v2_section, dwarf2_rnglists_process)
9727 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9728 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9729 (read_indirect_string_from_dwz, read_addr_index_1)
9730 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9731 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9732 (fill_in_loclist_baton): Update.
9733 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9734 get_containing_section, get_bfd_owner, get_bfd_section,
9735 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9736 (dwarf2_read_section, get_section_name, get_section_file_name)
9737 (get_containing_section, get_section_bfd_owner)
9738 (get_section_bfd_section, get_section_name, get_section_file_name)
9739 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9740 declare.
9741 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9742 (dwarf2_section_info::get_bfd_owner)
9743 (dwarf2_section_info::get_bfd_section)
9744 (dwarf2_section_info::get_name)
9745 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9746 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9747 (dwarf2_section_info::read): Now methods.
9748 * dwarf-index-write.c (class debug_names): Update.
9749
9750 2020-02-08 Tom Tromey <tom@tromey.com>
9751
9752 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9753 Move to dwarf2/section.h.
9754 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9755 (get_section_bfd_section, get_section_name)
9756 (get_section_file_name, get_section_id, get_section_flags)
9757 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9758 dwarf2/section.c.
9759 * dwarf2/section.h: New file.
9760 * dwarf2/section.c: New file, from dwarf2read.c.
9761 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9762
9763 2020-02-08 Tom Tromey <tom@tromey.com>
9764
9765 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9766 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9767 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9768 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9769 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9770 * dwarf2/leb.h: New file, from dwarf2read.c.
9771 * dwarf2/leb.c: New file, from dwarf2read.c.
9772 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9773 Remove.
9774 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9775 (COMMON_SFILES): Add dwarf2/leb.c.
9776
9777 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9778
9779 GDB 9.1 released.
9780
9781 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9782
9783 PR gdb/25190:
9784 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9785 * gdb/remote.c (remote_console_output): Update.
9786 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9787 (ui_file_puts): ...this.
9788 * gdb/ui-file.h (ui_file_puts): Add declaration.
9789 * gdb/utils.c (emit_style_escape): Update.
9790 (flush_wrap_buffer): Update.
9791 (fputs_maybe_filtered): Update.
9792 (fputs_unfiltered): Add function.
9793
9794 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9795
9796 * gdb/event-loop.c (gdb_wait_for_event): Update.
9797 * gdb/printcmd.c (printf_command): Update.
9798 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9799 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9800 (gdb_os_flush_stderr): Update.
9801 * gdb/remote.c (remote_console_output): Update.
9802 * gdb/ui-file.c (gdb_flush): Rename to...
9803 (ui_file_flush): ...this.
9804 (stderr_file::write): Update.
9805 (stderr_file::puts): Update.
9806 * gdb/ui-file.h (gdb_flush): Rename to...
9807 (ui_file_flush): ...this.
9808 * gdb/utils.c (gdb_flush): Add function.
9809 * gdb/utils.h (gdb_flush): Add declaration.
9810
9811 2020-02-07 Tom Tromey <tromey@adacore.com>
9812
9813 PR breakpoints/24915:
9814 * source.c (find_and_open_source): Do not check basenames_may_differ.
9815
9816 2020-02-07 Tom Tromey <tom@tromey.com>
9817
9818 * README: Update gdbserver documentation.
9819 * gdbserver: Move to top level.
9820 * configure.tgt (build_gdbserver): Remove.
9821 * configure.ac: Remove --enable-gdbserver.
9822 * configure: Rebuild.
9823 * Makefile.in (distclean): Don't mention gdbserver.
9824
9825 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9826
9827 * source-cache.c (source_cache::ensure): Surround
9828 get_plain_source_lines with a try/catch.
9829 (source_cache::get_line_charpos): Get rid of try/catch
9830 and only check for the return value of "ensure".
9831 * tui/tui-source.c (tui_source_window::set_contents):
9832 Simplify "nlines" calculation.
9833
9834 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9835
9836 * MAINTAINERS (Write After Approval): Add myself.
9837
9838 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9839
9840 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9841 function call.
9842
9843 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9844
9845 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9846
9847 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9848
9849 * nat/riscv-linux-tdesc.h: New file.
9850 * nat/riscv-linux-tdesc.c: New file, taking code from...
9851 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9852 ... here.
9853 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9854 NATDEPFILES.
9855
9856 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9857
9858 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9859 we don't set the fake simulator ptid to the null_ptid.
9860
9861 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9862
9863 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9864 * gdbthread.h (class thread_info) <resumed>: Likewise.
9865 * infrun.c (resume_1): Likewise.
9866 (proceed): Likewise.
9867 (infrun_thread_stop_requested): Likewise.
9868 (stop_all_threads): Likewise.
9869 (handle_inferior_event): Likewise.
9870 (restart_threads): Likewise.
9871 (finish_step_over): Likewise.
9872 (keep_going_stepped_thread): Likewise.
9873 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9874 (linux_handle_extended_wait): Likewise.
9875 * record-btrace.c (get_thread_current_frame_id): Likewise.
9876 * record-full.c (record_full_wait_1): Likewise.
9877 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9878 * target.c (target_resume): Likewise.
9879 * thread.c (set_running_thread): Likewise.
9880
9881 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9882
9883 * f-valprint.c (f77_print_array_1): Changed datatype of index
9884 variable to LONGEST from int to enable it to contain bound
9885 values correctly.
9886
9887 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9888
9889 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9890 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9891 offsets according to FLEN determined.
9892 (riscv_linux_nat_target::read_description): Determine FLEN
9893 dynamically.
9894 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9895 according to FLEN determined.
9896 (riscv_linux_nat_target::store_registers): Likewise.
9897
9898 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9899
9900 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9901 when reg->group is empty and reggroup is not.
9902
9903 2020-01-31 Tom Tromey <tromey@adacore.com>
9904
9905 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9906 Call beneath target's mourn_inferior after unpushing.
9907
9908 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9909
9910 PR tui/9765
9911 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9912 have enough lines to fill the screen, still return the lowest
9913 address we found.
9914
9915 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9916
9917 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9918 '-', '<', and '>' commands.
9919
9920 2020-01-29 Pedro Alves <palves@redhat.com>
9921 Sergio Durigan Junior <sergiodj@redhat.com>
9922
9923 * infcmd.c (construct_inferior_arguments): Assert that
9924 'argc' is greater than 0.
9925
9926 2020-01-29 Luis Machado <luis.machado@linaro.org>
9927
9928 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9929 (BRK_INSN_MASK): Define to 0xd4200000.
9930 (aarch64_program_breakpoint_here_p): New function.
9931 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9932 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9933 breakpoint.c.
9934 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9935 breakpoint.h
9936 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9937 call gdbarch_program_breakpoint_here_p.
9938 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9939 default_program_breakpoint_here_p, changed return type to bool and
9940 simplified.
9941 * breakpoint.h (program_breakpoint_here): Moved prototype to
9942 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9943 return type to bool.
9944 * gdbarch.c: Regenerate.
9945 * gdbarch.h: Regenerate.
9946 * gdbarch.sh (program_breakpoint_here_p): New method.
9947 * infrun.c (handle_signal_stop): Call
9948 gdbarch_program_breakpoint_here_p.
9949
9950 2020-01-26 Tom Tromey <tom@tromey.com>
9951
9952 * ctfread.c (struct ctf_fp_info): Reindent.
9953 (_initialize_ctfread): Remove.
9954
9955 2020-01-26 Tom Tromey <tom@tromey.com>
9956
9957 * psymtab.c (partial_map_expand_apply)
9958 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9959 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9960 (psym_print_stats, psym_expand_symtabs_for_function)
9961 (psym_map_symbol_filenames, psym_map_matching_symbols)
9962 (psym_expand_symtabs_matching)
9963 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9964 (maintenance_check_psymtabs): Use new methods.
9965 * psympriv.h (struct partial_symtab) <readin_p,
9966 get_compunit_symtab>: New methods.
9967 <readin, compunit_symtab>: Remove members.
9968 (struct standard_psymtab): New.
9969 (struct legacy_psymtab): Derive from standard_psymtab.
9970 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9971 standard_psymtab.
9972 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9973
9974 2020-01-26 Tom Tromey <tom@tromey.com>
9975
9976 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9977 read_dependencies. Add assert.
9978 * psymtab.c (partial_symtab::read_dependencies): New method.
9979 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9980 method.
9981 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9982 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9983 read_dependencies.
9984 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9985 Add assert.
9986
9987 2020-01-26 Tom Tromey <tom@tromey.com>
9988
9989 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9990 Call expand_psymtab.
9991 (xcoff_read_symtab): Call expand_psymtab.
9992 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9993 legacy_expand_psymtab.
9994 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9995 method.
9996 (struct legacy_psymtab) <expand_psymtab>: Implement.
9997 <legacy_expand_psymtab>: New member.
9998 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9999 (parse_partial_symbols): Set legacy_expand_psymtab.
10000 (psymtab_to_symtab_1): Change argument order. Call
10001 expand_psymtab.
10002 (new_psymtab): Set legacy_expand_psymtab.
10003 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10004 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10005 expand_psymtab.
10006 (dwarf2_psymtab::expand_psymtab): Rename from
10007 psymtab_to_symtab_1. Call expand_psymtab.
10008 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10009 (dbx_end_psymtab): Likewise.
10010 (dbx_psymtab_to_symtab_1): Change argument order. Call
10011 expand_psymtab.
10012 (dbx_read_symtab): Call expand_psymtab.
10013 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10014 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10015 (ctf_psymtab::read_symtab): Call expand_psymtab.
10016
10017 2020-01-26 Tom Tromey <tom@tromey.com>
10018
10019 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10020 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10021 messages.
10022 * mdebugread.c (mdebug_read_symtab): Remove prints.
10023 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10024 assert.
10025 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10026
10027 2020-01-26 Tom Tromey <tom@tromey.com>
10028
10029 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10030 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10031 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10032 legacy_symtab.
10033 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10034 * psymtab.c (psymtab_to_symtab): Call method.
10035 (dump_psymtab): Update.
10036 * psympriv.h (struct partial_symtab): Add virtual destructor.
10037 <read_symtab>: New method.
10038 (struct legacy_symtab): New.
10039 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10040 (struct pst_map) <pst>: Now a legacy_psymtab.
10041 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10042 (new_psymtab): Use legacy_psymtab.
10043 * dwarf2read.h (struct dwarf2_psymtab): New.
10044 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10045 * dwarf2read.c (dwarf2_create_include_psymtab)
10046 (dwarf2_build_include_psymtabs, create_type_unit_group)
10047 (create_partial_symtab, process_psymtab_comp_unit_reader)
10048 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10049 (set_partial_user): Use dwarf2_psymtab.
10050 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10051 (psymtab_to_symtab_1, process_full_comp_unit)
10052 (process_full_type_unit, dwarf2_ranges_read)
10053 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10054 (dwarf_decode_lines): Use dwarf2_psymtab.
10055 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10056 (add_address_entry_worker, write_one_signatured_type)
10057 (recursively_count_psymbols, recursively_write_psymbols)
10058 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10059 (write_debug_names): Likewise.
10060 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10061 <pst>: Now a legacy_psymtab.
10062 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10063 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10064 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10065 * ctfread.c (struct ctf_psymtab): New.
10066 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10067 ctf_psymtab.
10068 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10069 (create_partial_symtab): Return a ctf_psymtab.
10070 (scan_partial_symbols): Update.
10071
10072 2020-01-26 Tom Tromey <tom@tromey.com>
10073
10074 * xcoffread.c (xcoff_start_psymtab): Use new.
10075 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10076 renamed from start_psymtab_common.
10077 * psympriv.h (struct partial_symtab): Add new constructor.
10078 (start_psymtab_common): Don't declare.
10079 * mdebugread.c (parse_partial_symbols): Use new.
10080 * dwarf2read.c (create_partial_symtab): Use new.
10081 * dbxread.c (start_psymtab): Use new.
10082 * ctfread.c (create_partial_symtab): Use new.
10083
10084 2020-01-26 Tom Tromey <tom@tromey.com>
10085
10086 * xcoffread.c (xcoff_end_psymtab): Use new.
10087 * psymtab.c (start_psymtab_common): Use new.
10088 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10089 Update.
10090 * psympriv.h (struct partial_symtab): Add parameters to
10091 constructor. Don't inline.
10092 (allocate_psymtab): Don't declare.
10093 * mdebugread.c (new_psymtab): Use new.
10094 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10095 * dbxread.c (dbx_end_psymtab): Use new.
10096
10097 2020-01-26 Tom Tromey <tom@tromey.com>
10098
10099 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10100 allocate_psymtab. Update documentation.
10101 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10102 allocate_psymtab. Do not use new.
10103 (allocate_psymtab): Use new. Update.
10104
10105 2020-01-26 Tom Tromey <tom@tromey.com>
10106
10107 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10108 * psymtab.c (psym_print_stats): Update.
10109 * psympriv.h (struct partial_symtab) <readin,
10110 psymtabs_addrmap_supported, anonymous>: Now bool.
10111 * mdebugread.c (psymtab_to_symtab_1): Update.
10112 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10113 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10114 (process_full_comp_unit, process_full_type_unit): Update.
10115 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10116 * ctfread.c (psymtab_to_symtab): Update.
10117
10118 2020-01-26 Tom Tromey <tom@tromey.com>
10119
10120 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10121 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10122 * psymtab.c (psymtab_storage): Delete psymtabs.
10123 (psymtab_storage::allocate_psymtab): Use new.
10124 (psymtab_storage::discard_psymtab): Use delete.
10125 * psympriv.h (struct partial_symtab): Add constructor and
10126 initializers.
10127
10128 2020-01-26 Tom Tromey <tom@tromey.com>
10129
10130 * machoread.c: Do not include psympriv.h.
10131
10132 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10133
10134 * NEWS: Mention the new option and the set/show commands.
10135
10136 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10137
10138 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10139 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10140 (validate_exec_file): New variables, enums, functions.
10141 (exec_file_locate_attach, print_section_info): Style the filenames.
10142 (_initialize_exec): Install show_exec_file_mismatch_command and
10143 set_exec_file_mismatch_command.
10144 * gdbcore.h (validate_exec_file): Declare.
10145 * infcmd.c (attach_command): Call validate_exec_file.
10146 * remote.c ( remote_target::remote_add_inferior): Likewise.
10147
10148 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10149
10150 * frame.c (find_frame_sal): Move call to get_next_frame into more
10151 inner scope.
10152 * inline-frame.c (inilne_state) <inline_state>: Update argument
10153 types.
10154 (inilne_state) <skipped_symbol>: Rename to...
10155 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10156 (skip_inline_frames): Build vector of skipped symbols and use this
10157 to reate the inline_state.
10158 (inline_skipped_symbol): Add a comment and some assertions, fetch
10159 skipped symbol from the list.
10160
10161 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10162
10163 * buildsym.c (lte_is_less_than): Delete.
10164 (buildsym_compunit::end_symtab_with_blockvector): Create local
10165 lambda function to sort line table entries, and use
10166 std::stable_sort instead of std::sort.
10167 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10168 markers when looking for a previous line.
10169
10170 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10171
10172 * dwarf2read.c (lnp_state_machine::record_line): Include
10173 end_sequence parameter in debug print out. Record the line if we
10174 are at an end_sequence marker even if it's not the start of a
10175 statement.
10176 * symmisc.c (maintenance_print_one_line_table): Print end of
10177 sequence markers with 'END' not '0'.
10178
10179 2020-01-24 Pedro Alves <palves@redhat.com>
10180
10181 PR gdb/25410
10182 * thread.c (scoped_restore_current_thread::restore): Use
10183 switch_to_inferior_no_thread.
10184 * exec.c: Include "progspace-and-thread.h".
10185 (add_target_sections, remove_target_sections):
10186 scoped_restore_current_pspace_and_thread instead of
10187 scoped_restore_current_thread.
10188 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10189 and aspace to the inferior before calling clone_program_space.
10190 Remove stale comment.
10191
10192 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10193
10194 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10195 (arm_netbsd_nat_target::fetch_registers): ...this.
10196 (arm_nbsd_nat_target::store_registers): Rename to...
10197 (arm_netbsd_nat_target::store_registers): ...this.
10198
10199 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10200
10201 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10202 register_t.
10203
10204 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10205
10206 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10207 Update comment.
10208 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10209 Likewise.
10210 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10211 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10212 the correct replacement (iterate_over_regset_sections).
10213 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10214 Update comment.
10215
10216 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10217
10218 PR gdb/23718
10219 * gdb/python/python.c (execute_gdb_command): Call
10220 async_enable_stdin in catch block.
10221
10222 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10223
10224 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10225 SWITCH_THRU_ALL_UIS.
10226
10227 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10228
10229 PR tui/9765
10230 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10231 comment, add extra parameter, and update to store previous symbol
10232 when appropriate.
10233 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10234 add extra parameter.
10235 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10236 remove unneeded parameter, add try/catch around gdb_print_insn,
10237 rewrite to add items to asm_lines vector.
10238 (tui_find_backward_disassembly_start_address): New function.
10239 (tui_find_disassembly_address): Updated throughout.
10240 (tui_disasm_window::set_contents): Update for changes to
10241 tui_disassemble.
10242 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10243 number of lines to scroll.
10244
10245 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10246
10247 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10248 (SECT_OFF_DATA): Likewise.
10249 (SECT_OFF_RODATA): Likewise.
10250 (SECT_OFF_TEXT): Likewise.
10251 (SECT_OFF_BSS): Likewise.
10252 (struct objfile) <text_section_offset, data_section_offset>: New
10253 methods.
10254 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10255 objfile::text_section_offset.
10256 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10257 * coffread.c (coff_symtab_read): Likewise.
10258 (enter_linenos): Likewise.
10259 (process_coff_symbol): Likewise.
10260 * ctfread.c (get_objfile_text_range): Likewise.
10261 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10262 Use objfile::data_section_offset.
10263 * dwarf2-frame.c (execute_cfa_program): Use
10264 objfile::text_section_offset.
10265 (dwarf2_frame_find_fde): Likewise.
10266 * dwarf2read.c (create_addrmap_from_index): Likewise.
10267 (create_addrmap_from_aranges): Likewise.
10268 (dw2_find_pc_sect_compunit_symtab): Likewise.
10269 (process_psymtab_comp_unit_reader): Likewise.
10270 (add_partial_symbol): Likewise.
10271 (add_partial_subprogram): Likewise.
10272 (process_full_comp_unit): Likewise.
10273 (read_file_scope): Likewise.
10274 (read_func_scope): Likewise.
10275 (read_lexical_block_scope): Likewise.
10276 (read_call_site_scope): Likewise.
10277 (dwarf2_rnglists_process): Likewise.
10278 (dwarf2_ranges_process): Likewise.
10279 (dwarf2_ranges_read): Likewise.
10280 (dwarf_decode_lines_1): Likewise.
10281 (new_symbol): Likewise.
10282 (dwarf2_fetch_die_loc_sect_off): Likewise.
10283 (dwarf2_per_cu_text_offset): Likewise.
10284 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10285 * hppa-tdep.c (read_unwind_info): Likewise.
10286 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10287 * psympriv.h (struct partial_symtab): Likewise.
10288 * psymtab.c (find_pc_sect_psymtab): Likewise.
10289 * solib-svr4.c (enable_break): Likewise.
10290 * stap-probe.c (relocate_address): Use
10291 objfile::data_section_offset.
10292 * xcoffread.c (enter_line_range): Use
10293 objfile::text_section_offset.
10294 (read_xcoff_symtab): Likewise.
10295
10296 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10297
10298 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10299 declaration to narrower scopes.
10300
10301 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10302
10303 * darwin-nat.h (struct darwin_exception_msg, enum
10304 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10305 Move up.
10306 (class darwin_nat_target) <wait_1, check_new_threads,
10307 decode_exception_message, decode_message, stop_inferior,
10308 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10309 * darwin-nat.c (darwin_check_new_threads): Rename to...
10310 (darwin_nat_target::check_new_threads): ... this.
10311 (darwin_suspend_inferior_it): Remove.
10312 (darwin_decode_exception_message): Rename to...
10313 (darwin_nat_target::decode_exception_message): ... this.
10314 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10315 (darwin_decode_message): Rename to...
10316 (darwin_nat_target::decode_message): ... this.
10317 (cancel_breakpoint): Rename to...
10318 (darwin_nat_target::cancel_breakpoint): ... this.
10319 (darwin_wait): Rename to...
10320 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10321 instead of iterate_over_inferiors.
10322 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10323 (darwin_stop_inferior): Rename to...
10324 (darwin_nat_target::stop_inferior): ... this.
10325 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10326 (darwin_init_thread_list): Rename to...
10327 (darwin_nat_target::init_thread_list): ... this.
10328 (darwin_ptrace_him): Rename to...
10329 (darwin_nat_target::ptrace_him): ... this.
10330 (darwin_nat_target::create_inferior): Pass lambda function to
10331 fork_inferior.
10332 (darwin_nat_target::detach): Call stop_inferior instead of
10333 darwin_stop_inferior.
10334 * fork-inferior.h (fork_inferior): Change init_trace_fun
10335 parameter to gdb::function_view.
10336 * fork-inferior.c (fork_inferior): Likewise.
10337
10338 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10339
10340 * i386-cygwin-tdep.c (core_process_module_section): Update.
10341 * windows-nat.c (struct lm_info_windows): Add text_offset.
10342 (windows_xfer_shared_libraries): Update.
10343 * windows-tdep.c (windows_xfer_shared_library):
10344 Add text_offset_cached argument.
10345 * windows-tdep.h (windows_xfer_shared_library): Update.
10346
10347 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10348
10349 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10350
10351 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10352
10353 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10354 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10355 replace with range-based for.
10356 (gdbsim_interrupt_inferior): Remove.
10357 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10358 with a range-based for. Inline code from
10359 gdbsim_interrupt_inferior.
10360
10361 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10362
10363 * infrun.c (proceed): Fix indentation.
10364
10365 2020-01-21 Tom Tromey <tromey@adacore.com>
10366
10367 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10368 * python/python.c (python_extension_ops): Update.
10369 (gdbpy_colorize): New function.
10370 * python/lib/gdb/__init__.py (colorize): New function.
10371 * extension.h (ext_lang_colorize): Declare.
10372 * extension.c (ext_lang_colorize): New function.
10373 * extension-priv.h (struct extension_language_ops) <colorize>: New
10374 member.
10375 * cli/cli-style.c (_initialize_cli_style): Update help text.
10376
10377 2020-01-21 Luis Machado <luis.machado@linaro.org>
10378
10379 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10380 <cond>: Change type to bool.
10381 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10382 (aarch64_displaced_step_cb): Likewise.
10383 (aarch64_displaced_step_tb): Likewise.
10384
10385 2020-01-21 Luis Machado <luis.machado@linaro.org>
10386
10387 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10388 output.
10389
10390 2020-01-21 Luis Machado <luis.machado@linaro.org>
10391
10392 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10393 <pc_adjust>: Adjust the documentation.
10394 (aarch64_displaced_step_fixup): Check if PC really moved before
10395 adjusting it.
10396
10397 2020-01-19 Tom Tromey <tom@tromey.com>
10398
10399 * disasm.c (~gdb_disassembler): New destructor.
10400 (gdb_buffered_insn_length): Call disassemble_free_target.
10401 * disasm.h (class gdb_disassembler): Declare destructor. Use
10402 DISABLE_COPY_AND_ASSIGN.
10403
10404 2020-01-19 Tom Tromey <tom@tromey.com>
10405
10406 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10407 (die_reader_func_ftype): Remove.
10408 (cutu_reader): New class.
10409 (dw2_get_file_names_reader): Remove "data" parameter.
10410 (dw2_get_file_names): Use cutu_reader.
10411 (create_debug_type_hash_table): Update.
10412 (read_cutu_die_from_dwo): Update comment.
10413 (lookup_dwo_unit): Add dwo_name parameter.
10414 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10415 die_reader_func_ftype and data parameters.
10416 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10417 Remove die_reader_func_ftype and data parameters.
10418 (~cutu_reader): New; from init_cutu_and_read_dies.
10419 (cutu_reader::cutu_reader): Rename from
10420 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10421 and data parameters.
10422 (init_cutu_and_read_dies_simple): Remove.
10423 (struct process_psymtab_comp_unit_data): Remove.
10424 (process_psymtab_comp_unit_reader): Remove data parameter; add
10425 want_partial_unit and pretend_language parameters.
10426 (process_psymtab_comp_unit): Use cutu_reader.
10427 (build_type_psymtabs_reader): Remove data parameter.
10428 (build_type_psymtabs_1): Use cutu_reader.
10429 (process_skeletonless_type_unit): Likewise.
10430 (load_partial_comp_unit_reader): Remove.
10431 (load_partial_comp_unit): Use cutu_reader.
10432 (load_full_comp_unit_reader): Remove.
10433 (load_full_comp_unit): Use cutu_reader.
10434 (struct create_dwo_cu_data): Remove.
10435 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10436 dwo_unit parameters.
10437 (create_cus_hash_table): Use cutu_reader.
10438 (struct dwarf2_read_addr_index_data): Remove.
10439 (dwarf2_read_addr_index_reader): Remove.
10440 (dwarf2_read_addr_index): Use cutu_reader.
10441 (read_signatured_type_reader): Remove.
10442 (read_signatured_type): Use cutu_reader.
10443
10444 2020-01-19 Tom Tromey <tom@tromey.com>
10445
10446 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10447 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10448 (tui_wrefresh): Declare.
10449 * tui/tui-wingeneral.c (suppress_output): New global.
10450 (tui_suppress_output, ~tui_suppress_output): New constructor and
10451 destructor.
10452 (tui_wrefresh): New function.
10453 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10454 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10455 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10456 method.
10457 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10458 tui_wrefresh.
10459 (tui_data_window::no_refresh): New method.
10460 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10461 (tui_reg_command): Use tui_suppress_output
10462 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10463 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10464 method.
10465 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10466
10467 2020-01-19 Tom Tromey <tom@tromey.com>
10468
10469 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10470 Handle case where symtab is null.
10471
10472 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10473
10474 * linux-fork.c (one_fork_p): Simplify.
10475
10476 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10477
10478 * top.c (struct qt_args): Remove.
10479 (kill_or_detach): Change return type to void, replace `void *`
10480 parameter with a proper one.
10481 (print_inferior_quit_action): Likewise.
10482 (quit_confirm): Use range-based for loop to iterate over inferiors.
10483 (quit_force): Likewise.
10484
10485 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10486
10487 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10488 `void *` parameter with proper parameters.
10489 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10490 (print_one_inferior): Change return type to void, replace `void *`
10491 parameter with proper parameters.
10492 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10493 inferiors.
10494 (get_other_inferior): Remove.
10495 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10496 inferiors.
10497
10498 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10499
10500 * mi/mi-interp.c (report_initial_inferior): Remove.
10501 (mi_interp::init): Use range-based for to iterate over inferiors.
10502
10503 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10504
10505 * python/py-inferior.c (build_inferior_list): Remove.
10506 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10507
10508 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10509
10510 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10511 (btrace_stitch_trace): Likewise.
10512 * charset.c (intermediate_encoding): Likewise (vaild).
10513 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10514 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10515 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10516
10517 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10518
10519 * windows-tdep.c (windows_get_tlb_type):
10520 Add rtl_user_process_parameters type.
10521
10522 2020-01-16 Pedro Alves <palves@redhat.com>
10523 Norbert Lange <nolange79@gmail.com>
10524
10525 PR build/24805
10526 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10527 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10528 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10529 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10530 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10531 (ps_plog): Redeclare exported functions with default visibility.
10532
10533 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10534
10535 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10536 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10537
10538 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10539
10540 * infcmd.c (post_create_inferior): Use get_thread_regcache
10541 instead of get_current_regcache.
10542
10543 2020-01-14 Tom Tromey <tom@tromey.com>
10544
10545 PR symtab/12535:
10546 * python/python.c (gdbpy_decode_line): Treat empty string the same
10547 as no argument.
10548
10549 2020-01-14 Tom Tromey <tom@tromey.com>
10550
10551 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10552
10553 2020-01-14 Tom Tromey <tom@tromey.com>
10554
10555 * nat/linux-btrace.c: Don't include <config.h>.
10556 * nat/linux-ptrace.c: Don't include <config.h>.
10557 * nat/x86-linux-dregs.c: Don't include <config.h>.
10558
10559 2020-01-14 Tom Tromey <tom@tromey.com>
10560
10561 * configure: Rebuild.
10562 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10563
10564 2020-01-14 Tom Tromey <tom@tromey.com>
10565
10566 * nat/x86-linux-dregs.c: Include configh.h.
10567 * nat/linux-ptrace.c: Include configh.h.
10568 * nat/linux-btrace.c: Include configh.h.
10569 * defs.h: Include config.h, bfd.h.
10570 * configure.ac: Don't source common.host.
10571 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10572 * configure: Rebuild.
10573 * acinclude.m4: Update path.
10574 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10575 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10576 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10577 (CLIBS): Add LIBSUPPORT.
10578 (CDEPS): Likewise.
10579 (COMMON_SFILES): Remove gdbsupport files.
10580 (HFILES_NO_SRCDIR): Likewise.
10581 (stamp-version): Update path to create-version.sh.
10582 (ALLDEPFILES): Remove gdbsupport files.
10583
10584 2020-01-14 Tom Tromey <tom@tromey.com>
10585
10586 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10587 USE_WIN32API when needed.
10588 * configure.ac (USE_WIN32API): Don't define.
10589 (WIN32LIBS): Use WIN32APILIBS.
10590 * configure: Rebuild.
10591
10592 2020-01-14 Tom Tromey <tom@tromey.com>
10593
10594 * configure: Rebuild.
10595 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10596
10597 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10598
10599 * skip.c (skip_function_command): Make skip w/o arguments use the
10600 name of the inlined function if pc is inside any inlined function.
10601
10602 2020-01-14 Luis Machado <luis.machado@linaro.org>
10603
10604 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10605 * infrun.c (resume_1): Likewise.
10606 (handle_inferior_event): Remove stale comment.
10607 * linux-nat.c (linux_nat_target::resume): Update comments.
10608 (save_stop_reason): Likewise.
10609 (linux_nat_filter_event): Likewise.
10610 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10611
10612 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10613
10614 * elfread.c (record_minimal_symbol): Set section index to 0 for
10615 non-allocatable sections.
10616
10617
10618 2020-01-13 Ali Tamur <tamur@google.com>
10619
10620 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10621 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10622 to gdb::optional. Update comments.
10623 (dwo_file): Update comments.
10624 (read_attribute): Update API to take an additional out parameter,
10625 need_reprocess. This is used to mark attributes that need other
10626 attributes (e.g. str_offsets_base) for correct computation which may not
10627 have been read yet.
10628 (read_attribute_reprocess): New function declaration.
10629 (read_addr_index): Likewise.
10630 (read_dwo_str_index): Likewise.
10631 (read_stub_str_index): Likewise.
10632 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10633 (lookup_addr_base): New function definition.
10634 (lookup_ranges_base): Likewise.
10635 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10636 lookup_ranges_base.
10637 (init_cutu_and_read_dies): Update comments.
10638 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10639 unit. This is used to inherit parent's str_offsets_base and addr_base.
10640 Update comments.
10641 (init_cutu_and_read_dies_simple): Reflect API changes.
10642 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10643 (create_cus_hash_table): Change API to take parent compile unit.
10644 Reflect API changes.
10645 (open_and_init_dwo_file): Reflect API changes.
10646 (dwarf2_get_pc_bounds): Update comments.
10647 (dwarf2_record_block_ranges): Likewise.
10648 (read_full_die_1): Change implementation to reprocess attributes that
10649 need str_offsets_base and addr_base.
10650 (partial_die_info::read): Likewise.
10651 (read_attribute_reprocess): New function definition.
10652 (read_attribute_value): Change API to take an additional out parameter,
10653 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10654 when a non-dwo compile unit has index based attributes.
10655 (read_attribute): Reflect API changes.
10656 (read_addr_index_1): Reflect API changes. Update comments.
10657 (dwarf2_read_addr_index_data): Reflect API changes.
10658 (dwarf2_read_addr_index): Likewise.
10659 (read_str_index): Change API and implementation. This becomes a helper
10660 to be used by the new string index related methods. Update error
10661 message and comments.
10662 (read_dwo_str_index): New function definition.
10663 (read_stub_str_index): Likewise.
10664 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10665 * symfile.h (dwarf2_debug_sections): Likewise.
10666 * xcoffread.c (dwarf2_debug_sections): Likewise.
10667
10668 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10669
10670 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10671 core_reg_sect type to gdb_byte *.
10672 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10673 * cris-tdep.c (fetch_core_registers): Likewise.
10674 * corelow.c (core_target::get_core_register_section): Change
10675 type of `contents` to gdb::byte_vector.
10676
10677 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10678
10679 * tui/tui-wingeneral.c (box_win): Position the title in the center
10680 of the border.
10681
10682 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10683
10684 * corelow.c (core_target::get_core_register_section): Use
10685 std::vector instead of alloca.
10686
10687 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10688
10689 * warning.m4: Add -Wmissing-declarations to build_warnings.
10690 * configure: Re-generate.
10691
10692 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10693
10694 * python/python.c (init__gdb_module): Add declaration.
10695
10696 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10697
10698 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10699 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10700 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10701 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10702 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10703 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10704 * ada-exp.y (_initialize_ada_exp): Add declaration.
10705 * ada-lang.c (_initialize_ada_language): Add declaration.
10706 * ada-tasks.c (_initialize_tasks): Add declaration.
10707 * agent.c (_initialize_agent): Add declaration.
10708 * aix-thread.c (_initialize_aix_thread): Add declaration.
10709 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10710 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10711 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10712 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10713 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10714 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10715 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10716 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10717 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10718 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10719 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10720 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10721 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10722 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10723 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10724 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10725 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10726 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10727 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10728 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10729 * annotate.c (_initialize_annotate): Add declaration.
10730 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10731 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10732 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10733 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10734 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10735 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10736 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10737 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10738 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10739 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10740 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10741 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10742 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10743 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10744 * auto-load.c (_initialize_auto_load): Add declaration.
10745 * auxv.c (_initialize_auxv): Add declaration.
10746 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10747 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10748 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10749 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10750 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10751 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10752 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10753 * breakpoint.c (_initialize_breakpoint): Add declaration.
10754 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10755 * btrace.c (_initialize_btrace): Add declaration.
10756 * charset.c (_initialize_charset): Add declaration.
10757 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10758 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10759 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10760 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10761 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10762 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10763 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10764 * coffread.c (_initialize_coffread): Add declaration.
10765 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10766 * compile/compile.c (_initialize_compile): Add declaration.
10767 * complaints.c (_initialize_complaints): Add declaration.
10768 * completer.c (_initialize_completer): Add declaration.
10769 * copying.c (_initialize_copying): Add declaration.
10770 * corefile.c (_initialize_core): Add declaration.
10771 * corelow.c (_initialize_corelow): Add declaration.
10772 * cp-abi.c (_initialize_cp_abi): Add declaration.
10773 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10774 * cp-support.c (_initialize_cp_support): Add declaration.
10775 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10776 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10777 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10778 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10779 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10780 * ctfread.c (_initialize_ctfread): Add declaration.
10781 * d-lang.c (_initialize_d_language): Add declaration.
10782 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10783 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10784 * dbxread.c (_initialize_dbxread): Add declaration.
10785 * dcache.c (_initialize_dcache): Add declaration.
10786 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10787 * disasm.c (_initialize_disasm): Add declaration.
10788 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10789 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10790 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10791 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10792 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10793 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10794 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10795 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10796 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10797 * elfread.c (_initialize_elfread): Add declaration.
10798 * exec.c (_initialize_exec): Add declaration.
10799 * extension.c (_initialize_extension): Add declaration.
10800 * f-lang.c (_initialize_f_language): Add declaration.
10801 * f-valprint.c (_initialize_f_valprint): Add declaration.
10802 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10803 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10804 * filesystem.c (_initialize_filesystem): Add declaration.
10805 * findcmd.c (_initialize_mem_search): Add declaration.
10806 * findvar.c (_initialize_findvar): Add declaration.
10807 * fork-child.c (_initialize_fork_child): Add declaration.
10808 * frame-base.c (_initialize_frame_base): Add declaration.
10809 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10810 * frame.c (_initialize_frame): Add declaration.
10811 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10812 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10813 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10814 * gcore.c (_initialize_gcore): Add declaration.
10815 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10816 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10817 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10818 * gdbarch.c (_initialize_gdbarch): Add declaration.
10819 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10820 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10821 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10822 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10823 * go-lang.c (_initialize_go_language): Add declaration.
10824 * go32-nat.c (_initialize_go32_nat): Add declaration.
10825 * guile/guile.c (_initialize_guile): Add declaration.
10826 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10827 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10828 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10829 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10830 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10831 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10832 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10833 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10834 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10835 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10836 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10837 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10838 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10839 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10840 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10841 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10842 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10843 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10844 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10845 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10846 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10847 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10848 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10849 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10850 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10851 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10852 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10853 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10854 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10855 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10856 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10857 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10858 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10859 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10860 * infcall.c (_initialize_infcall): Add declaration.
10861 * infcmd.c (_initialize_infcmd): Add declaration.
10862 * inflow.c (_initialize_inflow): Add declaration.
10863 * infrun.c (_initialize_infrun): Add declaration.
10864 * interps.c (_initialize_interpreter): Add declaration.
10865 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10866 * jit.c (_initialize_jit): Add declaration.
10867 * language.c (_initialize_language): Add declaration.
10868 * linux-fork.c (_initialize_linux_fork): Add declaration.
10869 * linux-nat.c (_initialize_linux_nat): Add declaration.
10870 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10871 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10872 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10873 * m2-lang.c (_initialize_m2_language): Add declaration.
10874 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10875 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10876 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10877 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10878 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10879 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10880 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10881 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10882 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10883 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10884 * machoread.c (_initialize_machoread): Add declaration.
10885 * macrocmd.c (_initialize_macrocmd): Add declaration.
10886 * macroscope.c (_initialize_macroscope): Add declaration.
10887 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10888 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10889 * maint.c (_initialize_maint_cmds): Add declaration.
10890 * mdebugread.c (_initialize_mdebugread): Add declaration.
10891 * memattr.c (_initialize_mem): Add declaration.
10892 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10893 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10894 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10895 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10896 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10897 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10898 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10899 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10900 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10901 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10902 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10903 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10904 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10905 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10906 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10907 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10908 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10909 * mipsread.c (_initialize_mipsread): Add declaration.
10910 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10911 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10912 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10913 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10914 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10915 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10916 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10917 * nto-procfs.c (_initialize_procfs): Add declaration.
10918 * objc-lang.c (_initialize_objc_language): Add declaration.
10919 * observable.c (_initialize_observer): Add declaration.
10920 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10921 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10922 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10923 * osabi.c (_initialize_gdb_osabi): Add declaration.
10924 * osdata.c (_initialize_osdata): Add declaration.
10925 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10926 * parse.c (_initialize_parse): Add declaration.
10927 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10928 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10929 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10930 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10931 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10932 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10933 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10934 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10935 * printcmd.c (_initialize_printcmd): Add declaration.
10936 * probe.c (_initialize_probe): Add declaration.
10937 * proc-api.c (_initialize_proc_api): Add declaration.
10938 * proc-events.c (_initialize_proc_events): Add declaration.
10939 * proc-service.c (_initialize_proc_service): Add declaration.
10940 * procfs.c (_initialize_procfs): Add declaration.
10941 * producer.c (_initialize_producer): Add declaration.
10942 * psymtab.c (_initialize_psymtab): Add declaration.
10943 * python/python.c (_initialize_python): Add declaration.
10944 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10945 * record-btrace.c (_initialize_record_btrace): Add declaration.
10946 * record-full.c (_initialize_record_full): Add declaration.
10947 * record.c (_initialize_record): Add declaration.
10948 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10949 * regcache.c (_initialize_regcache): Add declaration.
10950 * reggroups.c (_initialize_reggroup): Add declaration.
10951 * remote-notif.c (_initialize_notif): Add declaration.
10952 * remote-sim.c (_initialize_remote_sim): Add declaration.
10953 * remote.c (_initialize_remote): Add declaration.
10954 * reverse.c (_initialize_reverse): Add declaration.
10955 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10956 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10957 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10958 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10959 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10960 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10961 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10962 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10963 Add declaration.
10964 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10965 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10966 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10967 * rust-exp.y (_initialize_rust_exp): Add declaration.
10968 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10969 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10970 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10971 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10972 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10973 * score-tdep.c (_initialize_score_tdep): Add declaration.
10974 * ser-go32.c (_initialize_ser_dos): Add declaration.
10975 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10976 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10977 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10978 * ser-uds.c (_initialize_ser_socket): Add declaration.
10979 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10980 * serial.c (_initialize_serial): Add declaration.
10981 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10982 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10983 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10984 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10985 * skip.c (_initialize_step_skip): Add declaration.
10986 * sol-thread.c (_initialize_sol_thread): Add declaration.
10987 * solib-aix.c (_initialize_solib_aix): Add declaration.
10988 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10989 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10990 * solib-frv.c (_initialize_frv_solib): Add declaration.
10991 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10992 * solib-target.c (_initialize_solib_target): Add declaration.
10993 * solib.c (_initialize_solib): Add declaration.
10994 * source-cache.c (_initialize_source_cache): Add declaration.
10995 * source.c (_initialize_source): Add declaration.
10996 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10997 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10998 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10999 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11000 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11001 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11002 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11003 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11004 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11005 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11006 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11007 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11008 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11009 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11010 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11011 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11012 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11013 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11014 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11015 * stabsread.c (_initialize_stabsread): Add declaration.
11016 * stack.c (_initialize_stack): Add declaration.
11017 * stap-probe.c (_initialize_stap_probe): Add declaration.
11018 * std-regs.c (_initialize_frame_reg): Add declaration.
11019 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11020 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11021 * symfile.c (_initialize_symfile): Add declaration.
11022 * symmisc.c (_initialize_symmisc): Add declaration.
11023 * symtab.c (_initialize_symtab): Add declaration.
11024 * target.c (_initialize_target): Add declaration.
11025 * target-connection.c (_initialize_target_connection): Add
11026 declaration.
11027 * target-dcache.c (_initialize_target_dcache): Add declaration.
11028 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11029 * thread.c (_initialize_thread): Add declaration.
11030 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11031 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11032 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11033 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11034 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11035 * tracectf.c (_initialize_ctf): Add declaration.
11036 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11037 * tracefile.c (_initialize_tracefile): Add declaration.
11038 * tracepoint.c (_initialize_tracepoint): Add declaration.
11039 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11040 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11041 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11042 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11043 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11044 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11045 * tui/tui.c (_initialize_tui): Add declaration.
11046 * typeprint.c (_initialize_typeprint): Add declaration.
11047 * ui-style.c (_initialize_ui_style): Add declaration.
11048 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11049 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11050 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11051 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11052 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11053 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11054 * unittests/filtered_iterator-selftests.c
11055 (_initialize_filtered_iterator_selftests): Add declaration.
11056 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11057 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11058 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11059 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11060 * unittests/main-thread-selftests.c
11061 (_initialize_main_thread_selftests): Add declaration.
11062 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11063 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11064 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11065 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11066 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11067 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11068 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11069 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11070 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11071 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11072 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11073 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11074 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11075 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11076 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11077 declaration.
11078 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11079 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11080 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11081 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11082 * user-regs.c (_initialize_user_regs): Add declaration.
11083 * utils.c (_initialize_utils): Add declaration.
11084 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11085 * valops.c (_initialize_valops): Add declaration.
11086 * valprint.c (_initialize_valprint): Add declaration.
11087 * value.c (_initialize_values): Add declaration.
11088 * varobj.c (_initialize_varobj): Add declaration.
11089 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11090 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11091 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11092 * windows-nat.c (_initialize_windows_nat): Add declaration.
11093 (_initialize_check_for_gdb_ini): Add declaration.
11094 (_initialize_loadable): Add declaration.
11095 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11096 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11097 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11098 * xcoffread.c (_initialize_xcoffread): Add declaration.
11099 * xml-support.c (_initialize_xml_support): Add declaration.
11100 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11101 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11102 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11103 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11104
11105 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11106
11107 * regformats/regdat.sh: Generate declaration for init function.
11108
11109 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11110
11111 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11112 up.
11113 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11114 close_one_inferior>: New methods.
11115 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11116 pass down target to find_inferior_pid.
11117 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11118 Pass down target to find_inferior_ptid.
11119 (gdbsim_target::create_inferior): Pass down target to
11120 add_thread_silent.
11121 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11122 target down to find_inferior_ptid and switch_to_thread.
11123 (gdbsim_target::close): Update to call close_one_inferior.
11124 (struct resume_data): Remove.
11125 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11126 directly, rather than through a void pointer.
11127 (gdbsim_target::resume): Update to call resume_one_inferior.
11128
11129 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11130
11131 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11132
11133 2020-01-12 Pedro Alves <palves@redhat.com>
11134
11135 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11136 directly for the current inferior instead of
11137 discard_all_inferiors.
11138 (discard_all_inferiors): Delete.
11139
11140 2020-01-11 Tom Tromey <tom@tromey.com>
11141
11142 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11143 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11144 deprecated_safe_get_selected_frame.
11145
11146 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11147
11148 * inferior.c (print_inferior): Switch inferior before printing it.
11149
11150 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11151 Pedro Alves <palves@redhat.com>
11152
11153 * progspace-and-thread.c (switch_to_program_space_and_thread):
11154 Assert there's an inferior for PSPACE. Use
11155 switch_to_inferior_no_thread to switch the inferior too.
11156 * progspace.c (program_space::~program_space): Call
11157 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11158 (program_space::free_all_objfiles): Don't call clear_symtab_users
11159 here.
11160 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11161
11162 2020-01-10 Pedro Alves <palves@redhat.com>
11163
11164 * NEWS: Mention multi-target debugging, "info connections", and
11165 "add-inferior -no-connection".
11166
11167 2020-01-10 Pedro Alves <palves@redhat.com>
11168
11169 * infrun.c: Include "target-connection.h".
11170 (check_multi_target_resumption): New.
11171 (proceed): Call it.
11172 * target-connection.c (make_target_connection_string): Make
11173 extern.
11174 * target-connection.h (make_target_connection_string): Declare.
11175
11176 2020-01-10 Pedro Alves <palves@redhat.com>
11177
11178 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11179 * inferior.c (uiout_field_connection): New function.
11180 (print_inferior): Add new "connection-id" column.
11181 (add_inferior_command): Show connection number/string of added
11182 inferior.
11183 * process-stratum-target.h
11184 (process_stratum_target::connection_string): New virtual method.
11185 (process_stratum_target::connection_number): New field.
11186 * remote.c (remote_target::connection_string): New override.
11187 * target-connection.c: New file.
11188 * target-connection.h: New file.
11189 * target.c (decref_target): Remove process_stratum targets from
11190 the connection list.
11191 (target_stack::push): Add process_stratum targets to the
11192 connection list.
11193
11194 2020-01-10 Pedro Alves <palves@redhat.com>
11195
11196 Revert:
11197 2016-04-12 Pedro Alves <palves@redhat.com>
11198 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11199 Remove references to name.
11200 * serial.h (struct serial) <name>: Delete.
11201
11202 2020-01-10 Pedro Alves <palves@redhat.com>
11203
11204 * gdbarch-selftests.c (register_to_value_test): Remove "target
11205 already pushed" check.
11206
11207 2020-01-10 Pedro Alves <palves@redhat.com>
11208 John Baldwin <jhb@FreeBSD.org>
11209
11210 * aarch64-linux-nat.c
11211 (aarch64_linux_nat_target::thread_architecture): Adjust.
11212 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11213 (task_command_1): Likewise.
11214 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11215 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11216 (aix_thread_target::store_registers)
11217 (aix_thread_target::thread_alive): Adjust.
11218 * amd64-fbsd-tdep.c: Include "inferior.h".
11219 (amd64fbsd_get_thread_local_address): Pass down target.
11220 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11221 thread's gdbarch instead of target_gdbarch.
11222 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11223 get_last_target_status.
11224 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11225 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11226 inferiors.
11227 (update_inserted_breakpoint_locations): Skip if inferiors with no
11228 execution.
11229 (update_global_location_list): When handling moribund locations,
11230 find representative inferior for location's pspace, and use thread
11231 count of its process_stratum target.
11232 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11233 * bsd-uthread.c (bsd_uthread_target::wait): Use
11234 as_process_stratum_target and adjust thread_change_ptid and
11235 add_thread calls.
11236 (bsd_uthread_target::update_thread_list): Use
11237 as_process_stratum_target and adjust find_thread_ptid,
11238 thread_change_ptid and add_thread calls.
11239 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11240 find_thread_ptid call.
11241 * corelow.c (add_to_thread_list): Adjust add_thread call.
11242 (core_target_open): Adjust add_thread_silent and thread_count
11243 calls.
11244 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11245 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11246 * event-top.c (async_disconnect): Pop targets from all inferiors.
11247 * exec.c (add_target_sections): Push exec target on all inferiors
11248 sharing the program space.
11249 (remove_target_sections): Remove the exec target from all
11250 inferiors sharing the program space.
11251 (exec_on_vfork): New.
11252 * exec.h (exec_on_vfork): Declare.
11253 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11254 Pass it down.
11255 (fbsd_nat_target::update_thread_list): Adjust.
11256 (fbsd_nat_target::resume): Adjust.
11257 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11258 down.
11259 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11260 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11261 get_thread_arch_regcache call.
11262 * fork-child.c (gdb_startup_inferior): Pass target down to
11263 startup_inferior and set_executing.
11264 * gdbthread.h (struct process_stratum_target): Forward declare.
11265 (add_thread, add_thread_silent, add_thread_with_info)
11266 (in_thread_list): Add process_stratum_target parameter.
11267 (find_thread_ptid(inferior*, ptid_t)): New overload.
11268 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11269 parameter.
11270 (all_threads()): Delete overload.
11271 (all_threads, all_non_exited_threads): Add process_stratum_target
11272 parameter.
11273 (all_threads_safe): Use brace initialization.
11274 (thread_count): Add process_stratum_target parameter.
11275 (set_resumed, set_running, set_stop_requested, set_executing)
11276 (threads_are_executing, finish_thread_state): Add
11277 process_stratum_target parameter.
11278 (switch_to_thread): Use is_current_thread.
11279 * i386-fbsd-tdep.c: Include "inferior.h".
11280 (i386fbsd_get_thread_local_address): Pass down target.
11281 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11282 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11283 have_inferiors check.
11284 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11285 (inf_ptrace_target::attach): Adjust.
11286 * infcall.c (run_inferior_call): Adjust.
11287 * infcmd.c (run_command_1): Pass target to
11288 scoped_finish_thread_state.
11289 (proceed_thread_callback): Skip inferiors with no execution.
11290 (continue_command): Rename 'all_threads' local to avoid hiding
11291 'all_threads' function. Adjust get_last_target_status call.
11292 (prepare_one_step): Adjust set_running call.
11293 (signal_command): Use user_visible_resume_target. Compare thread
11294 pointers instead of inferior_ptid.
11295 (info_program_command): Adjust to pass down target.
11296 (attach_command): Mark target's 'thread_executing' flag.
11297 (stop_current_target_threads_ns): New, factored out from ...
11298 (interrupt_target_1): ... this. Switch inferior before making
11299 target calls.
11300 * inferior-iter.h
11301 (struct all_inferiors_iterator, struct all_inferiors_range)
11302 (struct all_inferiors_safe_range)
11303 (struct all_non_exited_inferiors_range): Filter on
11304 process_stratum_target too. Remove explicit.
11305 * inferior.c (inferior::inferior): Push dummy target on target
11306 stack.
11307 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11308 Add process_stratum_target parameter, and pass it down.
11309 (have_live_inferiors): Adjust.
11310 (switch_to_inferior_and_push_target): New.
11311 (add_inferior_command, clone_inferior_command): Handle
11312 "-no-connection" parameter. Use
11313 switch_to_inferior_and_push_target.
11314 (_initialize_inferior): Mention "-no-connection" option in
11315 the help of "add-inferior" and "clone-inferior" commands.
11316 * inferior.h: Include "process-stratum-target.h".
11317 (interrupt_target_1): Use bool.
11318 (struct inferior) <push_target, unpush_target, target_is_pushed,
11319 find_target_beneath, top_target, process_target, target_at,
11320 m_stack>: New.
11321 (discard_all_inferiors): Delete.
11322 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11323 (all_inferiors, all_non_exited_inferiors): Add
11324 process_stratum_target parameter.
11325 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11326 (target_last_proc_target): New global.
11327 (follow_fork_inferior): Push target on new inferior. Pass target
11328 to add_thread_silent. Call exec_on_vfork. Handle target's
11329 reference count.
11330 (follow_fork): Adjust get_last_target_status call. Also consider
11331 target.
11332 (follow_exec): Push target on new inferior.
11333 (struct execution_control_state) <target>: New field.
11334 (user_visible_resume_target): New.
11335 (do_target_resume): Call target_async.
11336 (resume_1): Set target's threads_executing flag. Consider resume
11337 target.
11338 (commit_resume_all_targets): New.
11339 (proceed): Also consider resume target. Skip threads of inferiors
11340 with no execution. Commit resumtion in all targets.
11341 (start_remote): Pass current inferior to wait_for_inferior.
11342 (infrun_thread_stop_requested): Consider target as well. Pass
11343 thread_info pointer to clear_inline_frame_state instead of ptid.
11344 (infrun_thread_thread_exit): Consider target as well.
11345 (random_pending_event_thread): New inferior parameter. Use it.
11346 (do_target_wait): Rename to ...
11347 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11348 down.
11349 (threads_are_resumed_pending_p, do_target_wait): New.
11350 (prepare_for_detach): Adjust calls.
11351 (wait_for_inferior): New inferior parameter. Handle it. Use
11352 do_target_wait_1 instead of do_target_wait.
11353 (fetch_inferior_event): Adjust. Switch to representative
11354 inferior. Pass target down.
11355 (set_last_target_status): Add process_stratum_target parameter.
11356 Save target in global.
11357 (get_last_target_status): Add process_stratum_target parameter and
11358 handle it.
11359 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11360 (context_switch): Check inferior_ptid == null_ptid before calling
11361 inferior_thread().
11362 (get_inferior_stop_soon): Pass down target.
11363 (wait_one): Rename to ...
11364 (poll_one_curr_target): ... this.
11365 (struct wait_one_event): New.
11366 (wait_one): New.
11367 (stop_all_threads): Adjust.
11368 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11369 event's target.
11370 (switch_back_to_stepped_thread): Also consider target.
11371 (print_stop_event): Update.
11372 (normal_stop): Update. Also consider the resume target.
11373 * infrun.h (wait_for_inferior): Remove declaration.
11374 (user_visible_resume_target): New declaration.
11375 (get_last_target_status, set_last_target_status): New
11376 process_stratum_target parameter.
11377 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11378 process_stratum_target parameter, and use it.
11379 (clear_inline_frame_state (thread_info*)): New.
11380 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11381 process_stratum_target parameter.
11382 (clear_inline_frame_state (thread_info*)): Declare.
11383 * linux-fork.c (delete_checkpoint_command): Pass target down to
11384 find_thread_ptid.
11385 (checkpoint_command): Adjust.
11386 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11387 instead of just tweaking inferior_ptid.
11388 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11389 (exit_lwp): Pass target down to find_thread_ptid.
11390 (attach_proc_task_lwp_callback): Pass target down to
11391 add_thread/set_running/set_executing.
11392 (linux_nat_target::attach): Pass target down to
11393 thread_change_ptid.
11394 (get_detach_signal): Pass target down to find_thread_ptid.
11395 Consider last target status's target.
11396 (linux_resume_one_lwp_throw, resume_lwp)
11397 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11398 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11399 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11400 (linux_nat_target::async_wait_fd): New.
11401 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11402 target down.
11403 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11404 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11405 * linux-thread-db.c (struct thread_db_info::process_target): New
11406 field.
11407 (add_thread_db_info): Save target.
11408 (get_thread_db_info): New process_stratum_target parameter. Also
11409 match target.
11410 (delete_thread_db_info): New process_stratum_target parameter.
11411 Also match target.
11412 (thread_from_lwp): Adjust to pass down target.
11413 (thread_db_notice_clone): Pass down target.
11414 (check_thread_db_callback): Pass down target.
11415 (try_thread_db_load_1): Always push the thread_db target.
11416 (try_thread_db_load, record_thread): Pass target down.
11417 (thread_db_target::detach): Pass target down. Always unpush the
11418 thread_db target.
11419 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11420 target down. Always unpush the thread_db target.
11421 (find_new_threads_callback, thread_db_find_new_threads_2)
11422 (thread_db_target::update_thread_list): Pass target down.
11423 (thread_db_target::pid_to_str): Pass current inferior down.
11424 (thread_db_target::get_thread_local_address): Pass target down.
11425 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11426 target down.
11427 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11428 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11429 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11430 (procfs_init_inferior): Rename to ...
11431 (procfs_target::procfs_init_inferior): ... this and adjust.
11432 (procfs_target::create_inferior, procfs_notice_thread)
11433 (procfs_do_thread_registers): Adjust.
11434 * ppc-fbsd-tdep.c: Include "inferior.h".
11435 (ppcfbsd_get_thread_local_address): Pass down target.
11436 * proc-service.c (ps_xfer_memory): Switch current inferior and
11437 program space as well.
11438 (get_ps_regcache): Pass target down.
11439 * process-stratum-target.c
11440 (process_stratum_target::thread_address_space)
11441 (process_stratum_target::thread_architecture): Pass target down.
11442 * process-stratum-target.h
11443 (process_stratum_target::threads_executing): New field.
11444 (as_process_stratum_target): New.
11445 * ravenscar-thread.c
11446 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11447 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11448 down.
11449 * record-btrace.c (record_btrace_target::info_record): Adjust.
11450 (record_btrace_target::record_method)
11451 (record_btrace_target::record_is_replaying)
11452 (record_btrace_target::fetch_registers)
11453 (get_thread_current_frame_id, record_btrace_target::resume)
11454 (record_btrace_target::wait, record_btrace_target::stop): Pass
11455 target down.
11456 * record-full.c (record_full_wait_1): Switch to event thread.
11457 Pass target down.
11458 * regcache.c (regcache::regcache)
11459 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11460 process_stratum_target parameter and handle it.
11461 (current_thread_target): New global.
11462 (get_thread_regcache): Add process_stratum_target parameter and
11463 handle it. Switch inferior before calling target method.
11464 (get_thread_regcache): Pass target down.
11465 (get_thread_regcache_for_ptid): Pass target down.
11466 (registers_changed_ptid): Add process_stratum_target parameter and
11467 handle it.
11468 (registers_changed_thread, registers_changed): Pass target down.
11469 (test_get_thread_arch_aspace_regcache): New.
11470 (current_regcache_test): Define a couple local test_target_ops
11471 instances and use them for testing.
11472 (readwrite_regcache): Pass process_stratum_target parameter.
11473 (cooked_read_test, cooked_write_test): Pass mock_target down.
11474 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11475 (get_thread_arch_aspace_regcache): Add process_stratum_target
11476 parameter.
11477 (regcache::target): New method.
11478 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11479 (regcache::registers_changed_ptid): Add process_stratum_target
11480 parameter.
11481 (regcache::m_target): New field.
11482 (registers_changed_ptid): Add process_stratum_target parameter.
11483 * remote.c (remote_state::supports_vCont_probed): New field.
11484 (remote_target::async_wait_fd): New method.
11485 (remote_unpush_and_throw): Add remote_target parameter.
11486 (get_current_remote_target): Adjust.
11487 (remote_target::remote_add_inferior): Push target.
11488 (remote_target::remote_add_thread)
11489 (remote_target::remote_notice_new_inferior)
11490 (get_remote_thread_info): Pass target down.
11491 (remote_target::update_thread_list): Skip threads of inferiors
11492 bound to other targets. (remote_target::close): Don't discard
11493 inferiors. (remote_target::add_current_inferior_and_thread)
11494 (remote_target::process_initial_stop_replies)
11495 (remote_target::start_remote)
11496 (remote_target::remote_serial_quit_handler): Pass down target.
11497 (remote_target::remote_unpush_target): New remote_target
11498 parameter. Unpush the target from all inferiors.
11499 (remote_target::remote_unpush_and_throw): New remote_target
11500 parameter. Pass it down.
11501 (remote_target::open_1): Check whether the current inferior has
11502 execution instead of checking whether any inferior is live. Pass
11503 target down.
11504 (remote_target::remote_detach_1): Pass down target. Use
11505 remote_unpush_target.
11506 (extended_remote_target::attach): Pass down target.
11507 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11508 (remote_target::append_resumption): Pass down target.
11509 (remote_target::append_pending_thread_resumptions)
11510 (remote_target::remote_resume_with_hc, remote_target::resume)
11511 (remote_target::commit_resume): Pass down target.
11512 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11513 (remote_target::interrupt_query)
11514 (remote_target::remove_new_fork_children)
11515 (remote_target::check_pending_events_prevent_wildcard_vcont)
11516 (remote_target::remote_parse_stop_reply)
11517 (remote_target::process_stop_reply): Pass down target.
11518 (first_remote_resumed_thread): New remote_target parameter. Pass
11519 it down.
11520 (remote_target::wait_as): Pass down target.
11521 (unpush_and_perror): New remote_target parameter. Pass it down.
11522 (remote_target::readchar, remote_target::remote_serial_write)
11523 (remote_target::getpkt_or_notif_sane_1)
11524 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11525 down target.
11526 (remote_target::mourn_inferior): Pass down target. Use
11527 remote_unpush_target.
11528 (remote_target::core_of_thread)
11529 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11530 (remote_target::pid_to_exec_file)
11531 (remote_target::thread_handle_to_thread_info): Pass down target.
11532 (remote_target::async_wait_fd): New.
11533 * riscv-fbsd-tdep.c: Include "inferior.h".
11534 (riscv_fbsd_get_thread_local_address): Pass down target.
11535 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11536 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11537 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11538 Adjust.
11539 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11540 * solib-svr4.c (enable_break): Pass down target.
11541 * spu-multiarch.c (parse_spufs_run): Pass down target.
11542 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11543 * target-delegates.c: Regenerate.
11544 * target.c (g_target_stack): Delete.
11545 (current_top_target): Return the current inferior's top target.
11546 (target_has_execution_1): Refer to the passed-in inferior's top
11547 target.
11548 (target_supports_terminal_ours): Check whether the initial
11549 inferior was already created.
11550 (decref_target): New.
11551 (target_stack::push): Incref/decref the target.
11552 (push_target, push_target, unpush_target): Adjust.
11553 (target_stack::unpush): Defref target.
11554 (target_is_pushed): Return bool. Adjust to refer to the current
11555 inferior's target stack.
11556 (dispose_inferior): Delete, and inline parts ...
11557 (target_preopen): ... here. Only dispose of the current inferior.
11558 (target_detach): Hold strong target reference while detaching.
11559 Pass target down.
11560 (target_thread_name): Add assertion.
11561 (target_resume): Pass down target.
11562 (target_ops::beneath, find_target_at): Adjust to refer to the
11563 current inferior's target stack.
11564 (get_dummy_target): New.
11565 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11566 has a thread running.
11567 (initialize_targets): Rename to ...
11568 (_initialize_target): ... this.
11569 * target.h: Include "gdbsupport/refcounted-object.h".
11570 (struct target_ops): Inherit refcounted_object.
11571 (target_ops::shortname, target_ops::longname): Make const.
11572 (target_ops::async_wait_fd): New method.
11573 (decref_target): Declare.
11574 (struct target_ops_ref_policy): New.
11575 (target_ops_ref): New typedef.
11576 (get_dummy_target): Declare function.
11577 (target_is_pushed): Return bool.
11578 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11579 (all_matching_threads_iterator::all_matching_threads_iterator):
11580 Handle filter target.
11581 * thread-iter.h (struct all_matching_threads_iterator, struct
11582 all_matching_threads_range, class all_non_exited_threads_range):
11583 Filter by target too. Remove explicit.
11584 * thread.c (threads_executing): Delete.
11585 (inferior_thread): Pass down current inferior.
11586 (clear_thread_inferior_resources): Pass down thread pointer
11587 instead of ptid_t.
11588 (add_thread_silent, add_thread_with_info, add_thread): Add
11589 process_stratum_target parameter. Use it for thread and inferior
11590 searches.
11591 (is_current_thread): New.
11592 (thread_info::deletable): Use it.
11593 (find_thread_ptid, thread_count, in_thread_list)
11594 (thread_change_ptid, set_resumed, set_running): New
11595 process_stratum_target parameter. Pass it down.
11596 (set_executing): New process_stratum_target parameter. Pass it
11597 down. Adjust reference to 'threads_executing'.
11598 (threads_are_executing): New process_stratum_target parameter.
11599 Adjust reference to 'threads_executing'.
11600 (set_stop_requested, finish_thread_state): New
11601 process_stratum_target parameter. Pass it down.
11602 (switch_to_thread): Also match inferior.
11603 (switch_to_thread): New process_stratum_target parameter. Pass it
11604 down.
11605 (update_threads_executing): Reimplement.
11606 * top.c (quit_force): Pop targets from all inferior.
11607 (gdb_init): Don't call initialize_targets.
11608 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11609 Declare.
11610 (windows_add_thread, windows_delete_thread): Adjust.
11611 (get_windows_debug_event): Rename to ...
11612 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11613 * tracefile-tfile.c (tfile_target_open): Pass down target.
11614 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11615 Forward declare.
11616 (switch_to_thread): Add process_stratum_target parameter.
11617 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11618 parameter. Use it.
11619 (mi_on_resume): Pass target down.
11620 * nat/fork-inferior.c (startup_inferior): Add
11621 process_stratum_target parameter. Pass it down.
11622 * nat/fork-inferior.h (startup_inferior): Add
11623 process_stratum_target parameter.
11624 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11625
11626 2020-01-10 Pedro Alves <palves@redhat.com>
11627
11628 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11629 directly. Instead find the first thread in the thread list and
11630 use switch_to_thread.
11631
11632 2020-01-10 Pedro Alves <palves@redhat.com>
11633
11634 * remote.c (remote_target::remote_add_inferior): Don't bind a
11635 process to the current inferior if the current inferior is already
11636 bound to a process.
11637
11638 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11639 Pedro Alves <palves@redhat.com>
11640
11641 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11642 If no process is specified, return null_ptid instead of
11643 inferior_ptid.
11644 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11645 TARGET_WAITKIND_SIGNALLED with no pid.
11646
11647 2020-01-10 Pedro Alves <palves@redhat.com>
11648
11649 * remote.c (first_remote_resumed_thread): New.
11650 (remote_target::wait_as): Use it as default event_ptid instead of
11651 inferior_ptid.
11652
11653 2020-01-10 Pedro Alves <palves@redhat.com>
11654
11655 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11656
11657 2020-01-10 Pedro Alves <palves@redhat.com>
11658
11659 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11660 not -1.
11661
11662 2020-01-10 Pedro Alves <palves@redhat.com>
11663
11664 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11665 ptid to get_last_target_status.
11666 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11667 ptid to get_last_target_status.
11668 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11669 get_last_target_status.
11670 (info_program_command): Don't pass a target_waitstatus to
11671 get_last_target_status.
11672 * infrun.c (init_wait_for_inferior): Use
11673 nullify_last_target_wait_ptid.
11674 (get_last_target_status): Handle nullptr arguments.
11675 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11676 (print_stop_event): Don't pass a ptid to get_last_target_status.
11677 (normal_stop): Don't pass a ptid to get_last_target_status.
11678 * infrun.h (get_last_target_status, set_last_target_status): Move
11679 comments here and update.
11680 (nullify_last_target_wait_ptid): Declare.
11681 * linux-fork.c (fork_load_infrun_state): Remove local extern
11682 declaration of nullify_last_target_wait_ptid.
11683 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11684 to get_last_target_status.
11685
11686 2020-01-10 Pedro Alves <palves@redhat.com>
11687
11688 * gdbthread.h (scoped_restore_current_thread)
11689 <dont_restore, restore, m_dont_restore>: Declare.
11690 * thread.c (thread_alive): Add assertion. Return bool.
11691 (switch_to_thread_if_alive): New.
11692 (prune_threads): Switch inferior/thread.
11693 (print_thread_info_1): Switch thread before calling target methods.
11694 (scoped_restore_current_thread::restore): New, factored out from
11695 ...
11696 (scoped_restore_current_thread::~scoped_restore_current_thread):
11697 ... this.
11698 (scoped_restore_current_thread::scoped_restore_current_thread):
11699 Add assertion.
11700 (thread_apply_all_command, thread_select): Use
11701 switch_to_thread_if_alive.
11702 * infrun.c (proceed, restart_threads, handle_signal_stop)
11703 (switch_back_to_stepped_thread): Switch current thread before
11704 calling target methods.
11705
11706 2020-01-10 Pedro Alves <palves@redhat.com>
11707
11708 * inferior.c (switch_to_inferior_no_thread): New function,
11709 factored out from ...
11710 (inferior_command): ... here.
11711 * inferior.h (switch_to_inferior_no_thread): Declare.
11712 * mi/mi-main.c (run_one_inferior): Use
11713 switch_to_inferior_no_thread.
11714
11715 2020-01-10 Pedro Alves <palves@redhat.com>
11716
11717 * infcmd.c (kill_command): Remove dead code.
11718
11719 2020-01-10 Pedro Alves <palves@redhat.com>
11720
11721 * remote.c (remote_target::mourn_inferior): No longer check
11722 whether the target is running.
11723
11724 2020-01-10 Pedro Alves <palves@redhat.com>
11725
11726 * corelow.c (core_target::has_execution): Change parameter type to
11727 inferior pointer.
11728 * inferior.c (number_of_live_inferiors): Use
11729 inferior::has_execution instead of target_has_execution_1.
11730 * inferior.h (inferior::has_execution): New.
11731 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11732 inferior::has_execution instead of target_has_execution_1.
11733 * process-stratum-target.c
11734 (process_stratum_target::has_execution): Change parameter type to
11735 inferior pointer. Check the inferior's PID instead of
11736 inferior_ptid.
11737 * process-stratum-target.h
11738 (process_stratum_target::has_execution): Change parameter type to
11739 inferior pointer.
11740 * record-full.c (record_full_core_target::has_execution): Change
11741 parameter type to inferior pointer.
11742 * target.c (target_has_execution_1): Change parameter type to
11743 inferior pointer.
11744 (target_has_execution_current): Adjust.
11745 * target.h (target_ops::has_execution): Change parameter type to
11746 inferior pointer.
11747 (target_has_execution_1): Change parameter type to inferior
11748 pointer. Change return type to bool.
11749 * tracefile.h (tracefile_target::has_execution): Change parameter
11750 type to inferior pointer.
11751
11752 2020-01-10 Pedro Alves <palves@redhat.com>
11753
11754 * exceptions.c (print_flush): Remove current_top_target() check.
11755
11756 2020-01-10 Pedro Alves <palves@redhat.com>
11757
11758 * remote.c (show_remote_exec_file): Show the current inferior's
11759 exec-file instead of the command variable's value.
11760
11761 2020-01-10 Pedro Alves <palves@redhat.com>
11762
11763 * record-full.c (record_full_resume_ptid): New global.
11764 (record_full_target::resume): Set it.
11765 (record_full_wait_1): Use record_full_resume_ptid instead of
11766 inferior_ptid.
11767
11768 2020-01-10 Pedro Alves <palves@redhat.com>
11769
11770 * gdbthread.h (scoped_restore_current_thread)
11771 <dont_restore, restore, m_dont_restore>: Declare.
11772 * thread.c (thread_alive): Add assertion. Return bool.
11773 (switch_to_thread_if_alive): New.
11774 (prune_threads): Switch inferior/thread.
11775 (print_thread_info_1): Switch thread before calling target methods.
11776 (scoped_restore_current_thread::restore): New, factored out from
11777 ...
11778 (scoped_restore_current_thread::~scoped_restore_current_thread):
11779 ... this.
11780 (scoped_restore_current_thread::scoped_restore_current_thread):
11781 Add assertion.
11782 (thread_apply_all_command, thread_select): Use
11783 switch_to_thread_if_alive.
11784
11785 2020-01-10 George Barrett <bob@bob131.so>
11786
11787 * stap-probe.c (stap_modify_semaphore): Don't check for null
11788 semaphores.
11789 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11790 for null semaphores.
11791
11792 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11793
11794 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11795 all source windows, and maintain horizontal scroll status while
11796 doing so.
11797
11798 2020-01-09 Tom Tromey <tom@tromey.com>
11799
11800 PR tui/18932:
11801 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11802 update_source_window, not print_source_lines.
11803
11804 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11805
11806 * tui/tui.c (tui_enable): Register tui hooks after calling
11807 tui_display_main.
11808
11809 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11810
11811 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11812
11813 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11814
11815 * thread.c (print_thread_info_1): Fix indentation.
11816
11817 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11818
11819 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11820 unique_xmalloc_ptr outside the if to always free the demangled name.
11821
11822 2020-01-08 Tom Tromey <tromey@adacore.com>
11823
11824 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11825 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11826 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11827 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11828 Remove.
11829 (section_offsets): New typedef.
11830 * symtab.c (fixup_section, get_msymbol_address): Update.
11831 * symmisc.c (dump_msymbols): Update.
11832 * symfile.h (relative_addr_info_to_section_offsets)
11833 (symfile_map_offsets_to_segments): Update.
11834 * symfile.c (build_section_addr_info_from_objfile)
11835 (init_objfile_sect_indices): Update.
11836 (struct place_section_arg): Change type of "offsets".
11837 (place_section): Update.
11838 (relative_addr_info_to_section_offsets): Change type of
11839 "section_offsets". Remove "num_sections" parameter.
11840 (default_symfile_offsets, syms_from_objfile_1)
11841 (set_objfile_default_section_offset): Update.
11842 (reread_symbols): No need to preserve section offsets by hand.
11843 (symfile_map_offsets_to_segments): Change type of "offsets".
11844 * stap-probe.c (relocate_address): Update.
11845 * stabsread.h (process_one_symbol): Update.
11846 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11847 (solib_target_relocate_section_addresses): Update.
11848 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11849 Update.
11850 * solib-frv.c (frv_relocate_main_executable): Update.
11851 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11852 * solib-aix.c (solib_aix_get_section_offsets): Change return
11853 type.
11854 (solib_aix_solib_create_inferior_hook): Update.
11855 * remote.c (remote_target::get_offsets): Update.
11856 * psymtab.c (find_pc_sect_psymtab): Update.
11857 * psympriv.h (struct partial_symbol) <address, text_low,
11858 text_high>: Update.
11859 * objfiles.h (obj_section_offset): Update.
11860 (struct objfile) <section_offsets>: Change type.
11861 <num_sections>: Remove.
11862 (objfile_relocate): Update.
11863 * objfiles.c (entry_point_address_query): Update
11864 (relocate_one_symbol): Change type of "section_offsets".
11865 (objfile_relocate1, objfile_relocate1): Change type of
11866 "new_offsets".
11867 (objfile_rebase1): Update.
11868 * mipsread.c (mipscoff_symfile_read): Update.
11869 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11870 parameter.
11871 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11872 (parse_external, psymtab_to_symtab_1): Update.
11873 * machoread.c (macho_symfile_offsets): Update.
11874 * ia64-tdep.c (ia64_find_unwind_table): Update.
11875 * hppa-tdep.c (read_unwind_info): Update.
11876 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11877 * dwarf2read.c (create_addrmap_from_index)
11878 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11879 (process_psymtab_comp_unit_reader, add_partial_symbol)
11880 (add_partial_subprogram, process_full_comp_unit)
11881 (read_file_scope, read_func_scope, read_lexical_block_scope)
11882 (read_call_site_scope, dwarf2_rnglists_process)
11883 (dwarf2_ranges_process, dwarf2_ranges_read)
11884 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11885 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11886 Update.
11887 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11888 Update.
11889 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11890 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11891 (process_one_symbol): Change type of "section_offsets".
11892 * ctfread.c (get_objfile_text_range): Update.
11893 * coffread.c (coff_symtab_read, enter_linenos)
11894 (process_coff_symbol): Update.
11895 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11896 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11897
11898 2020-01-08 Tom Tromey <tromey@adacore.com>
11899
11900 * dwarf2read.c (parse_macro_definition): Use std::string.
11901 (parse_macro_definition): Likewise.
11902
11903 2020-01-08 Tom Tromey <tromey@adacore.com>
11904
11905 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11906 (ATTR_ALLOC_CHUNK): Remove.
11907
11908 2020-01-08 Tom Tromey <tromey@adacore.com>
11909
11910 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11911
11912 2020-01-08 Tom Tromey <tromey@adacore.com>
11913
11914 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11915 (dwarf2_compute_name, open_dwo_file): Likewise.
11916 (process_enumeration_scope): Use std::vector.
11917 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11918 (partial_die_info::fixup, dwarf2_start_subfile)
11919 (guess_full_die_structure_name, dwarf2_name): Likewise.
11920 (determine_prefix): Update.
11921 (guess_full_die_structure_name): Make return type const.
11922 (partial_die_full_name): Return unique_xmalloc_ptr.
11923 (DW_FIELD_ALLOC_CHUNK): Remove.
11924
11925 2020-01-07 Tom Tromey <tromey@adacore.com>
11926
11927 PR build/24937:
11928 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11929
11930 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11931
11932 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11933
11934 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11935
11936 * stack.c (print_frame_info): Move disassemble_next_line code
11937 inside source_print block.
11938
11939 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11940
11941 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11942 gdb/signals.h, as we are now using native signal symbols.
11943
11944 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11945
11946 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11947 overflow by an early check of content vs threshold.
11948 * tui/tui-source.c (tui_source_window::line_is_displayed):
11949 Likewise.
11950
11951 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11952
11953 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11954
11955 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11956
11957 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11958 export table if no section contains it's RVA.
11959
11960 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11961
11962 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11963
11964 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
11965
11966 * source.c (print_source_lines_base): Set last_line_listed.
11967
11968 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11969
11970 * tui/tui-disasm.c: Remove trailing spaces.
11971
11972 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11973 Pedro Alves <palves@redhat.com>
11974
11975 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11976 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11977 (windows_gdb_signal_to_target): New function, uses the above
11978 enumeration to convert GDB internal signal codes to equivalent
11979 Windows codes.
11980 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11981 * windows-nat.c: Include "gdb_wait.h".
11982 (get_windows_debug_event): Extract the fatal exception from the
11983 exit status and convert to the equivalent Posix signal number.
11984 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11985 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11986 * gdbsupport/gdb_wait.c: New file, implements
11987 windows_status_to_termsig.
11988 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11989 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11990
11991 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11992
11993 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11994 show_layout.
11995
11996 2020-01-05 Luis Machado <luis.machado@linaro.org>
11997
11998 * aarch64-linux-nat.c
11999 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12000 and bfd_mach_aarch64.
12001
12002 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12003
12004 * ui-file.c (stdio_file::can_emit_style_escape)
12005 (tee_file::can_emit_style_escape): Ensure style is used also on
12006 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12007 to gdb_stdout.
12008 * main.c (set_gdb_data_directory): Use file style to output the
12009 warning that the given pathname is not a directory.
12010 * top.c (show_history_filename, gdb_safe_append_history)
12011 (show_gdb_datadir): Use file style.
12012
12013 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12014
12015 * solib-target.c (struct lm_info_target):
12016 Change offsets to be a unique_xmalloc_ptr.
12017 (solib_target_relocate_section_addresses): Update.
12018
12019 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12020
12021 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12022
12023 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12024
12025 * MAINTAINERS (Write After Approval): Add myself.
12026
12027 2020-01-02 Luis Machado <luis.machado@linaro.org>
12028
12029 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12030 Cell BE architecture.
12031 * target.h (struct target_ops) <thread_architecture>: Likewise.
12032
12033 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12034
12035 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12036
12037 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12038
12039 * MAINTAINERS (Write After Approval): Add myself.
12040
12041 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12042
12043 * gdbarch.sh: Update copyright year range of generated files.
12044
12045 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12046
12047 Update copyright year range in all GDB files.
12048
12049 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12050
12051 * copyright.py: Convert to Python 3.
12052
12053 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12054
12055 * copyright.py: Adapt after move of gnulib directory from gdb
12056 directory to toplevel directory.
12057
12058 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12059
12060 * copyright.py (main): Exit if run from the wrong directory.
12061
12062 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12063
12064 * top.c (print_gdb_version): Change copyright year to 2020.
12065
12066 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12067
12068 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12069
12070 For older changes see ChangeLog-2019.
12071 \f
12072 Local Variables:
12073 mode: change-log
12074 left-margin: 8
12075 fill-column: 74
12076 version-control: never
12077 coding: utf-8
12078 End: