gdb: allow specifying multiple filters when running selftests
[binutils-gdb.git] / gdb / ChangeLog
1 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * maint.c (maintenance_selftest): Split args and pass array_view
4 to run_tests.
5
6 2020-08-12 Luis Machado <luis.machado@linaro.org>
7
8 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
9 type's length.
10 Use %s and pulongest to print the length.
11
12 2020-08-12 Pedro Alves <palves@redhat.com>
13
14 * NEWS: Move "Multi-target debugging support" item to the
15 "Changes since GDB 9" section.
16
17 2020-08-12 Pedro Alves <palves@redhat.com>
18
19 PR gdb/26336
20 * progspace.c (program_space::remove_objfile): Invalidate the
21 frame cache.
22
23 2020-08-11 Tom de Vries <tdevries@suse.de>
24
25 * MAINTAINERS: Mark ms1 as deleted.
26
27 2020-08-10 Luis Machado <luis.machado@linaro.org>
28
29 PR gdb/26310
30
31 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
32 act accordingly.
33 (aarch64_analyze_prologue_test): Add more unit tests to exercise
34 movz/str/stur/stp skipping behavior.
35
36 2020-08-10 Luis Machado <luis.machado@linaro.org>
37
38 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
39 struct user_sve_header instead of struct sve_context.
40
41 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
42
43 * read.h (dwarf2_fetch_die_loc_sect_off,
44 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
45 `void *` parameter with function_view.
46 * read.c (dwarf2_fetch_die_loc_sect_off,
47 dwarf2_fetch_die_loc_cu_off): Likewise.
48 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
49 (per_cu_dwarf_call): Adjust.
50 (get_frame_address_in_block_wrapper): Remove.
51 (indirect_synthetic_pointer): Adjust.
52 (get_ax_pc): Remove.
53 (dwarf2_compile_expr_to_ax): Adjust.
54
55 2020-08-08 Tom de Vries <tdevries@suse.de>
56
57 PR build/26344
58 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
59 constructor.
60 * regcache.c (get_thread_arch_aspace_regcache): Same.
61
62 2020-08-07 Tom Tromey <tromey@adacore.com>
63
64 * ravenscar-thread.c
65 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
66 New method.
67 (ravenscar_thread_target::wait): Check
68 runtime_initialized.
69 (ravenscar_thread_target::prepare_to_store)
70 (ravenscar_thread_target::stopped_by_sw_breakpoint)
71 (ravenscar_thread_target::stopped_by_hw_breakpoint)
72 (ravenscar_thread_target::stopped_by_watchpoint)
73 (ravenscar_thread_target::stopped_data_address)
74 (ravenscar_thread_target::core_of_thread): Use
75 scoped_restore_current_thread and
76 set_base_thread_from_ravenscar_task.
77
78 2020-08-07 Tom Tromey <tromey@adacore.com>
79
80 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
81
82 2020-08-07 Tom Tromey <tromey@adacore.com>
83
84 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
85 update_inferior_ptid before update_thread_list.
86 (temporarily_change_regcache_ptid): New class.
87 (ravenscar_thread_target::fetch_registers)
88 (ravenscar_thread_target::store_registers)
89 (ravenscar_thread_target::prepare_to_store): Use base thread when
90 forwarding operation.
91
92 2020-08-07 Tom Tromey <tromey@adacore.com>
93
94 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
95 "is_pid" case.
96
97 2020-08-07 Tom Tromey <tromey@adacore.com>
98
99 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
100 New methods.
101 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
102 first.
103 (ravenscar_thread_target::add_thread): Rename from
104 ravenscar_add_thread.
105 (ravenscar_thread_target::update_thread_list): Use a lambda.
106 (ravenscar_thread_target::xfer_partial): New method.
107
108 2020-08-07 Tom Tromey <tromey@adacore.com>
109
110 * ada-lang.h (ada_task_list_iterator_ftype): Now a
111 gdb::function_view.
112 (iterate_over_live_ada_tasks): Change type of argument.
113 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
114 of argument.
115
116 2020-08-07 Tom Tromey <tromey@adacore.com>
117
118 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
119 Remove.
120 (ravenscar_thread_target::extra_thread_info): Remove.
121 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
122 defer to target beneath for non-Ravenscar threads.
123
124 2020-08-07 Tom Tromey <tromey@adacore.com>
125
126 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
127 get_base_thread_from_ravenscar_task>: Now methods.
128 <m_cpu_map>: New member.
129 (ravenscar_thread_target::get_thread_base_cpu): Rename from
130 ravenscar_get_thread_base_cpu. Check m_cpu_map.
131 (ravenscar_thread_target::task_is_currently_active): Update.
132 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
133 Now a method.
134 (ravenscar_thread_target::add_active_thread): Put initial thread
135 into the m_cpu_map.
136
137 2020-08-07 Tom Tromey <tromey@adacore.com>
138
139 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
140 event_ptid.
141
142 2020-08-07 Tom Tromey <tromey@adacore.com>
143
144 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
145 runtime_initialized.
146
147 2020-08-07 Tom Tromey <tromey@adacore.com>
148
149 * ravenscar-thread.c (ravenscar_thread_target): Don't call
150 add_active_thread.
151 (ravenscar_thread_target::add_active_thread): Now public.
152 (ravenscar_inferior_created): Call add_active_thread after pushing
153 the target.
154
155 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
156
157 * regcache.c (ptid_regcache_map): New type.
158 (target_ptid_regcache_map): New type.
159 (regcaches): Change type to target_ptid_regcache_map.
160 (get_thread_arch_aspace_regcache): Update to regcaches' new
161 type.
162 (regcache_thread_ptid_changed): Likewise.
163 (registers_changed_ptid): Likewise.
164 (regcaches_size): Likewise.
165 (regcaches_test): Update.
166 (regcache_thread_ptid_changed): Update.
167 * regcache.h (regcache_up): New type.
168 * gdbsupport/ptid.h (hash_ptid): New struct.
169
170 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
171
172 * observable.h (thread_ptid_changed): Add parameter
173 `process_stratum_target *`.
174 * infrun.c (infrun_thread_ptid_changed): Add parameter
175 `process_stratum_target *` and use it.
176 (selftests): New namespace.
177 (infrun_thread_ptid_changed): New function.
178 (_initialize_infrun): Register selftest.
179 * regcache.c (regcache_thread_ptid_changed): Add parameter
180 `process_stratum_target *` and use it.
181 (regcache_thread_ptid_changed): New function.
182 (_initialize_regcache): Register selftest.
183 * thread.c (thread_change_ptid): Pass target to
184 thread_ptid_changed observable.
185
186 2020-08-06 Caroline Tice <cmtice@google.com>
187
188 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
189 (struct dwp_sections): Update field comments. Add loclists and
190 rnglists fields.
191 (struct virtual_v2_dwo_sections): Rename struct to
192 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
193 size & offset fields for loclists and rnglists.
194 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
195 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
196 skipping dummy type units.
197 (create_dwp_hash_table): Update the large comment above the function to
198 discuss Version 5 DWP files as well, with references. Update all the
199 version checks in the function to check for version 5 as well. Add new
200 section at the end to create dwp hash table for version 5.
201 (create_dwp_v2_section): Rename function to
202 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
203 Add V5 to error message text.
204 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
205 into calls to create_dwp_v2_or_v5_section.
206 (create_dwo_unit_in_dwp_v5): New function.
207 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
208 check for version2; add else clause to handle version 5.
209 (open_and_init_dwo_file): Add code to check dwarf version & only call
210 create_debug_types_hash_table (with sections.types) if version is not 5;
211 else call create_debug_type_hash_table, with sections.info.
212 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
213 version 5.
214 (dwarf2_locate_v5_dwp_sections): New function.
215 (open_and_init_dwp_file): Add else-if clause for version 5 to call
216 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
217
218 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
219
220 * regcache.h (class regcache): Remove friend
221 registers_changed_ptid.
222 <regcache_thread_ptid_changed>: Remove.
223 <regcaches>: Remove.
224 * regcache.c (regcache::regcaches): Rename to...
225 (regcaches): ... this. Make static.
226 (get_thread_arch_aspace_regcache): Update.
227 (regcache::regcache_thread_ptid_changed): Rename to...
228 (regcache_thread_ptid_changed): ... this. Update.
229 (class regcache_access): Remove.
230 (regcaches_test): Update.
231 (_initialize_regcache): Update.
232 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
233 <forward_list>.
234
235 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
236
237 * regcache.h (class regcache) <current_regcache>: Rename to...
238 <regcaches>: ... this. Move doc here.
239 * regcache.c (regcache::current_regcache) Rename to...
240 (regcache::regcaches): ... this. Move doc to header.
241 (get_thread_arch_aspace_regcache): Update.
242 (regcache::regcache_thread_ptid_changed): Update.
243 (registers_changed_ptid): Update.
244 (class regcache_access) <current_regcache_size>: Rename to...
245 <regcaches_size>: ... this.
246 (current_regcache_test): Rename to...
247 (regcaches_test): ... this.
248 (_initialize_regcache): Update.
249
250 2020-08-06 Victor Collod <vcollod@nvidia.com>
251
252 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
253
254 2020-08-05 Kevin Buettner <kevinb@redhat.com>
255
256 * corelow.c (core_target::build_file_mappings): Don't output
257 null pathname in warning.
258
259 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
260
261 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
262 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
263 gdb.dwarf2/dw2-single-line-discriminators.exp,
264 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
265
266 2020-08-05 Tom Tromey <tromey@adacore.com>
267
268 PR rust/26197:
269 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
270 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
271 Fix off-by-one and type size errors in ordinary case.
272
273 2020-08-05 Tom de Vries <tdevries@suse.de>
274
275 * gdbtypes.c (type_not_allocated, type_not_associated): Use
276 "prop->const_val () == 0" instead of "prop->const_val () != 0".
277
278 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
279
280 * frame.h (frame_id_p): Return bool.
281 (frame_id_artificial_p): Return bool.
282 (frame_id_eq): Return bool.
283 (has_stack_frames): Return bool.
284 (get_selected_frame): Fix typo in comment.
285 (get_frame_pc_if_available): Return bool.
286 (get_frame_address_in_block_if_available): Return bool.
287 (get_frame_func_if_available): Return bool.
288 (read_frame_register_unsigned): Return bool.
289 (get_frame_register_bytes): Return bool.
290 (safe_frame_unwind_memory): Return bool.
291 (deprecated_frame_register_read): Return bool.
292 (frame_unwinder_is): Return bool.
293 * frame.c (struct frame_info) <prev_arch::p>: Change type to
294 bool.
295 <this_id::p>: Likewise.
296 <prev_p>: Likewise.
297 (frame_stash_add): Return bool.
298 (get_frame_id): Use bool.
299 (frame_id_build_special) Use bool.
300 (frame_id_build_unavailable_stack): Use bool.
301 (frame_id_build): Use bool.
302 (frame_id_p): Return bool, use true/false instead of 1/0.
303 (frame_id_artificial_p): Likewise.
304 (frame_id_eq): Likewise.
305 (frame_id_inner): Likewise.
306 (get_frame_func_if_available): Likewise.
307 (read_frame_register_unsigned): Likewise.
308 (deprecated_frame_register_read): Likewise.
309 (get_frame_register_bytes): Likewise.
310 (has_stack_frames): Likewise.
311 (inside_main_func): Likewise.
312 (inside_entry_func): Likewise.
313 (get_frame_pc_if_available): Likewise.
314 (get_frame_address_in_block_if_available): Likewise.
315 (frame_unwinder_is): Likewise.
316 (safe_frame_unwind_memory): Likewise.
317 (frame_unwind_arch): Likewise.
318
319 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
320
321 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
322 type to cached_copy_status.
323 (fprintf_frame): Adjust.
324 (get_frame_func_if_available): Adjust.
325 (frame_cleanup_after_sniffer): Adjust.
326
327 2020-08-04 Mark Wielaard <mark@klomp.org>
328
329 * MAINTAINERS (Write After Approval): Update email address.
330
331 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
332
333 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
334 dynamic_prop::const_val.
335
336 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
337
338 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
339 dynamic_prop::kind.
340
341 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
342
343 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
344
345 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
346
347 * configure.tgt: Set gdb_sim for bpf-*-* targets.
348
349 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
350 Jose E. Marchesi <jose.marchesi@oracle.com>
351
352 * configure.tgt: Add entry for bpf-*-*.
353 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
354 (ALLDEPFILES): Add bpf-tdep.c.
355 * bpf-tdep.c: New file.
356 * MAINTAINERS: Add bpf target and maintainer.
357 * NEWS: Mention the support for the new target.
358
359 2020-08-04 Tom de Vries <tdevries@suse.de>
360
361 PR symtab/23270
362 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
363 Error.
364
365 2020-08-03 John Baldwin <jhb@FreeBSD.org>
366
367 * syscalls/freebsd.xml: Regenerate.
368
369 2020-08-03 John Baldwin <jhb@FreeBSD.org>
370
371 * syscalls/update-freebsd.sh: Fix usage and year range.
372
373 2020-08-03 Tom de Vries <tdevries@suse.de>
374
375 PR symtab/26333
376 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
377 DW_LNE_lo_user/DW_LNE_hi_user range.
378
379 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
380
381 PR ada/26318
382 * ada-lang.c (ada_modulus): Return 0 if property is not of const
383 kind.
384
385 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
386
387 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
388
389 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
390
391 * breakpoint.c (set_breakpoint_condition): Update the condition
392 expressions after checking that the input condition string parses
393 successfully and does not contain junk at the end.
394
395 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
396
397 * breakpoint.c (set_breakpoint_condition): Update the
398 condition string after parsing the new condition successfully.
399
400 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
401
402 * proc-api.c (_STRUCTURED_PROC): Don't define.
403 * proc-events.c: Likewise.
404 * proc-flags.c: Likewise.
405 * proc-why.c: Likewise.
406 * procfs.c: Likewise.
407
408 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
409 * configure, config.in: Regenerate.
410
411 2020-07-30 Tom de Vries <tdevries@suse.de>
412
413 PR build/26320
414 * ui-style.h (struct ui_file_style::color): Wrap m_value and
415 m_red/m_green/m_blue in a union.
416
417 2020-07-29 Tom de Vries <tdevries@suse.de>
418
419 PR tdep/26280
420 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
421
422 2020-07-28 Tom Tromey <tromey@adacore.com>
423
424 PR symtab/26270:
425 * symtab.h (find_pc_partial_function_sym): Declare.
426 * cli/cli-cmds.c (disassemble_command): Use
427 find_pc_partial_function_sym. Check asm_demangle.
428 * blockframe.c (cache_pc_function_sym): New global.
429 (cache_pc_function_name): Remove.
430 (clear_pc_function_cache): Update.
431 (find_pc_partial_function_sym): New function, from
432 find_pc_partial_function.
433 (find_pc_partial_function): Rewrite using
434 find_pc_partial_function_sym.
435
436 2020-07-28 Tom Tromey <tromey@adacore.com>
437
438 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
439 help. Add usage.
440
441 2020-07-28 Tom Tromey <tromey@adacore.com>
442
443 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
444 <DW_OP_GNU_variable_value>: Cast to address type.
445
446 2020-07-28 Kamil Rytarowski <n54@gmx.com>
447
448 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
449 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
450 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
451 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
452 (nbsd_get_siginfo_type): New.
453 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
454 (_initialize_nbsd_tdep): New.
455
456 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
457
458 PR binutils/26301
459 * configure: Regenerated.
460
461 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
462
463 PR binutils/26301
464 * configure: Regenerated.
465
466 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
467
468 * python/py-frame.c: Remove 'user-regs.h' include.
469 (frapy_read_register): Rewrite to make use of
470 gdbpy_parse_register_id.
471 * python/py-registers.c (gdbpy_parse_register_id): New function,
472 moved here from python/py-unwind.c. Updated the return type, and
473 also accepts register descriptor objects.
474 * python/py-unwind.c: Remove 'user-regs.h' include.
475 (pyuw_parse_register_id): Moved to python/py-registers.c.
476 (unwind_infopy_add_saved_register): Update to use
477 gdbpy_parse_register_id.
478 (pending_framepy_read_register): Likewise.
479 * python/python-internal.h (gdbpy_parse_register_id): Declare.
480
481 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
482
483 * python/py-registers.c: Add 'user-regs.h' include.
484 (register_descriptor_iter_find): New function.
485 (register_descriptor_iterator_object_methods): New static global
486 methods array.
487 (register_descriptor_iterator_object_type): Add pointer to methods
488 array.
489
490 2020-07-27 John Baldwin <jhb@FreeBSD.org>
491
492 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
493 for all architectures on FreeBSD 11.3 and later.
494
495 2020-07-27 Tom Tromey <tromey@adacore.com>
496
497 * gcore.h (load_corefile): Don't declare.
498
499 2020-07-27 Tom de Vries <tdevries@suse.de>
500
501 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
502 * config.in: Regenerate.
503 * configure: Regenerate.
504
505 2020-07-26 Eli Zaretskii <eliz@gnu.org>
506
507 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
508 ws2tcpip.h. When checking whether socklen_t type is defined, use
509 ws2tcpip.h if it is available and sys/socket.h isn't.
510 * configure: Regenerate.
511 * config.in: Regenerate.
512
513 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
514
515 PR fortran/23051
516 PR fortran/26139
517 * valops.c (value_ind): Pass address to
518 readjust_indirect_value_type.
519 * value.c (readjust_indirect_value_type): Make parameter
520 non-const, and add extra address parameter. Resolve original type
521 before using it.
522 * value.h (readjust_indirect_value_type): Update function
523 signature and comment.
524
525 2020-07-25 Tom de Vries <tdevries@suse.de>
526
527 PR symtab/26243
528 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
529 entries.
530
531 2020-07-24 Aaron Merey <amerey@redhat.com>
532
533 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
534 * configure: Rebuild.
535
536 2020-07-23 Kevin Buettner <kevinb@redhat.com>
537
538 PR corefiles/26294
539 * corelow.c (_initialize_corelow): Add period to help text
540 for "maintenance print core-file-backed-mappings".
541
542 2020-07-23 Pedro Alves <pedro@palves.net>
543
544 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
545 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
546 meanwhile.
547 * frame.c (frame_cache_generation, get_frame_cache_generation):
548 New.
549 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
550 (get_prev_frame_if_no_cycle): On exception, don't touch
551 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
552 * frame.h (get_frame_cache_generation): Declare.
553
554 2020-07-23 Tom de Vries <tdevries@suse.de>
555
556 PR tui/26282
557 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
558 New default constructor.
559
560 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
561
562 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
563 exclude non-statement entries.
564
565 2020-07-22 Kevin Buettner <kevinb@redhat.com>
566
567 * NEWS (New commands): Mention new command
568 "maintenance print core-file-backed-mappings".
569
570 2020-07-22 Kevin Buettner <kevinb@redhat.com>
571
572 * corelow.c (gdbcmd.h): Include.
573 (core_target::info_proc_mappings): New method.
574 (get_current_core_target): New function.
575 (maintenance_print_core_file_backed_mappings): New function.
576 (_initialize_corelow): Add core-file-backed-mappings to
577 "maint print" commands.
578
579 2020-07-22 Kevin Buettner <kevinb@redhat.com>
580
581 * linux-tdep.c (dump_note_entry_p): New function.
582 (linux_dump_mapping_p_ftype): New typedef.
583 (linux_find_memory_regions_full): Add new parameter,
584 should_dump_mapping_p.
585 (linux_find_memory_regions): Adjust call to
586 linux_find_memory_regions_full.
587 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
588 call to linux_find_memory_regions_full.
589
590 2020-07-22 Kevin Buettner <kevinb@redhat.com>
591
592 * corelow.c (solist.h, unordered_map): Include.
593 (class core_target): Add field m_core_file_mappings and
594 method build_file_mappings.
595 (core_target::core_target): Call build_file_mappings.
596 (core_target::~core_target): Free memory associated with
597 m_core_file_mappings.
598 (core_target::build_file_mappings): New method.
599 (core_target::xfer_partial): Use m_core_file_mappings
600 for memory transfers.
601 * linux-tdep.c (linux_read_core_file_mappings): New
602 function.
603 (linux_core_info_proc_mappings): Rewrite to use
604 linux_read_core_file_mappings.
605 (linux_init_abi): Register linux_read_core_file_mappings.
606
607 2020-07-22 Kevin Buettner <kevinb@redhat.com>
608
609 * arch-utils.c (default_read_core_file_mappings): New function.
610 * arch-utils.c (default_read_core_file_mappings): Declare.
611 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
612 * gdbarch.h, gdbarch.c: Regenerate.
613
614 2020-07-22 Kevin Buettner <kevinb@redhat.com>
615
616 PR corefiles/25631
617 * corelow.c (core_target:xfer_partial): Revise
618 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
619 case after first checking the stratum beneath the core
620 target.
621 (has_all_memory): Return true.
622 * target.c (raw_memory_xfer_partial): Revise comment
623 regarding use of has_all_memory.
624
625 2020-07-22 Kevin Buettner <kevinb@redhat.com>
626
627 * exec.h (section_table_xfer_memory): Revise declaration,
628 replacing section name parameter with an optional callback
629 predicate.
630 * exec.c (section_table_xfer_memory): Likewise.
631 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
632 of section_table_xfer_memory.
633
634 2020-07-22 Tom Tromey <tromey@adacore.com>
635
636 * mi/mi-cmd-stack.c (list_args_or_locals): Use
637 lookup_symbol_search_name.
638
639 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
640
641 * python/py-registers.c (gdbpy_register_object_data_init): Remove
642 redundant local variable.
643 (gdbpy_get_register_descriptor): Extract descriptor vector as a
644 reference, not pointer, update code accordingly.
645
646 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
647 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
648
649 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
650 * jit.c (jit_breakpoint_re_set_internal): Use the
651 `skip_jit_symbol_lookup` field.
652
653 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
654 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
655
656 * jit.c (jit_read_descriptor): Define the descriptor address once,
657 use twice.
658 (jit_breakpoint_deleted): Move the declaration of the loop variable
659 `iter` into the loop header.
660 (jit_breakpoint_re_set_internal): Move the declaration of the local
661 variable `objf_data` to the first point of definition.
662 (jit_event_handler): Move the declaration of local variables
663 `code_entry`, `entry_addr`, and `objf` to their first point of use.
664 Rename `objf` to `jited`.
665
666 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
667
668 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
669 Remove.
670 * jit.c (get_jiter_objfile_data): Update.
671
672 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
673 Simon Marchi <simon.marchi@polymtl.ca>
674
675 * jit.c (struct jit_program_space_data): Remove.
676 (jit_program_space_key): Remove.
677 (jiter_objfile_data::~jiter_objfile_data): Remove program space
678 stuff.
679 (get_jit_program_space_data): Remove.
680 (jit_breakpoint_deleted): Iterate on all of the program space's
681 objfiles.
682 (jit_inferior_init): Likewise.
683 (jit_breakpoint_re_set_internal): Likewise. Also change return
684 type to void.
685 (jit_breakpoint_re_set): Pass current_program_space to
686 jit_breakpoint_re_set_internal.
687
688 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
689
690 * jit.h (struct jiter_objfile_data) <cached_code_address,
691 jit_breakpoint>: Move to here from ...
692 * jit.c (jit_program_space_data): ... here.
693 (jiter_objfile_data::~jiter_objfile_data): Update.
694 (jit_breakpoint_deleted): Update.
695 (jit_breakpoint_re_set_internal): Update.
696
697 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
698
699 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
700 checks.
701 (jit_read_descriptor): Remove NULL check.
702 (jit_event_handler): Add an assertion.
703
704 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
705
706 * jit.h (struct jit_objfile_data): Split into...
707 (struct jiter_objfile_data): ... this ...
708 (struct jited_objfile_data): ... and this.
709 * objfiles.h (struct objfile) <jit_data>: Remove.
710 <jiter_data, jited_data>: New fields.
711 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
712 (jiter_objfile_data::~jiter_objfile_data): ... this.
713 (get_jit_objfile_data): Rename to ...
714 (get_jiter_objfile_data): ... this.
715 (add_objfile_entry): Update.
716 (jit_read_descriptor): Use get_jiter_objfile_data.
717 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
718 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
719 (jit_inferior_exit_hook): Use objfile's jited_data field.
720
721 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
722
723 * jit.h: Forward-declare `struct minimal_symbol`.
724 (struct jit_objfile_data): Migrate to here from jit.c; also add a
725 constructor, destructor, and an objfile* field.
726 * jit.c (jit_objfile_data): Remove.
727 (struct jit_objfile_data): Migrate from here to jit.h.
728 (jit_objfile_data::~jit_objfile_data): New destructor
729 implementation with code moved from free_objfile_data.
730 (free_objfile_data): Delete.
731 (get_jit_objfile_data): Update to use the jit_data field of objfile.
732 (jit_find_objf_with_entry_addr): Ditto.
733 (jit_inferior_exit_hook): Ditto.
734 (_initialize_jit): Remove the call to
735 register_objfile_data_with_cleanup.
736 * objfiles.h (struct objfile) <jit_data>: New field.
737
738 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
739
740 * jit.h: Forward-declare `struct objfile`.
741 (jit_event_handler): Add a second parameter, the JITer objfile.
742 * jit.c (jit_read_descriptor): Change the signature to take the
743 JITer objfile as an argument instead of the jit_program_space_data.
744 (jit_inferior_init): Update the call to jit_read_descriptor.
745 (jit_event_handler): Use the new JITer objfile argument when calling
746 jit_read_descriptor.
747 * breakpoint.c (handle_jit_event): Update the call to
748 jit_event_handler to pass the JITer objfile.
749
750 2020-07-21 John Baldwin <jhb@FreeBSD.org>
751
752 * gdbarch.c: Regenerate.
753 * gdbarch.h: Regenerate.
754 * gdbarch.sh (handle_segmentation_fault): Remove method.
755 * infrun.c (handle_segmentation_fault): Remove.
756 (print_signal_received_reason): Remove call to
757 handle_segmentation_fault.
758
759 2020-07-21 John Baldwin <jhb@FreeBSD.org>
760
761 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
762 Rename to sparc64_linux_report_signal_info and add siggnal
763 argument.
764 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
765 instead of sparc64_linux_handle_segmentation_fault.
766
767 2020-07-21 John Baldwin <jhb@FreeBSD.org>
768
769 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
770 i386_linux_report_signal_info instead of
771 i386_linux_handle_segmentation_fault.
772 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
773 to i386_linux_report_signal_info and add siggnal argument.
774 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
775 of i386_linux_handle_segmentation_fault.
776 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
777 to i386_linux_report_signal_info and add siggnal argument.
778
779 2020-07-21 John Baldwin <jhb@FreeBSD.org>
780
781 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
782 hook if present.
783
784 2020-07-21 John Baldwin <jhb@FreeBSD.org>
785
786 * gdbarch.c: Regenerate.
787 * gdbarch.h: Regenerate.
788 * gdbarch.sh (report_signal_info): New method.
789 * infrun.c (print_signal_received_reason): Invoke gdbarch
790 report_signal_info hook if present.
791
792 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
793
794 * python/py-registers.c : Add 'unordered_map' include.
795 (gdbpy_new_reggroup): Renamed to...
796 (gdbpy_get_reggroup): ...this. Update to only create register
797 group descriptors when needed.
798 (gdbpy_reggroup_iter_next): Update.
799
800 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
801
802 * python/py-registers.c (gdbpy_register_object_data): New static
803 global.
804 (gdbpy_register_object_data_init): New function.
805 (gdbpy_new_register_descriptor): Renamed to...
806 (gdbpy_get_register_descriptor): ...this, and update to reuse
807 existing register descriptors where possible.
808 (gdbpy_register_descriptor_iter_next): Update.
809 (gdbpy_initialize_registers): Register new gdbarch data.
810
811 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
812
813 * linux-nat.c (stopped_pids): Make static.
814
815 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
816
817 PR ada/26235
818 * gdbtypes.c (ada_discrete_type_low_bound,
819 ada_discrete_type_high_bound): Handle undefined bounds.
820
821 2020-07-21 Kamil Rytarowski <n54@gmx.com>
822
823 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
824 declaration.
825 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
826 function.
827
828 2020-07-20 John Baldwin <jhb@FreeBSD.org>
829
830 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
831 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
832 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
833 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
834 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
835 method.
836
837 2020-07-20 Ludovic Courtès <ludo@gnu.org>
838
839 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
840 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
841 which are deprecated in Guile 3.0.
842 * configure.ac (try_guile_versions): Add "guile-3.0".
843 * configure (try_guile_versions): Regenerate.
844 * NEWS: Update entry.
845
846 2020-07-20 Ludovic Courtès <ludo@gnu.org>
847 Doug Evans <dje@google.com>
848
849 PR gdb/21104
850 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
851 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
852 USING_GUILE_BEFORE_2_2.
853 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
854 Change type to 'scm_t_port_type *'.
855 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
856 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
857 parameter and honor it. Update callers.
858 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
859 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
860 functions.
861 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
862 USING_GUILE_BEFORE_2_2.
863 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
864 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
865 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
866 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
867 and 'SCM_PORT_TYPE'.
868 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
869 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
870 (gdbscm_memory_port_read, gdbscm_memory_port_write)
871 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
872 [!USING_GUILE_BEFORE_2_2]: New functions.
873 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
874 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
875 'gdbscm_memory_port_read'.
876 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
877 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
878 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
879 function.
880 (ioscm_init_memory_port): Remove.
881 (ioscm_init_memory_port_stream): New function
882 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
883 function.
884 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
885 Return scm_from_uint (0).
886 (gdbscm_set_memory_port_read_buffer_size_x)
887 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
888 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
889 Return scm_from_uint (0).
890 (gdbscm_set_memory_port_write_buffer_size_x)
891 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
892 * configure.ac (try_guile_versions): Add "guile-2.2".
893 * configure: Regenerate.
894 * NEWS: Add entry.
895
896 2020-07-18 Tom Tromey <tom@tromey.com>
897
898 * linux-nat.c (linux_multi_process): Remove.
899 (linux_nat_target::supports_multi_process): Return true.
900
901 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
902
903 * arch/riscv.c (riscv_tdesc_cache): Change map type.
904 (riscv_lookup_target_description): Return pointer out of
905 unique_ptr.
906 * target-descriptions.c (allocate_target_description): Add
907 comment.
908 (target_desc_deleter::operator()): Likewise.
909 * target-descriptions.h (struct target_desc_deleter): Moved to
910 gdbsupport/tdesc.h.
911 (target_desc_up): Likewise.
912
913 2020-07-17 Tom Tromey <tromey@adacore.com>
914
915 * linux-nat.c (linux_nat_target::supports_non_stop)
916 (linux_nat_target::always_non_stop_p): Use "true".
917 (linux_nat_target::supports_disable_randomization): Use "true" and
918 "false".
919
920 2020-07-16 Caroline Tice <cmtice@google.com>
921
922 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
923 (RNGLIST_HEADER_SIZE64): New constant definition.
924 (struct dwop_section_names): Add rnglists_dwo.
925 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
926 (struct loclist_header): Rename to 'loclists_rnglists_header'.
927 (struct dwo_sections): Add rnglists field.
928 (read_attribut_reprocess): Add tag parameter.
929 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
930 (cu_debug_rnglists_section): New function (decl & definition).
931 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
932 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
933 die whose range is being checked; get rnglist section from
934 cu_debug_rnglists_section, to get from either objfile or dwo file as
935 appropriate. Add cases for DW_RLE_base_addressx,
936 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
937 the base address to DW_RLE_offset_pairs (not to all ranges), moving
938 test inside if-condition and updating complaint message.
939 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
940 dwarf2_rnglists_process.
941 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
942 dwarf2_ranges_process.
943 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
944 need_ranges_base and update comment appropriately. Also pass die tag
945 to dwarf2_ranges_read.
946 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
947 need_ranges_base and update comment appropriately. Also pass die tag
948 to dwarf2_ranges_process.
949 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
950 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
951 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
952 need_ranges_base and update comment appropriately. Also pass die tag
953 to read_attribute_reprocess and dwarf2_ranges_read.
954 (read_loclist_header): Rename function to read_loclists_rnglists_header,
955 and update function comment appropriately.
956 (read_loclist_index): Call read_loclists_rnglists_header instead of
957 read_loclist_header.
958 (read_rnglist_index): New function.
959 (read_attribute_reprocess): Add tag parameter. Add code for
960 DW_FORM_rnglistx, passing tag to read_rnglist_index.
961 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
962
963 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
964
965 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
966 being resolved.
967
968 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
969
970 * arch-utils.c (show_architecture): Update formatting of messages.
971
972 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
973
974 * gdbtypes.h (struct type) <bounds>: Handle array and string
975 types.
976 * ada-lang.c (assign_aggregate): Use type::bounds on
977 array/string type.
978 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
979 * c-varobj.c (c_number_of_children): Likewise.
980 (c_describe_child): Likewise.
981 * eval.c (evaluate_subexp_for_sizeof): Likewise.
982 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
983 (f_type_print_base): Likewise.
984 * f-valprint.c (f77_array_offset_tbl): Likewise.
985 (f77_get_upperbound): Likewise.
986 (f77_print_array_1): Likewise.
987 * guile/scm-type.c (gdbscm_type_range): Likewise.
988 * m2-typeprint.c (m2_array): Likewise.
989 (m2_is_long_set_of_type): Likewise.
990 * m2-valprint.c (get_long_set_bounds): Likewise.
991 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
992 * python/py-type.c (typy_range): Likewise.
993 * rust-lang.c (rust_internal_print_type): Likewise.
994 * type-stack.c (type_stack::follow_types): Likewise.
995 * valarith.c (value_subscripted_rvalue): Likewise.
996 * valops.c (value_cast): Likewise.
997
998 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
999
1000 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1001 callers to use the equivalent accessor methods.
1002
1003 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1004
1005 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1006 (struct type) <bit_stride>: New method.
1007 (TYPE_BIT_STRIDE): Remove.
1008 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1009
1010 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1011
1012 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1013 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1014 callers to use the equivalent accessor methods instead.
1015
1016 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1017
1018 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1019 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1020 callers to use the equivalent accessor methods instead.
1021
1022 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1023
1024 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1025 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1026 to use dynamic_prop::kind.
1027
1028 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1029
1030 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1031 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1032 to get the bound property's kind and check against
1033 PROP_UNDEFINED.
1034
1035 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1036
1037 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1038 all callers to use type::range_bounds followed by
1039 dynamic_prop::{low,high}.
1040
1041 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1042
1043 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1044 const_val, set_const_val, baton, set_locexpr, set_loclist,
1045 set_addr_offset, variant_parts, set_variant_parts,
1046 original_type, set_original_type>: New methods.
1047 <kind>: Rename to...
1048 <m_kind>: ... this. Update all users to use the new methods
1049 instead.
1050 <data>: Rename to...
1051 <m_data>: ... this. Update all users to use the new methods
1052 instead.
1053
1054 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1055
1056 * gdbtypes.c (get_discrete_bounds): Return failure if
1057 the range type's bounds are not both defined and constant
1058 values.
1059 (get_array_bounds): Update comment. Remove undefined bound check.
1060
1061 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1062
1063 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1064 the type::bounds method directly.
1065
1066 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1067
1068 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1069 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1070 are used to set the range type's bounds to use set_bounds.
1071
1072 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1073
1074 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1075
1076 2020-07-10 Pedro Alves <pedro@palves.net>
1077
1078 * gdbthread.h (inferior_ref): Define.
1079 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1080 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1081 * thread.c
1082 (scoped_restore_current_thread::restore):
1083 Adjust to gdb::ref_ptr.
1084 (scoped_restore_current_thread::~scoped_restore_current_thread):
1085 Remove manual decref handling.
1086 (scoped_restore_current_thread::scoped_restore_current_thread):
1087 Adjust to use
1088 inferior_ref::new_reference/thread_info_ref::new_reference.
1089 Incref the thread before calling get_frame_id instead of after.
1090 Let TARGET_CLOSE_ERROR propagate.
1091
1092 2020-07-10 Pedro Alves <pedro@palves.net>
1093
1094 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1095 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1096 NOT_AVAILABLE_ERROR.
1097 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1098 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1099
1100 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1101 Pedro Alves <pedro@palves.net>
1102
1103 PR gdb/26199
1104 * infrun.c (threads_are_resumed_pending_p): Delete.
1105 (do_target_wait): Remove threads_are_executing and
1106 threads_are_resumed_pending_p checks from the inferior_matches
1107 lambda. Update comments.
1108
1109 2020-07-10 Pedro Alves <pedro@palves.net>
1110
1111 PR gdb/26199
1112 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1113 executing threads.
1114
1115 2020-07-10 Pedro Alves <pedro@palves.net>
1116
1117 PR gdb/26199
1118 * infrun.c (handle_no_resumed): Handle multiple targets.
1119
1120 2020-07-10 Pedro Alves <pedro@palves.net>
1121
1122 PR gdb/26199
1123 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1124 target_is_async_p.
1125
1126 2020-07-10 Pedro Alves <pedro@palves.net>
1127
1128 PR gdb/26199
1129 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1130 threads, not all threads.
1131
1132 2020-07-10 Pedro Alves <pedro@palves.net>
1133
1134 PR gdb/26199
1135 * remote.c (remote_target::open_1): Pass remote target pointer as
1136 data to create_async_event_handler.
1137 (remote_async_inferior_event_handler): Mark async event handler
1138 before returning if the remote target still has either pending
1139 events or unacknowledged notifications.
1140
1141 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1142
1143 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1144 declaration.
1145 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1146 function.
1147
1148 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1149
1150 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1151 inferior_ptid.
1152
1153 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1154
1155 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1156 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1157 AT_FREEBSD_PS_STRINGS.
1158
1159 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1160
1161 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1162 of debugfile path on Windows.
1163
1164 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1165
1166 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1167 argument to 'data'.
1168
1169 2020-07-08 Tom Tromey <tromey@adacore.com>
1170
1171 * ada-lang.c (ada_exception_message_1): Use read_memory.
1172
1173 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1174
1175 PR python/22748
1176 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1177 special handling for inline frames.
1178 * findvar.c (value_of_register_lazy): Skip inline frames when
1179 creating lazy register values.
1180 * frame.c (frame_id_computed_p): Delete definition.
1181 * frame.h (frame_id_computed_p): Delete declaration.
1182
1183 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1184
1185 * NEWS: Mention additions to Python API.
1186 * python/py-arch.c (archpy_register_groups): New function.
1187 (arch_object_methods): Add 'register_groups' method.
1188 * python/py-registers.c (reggroup_iterator_object): New struct.
1189 (reggroup_object): New struct.
1190 (gdbpy_new_reggroup): New function.
1191 (gdbpy_reggroup_to_string): New function.
1192 (gdbpy_reggroup_name): New function.
1193 (gdbpy_reggroup_iter): New function.
1194 (gdbpy_reggroup_iter_next): New function.
1195 (gdbpy_new_reggroup_iterator): New function
1196 (gdbpy_initialize_registers): Register new types.
1197 (reggroup_iterator_object_type): Define new Python type.
1198 (gdbpy_reggroup_getset): New static global.
1199 (reggroup_object_type): Define new Python type.
1200 * python/python-internal.h
1201
1202 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1203
1204 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1205 * python/py-arch.c (archpy_registers): New function.
1206 (arch_object_methods): Add 'registers' method.
1207 * python/py-registers.c: New file.
1208 * python/python-internal.h
1209 (gdbpy_new_register_descriptor_iterator): Declare.
1210 (gdbpy_initialize_registers): Declare.
1211 * python/python.c (do_start_initialization): Call
1212 gdbpy_initialize_registers.
1213 * NEWS: Mention additions to the Python API.
1214
1215 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1216
1217 * NEWS: Mention new Python API method.
1218 * python/py-unwind.c (pending_framepy_architecture): New function.
1219 (pending_frame_object_methods): Add architecture method.
1220
1221 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1222
1223 * gdbarch.c: Regenerate.
1224 * gdbarch.h: Regenerate.
1225 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1226 (gdbarch_data): Use internal_error for the case where
1227 deprecated_set_gdbarch_data was originally needed.
1228 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1229 and use passed in obstack.
1230 (libunwind_frame_set_descr): Should no longer get back NULL from
1231 gdbarch_data.
1232 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1233 type.
1234 * user-regs.c (user_regs_init): Update parameters, and use passed
1235 in obstack.
1236 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1237 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1238
1239 2020-07-06 Tom de Vries <tdevries@suse.de>
1240
1241 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1242 End-Of-Sequence in lte_is_less_than.
1243 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1244 "gdb: Don't reorder line table entries too much when sorting".
1245
1246 2020-07-06 Tom de Vries <tdevries@suse.de>
1247
1248 PR tui/26205
1249 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1250
1251 2020-07-05 Tom de Vries <tdevries@suse.de>
1252
1253 PR build/26187
1254 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1255 std::uncaught_exceptions instead of deprecated
1256 std::uncaught_exception.
1257
1258 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1259
1260 * macroexp.h (macro_stringify): Return
1261 gdb::unique_xmalloc_ptr<char>.
1262 * macroexp.c (macro_stringify): Likewise.
1263 * macrotab.c (fixup_definition): Update.
1264
1265 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1266
1267 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1268 (lex_one_token): Update.
1269 * macroexp.c (struct macro_buffer) <release>: Return
1270 gdb::unique_xmalloc_ptr<char>.
1271 (macro_stringify): Update.
1272 (macro_expand): Update.
1273 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1274 * macroexp.h (macro_expand_next): Likewise.
1275
1276 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1277
1278 * macroexp.h (macro_lookup_ftype): Remove.
1279 (macro_expand, macro_expand_once, macro_expand_next): Remove
1280 lookup function parameters, add scope parameter.
1281 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1282 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1283 * macroscope.h (standard_macro_lookup): Change parameter type
1284 to macro_scope.
1285 * macroscope.c (standard_macro_lookup): Likewise.
1286 * c-exp.y (lex_one_token): Update.
1287 * macrocmd.c (macro_expand_command): Likewise.
1288 (macro_expand_once_command): Likewise.
1289
1290 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1291
1292 * inf-loop.c (inferior_event_handler): Remove client_data param.
1293 * inf-loop.h (inferior_event_handler): Likewise.
1294 * infcmd.c (step_1): Adjust.
1295 * infrun.c (proceed): Adjust.
1296 (fetch_inferior_event): Remove client_data param.
1297 (infrun_async_inferior_event_handler): Adjust.
1298 * infrun.h (fetch_inferior_event): Remove `void *` param.
1299 * linux-nat.c (handle_target_event): Adjust.
1300 * record-btrace.c (record_btrace_handle_async_inferior_event):
1301 Adjust.
1302 * record-full.c (record_full_async_inferior_event_handler):
1303 Adjust.
1304 * remote.c (remote_async_inferior_event_handler): Adjust.
1305
1306 2020-07-01 Tom Tromey <tom@tromey.com>
1307
1308 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1309 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1310
1311 2020-07-01 Tom Tromey <tom@tromey.com>
1312
1313 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1314 tui_gen_win_info.
1315 (tui_win_info::make_window): Merge with
1316 tui_gen_win_info::make_window.
1317 (tui_win_info::make_visible): Move from tui_gen_win_info.
1318 * tui/tui-win.c (tui_win_info::max_width): Move from
1319 tui_gen_win_info.
1320 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1321 type.
1322 <window_factory>: Likewise.
1323 * tui/tui-layout.c (tui_win_info::resize): Move from
1324 tui_gen_win_info.
1325 (make_standard_window): Change return type.
1326 (get_locator_window, tui_get_window_by_name): Likewise.
1327 (tui_layout_window::apply): Remove a cast.
1328 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1329 (struct tui_win_info): Merge with tui_gen_win_info.
1330 (struct tui_gen_win_info): Remove.
1331
1332 2020-07-01 Tom Tromey <tom@tromey.com>
1333
1334 * tui/tui-stack.h (struct tui_locator_window): Derive from
1335 tui_win_info.
1336 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1337 <can_box>: New method.
1338
1339 2020-07-01 Tom Tromey <tom@tromey.com>
1340
1341 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1342
1343 2020-07-01 Tom Tromey <tom@tromey.com>
1344
1345 * tui/tui-regs.c (tui_data_window::display_registers_from)
1346 (tui_data_window::display_registers_from)
1347 (tui_data_window::first_data_item_displayed)
1348 (tui_data_window::delete_data_content_windows): Update.
1349 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1350 Remove.
1351 (tui_data_window::check_register_values): Update.
1352 (tui_data_item_window::rerender): Add parameters. Update.
1353 (tui_data_item_window::refresh_window): Remove.
1354 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1355 virtual.
1356 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1357 tui_gen_win_info.
1358 <refresh_window, max_height, min_height>: Remove.
1359 <rerender>: Add parameters.
1360 <x, y, visible>: New members.
1361 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1362 <m_item_width>: New member.
1363
1364 2020-07-01 Tom Tromey <tom@tromey.com>
1365
1366 * tui/tui-regs.c (tui_data_window::show_register_group)
1367 (tui_data_window::check_register_values): Update.
1368 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1369 from item_no.
1370
1371 2020-07-01 Tom Tromey <tom@tromey.com>
1372
1373 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1374 useless "if".
1375
1376 2020-07-01 Tom Tromey <tom@tromey.com>
1377
1378 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1379 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1380
1381 2020-07-01 Tom Tromey <tom@tromey.com>
1382
1383 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1384 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1385 (struct tui_line_or_address): Move from tui-data.h.
1386 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1387 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1388 (tui_cmd_window, tui_source_window_base, tui_source_window)
1389 (tui_disasm_window): Don't declare.
1390 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1391 to tui-winsource.h.
1392 (SINGLE_KEY): Move to tui-stack.c.
1393
1394 2020-07-01 Tom Tromey <tom@tromey.com>
1395
1396 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1397 std::string.
1398 * tui/tui-regs.c (class tab_expansion_file): New.
1399 (tab_expansion_file::write): New method.
1400 (tui_register_format): Change return type. Use
1401 tab_expansion_file.
1402 (tui_get_register, tui_data_window::display_registers_from)
1403 (tui_data_item_window::rerender): Update.
1404 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1405 * tui/tui-io.c (tui_expand_tabs): Remove.
1406
1407 2020-07-01 Tom Tromey <tom@tromey.com>
1408
1409 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1410
1411 2020-07-01 Fangrui Song <maskray@google.com>
1412
1413 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1414
1415 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1416
1417 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1418 forms for DW_AT_associated and DW_AT_allocated attributes,
1419 which is already checked in function attr_to_dynamic_prop.
1420
1421 2020-06-30 Tom Tromey <tromey@adacore.com>
1422
1423 * dwarf2/read.c (quirk_rust_enum): Correctly call
1424 alloc_rust_variant for default-less enum.
1425
1426 2020-06-30 Tom Tromey <tromey@adacore.com>
1427
1428 PR build/26183:
1429 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1430 gdb::to_string.
1431
1432 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1433
1434 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1435 * gdbarch.h: Re-generate.
1436
1437 2020-06-28 Tom Tromey <tom@tromey.com>
1438
1439 * command.h (cmd_types): Remove.
1440 (cmd_type): Don't declare.
1441 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1442 typedef.
1443 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1444 * cli/cli-decode.c (cmd_type): Remove.
1445
1446 2020-06-27 Pedro Alves <palves@redhat.com>
1447
1448 * fork-child.c (prefork_hook): Adjust.
1449 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1450 Delete.
1451 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1452 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1453 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1454 Remove declarations.
1455 (struct inferior) <set_tty, tty>: New methods.
1456 (struct inferior) <terminal>: Rename to ...
1457 (struct inferior) <m_terminal>: ... this and make private.
1458 * main.c (captured_main_1): Adjust.
1459 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1460 (mi_cmd_inferior_tty_show): Adjust.
1461 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1462 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1463
1464 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1465
1466 * configure.ac: Add --enable-libctf: handle --disable-static
1467 properly.
1468 * acinclude.m4: sinclude ../config/enable.m4.
1469 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1470 (LIBCTF): Substitute in.
1471 (CTF_DEPS): New, likewise.
1472 (CLIBS): libctf needs symbols from libbfd: move earlier.
1473 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1474 flags.
1475 * ctfread.c: Surround in ENABLE_LIBCTF.
1476 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1477 * configure: Regenerate.
1478 * config.in: Likewise.
1479
1480 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1481
1482 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1483
1484 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1485
1486 * inferior.h (struct inferior) <terminal>: Change type to
1487 gdb::unique_xmalloc_ptr<char>.
1488 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1489 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1490 field, adjust to unique pointer.
1491 (get_inferior_io_terminal): Adjust to unique pointer.
1492
1493 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1494
1495 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1496 registers, not just the known core set of registers.
1497
1498 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1499
1500 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1501 fflags, frm, and fcsr registers.
1502 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1503 restore groups.
1504 (riscv_tdesc_unknown_reg): New function.
1505 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1506 tdesc_use_registers.
1507 * riscv-tdep.h (struct gdbarch_tdep): Add
1508 unknown_csrs_first_regnum, unknown_csrs_count,
1509 duplicate_fflags_regnum, duplicate_frm_regnum, and
1510 duplicate_fcsr_regnum fields.
1511
1512 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1513
1514 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1515 callback, use the callback (when not null) to help number unknown
1516 registers.
1517 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1518 (tdesc_use_registers): Add extra parameter to declaration.
1519
1520 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1521
1522 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1523 in the file.
1524 (class riscv_pending_register_alias): Likewise.
1525 (riscv_register_feature::register_info): Change 'required_p' field
1526 to 'required', and change its type. Add 'check' member function.
1527 (riscv_register_feature::register_info::check): Define new member
1528 function.
1529 (riscv_xreg_feature): Change initialisation of 'required' field.
1530 (riscv_freg_feature): Likewise.
1531 (riscv_virtual_feature): Likewise.
1532 (riscv_csr_feature): Likewise.
1533 (riscv_check_tdesc_feature): Take extra parameter, the csr
1534 tdesc_feature, rewrite the function to use the new
1535 riscv_register_feature::register_info::check function.
1536 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1537
1538 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1539
1540 * features/Makefile: Remove all references to the deleted files
1541 below.
1542 * features/riscv/32bit-csr.c: Deleted.
1543 * features/riscv/32bit-csr.xml: Deleted.
1544 * features/riscv/64bit-csr.c: Deleted.
1545 * features/riscv/64bit-csr.xml: Deleted.
1546 * features/riscv/rebuild-csr-xml.sh: Deleted.
1547
1548 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1549
1550 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1551 whitespace error for declaration of names member variable.
1552 (struct riscv_register_feature): Add new prefer_first_name member
1553 variable, and fix whitespace error in declaration of registers.
1554 (riscv_xreg_feature): Initialize prefer_first_name field.
1555 (riscv_freg_feature): Likewise.
1556 (riscv_virtual_feature): Likewise.
1557 (riscv_csr_feature): Likewise.
1558 (riscv_register_name): Expand on comments. Remove register name
1559 modifications for CSR and virtual registers.
1560
1561 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1562
1563 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1564 errors.
1565
1566 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1567
1568 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1569 riscv-opc.h.
1570 (class riscv_pending_register_alias): New class.
1571 (riscv_check_tdesc_feature): Take vector of pending aliases and
1572 populate it as appropriate.
1573 (riscv_setup_register_aliases): Delete.
1574 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1575 to riscv_check_tdesc_feature in all cases. Use the vector to
1576 create the register aliases.
1577
1578 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1579
1580 * sol2-tdep.c (sol2_static_transform_name): Remove.
1581 (sol2_init_abi): Don't register it.
1582 * gdbarch.sh (static_transform_name): Remove.
1583 * gdbarch.c, gdbarch.h: Regenerate.
1584
1585 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1586 gdbarch_static_transform_name.
1587 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1588 * stabsread.c (define_symbol) <'X'>: Remove.
1589 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1590 handling.
1591 <'V'>: Likewise.
1592 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1593 <'S'>: Remove call to gdbarch_static_transform_name.
1594
1595 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1596
1597 * procfs.c (procfs_pre_trace): New function.
1598 (procfs_target::create_inferior): Pass it to fork_inferior.
1599
1600 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1601
1602 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1603 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1604 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1605 sol2-tdep.o, sparc-sol2-tdep.o.
1606 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1607 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1608 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1609 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1610
1611 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1612
1613 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1614 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1615 Call sol2_init_abi.
1616 Remove calls to set_gdbarch_skip_solib_resolver,
1617 set_gdbarch_core_pid_to_str.
1618 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1619 (i386_sol2_static_transform_name): Remove.
1620 (i386_sol2_init_abi): Call sol2_init_abi.
1621 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1622 set_gdbarch_static_transform_name,
1623 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1624 Use sol2_sigtramp_p.
1625 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1626 (sol2_sigtramp_p): New function.
1627 (sol2_static_transform_name): New function.
1628 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1629 (sol2_init_abi): New function.
1630 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1631 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1632 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1633 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1634 (sparc_sol2_static_transform_name): Remove.
1635 (sparc32_sol2_init_abi): Call sol2_init_abi.
1636 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1637 set_gdbarch_static_transform_name,
1638 set_gdbarch_skip_solib_resolver,
1639 set_gdbarch_core_pid_to_str.
1640 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1641 (sparc_sol2_static_transform_name): Remove
1642 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1643 call sol2_sigtramp_p.
1644 (sparc64_sol2_init_abi): Call sol2_init_abi.
1645 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1646 set_gdbarch_static_transform_name,
1647 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1648
1649 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1650
1651 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1652 * exec.c (validate_exec_file): If from_tty, set both
1653 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1654 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1655 and from_tty, unconditionally ask a confirmation.
1656
1657 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1658
1659 * target-descriptions.c (tdesc_architecture_name): Protect against
1660 NULL pointer dereference.
1661 (maint_print_xml_tdesc_cmd): New function.
1662 (_initialize_target_descriptions): Register new 'maint print
1663 xml-tdesc' command and give it the filename completer.
1664 * NEWS: Mention new 'maint print xml-tdesc' command.
1665
1666 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1667
1668 * target-descriptions.c (class tdesc_compatible_info): New class.
1669 (struct target_desc): Change type of compatible vector.
1670 (tdesc_compatible_p): Update for change in type of
1671 target_desc::compatible.
1672 (tdesc_compatible_info_list): New function.
1673 (tdesc_compatible_info_arch_name): New function.
1674 (tdesc_add_compatible): Update for change in type of
1675 target_desc::compatible.
1676 (print_c_tdesc::visit_pre): Likewise.
1677
1678 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1679
1680 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1681 whitespace to underscore.
1682 (maint_print_c_tdesc_cmd): Use fake filename for target
1683 descriptions that came from the target.
1684 (_initialize_target_descriptions): Add filename command completion
1685 for 'maint print c-tdesc'.
1686
1687 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1688
1689 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1690 lines.
1691
1692 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1693
1694 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1695 lines.
1696 (dwarf2_find_location_expression): Likewise.
1697 (call_site_parameter_matches): Likewise.
1698 (dwarf2_compile_expr_to_ax): Likewise.
1699 (disassemble_dwarf_expression): Likewise.
1700 (loclist_describe_location): Likewise.
1701
1702 2020-06-23 Pedro Alves <palves@redhat.com>
1703
1704 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1705 progspace-and-thread.h. Include scoped-mock-context.h instead.
1706 (register_to_value_test): Use scoped_mock_context.
1707 * regcache.c: Include "scoped-mock-context.h".
1708 (cooked_read_test): Don't error out if a target is already pushed.
1709 Use scoped_mock_context. Adjust.
1710 * scoped-mock-context.h: New file.
1711
1712 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1713
1714 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1715 initializer.
1716 (ada_language::is_string_type_p): New member function.
1717 * c-lang.c (c_language_data): Delete la_is_string_type_p
1718 initializer.
1719 (cplus_language_data): Likewise.
1720 (asm_language_data): Likewise.
1721 (minimal_language_data): Likewise.
1722 * d-lang.c (d_language_data): Likewise.
1723 * f-lang.c (f_is_string_type_p): Delete function, implementation
1724 moved to f_language::is_string_type_p.
1725 (f_language_data): Delete la_is_string_type_p initializer.
1726 (f_language::is_string_type_p): New member function,
1727 implementation from f_is_string_type_p.
1728 * go-lang.c (go_is_string_type_p): Delete function, implementation
1729 moved to go_language::is_string_type_p.
1730 (go_language_data): Delete la_is_string_type_p initializer.
1731 (go_language::is_string_type_p): New member function,
1732 implementation from go_is_string_type_p.
1733 * language.c (language_defn::is_string_type_p): Define new member
1734 function.
1735 (default_is_string_type_p): Make static, add comment copied from
1736 header file.
1737 (unknown_language_data): Delete la_is_string_type_p initializer.
1738 (unknown_language::is_string_type_p): New member function.
1739 (auto_language_data): Delete la_is_string_type_p initializer.
1740 (auto_language::is_string_type_p): New member function.
1741 * language.h (language_data): Delete la_is_string_type_p field.
1742 (language_defn::is_string_type_p): Declare new function.
1743 (default_is_string_type_p): Delete desclaration, move comment to
1744 definition.
1745 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1746 moved to m2_language::is_string_type_p.
1747 (m2_language_data): Delete la_is_string_type_p initializer.
1748 (m2_language::is_string_type_p): New member function,
1749 implementation from m2_is_string_type_p.
1750 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1751 initializer.
1752 * opencl-lang.c (opencl_language_data): Likewise.
1753 * p-lang.c (pascal_is_string_type_p): Delete function,
1754 implementation moved to pascal_language::is_string_type_p.
1755 (pascal_language_data): Delete la_is_string_type_p initializer.
1756 (pascal_language::is_string_type_p): New member function,
1757 implementation from pascal_is_string_type_p.
1758 * rust-lang.c (rust_is_string_type_p): Delete function,
1759 implementation moved to rust_language::is_string_type_p.
1760 (rust_language_data): Delete la_is_string_type_p initializer.
1761 (rust_language::is_string_type_p): New member function,
1762 implementation from rust_is_string_type_p.
1763 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1764 is_string_type_p.
1765
1766 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1767
1768 * ada-lang.c (ada_language_data): Delete la_print_typedef
1769 initializer.
1770 (ada_language::print_typedef): New member function.
1771 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1772 (cplus_language_data): Likewise.
1773 (asm_language_data): Likewise.
1774 (minimal_language_data): Likewise.
1775 * d-lang.c (d_language_data): Likewise.
1776 * f-lang.c (f_language_data): Likewise.
1777 (f_language::print_typedef): New member function.
1778 * go-lang.c (go_language_data): Delete la_print_typedef
1779 initializer.
1780 * language.c (language_defn::print_typedef): Define member
1781 function.
1782 (unknown_language_data): Delete la_print_typedef initializer.
1783 (unknown_language::print_typedef): New member function.
1784 (auto_language_data): Delete la_print_typedef initializer.
1785 (auto_language::print_typedef): New member function.
1786 * language.h (language_data): Delete la_print_typedef field.
1787 (language_defn::print_typedef): Declare new member function.
1788 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1789 (default_print_typedef): Delete declaration.
1790 * m2-lang.c (m2_language_data): Delete la_print_typedef
1791 initializer.
1792 (m2_language::print_typedef): New member function.
1793 * objc-lang.c (objc_language_data): Delete la_print_typedef
1794 initializer.
1795 * opencl-lang.c (opencl_language_data): Likewise.
1796 * p-lang.c (pascal_language_data): Likewise.
1797 (pascal_language::print_typedef): New member function.
1798 * rust-lang.c (rust_print_typedef): Delete function,
1799 implementation moved to rust_language::print_typedef.
1800 (rust_language): Delete la_print_typedef initializer.
1801 (rust_language::print_typedef): New member function,
1802 implementation from rust_print_typedef.
1803 * typeprint.c (default_print_typedef): Delete.
1804
1805 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1806
1807 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1808 (ada_language::printstr): New member function.
1809 * c-lang.c (c_language_data): Delete la_printstr initializer.
1810 (cplus_language_data): Likewise.
1811 (asm_language_data): Likewise.
1812 (minimal_language_data): Likewise.
1813 * d-lang.c (d_language_data): Likewise.
1814 * f-lang.c (f_printstr): Rename to f_language::printstr.
1815 (f_language_data): Delete la_printstr initializer.
1816 (f_language::printstr): New member function, implementation from
1817 f_printstr.
1818 * go-lang.c (go_language_data): Delete la_printstr initializer.
1819 * language.c (language_defn::printstr): Define new member
1820 function.
1821 (unk_lang_printstr): Delete.
1822 (unknown_language_data): Delete la_printstr initializer.
1823 (unknown_language::printstr): New member function.
1824 (auto_language_data): Delete la_printstr initializer.
1825 (auto_language::printstr): New member function.
1826 * language.h (language_data): Delete la_printstr field.
1827 (language_defn::printstr): Declare new member function.
1828 (LA_PRINT_STRING): Update call to printstr.
1829 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1830 (m2_language_data): Delete la_printstr initializer.
1831 (m2_language::printstr): New member function, implementation from
1832 m2_printstr.
1833 * objc-lang.c (objc_language_data): Delete la_printstr
1834 initializer.
1835 * opencl-lang.c (opencl_language_data): Likewise.
1836 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1837 (pascal_language_data): Delete la_printstr initializer.
1838 (pascal_language::printstr): New member function, implementation
1839 from pascal_printstr.
1840 * p-lang.h (pascal_printstr): Delete declaration.
1841 * rust-lang.c (rust_printstr): Update header comment.
1842 (rust_language_data): Delete la_printstr initializer.
1843 (rust_language::printstr): New member function.
1844
1845 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1846
1847 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1848 (ada_language::printchar): New member function.
1849 * c-lang.c (c_language_data): Delete la_printchar initializer.
1850 (cplus_language_data): Likewise.
1851 (asm_language_data): Likewise.
1852 (minimal_language_data): Likewise.
1853 * d-lang.c (d_language_data): Likewise.
1854 * f-lang.c (f_printchar): Rename to f_language::printchar.
1855 (f_language_data): Delete la_printchar initializer.
1856 (f_language::printchar): New member function, implementation from
1857 f_printchar.
1858 * go-lang.c (go_language_data): Delete la_printchar initializer.
1859 * language.c (unk_lang_printchar): Delete.
1860 (language_defn::printchar): Define new member function.
1861 (unknown_language_data): Delete la_printchar initializer.
1862 (unknown_language::printchar): New member function.
1863 (auto_language_data): Delete la_printchar initializer.
1864 (auto_language::printchar): New member function.
1865 * language.h (language_data): Delete la_printchar field.
1866 (language_defn::printchar): Declare new member function.
1867 (LA_PRINT_CHAR): Update call to printchar.
1868 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1869 (m2_language::printchar): New member function.
1870 * objc-lang.c (objc_language_data): Delete la_printchar
1871 initializer.
1872 * opencl-lang.c (opencl_language_data): Likewise.
1873 * p-lang.c (pascal_language_data): Delete la_printchar
1874 initializer.
1875 (pascal_language::printchar): New member function.
1876 * rust-lang.c (rust_printchar): Rename to
1877 rust_language::printchar.
1878 (rust_language_data): Delete la_printchar initializer.
1879 (rust_language::printchar): New member function, implementation
1880 from rust_printchar.
1881
1882 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1883
1884 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1885 (ada_language_data): Delete la_emitchar initializer.
1886 (ada_language::emitchar): New member function, implementation from
1887 emit_char.
1888 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1889 (cplus_language_data): Likewise.
1890 (asm_language_data): Likewise.
1891 (minimal_language_data): Likewise.
1892 * d-lang.c (d_language_data): Likewise.
1893 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1894 (f_language_data): Delete la_emitchar initializer.
1895 (f_language::emitchar): New member function, implementation from
1896 f_emit_char.
1897 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1898 * language.c (unk_lang_emit_char): Delete.
1899 (language_defn::emitchar): New member function definition.
1900 (unknown_language_data): Delete la_emitchar initializer.
1901 (unknown_language::emitchar): New member function.
1902 (auto_language_data): Delete la_emitchar initializer.
1903 (auto_language::emitchar): New member function.
1904 * language.h (language_data): Delete la_emitchar field.
1905 (language_defn::emitchar): New member field declaration.
1906 (LA_EMIT_CHAR): Update call to emitchar.
1907 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1908 (m2_language_data): Delete la_emitchar initializer.
1909 (m2_language::emitchar): New member function, implementation from
1910 m2_emit_char.
1911 * objc-lang.c (objc_language_data): Delete la_emitchar
1912 initializer.
1913 * opencl-lang.c (opencl_language_data): Likewise.
1914 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1915 (pascal_language_data): Delete la_emitchar initializer.
1916 (pascal_language::emitchar): New member function, implementation
1917 from pascal_emit_char.
1918 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1919 (rust_language_data): Delete la_emitchar initializer.
1920 (rust_language::emitchar): New member function, implementation
1921 from rust_emitchar.
1922
1923 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1924
1925 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1926 (ada_language_data): Delete la_post_parser initializer.
1927 (ada_language::post_parser): New member function.
1928 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1929 (cplus_language_data): Likewise.
1930 (asm_language_data): Likewise.
1931 (minimal_language_data): Likewise.
1932 * d-lang.c (d_language_data): Likewise.
1933 * f-lang.c (f_language_data): Likewise.
1934 * go-lang.c (go_language_data): Likewise.
1935 * language.c (unknown_language_data): Likewise.
1936 (auto_language_data): Likewise.
1937 * language.h (language_data): Delete la_post_parser field.
1938 (language_defn::post_parser): New member function.
1939 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1940 * objc-lang.c (objc_language_data): Likewise.
1941 * opencl-lang.c (opencl_language_data): Likewise.
1942 * p-lang.c (pascal_language_data): Likewise.
1943 * parse.c (parse_exp_in_context): Update call to post_parser.
1944 (null_post_parser): Delete definition.
1945 * parser-defs.h (null_post_parser): Delete declaration.
1946 * rust-lang.c (rust_language_data): Delete la_post_parser
1947 initializer.
1948
1949 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1950
1951 * ada-lang.c (parse): Rename to ada_language::parser.
1952 (ada_language_data): Delete la_parser initializer.
1953 (ada_language::parser): New member function, implementation from
1954 parse.
1955 * c-lang.c (c_language_data): Delete la_parser initializer.
1956 (cplus_language_data): Likewise.
1957 (asm_language_data): Likewise.
1958 (minimal_language_data): Likewise.
1959 * d-lang.c (d_language_data): Likewise.
1960 (d_language::parser): New member function.
1961 * f-lang.c (f_language_data): Delete la_parser initializer.
1962 (f_language::parser): New member function.
1963 * go-lang.c (go_language_data): Delete la_parser initializer.
1964 (go_language::parser): New member function.
1965 * language.c (unk_lang_parser): Delete.
1966 (language_defn::parser): Define new member function.
1967 (unknown_language_data): Delete la_parser initializer.
1968 (unknown_language::parser): New member function.
1969 (auto_language_data): Delete la_parser initializer.
1970 (auto_language::parser): New member function.
1971 * language.h (language_data): Delete la_parser field.
1972 (language_defn::parser): Declare new member function.
1973 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1974 (m2_language::parser): New member function.
1975 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1976 * opencl-lang.c (opencl_language_data): Likewise.
1977 * p-lang.c (pascal_language_data): Likewise.
1978 (pascal_language::parser): New member function.
1979 * parse.c (parse_exp_in_context): Update call to parser.
1980 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1981 (rust_language::parser): New member function.
1982
1983 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1984
1985 * top.c (print_gdb_configuration): Print --with-python-libdir
1986 configuration value.
1987
1988 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1989
1990 * NEWS: Mention change to the alias command.
1991
1992 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1993
1994 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1995 (alias_command_completer)
1996 (make_alias_options_def_group): New functions.
1997 (alias_opts, alias_option_defs): New struct and array.
1998 (alias_usage_error): Update usage.
1999 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2000 Use option framework.
2001 (_initialize_cli_cmds): Update alias command help.
2002 Update aliases command help.
2003 (show_user):
2004 Add NULL for new default_args lookup_cmd argument.
2005 (valid_command_p): Rename to validate_aliased_command.
2006 Add NULL for new default_args lookup_cmd argument. Verify that the
2007 aliased_command has no default args.
2008 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2009 (lookup_cmd_1, lookup_cmd): New argument default_args.
2010 (add_alias_cmd):
2011 Add NULL for new default_args lookup_cmd argument.
2012 (print_help_for_command): Show default args under the layout
2013 alias some_alias = some_aliased_cmd some_alias_default_arg.
2014 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2015 xfree default_args in destructor.
2016 * cli/cli-script.c (process_next_line, do_define_command):
2017 Add NULL for new default_args lookup_cmd argument.
2018 * command.h: Declare new default_args argument in lookup_cmd
2019 and lookup_cmd_1.
2020 * completer.c (complete_line_internal_1):
2021 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2022 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2023 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2024 Likewise.
2025 * infcmd.c (_initialize_infcmd): Likewise.
2026 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2027 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2028 * python/py-param.c (add_setshow_generic): Likewise.
2029 * remote.c (_initialize_remote): Likewise.
2030 * top.c (execute_command): Prepend default_args if command has some.
2031 (set_verbose):
2032 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2033 * tracepoint.c (validate_actionline, encode_actions_1):
2034 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2035
2036 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2037
2038 * jit.c (jit_read_descriptor): Use bool as the return type.
2039 (jit_breakpoint_re_set_internal): Use bool as the return type.
2040 Invert the return value logic; return true if the jit breakpoint
2041 has been successfully initialized.
2042 (jit_inferior_init): Update the call to
2043 jit_breakpoint_re_set_internal.
2044
2045 2020-06-22 Pedro Alves <palves@redhat.com>
2046
2047 PR gdb/25939
2048 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2049 Use the current inferior instead. Don't return
2050 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2051 wait again.
2052 * sol-thread.c (sol_thread_target::wait): Don't reference
2053 inferior_ptid.
2054 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2055 (sol_update_thread_list_callback): Use the current inferior's pid
2056 instead of inferior_ptid.
2057
2058 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2059
2060 * procfs.c: Cleanup many comments.
2061
2062 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2063 (AFTER_WATCHFLAG): Replace by value.
2064
2065 (MAIN_PROC_NAME_FORMAT): Inline ...
2066 (create_procinfo): ... here.
2067
2068 (procfs_debug_inferior): Remove SYS_exec handling.
2069 (syscall_is_exec): Likewise.
2070 (procfs_set_exec_trap): Likewise.
2071
2072 (syscall_is_lwp_exit): Inline in callers.
2073 (syscall_is_exit): Likewise.
2074 (syscall_is_exec): Likewise.
2075 (syscall_is_lwp_create): Likewise.
2076
2077 (invalidate_cache): Remove #if 0 code.
2078
2079 (make_signal_thread_runnable): Remove.
2080 (procfs_target::resume): Remove #if 0 code.
2081
2082 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2083
2084 PR gdb/25939
2085 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2086 call ...
2087 (procfs_target::create_inferior): ... here.
2088
2089 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2090
2091 * exec.c (validate_exec_file): Ensure the build-id is up to
2092 date by calling reopen_exec_file (that checks file timestamp
2093 to decide to re-read the file).
2094
2095 2020-06-18 Pedro Alves <palves@redhat.com>
2096
2097 PR gdb/25412
2098 * gdbthread.h (delete_thread, delete_thread_silent)
2099 (find_thread_ptid): Update comments.
2100 * thread.c (current_thread_): New global.
2101 (is_current_thread): Move higher, and reimplement.
2102 (inferior_thread): Reimplement.
2103 (set_thread_exited): Use bool. Add assertions.
2104 (add_thread_silent): Simplify thread-reuse handling by always
2105 calling delete_thread.
2106 (delete_thread): Remove intro comment.
2107 (find_thread_ptid): Skip exited threads.
2108 (switch_to_thread_no_regs): Write to current_thread_.
2109 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2110 INFERIOR_PTID. Clear current_thread_.
2111
2112 2020-06-18 Pedro Alves <palves@redhat.com>
2113
2114 * aix-thread.c (pd_update): Use switch_to_thread.
2115
2116 2020-06-18 Pedro Alves <palves@redhat.com>
2117
2118 * ravenscar-thread.c (ravenscar_thread_target): Update.
2119 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2120 (ravenscar_thread_target::add_active_thread): ... this. Don't
2121 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2122 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2123
2124 2020-06-18 Pedro Alves <palves@redhat.com>
2125
2126 * nat/windows-nat.c (current_windows_thread): Remove.
2127 * nat/windows-nat.h (current_windows_thread): Remove.
2128 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2129 Adjust.
2130 (display_selectors): Adjust to fetch the current
2131 windows_thread_info based on inferior_ptid.
2132 (fake_create_process): No longer write to current_windows_thread.
2133 (windows_nat_target::get_windows_debug_event):
2134 Don't set inferior_ptid or current_windows_thread.
2135 (windows_nat_target::wait): Adjust to not rely on
2136 current_windows_thread.
2137 (do_initial_windows_stuff): Now a method of windows_nat_target.
2138 Switch to the last_ptid thread.
2139 (windows_nat_target::attach): Adjust.
2140 (windows_nat_target::detach): Use switch_to_no_thread instead of
2141 writing to inferior_ptid directly.
2142 (windows_nat_target::create_inferior): Adjust.
2143
2144 2020-06-18 Pedro Alves <palves@redhat.com>
2145
2146 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2147
2148 2020-06-18 Pedro Alves <palves@redhat.com>
2149
2150 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2151 after creating it, instead of writing to inferior_ptid. Don't
2152 write to inferior_ptid.
2153
2154 2020-06-18 Pedro Alves <palves@redhat.com>
2155
2156 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2157
2158 2020-06-18 Pedro Alves <palves@redhat.com>
2159
2160 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2161 it, instead of writing to inferior_ptid.
2162
2163 2020-06-18 Pedro Alves <palves@redhat.com>
2164
2165 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2166 to inferior_ptid.
2167
2168 2020-06-18 Pedro Alves <palves@redhat.com>
2169
2170 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2171 instead of writing to inferior_ptid directly.
2172
2173 2020-06-18 Pedro Alves <palves@redhat.com>
2174
2175 * corelow.c (core_target::close): Use switch_to_no_thread instead
2176 of writing to inferior_ptid directly.
2177 (add_to_thread_list, core_target_open): Use switch_to_thread
2178 instead of writing to inferior_ptid directly.
2179
2180 2020-06-18 Pedro Alves <palves@redhat.com>
2181
2182 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2183 inferior_ptid.
2184 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2185 inferior_ptid.
2186 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2187 inferior_ptid directly.
2188 (darwin_nat_target::init_thread_list): Switch to thread, instead
2189 of writing to inferior_ptid.
2190 (darwin_nat_target::attach): Don't write to inferior_ptid.
2191 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2192
2193 2020-06-18 Pedro Alves <palves@redhat.com>
2194
2195 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2196 thread.
2197 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2198 Instead use switch_to_thread.
2199 (gnu_nat_target::detach): Use switch_to_no_thread
2200 instead of writing to inferior_ptid directly. Used passed-in
2201 inferior instead of looking up the inferior by pid.
2202
2203 2020-06-18 Pedro Alves <palves@redhat.com>
2204
2205 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2206 inferior_ptid.
2207
2208 2020-06-18 Pedro Alves <palves@redhat.com>
2209
2210 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2211 inferior_ptid.
2212 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2213 thread.
2214 (nto_procfs_target::detach): Avoid referencing
2215 inferior_ptid. Use switch_to_no_thread instead of writing to
2216 inferior_ptid directly.
2217 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2218 instead of writing to inferior_ptid directly.
2219 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2220 to thread.
2221
2222 2020-06-18 Pedro Alves <palves@redhat.com>
2223
2224 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2225 after creating it, instead of writing to inferior_ptid.
2226 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2227 to inferior_ptid directly.
2228 (gdbsim_target::wait): Don't write to inferior_ptid.
2229
2230 2020-06-18 Pedro Alves <palves@redhat.com>
2231
2232 * remote.c (remote_target::remote_notice_new_inferior): Use
2233 switch_to_thread instead of writing to inferior_ptid directly.
2234 (remote_target::add_current_inferior_and_thread): Use
2235 switch_to_no_thread instead of writing to inferior_ptid directly.
2236 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2237 and switch_to_thread instead of using set_current_inferior or
2238 writing to inferior_ptid directly.
2239
2240 2020-06-18 Pedro Alves <palves@redhat.com>
2241
2242 * tracectf.c (ctf_target_open): Switch to added thread instead of
2243 writing to inferior_ptid directly.
2244 (ctf_target::close): Use switch_to_no_thread instead of writing to
2245 inferior_ptid directly.
2246
2247 2020-06-18 Pedro Alves <palves@redhat.com>
2248
2249 * tracefile-tfile.c (tfile_target_open): Don't write to
2250 inferior_ptid directly, instead switch to added thread.
2251 (tfile_target::close): Use switch_to_no_thread instead of writing
2252 to inferior_ptid directly.
2253
2254 2020-06-18 Pedro Alves <palves@redhat.com>
2255
2256 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2257 (procfs_target::detach): Use switch_to_no_thread
2258 instead of writing to inferior_ptid directly.
2259 (do_attach): Change return type to void. Switch to the added
2260 thread.
2261 (procfs_target::create_inferior): Switch to the added thread.
2262 (procfs_do_thread_registers): Don't write to inferior_ptid.
2263
2264 2020-06-18 Pedro Alves <palves@redhat.com>
2265
2266 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2267 of writing to inferior_ptid.
2268 (scoped_restore_exited_inferior): Delete.
2269 (handle_vfork_child_exec_or_exit): Simplify using
2270 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2271 instead of writing to inferior_ptid.
2272 (THREAD_STOPPED_BY): Delete.
2273 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2274 (thread_stopped_by_hw_breakpoint): Delete.
2275 (save_waitstatus): Use
2276 scoped_restore_current_thread+switch_to_thread, and call
2277 target_stopped_by_watchpoint instead of
2278 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2279 instead of thread_stopped_by_sw_breakpoint, and
2280 target_stopped_by_hw_breakpoint instead of
2281 thread_stopped_by_hw_breakpoint.
2282 (handle_inferior_event)
2283 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2284 inferior_ptid directly, nor
2285 set_current_inferior/set_current_program_space. Use
2286 switch_to_thread / switch_to_inferior_no_thread instead.
2287
2288 2020-06-18 Pedro Alves <palves@redhat.com>
2289
2290 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2291 instead of writing to inferior_ptid.
2292
2293 2020-06-18 Pedro Alves <palves@redhat.com>
2294
2295 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2296 added thread.
2297 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2298 to the added thread.
2299 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2300 instead of writing to inferior_ptid.
2301
2302 2020-06-18 Pedro Alves <palves@redhat.com>
2303
2304 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2305 (register_to_value_test): Mock a program_space too. Heap-allocate
2306 the address space. Don't write to inferior_ptid. Use
2307 switch_to_thread instead.
2308
2309 2020-06-18 Pedro Alves <palves@redhat.com>
2310
2311 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2312 Delete.
2313 (find_signalled_thread()): New, factored out from
2314 linux_make_corefile_notes and adjusted to handle exited threads.
2315 (linux_make_corefile_notes): Adjust to use the new
2316 find_signalled_thread.
2317
2318 2020-06-18 Pedro Alves <palves@redhat.com>
2319
2320 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2321 of saving/restoring inferior_ptid.
2322
2323 2020-06-17 Tom Tromey <tom@tromey.com>
2324
2325 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2326 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2327 declare.
2328 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2329
2330 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2331
2332 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2333 of partial symtabs.
2334
2335 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2336
2337 * regformats/reg-arm.dat: Remove.
2338 * regformats/reg-bfin.dat: Remove.
2339 * regformats/reg-cris.dat: Remove.
2340 * regformats/reg-crisv32.dat: Remove.
2341 * regformats/reg-m32r.dat: Remove.
2342 * regformats/reg-tilegx.dat: Remove.
2343 * regformats/reg-tilegx32.dat: Remove.
2344
2345 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2346
2347 * features/Makefile (WHICH): Remove arm files.
2348 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2349 * regformats/arm/arm-with-neon.dat: Remove.
2350 * regformats/arm/arm-with-vfpv2.dat: Remove.
2351 * regformats/arm/arm-with-vfpv3.dat: Remove.
2352
2353 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2354
2355 * features/Makefile (XMLTOC): Remove rx.xml.
2356
2357 2020-06-17 Pedro Alves <palves@redhat.com>
2358
2359 * gdbthread.h (thread_control_state) <trap_expected> Update
2360 comments.
2361
2362 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2363
2364 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2365 ada_language::lookup_symbol_nonlocal.
2366 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2367 (ada_language::lookup_symbol_nonlocal): New member function,
2368 implementation from ada_lookup_symbol_nonlocal.
2369 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2370 initializer.
2371 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2372 initializer.
2373 (cplus_language::lookup_symbol_nonlocal): New member function.
2374 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2375 (minimal_language_data) Likewise.
2376 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2377 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2378 initializer.
2379 (d_language::lookup_symbol_nonlocal): New member function.
2380 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2381 initializer.
2382 (f_language::lookup_symbol_nonlocal): New member function.
2383 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2384 initializer.
2385 * language.c (unknown_language_data): Likewise.
2386 (auto_language_data): Likewise.
2387 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2388 field.
2389 (language_defn::lookup_symbol_nonlocal): New member function.
2390 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2391 initializer.
2392 * objc-lang.c (objc_language_data): Likewise.
2393 * opencl-lang.c (opencl_language_data): Likewise.
2394 * p-lang.c (pascal_language_data): Likewise.
2395 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2396 rust_language::lookup_symbol_nonlocal.
2397 (rust_language_data): Delete la_lookup_symbol_nonlocal
2398 initializer.
2399 (rust_language::lookup_symbol_nonlocal): New member function,
2400 implementation from rust_lookup_symbol_nonlocal.
2401 * symtab.c (lookup_symbol_aux): Update call to
2402 lookup_symbol_nonlocal.
2403 (basic_lookup_symbol_nonlocal): Rename to...
2404 (language_defn::lookup_symbol_nonlocal): ...this, and update
2405 header comment. Remove language_defn parameter, and replace with
2406 uses of `this'.
2407 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2408
2409 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2410
2411 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2412 initializer.
2413 (ada_language::value_print_inner): New member function.
2414 * c-lang.c (c_language_data): Delete la_value_print_inner
2415 initializer.
2416 (cplus_language_data): Likewise.
2417 (asm_language_data): Likewise.
2418 (minimal_language_data): Likewise.
2419 * d-lang.c (d_language_data): Likewise.
2420 (d_language::value_print_inner): New member function.
2421 * f-lang.c (f_language_data): Delete la_value_print_inner
2422 initializer.
2423 (f_language::value_print_inner): New member function.
2424 * f-lang.h (f_value_print_innner): Rename to...
2425 (f_value_print_inner): ...this (note spelling of 'inner').
2426 * f-valprint.c (f_value_print_innner): Rename to...
2427 (f_value_print_inner): ...this (note spelling of 'inner').
2428 * go-lang.c (go_language_data): Delete la_value_print_inner
2429 initializer.
2430 (go_language::value_print_inner): New member function.
2431 * language.c (language_defn::value_print_inner): Define new member
2432 function.
2433 (unk_lang_value_print_inner): Delete.
2434 (unknown_language_data): Delete la_value_print_inner initializer.
2435 (unknown_language::value_print_inner): New member function.
2436 (auto_language_data): Delete la_value_print_inner initializer.
2437 (auto_language::value_print_inner): New member function.
2438 * language.h (language_data): Delete la_value_print_inner field.
2439 (language_defn::value_print_inner): Delcare new member function.
2440 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2441 initializer.
2442 (m2_language::value_print_inner): New member function.
2443 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2444 initializer.
2445 * opencl-lang.c (opencl_language_data): Likewise.
2446 * p-lang.c (pascal_language_data): Likewise.
2447 (pascal_language::value_print_inner): New member function.
2448 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2449 initializer.
2450 (rust_language::value_print_inner): New member function.
2451 * valprint.c (do_val_print): Update call to value_print_inner.
2452
2453 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2454
2455 * ada-lang.c (ada_language_data): Delete la_value_print
2456 initializer.
2457 (ada_language::value_print): New member function.
2458 * c-lang.c (c_language_data): Delete la_value_print initializer.
2459 (cplus_language_data): Likewise.
2460 (asm_language_data): Likewise.
2461 (minimal_language_data): Likewise.
2462 * d-lang.c (d_language_data): Likewise.
2463 * f-lang.c (f_language_data): Likewise.
2464 * go-lang.c (go_language_data): Likewise.
2465 * language.c (unk_lang_value_print): Delete.
2466 (language_defn::value_print): Define new member function.
2467 (unknown_language_data): Delete la_value_print initializer.
2468 (unknown_language::value_print): New member function.
2469 (auto_language_data): Delete la_value_print initializer.
2470 (auto_language::value_print): New member function.
2471 * language.h (language_data): Delete la_value_print field.
2472 (language_defn::value_print): Declare new member function.
2473 (LA_VALUE_PRINT): Update call to value_print.
2474 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2475 * objc-lang.c (objc_language_data): Likewise.
2476 * opencl-lang.c (opencl_language_data): Likewise.
2477 * p-lang.c (pascal_language_data): Likewise.
2478 (pascal_language::value_print): New member function.
2479 * rust-lang.c (rust_language_data): Delete la_value_print
2480 initializer.
2481
2482 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2483
2484 * ada-lang.c (ada_watch_location_expression): Rename to
2485 ada_language::watch_location_expression.
2486 (ada_language_data): Delete la_watch_location_expression
2487 initializer.
2488 (ada_language::watch_location_expression): New member function,
2489 implementation from ada_watch_location_expression.
2490 * breakpoint.c (watch_command_1): Update call to
2491 watch_location_expression.
2492 * c-lang.c (c_watch_location_expression): Rename to
2493 language_defn::watch_location_expression.
2494 (c_language_data): Delete la_watch_location_expression
2495 initializer.
2496 (cplus_language_data): Likewise.
2497 (asm_language_data): Likewise.
2498 (minimal_language_data): Likewise.
2499 * c-lang.h (c_watch_location_expression): Delete declaration.
2500 * d-lang.c (d_language_data): Delete la_watch_location_expression
2501 initializer.
2502 * f-lang.c (f_language_data): Likewise.
2503 * go-lang.c (go_language_data): Likewise.
2504 * language.c (language_defn::watch_location_expression): Member
2505 function implementation from c_watch_location_expression.
2506 (unknown_language_data): Delete la_watch_location_expression
2507 initializer.
2508 (auto_language_data): Likewise.
2509 * language.h (language_data): Delete la_watch_location_expression
2510 field.
2511 (language_defn::watch_location_expression): Declare new member
2512 function.
2513 * m2-lang.c (m2_language_data): Delete
2514 la_watch_location_expression initializer.
2515 * objc-lang.c (objc_language_data): Likewise.
2516 * opencl-lang.c (opencl_language_data): Likewise.
2517 * p-lang.c (pascal_language_data): Likewise.
2518 * rust-lang.c (rust_watch_location_expression): Rename to
2519 rust_language::watch_location_expression.
2520 (rust_language_data): Delete la_watch_location_expression
2521 initializer.
2522 (rust_language::watch_location_expression): New member function,
2523 implementation from rust_watch_location_expression.
2524
2525 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2526
2527 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2528 ada_language::collect_symbol_completion_matches.
2529 (ada_language_data): Delete la_collect_symbol_completion_matches
2530 initializer.
2531 (ada_language::collect_symbol_completion_matches): New member
2532 function, implementation from
2533 ada_collect_symbol_completion_matches.
2534 * c-lang.c (c_language_data): Delete
2535 la_collect_symbol_completion_matches initializer.
2536 (cplus_language_data): Likewise.
2537 (asm_language_data): Likewise.
2538 (minimal_language_data): Likewise.
2539 * d-lang.c (d_language_data): Likewise.
2540 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2541 f_language::collect_symbol_completion_matches.
2542 (f_language_data): Delete la_collect_symbol_completion_matches
2543 initializer.
2544 (f_language::collect_symbol_completion_matches) New member
2545 function, implementation from f_collect_symbol_completion_matches.
2546 * go-lang.c (go_language_data): Delete
2547 la_collect_symbol_completion_matches initializer.
2548 * language.c (unknown_language_data): Likewise.
2549 (auto_language_data): Likewise.
2550 * language.h (language_data): Delete
2551 la_collect_symbol_completion_matches field.
2552 (language_defn::collect_symbol_completion_matches): New member
2553 function.
2554 * m2-lang.c (m2_language_data): Delete
2555 la_collect_symbol_completion_matches initializer.
2556 * objc-lang.c (objc_language_data): Likewise.
2557 * opencl-lang.c (opencl_language_data): Likewise.
2558 * p-lang.c (pascal_language_data): Likewise.
2559 * rust-lang.c (rust_language_data): Likewise.
2560 * symtab.c (default_collect_symbol_completion_matches): Delete.
2561 (collect_symbol_completion_matches): Update call to
2562 collect_symbol_completion_matches.
2563 (collect_symbol_completion_matches_type): Likewise.
2564 * symtab.h (default_collect_symbol_completion_matches): Delete
2565 declaration.
2566
2567 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2568
2569 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2570 (ada_language_data): Delete la_word_break_characters initializer.
2571 (ada_language::word_break_characters): New member function.
2572 * c-lang.c (c_language_data): Delete la_word_break_characters
2573 initializer.
2574 (cplus_language_data): Likewise.
2575 (asm_language_data): Likewise.
2576 (minimal_language_data): Likewise.
2577 * completer.c: Update global comment.
2578 (advance_to_expression_complete_word_point): Update call to
2579 word_break_characters.
2580 (complete_files_symbols): Likewise.
2581 (complete_line_internal_1): Likewise.
2582 (default_completer_handle_brkchars): Likewise.
2583 (skip_quoted_chars): Likewise.
2584 * d-lang.c (d_language_data): Delete la_word_break_characters
2585 initializer.
2586 * f-lang.c (f_word_break_characters): Delete.
2587 (f_language_data): Delete la_word_break_characters initializer.
2588 (f_language::word_break_characters): New member function.
2589 * go-lang.c (go_language_data): Delete la_word_break_characters
2590 initializer.
2591 * language.c (unknown_language_data): Likewise.
2592 (auto_language_data): Likewise.
2593 * language.h (default_word_break_characters): Move declaration to
2594 earlier in the file.
2595 (language_data): Delete la_word_break_characters field.
2596 (language_defn::word_break_characters): New member function.
2597 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2598 initializer.
2599 * objc-lang.c (objc_language_data): Likewise.
2600 * opencl-lang.c (opencl_language_data): Likewise.
2601 * p-lang.c (pascal_language_data): Likewise.
2602 * rust-lang.c (rust_language_data): Likewise.
2603
2604 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2605
2606 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2607 (ada_language_data): Delete la_get_symbol_name_matcher
2608 initializer.
2609 (language_defn::get_symbol_name_matcher_inner): New member
2610 function.
2611 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2612 initializer.
2613 (cplus_language_data): Likewise.
2614 (cplus_language::get_symbol_name_matcher_inner): New member
2615 function.
2616 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2617 (minimal_language_data): Likewise.
2618 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2619 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2620 initializer.
2621 * dictionary.c (iter_match_first_hashed): Update call to
2622 get_symbol_name_matcher.
2623 (iter_match_next_hashed): Likewise.
2624 (iter_match_next_linear): Likewise.
2625 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2626 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2627 initializer.
2628 (f_language::get_symbol_name_matcher_inner): New member function.
2629 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2630 initializer.
2631 * language.c (default_symbol_name_matcher): Update header comment,
2632 make static.
2633 (language_defn::get_symbol_name_matcher): New definition.
2634 (language_defn::get_symbol_name_matcher_inner): Likewise.
2635 (get_symbol_name_matcher): Delete.
2636 (unknown_language_data): Delete la_get_symbol_name_matcher
2637 initializer.
2638 (auto_language_data): Likewise.
2639 * language.h (language_data): Delete la_get_symbol_name_matcher
2640 field.
2641 (language_defn::get_symbol_name_matcher): New member function.
2642 (language_defn::get_symbol_name_matcher_inner): Likewise.
2643 (default_symbol_name_matcher): Delete declaration.
2644 * linespec.c (find_methods): Update call to
2645 get_symbol_name_matcher.
2646 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2647 initializer.
2648 * minsyms.c (lookup_minimal_symbol): Update call to
2649 get_symbol_name_matcher.
2650 (iterate_over_minimal_symbols): Likewise.
2651 * objc-lang.c (objc_language_data): Delete
2652 la_get_symbol_name_matcher initializer.
2653 * opencl-lang.c (opencl_language_data): Likewise.
2654 * p-lang.c (pascal_language_data): Likewise.
2655 * psymtab.c (psymbol_name_matches): Update call to
2656 get_symbol_name_matcher.
2657 * rust-lang.c (rust_language_data): Delete
2658 la_get_symbol_name_matcher initializer.
2659 * symtab.c (symbol_matches_search_name): Update call to
2660 get_symbol_name_matcher.
2661 (compare_symbol_name): Likewise.
2662
2663 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2664
2665 * ada-lang.c (ada_language_data): Delete la_compute_program
2666 initializer.
2667 * c-lang.c (c_language_data): Likewise.
2668 (c_language::compute_program): New member function.
2669 (cplus_language_data): Delete la_compute_program initializer.
2670 (cplus_language::compute_program): New member function.
2671 (asm_language_data): Delete la_compute_program initializer.
2672 (minimal_language_data): Likewise.
2673 * c-lang.h (c_compute_program): Update comment.
2674 (cplus_compute_program): Likewise.
2675 * compile/compile-c-support.c (c_compute_program): Likewise.
2676 (cplus_compute_program): Likewise.
2677 * compile/compile.c (compile_to_object): Update call to
2678 la_compute_program.
2679 * d-lang.c (d_language_data): Delete la_compute_program
2680 initializer.
2681 * f-lang.c (f_language_data): Likewise.
2682 * go-lang.c (go_language_data): Likewise.
2683 * language.c (unknown_language_data): Likewise.
2684 (auto_language_data): Likewise.
2685 * language.h (language_data): Delete la_compute_program field.
2686 (language_defn::compute_program): New member function.
2687 * m2-lang.c (m2_language_data): Delete la_compute_program
2688 initializer.
2689 * objc-lang.c (objc_language_data): Likewise.
2690 * opencl-lang.c (opencl_language_data): Likewise.
2691 * p-lang.c (pascal_language_data): Likewise.
2692 * rust-lang.c (rust_language_data): Likewise.
2693
2694 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2695
2696 * ada-lang.c (ada_language_data) Delete
2697 la_class_name_from_physname initializer.
2698 * c-lang.c (c_language_data): Likewise.
2699 (cplus_language_data): Likewise.
2700 (cplus_language::class_name_from_physname): New member function.
2701 (asm_language_data): Delete la_class_name_from_physname
2702 initializer.
2703 (minimal_language_data): Likewise.
2704 * d-lang.c (d_language_data): Likewise.
2705 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2706 method on language_defn class.
2707 (guess_full_die_structure_name): Likewise.
2708 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2709 initializer.
2710 * go-lang.c (go_language_data): Likewise.
2711 * language.c (language_class_name_from_physname): Delete.
2712 (unk_lang_class_name): Delete.
2713 (unknown_language_data): Delete la_class_name_from_physname
2714 initializer.
2715 (auto_language_data): Likewise.
2716 * language.h (language_data): Delete la_class_name_from_physname
2717 field.
2718 (language_defn::class_name_from_physname): New function.
2719 (language_class_name_from_physname): Delete declaration.
2720 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2721 initializer.
2722 * objc-lang.c (objc_language_data): Likewise.
2723 * opencl-lang.c (opencl_language_data): Likewise.
2724 * p-lang.c (pascal_language_data): Likewise.
2725 * rust-lang.c (rust_language_data): Likewise.
2726
2727 2020-06-16 Tom Tromey <tom@tromey.com>
2728
2729 * tui/tui-data.h (STATUS_NAME): New macro.
2730 * tui/tui-layout.c (tui_remove_some_windows)
2731 (initialize_known_windows, tui_register_window)
2732 (tui_layout_split::remove_windows, initialize_layouts)
2733 (tui_new_layout_command): Don't use hard-coded window names.
2734
2735 2020-06-16 Tom Tromey <tom@tromey.com>
2736
2737 PR tui/25348:
2738 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2739 tui_initialize_readline. Only run once. Call rl_initialize.
2740 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2741 tui_initialize_readline.
2742 * tui/tui-io.c (tui_setup_io): Call
2743 tui_ensure_readline_initialized.
2744 * tui/tui-interp.c (tui_interp::init): Update.
2745
2746 2020-06-16 Tom Tromey <tom@tromey.com>
2747
2748 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2749 Also preserve the status window.
2750
2751 2020-06-16 Tom Tromey <tom@tromey.com>
2752
2753 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2754 where m_window==nullptr.
2755
2756 2020-06-15 Tom Tromey <tromey@adacore.com>
2757
2758 * windows-nat.c (windows_nat::handle_output_debug_string):
2759 Update.
2760 (windows_nat::handle_ms_vc_exception): Update.
2761 * target.h (target_read_string): Change API.
2762 * target.c (target_read_string): Change API.
2763 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2764 Update.
2765 * solib-frv.c (frv_current_sos): Update.
2766 * solib-dsbt.c (dsbt_current_sos): Update.
2767 * solib-darwin.c (darwin_current_sos): Update.
2768 * linux-thread-db.c (inferior_has_bug): Update.
2769 * expprint.c (print_subexp_standard): Update.
2770 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2771 (ada_exception_message_1): Update.
2772
2773 2020-06-15 Tom Tromey <tromey@adacore.com>
2774
2775 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2776
2777 2020-06-15 Tom Tromey <tromey@adacore.com>
2778
2779 * valprint.c (read_string): Update comment.
2780 * target.c (MIN): Remove.
2781 (target_read_string): Rewrite.
2782
2783 2020-06-15 Tom Tromey <tromey@adacore.com>
2784
2785 * corefile.c (read_memory_string): Remove.
2786 * ada-valprint.c (ada_value_print_ptr): Update.
2787 * ada-lang.h (ada_tag_name): Change return type.
2788 * ada-lang.c (type_from_tag): Update.
2789 (ada_tag_name_from_tsd): Change return type. Use
2790 target_read_string.
2791 (ada_tag_name): Likewise.
2792 * gdbcore.h (read_memory_string): Don't declare.
2793
2794 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2795
2796 * symtab.c (rbreak_command): Ignore Windows drive colon.
2797
2798 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2799
2800 * NEWS: Mention removed GDBserver host support.
2801
2802 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2803
2804 * features/riscv/rebuild-csr-xml.sh: Updated.
2805
2806 2020-06-11 Tom Tromey <tom@tromey.com>
2807
2808 PR gdb/18318:
2809 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2810
2811 2020-06-09 Jonny Grant <jg@jguk.org>
2812 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2813
2814 * main.c (captured_main_1): Don't print new line after help.
2815 (print_gdb_help): add mailing list and IRC channel information
2816 to --help. Add new lines between items in the footer. Remove
2817 quotes around bug url.
2818
2819 2020-06-11 Keith Seitz <keiths@redhat.com>
2820
2821 PR gdb/21356
2822 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2823 Resolve typedefs for type length calculations.
2824
2825 2020-06-10 Tom de Vries <tdevries@suse.de>
2826
2827 PR ada/24713
2828 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2829 (write_psymbols): Enable .gdb_index for ada.
2830 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2831 ada.
2832
2833 2020-06-10 Tom de Vries <tdevries@suse.de>
2834
2835 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2836 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2837 namei" instead of "const char *name" argument.
2838 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2839 dw2_symtab_iter_init.
2840
2841 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2842
2843 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2844 to use type::field and field::type instead.
2845
2846 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2847
2848 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2849 to use field::type instead.
2850
2851 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2852
2853 * gdbtypes.h (struct field) <type, set_type>: New methods.
2854 Rename `type` field to...
2855 <m_type>: ... this. Change references throughout to use type or
2856 set_type methods.
2857 (FIELD_TYPE): Use field::type. Change call sites that modify
2858 the field's type to use field::set_type instead.
2859
2860 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2861
2862 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2863 to use type::index_type instead.
2864
2865 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2866
2867 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2868 methods.
2869 (TYPE_INDEX_TYPE): Use type::index_type.
2870 * gdbtypes.c (create_array_type_with_stride): Likewise.
2871
2872 2020-06-07 Tom Tromey <tom@tromey.com>
2873
2874 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2875 parameter.
2876 (generic_value_print): Update.
2877
2878 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2879
2880 Revert commit 982a38f60b0.
2881 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2882
2883 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2884
2885 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2886 avoid use after free.
2887
2888 2020-06-05 Tom de Vries <tdevries@suse.de>
2889
2890 * NEWS: Fix typos.
2891
2892 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2893
2894 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2895 the per_bfd object.
2896 (dwarf2_read_debug_names): Likewise.
2897 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2898 object when re-using a per_bfd object with an index.
2899
2900 2020-06-03 Tom de Vries <tdevries@suse.de>
2901
2902 PR symtab/26046
2903 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2904 children for C++.
2905 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2906 DW_TAG_subprogram.
2907
2908 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2909
2910 * ada-lang.c (ada_language_data): Delete skip_trampoline
2911 initializer.
2912 * c-lang.c (c_language_data): Likewise.
2913 (cplus_language_data): Likewise.
2914 (cplus_language::skip_trampoline): New member function.
2915 (asm_language_data): Delete skip_trampoline initializer.
2916 (minimal_language_data): Likewise.
2917 * d-lang.c (d_language_data): Likewise.
2918 * f-lang.c (f_language_data): Likewise.
2919 * go-lang.c (go_language_data): Likewise.
2920 * language.c (unk_lang_trampoline): Delete function.
2921 (skip_language_trampoline): Update.
2922 (unknown_language_data): Delete skip_trampoline initializer.
2923 (auto_language_data): Likewise.
2924 * language.h (language_data): Delete skip_trampoline field.
2925 (language_defn::skip_trampoline): New function.
2926 * m2-lang.c (m2_language_data): Delete skip_trampoline
2927 initializer.
2928 * objc-lang.c (objc_skip_trampoline): Delete function, move
2929 implementation to objc_language::skip_trampoline.
2930 (objc_language_data): Delete skip_trampoline initializer.
2931 (objc_language::skip_trampoline): New member function with
2932 implementation from objc_skip_trampoline.
2933 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2934 initializer.
2935 * p-lang.c (pascal_language_data): Likewise.
2936 * rust-lang.c (rust_language_data): Likewise.
2937
2938 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2939
2940 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2941 (ada_language::demangle): New member function.
2942 * c-lang.c (c_language_data): Delete la_demangle initializer.
2943 (cplus_language_data): Delete la_demangle initializer.
2944 (cplus_language::demangle): New member function.
2945 (asm_language_data): Delete la_demangle initializer.
2946 (minimal_language_data): Delete la_demangle initializer.
2947 * d-lang.c (d_language_data): Delete la_demangle initializer.
2948 (d_language::demangle): New member function.
2949 * f-lang.c (f_language_data): Delete la_demangle initializer.
2950 (f_language::demangle): New member function.
2951 * go-lang.c (go_language_data): Delete la_demangle initializer.
2952 (go_language::demangle): New member function.
2953 * language.c (language_demangle): Update.
2954 (unk_lang_demangle): Delete.
2955 (unknown_language_data): Delete la_demangle initializer.
2956 (unknown_language::demangle): New member function.
2957 (auto_language_data): Delete la_demangle initializer.
2958 (auto_language::demangle): New member function.
2959 * language.h (language_data): Delete la_demangle field.
2960 (language_defn::demangle): New function.
2961 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2962 * objc-lang.c (objc_language_data): Delete la_demangle
2963 initializer.
2964 (objc_language::demangle): New member function.
2965 * opencl-lang.c (opencl_language_data): Delete la_demangle
2966 initializer.
2967 * p-lang.c (pascal_language_data): Likewise.
2968 * rust-lang.c (rust_language_data): Likewise.
2969 (rust_language::demangle): New member function.
2970
2971 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2972
2973 * ada-lang.c (ada_language_data): Delete la_print_type
2974 initializer.
2975 (ada_language::print_type): New member function.
2976 * c-lang.c (c_language_data): Delete la_print_type initializer.
2977 (c_language::print_type): New member function.
2978 (cplus_language_data): Delete la_print_type initializer.
2979 (cplus_language::print_type): New member function.
2980 (asm_language_data): Delete la_print_type initializer.
2981 (asm_language::print_type): New member function.
2982 (minimal_language_data): Delete la_print_type initializer.
2983 (minimal_language::print_type): New member function.
2984 * d-lang.c (d_language_data): Delete la_print_type initializer.
2985 (d_language::print_type): New member function.
2986 * f-lang.c (f_language_data): Delete la_print_type initializer.
2987 (f_language::print_type): New member function.
2988 * go-lang.c (go_language_data): Delete la_print_type initializer.
2989 (go_language::print_type): New member function.
2990 * language.c (unk_lang_print_type): Delete.
2991 (unknown_language_data): Delete la_print_type initializer.
2992 (unknown_language::print_type): New member function.
2993 (auto_language_data): Delete la_print_type initializer.
2994 (auto_language::print_type): New member function.
2995 * language.h (language_data): Delete la_print_type field.
2996 (language_defn::print_type): New function.
2997 (LA_PRINT_TYPE): Update.
2998 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2999 (m2_language::print_type): New member function.
3000 * objc-lang.c (objc_language_data): Delete la_print_type
3001 initializer.
3002 (objc_language::print_type): New member function.
3003 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3004 to opencl_language::print_type.
3005 (opencl_language_data): Delete la_print_type initializer.
3006 (opencl_language::print_type): New member function, implementation
3007 from opencl_print_type.
3008 * p-lang.c (pascal_language_data): Delete la_print_type
3009 initializer.
3010 (pascal_language::print_type): New member function.
3011 * rust-lang.c (rust_print_type): Delete, implementation moved to
3012 rust_language::print_type.
3013 (rust_language_data): Delete la_print_type initializer.
3014 (rust_language::print_type): New member function, implementation
3015 from rust_print_type.
3016
3017 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3018
3019 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3020 implementation moves to...
3021 (ada_language::sniff_from_mangled_name): ...here. Update return
3022 type.
3023 (ada_language_data): Delete la_sniff_from_mangled_name
3024 initializer.
3025 * c-lang.c (c_language_data): Likewise.
3026 (cplus_language_data): Likewise.
3027 (cplus_language::sniff_from_mangled_name): New member function,
3028 implementation taken from gdb_sniff_from_mangled_name.
3029 (asm_language_data): Delete la_sniff_from_mangled_name
3030 initializer.
3031 (minimal_language_data): Likewise.
3032 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3033 implementation moves to cplus_language::sniff_from_mangled_name.
3034 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3035 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3036 moves to...
3037 (d_language::sniff_from_mangled_name): ...here.
3038 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3039 * f-lang.c (f_language_data): Likewise.
3040 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3041 moves to...
3042 (go_language::sniff_from_mangled_name): ...here.
3043 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3044 * language.c (language_sniff_from_mangled_name): Delete.
3045 (unknown_language_data): Delete la_sniff_from_mangled_name
3046 initializer.
3047 (auto_language_data): Likewise.
3048 * language.h (language_data): Delete la_sniff_from_mangled_name
3049 field.
3050 (language_defn::sniff_from_mangled_name): New function.
3051 (language_sniff_from_mangled_name): Delete declaration.
3052 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3053 field.
3054 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3055 implementation moves to...
3056 (objc_language::sniff_from_mangled_name): ...here.
3057 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3058 * opencl-lang.c (opencl_language_data): Likewise.
3059 * p-lang.c (pascal_language_data): Likewise.
3060 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3061 implementation moves to...
3062 (rust_language::sniff_from_mangled_name): ...here.
3063 (rust_language_data): Delete la_sniff_from_mangled_name
3064 initializer.
3065 * symtab.c (symbol_find_demangled_name): Call
3066 sniff_from_mangled_name member function.
3067
3068 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3069
3070 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3071 initializer.
3072 * c-lang.c (c_language_data): Likewise.
3073 (cplus_language_data): Likewise.
3074 (cplus_language::search_name_hash): New member function.
3075 (asm_language_data): Delete la_search_name_hash initializer.
3076 (minimal_language_data): Likewise.
3077 * d-lang.c (d_language_data): Likewise.
3078 * dictionary.c (default_search_name_hash): Rename to...
3079 (language_defn::search_name_hash): ...this.
3080 * f-lang.c (f_language_data): Likewise.
3081 (f_language::search_name_hash): New member function.
3082 * go-lang.c (go_language_data): Delete la_search_name_hash
3083 initializer.
3084 * language.c (unknown_language_data): Likewise.
3085 (auto_language_data): Likewise.
3086 * language.h (struct language_data): Delete la_search_name_hash
3087 field.
3088 (language_defn::search_name_hash): Declare new member function.
3089 (default_search_name_hash): Delete declaration.
3090 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3091 initializer.
3092 * objc-lang.c (objc_language_data): Likewise.
3093 * opencl-lang.c (opencl_language_data): Likewise.
3094 * p-lang.c (pascal_language_data): Likewise.
3095 * rust-lang.c (rust_language_data): Likewise.
3096 * symtab.c (search_name_hash): Update call.
3097
3098 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3099
3100 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3101 initializer.
3102 * c-lang.c (class compile_instance): Declare.
3103 (c_language_data): Delete la_get_compile_instance initializer.
3104 (c_language::get_compile_instance): New member function.
3105 (cplus_language_data): Delete la_get_compile_instance initializer.
3106 (cplus_language::get_compile_instance): New member function.
3107 (asm_language_data): Delete la_get_compile_instance initializer.
3108 (minimal_language_data): Likewise.
3109 * c-lang.h (c_get_compile_context): Update comment.
3110 (cplus_get_compile_context): Update comment.
3111 * compile/compile.c (compile_to_object): Update calls, don't rely
3112 on function pointer being NULL.
3113 * d-lang.c (d_language_data): Delete la_get_compile_instance
3114 initializer.
3115 * f-lang.c (f_language_data): Likewise.
3116 * go-lang.c (go_language_data): Likewise.
3117 * language.c (unknown_language_data): Likewise.
3118 (auto_language_data): Likewise.
3119 * language.h (language_data): Delete la_get_compile_instance field.
3120 (language_defn::get_compile_instance): New member function.
3121 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3122 initializer.
3123 * objc-lang.c (objc_language_data): Likewise.
3124 * opencl-lang.c (opencl_language_data): Likewise.
3125 * p-lang.c (pascal_language_data): Likewise.
3126 * rust-lang.c (rust_language_data): Likewise.
3127
3128 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3129
3130 * ada-lang.c (ada_add_all_symbols): Update comment.
3131 (ada_iterate_over_symbols): Delete, move implementation to...
3132 (ada_language::iterate_over_symbols): ...here, a new member
3133 function, rewrite to use range based for loop.
3134 (ada_language_data): Delete la_iterate_over_symbols initializer.
3135 * c-lang.c (c_language_data): Likewise.
3136 (cplus_language_data): Likewise.
3137 (asm_language_data): Likewise.
3138 (minimal_language_data): Likewise.
3139 * d-lang.c (d_language_data): Likewise.
3140 * f-lang.c (f_language_data): Likewise.
3141 * go-lang.c (go_language_data): Likewise.
3142 * language.c (unknown_language_data): Likewise.
3143 (auto_language_data): Likewise.
3144 * language.h (language_data): Delete la_iterate_over_symbols field.
3145 (language_defn::iterate_over_symbols): New member function.
3146 (LA_ITERATE_OVER_SYMBOLS): Update.
3147 * linespec.c (iterate_over_all_matching_symtabs): Update.
3148 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3149 initializer.
3150 * objc-lang.c (objc_language_data): Likewise.
3151 * opencl-lang.c (opencl_language_data): Likewise.
3152 * p-lang.c (pascal_language_data): Likewise.
3153 * rust-lang.c (rust_language_data): Likewise.
3154
3155 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3156
3157 * ada-lang.c (ada_language_data): Delete
3158 la_lookup_transparent_type initializer.
3159 * c-lang.c (c_language_data): Likewise.
3160 (cplus_language_data): Likewise.
3161 (cplus_language::lookup_transparent_type): New member function.
3162 (asm_language_data): Delete la_lookup_transparent_type
3163 initializer.
3164 (minimal_language_data): Likewise.
3165 * d-lang.c (d_language_data): Likewise.
3166 * f-lang.c (f_language_data): Likewise.
3167 * go-lang.c (go_language_data): Likewise.
3168 * language.c (unknown_language_data): Likewise.
3169 (auto_language_data): Likewise.
3170 * language.h (struct language_data): Delete
3171 la_lookup_transparent_type field.
3172 (language_defn::lookup_transparent_type): New member function.
3173 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3174 initializer.
3175 * objc-lang.c (objc_language_data): Likewise.
3176 * opencl-lang.c (opencl_language_data): Likewise.
3177 * p-lang.c (pascal_language_data): Likewise.
3178 * rust-lang.c (rust_language_data): Likewise.
3179 * symtab.c (symbol_matches_domain): Update call.
3180
3181 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3182
3183 * ada-lang.c (ada_language_arch_info): Delete function, move
3184 implementation to...
3185 (ada_language::language_arch_info): ...here, a new member
3186 function.
3187 (ada_language_data): Delete la_language_arch_info.
3188 * c-lang.c (c_language_data): Likewise.
3189 (c_language::language_arch_info): New member function.
3190 (cplus_language_arch_info): Delete function, move
3191 implementation to...
3192 (cplus_language::language_arch_info): ...here, a new member
3193 function.
3194 (cplus_language_data): Delete la_language_arch_info.
3195 (asm_language_data): Likewise.
3196 (asm_language::language_arch_info): New member function.
3197 (minimal_language_data): Delete la_language_arch_info.
3198 (minimal_language::language_arch_info): New member function.
3199 * d-lang.c (d_language_arch_info): Delete function, move
3200 implementation to...
3201 (d_language::language_arch_info): ...here, a new member
3202 function.
3203 (d_language_data): Delete la_language_arch_info.
3204 * f-lang.c (f_language_arch_info): Delete function, move
3205 implementation to...
3206 (f_language::language_arch_info): ...here, a new member
3207 function.
3208 (f_language_data): Delete la_language_arch_info.
3209 * go-lang.c (go_language_arch_info): Delete function, move
3210 implementation to...
3211 (go_language::language_arch_info): ...here, a new member
3212 function.
3213 (go_language_data): Delete la_language_arch_info.
3214 * language.c (unknown_language_data): Likewise.
3215 (unknown_language::language_arch_info): New member function.
3216 (auto_language_data): Delete la_language_arch_info.
3217 (auto_language::language_arch_info): New member function.
3218 (language_gdbarch_post_init): Update call to
3219 la_language_arch_info.
3220 * language.h (language_data): Delete la_language_arch_info
3221 function pointer.
3222 (language_defn::language_arch_info): New function.
3223 * m2-lang.c (m2_language_arch_info): Delete function, move
3224 implementation to...
3225 (m2_language::language_arch_info): ...here, a new member
3226 function.
3227 (m2_language_data): Delete la_language_arch_info.
3228 * objc-lang.c (objc_language_arch_info): Delete function, move
3229 implementation to...
3230 (objc_language::language_arch_info): ...here, a new member
3231 function.
3232 (objc_language_data): Delete la_language_arch_info.
3233 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3234 implementation to...
3235 (opencl_language::language_arch_info): ...here, a new member
3236 function.
3237 (opencl_language_data): Delete la_language_arch_info.
3238 * p-lang.c (pascal_language_arch_info): Delete function, move
3239 implementation to...
3240 (pascal_language::language_arch_info): ...here, a new member
3241 function.
3242 (pascal_language_data): Delete la_language_arch_info.
3243 * rust-lang.c (rust_language_arch_info): Delete function, move
3244 implementation to...
3245 (rust_language::language_arch_info): ...here, a new member
3246 function.
3247 (rust_language_data): Delete la_language_arch_info.
3248
3249 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3250
3251 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3252 initializer.
3253 * c-lang.c (c_language_data): Likewise.
3254 (cplus_language_data): Likewise.
3255 (cplus_language::pass_by_reference_info): New method.
3256 (asm_language_data): Delete la_pass_by_reference initializer.
3257 (minimal_language_data): Likewise.
3258 * cp-abi.c (cp_pass_by_reference): Remove use of
3259 default_pass_by_reference.
3260 * d-lang.c (d_language_data): Likewise.
3261 * f-lang.c (f_language_data): Likewise.
3262 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3263 default_pass_by_reference.
3264 * go-lang.c (go_language_data): Likewise.
3265 * language.c (language_pass_by_reference): Update.
3266 (default_pass_by_reference): Delete.
3267 (unknown_language_data): Delete la_pass_by_reference
3268 initializer.
3269 (auto_language_data): Likewise.
3270 * language.h (struct language_data): Delete la_pass_by_reference
3271 field.
3272 (language_defn::pass_by_reference_info): New member function.
3273 (default_pass_by_reference): Delete declaration.
3274 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3275 initializer.
3276 * objc-lang.c (objc_language_data): Likewise.
3277 * opencl-lang.c (opencl_language_data): Likewise.
3278 * p-lang.c (pascal_language_data): Likewise.
3279 * rust-lang.c (rust_language_data): Likewise.
3280
3281 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3282
3283 * ada-lang.c (ada_read_var_value): Delete function, move
3284 implementation to...
3285 (ada_language::read_var_value): ...here.
3286 (ada_language_data): Delete la_read_var_value initializer.
3287 * c-lang.c (c_language_data): Likewise.
3288 (cplus_language_data): Likewise.
3289 (minimal_language_data): Likewise.
3290 * d-lang.c (d_language_data): Likewise.
3291 * f-lang.c (f_language_data): Likewise.
3292 * findvar.c (default_read_var_value): Rename to...
3293 (language_defn::read_var_value): ...this.
3294 * findvar.c (read_var_value): Update header comment, and change to
3295 call member function instead of function pointer.
3296 * go-lang.c (go_language_data): Likewise.
3297 * language.c (unknown_language_data): Delete la_read_var_value
3298 initializer.
3299 (auto_language_data): Likewise.
3300 * language.h (struct language_data): Delete la_read_var_value
3301 field.
3302 (language_defn::read_var_value): New member function.
3303 (default_read_var_value): Delete declaration.
3304 * m2-lang.c (m2_language_data): Delete la_read_var_value
3305 initializer.
3306 * objc-lang.c (objc_language_data): Likewise.
3307 * opencl-lang.c (opencl_language_data): Likewise.
3308 * p-lang.c (pascal_language_data): Likewise.
3309 * rust-lang.c (rust_language_data): Likewise.
3310 * value.h (default_read_var_value): Delete declaration.
3311
3312 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3313
3314 * ada-lang.c (ada_print_array_index): Delete function, move
3315 implementation to...
3316 (ada_language::print_array_index): ...here.
3317 (ada_language_data): Delete la_print_array_index initializer.
3318 * c-lang.c (c_language_data): Likewise.
3319 (cplus_language_data): Likewise.
3320 (minimal_language_data): Likewise.
3321 * d-lang.c (d_language_data): Likewise.
3322 * f-lang.c (f_language_data): Likewise.
3323 * go-lang.c (go_language_data): Likewise.
3324 * language.c (default_print_array_index): Delete function, move
3325 implementation to...
3326 (language_defn::print_array_index): ...here.
3327 (unknown_language_data): Delete la_print_array_index initializer.
3328 (auto_language_data): Likewise.
3329 * language.h (struct language_data): Delete la_print_array_index
3330 field.
3331 (language_defn::print_array_index): New member function.
3332 (LA_PRINT_ARRAY_INDEX): Update.
3333 (default_print_array_index): Delete declaration.
3334 * m2-lang.c (m2_language_data): Delete la_print_array_index
3335 initializer.
3336 * objc-lang.c (objc_language_data): Likewise.
3337 * opencl-lang.c (opencl_language_data): Likewise.
3338 * p-lang.c (pascal_language_data): Likewise.
3339 * rust-lang.c (rust_language_data): Likewise.
3340
3341 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3342
3343 * gdb/ada-lang.c (ada_language_defn): Convert to...
3344 (ada_language_data): ...this.
3345 (class ada_language): New class.
3346 (ada_language_defn): New static global.
3347 * gdb/c-lang.c (c_language_defn): Convert to...
3348 (c_language_data): ...this.
3349 (class c_language): New class.
3350 (c_language_defn): New static global.
3351 (cplus_language_defn): Convert to...
3352 (cplus_language_data): ...this.
3353 (class cplus_language): New class.
3354 (cplus_language_defn): New static global.
3355 (asm_language_defn): Convert to...
3356 (asm_language_data): ...this.
3357 (class asm_language): New class.
3358 (asm_language_defn): New static global.
3359 (minimal_language_defn): Convert to...
3360 (minimal_language_data): ...this.
3361 (class minimal_language): New class.
3362 (minimal_language_defn): New static global.
3363 * gdb/d-lang.c (d_language_defn): Convert to...
3364 (d_language_data): ...this.
3365 (class d_language): New class.
3366 (d_language_defn): New static global.
3367 * gdb/f-lang.c (f_language_defn): Convert to...
3368 (f_language_data): ...this.
3369 (class f_language): New class.
3370 (f_language_defn): New static global.
3371 * gdb/go-lang.c (go_language_defn): Convert to...
3372 (go_language_data): ...this.
3373 (class go_language): New class.
3374 (go_language_defn): New static global.
3375 * gdb/language.c (unknown_language_defn): Remove declaration.
3376 (current_language): Initialize to nullptr, real initialization is
3377 moved to _initialize_language.
3378 (languages): Delete global.
3379 (language_defn::languages): Define.
3380 (set_language_command): Use language_defn::languages.
3381 (set_language): Likewise.
3382 (range_error): Likewise.
3383 (language_enum): Likewise.
3384 (language_def): Likewise.
3385 (add_set_language_command): Use language_def::languages for the
3386 language list, and language_def to lookup language pointers.
3387 (skip_language_trampoline): Use language_defn::languages.
3388 (unknown_language_defn): Convert to...
3389 (unknown_language_data): ...this.
3390 (class unknown_language): New class.
3391 (unknown_language_defn): New static global.
3392 (auto_language_defn): Convert to...
3393 (auto_language_data): ...this.
3394 (class auto_language): New class.
3395 (auto_language_defn): New static global.
3396 (language_gdbarch_post_init): Use language_defn::languages.
3397 (_initialize_language): Initialize current_language.
3398 * gdb/language.h (struct language_defn): Rename to...
3399 (struct language_data): ...this.
3400 (struct language_defn): New.
3401 (auto_language_defn): Delete.
3402 (unknown_language_defn): Delete.
3403 (minimal_language_defn): Delete.
3404 (ada_language_defn): Delete.
3405 (asm_language_defn): Delete.
3406 (c_language_defn): Delete.
3407 (cplus_language_defn): Delete.
3408 (d_language_defn): Delete.
3409 (f_language_defn): Delete.
3410 (go_language_defn): Delete.
3411 (m2_language_defn): Delete.
3412 (objc_language_defn): Delete.
3413 (opencl_language_defn): Delete.
3414 (pascal_language_defn): Delete.
3415 (rust_language_defn): Delete.
3416 * gdb/m2-lang.c (m2_language_defn): Convert to...
3417 (m2_language_data): ...this.
3418 (class m2_language): New class.
3419 (m2_language_defn): New static global.
3420 * gdb/objc-lang.c (objc_language_defn): Convert to...
3421 (objc_language_data): ...this.
3422 (class objc_language): New class.
3423 (objc_language_defn): New static global.
3424 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3425 (opencl_language_data): ...this.
3426 (class opencl_language): New class.
3427 (opencl_language_defn): New static global.
3428 * gdb/p-lang.c (pascal_language_defn): Convert to...
3429 (pascal_language_data): ...this.
3430 (class pascal_language): New class.
3431 (pascal_language_defn): New static global.
3432 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3433 language pointer, update comment format.
3434 * gdb/rust-lang.c (rust_language_defn): Convert to...
3435 (rust_language_data): ...this.
3436 (class rust_language): New class.
3437 (rust_language_defn): New static global.
3438
3439 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3440
3441 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3442 member variable.
3443 <m_stmt_at_address>: New member variable.
3444 (lnp_state_machine::record_line): Don't record some lines, update
3445 tracking of is_stmt at the same address.
3446 (lnp_state_machine::lnp_state_machine): Initialise new member
3447 variables.
3448
3449 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3450
3451 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3452 "-include gnu-nat-mig.h".
3453 * gnu-nat-mig.h: New file.
3454 * gnu-nat.c: Include "gnu-nat-mig.h".
3455 (exc_server, msg_reply_server, notify_server,
3456 process_reply_server): Remove declarations.
3457
3458 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3459
3460 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3461 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3462 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3463 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3464 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3465 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3466 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3467 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3468 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3469 to gnu_nat_target class.
3470 * gnu-nat.c: Likewise.
3471 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3472 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3473 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3474 object.
3475 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3476 instead of `gnu_target'.
3477
3478 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3479
3480 * i386-gnu-tdep.c: Include "gdbcore.h"
3481 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3482 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3483 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3484 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3485 i386_gnu_sigcontext_addr): New functions
3486 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3487 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3488 tdep.
3489
3490 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3491
3492 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3493 before fork_inferior call. Avoid calling it if target_is_pushed returns
3494 true.
3495
3496 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3497
3498 * gnu-nat.h (gnu_target): New variable declaration.
3499 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3500 gnu_target.
3501 * gnu-nat.c (gnu_target): New variable.
3502 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3503 add_thread_silent, and add_thread calls.
3504 (gnu_nat_target::create_inferior): Pass gnu_target to
3505 add_thread_silent, thread_change_ptid call.
3506 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3507 call.
3508
3509 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3510
3511 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3512 (gnu_nat_target::find_memory_regions): Remove unused
3513 `old_address' variable.
3514
3515 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3516
3517 * gnu-nat.c: Include "gdbarch.h".
3518
3519 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3520
3521 * reply_mig_hack.awk (Error return): Cast function through
3522 void *, to bypass compiler function call check.
3523
3524 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3525
3526 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3527 $(srcdir)/reply_mig_hack.awk.
3528
3529 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3530
3531 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3532
3533 2020-05-30 Jonny Grant <jg@jguk.org>
3534
3535 * configure.ac (ACX_BUGURL): change bug URL to https.
3536
3537 2020-05-30 Pedro Alves <palves@redhat.com>
3538
3539 * cp-support.c (replace_typedefs_template): New.
3540 (replace_typedefs_qualified_name): Handle
3541 DEMANGLE_COMPONENT_TEMPLATE.
3542
3543 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3544
3545 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3546 dwarf2/index-cache.h, dwarf2/index-write.c,
3547 dwarf2/index-write.h, dwarf2/line-header.c,
3548 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3549 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3550 variables and fields from `dwarf2_per_objfile` to just
3551 `per_objfile` throughout.
3552
3553 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3554
3555 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3556 <push_dwarf_reg_entry_value>: Add comment.
3557
3558 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3559 Keith Seitz <keiths@redhat.com>
3560
3561 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3562 instead of PyEval_ReleaseLock.
3563 (class gdbpy_gil): Move to earlier in file.
3564 (finalize_python): Set gdb_python_initialized.
3565 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3566 when not initialized.
3567
3568 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3569
3570 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3571 <push_dwarf_reg_entry_value>: Remove assert. Override
3572 per_objfile with caller_per_objfile.
3573
3574 2020-05-28 Tom de Vries <tdevries@suse.de>
3575
3576 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3577 PR gold/15646 workaround to symbol kind "type".
3578
3579 2020-05-27 Tom Tromey <tromey@adacore.com>
3580
3581 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3582
3583 2020-05-27 Tom Tromey <tromey@adacore.com>
3584
3585 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3586 Use htab_find_with_hash.
3587 <add_abbrev>: Remove "abbrev_number" parameter.
3588 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3589 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3590 (hash_abbrev): Add comment.
3591 (abbrev_table::lookup_abbrev): Move to header file.
3592 (abbrev_table::read): Update.
3593
3594 2020-05-27 Tom Tromey <tromey@adacore.com>
3595
3596 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3597 method.
3598 <canonical_name>: New member.
3599 <raw_name>: Rename from "name".
3600 (partial_die_info): Initialize canonical_name.
3601 (scan_partial_symbols): Check raw_name.
3602 (partial_die_parent_scope, partial_die_full_name)
3603 (add_partial_symbol, add_partial_subprogram)
3604 (add_partial_enumeration, load_partial_dies): Use "name" method.
3605 (partial_die_info::name): New method.
3606 (partial_die_info::read, guess_partial_die_structure_name)
3607 (partial_die_info::fixup): Update.
3608
3609 2020-05-27 Tom Tromey <tromey@adacore.com>
3610
3611 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3612 <get_ref_die_offset>: Inline.
3613 <get_ref_die_offset_complaint>: New method.
3614 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3615 (attribute::get_ref_die_offset_complaint): Rename from
3616 get_ref_die_offset. Just issue complaint.
3617
3618 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3619
3620 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3621
3622 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3623
3624 * exec.c (exec_file_attach): Use errno value of first openp failure.
3625
3626 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3627
3628 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3629 Don't close thread handle.
3630
3631 2020-05-27 Tom Tromey <tom@tromey.com>
3632 Simon Marchi <simon.marchi@efficios.com>
3633
3634 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3635 shared_ptr.
3636 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3637 member.
3638 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3639 dwarf2_per_bfd_objfile_data_key>: New globals.
3640 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3641 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3642 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3643 shared.
3644 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3645 short-circuit when sharing.
3646 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3647 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3648
3649 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3650
3651 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3652 to...
3653 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3654 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3655
3656 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3657
3658 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3659 build_name_components, find_name_components_bounds>:
3660 Add per_objfile parameter.
3661 (struct mapped_index) <symbol_name_at>: Likewise.
3662 (struct mapped_debug_names): Remove constructor.
3663 <dwarf2_per_objfile>: Remove field.
3664 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3665 (mapped_index_base::find_name_components_bounds,
3666 mapped_index_base::build_name_components,
3667 dw2_expand_symtabs_matching_symbol): Likewise.
3668 (class mock_mapped_index) <symbol_name_at>: Likewise.
3669 (check_match): Likewise.
3670 (check_find_bounds_finds): Likewise.
3671 (test_mapped_index_find_name_component_bounds): Update.
3672 (CHECK_MATCH): Update.
3673 (dw2_expand_symtabs_matching): Update.
3674 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3675 per_objfile parameter.
3676 <find_vec_in_debug_names>: Likewise.
3677 <m_per_objfile>: New field.
3678 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3679 parameter.
3680 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3681 (dw2_debug_names_iterator::next): Update.
3682 (dw2_debug_names_lookup_symbol): Update.
3683 (dw2_debug_names_expand_symtabs_for_function): Update.
3684 (dw2_debug_names_map_matching_symbols): Update.
3685 (dw2_debug_names_expand_symtabs_matching): Update.
3686 (dwarf2_read_debug_names): Update.
3687
3688 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3689
3690 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3691 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3692 move to dwarf2_per_objfile.
3693 <read_in_chain>: Remove.
3694 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3695 remove_all_cus, age_comp_units>: New methods.
3696 <m_dwarf2_cus>: New member.
3697 (struct dwarf2_per_cu_data) <cu>: Remove.
3698 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3699 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3700 moved to methods of dwarf2_per_objfile.
3701 (dwarf2_clear_marks): Remove.
3702 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3703 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3704 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3705 (dwarf2_per_objfile::remove_all_cus): New.
3706 (class free_cached_comp_units) <~free_cached_comp_units>:
3707 Update.
3708 (load_cu): Update.
3709 (dw2_do_instantiate_symtab): Adjust.
3710 (fill_in_sig_entry_from_dwo_entry): Adjust.
3711 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3712 (cutu_reader::cutu_reader): Likewise.
3713 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3714 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3715 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3716 and dwarf2_per_objfile::age_comp_units.
3717 (load_partial_comp_unit): Update.
3718 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3719 (process_queue): Likewise.
3720 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3721 backlink.
3722 (dwarf2_read_addr_index): Likewise.
3723 (follow_die_offset): Likewise.
3724 (dwarf2_fetch_die_loc_sect_off): Likewise.
3725 (dwarf2_fetch_constant_bytes): Likewise.
3726 (dwarf2_fetch_die_type_sect_off): Likewise.
3727 (follow_die_sig_1): Likewise.
3728 (load_full_type_unit): Likewise.
3729 (read_signatured_type): Likewise.
3730 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3731 (dwarf2_cu::~dwarf2_cu): Remove.
3732 (dwarf2_per_objfile::get_cu): New.
3733 (dwarf2_per_objfile::set_cu): New.
3734 (age_cached_comp_units): Rename to...
3735 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3736 to std::unordered_map.
3737 (free_one_cached_comp_unit): Rename to...
3738 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3739 to std::unordered_map.
3740 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3741 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3742 a dwarf2_per_objfile in data.
3743 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3744 (dwarf2_clear_marks): Remove.
3745
3746 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3747
3748 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3749 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3750 (init_tu_and_read_dwo_dies): Likewise.
3751 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3752 (cutu_reader::cutu_reader): Likewise.
3753 (load_partial_comp_unit): Likewise.
3754 (process_psymtab_comp_unit): Update.
3755 (build_type_psymtabs_1): Update.
3756 (process_skeletonless_type_unit): Update.
3757 (load_full_comp_unit): Update.
3758 (find_partial_die): Update.
3759 (dwarf2_read_addr_index): Update.
3760 (read_signatured_type): Update.
3761
3762 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3763
3764 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3765 m_header_read_in>: New fields.
3766 <get_header>: New method.
3767 * dwarf2/read.c (per_cu_header_read_in): Remove.
3768 (dwarf2_per_cu_data::get_header): New.
3769 (dwarf2_per_cu_data::addr_size): Update.
3770 (dwarf2_per_cu_data::offset_size): Update.
3771 (dwarf2_per_cu_data::ref_addr_size): Update.
3772
3773 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3774
3775 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3776 (dw2_do_instantiate_symtab): Update.
3777 (queue_and_load_all_dwo_tus): Change parameter from
3778 dwarf2_per_cu_data to dwarf2_cu.
3779 (dwarf2_fetch_die_loc_sect_off): Update.
3780 (dwarf2_fetch_constant_bytes): Update.
3781 (dwarf2_fetch_die_type_sect_off): Update.
3782
3783 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3784
3785 * dwarf2/read.c (process_full_comp_unit,
3786 process_full_type_unit): Remove per_cu, per_objfile paramters.
3787 Add dwarf2_cu parameter.
3788 (process_queue): Update.
3789
3790 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3791
3792 * dwarf2/read.c (create_cu_from_index_list): Replace
3793 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3794 (create_cus_from_index_list): Likewise.
3795 (create_cus_from_index): Likewise.
3796 (create_signatured_type_table_from_index): Likewise.
3797 (create_cus_from_debug_names_list): Likewise.
3798 (create_cus_from_debug_names): Likewise.
3799 (dwarf2_read_gdb_index): Update.
3800 (dwarf2_read_debug_names): Update.
3801
3802 2020-05-27 Tom Tromey <tom@tromey.com>
3803 Simon Marchi <simon.marchi@efficios.com>
3804
3805 * dwarf2/read.h (struct dwarf2_per_objfile)
3806 <get_type_for_signatured_type, set_type_for_signatured_type>:
3807 New methods.
3808 <m_type_map>: New member.
3809 (struct signatured_type) <type>: Remove.
3810 * dwarf2/read.c
3811 (dwarf2_per_objfile::get_type_for_signatured_type,
3812 dwarf2_per_objfile::set_type_for_signatured_type): New.
3813 (get_signatured_type): Use new methods.
3814
3815 2020-05-27 Tom Tromey <tom@tromey.com>
3816 Simon Marchi <simon.marchi@efficios.com>
3817
3818 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3819 (struct dwarf2_per_objfile) <type_units>: New member.
3820 <get_type_unit_group_unshareable>: New method.
3821 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3822 num_symtabs, symtabs>: Remove; move to
3823 type_unit_group_unshareable.
3824 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3825 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3826 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3827
3828 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3829
3830 * dwarf2/read.h (struct dwarf2_per_cu_data):
3831 <dwarf2_per_objfile>: Remove.
3832 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3833 dwarf2_per_objfile.
3834 (create_signatured_type_table_from_index): Likewise.
3835 (create_signatured_type_table_from_debug_names): Likewise.
3836 (create_debug_type_hash_table): Likewise.
3837 (fill_in_sig_entry_from_dwo_entry): Likewise.
3838 (create_type_unit_group): Likewise.
3839 (read_comp_units_from_section): Likewise.
3840 (create_cus_hash_table): Likewise.
3841
3842 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3843
3844 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3845 dwarf2_per_cu_data::dwarf2_per_objfile.
3846 (compute_compunit_symtab_includes): Likewise.
3847 (dwarf2_cu::start_symtab): Likewise.
3848
3849 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3850
3851 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3852 parameter.
3853 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3854 (read_namespace_alias): Update.
3855 (lookup_die_type): Update.
3856 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3857 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3858 Update.
3859 (disassemble_dwarf_expression): Update.
3860
3861 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3862
3863 * dwarf2/read.h (struct dwarf2_queue_item): Add
3864 dwarf2_per_objfile parameter, assign new parameter.
3865 <per_objfile>: New field.
3866 * dwarf2/read.c (free_one_cached_comp_unit): Add
3867 dwarf2_per_objfile parameter.
3868 (queue_comp_unit): Likewise.
3869 (dw2_do_instantiate_symtab): Update.
3870 (process_psymtab_comp_unit): Update.
3871 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3872 (process_imported_unit_die): Update.
3873 (queue_and_load_dwo_tu): Update.
3874 (follow_die_offset): Update.
3875 (follow_die_sig_1): Update.
3876
3877 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3878
3879 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3880 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3881 (read_call_site_scope): Assign per_objfile.
3882 (dwarf2_per_cu_data::objfile): Remove.
3883 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3884 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3885 dwarf2_per_objfile parameter.
3886 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3887 dwarf2_per_objfile parameter.
3888 (dwarf_expr_reg_to_entry_parameter): Add output
3889 dwarf2_per_objfile parameter.
3890 (locexpr_get_frame_base): Update.
3891 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3892 <push_dwarf_reg_entry_value>: Update.
3893 <call_site_to_target_addr>: Update.
3894 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3895 parameter.
3896 (value_of_dwarf_reg_entry): Update.
3897 (rw_pieced_value): Update.
3898 (indirect_synthetic_pointer): Update.
3899 (dwarf2_evaluate_property): Update.
3900 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3901 parameter.
3902 (locexpr_read_variable): Update.
3903 (locexpr_get_symbol_read_needs): Update.
3904 (loclist_read_variable): Update.
3905
3906 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3907
3908 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3909 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3910 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3911 parameter.
3912 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3913 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3914 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3915 parameter.
3916 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3917 sect_variable_value): Add dwarf2_per_objfile parameter.
3918 (class dwarf_evaluate_loc_desc) <dwarf_call,
3919 dwarf_variable_value>: Update.
3920 (fetch_const_value_from_synthetic_pointer): Add
3921 dwarf2_per_objfile parameter.
3922 (fetch_const_value_from_synthetic_pointer): Update.
3923 (coerced_pieced_ref): Update.
3924 (class symbol_needs_eval_context) <dwarf_call,
3925 dwarf_variable_value>: Update.
3926 (dwarf2_compile_expr_to_ax): Update.
3927
3928 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3929
3930 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3931 parameter.
3932 (dwarf2_evaluate_loc_desc_full): Update.
3933
3934 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3935
3936 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3937 parameter.
3938 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3939 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3940 dwarf2_per_objfile parameter.
3941 (decode_debug_loc_dwo_addresses): Likewise.
3942 (dwarf2_find_location_expression): Update.
3943 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3944 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3945 parameter.
3946 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3947 parameter.
3948 (locexpr_describe_location_1): Likewise.
3949 (locexpr_describe_location): Update.
3950
3951 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3952
3953 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3954 Remove.
3955 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3956 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3957 (dwarf2_compile_property_to_c): Update.
3958 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3959 use text offset from objfile.
3960 (locexpr_tracepoint_var_ref): Update.
3961 (locexpr_generate_c_location): Update.
3962 (loclist_describe_location): Update.
3963 (loclist_tracepoint_var_ref): Update.
3964 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3965 dwarf2_per_objfile parameter.
3966 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3967 use text offset from objfile.
3968 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3969
3970 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3971
3972 * dwarf2/expr.h (struct dwarf_expr_context)
3973 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3974 <offset>: Remove.
3975 <per_objfile>: New member.
3976 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3977 dwarf2_per_objfile parameter. Don't set offset, set
3978 per_objfile.
3979 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3980 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3981 a dwarf2_per_objfile object instead of an offset.
3982 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3983 constructor.
3984 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3985 to dwarf2_expr_executor constructor. Don't set offset.
3986 (dwarf2_fetch_cfa_info): Update.
3987 (struct dwarf2_frame_cache) <text_offset>: Remove.
3988 <per_objfile>: New field.
3989 (dwarf2_frame_cache): Update.
3990 (dwarf2_frame_prev_register): Update.
3991 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3992 <dwarf_evaluate_loc_desc>: Add constructor.
3993 (dwarf2_evaluate_loc_desc_full): Update.
3994 (dwarf2_locexpr_baton_eval): Update.
3995 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3996 Add constructor.
3997 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3998
3999 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4000
4001 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4002 addr_sized_int_type>: Move to dwarf2_cu.
4003 <int_type>: Move to dwarf2_per_objfile.
4004 (struct dwarf2_per_objfile) <int_type>: Move here.
4005 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4006 addr_sized_int_type>: Move here.
4007 (read_func_scope): Update.
4008 (read_array_type): Update.
4009 (read_tag_string_type): Update.
4010 (attr_to_dynamic_prop): Update.
4011 (dwarf2_per_cu_data::int_type): Rename to...
4012 (dwarf2_per_objfile::int_type): ... this.
4013 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4014 (dwarf2_cu::addr_sized_int_type): ... this.
4015 (read_subrange_type): Update.
4016 (dwarf2_per_cu_data::addr_type): Rename to...
4017 (dwarf2_cu::addr_type): ... this.
4018 (set_die_type): Update.
4019
4020 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4021
4022 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4023 data through per_cu->cu.
4024
4025 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4026
4027 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4028 dwarf2_per_cu_data parameter fo dwarf2_cu.
4029 (lookup_dwo_type_unit): Likewise.
4030 (read_cutu_die_from_dwo): Likewise.
4031 (lookup_dwo_unit): Likewise.
4032 (open_and_init_dwo_file): Likewise.
4033 (lookup_dwo_cutu): Likewise.
4034 (lookup_dwo_comp_unit): Likewise.
4035 (lookup_dwo_type_unit): Likewise.
4036 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4037 (cutu_reader::cutu_reader): Update.
4038
4039 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4040
4041 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4042 parameter.
4043 (process_full_type_unit): Likewise.
4044 (process_queue): Update.
4045
4046 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4047
4048 * dwarf2/read.c (recursively_compute_inclusions): Add
4049 dwarf2_per_objfile parameter.
4050 (compute_compunit_symtab_includes): Likewise.
4051 (process_cu_includes): Update.
4052
4053 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4054
4055 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4056 parameter.
4057 (create_type_unit_group): Update.
4058 (process_psymtab_comp_unit_reader): Update.
4059 (build_type_psymtabs_reader): Update.
4060
4061 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4062
4063 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4064 object through m_this_cu->cu.
4065
4066 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4067
4068 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4069 the info parameter.
4070 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4071
4072 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4073
4074 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4075 per_objfile parameter.
4076 (load_full_type_unit): Add per_objfile parameter.
4077 (read_signatured_type): Likewise.
4078 (load_full_comp_unit): Likewise.
4079 (load_cu): Likewise.
4080 (dw2_do_instantiate_symtab): Likewise.
4081 (dw2_get_file_names): Likewise.
4082 (dw2_map_symtabs_matching_filename): Update.
4083 (dw_expand_symtabs_matching_file_matcher): Update.
4084 (dw2_map_symbol_filenames): Update.
4085 (process_psymtab_comp_unit): Add per_objfile parameter.
4086 (build_type_psymtabs_1): Update.
4087 (process_skeletonless_type_unit): Update.
4088 (dwarf2_build_psymtabs_hard): Update.
4089 (load_partial_comp_unit): Add per_objfile parameter.
4090 (scan_partial_symbols): Update.
4091 (load_full_comp_unit): Add per_objfile parameter.
4092 (process_imported_unit_die): Update.
4093 (create_cus_hash_table): Update.
4094 (find_partial_die): Update.
4095 (dwarf2_read_addr_index): Update.
4096 (follow_die_offset): Update.
4097 (dwarf2_fetch_die_loc_sect_off): Update.
4098 (dwarf2_fetch_constant_bytes): Update.
4099 (dwarf2_fetch_die_type_sect_off): Update.
4100 (follow_die_sig_1): Update.
4101 (load_full_type_unit): Add per_objfile parameter.
4102 (read_signatured_type): Likewise.
4103
4104 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4105
4106 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4107 of objfile_name.
4108
4109 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4110
4111 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4112 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4113 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4114 field.
4115 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4116 (create_cus_from_index): Update.
4117 (dwarf2_read_gdb_index): Update.
4118 (create_cus_from_debug_names): Update.
4119 (dwarf2_read_debug_names): Update.
4120 (get_abbrev_section_for_cu): Update.
4121 (create_all_comp_units): Update.
4122 (read_attribute_value): Update.
4123 (get_debug_line_section): Update.
4124 * dwarf2/index-cache.c (index_cache::store): Update.
4125 * dwarf2/index-write.c (save_gdb_index_command): Update.
4126 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4127
4128 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4129
4130 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4131 member.
4132 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4133 dwarf2_per_cu_data::per_bfd.
4134 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4135 (create_type_unit_group): Likewise.
4136 (queue_comp_unit): Remove reference to
4137 per_cu->dwarf2_per_objfile.
4138 (maybe_queue_comp_unit): Likewise.
4139 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4140 (create_cus_hash_table): Assign new field.
4141
4142 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4143
4144 * dwarf2/read.c: Replace
4145 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4146 dwarf2_cu->per_objfile throughout.
4147
4148 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4149
4150 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4151 parameter, don't use per_cu->dwarf2_per_objfile.
4152 (dw2_instantiate_symtab): Likewise.
4153 (dw2_find_last_source_symtab): Update.
4154 (dw2_map_expand_apply): Update.
4155 (dw2_lookup_symbol): Update.
4156 (dw2_expand_symtabs_for_function): Update.
4157 (dw2_expand_all_symtabs): Update.
4158 (dw2_expand_symtabs_with_fullname): Update.
4159 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4160 don't use per_cu->dwarf2_per_objfile.
4161 (dw2_expand_marked_cus): Update.
4162 (dw2_find_pc_sect_compunit_symtab): Update.
4163 (dw2_debug_names_lookup_symbol): Update.
4164 (dw2_debug_names_expand_symtabs_for_function): Update.
4165 (dw2_debug_names_map_matching_symbols): Update.
4166 (dwarf2_psymtab::expand_psymtab): Update.
4167
4168 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4169
4170 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4171 <per_objfile>: New member.
4172 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4173 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4174 call to dwarf2_cu.
4175 (cutu_reader::cutu_reader): Update.
4176 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4177
4178 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4179
4180 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4181 struct dwarf2_per_objfile.
4182 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4183 dwarf2_per_bfd.
4184 * dwarf2/read.c (set_die_type): Update.
4185 (get_die_type_at_offset): Update.
4186
4187 2020-05-27 Tom Tromey <tom@tromey.com>
4188 Simon Marchi <simon.marchi@efficios.com>
4189
4190 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4191 method.
4192 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4193 get_symtab, set_symtab>: New methods.
4194 <m_symtabs>: New field.
4195 (struct dwarf2_psymtab): Derive from partial_symtab.
4196 <readin_p, get_compunit_symtab>: Declare methods.
4197 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4198 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4199 New methods.
4200 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4201 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4202 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4203 (dw2_symtab_iter_next, dw2_print_stats)
4204 (dw2_expand_symtabs_with_fullname)
4205 (dw2_expand_symtabs_matching_one)
4206 (dw_expand_symtabs_matching_file_matcher)
4207 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4208 (dw2_debug_names_iterator::next)
4209 (dw2_debug_names_map_matching_symbols)
4210 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4211 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4212 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4213 New methods.
4214 (get_compunit_symtab, process_full_comp_unit)
4215 (process_full_type_unit): Update.
4216 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4217
4218 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4219
4220 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4221 then introduce a new dwarf2_per_objfile type.
4222 <read_line_string>: Move to the new dwarf2_per_objfile type.
4223 <objfile>: Likewise.
4224 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4225 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4226 dwarf2_per_objfile->per_bfd.
4227 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4228 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4229 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4230 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4231 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4232 (dwarf2_per_objfile::locate_sections): Rename to...
4233 (dwarf2_per_bfd::locate_sections): ... this.
4234 (dwarf2_per_objfile::get_cutu): Rename to...
4235 (dwarf2_per_bfd::get_cutu): ... this.
4236 (dwarf2_per_objfile::get_cu): Rename to...
4237 (dwarf2_per_bfd::get_cu): ... this.
4238 (dwarf2_per_objfile::get_tu): Rename to...
4239 (dwarf2_per_bfd::get_tu): ... this.
4240 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4241 (dwarf2_per_bfd::allocate_per_cu): ... this.
4242 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4243 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4244 (get_gdb_index_contents_ftype): Change parameter from
4245 dwarf2_per_objfile to dwarf2_per_bfd.
4246 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4247 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4248
4249 2020-05-27 Tom Tromey <tom@tromey.com>
4250 Simon Marchi <simon.marchi@efficios.com>
4251
4252 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4253 (allocate_piece_closure): Set "per_objfile" member.
4254 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4255 (locexpr_describe_location, loclist_describe_location): Use new
4256 member.
4257 * dwarf2/read.c (read_call_site_scope)
4258 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4259 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4260 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4261 handle_data_member_location): Set per_objfile member.
4262 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4263 member.
4264 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4265
4266 2020-05-27 Tom Tromey <tom@tromey.com>
4267
4268 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4269 allocate_signatured_type>: Declare new methods.
4270 <m_num_psymtabs>: New member.
4271 (struct dwarf2_per_cu_data) <index>: New member.
4272 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4273 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4274 (create_cu_from_index_list): Use allocate_per_cu.
4275 (create_signatured_type_table_from_index)
4276 (create_signatured_type_table_from_debug_names)
4277 (create_debug_type_hash_table, add_type_unit)
4278 (read_comp_units_from_section): Use allocate_signatured_type.
4279
4280 2020-05-27 Tom Tromey <tom@tromey.com>
4281
4282 * psymtab.c (partial_map_expand_apply)
4283 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4284 (psym_lookup_global_symbol_language)
4285 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4286 (psym_print_stats, psym_expand_symtabs_for_function)
4287 (psym_map_symbol_filenames, psym_map_matching_symbols)
4288 (psym_expand_symtabs_matching)
4289 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4290 (maintenance_check_psymtabs): Update.
4291 * psympriv.h (struct partial_symtab) <readin_p,
4292 get_compunit_symtab>: Add objfile parameter.
4293 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4294 Likewise.
4295 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4296 get_compunit_symtab>: Likewise.
4297 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4298
4299 2020-05-27 Tom Tromey <tom@tromey.com>
4300
4301 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4302 member.
4303 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4304 (create_cu_from_index_list)
4305 (create_signatured_type_table_from_index)
4306 (create_signatured_type_table_from_debug_names)
4307 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4308 (dwarf2_create_include_psymtab)
4309 (create_debug_type_hash_table, add_type_unit)
4310 (create_type_unit_group, read_comp_units_from_section)
4311 (dwarf2_compute_name, create_cus_hash_table)
4312 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4313 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4314 obstack.
4315 (dw2_get_real_path): Likewise. Change argument to
4316 dwarf2_per_objfile.
4317
4318 2020-05-27 Luis Machado <luis.machado@linaro.org>
4319
4320 PR tdep/26000
4321 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4322 for ldrd (immediate).
4323
4324 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4325
4326 * command.h: Add comment giving the name of class_tui.
4327 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4328 create the fake command for the help for class_tui.
4329
4330 2020-05-26 Tom Tromey <tromey@adacore.com>
4331
4332 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4333 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4334 (val_atr): New function.
4335 (value_val_atr): Use it.
4336 * ada-valprint.c (print_optional_low_bound): Change low bound
4337 handling for enums.
4338 (val_print_packed_array_elements): Don't call discrete_position.
4339 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4340 discrete_position for enum types.
4341 * language.c (default_print_array_index): Change type.
4342 * language.h (struct language_defn) <la_print_array_index>: Add
4343 index_type parameter, change type of index_value.
4344 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4345 (default_print_array_index): Update.
4346 * valprint.c (maybe_print_array_index): Don't call
4347 value_from_longest. Update.
4348 (value_print_array_elements): Don't call discrete_position.
4349
4350 2020-05-26 Tom Tromey <tromey@adacore.com>
4351
4352 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4353 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4354
4355 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4356
4357 PR gdb/13519
4358 * avr-tdep.c (avr_integer_to_address): Return data or code
4359 address accordingly to the second 'type' argument of the
4360 function.
4361
4362 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4363
4364 * infcmd.c, inferior.h: (construct_inferior_arguments):
4365 Moved function from here to gdbsupport/common-inferior.{h,cc}
4366
4367 2020-05-23 Tom Tromey <tom@tromey.com>
4368
4369 Revert commit eca1f90c:
4370 * NEWS: Remove entry for completion styling.
4371 * completer.c (_rl_completion_prefix_display_length): Move
4372 declaration later.
4373 (gdb_fnprint): Revert.
4374 (gdb_display_match_list_1): Likewise.
4375 * cli/cli-style.c (completion_prefix_style)
4376 (completion_difference_style, completion_suffix_style): Remove.
4377 (_initialize_cli_style): Revert.
4378 * cli/cli-style.h (completion_prefix_style)
4379 (completion_difference_style, completion_suffix_style): Don't
4380 declare.
4381
4382 2020-05-24 Pedro Alves <palves@redhat.com>
4383
4384 * symtab.c (completion_list_add_name): Return boolean indication
4385 of whether the symbol matched.
4386 (completion_list_add_symbol): Don't try to remove C++ aliases if
4387 the symbol didn't match in the first place.
4388 * symtab.h (completion_list_add_name): Return bool.
4389
4390 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4391
4392 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4393 type::field.
4394
4395 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4396
4397 GDB 9.2 released.
4398
4399 2020-05-23 Tom Tromey <tom@tromey.com>
4400
4401 * NEWS: Add entry for completion styling.
4402 * completer.c (_rl_completion_prefix_display_length): Move
4403 declaration earlier.
4404 (gdb_fnprint): Use completion_style.
4405 (gdb_display_match_list_1): Likewise.
4406 * cli/cli-style.c (completion_prefix_style)
4407 (completion_difference_style, completion_suffix_style): New
4408 globals.
4409 (_initialize_cli_style): Register new globals.
4410 * cli/cli-style.h (completion_prefix_style)
4411 (completion_difference_style, completion_suffix_style): Declare.
4412
4413 2020-05-23 Pedro Alves <palves@redhat.com>
4414
4415 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4416 (parse_escape): Use ISDIGIT instead of isdigit.
4417 (puts_debug): Use gdb_isprint instead of isprint.
4418 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4419 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4420 ISSPACE instead of isspace.
4421 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4422 instead of isspace.
4423 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4424 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4425 instead of isxdigit and ISDIGIT instead of isdigit.
4426
4427 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4428
4429 * gdbtypes.h (struct type) <field>: New method.
4430 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4431 or type::field.
4432
4433 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4434
4435 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4436 (TYPE_FIELDS): Use type::fields. Change all call sites that
4437 modify the propery to use type::set_fields instead.
4438
4439 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4440
4441 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4442 type::num_fields instead.
4443
4444 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4445
4446 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4447 methods.
4448 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4449 that modify the number of fields to use type::set_num_fields
4450 instead.
4451
4452 2020-05-22 Tom Tromey <tromey@adacore.com>
4453
4454 * compile/compile-object-load.h (munmap_list_free): Don't
4455 declare.
4456
4457 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4458
4459 * annotate.c (annotate_source_line): Update return type, add call
4460 to update current symtab and line.
4461 * annotate.h (annotate_source_line): Update return type, and
4462 extend header comment.
4463 * source.c (info_line_command): Check annotation_level before
4464 calling annotate_source_line.
4465 * stack.c (print_frame_info): If calling annotate_source_line
4466 returns true, then don't print any other source line information.
4467
4468 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4469
4470 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4471
4472 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4473
4474 * coffread.c (patch_type): Remove NULL check before xfree.
4475 * corefile.c (set_gnutarget): Likewise.
4476 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4477 * exec.c (build_section_table): Likewise.
4478 * remote.c (remote_target::pass_signals): Likewise.
4479 * utils.c (n_spaces): Likewise.
4480 * cli/cli-script.c (document_command): Likewise.
4481 * i386-windows-tdep.c (core_process_module_section): Likewise.
4482 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4483
4484 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4485
4486 * symfile.c (reread_symbols): Clear objfile's section_offsets
4487 vector and section indices, re-compute them by calling
4488 sym_offsets.
4489
4490 2020-05-20 Tom Tromey <tromey@adacore.com>
4491
4492 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4493 (desc_one_bound, desc_index_type): Compute field name.
4494
4495 2020-05-20 Tom de Vries <tdevries@suse.de>
4496
4497 PR symtab/25833
4498 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4499
4500 2020-05-20 Alan Modra <amodra@gmail.com>
4501
4502 PR 25993
4503 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4504 bfd_set_filename.
4505 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4506 passed to bfd_set_filename.
4507 * symfile-mem.c (add_vsyscall_page): Likewise for string
4508 passed to symbol_file_add_from_memory.
4509 (symbol_file_add_from_memory): Make name param a const char* and
4510 don't strdup.
4511
4512 2020-05-20 Alan Modra <amodra@gmail.com>
4513
4514 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4515 rather than accessing bfd->filename directly.
4516 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4517 and use bfd_section_name.
4518 * dwarf2/frame.c (decode_frame_entry): Likewise.
4519 * exec.c (exec_set_section_address): Likewise.
4520 * solib-aix.c (solib_aix_bfd_open): Likewise.
4521 * stap-probe.c (get_stap_base_address): Likewise.
4522 * symfile.c (reread_symbols): Likewise.
4523
4524 2020-05-19 Tom Tromey <tromey@adacore.com>
4525
4526 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4527
4528 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4529
4530 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4531
4532 2020-05-19 Pedro Alves <palves@redhat.com>
4533
4534 * NEWS (set exec-file-mismatch): Adjust entry.
4535 * exec.c: Include "build-id.h".
4536 (validate_exec_file): Try to match build IDs instead of filenames.
4537 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4538 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4539 and pass down 'warn_if_slow'.
4540 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4541 gdb_bfd_open_closure to pass it down.
4542 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4543
4544 2020-05-19 Pedro Alves <palves@redhat.com>
4545
4546 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4547 * target.c (target_fileio_open_1): Rename to target_fileio_open
4548 and make extern. Use bool.
4549 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4550 (target_fileio_read_alloc_1): Adjust.
4551 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4552 (target_fileio_open_warn_if_slow): Delete declaration.
4553
4554 2020-05-19 Pedro Alves <palves@redhat.com>
4555
4556 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4557 Adjust all callers.
4558
4559 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4560
4561 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4562 whether disp is negative.
4563
4564 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4565
4566 * symfile.h (struct symfile_segment_data)
4567 <~symfile_segment_data>: Remove.
4568 <segment_info>: Change to std::vector.
4569 * symfile.c (default_symfile_segments): Update.
4570 * elfread.c (elf_symfile_segments): Update.
4571
4572 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4573
4574 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4575 <segments>: New.
4576 <segment_bases, segment_sizes>: Remove.
4577 * symfile.c (default_symfile_segments): Update.
4578 * elfread.c (elf_symfile_segments): Update.
4579 * remote.c (remote_target::get_offsets): Update.
4580 * solib-target.c (solib_target_relocate_section_addresses):
4581 Update.
4582
4583 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4584
4585 * symfile.h (struct symfile_segment_data): Initialize fields.
4586 <~symfile_segment_data>: Add.
4587 (symfile_segment_data_up): New.
4588 (struct sym_fns) <sym_segments>: Return a
4589 symfile_segment_data_up.
4590 (default_symfile_segments): Return a symfile_segment_data_up.
4591 (free_symfile_segment_data): Remove.
4592 (get_symfile_segment_data): Return a symfile_segment_data_up.
4593 * symfile.c (default_symfile_segments): Likewise.
4594 (get_symfile_segment_data): Likewise.
4595 (free_symfile_segment_data): Remove.
4596 (symfile_find_segment_sections): Update.
4597 * elfread.c (elf_symfile_segments): Return a
4598 symfile_segment_data_up.
4599 * remote.c (remote_target::get_offsets): Update.
4600 * solib-target.c (solib_target_relocate_section_addresses):
4601 Update.
4602 * symfile-debug.c (debug_sym_segments): Return a
4603 symfile_segment_data_up.
4604
4605 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4606
4607 PR build/25981
4608 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4609 Hardcode register numbers.
4610
4611 PR build/25981
4612 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4613 procfs_find_LDT_entry): Remove.
4614 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4615 procfs_find_LDT_entry): Remove.
4616 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4617 Remove.
4618
4619 2020-05-17 Pedro Alves <palves@redhat.com>
4620 Andrew Burgess <andrew.burgess@embecosm.com>
4621 Keno Fischer <keno@juliacomputing.com>
4622
4623 PR gdb/25741
4624 * breakpoint.c (build_target_condition_list): Update comments.
4625 (build_target_command_list): Update comments and skip matching
4626 locations.
4627 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4628 a separate function. Simplify "set breakpoint auto-hw off"
4629 handling.
4630 (insert_breakpoints): Update comment.
4631 (tracepoint_locations_match): New parameter. For breakpoints,
4632 compare location types too, if the caller wants to.
4633 (handle_automatic_hardware_breakpoints): New functions.
4634 (bp_location_is_less_than): Also sort by location type and
4635 hardware breakpoint length.
4636 (update_global_location_list): Handle "set breakpoint auto-hw on"
4637 here.
4638 (update_breakpoint_locations): Ask breakpoint_locations_match to
4639 ignore location types.
4640
4641 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4642
4643 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4644 type::name instead.
4645
4646 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4647
4648 * gdbtypes.h (struct type) <name, set_name>: New methods.
4649 (TYPE_CODE): Use type::name. Change all call sites used to set
4650 the name to use type::set_name instead.
4651
4652 2020-05-16 Tom Tromey <tom@tromey.com>
4653
4654 * top.c (quit_force): Update.
4655 * infrun.c (handle_no_resumed): Update.
4656 * top.h (all_uis): New function.
4657 (ALL_UIS): Remove.
4658
4659 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4660
4661 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4662
4663 2020-05-16 Pedro Alves <palves@redhat.com>
4664
4665 * ia64-linux-nat.c
4666 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4667 Declare method.
4668 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4669
4670 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4671
4672 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4673 (sparc64_adi_info): Likewise.
4674
4675 2020-05-15 Tom Tromey <tom@tromey.com>
4676
4677 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4678 block_objfile.
4679 (lookup_objfile_from_block): Remove.
4680 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4681 (lookup_global_symbol): Use block_objfile.
4682 * symtab.h (lookup_objfile_from_block): Don't declare.
4683 * printcmd.c (clear_dangling_display_expressions): Use
4684 block_objfile.
4685 * parse.c (operator_check_standard): Use block_objfile.
4686
4687 2020-05-15 Tom Tromey <tom@tromey.com>
4688
4689 * language.c (language_alloc_type_symbol): Set
4690 SYMBOL_SECTION.
4691 * symtab.c (initialize_objfile_symbol): Remove.
4692 (allocate_symbol): Remove.
4693 (allocate_template_symbol): Remove.
4694 * dwarf2/read.c (fixup_go_packaging): Use "new".
4695 (new_symbol): Use "new".
4696 (read_variable): Don't call initialize_objfile_symbol. Use
4697 "new".
4698 (read_func_scope): Use "new".
4699 * xcoffread.c (process_xcoff_symbol): Don't call
4700 initialize_objfile_symbol.
4701 (SYMBOL_DUP): Remove.
4702 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4703 "new".
4704 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4705 (allocate_template_symbol): Don't declare.
4706 (struct symbol): Add copy constructor. Change defaults.
4707 * jit.c (finalize_symtab): Use "new".
4708 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4709 Use "new".
4710 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4711 (common_block_end): Use "new".
4712 * mdebugread.c (parse_symbol): Use "new".
4713 (new_symbol): Likewise.
4714
4715 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4716
4717 * NEWS: Mention changes to help and apropos.
4718
4719 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4720
4721 * command.h (enum command_class): Improve comments, document
4722 that class_alias is for user-defined aliases, give the class
4723 name for each class, remove unused class_xdb.
4724 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4725 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4726 by a precise class.
4727 * infcmd.c (_initialize_infcmd): Likewise.
4728 * reverse.c (_initialize_reverse): Likewise.
4729 * stack.c (_initialize_stack): Likewise.
4730 * symfile.c (_initialize_symfile): Likewise.
4731 * tracepoint.c (_initialize_tracepoint): Likewise.
4732
4733 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4734
4735 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4736 when their aliased command is traversed.
4737 (help_cmd): Add fput_command_names_styled call to
4738 output command name and aliases when command has an alias.
4739
4740 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4741
4742 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4743 * cli/cli-decode.c (help_cmd_list): Declare as static,
4744 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4745 a command together with the command.
4746 (fput_command_name_styled, fput_command_names_styled): New functions.
4747 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4748 fput_command_name_styled.
4749 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4750 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4751
4752 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4753
4754 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4755 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4756 * command.h (cmd_show_list): Likewise.
4757 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4758 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4759
4760 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4761
4762 * unittests/command-def-selftests.c (traverse_command_structure):
4763 Verify all commands of a list have the same prefix command and
4764 that only the top cmdlist commands have a null prefix.
4765
4766 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4767
4768 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4769 as prefix, not one of its aliases.
4770 (set_cmd_prefix): Remove.
4771 (do_add_cmd): Centralize the setting of the prefix of a command, when
4772 command is defined after its full chain of prefix commands.
4773 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4774 (add_setshow_cmd_full): Likewise.
4775 (update_prefix_field_of_prefixed_commands): New function.
4776 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4777 update_prefix_field_of_prefixed_commands.
4778 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4779 addresses of remote_set_cmdlist and remote_show_cmdlist given
4780 as argument, not the address of an argument.
4781 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4782 * gdb/remote.c (_initialize_remote): Likewise.
4783
4784 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4785
4786 * cli/cli-cmds.c (alias_command): Check for an existing alias
4787 using lookup_cmd_composition, as valid_command_p is too strict
4788 and forbids aliases that are the prefix of an existing alias
4789 or command.
4790 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4791 command is properly recognised as a valid command.
4792
4793 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4794
4795 * unittests/help-doc-selftests.c: Rename to
4796 unittests/command-def-selftests.c
4797 * unittests/command-def-selftests.c (help_doc_tests): Update some
4798 comments.
4799 (command_structure_tests, traverse_command_structure): New namespace
4800 and function.
4801 (command_structure_invariants_tests): New function.
4802 (_initialize_command_def_selftests) Renamed from
4803 _initialize_help_doc_selftests, register command_structure_invariants
4804 selftest.
4805
4806 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4807
4808 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4809 an alias of 'show'.
4810
4811 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4812
4813 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4814 ada_is_fixed_point_type. Update all callers.
4815 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4816 all callers.
4817 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4818 Update all callers.
4819 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4820 print_fixed_point_type. Update all callers.
4821 * ada-valprint.c (ada_value_print_num): Replace call to
4822 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4823
4824 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4825
4826 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4827 processors.
4828 (cpu_supports_bts): Add CV_AMD case.
4829
4830 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4831 Simon Marchi <simon.marchi@efficios.com>
4832
4833 * infrun.c (stop_all_threads): Collect multiple wait events at
4834 each pass.
4835
4836 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4837
4838 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4839 type::code instead.
4840
4841 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4842
4843 * gdbtypes.h (struct type) <code, set_code>: New methods.
4844 (TYPE_CODE): Use type::code. Change all call sites used to set
4845 the code to use type::set_code instead.
4846
4847 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4848 Tom de Vries <tdevries@suse.de>
4849 Pedro Alves <palves@redhat.com>
4850
4851 PR threads/25478
4852 * infrun.c (stop_all_threads): Do NOT ignore
4853 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4854 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4855 received.
4856 (handle_no_resumed): Remove code handling a live inferior with no
4857 threads.
4858 * remote.c (has_single_non_exited_thread): New.
4859 (remote_target::update_thread_list): Do not delete a thread if is
4860 the last thread of the process.
4861 * thread.c (thread_select): Call delete_exited_threads instead of
4862 prune_threads.
4863
4864 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4865
4866 * infrun.c (stop_all_threads): Enable/disable thread events of all
4867 targets. Move a debug message denoting the end of the function
4868 into the SCOPED_EXIT block.
4869
4870 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4871
4872 * process-stratum-target.h: Include <set>.
4873 (all_non_exited_process_targets, switch_to_target_no_thread): New
4874 function declarations.
4875 * process-stratum-target.c (all_non_exited_process_targets)
4876 (switch_to_target_no_thread): New function implementations.
4877
4878 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4879
4880 * infrun.c (handle_inferior_event): Extract out a piece of code
4881 into...
4882 (mark_non_executing_threads): ...this new function.
4883
4884 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4885
4886 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4887 use.
4888
4889 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4890
4891 * regcache.c (regcache_read_pc_protected): New function
4892 implementation that returns 0 if the PC cannot read via
4893 'regcache_read_pc'.
4894 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4895 instead of 'regcache_read_pc'.
4896 (keep_going_pass_signal): Ditto.
4897
4898 2020-05-13 Tom Tromey <tromey@adacore.com>
4899
4900 * ada-lang.c (align_value): Remove.
4901 (ada_template_to_fixed_record_type_1): Use align_up.
4902
4903 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4904
4905 * async-event.c: Update the copyright year.
4906 * async-event.h: Update the copyright year.
4907
4908 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4909
4910 * objfiles.h (is_addr_in_objfile,
4911 shared_objfile_contains_address_p): Return bool.
4912 * objfile.c (is_addr_in_objfile,
4913 shared_objfile_contains_address_p): Return bool.
4914
4915 2020-05-11 Tom Tromey <tromey@adacore.com>
4916
4917 * cli/cli-cmds.c (info_command): Restore.
4918 (_initialize_cli_cmds): Use add_prefix_command for "info".
4919 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4920
4921 2020-05-11 Tom Tromey <tromey@adacore.com>
4922
4923 * ada-lang.c (ada_value_primitive_field): Now public.
4924 * ada-lang.h (ada_value_primitive_field): Declare.
4925 * ada-valprint.c (print_field_values): Use
4926 ada_value_primitive_field for wrapper fields.
4927
4928 2020-05-11 Tom de Vries <tdevries@suse.de>
4929
4930 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4931 MODULE_DOMAIN.
4932
4933 2020-05-11 Tom de Vries <tdevries@suse.de>
4934
4935 PR symtab/25941
4936 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4937 with length 0, if not gdb-produced.
4938 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4939
4940 2020-05-09 Tom de Vries <tdevries@suse.de>
4941
4942 PR gdb/25955
4943 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4944 calculation.
4945
4946 2020-05-09 Tom Tromey <tom@tromey.com>
4947
4948 * top.c (server_command): Now bool.
4949 * top.h (server_command): Now bool.
4950
4951 2020-05-08 Tom Tromey <tromey@adacore.com>
4952
4953 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4954 already being processed.
4955
4956 2020-05-08 Tom Tromey <tom@tromey.com>
4957
4958 * printcmd.c (struct display) <next>: Remove.
4959 <display>: New constructor.
4960 <exp_string>: Now a std::string.
4961 <enabled_p>: Now a bool.
4962 (display_number): Move definition earlier.
4963 (displays): Rename from display_chain. Now a std::vector.
4964 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4965 (display_command): Update.
4966 (do_one_display, disable_display)
4967 (enable_disable_display_command, do_enable_disable_display):
4968 Update.
4969 (free_display): Remove.
4970 (clear_displays): Rewrite.
4971 (delete_display): Update.
4972 (map_display_numbers): Use function_view. Remove "data"
4973 parameter. Update.
4974 (do_delete_display): Remove.
4975 (undisplay_command): Update.
4976 (do_one_display, do_displays, disable_display)
4977 (info_display_command): Update.
4978 (do_enable_disable_display): Remove.
4979 (enable_disable_display_command)
4980 (clear_dangling_display_expressions): Update.
4981
4982 2020-05-08 Tom Tromey <tom@tromey.com>
4983
4984 * symtab.c (set_symbol_cache_size)
4985 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4986 (maintenance_print_symbol_cache_statistics): Update.
4987 * symmisc.c (print_symbol_bcache_statistics)
4988 (print_objfile_statistics, maintenance_print_objfiles)
4989 (maintenance_info_symtabs, maintenance_check_symtabs)
4990 (maintenance_expand_symtabs, maintenance_info_line_tables):
4991 Update.
4992 * symfile-debug.c (set_debug_symfile): Update.
4993 * source.c (forget_cached_source_info): Update.
4994 * python/python.c (gdbpy_progspaces): Update.
4995 * psymtab.c (maintenance_info_psymtabs): Update.
4996 * probe.c (parse_probes): Update.
4997 * linespec.c (iterate_over_all_matching_symtabs)
4998 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4999 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5000 * exec.c (exec_target::close): Update.
5001 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5002 * breakpoint.c (print_one_breakpoint_location)
5003 (create_longjmp_master_breakpoint)
5004 (create_std_terminate_master_breakpoint): Update.
5005 * progspace.c (program_spaces): Now a std::vector.
5006 (maybe_new_address_space): Update.
5007 (add_program_space): Remove.
5008 (program_space::program_space): Update.
5009 (remove_program_space): Update.
5010 (number_of_program_spaces): Remove.
5011 (print_program_space, update_address_spaces): Update.
5012 * progspace.h (program_spaces): Change type.
5013 (ALL_PSPACES): Remove.
5014 (number_of_program_spaces): Don't declare.
5015 (struct program_space) <next>: Remove.
5016
5017 2020-05-08 Tom Tromey <tom@tromey.com>
5018
5019 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5020 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5021 (enable_break): Update.
5022 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5023 (frv_fdpic_find_canonical_descriptor): Update.
5024 (frv_fetch_objfile_link_map): Update.
5025 * progspace.c (program_space::free_all_objfiles): Update.
5026 (program_space::solibs): New method.
5027 * progspace.h (struct program_space) <solibs>: New method.
5028 * solist.h (master_so_list): Don't declare.
5029 (ALL_SO_LIBS): Remove.
5030 * solib.h (so_list_head): Remove.
5031 (update_solib_list): Update comment.
5032 * solib.c (master_so_list): Remove.
5033 (solib_used, update_solib_list, solib_add)
5034 (info_sharedlibrary_command, clear_solib)
5035 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5036
5037 2020-05-08 Tom Tromey <tom@tromey.com>
5038
5039 * extension.c (extension_languages): Now a std::array.
5040 (ALL_EXTENSION_LANGUAGES): Remove.
5041 (get_ext_lang_defn, get_ext_lang_of_file)
5042 (eval_ext_lang_from_control_command): Update.
5043 (finish_ext_lang_initialization)
5044 (auto_load_ext_lang_scripts_for_objfile)
5045 (ext_lang_type_printers::ext_lang_type_printers)
5046 (apply_ext_lang_type_printers)
5047 (ext_lang_type_printers::~ext_lang_type_printers)
5048 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5049 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5050 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5051 (get_matching_xmethod_workers, ext_lang_colorize)
5052 (ext_lang_before_prompt): Update.
5053 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5054
5055 2020-05-08 Tom Tromey <tom@tromey.com>
5056
5057 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5058 overload.
5059 <swap_string, m_string>: Remove.
5060 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5061 Update.
5062 * stabsread.c (define_symbol, read_type): Update.
5063 * linespec.c (find_linespec_symbols): Update.
5064 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5065 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5066 * dbxread.c (read_dbx_symtab): Update.
5067 * cp-support.h (cp_canonicalize_string_full)
5068 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5069 Return unique_xmalloc_ptr.
5070 * cp-support.c (inspect_type): Update.
5071 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5072 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5073 Likewise.
5074 * c-typeprint.c (print_name_maybe_canonical): Update.
5075 * break-catch-throw.c (check_status_exception_catchpoint):
5076 Update.
5077
5078 2020-05-08 Tom de Vries <tdevries@suse.de>
5079
5080 * infrun.c (follow_fork): Copy current_line and current_symtab to
5081 child thread.
5082
5083 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5084
5085 * async-event.c (struct async_signal_handler, struct
5086 async_event_handler): Reformat, remove typedef.
5087
5088 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5089
5090 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5091 access thistype->main_type->dyn_prop_list directly.
5092
5093 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5094
5095 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5096 (remove_dyn_prop): Remove. Update all users to use
5097 type::remove_dyn_prop.
5098 * gdbtypes.c (remove_dyn_prop): Rename to...
5099 (type::remove_dyn_prop): ... this.
5100
5101 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5102
5103 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5104 (add_dyn_prop): Remove. Update all users to use
5105 type::add_dyn_prop.
5106 * gdbtypes.c (add_dyn_prop): Rename to...
5107 (type::add_dyn_prop): ... this.
5108
5109 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5110
5111 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5112 (get_dyn_prop): Remove. Update all users to use
5113 type::dyn_prop.
5114 * gdbtypes.c (get_dyn_prop): Rename to...
5115 (type::dyn_prop): ... this.
5116
5117 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5118
5119 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5120
5121 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5122
5123 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5124 instruction, skip it if it's there.
5125
5126 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5127
5128 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5129
5130 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5131
5132 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5133 * gdbtypes.c (recursive_dump_type): Remove use of
5134 TYPE_INCOMPLETE.
5135
5136 2020-05-03 Tom Tromey <tom@tromey.com>
5137
5138 * breakpoint.c (catch_command, tcatch_command): Remove.
5139 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5140 add_show_prefix_cmd.
5141 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5142 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5143 Remove.
5144 (add_internal_problem_command): Use add_basic_prefix_cmd,
5145 add_show_prefix_cmd.
5146 * mips-tdep.c (set_mipsfpu_command): Remove.
5147 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5148 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5149 (_initialize_index_cache): Use add_basic_prefix_cmd.
5150 * memattr.c (dummy_cmd): Remove.
5151 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5152 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5153 (_initialize_tui_win): Use add_basic_prefix_cmd,
5154 add_show_prefix_cmd.
5155 * cli/cli-logging.c (set_logging_command): Remove.
5156 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5157 add_show_prefix_cmd.
5158 (show_logging_command): Remove.
5159 * target.c (target_command): Remove.
5160 (add_target): Use add_basic_prefix_cmd.
5161
5162 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5163
5164 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5165
5166 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5167
5168 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5169 info_command.
5170
5171 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5172
5173 * nbsd-nat.c (nbsd_enable_proc_events)
5174 (nbsd_nat_target::post_startup_inferior): Add.
5175 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5176 (nbsd_nat_target::update_thread_list): Rewrite.
5177 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5178 "PTRACE_LWP_CREATE".
5179 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5180
5181 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5182
5183 * stack.c (_initialize_stack): Remove duplicated creation
5184 of "frame" command and "f" alias.
5185
5186 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5187
5188 PR gdb/18706
5189 * gdbtypes.c (check_typedef): Calculate size of array of
5190 stubbed type.
5191
5192 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5193
5194 PR gdb/15559
5195 * i386-tdep.c (i386_push_dummy_call): Call
5196 i386_thiscall_push_dummy_call.
5197 (i386_thiscall_push_dummy_call): New function.
5198 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5199 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5200 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5201
5202 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5203
5204 * gdbarch.sh (do_read): Add shellcheck disable directive for
5205 warning SC2162.
5206
5207 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5208
5209 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5210 "referenced but not assigned" warning.
5211
5212 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5213
5214 * gdbarch.sh: Remove code that sets fallbackdefault.
5215
5216 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5217
5218 * gdbarch.sh: Use shell operators && and || instead of
5219 -a and -o.
5220
5221 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5222
5223 * gdbarch.sh: Use $(...) instead of `...`.
5224
5225 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5226
5227 * gdbarch.sh: Use double quotes around variables.
5228
5229 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5230
5231 * gdbarch.sh: Use %s with printf, instead of variables in the
5232 format string.
5233
5234 2020-04-29 Tom Tromey <tromey@adacore.com>
5235
5236 PR ada/25875:
5237 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5238 type fields here.
5239 (read_enumeration_type): Call
5240 update_enumeration_type_from_children later. Update comments.
5241 (process_enumeration_scope): Don't create type fields.
5242
5243 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5244
5245 * nbsd-tdep.c: Include "xml-syscall.h".
5246 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5247
5248 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5249
5250 * nbsd-nat.c: Include "sys/wait.h".
5251 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5252 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5253 (nbsd_nat_target::remove_exec_catchpoint)
5254 (nbsd_nat_target::set_syscall_catchpoint): Add.
5255 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5256 (nbsd_nat_target::insert_exec_catchpoint)
5257 (nbsd_nat_target::remove_exec_catchpoint)
5258 (nbsd_nat_target::set_syscall_catchpoint): Add.
5259 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5260 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5261 `nbsd_get_syscall_number'.
5262
5263 2020-04-29 Tom Tromey <tom@tromey.com>
5264
5265 * stack.c (print_block_frame_labels): Remove.
5266
5267 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5268
5269 PR gdb/17320
5270 * ada-valprint.c (val_print_packed_array_elements): Move array
5271 end bracket to new line.
5272 (ada_val_print_string): Remove extra spaces before first array
5273 element.
5274 * c-valprint.c (c_value_print_array): Likewise.
5275 * m2-valprint.c (m2_print_array_contents): Likewise.
5276 (m2_value_print_inner): Likewise.
5277 * p-valprint.c (pascal_value_print_inner): Likewise.
5278 * valprint.c (generic_val_print_array): Likewise.
5279 (value_print_array_elements): Move first array element and array
5280 end bracket to new line.
5281
5282 2020-04-29 Tom de Vries <tdevries@suse.de>
5283
5284 PR symtab/25889
5285 * linespec.c (find_method): Fix ix calculation.
5286
5287 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5288
5289 * syscalls/update-netbsd.sh: New file.
5290 * syscalls/netbsd.xml: Regenerate.
5291 * data-directory/Makefile.in: Register `netbsd.xml' in
5292 `SYSCALLS_FILES'.
5293
5294 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5295
5296 * syscalls/update-freebsd.sh: Add double quotes.
5297
5298 2020-04-28 Tom Tromey <tom@tromey.com>
5299
5300 * NEWS: Update.
5301 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5302 (cmdpy_init): Allow class_tui.
5303
5304 2020-04-28 Mark Williams <mark@myosotissp.com>
5305
5306 PR gdb/24480
5307 * dwarf2read.c: Add missing assingments to list_in_scope when
5308 start_symtab was already called.
5309
5310 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5311
5312 PR gdb/25881
5313 * dwarf2/read.c (offset_map_type): Use
5314 gdb:hash_enum<sect_offset> as hash function.
5315
5316 2020-04-28 Tom de Vries <tdevries@suse.de>
5317
5318 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5319 with DW_AT_signature.
5320
5321 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5322
5323 * configure.ac: Remove check for fs_base/gs_base in
5324 user_regs_struct.
5325 * configure: Re-generate.
5326 * config.in: Re-generate.
5327 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5328 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5329 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5330
5331 2020-04-27 Luis Machado <luis.machado@linaro.org>
5332
5333 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5334 problematic inline frame unwinding situation.
5335 * frame.c (frame_id_computed_p): New function.
5336 * frame.h (frame_id_computed_p): New prototype.
5337
5338 2020-04-26 Tom Tromey <tom@tromey.com>
5339
5340 * command.h (enum command_class) <class_pseudo>: Remove.
5341
5342 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5343
5344 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5345 and whitespace.
5346
5347 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5348
5349 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5350 `PT_GET_PROCESS_STATE' block.
5351
5352 2020-04-24 Tom Tromey <tom@tromey.com>
5353
5354 * symtab.h (symbol_get_demangled_name): Don't declare.
5355 * symtab.c (symbol_get_demangled_name): Remove.
5356 (general_symbol_info::natural_name)
5357 (general_symbol_info::demangled_name): Update.
5358
5359 2020-04-24 Tom Tromey <tom@tromey.com>
5360
5361 PR rust/25025:
5362 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5363
5364 2020-04-24 Tom Tromey <tom@tromey.com>
5365
5366 PR symtab/12707:
5367 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5368 exists.
5369 (new_symbol): Likewise.
5370 * compile/compile-object-load.c (get_out_value_type): Use
5371 symbol_matches_search_name.
5372
5373 2020-04-24 Tom Tromey <tom@tromey.com>
5374
5375 * dwarf2/read.c (add_partial_symbol): Do not call
5376 compute_and_set_names.
5377
5378 2020-04-24 Tom Tromey <tom@tromey.com>
5379
5380 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5381 overload.
5382
5383 2020-04-24 Tom Tromey <tom@tromey.com>
5384
5385 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5386 (add_psymbol_to_list): New overload. Make old overload call new
5387 one.
5388 * psympriv.h (add_psymbol_to_list): New overload.
5389
5390 2020-04-24 Tom Tromey <tom@tromey.com>
5391
5392 * dwarf2/read.c (partial_die_info::read) <case
5393 DW_AT_linkage_name>: Use value_as_string.
5394 (dwarf2_string_attr): Use value_as_string.
5395 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5396 method.
5397 * dwarf2/attribute.c (attribute::value_as_string): New method.
5398
5399 2020-04-24 Tom Tromey <tom@tromey.com>
5400
5401 * symtab.c (general_symbol_info::natural_name)
5402 (general_symbol_info::demangled_name): Check for language_rust.
5403
5404 2020-04-24 Tom Tromey <tom@tromey.com>
5405
5406 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5407 (dwarf2_physname): ... from here.
5408 (partial_die_info::read): Add Rust "{" hack.
5409
5410 2020-04-24 Tom Tromey <tom@tromey.com>
5411
5412 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5413 method.
5414 (symbol_set_demangled_name): Don't declare.
5415 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5416 symbol_set_demangled_name.
5417 (general_symbol_info::set_language)
5418 (general_symbol_info::compute_and_set_names): Update.
5419 * minsyms.c (minimal_symbol_reader::install): Update.
5420 * dwarf2/read.c (new_symbol): Update.
5421
5422 2020-04-24 Tom Tromey <tromey@adacore.com>
5423
5424 PR python/23662:
5425 * python/py-type.c (convert_field): Handle
5426 FIELD_LOC_KIND_DWARF_BLOCK.
5427 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5428 (typy_get_dynamic): Nw function.
5429 (type_object_getset): Add "dynamic".
5430 * NEWS: Add entry.
5431
5432 2020-04-24 Tom Tromey <tromey@adacore.com>
5433
5434 * ada-typeprint.c (print_choices, print_variant_part)
5435 (print_record_field_types_dynamic): New functions.
5436 (print_record_field_types): Use print_record_field_types_dynamic.
5437
5438 2020-04-24 Tom Tromey <tromey@adacore.com>
5439
5440 * dwarf2/read.c (handle_data_member_location): New overload.
5441 (dwarf2_add_field): Use it.
5442 (decode_locdesc): Add "computed" parameter. Update comment.
5443 * gdbtypes.c (is_dynamic_type_internal): Also look for
5444 FIELD_LOC_KIND_DWARF_BLOCK.
5445 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5446 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5447 virtual base classes.
5448 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5449 FIELD_LOC_KIND_DWARF_BLOCK.
5450
5451 2020-04-24 Tom Tromey <tromey@adacore.com>
5452
5453 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5454 * gdbtypes.c (is_dynamic_type_internal): Check
5455 TYPE_HAS_DYNAMIC_LENGTH.
5456 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5457 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5458 New macros.
5459 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5460 constant.
5461
5462 2020-04-24 Tom Tromey <tromey@adacore.com>
5463
5464 * dwarf2/read.c (struct variant_field): Rewrite.
5465 (struct variant_part_builder): New.
5466 (struct nextfield): Remove "variant" field. Add "offset".
5467 (struct field_info): Add "current_variant_part" and
5468 "variant_parts".
5469 (alloc_discriminant_info): Remove.
5470 (alloc_rust_variant): New function.
5471 (quirk_rust_enum): Update.
5472 (dwarf2_add_field): Set "offset" member. Don't handle
5473 DW_TAG_variant_part.
5474 (offset_map_type): New typedef.
5475 (convert_variant_range, create_one_variant)
5476 (create_one_variant_part, create_variant_parts)
5477 (add_variant_property): New functions.
5478 (dwarf2_attach_fields_to_type): Call add_variant_property.
5479 (read_structure_type): Don't handle DW_TAG_variant_part.
5480 (handle_variant_part, handle_variant): New functions.
5481 (handle_struct_member_die): Use them.
5482 (process_structure_scope): Don't handle variant parts.
5483 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5484 (struct discriminant_info): Remove.
5485 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5486 (struct main_type) <flag_discriminated_union>: Remove.
5487 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5488 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5489 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5490 Update.
5491 * valops.c (value_union_variant): Remove.
5492 * value.h (value_union_variant): Don't declare.
5493
5494 2020-04-24 Tom Tromey <tromey@adacore.com>
5495
5496 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5497 (ada_value_primitive_packed_val): Update.
5498 * ada-valprint.c (ada_value_print_1): Update.
5499 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5500 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5501 just an address. Use evaluate_for_locexpr_baton.
5502 (dwarf2_evaluate_property): Update.
5503 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5504 array_view.
5505 * findvar.c (default_read_var_value): Update.
5506 * gdbtypes.c (compute_variant_fields_inner)
5507 (resolve_dynamic_type_internal): Update.
5508 (resolve_dynamic_type): Change type of valaddr parameter.
5509 * gdbtypes.h (resolve_dynamic_type): Update.
5510 * valarith.c (value_subscripted_rvalue): Update.
5511 * value.c (value_from_contents_and_address): Update.
5512
5513 2020-04-24 Tom Tromey <tromey@adacore.com>
5514
5515 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5516 "push_initial_value" parameter.
5517 (dwarf2_evaluate_property): Likewise.
5518 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5519
5520 2020-04-24 Tom Tromey <tromey@adacore.com>
5521
5522 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5523 (variant::matches, compute_variant_fields_recurse)
5524 (compute_variant_fields_inner, compute_variant_fields): New
5525 functions.
5526 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5527 Use resolved_type after type is made.
5528 (operator==): Add new cases.
5529 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5530 (struct discriminant_range, struct variant, struct variant_part):
5531 New.
5532 (union dynamic_prop_data) <variant_parts, original_type>: New
5533 members.
5534 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5535 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5536 constants.
5537 * value.c (unpack_bits_as_long): Now public.
5538 * value.h (unpack_bits_as_long): Declare.
5539
5540 2020-04-24 Tom Tromey <tromey@adacore.com>
5541
5542 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5543 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5544
5545 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5546
5547 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5548
5549 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5550
5551 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5552 (remove_fork_catchpoint, post_startup_inferior)
5553 (post_attach): Move...
5554 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5555 (remove_fork_catchpoint, post_startup_inferior)
5556 (post_attach): ...here.
5557 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5558 (remove_fork_catchpoint, post_startup_inferior)
5559 (post_attach): Move...
5560 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5561 (remove_fork_catchpoint, post_startup_inferior)
5562 (post_attach): ...here.
5563
5564 2020-04-24 Tom Tromey <tromey@adacore.com>
5565
5566 * nat/windows-nat.h (struct windows_thread_info)
5567 <pc_adjusted>: New member.
5568 * windows-nat.c (windows_fetch_one_register): Check
5569 pc_adjusted.
5570 (windows_nat_target::get_windows_debug_event)
5571 (windows_nat_target::wait): Set pc_adjusted.
5572
5573 2020-04-24 Tom de Vries <tdevries@suse.de>
5574
5575 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5576 Run gdb-add-index inside temp dir.
5577
5578 2020-04-23 Tom Tromey <tromey@adacore.com>
5579
5580 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5581 in loop.
5582
5583 2020-04-23 Luis Machado <luis.machado@linaro.org>
5584
5585 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5586 get_frame_register instead of gdbarch_unwind_pc.
5587
5588 2020-04-23 Tom de Vries <tdevries@suse.de>
5589
5590 * symtab.c (lookup_global_symbol): Prefer def over decl.
5591
5592 2020-04-23 Tom de Vries <tdevries@suse.de>
5593
5594 PR symtab/25807
5595 * block.c (best_symbol, better_symbol): Promote to external.
5596 * block.h (best_symbol, better_symbol): Declare.
5597 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5598 decl.
5599
5600 2020-04-23 Tom Tromey <tromey@adacore.com>
5601
5602 PR ada/25837:
5603 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5604 "const char *", not a "const std::string &".
5605 <name_and_matcher::operator==>: Update.
5606 * unittests/lookup_name_info-selftests.c: Change type of
5607 "result".
5608
5609 2020-04-23 Tom Tromey <tom@tromey.com>
5610
5611 * inferior.h (iterate_over_inferiors): Don't declare.
5612 * inferior.c (iterate_over_inferiors): Remove.
5613 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5614 Remove.
5615 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5616 use iterate_over_inferiors.
5617 (darwin_resume_inferior_it)
5618 (struct resume_inferior_threads_param)
5619 (darwin_resume_inferior_threads_it): Remove.
5620 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5621
5622 2020-04-23 Tom de Vries <tdevries@suse.de>
5623
5624 * blockframe.c (find_pc_partial_function): Use
5625 find_pc_sect_compunit_symtab rather than
5626 objfile->sf->qf->find_pc_sect_compunit_symtab.
5627
5628 2020-04-22 Tom de Vries <tdevries@suse.de>
5629
5630 PR symtab/25764
5631 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5632 in psymtabs.
5633
5634 2020-04-22 Tom de Vries <tdevries@suse.de>
5635
5636 PR symtab/25801
5637 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5638 symtabs.
5639
5640 2020-04-22 Tom de Vries <tdevries@suse.de>
5641
5642 PR symtab/25700
5643 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5644 CU if already created.
5645
5646 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5647
5648 * infrun.c (displaced_step_fixup): Switch to the event_thread
5649 before calling displaced_step_restore, not after.
5650
5651 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5652
5653 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5654 its inferior is not recorded by us.
5655 (record_btrace_target_open): Replace call to
5656 all_non_exited_threads () with call to current_inferior
5657 ()->non_exited_threads ().
5658 (record_btrace_target::stop_recording): Likewise.
5659 (record_btrace_target::close): Likewise.
5660 (record_btrace_target::wait): Likewise.
5661 (record_btrace_target::record_stop_replaying): Likewise.
5662
5663 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5664
5665 * btrace.c (btrace_enable): Throw an error on double enables and
5666 when enabling recording fails.
5667 (btrace_disable): Throw an error if the thread is not recorded.
5668
5669 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5670
5671 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5672 request if we do not have a thread_info.
5673
5674 2020-04-21 Tom de Vries <tdevries@suse.de>
5675
5676 PR gdb/25471
5677 * thread.c
5678 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5679 exception in get_frame_id.
5680
5681 2020-04-20 Tom Tromey <tromey@adacore.com>
5682
5683 * python/python.c (struct gdbpy_event): Mark move constructor as
5684 noexcept.
5685 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5686 constructor as noexcept.
5687 * completer.h (struct completion_result): Mark move constructor as
5688 noexcept.
5689 * completer.c (completion_result::completion_result): Use
5690 initialization style. Don't call reset_match_list.
5691
5692 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5693
5694 * MAINTAINERS (Write After Approval): Add myself.
5695
5696 2020-04-18 Tom Tromey <tom@tromey.com>
5697
5698 * windows-tdep.c (init_w32_command_list)
5699 (w32_prefix_command_valid): Restore.
5700 (_initialize_windows_tdep): Call init_w32_command_list.
5701
5702 2020-04-18 Tom Tromey <tom@tromey.com>
5703
5704 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5705 * value.c (value_fn_field): Update.
5706 * valops.c (find_function_in_inferior)
5707 (value_allocate_space_in_inferior): Update.
5708 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5709 Update.
5710 * tui/tui-source.c (tui_source_window::set_contents): Update.
5711 * symtab.c (lookup_global_or_static_symbol)
5712 (find_function_start_sal_1, skip_prologue_sal)
5713 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5714 * symmisc.c (dump_msymbols, dump_symtab_1)
5715 (maintenance_print_one_line_table): Update.
5716 * symfile.c (init_entry_point_info, section_is_mapped)
5717 (list_overlays_command, simple_read_overlay_table)
5718 (simple_overlay_update_1): Update.
5719 * stap-probe.c (handle_stap_probe): Update.
5720 * stabsread.c (dbx_init_float_type, define_symbol)
5721 (read_one_struct_field, read_enum_type, read_range_type): Update.
5722 * source.c (info_line_command): Update.
5723 * python/python.c (gdbpy_source_objfile_script)
5724 (gdbpy_execute_objfile_script): Update.
5725 * python/py-type.c (save_objfile_types): Update.
5726 * python/py-objfile.c (py_free_objfile): Update.
5727 * python/py-inferior.c (python_new_objfile): Update.
5728 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5729 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5730 (maintenance_check_psymtabs): Update.
5731 * printcmd.c (info_address_command): Update.
5732 * objfiles.h (struct objfile) <arch>: New method, from
5733 get_objfile_arch.
5734 (get_objfile_arch): Don't declare.
5735 * objfiles.c (get_objfile_arch): Remove.
5736 (filter_overlapping_sections): Update.
5737 * minsyms.c (msymbol_is_function): Update.
5738 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5739 (output_nondebug_symbol): Update.
5740 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5741 (mdebug_expand_psymtab): Update.
5742 * machoread.c (macho_add_oso_symfile): Update.
5743 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5744 Update.
5745 * linux-fork.c (checkpoint_command): Update.
5746 * linespec.c (convert_linespec_to_sals): Update.
5747 * jit.c (finalize_symtab): Update.
5748 * infrun.c (insert_exception_resume_from_probe): Update.
5749 * ia64-tdep.c (ia64_find_unwind_table): Update.
5750 * hppa-tdep.c (internalize_unwinds): Update.
5751 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5752 Update.
5753 * gcore.c (call_target_sbrk): Update.
5754 * elfread.c (record_minimal_symbol, elf_symtab_read)
5755 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5756 (elf_gnu_ifunc_resolve_by_got): Update.
5757 * dwarf2/read.c (create_addrmap_from_index)
5758 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5759 (read_debug_names_from_section)
5760 (process_psymtab_comp_unit_reader, add_partial_symbol)
5761 (add_partial_subprogram, process_full_comp_unit)
5762 (read_file_scope, read_func_scope, read_lexical_block_scope)
5763 (read_call_site_scope, dwarf2_ranges_read)
5764 (dwarf2_record_block_ranges, dwarf2_add_field)
5765 (mark_common_block_symbol_computed, read_tag_pointer_type)
5766 (read_tag_string_type, dwarf2_init_float_type)
5767 (dwarf2_init_complex_target_type, read_base_type)
5768 (partial_die_info::read, partial_die_info::read)
5769 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5770 (dwarf2_fetch_die_loc_sect_off): Update.
5771 * dwarf2/loc.c (dwarf2_find_location_expression)
5772 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5773 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5774 (dwarf2_loc_desc_get_symbol_read_needs)
5775 (locexpr_describe_location_piece, locexpr_describe_location_1)
5776 (loclist_describe_location): Update.
5777 * dwarf2/index-write.c (write_debug_names): Update.
5778 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5779 * dtrace-probe.c (dtrace_process_dof): Update.
5780 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5781 (process_one_symbol): Update.
5782 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5783 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5784 (coff_read_enum_type): Update.
5785 * cli/cli-cmds.c (edit_command, list_command): Update.
5786 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5787 * breakpoint.c (create_overlay_event_breakpoint)
5788 (create_longjmp_master_breakpoint)
5789 (create_std_terminate_master_breakpoint)
5790 (create_exception_master_breakpoint, get_sal_arch): Update.
5791 * block.c (block_gdbarch): Update.
5792 * annotate.c (annotate_source_line): Update.
5793
5794 2020-04-17 Tom Tromey <tromey@adacore.com>
5795
5796 * auto-load.c (show_auto_load_cmd): Remove.
5797 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5798 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5799 (maintenance_print_arc_command): Remove.
5800 * tui/tui-win.c (tui_command): Remove.
5801 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5802 * tui/tui-layout.c (tui_layout_command): Remove.
5803 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5804 * python/python.c (user_set_python, user_show_python): Remove.
5805 (_initialize_python): Use add_basic_prefix_cmd,
5806 add_show_prefix_cmd.
5807 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5808 (install_gdb_commands): Use add_basic_prefix_cmd,
5809 add_show_prefix_cmd.
5810 (info_guile_command): Remove.
5811 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5812 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5813 add_show_prefix_cmd.
5814 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5815 Remove do_set and do_show parameters.
5816 * cli/cli-style.c (set_style, show_style): Remove.
5817 (_initialize_cli_style): Use add_basic_prefix_cmd,
5818 add_show_prefix_cmd.
5819 (cli_style_option::add_setshow_commands): Remove do_set and
5820 do_show parameters.
5821 (cli_style_option::add_setshow_commands): Use
5822 add_basic_prefix_cmd, add_show_prefix_cmd.
5823 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5824 (set_style_name): Remove.
5825 * cli/cli-dump.c (dump_command, append_command): Remove.
5826 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5827 (tekhex_dump_command, binary_dump_command)
5828 (binary_append_command): Remove.
5829 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5830 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5831 (init_w32_command_list): Remove; move into ...
5832 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5833 * valprint.c (set_print, show_print, set_print_raw)
5834 (show_print_raw): Remove.
5835 (_initialize_valprint): Use add_basic_prefix_cmd,
5836 add_show_prefix_cmd.
5837 * typeprint.c (set_print_type, show_print_type): Remove.
5838 (_initialize_typeprint): Use add_basic_prefix_cmd,
5839 add_show_prefix_cmd.
5840 * record.c (set_record_command, show_record_command): Remove.
5841 (_initialize_record): Use add_basic_prefix_cmd,
5842 add_show_prefix_cmd.
5843 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5844 add_show_prefix_cmd.
5845 (info_command, show_command, set_debug, show_debug): Remove.
5846 * top.h (set_history, show_history): Don't declare.
5847 * top.c (set_history, show_history): Remove.
5848 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5849 (unset_tdesc_cmd): Remove.
5850 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5851 add_show_prefix_cmd.
5852 * symtab.c (info_module_command): Remove.
5853 (_initialize_symtab): Use add_basic_prefix_cmd.
5854 * symfile.c (overlay_command): Remove.
5855 (_initialize_symfile): Use add_basic_prefix_cmd.
5856 * sparc64-tdep.c (info_adi_command): Remove.
5857 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5858 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5859 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5860 add_show_prefix_cmd.
5861 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5862 (_initialize_serial): Use add_basic_prefix_cmd,
5863 add_show_prefix_cmd.
5864 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5865 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5866 add_show_prefix_cmd.
5867 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5868 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5869 add_show_prefix_cmd.
5870 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5871 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5872 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5873 add_show_prefix_cmd.
5874 * remote.c (remote_command, set_remote_cmd): Remove.
5875 (_initialize_remote): Use add_basic_prefix_cmd.
5876 * record-full.c (set_record_full_command)
5877 (show_record_full_command): Remove.
5878 (_initialize_record_full): Use add_basic_prefix_cmd,
5879 add_show_prefix_cmd.
5880 * record-btrace.c (cmd_set_record_btrace)
5881 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5882 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5883 (cmd_show_record_btrace_pt): Remove.
5884 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5885 add_show_prefix_cmd.
5886 * ravenscar-thread.c (set_ravenscar_command)
5887 (show_ravenscar_command): Remove.
5888 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5889 add_show_prefix_cmd.
5890 * mips-tdep.c (show_mips_command, set_mips_command)
5891 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5892 add_show_prefix_cmd.
5893 * maint.c (maintenance_command, maintenance_info_command)
5894 (maintenance_check_command, maintenance_print_command)
5895 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5896 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5897 add_show_prefix_cmd.
5898 (show_per_command_cmd): Remove.
5899 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5900 Remove.
5901 (maintenance_show_test_settings_cmd): Remove.
5902 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5903 add_show_prefix_cmd.
5904 * maint-test-options.c (maintenance_test_options_command):
5905 Remove.
5906 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5907 * macrocmd.c (macro_command): Remove
5908 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5909 * language.c (set_check, show_check): Remove.
5910 (_initialize_language): Use add_basic_prefix_cmd,
5911 add_show_prefix_cmd.
5912 * infcmd.c (unset_command): Remove.
5913 (_initialize_infcmd): Use add_basic_prefix_cmd.
5914 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5915 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5916 add_show_prefix_cmd.
5917 * go32-nat.c (go32_info_dos_command): Remove.
5918 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5919 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5920 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5921 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5922 (_initialize_frame): Use add_basic_prefix_cmd,
5923 add_show_prefix_cmd.
5924 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5925 (_initialize_dcache): Use add_basic_prefix_cmd,
5926 add_show_prefix_cmd.
5927 * cp-support.c (maint_cplus_command): Remove.
5928 (_initialize_cp_support): Use add_basic_prefix_cmd.
5929 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5930 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5931 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5932 add_basic_prefix_cmd, add_show_prefix_cmd.
5933 * breakpoint.c (save_command): Remove.
5934 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5935 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5936 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5937 add_show_prefix_cmd.
5938 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5939 (set_ada_command, show_ada_command): Remove.
5940 (_initialize_ada_language): Use add_basic_prefix_cmd,
5941 add_show_prefix_cmd.
5942 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5943
5944 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5945
5946 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5947 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5948
5949 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5950
5951 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5952 warning messages.
5953
5954 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5955
5956 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5957 import table is not at beginning of .idata section.
5958
5959 2020-04-16 Pedro Alves <palves@redhat.com>
5960
5961 * inferior.c (delete_inferior): Use delete operator directly
5962 instead of delete_program_space.
5963 * progspace.c (add_program_space): New, factored out from
5964 program_space::program_space.
5965 (remove_program_space): New, factored out from
5966 delete_program_space.
5967 (program_space::program_space): Remove intro comment. Rewrite.
5968 (program_space::~program_space): Remove intro comment. Call
5969 remove_program_space.
5970 (delete_program_space): Delete.
5971 * progspace.h (program_space::program_space): Make explicit. Move
5972 intro comment here, adjusted.
5973 (program_space::~program_space): Move intro comment here,
5974 adjusted.
5975 (delete_program_space): Remove.
5976
5977 2020-04-16 Tom Tromey <tromey@adacore.com>
5978
5979 * windows-nat.c (windows_nat::handle_access_violation): New
5980 function.
5981 * nat/windows-nat.h (handle_access_violation): Declare.
5982 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5983 windows-nat.c. Call handle_access_violation.
5984
5985 2020-04-16 Tom de Vries <tdevries@suse.de>
5986
5987 PR symtab/25791
5988 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5989 CUs without psymtab.
5990
5991 2020-04-16 Kevin Buettner <kevinb@redhat.com>
5992
5993 * python/python.c (do_start_initialization): Don't call
5994 PyEval_InitThreads for Python 3.9 and beyond.
5995
5996 2020-04-15 Kamil Rytarowski <n54@gmx.com>
5997
5998 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5999 thread functions.
6000 (obsd_nat_target::wait): Likewise.
6001
6002 2020-04-15 Tom Tromey <tromey@adacore.com>
6003
6004 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6005 (DEBUG_EXCEPT): Use debug_printf.
6006
6007 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6008
6009 * completer.c (class completion_tracker::completion_hash_entry)
6010 <hash_name>: New member function.
6011 (completion_tracker::discard_completions): New callback to hash a
6012 completion_hash_entry, pass this to htab_create_alloc.
6013
6014 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6015
6016 * windows-nat.c (windows_make_so): Warn rather than stopping with
6017 an error if realpath() fails.
6018
6019 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6020
6021 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6022 (nbsd_nat_target::info_proc): Add do_status.
6023
6024 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6025 Tom de Vries <tdevries@suse.de>
6026
6027 PR symtab/25718
6028 * psympriv.h (struct partial_symtab::read_symtab)
6029 (struct partial_symtab::expand_psymtab)
6030 (struct partial_symtab::read_dependencies): Update comments.
6031 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6032 read_symtab for includer.
6033 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6034 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6035 (struct dwarf2_include_psymtab::m_readin): Remove.
6036 (struct dwarf2_include_psymtab::includer): New member function.
6037 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6038
6039 2020-04-14 Tom de Vries <tdevries@suse.de>
6040
6041 PR symtab/25720
6042 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6043 with NULL symbol_matcher and lookup_name.
6044 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6045 and lookup_name.
6046 * dwarf2/read.c (dw2_expand_symtabs_matching)
6047 (dw2_debug_names_expand_symtabs_matching): Same.
6048 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6049 Make lookup_name a pointer. Update comment.
6050 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6051 lookup_name being a pointer.
6052 * symfile.c (expand_symtabs_matching): Same.
6053 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6054 * linespec.c (iterate_over_all_matching_symtabs): Same.
6055
6056 2020-04-13 Tom Tromey <tom@tromey.com>
6057
6058 * run-on-main-thread.c: Update include.
6059 * unittests/main-thread-selftests.c: Update include.
6060 * tui/tui-win.c: Update include.
6061 * tui/tui-io.c: Update include.
6062 * tui/tui-interp.c: Update include.
6063 * tui/tui-hooks.c: Update include.
6064 * top.h: Update include.
6065 * top.c: Update include.
6066 * ser-base.c: Update include.
6067 * remote.c: Update include.
6068 * remote-notif.c: Update include.
6069 * remote-fileio.c: Update include.
6070 * record-full.c: Update include.
6071 * record-btrace.c: Update include.
6072 * python/python.c: Update include.
6073 * posix-hdep.c: Update include.
6074 * mingw-hdep.c: Update include.
6075 * mi/mi-main.c: Update include.
6076 * mi/mi-interp.c: Update include.
6077 * main.c: Update include.
6078 * linux-nat.c: Update include.
6079 * interps.c: Update include.
6080 * infrun.c: Update include.
6081 * inf-loop.c: Update include.
6082 * event-top.c: Update include.
6083 * event-loop.c: Move to ../gdbsupport/.
6084 * event-loop.h: Move to ../gdbsupport/.
6085 * async-event.h: Update include.
6086 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6087
6088 2020-04-13 Tom Tromey <tom@tromey.com>
6089
6090 * tui/tui-win.c: Include async-event.h.
6091 * remote.c: Include async-event.h.
6092 * remote-notif.c: Include async-event.h.
6093 * record-full.c: Include async-event.h.
6094 * record-btrace.c: Include async-event.h.
6095 * infrun.c: Include async-event.h.
6096 * event-top.c: Include async-event.h.
6097 * event-loop.h: Move some declarations to async-event.h.
6098 * event-loop.c: Don't include ser-event.h or top.h. Move some
6099 code to async-event.c.
6100 * async-event.h: New file.
6101 * async-event.c: New file.
6102 * Makefile.in (COMMON_SFILES): Add async-event.c.
6103 (HFILES_NO_SRCDIR): Add async-event.h.
6104
6105 2020-04-13 Tom Tromey <tom@tromey.com>
6106
6107 * utils.c (flush_streams): New function.
6108 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6109
6110 2020-04-13 Tom Tromey <tom@tromey.com>
6111
6112 * event-loop.c (handle_file_event): Use warning, not
6113 printf_unfiltered.
6114
6115 2020-04-13 Tom Tromey <tom@tromey.com>
6116
6117 * event-loop.c: Include <chrono>.
6118
6119 2020-04-13 Tom Tromey <tom@tromey.com>
6120
6121 * gdb_select.h: Move to ../gdbsupport/.
6122 * event-loop.c: Update include path.
6123 * top.c: Update include path.
6124 * ser-base.c: Update include path.
6125 * ui-file.c: Update include path.
6126 * ser-tcp.c: Update include path.
6127 * guile/scm-ports.c: Update include path.
6128 * posix-hdep.c: Update include path.
6129 * ser-unix.c: Update include path.
6130 * gdb_usleep.c: Update include path.
6131 * mingw-hdep.c: Update include path.
6132 * inflow.c: Update include path.
6133 * infrun.c: Update include path.
6134 * event-top.c: Update include path.
6135
6136 2020-04-13 Tom Tromey <tom@tromey.com>
6137
6138 * configure: Rebuild.
6139 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6140
6141 2020-04-13 Tom Tromey <tom@tromey.com>
6142
6143 * event-loop.h (start_event_loop): Don't declare.
6144 * event-loop.c (start_event_loop): Move...
6145 * main.c (start_event_loop): ...here. Now static.
6146
6147 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6148
6149 * MAINTAINERS: Update my email address.
6150
6151 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6152
6153 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6154 IP_ALL.
6155
6156 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6157
6158 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6159 (nbsd_nat_target::info_proc): Add do_cmdline.
6160
6161 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6162
6163 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6164 (nbsd_nat_target::info_proc): Add do_cwd.
6165
6166 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6167
6168 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6169
6170 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6171
6172 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6173 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6174 (nbsd_nat_target::info_proc): New functions.
6175 * nbsd-nat.c (kinfo_get_vmmap): New function.
6176 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6177 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6178 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6179 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6180 functions.
6181 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6182 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6183 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6184 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6185 (KINFO_VME_FLAG_GROWS_DOWN): New.
6186
6187 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6188
6189 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6190 bit shift.
6191
6192 2020-04-10 Tom Tromey <tromey@adacore.com>
6193
6194 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6195
6196 2020-04-10 Tom Tromey <tromey@adacore.com>
6197
6198 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6199 separate debug files.
6200
6201 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6202
6203 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6204 Move to...
6205 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6206 ... here.
6207 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6208 Check for STATUS_WX86_BREAKPOINT.
6209 (windows_nat_target::wait): Same.
6210
6211 2020-04-10 Tom de Vries <tdevries@suse.de>
6212
6213 PR cli/25808
6214 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6215
6216 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6217
6218 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6219 (Write After Approval): Remove Tom de Vries.
6220
6221 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6222
6223 revert partially:
6224 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6225
6226 * buildsym.c (record_line): Fix undefined behavior and preserve
6227 lines at eof.
6228
6229 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6230
6231 * auxv.h (svr4_auxv_parse): New.
6232 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6233 and generic_auxv_parse.
6234 (svr4_auxv_parse): Add.
6235 * obsd-tdep.c: Include "auxv.h".
6236 (obsd_auxv_parse): Remove.
6237 (obsd_init_abi): Remove comment.
6238 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6239 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6240 * nbsd-tdep.c: Include "auxv.h".
6241 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6242
6243 2020-04-08 Tom Tromey <tromey@adacore.com>
6244
6245 * nat/windows-nat.h (last_wait_event): Don't declare.
6246 (wait_for_debug_event): Update comment.
6247 * nat/windows-nat.c (last_wait_event): Now static.
6248
6249 2020-04-08 Tom Tromey <tromey@adacore.com>
6250
6251 * windows-nat.c (wait_for_debug_event): Move to
6252 nat/windows-nat.c.
6253 * nat/windows-nat.h (wait_for_debug_event): Declare.
6254 * nat/windows-nat.c (wait_for_debug_event): Move from
6255 windows-nat.c. No longer static.
6256
6257 2020-04-08 Tom Tromey <tromey@adacore.com>
6258
6259 * windows-nat.c (get_windows_debug_event): Use
6260 fetch_pending_stop.
6261 * nat/windows-nat.h (fetch_pending_stop): Declare.
6262 * nat/windows-nat.c (fetch_pending_stop): New function.
6263
6264 2020-04-08 Tom Tromey <tromey@adacore.com>
6265
6266 * windows-nat.c (windows_continue): Use matching_pending_stop and
6267 continue_last_debug_event.
6268 * nat/windows-nat.h (matching_pending_stop)
6269 (continue_last_debug_event): Declare.
6270 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6271 (matching_pending_stop, continue_last_debug_event): New
6272 functions.
6273
6274 2020-04-08 Tom Tromey <tromey@adacore.com>
6275
6276 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6277 (handle_exception_result): Move to nat/windows-nat.h.
6278 (DEBUG_EXCEPTION_SIMPLE): Remove.
6279 (windows_nat::handle_ms_vc_exception): New function.
6280 (handle_exception): Move to nat/windows-nat.c.
6281 (get_windows_debug_event): Update.
6282 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6283 nat/windows-nat.c.
6284 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6285 (handle_exception_result): Move from windows-nat.c.
6286 (handle_exception): Declare.
6287 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6288 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6289 windows-nat.c.
6290
6291 2020-04-08 Tom Tromey <tromey@adacore.com>
6292
6293 * windows-nat.c (exception_count, event_count): Remove.
6294 (handle_exception, get_windows_debug_event)
6295 (do_initial_windows_stuff): Update.
6296
6297 2020-04-08 Tom Tromey <tromey@adacore.com>
6298
6299 * windows-nat.c (windows_nat::handle_load_dll)
6300 (windows_nat::handle_unload_dll): Rename. No longer static.
6301 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6302 Declare.
6303
6304 2020-04-08 Tom Tromey <tromey@adacore.com>
6305
6306 * complaints.h (stop_whining): Declare at top-level.
6307 (complaint): Don't declare stop_whining.
6308
6309 2020-04-08 Tom Tromey <tromey@adacore.com>
6310
6311 * windows-nat.c (windows_nat::handle_output_debug_string):
6312 Rename. No longer static.
6313 * nat/windows-nat.h (handle_output_debug_string): Declare.
6314
6315 2020-04-08 Tom Tromey <tromey@adacore.com>
6316
6317 * windows-nat.c (current_process_handle, current_process_id)
6318 (main_thread_id, last_sig, current_event, last_wait_event)
6319 (current_windows_thread, desired_stop_thread_id, pending_stops)
6320 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6321 (display_selectors, fake_create_process)
6322 (get_windows_debug_event): Update.
6323 * nat/windows-nat.h (current_process_handle, current_process_id)
6324 (main_thread_id, last_sig, current_event, last_wait_event)
6325 (current_windows_thread, desired_stop_thread_id, pending_stops)
6326 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6327 * nat/windows-nat.c (current_process_handle, current_process_id)
6328 (main_thread_id, last_sig, current_event, last_wait_event)
6329 (current_windows_thread, desired_stop_thread_id, pending_stops)
6330 (siginfo_er): New globals. Move from windows-nat.c.
6331
6332 2020-04-08 Tom Tromey <tromey@adacore.com>
6333
6334 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6335 (handle_load_dll): Update.
6336 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6337
6338 2020-04-08 Tom Tromey <tromey@adacore.com>
6339
6340 * windows-nat.c (enum thread_disposition_type): Move to
6341 nat/windows-nat.h.
6342 (windows_nat::thread_rec): Rename from thread_rec. No longer
6343 static.
6344 (windows_add_thread, windows_nat_target::fetch_registers)
6345 (windows_nat_target::store_registers, handle_exception)
6346 (windows_nat_target::resume, get_windows_debug_event)
6347 (windows_nat_target::get_tib_address)
6348 (windows_nat_target::thread_name)
6349 (windows_nat_target::thread_alive): Update.
6350 * nat/windows-nat.h (enum thread_disposition_type): Move from
6351 windows-nat.c.
6352 (thread_rec): Declare.
6353
6354 2020-04-08 Tom Tromey <tromey@adacore.com>
6355
6356 * windows-nat.c: Add "using namespace".
6357 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6358 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6359
6360 2020-04-08 Tom Tromey <tromey@adacore.com>
6361
6362 * nat/windows-nat.h (struct windows_thread_info): Declare
6363 destructor.
6364 * nat/windows-nat.c (~windows_thread_info): New.
6365
6366 2020-04-08 Tom Tromey <tromey@adacore.com>
6367
6368 PR gdb/22992
6369 * windows-nat.c (current_event): Update comment.
6370 (last_wait_event, desired_stop_thread_id): New globals.
6371 (struct pending_stop): New.
6372 (pending_stops): New global.
6373 (windows_nat_target) <stopped_by_sw_breakpoint>
6374 <supports_stopped_by_sw_breakpoint>: New methods.
6375 (windows_fetch_one_register): Add assertions. Adjust PC.
6376 (windows_continue): Handle pending stops. Suspend other threads
6377 when stepping. Use last_wait_event
6378 (wait_for_debug_event): New function.
6379 (get_windows_debug_event): Use wait_for_debug_event. Handle
6380 pending stops. Queue spurious stops.
6381 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6382 (windows_nat_target::kill): Use wait_for_debug_event.
6383 * nat/windows-nat.h (struct windows_thread_info)
6384 <stopped_at_software_breakpoint>: New field.
6385 * nat/windows-nat.c (windows_thread_info::resume): Clear
6386 stopped_at_software_breakpoint.
6387
6388 2020-04-08 Tom Tromey <tromey@adacore.com>
6389
6390 * windows-nat.c (enum thread_disposition_type): New.
6391 (thread_rec): Replace "get_context" parameter with "disposition";
6392 change type.
6393 (windows_add_thread, windows_nat_target::fetch_registers)
6394 (windows_nat_target::store_registers, handle_exception)
6395 (windows_nat_target::resume, get_windows_debug_event)
6396 (windows_nat_target::get_tib_address)
6397 (windows_nat_target::thread_name)
6398 (windows_nat_target::thread_alive): Update.
6399
6400 2020-04-08 Tom Tromey <tromey@adacore.com>
6401
6402 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6403 (windows_continue): Use windows_continue::resume.
6404 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6405 resume>: Declare new methods.
6406 * nat/windows-nat.c: New file.
6407 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6408
6409 2020-04-08 Tom Tromey <tromey@adacore.com>
6410
6411 * windows-nat.c (windows_add_thread, windows_delete_thread)
6412 (windows_nat_target::fetch_registers)
6413 (windows_nat_target::store_registers, fake_create_process)
6414 (windows_nat_target::resume, windows_nat_target::resume)
6415 (get_windows_debug_event, windows_nat_target::wait)
6416 (windows_nat_target::pid_to_str)
6417 (windows_nat_target::get_tib_address)
6418 (windows_nat_target::get_ada_task_ptid)
6419 (windows_nat_target::thread_name)
6420 (windows_nat_target::thread_alive): Use lwp, not tid.
6421
6422 2020-04-08 Tom Tromey <tromey@adacore.com>
6423
6424 * windows-nat.c (handle_exception)
6425 (windows_nat_target::thread_name): Update.
6426 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6427 <name>: Now unique_xmalloc_ptr.
6428
6429 2020-04-08 Tom Tromey <tromey@adacore.com>
6430
6431 * windows-nat.c (thread_rec)
6432 (windows_nat_target::fetch_registers): Update.
6433 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6434 Update comment.
6435 <debug_registers_changed, reload_context>: Now bool.
6436
6437 2020-04-08 Tom Tromey <tromey@adacore.com>
6438
6439 * windows-nat.c (windows_add_thread): Use new.
6440 (windows_init_thread_list, windows_delete_thread): Use delete.
6441 (get_windows_debug_event): Update.
6442 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6443 destructor, and initializers.
6444
6445 2020-04-08 Tom Tromey <tromey@adacore.com>
6446
6447 * windows-nat.c (struct windows_thread_info): Remove.
6448 * nat/windows-nat.h: New file.
6449
6450 2020-04-08 Tom Tromey <tromey@adacore.com>
6451
6452 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6453 (thread_rec, windows_add_thread, windows_delete_thread)
6454 (windows_continue): Update.
6455
6456 2020-04-08 Tom Tromey <tromey@adacore.com>
6457
6458 * windows-nat.c (struct windows_thread_info): Remove typedef.
6459 (thread_head): Remove.
6460 (thread_list): New global.
6461 (thread_rec, windows_add_thread, windows_init_thread_list)
6462 (windows_delete_thread, windows_continue): Update.
6463
6464 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6465
6466 * windows-tdep.h (windows_init_abi): Add comment.
6467 (cygwin_init_abi): New declaration.
6468 * windows-tdep.c: Split signal enumeration in two, one for
6469 Windows and one for Cygwin.
6470 (windows_gdb_signal_to_target): Only deal with signal of the
6471 Windows OS ABI.
6472 (cygwin_gdb_signal_to_target): New function.
6473 (windows_init_abi): Rename to windows_init_abi_common, don't set
6474 gdb_signal_to_target gdbarch method. Add new new function with
6475 this name.
6476 (cygwin_init_abi): New function.
6477 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6478 comment. Don't call windows_init_abi.
6479 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6480 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6481 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6482 i386_windows_init_abi_common, don't call windows_init_abi. Add
6483 a new function of this name.
6484 (i386_cygwin_init_abi): New function.
6485 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6486 OS ABI Cygwin.
6487
6488 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6489
6490 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6491 parameter.c.
6492 (dwarf2_read_gdb_index): Update.
6493
6494 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6495
6496 * nbsd-tdep.c: Include "objfiles.h".
6497 (nbsd_skip_solib_resolver): New.
6498 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6499
6500 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6501
6502 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6503 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6504 with DW_LLE_base_addressx are being emitted in DWARFv5.
6505 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6506 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6507 unsigned integer.
6508
6509 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6510
6511 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6512 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6513 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6514 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6515 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6516 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6517 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6518
6519
6520 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6521
6522 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6523 (read_loclist_index): New function definition.
6524 (lookup_loclist_base): New function definition.
6525 (read_loclist_header): New function definition.
6526 (dwarf2_cu): Add loclist_base and loclist_header field.
6527 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6528 (read_full_die_1): Read the value of DW_AT_loclists_base.
6529 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6530 (read_attribute_value): Handle DW_FORM_loclistx.
6531 (skip_one_die): Handle DW_FORM_loclistx.
6532 (loclist_header): New structure declaration.
6533 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6534
6535 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6536
6537 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6538 constructor. Remove `addr` parameter from other constructor and
6539 add `per_cu` parameter.
6540 * dwarf2/read.c (create_partial_symtab): Update.
6541
6542 2020-04-07 Tom de Vries <tdevries@suse.de>
6543
6544 PR symtab/25796
6545 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6546 (partial_die_info::fixup): Inherit has_const_value.
6547
6548 2020-04-07 Tom de Vries <tdevries@suse.de>
6549
6550 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6551 symbols without address.
6552
6553 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6554
6555 * nbsd-nat.h (struct thread_info): Add forward declaration.
6556 (nbsd_nat_target::thread_alive): Add.
6557 (nbsd_nat_target::thread_name): Likewise.
6558 (nbsd_nat_target::update_thread_list): Likewise.
6559 (update_thread_list::post_attach): Likewise.
6560 (post_attach::pid_to_str): Likewise.
6561 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6562 (nbsd_thread_lister): Add.
6563 (nbsd_nat_target::thread_alive): Likewise.
6564 (nbsd_nat_target::thread_name): Likewise.
6565 (nbsd_add_threads): Likewise.
6566 (update_thread_list::post_attach): Likewise.
6567 (nbsd_nat_target::update_thread_list): Likewise.
6568 (post_attach::pid_to_str): Likewise.
6569
6570 2020-04-06 Tom Tromey <tromey@adacore.com>
6571
6572 * ada-valprint.c (print_variant_part): Extract the variant field.
6573 (print_field_values): Use the field as the outer value when
6574 recursing.
6575
6576 2020-04-06 Tom Tromey <tromey@adacore.com>
6577
6578 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6579 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6580 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6581 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6582 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6583
6584 2020-04-06 Tom Tromey <tromey@adacore.com>
6585
6586 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6587 TYPE_CODE_ERROR.
6588
6589 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6590
6591 * nbsd-tdep.c: Include "gdbarch.h".
6592 Define enum with NetBSD signal numbers.
6593 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6594 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6595 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6596 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6597 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6598 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6599 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6600 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6601 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6602 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6603 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6604 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6605
6606 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6607
6608 PR gdb/25325
6609 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6610
6611 2020-04-03 Tom Tromey <tromey@adacore.com>
6612
6613 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6614 Read constant block.
6615
6616 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6617
6618 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6619 (gdb_bfd_get_full_section_contents): New declaration.
6620 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6621 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6622 gdb_bfd_get_full_section_contents.
6623
6624 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6625
6626 * exec.c (build_section_table): Replace internal_error with
6627 gdb_assert.
6628 (section_table_xfer_memory_partial): Likewise.
6629 * mdebugread.c (parse_partial_symbols): Likewise.
6630 * psymtab.c (lookup_partial_symbol): Likewise.
6631 * utils.c (wrap_here): Likewise.
6632
6633 2020-04-02 Tom Tromey <tromey@adacore.com>
6634
6635 * f-lang.c (build_fortran_types): Use arch_type to initialize
6636 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6637
6638 2020-04-02 Tom Tromey <tromey@adacore.com>
6639
6640 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6641 of attributes.
6642
6643 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6644 Bernd Edlinger <bernd.edlinger@hotmail.de>
6645 Tom Tromey <tromey@adacore.com>
6646
6647 * buildsym.c (buildsym_compunit::record_line): Remove
6648 deduplication code.
6649
6650 2020-04-02 Tom de Vries <tdevries@suse.de>
6651
6652 PR ada/24671
6653 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6654
6655 2020-04-02 Tom de Vries <tdevries@suse.de>
6656
6657 * dwarf2/read.c (dwarf2_gdb_index_functions,
6658 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6659 NULL.
6660 * psymtab.c (psym_lookup_global_symbol_language): New function.
6661 (psym_functions): Init psym_lookup_global_symbol_language with
6662 psym_lookup_global_symbol_language.
6663 * symfile-debug.c (debug_sym_quick_functions): Init
6664 lookup_global_symbol_language with NULL.
6665 * symfile.c (set_initial_language): Remove fixme comment.
6666 * symfile.h (struct quick_symbol_functions): Add
6667 lookup_global_symbol_language.
6668 * symtab.c (find_quick_global_symbol_language): New function.
6669 (find_main_name): Use find_quick_global_symbol_language.
6670
6671 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6672
6673 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6674
6675 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6676
6677 * buildsym.c (record_line): Fix undefined behavior and preserve
6678 lines at eof.
6679
6680 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6681
6682 * buildsym.c (record_line): Fix the resizing condition.
6683
6684 2020-04-01 Tom Tromey <tom@tromey.com>
6685
6686 * value.h (value_literal_complex): Add comment.
6687 * valops.c (value_literal_complex): Refer to value.h.
6688
6689 2020-04-01 Tom Tromey <tom@tromey.com>
6690
6691 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6692 (scalar_type): New rule, from typebase.
6693 (typebase): Use scalar_type. Recognize complex types.
6694 (field_name): Handle FLOAT_KEYWORD.
6695 (ident_tokens): Add _Complex and __complex__.
6696
6697 2020-04-01 Tom Tromey <tom@tromey.com>
6698
6699 PR exp/25299:
6700 * valarith.c (promotion_type, complex_binop): New functions.
6701 (scalar_binop): Handle complex numbers. Use promotion_type.
6702 (value_pos, value_neg, value_complement): Handle complex numbers.
6703
6704 2020-04-01 Tom Tromey <tom@tromey.com>
6705
6706 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6707 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6708 (parse_number): Handle complex numbers.
6709
6710 2020-04-01 Tom Tromey <tom@tromey.com>
6711
6712 * c-valprint.c (c_decorations): Change complex suffix to "i".
6713
6714 2020-04-01 Tom Tromey <tom@tromey.com>
6715
6716 * valprint.c (generic_value_print_complex): Use accessors.
6717 * value.h (value_real_part, value_imaginary_part): Declare.
6718 * valops.c (value_real_part, value_imaginary_part): New
6719 functions.
6720 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6721
6722 2020-04-01 Tom Tromey <tom@tromey.com>
6723
6724 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6725 (read_range_type): Update.
6726 * mdebugread.c (basic_type): Update.
6727 * go-lang.c (build_go_types): Use init_complex_type.
6728 * gdbtypes.h (struct main_type) <complex_type>: New member.
6729 (init_complex_type): Update.
6730 (arch_complex_type): Don't declare.
6731 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6732 Make name if none given. Use alloc_type_copy. Look for cached
6733 complex type.
6734 (arch_complex_type): Remove.
6735 (gdbtypes_post_init): Use init_complex_type.
6736 * f-lang.c (build_fortran_types): Use init_complex_type.
6737 * dwarf2/read.c (read_base_type): Update.
6738 * d-lang.c (build_d_types): Use init_complex_type.
6739 * ctfread.c (read_base_type): Update.
6740
6741 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6742
6743 * infrun.c (stop_all_threads): Update assertion, plus when
6744 stopping threads, take into account that we might be trying
6745 to stop an all-stop target.
6746 (stop_waiting): Call 'stop_all_threads' if there exists a
6747 non-stop target.
6748
6749 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6750
6751 * target.h (exists_non_stop_target): New function declaration.
6752 * target.c (exists_non_stop_target): New function.
6753
6754 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6755
6756 PR gdb/24789
6757 * eval.c (is_integral_or_integral_reference): New function.
6758 (evaluate_subexp_standard): Allow integer references in
6759 pointer arithmetic.
6760
6761 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6762
6763 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6764 check for no ptid in the stop reply when the target is non-stop.
6765
6766 2020-04-01 Tom Tromey <tromey@adacore.com>
6767
6768 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6769 "name" parameter to rvalue reference. Initialize m_name_holder.
6770 <lookup_name_info>: New overloads.
6771 <name>: Return gdb::string_view.
6772 <c_str>: New method.
6773 <make_ignore_params>: Update.
6774 <search_name_hash>: Update.
6775 <language_lookup_name>: Return const char *.
6776 <m_name>: Change type.
6777 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6778 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6779 (lookup_name_info::match_any): Update.
6780 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6781 Update.
6782 * minsyms.c (linkage_name_str): Update.
6783 * language.c (default_symbol_name_matcher): Update.
6784 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6785 Update.
6786 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6787 (ada_lookup_name_info::ada_lookup_name_info): Update.
6788 (literal_symbol_name_matcher): Update.
6789
6790 2020-04-01 Tom Tromey <tromey@adacore.com>
6791
6792 * psymtab.c (psymtab_search_name): Remove function.
6793 (psym_lookup_symbol): Create search name and lookup name here.
6794 (lookup_partial_symbol): Remove "name" parameter; add
6795 lookup_name.
6796 (psym_expand_symtabs_for_function): Update.
6797
6798 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6799
6800 PR tui/25597:
6801 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6802
6803 2020-03-31 Tom Tromey <tromey@adacore.com>
6804
6805 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6806 memcpy.
6807
6808 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6809
6810 * features/riscv/32bit-csr.xml: Regenerated.
6811 * features/riscv/64bit-csr.xml: Regenerated.
6812
6813 2020-03-30 Tom Tromey <tromey@adacore.com>
6814
6815 * ada-valprint.c (print_variant_part): Update.
6816 * ada-lang.h (ada_which_variant_applies): Update.
6817 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6818 outer_valaddr parameters; replace with "outer" value parameter.
6819 (to_fixed_variant_branch_type): Update.
6820
6821 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6822
6823 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6824 <list>. Remove inclusion of observable.h.
6825 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6826 (struct arch_lwp_info): New struct.
6827 (class ppc_linux_dreg_interface): New class.
6828 (struct ppc_linux_process_info): New struct.
6829 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6830 <low_new_clone, low_forget_process, low_prepare_to_resume>
6831 <copy_thread_dreg_state, mark_thread_stale>
6832 <mark_debug_registers_changed, register_hw_breakpoint>
6833 <clear_hw_breakpoint, register_wp, clear_wp>
6834 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6835 <num_memory_accesses, get_trigger_type>
6836 <create_watchpoint_request, hwdebug_point_cmp>
6837 <init_arch_lwp_info, get_arch_lwp_info>
6838 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6839 methods.
6840 <struct ptid_hash>: New inner struct.
6841 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6842 members.
6843 (saved_dabr_value, hwdebug_info, max_slots_number)
6844 (struct hw_break_tuple, struct thread_points, ppc_threads)
6845 (have_ptrace_hwdebug_interface)
6846 (hwdebug_find_thread_points_by_tid)
6847 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6848 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6849 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6850 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6851 use m_dreg_interface.
6852 (hwdebug_point_cmp): Change to...
6853 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6854 reference arguments instead of pointers.
6855 (ppc_linux_nat_target::ranged_break_num_registers): Use
6856 m_dreg_interface.
6857 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6858 m_dreg_interface. Call register_hw_breakpoint.
6859 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6860 m_dreg_interface. Call clear_hw_breakpoint.
6861 (get_trigger_type): Change to...
6862 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6863 comment.
6864 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6865 use m_dreg_interface. Call register_hw_breakpoint.
6866 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6867 use m_dreg_interface. Call clear_hw_breakpoint.
6868 (can_use_watchpoint_cond_accel): Change to...
6869 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6870 method. Update comment, use m_dreg_interface and
6871 m_process_info.
6872 (calculate_dvc): Change to...
6873 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6874 m_dreg_interface.
6875 (num_memory_accesses): Change to...
6876 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6877 (check_condition): Change to...
6878 (ppc_linux_nat_target::check_condition): ...this method.
6879 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6880 comment, use m_dreg_interface.
6881 (create_watchpoint_request): Change to...
6882 (ppc_linux_nat_target::create_watchpoint_request): ...this
6883 method. Use m_dreg_interface.
6884 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6885 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6886 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6887 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6888 (ppc_linux_nat_target::low_forget_process)
6889 (ppc_linux_nat_target::low_new_fork)
6890 (ppc_linux_nat_target::low_new_clone)
6891 (ppc_linux_nat_target::low_delete_thread)
6892 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6893 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6894 only call mark_thread_stale.
6895 (ppc_linux_thread_exit): Remove.
6896 (ppc_linux_nat_target::stopped_data_address): Change to...
6897 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6898 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6899 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6900 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6901 comment. Call low_stopped_data_address.
6902 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6903 m_dreg_interface.
6904 (ppc_linux_nat_target::masked_watch_num_registers): Use
6905 m_dreg_interface.
6906 (ppc_linux_nat_target::copy_thread_dreg_state)
6907 (ppc_linux_nat_target::mark_thread_stale)
6908 (ppc_linux_nat_target::mark_debug_registers_changed)
6909 (ppc_linux_nat_target::register_hw_breakpoint)
6910 (ppc_linux_nat_target::clear_hw_breakpoint)
6911 (ppc_linux_nat_target::register_wp)
6912 (ppc_linux_nat_target::clear_wp)
6913 (ppc_linux_nat_target::init_arch_lwp_info)
6914 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6915 (_initialize_ppc_linux_nat): Remove observer callback.
6916
6917 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6918
6919 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6920 (ppc_linux_nat_target::auxv_parse)
6921 (ppc_linux_nat_target::read_description)
6922 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6923 Move up.
6924
6925 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6926
6927 * linux-nat.h (low_new_clone): New method.
6928 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6929
6930 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6931
6932 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6933 (dbx_expand_psymtab): ... this.
6934 (start_psymtab): Update.
6935 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6936 (mdebug_expand_psymtab): ... this.
6937 (parse_partial_symbols): Update.
6938 (new_psymtab): Update.
6939 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6940 (xcoff_expand_psymtab): ... this.
6941 (xcoff_start_psymtab): Update.
6942
6943 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6944
6945 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6946 <expand_dependencies>: ... this.
6947 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6948 (partial_symtab::expand_dependencies): ... this.
6949 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6950 Update.
6951 (dwarf2_psymtab::expand_psymtab): Update.
6952 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6953 * mdebugread.c (psymtab_to_symtab_1): Update.
6954 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6955
6956 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6957
6958 * psympriv.h (discard_psymtab): Remove.
6959 * dbxread.c (dbx_end_psymtab): Update.
6960 * xcoffread.c (xcoff_end_psymtab): Update.
6961
6962 2020-03-28 Tom Tromey <tom@tromey.com>
6963
6964 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6965 comment.
6966
6967 2020-03-28 Tom Tromey <tom@tromey.com>
6968
6969 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6970
6971 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
6972
6973 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6974
6975 2020-03-26 John Baldwin <jhb@FreeBSD.org>
6976
6977 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6978
6979 2020-03-26 Tom Tromey <tom@tromey.com>
6980
6981 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6982 (mark_common_block_symbol_computed, read_tag_string_type)
6983 (attr_to_dynamic_prop, read_subrange_type): Update.
6984 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6985 to be methods on struct attribute.
6986 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6987 (read_call_site_scope, partial_die_info::read)
6988 (partial_die_info::read, lookup_die_type, follow_die_ref):
6989 Update.
6990 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6991 from dwarf2_get_ref_die_offset.
6992 (attribute::constant_value): New method, from
6993 dwarf2_get_attr_constant_value.
6994 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6995 Declare method.
6996 <constant_value>: New method.
6997
6998 2020-03-26 Tom Tromey <tom@tromey.com>
6999
7000 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7001 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7002 (dwarf_type_encoding_name): Move to stringify.c.
7003 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7004 * dwarf2/stringify.c: New file.
7005 * dwarf2/stringify.h: New file.
7006
7007 2020-03-26 Tom Tromey <tom@tromey.com>
7008
7009 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7010 Rewrite.
7011
7012 2020-03-26 Tom Tromey <tom@tromey.com>
7013
7014 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7015 methods.
7016 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7017 (lookup_ranges_base): Likewise.
7018 (read_cutu_die_from_dwo, read_full_die_1): Update.
7019
7020 2020-03-26 Tom Tromey <tom@tromey.com>
7021
7022 * dwarf2/read.c (read_import_statement, read_file_scope)
7023 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7024 (read_lexical_block_scope, read_call_site_scope)
7025 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7026 (handle_struct_member_die, process_structure_scope)
7027 (update_enumeration_type_from_children)
7028 (process_enumeration_scope, read_array_type, read_common_block)
7029 (read_namespace, read_module, read_subroutine_type): Update.
7030 (sibling_die): Remove.
7031
7032 2020-03-26 Tom Tromey <tom@tromey.com>
7033
7034 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7035 (build_type_psymtabs_reader, read_structure_type)
7036 (read_enumeration_type, read_full_die_1): Update.
7037 (dwarf2_attr_no_follow): Move to die.h.
7038 * dwarf2/die.h (struct die_info) <attr>: New method.
7039
7040 2020-03-26 Tom Tromey <tom@tromey.com>
7041
7042 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7043 <base_address>: Now an optional.
7044 (dwarf2_find_base_address, dwarf2_rnglists_process)
7045 (dwarf2_ranges_process, fill_in_loclist_baton)
7046 (dwarf2_symbol_mark_computed): Update.
7047
7048 2020-03-26 Tom Tromey <tom@tromey.com>
7049
7050 * dwarf2/read.c (struct die_info): Move to die.h.
7051 * dwarf2/die.h: New file.
7052
7053 2020-03-26 Tom Tromey <tom@tromey.com>
7054
7055 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7056 * dwarf2/read.c
7057 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7058 Move to line-header.c.
7059 (read_checked_initial_length_and_offset, read_formatted_entries):
7060 Likewise.
7061 (dwarf_decode_line_header): Split into two.
7062 * dwarf2/line-header.c
7063 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7064 Move from read.c.
7065 (read_checked_initial_length_and_offset, read_formatted_entries):
7066 Likewise.
7067 (dwarf_decode_line_header): New function, split from read.c.
7068
7069 2020-03-26 Tom Tromey <tom@tromey.com>
7070
7071 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7072 Declare method.
7073 * dwarf2/read.c (read_attribute_value): Update.
7074 (dwarf2_per_objfile::read_line_string): Rename from
7075 read_indirect_line_string.
7076 (read_formatted_entries): Update.
7077
7078 2020-03-26 Tom Tromey <tom@tromey.com>
7079
7080 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7081 variable.
7082
7083 2020-03-26 Tom Tromey <tom@tromey.com>
7084
7085 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7086 const.
7087 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7088 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7089 parameter const.
7090
7091 2020-03-26 Tom Tromey <tom@tromey.com>
7092
7093 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7094 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7095 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7096 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7097
7098 2020-03-26 Tom Tromey <tom@tromey.com>
7099
7100 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7101 file_names_size, file_full_name, file_file_name>: Use const.
7102 <file_name_at, file_names>: Add const overload.
7103 * dwarf2/line-header.c (line_header::file_file_name)
7104 (line_header::file_full_name): Update.
7105
7106 2020-03-26 Tom Tromey <tom@tromey.com>
7107
7108 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7109 (macro_start_file, consume_improper_spaces)
7110 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7111 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7112 (dwarf_decode_macros): Move to macro.c.
7113 * dwarf2/macro.c: New file.
7114 * dwarf2/macro.h: New file.
7115 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7116
7117 2020-03-26 Tom Tromey <tom@tromey.com>
7118
7119 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7120 method.
7121 * dwarf2/section.c: New method. From
7122 read_indirect_string_at_offset_from.
7123 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7124 (read_indirect_string_at_offset_from): Move to section.c.
7125 (read_indirect_string_at_offset): Rewrite.
7126 (read_indirect_line_string_at_offset): Remove.
7127 (read_indirect_string, read_indirect_line_string)
7128 (dwarf_decode_macro_bytes): Update.
7129
7130 2020-03-26 Tom Tromey <tom@tromey.com>
7131
7132 * dwarf2/section.h (struct dwarf2_section_info)
7133 <overload_complaint>: Declare.
7134 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7135 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7136 Rename from dwarf2_section_buffer_overflow_complaint.
7137 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7138 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7139
7140 2020-03-26 Tom Tromey <tom@tromey.com>
7141
7142 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7143 Declare.
7144 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7145 Move from read.c.
7146 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7147 to section.c.
7148
7149 2020-03-26 Tom Tromey <tom@tromey.com>
7150
7151 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7152
7153 2020-03-26 Tom Tromey <tom@tromey.com>
7154
7155 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7156 "builder".
7157 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7158 parameter.
7159 (dwarf_decode_macros): Update.
7160
7161 2020-03-26 Tom Tromey <tom@tromey.com>
7162
7163 * dwarf2/read.c (read_attribute_value): Update.
7164 (read_indirect_string_from_dwz): Move to dwz.c; change into
7165 method.
7166 (dwarf_decode_macro_bytes): Update.
7167 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7168 * dwarf2/dwz.c: New file.
7169 * Makefile.in (COMMON_SFILES): Add dwz.c.
7170
7171 2020-03-26 Tom Tromey <tom@tromey.com>
7172
7173 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7174 * dwarf2/read.c: Add include.
7175 * dwarf2/index-write.c: Add include.
7176 * dwarf2/index-cache.c: Add include.
7177 * dwarf2/dwz.h: New file.
7178
7179 2020-03-25 Tom Tromey <tom@tromey.com>
7180
7181 * compile/compile-object-load.c (get_out_value_type): Mention
7182 correct symbol name in error message.
7183
7184 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7185
7186 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7187
7188 2020-03-25 Tom de Vries <tdevries@suse.de>
7189
7190 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7191 * symmisc.c (dump_symtab_1): Print user and includes fields.
7192 (maintenance_info_symtabs): Same.
7193
7194 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7195
7196 PR gdb/25534
7197 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7198 (riscv_regcache_cooked_write): New function.
7199 (riscv_push_dummy_call): Use new function.
7200 (riscv_return_value): Likewise.
7201
7202 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7203
7204 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7205 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7206 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7207 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7208 * infrun.c (follow_fork): Likewise.
7209 (follow_fork_inferior): Likewise.
7210 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7211 * linux-nat.h (class linux_nat_target): Likewise.
7212 * remote.c (class remote_target) <follow_fork>: Likewise.
7213 (remote_target::follow_fork): Likewise.
7214 * target-delegates.c: Re-generate.
7215 * target.c (default_follow_fork): Likewise.
7216 (target_follow_fork): Likewise.
7217 * target.h (struct target_ops) <follow_fork>: Likewise.
7218 (target_follow_fork): Likewise.
7219
7220 2020-03-24 Tom de Vries <tdevries@suse.de>
7221
7222 * psymtab.c (maintenance_info_psymtabs): Print user field.
7223
7224 2020-03-20 Tom Tromey <tromey@adacore.com>
7225
7226 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7227 const.
7228 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7229 const.
7230
7231 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7232
7233 * ptrace.m4: Don't check for ptrace declaration.
7234 * config.in: Re-generate.
7235 * configure: Re-generate.
7236 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7237 not defined.
7238
7239 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7240
7241 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7242 `PTRACE_TYPE_RET'.
7243 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7244 * sparc-nat.c (gdb_ptrace): Likewise.
7245 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7246
7247 2020-03-20 Tom Tromey <tromey@adacore.com>
7248
7249 * c-exp.y (lex_one_token): Fix assert.
7250
7251 2020-03-20 Tom Tromey <tromey@adacore.com>
7252
7253 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7254 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7255 strncpy call.
7256
7257 2020-03-20 Tom Tromey <tromey@adacore.com>
7258
7259 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7260
7261 2020-03-20 Tom Tromey <tromey@adacore.com>
7262
7263 * ada-valprint.c (print_variant_part): Remove parameters; switch
7264 to value-based API.
7265 (print_field_values): Likewise.
7266 (ada_val_print_struct_union): Likewise.
7267 (ada_value_print_1): Update.
7268
7269 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7270
7271 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7272 nbsd_nat_target instead of inf_ptrace_target.
7273 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7274 nbsd_nat_target.
7275
7276 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7277
7278 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7279 it to the ptrace call.
7280 * (store_registers): Likewise.
7281
7282 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7283
7284 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7285 it to the ptrace call.
7286 * (store_registers): Likewise.
7287
7288 2020-03-19 Luis Machado <luis.machado@linaro.org>
7289
7290 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7291 valid, fetch vg value from ptrace.
7292
7293 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7294 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7295 * inf-ptrace.c: Likewise.
7296 * (gdb_ptrace): Add.
7297 * (inf_ptrace_target::resume): Update.
7298 * (inf_ptrace_target::xfer_partial): Likewise.
7299 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7300 * (inf_ptrace_peek_poke): Update.
7301
7302 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7303
7304 * x86-bsd-nat.c (gdb_ptrace): New.
7305 * (x86bsd_dr_set): Add new argument `ptid'.
7306 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7307 x86bsd_dr_set_addr): Update.
7308
7309 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7310
7311 * remote.c (remote_target::process_stop_reply): Handle events for
7312 all threads differently.
7313
7314 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7315
7316 * completer.c (completion_tracker::remove_completion): Define new
7317 function.
7318 * completer.h (completion_tracker::remove_completion): Declare new
7319 function.
7320 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7321 when adding a C++ function symbol.
7322
7323 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7324
7325 * completer.c (completion_tracker::completion_hash_entry): Define
7326 new class.
7327 (advance_to_filename_complete_word_point): Call
7328 recompute_lowest_common_denominator.
7329 (completion_tracker::completion_tracker): Call discard_completions
7330 to setup the hash table.
7331 (completion_tracker::discard_completions): Allow for being called
7332 from the constructor, pass new equal function, and element deleter
7333 when constructing the hash table. Initialise new class member
7334 variables.
7335 (completion_tracker::maybe_add_completion): Remove use of
7336 m_entries_vec, and store more information into m_entries_hash.
7337 (completion_tracker::recompute_lcd_visitor): New function, most
7338 content taken from...
7339 (completion_tracker::recompute_lowest_common_denominator):
7340 ...here, this now just visits each item in the hash calling the
7341 above visitor.
7342 (completion_tracker::build_completion_result): Remove use of
7343 m_entries_vec, call recompute_lowest_common_denominator.
7344 * completer.h (completion_tracker::have_completions): Remove use
7345 of m_entries_vec.
7346 (completion_tracker::completion_hash_entry): Declare new class.
7347 (completion_tracker::recompute_lowest_common_denominator): Change
7348 function signature.
7349 (completion_tracker::recompute_lcd_visitor): Declare new function.
7350 (completion_tracker::m_entries_vec): Delete.
7351 (completion_tracker::m_entries_hash): Initialize to NULL.
7352 (completion_tracker::m_lowest_common_denominator_valid): New
7353 member variable.
7354 (completion_tracker::m_lowest_common_denominator_max_length): New
7355 member variable.
7356
7357 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7358
7359 * regformats/regdef.h: Put reg in gdb namespace.
7360
7361 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7362
7363 * i386-bsd-nat.c (gdb_ptrace): New.
7364 * (i386bsd_fetch_inferior_registers,
7365 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7366 * (i386bsd_fetch_inferior_registers,
7367 i386bsd_store_inferior_registers) Use gdb_ptrace.
7368
7369 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7370
7371 * amd64-bsd-nat.c (gdb_ptrace): New.
7372 * (amd64bsd_fetch_inferior_registers,
7373 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7374 * (amd64bsd_fetch_inferior_registers,
7375 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7376
7377 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7378
7379 * user-regs.c (user_reg::read): Rename to...
7380 (user_reg::xread): ...this.
7381 * (append_user_reg): Rename argument `read' to `xread'.
7382 * (user_reg_add_builtin): Likewise.
7383 * (user_reg_add): Likewise.
7384 * (value_of_user_reg): Likewise.
7385
7386 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7387
7388 * sparc-nat.c (gdb_ptrace): New.
7389 * sparc-nat.c (sparc_fetch_inferior_registers)
7390 (sparc_store_inferior_registers) Remove obsolete comment.
7391 * sparc-nat.c (sparc_fetch_inferior_registers)
7392 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7393 * sparc-nat.c (sparc_fetch_inferior_registers)
7394 (sparc_store_inferior_registers) Use gdb_ptrace.
7395
7396 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7397
7398 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7399 it to the ptrace call.
7400 * sh-nbsd-nat.c (store_registers): Likewise.
7401
7402 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7403
7404 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7405 nbsd_nat_target instead of inf_ptrace_target.
7406 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7407 nbsd_nat_target.
7408
7409 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7410
7411 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7412
7413 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7414
7415 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7416 <sys/sysctl.h>.
7417 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7418
7419 2020-03-17 Tom de Vries <tdevries@suse.de>
7420
7421 PR gdb/23710
7422 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7423 fields.
7424 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7425 fields.
7426 (process_imported_unit_die): Skip import of c++ CUs.
7427
7428 2020-03-16 Tom Tromey <tom@tromey.com>
7429
7430 * p-valprint.c (pascal_object_print_value): Initialize
7431 base_value.
7432
7433 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7434 Shahab Vahedi <shahab@synopsys.com>
7435
7436 * Makefile.in: Add arch/arc.o
7437 * configure.tgt: Likewise.
7438 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7439 (_initialize_arc_tdep): Don't initialize old target descriptions.
7440 (arc_read_description): New function to cache target descriptions.
7441 * arc-tdep.h (arc_read_description): Add proto type.
7442 * arch/arc.c: New file.
7443 * arch/arc.h: Likewise.
7444 * features/Makefile: Replace old target descriptions with new.
7445 * features/arc-arcompact.c: Remove.
7446 * features/arc-arcompact.xml: Likewise.
7447 * features/arc-v2.c: Likewise
7448 * features/arc-v2.xml: Likewise
7449 * features/arc/aux-arcompact.xml: New file.
7450 * features/arc/aux-v2.xml: Likewise.
7451 * features/arc/core-arcompact.xml: Likewise.
7452 * features/arc/core-v2.xml: Likewise.
7453 * features/arc/aux-arcompact.c: Generate.
7454 * features/arc/aux-v2.c: Likewise.
7455 * features/arc/core-arcompact.c: Likewise.
7456 * features/arc/core-v2.c: Likewise.
7457 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7458
7459 2020-03-16 Tom Tromey <tromey@adacore.com>
7460
7461 PR gdb/25663:
7462 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7463 putting value into bcache.
7464
7465 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7466
7467 PR gdb/21500
7468 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7469 to...
7470 (amd64_windows_init_abi_common): ... this. Don't set size of
7471 long type.
7472 (amd64_windows_init_abi): New function.
7473 (amd64_cygwin_init_abi): New function.
7474 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7475 the Cygwin OS ABI.
7476 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7477 comment.
7478
7479 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7480
7481 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7482 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7483 (pe_import_directory_entry): New struct type.
7484 (is_linked_with_cygwin_dll): New function.
7485 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7486 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7487 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7488
7489 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7490
7491 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7492 i386_cygwin_core_osabi_sniffer.
7493
7494 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7495
7496 * i386-cygwin-tdep.c: Rename to...
7497 * i386-windows-tdep.c: ... this.
7498 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7499 i386-windows-tdep.c.
7500 * configure.tgt: Likewise.
7501
7502 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7503
7504 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7505 * osabi.c (gdb_osabi_names): Add "Windows".
7506 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7507 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7508 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7509 i386_cygwin_osabi_sniffer.
7510 (_initialize_i386_cygwin_tdep): Register OS ABI
7511 GDB_OSABI_WINDOWS for i386.
7512 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7513 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7514 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7515 for x86-64.
7516 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7517 when the target matches '*-*-mingw*'.
7518
7519 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7520
7521 * defs.h (enum gdb_osabi): Move to...
7522 * osabi.h (enum gdb_osabi): ... here.
7523 * gdbarch.sh: Include osabi.h in gdbarch.h.
7524 * gdbarch.h: Re-generate.
7525
7526 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7527
7528 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7529 function.
7530 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7531
7532 2020-03-14 Tom Tromey <tom@tromey.com>
7533
7534 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7535 for C++.
7536 (c_type_print_modifier): Likewise. Add "language" parameter.
7537 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7538 (c_type_print_base_1): Update.
7539 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7540 constants.
7541 * type-stack.c (type_stack::insert): Handle tp_atomic and
7542 tp_restrict.
7543 (type_stack::follow_type_instance_flags): Likewise.
7544 (type_stack::follow_types): Likewise. Merge type-following code.
7545 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7546 (space_identifier, cv_with_space_id)
7547 (const_or_volatile_or_space_identifier_noopt)
7548 (const_or_volatile_or_space_identifier): Remove.
7549 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7550 rules.
7551 (ptr_operator, typebase): Update.
7552 (enum token_flag) <FLAG_C>: New constant.
7553 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7554 "_Atomic".
7555 (lex_one_token): Handle FLAG_C.
7556
7557 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7558
7559 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7560 it to the ptrace call.
7561 * m68k-bsd-nat.c (store_registers): Likewise.
7562
7563 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7564
7565 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7566 gdb_byte *.
7567 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7568 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7569 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7570
7571 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7572
7573 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7574 nbsd_nat_target instead of inf_ptrace_target.
7575 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7576 nbsd_nat_target.
7577
7578 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7579
7580 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7581 register_t.
7582
7583 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7584
7585 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7586 it to the ptrace call.
7587 * alpha-bsd-nat.c (store_registers): Likewise.
7588
7589 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7590
7591 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7592 includes.
7593 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7594 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7595 fill_fpregset): Likewise.
7596
7597 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7598
7599 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7600 nbsd_nat_target instead of inf_ptrace_target.
7601 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7602 nbsd_nat_target.
7603
7604 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7605
7606 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7607 register_t.
7608
7609 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7610
7611 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7612 it to the ptrace call.
7613 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7614 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7615 * arm-nbsd-nat.c (store_register): Likewise.
7616 * arm-nbsd-nat.c (store_regs): Likewise.
7617 * arm-nbsd-nat.c (store_fp_register): Likewise.
7618 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7619
7620 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7621
7622 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7623 nbsd_nat_target instead of inf_ptrace_target.
7624 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7625 nbsd_nat_target.
7626
7627 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7628
7629 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7630 it to the ptrace call.
7631 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7632
7633 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7634
7635 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7636 it to the ptrace call.
7637 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7638
7639 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7640
7641 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7642 gdb_byte *.
7643 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7644
7645 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7646
7647 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7648 instead of inf_ptrace_target.
7649 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7650 nbsd_nat_target.
7651
7652 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7653
7654 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7655 register_t.
7656
7657 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7658
7659 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7660 register_t.
7661
7662 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7663
7664 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7665 register_t.
7666
7667 2020-03-13 Tom Tromey <tom@tromey.com>
7668
7669 * value.h (val_print): Don't declare.
7670 * valprint.h (val_print_array_elements)
7671 (val_print_scalar_formatted, generic_val_print): Don't declare.
7672 * valprint.c (generic_val_print_array): Take a struct value.
7673 (generic_val_print_ptr, generic_val_print_memberptr)
7674 (generic_val_print_bool, generic_val_print_int)
7675 (generic_val_print_char, generic_val_print_complex)
7676 (generic_val_print): Remove.
7677 (generic_value_print): Update.
7678 (do_val_print): Remove unused parameters. Don't call
7679 la_val_print.
7680 (val_print): Remove.
7681 (common_val_print): Update. Don't call value_check_printable.
7682 (val_print_scalar_formatted, val_print_array_elements): Remove.
7683 * rust-lang.c (rust_val_print): Remove.
7684 (rust_language_defn): Update.
7685 * p-valprint.c (pascal_val_print): Remove.
7686 (pascal_value_print_inner): Update.
7687 (pascal_object_print_val_fields, pascal_object_print_val):
7688 Remove.
7689 (pascal_object_print_static_field): Update.
7690 * p-lang.h (pascal_val_print): Don't declare.
7691 * p-lang.c (pascal_language_defn): Update.
7692 * opencl-lang.c (opencl_language_defn): Update.
7693 * objc-lang.c (objc_language_defn): Update.
7694 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7695 * m2-lang.h (m2_val_print): Don't declare.
7696 * m2-lang.c (m2_language_defn): Update.
7697 * language.h (struct language_defn) <la_val_print>: Remove.
7698 * language.c (unk_lang_value_print_inner): Rename. Change
7699 argument types.
7700 (unknown_language_defn, auto_language_defn): Update.
7701 * go-valprint.c (go_val_print): Remove.
7702 * go-lang.h (go_val_print): Don't declare.
7703 * go-lang.c (go_language_defn): Update.
7704 * f-valprint.c (f_val_print): Remove.
7705 * f-lang.h (f_value_print): Don't declare.
7706 * f-lang.c (f_language_defn): Update.
7707 * d-valprint.c (d_val_print): Remove.
7708 * d-lang.h (d_value_print): Don't declare.
7709 * d-lang.c (d_language_defn): Update.
7710 * cp-valprint.c (cp_print_value_fields)
7711 (cp_print_value_fields_rtti, cp_print_value): Remove.
7712 (cp_print_static_field): Update.
7713 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7714 (c_val_print_struct, c_val_print_union, c_val_print_int)
7715 (c_val_print_memberptr, c_val_print): Remove.
7716 * c-lang.h (c_val_print_array, cp_print_value_fields)
7717 (cp_print_value_fields_rtti): Don't declare.
7718 * c-lang.c (c_language_defn, cplus_language_defn)
7719 (asm_language_defn, minimal_language_defn): Update.
7720 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7721 (ada_val_print_enum): Take a struct value.
7722 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7723 (ada_val_print): Remove.
7724 (ada_value_print_1): Update.
7725 (printable_val_type): Remove.
7726 * ada-lang.h (ada_val_print): Don't declare.
7727 * ada-lang.c (ada_language_defn): Update.
7728
7729 2020-03-13 Tom Tromey <tom@tromey.com>
7730
7731 * valprint.c (do_val_print): Update.
7732 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7733 a struct value.
7734 (value_to_value_object_no_release): Declare.
7735 * python/py-value.c (value_to_value_object_no_release): New
7736 function.
7737 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7738 struct value.
7739 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7740 function.
7741 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7742 a struct value.
7743 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7744 Declare.
7745 (gdbscm_apply_val_pretty_printer): Take a struct value.
7746 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7747 value.
7748 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7749 value.
7750 * extension-priv.h (struct extension_language_ops)
7751 <apply_val_pretty_printer>: Take a struct value.
7752 * cp-valprint.c (cp_print_value): Create a struct value.
7753 (cp_print_value): Update.
7754
7755 2020-03-13 Tom Tromey <tom@tromey.com>
7756
7757 * ada-valprint.c (print_field_values): Call common_val_print.
7758
7759 2020-03-13 Tom Tromey <tom@tromey.com>
7760
7761 * ada-valprint.c (val_print_packed_array_elements): Remove
7762 bitoffset and val parameters. Call common_val_print.
7763 (ada_val_print_string): Remove offset, address, and original_value
7764 parameters.
7765 (ada_val_print_array): Update.
7766 (ada_value_print_array): New function.
7767 (ada_value_print_1): Call it.
7768
7769 2020-03-13 Tom Tromey <tom@tromey.com>
7770
7771 * ada-valprint.c (ada_value_print): Use common_val_print.
7772
7773 2020-03-13 Tom Tromey <tom@tromey.com>
7774
7775 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7776
7777 2020-03-13 Tom Tromey <tom@tromey.com>
7778
7779 * ada-valprint.c (ada_value_print_num): New function.
7780 (ada_value_print_1): Use it.
7781
7782 2020-03-13 Tom Tromey <tom@tromey.com>
7783
7784 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7785
7786 2020-03-13 Tom Tromey <tom@tromey.com>
7787
7788 * ada-valprint.c (ada_value_print_ptr): New function.
7789 (ada_value_print_1): Use it.
7790
7791 2020-03-13 Tom Tromey <tom@tromey.com>
7792
7793 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7794 call common_val_print.
7795 (ada_val_print_1): Update.
7796 (ada_value_print_1): New function.
7797 (ada_value_print_inner): Rewrite.
7798
7799 2020-03-13 Tom Tromey <tom@tromey.com>
7800
7801 * cp-valprint.c (cp_print_value_fields): Update.
7802 (cp_print_value): New function.
7803
7804 2020-03-13 Tom Tromey <tom@tromey.com>
7805
7806 * m2-valprint.c (m2_value_print_inner): Use
7807 cp_print_value_fields.
7808 * cp-valprint.c (cp_print_value_fields): New function.
7809 * c-valprint.c (c_value_print_struct): New function.
7810 (c_value_print_inner): Use c_value_print_struct.
7811 * c-lang.h (cp_print_value_fields): Declare.
7812
7813 2020-03-13 Tom Tromey <tom@tromey.com>
7814
7815 * c-valprint.c (c_value_print_array): New function.
7816 (c_value_print_inner): Use it.
7817
7818 2020-03-13 Tom Tromey <tom@tromey.com>
7819
7820 * c-valprint.c (c_value_print_memberptr): New function.
7821 (c_value_print_inner): Use it.
7822
7823 2020-03-13 Tom Tromey <tom@tromey.com>
7824
7825 * c-valprint.c (c_value_print_int): New function.
7826 (c_value_print_inner): Use it.
7827
7828 2020-03-13 Tom Tromey <tom@tromey.com>
7829
7830 * c-valprint.c (c_value_print_ptr): New function.
7831 (c_value_print_inner): Use it.
7832
7833 2020-03-13 Tom Tromey <tom@tromey.com>
7834
7835 * c-valprint.c (c_value_print_inner): Rewrite.
7836
7837 2020-03-13 Tom Tromey <tom@tromey.com>
7838
7839 * valprint.c (generic_value_print_complex): New function.
7840 (generic_value_print): Use it.
7841
7842 2020-03-13 Tom Tromey <tom@tromey.com>
7843
7844 * valprint.c (generic_val_print_float): Don't call
7845 val_print_scalar_formatted.
7846 (generic_val_print, generic_value_print): Update.
7847
7848 2020-03-13 Tom Tromey <tom@tromey.com>
7849
7850 * valprint.c (generic_value_print_char): New function
7851 (generic_value_print): Use it.
7852
7853 2020-03-13 Tom Tromey <tom@tromey.com>
7854
7855 * valprint.c (generic_value_print_int): New function.
7856 (generic_value_print): Use it.
7857
7858 2020-03-13 Tom Tromey <tom@tromey.com>
7859
7860 * valprint.c (generic_value_print_bool): New function.
7861 (generic_value_print): Use it.
7862
7863 2020-03-13 Tom Tromey <tom@tromey.com>
7864
7865 * valprint.c (generic_val_print_func): Simplify.
7866 (generic_val_print, generic_value_print): Update.
7867
7868 2020-03-13 Tom Tromey <tom@tromey.com>
7869
7870 * valprint.c (generic_val_print_flags): Remove.
7871 (generic_val_print, generic_value_print): Update.
7872 (val_print_type_code_flags): Add original_value parameter.
7873
7874 2020-03-13 Tom Tromey <tom@tromey.com>
7875
7876 * valprint.c (generic_val_print): Update.
7877 (generic_value_print): Update.
7878 * valprint.c (generic_val_print_enum): Don't call
7879 val_print_scalar_formatted.
7880
7881 2020-03-13 Tom Tromey <tom@tromey.com>
7882
7883 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7884 * valprint.c (generic_value_print_ptr): New function.
7885
7886 2020-03-13 Tom Tromey <tom@tromey.com>
7887
7888 * valprint.c (generic_value_print): Rewrite.
7889
7890 2020-03-13 Tom Tromey <tom@tromey.com>
7891
7892 * p-valprint.c (pascal_object_print_value_fields)
7893 (pascal_object_print_value): New functions.
7894
7895 2020-03-13 Tom Tromey <tom@tromey.com>
7896
7897 * p-valprint.c (pascal_value_print_inner): Rewrite.
7898
7899 2020-03-13 Tom Tromey <tom@tromey.com>
7900
7901 * f-valprint.c (f_value_print_innner): Rewrite.
7902
7903 2020-03-13 Tom Tromey <tom@tromey.com>
7904
7905 * m2-valprint.c (m2_print_unbounded_array): New overload.
7906 (m2_print_unbounded_array): Update.
7907 (m2_print_array_contents): Take a struct value.
7908 (m2_value_print_inner): Rewrite.
7909
7910 2020-03-13 Tom Tromey <tom@tromey.com>
7911
7912 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7913 (d_value_print_inner): New function.
7914 * d-lang.h (d_value_print_inner): Declare.
7915 * d-lang.c (d_language_defn): Use d_value_print_inner.
7916
7917 2020-03-13 Tom Tromey <tom@tromey.com>
7918
7919 * go-valprint.c (go_value_print_inner): New function.
7920 * go-lang.h (go_value_print_inner): Declare.
7921 * go-lang.c (go_language_defn): Use go_value_print_inner.
7922
7923 2020-03-13 Tom Tromey <tom@tromey.com>
7924
7925 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7926 API.
7927 (rust_val_print): Rewrite.
7928 (rust_value_print_inner): New function, from rust_val_print.
7929 (rust_language_defn): Use rust_value_print_inner.
7930
7931 2020-03-13 Tom Tromey <tom@tromey.com>
7932
7933 * ada-valprint.c (ada_value_print_inner): New function.
7934 * ada-lang.h (ada_value_print_inner): Declare.
7935 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7936
7937 2020-03-13 Tom Tromey <tom@tromey.com>
7938
7939 * f-valprint.c (f_value_print_innner): New function.
7940 * f-lang.h (f_value_print_innner): Declare.
7941 * f-lang.c (f_language_defn): Use f_value_print_innner.
7942
7943 2020-03-13 Tom Tromey <tom@tromey.com>
7944
7945 * p-valprint.c (pascal_value_print_inner): New function.
7946 * p-lang.h (pascal_value_print_inner): Declare.
7947 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7948
7949 2020-03-13 Tom Tromey <tom@tromey.com>
7950
7951 * m2-valprint.c (m2_value_print_inner): New function.
7952 * m2-lang.h (m2_value_print_inner): Declare.
7953 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7954
7955 2020-03-13 Tom Tromey <tom@tromey.com>
7956
7957 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7958 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7959 * c-valprint.c (c_value_print_inner): New function.
7960 * c-lang.h (c_value_print_inner): Declare.
7961 * c-lang.c (c_language_defn, cplus_language_defn)
7962 (asm_language_defn, minimal_language_defn): Use
7963 c_value_print_inner.
7964
7965 2020-03-13 Tom Tromey <tom@tromey.com>
7966
7967 * p-valprint.c (pascal_object_print_value_fields): Now static.
7968 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7969
7970 2020-03-13 Tom Tromey <tom@tromey.com>
7971
7972 * c-valprint.c (c_val_print_array): Simplify.
7973
7974 2020-03-13 Tom Tromey <tom@tromey.com>
7975
7976 * valprint.c (value_print_array_elements): New function.
7977 * valprint.h (value_print_array_elements): Declare.
7978
7979 2020-03-13 Tom Tromey <tom@tromey.com>
7980
7981 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7982 * mips-tdep.c (mips_print_register): Use
7983 value_print_scalar_formatted.
7984
7985 2020-03-13 Tom Tromey <tom@tromey.com>
7986
7987 * valprint.h (value_print_scalar_formatted): Declare.
7988 * valprint.c (value_print_scalar_formatted): New function.
7989
7990 2020-03-13 Tom Tromey <tom@tromey.com>
7991
7992 * valprint.h (generic_value_print): Declare.
7993 * valprint.c (generic_value_print): New function.
7994
7995 2020-03-13 Tom Tromey <tom@tromey.com>
7996
7997 * valprint.c (do_val_print): Call la_value_print_inner, if
7998 available.
7999 * rust-lang.c (rust_language_defn): Update.
8000 * p-lang.c (pascal_language_defn): Update.
8001 * opencl-lang.c (opencl_language_defn): Update.
8002 * objc-lang.c (objc_language_defn): Update.
8003 * m2-lang.c (m2_language_defn): Update.
8004 * language.h (struct language_defn) <la_value_print_inner>: New
8005 member.
8006 * language.c (unknown_language_defn, auto_language_defn): Update.
8007 * go-lang.c (go_language_defn): Update.
8008 * f-lang.c (f_language_defn): Update.
8009 * d-lang.c (d_language_defn): Update.
8010 * c-lang.c (c_language_defn, cplus_language_defn)
8011 (asm_language_defn, minimal_language_defn): Update.
8012 * ada-lang.c (ada_language_defn): Update.
8013
8014 2020-03-13 Tom Tromey <tom@tromey.com>
8015
8016 * c-valprint.c (c_value_print): Use common_val_print.
8017
8018 2020-03-13 Tom Tromey <tom@tromey.com>
8019
8020 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8021
8022 2020-03-13 Tom Tromey <tom@tromey.com>
8023
8024 * f-valprint.c (f77_print_array_1, f_val_print): Use
8025 common_val_print.
8026
8027 2020-03-13 Tom Tromey <tom@tromey.com>
8028
8029 * riscv-tdep.c (riscv_print_one_register_info): Use
8030 common_val_print.
8031
8032 2020-03-13 Tom Tromey <tom@tromey.com>
8033
8034 * mi/mi-main.c (output_register): Use common_val_print.
8035
8036 2020-03-13 Tom Tromey <tom@tromey.com>
8037
8038 * infcmd.c (default_print_one_register_info): Use
8039 common_val_print.
8040
8041 2020-03-13 Tom Tromey <tom@tromey.com>
8042
8043 * valprint.h (common_val_print_checked): Declare.
8044 * valprint.c (common_val_print_checked): New function.
8045 * stack.c (print_frame_arg): Use common_val_print_checked.
8046
8047 2020-03-13 Tom Tromey <tom@tromey.com>
8048
8049 * valprint.c (do_val_print): New function, from val_print.
8050 (val_print): Use do_val_print.
8051 (common_val_print): Use do_val_print.
8052
8053 2020-03-13 Tom Tromey <tom@tromey.com>
8054
8055 * valprint.c (value_print): Use scoped_value_mark.
8056
8057 2020-03-13 Tom de Vries <tdevries@suse.de>
8058
8059 PR symtab/25646
8060 * psymtab.c (partial_symtab::partial_symtab): Don't set
8061 globals_offset and statics_offset. Push element onto
8062 current_global_psymbols and current_static_psymbols stacks.
8063 (concat): New function.
8064 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8065 element from current_global_psymbols and current_static_psymbols
8066 stacks. Concat popped elements to global_psymbols and
8067 static_symbols.
8068 (add_psymbol_to_list): Use current_global_psymbols and
8069 current_static_psymbols stacks.
8070 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8071 current_static_psymbols fields.
8072
8073 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8074
8075 * corelow.c (sniff_core_bfd): Remove.
8076 (class core_target) <m_core_vec>: Remove.
8077 (core_target::core_target): Update.
8078 (core_file_fns): Remove.
8079 (deprecated_add_core_fns): Remove.
8080 (default_core_sniffer): Remove.
8081 (sniff_core_bfd): Remove.
8082 (default_check_format): Remove.
8083 (gdb_check_format): Remove.
8084 (core_target_open): Update.
8085 (core_target::get_core_register_section): Update.
8086 (get_core_registers_cb): Update.
8087 (core_target::fetch_registers): Update.
8088 * gdbcore.h (struct core_fns): Remove.
8089 (deprecated_add_core_fns): Remove.
8090 (default_core_sniffer): Remove.
8091 (default_check_format): Remove.
8092
8093 2020-03-12 Tom Tromey <tom@tromey.com>
8094
8095 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8096 CORE_ADDR.
8097 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8098
8099 2020-03-12 Tom Tromey <tom@tromey.com>
8100
8101 * remote.c (remote_target::download_tracepoint)
8102 (remote_target::enable_tracepoint)
8103 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8104 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8105 sprintf_vma.
8106
8107 2020-03-12 Tom Tromey <tom@tromey.com>
8108
8109 * symfile-mem.c: Update CORE_ADDR size assert.
8110
8111 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8112
8113 * selftest.m4: Move to gdbsupport/.
8114 * acinclude.m4: Update path to selftest.m4.
8115
8116 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8117
8118 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8119 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8120 gdbarch-selfselftests.c and selftest-arch.c.
8121 (SUBDIR_UNITTESTS_OBS): Rename to...
8122 (SELFTESTS_OBS): ... this.
8123 (COMMON_SFILES): Remove disasm-selftests.c and
8124 gdbarch-selftests.c.
8125 * configure.ac: Don't add selftest-arch.{c,o} to
8126 CONFIG_{SRCS,OBS}.
8127 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8128 preprocessor conditions.
8129
8130 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8131
8132 * configure.ac: Don't source bfd/development.sh.
8133 * selftest.m4: Modify comment.
8134 * configure: Re-generate.
8135
8136 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8137
8138 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8139 not "true" or "false".
8140 * configure: Re-generate.
8141
8142 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8143
8144 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8145 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8146 renamed to arm_nbsd_supply_gregset.
8147 (fetch_register): Update to call arm_nbsd_supply_gregset.
8148 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8149 (arm_netbsd_nat_target::fetch_registers): Update.
8150 (fetch_elfcore_registers): Removed.
8151 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8152 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8153 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8154 not require NetBSD system headers.
8155 (arm_nbsd_regset): New struct.
8156 (arm_nbsd_iterate_over_regset_sections): New function.
8157 (arm_netbsd_init_abi_common): Updated to call
8158 set_gdbarch_iterate_over_regset_sections.
8159 * arm-nbsd-tdep.h: New file.
8160
8161 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8162
8163 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8164 recursion.
8165
8166 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8167
8168 * configure: Re-generate.
8169
8170 2020-03-11 Tom Tromey <tromey@adacore.com>
8171
8172 * ada-typeprint.c (print_choices): Fix comment.
8173
8174 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8175
8176 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8177 previous item in the list, when the list has no items.
8178
8179 2020-03-11 Tom de Vries <tdevries@suse.de>
8180
8181 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8182 PROP_LOCLIST handling code.
8183
8184 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8185
8186 * buildsym-legacy.c (record_line): Pass extra parameter to
8187 record_line.
8188 * buildsym.c (buildsym_compunit::record_line): Take an extra
8189 parameter, reduce duplication in the line table, and record the
8190 is_stmt flag in the line table.
8191 * buildsym.h (buildsym_compunit::record_line): Add extra
8192 parameter.
8193 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8194 non-statement lines.
8195 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8196 this to the symtab builder.
8197 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8198 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8199 through to dwarf_record_line_1.
8200 * infrun.c (process_event_stop_test): When stepping, don't stop at
8201 a non-statement instruction, and only refresh the step info when
8202 we land in the middle of a line's range. Also add an extra
8203 comment.
8204 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8205 field.
8206 * record-btrace.c (btrace_find_line_range): Only record lines
8207 marked as is-statement.
8208 * stack.c (frame_show_address): Show the frame address if we are
8209 in a non-statement sal.
8210 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8211 (maintenance_print_one_line_table): Print a header for the is_stmt
8212 column, and include is_stmt information in the output.
8213 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8214 preference to non-statements.
8215 (find_pcs_for_symtab_line): Prefer is-statement entries.
8216 (find_line_common): Likewise.
8217 * symtab.h (struct linetable_entry): Add is_stmt field.
8218 (struct symtab_and_line): Likewise.
8219 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8220 arranging the line table.
8221
8222 2020-03-07 Tom de Vries <tdevries@suse.de>
8223
8224 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8225 DIE.
8226
8227 2020-03-07 Tom Tromey <tom@tromey.com>
8228
8229 * valops.c (value_literal_complex): Remove obsolete comment.
8230 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8231 comment.
8232
8233 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8234
8235 * infrun.h: Forward-declare thread_info.
8236 (set_step_info): Add thread_info parameter, add doc.
8237 * infrun.c (set_step_info): Add thread_info parameter, move doc
8238 to header.
8239 * infrun.c (process_event_stop_test): Pass thread to
8240 set_step_info call.
8241 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8242 set_step_info.
8243 (prepare_one_step): Add thread_info parameter, pass it to
8244 set_step_frame and prepare_one_step (recursive) call.
8245 (step_1): Pass thread to prepare_one_step call.
8246 (step_command_fsm::should_stop): Pass thread to
8247 prepare_one_step.
8248 (until_next_fsm): Pass thread to set_step_frame call.
8249 (finish_command): Pass thread to set_step_info call.
8250
8251 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8252
8253 * windows-tdep.c (windows_solib_create_inferior_hook):
8254 Check if inferior is running.
8255
8256 2020-03-06 Tom de Vries <tdevries@suse.de>
8257
8258 * NEWS: Fix "the the".
8259 * ctfread.c: Same.
8260
8261 2020-03-06 Tom de Vries <tdevries@suse.de>
8262
8263 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8264
8265 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8266
8267 * .dir-locals.el: Add a comment referencing the other copies of
8268 this file.
8269
8270 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8271
8272 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8273 psargs.
8274
8275 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8276
8277 * .gitattributes: New file.
8278
8279 2020-03-04 Tom Tromey <tom@tromey.com>
8280
8281 * symmisc.c (print_symbol_bcache_statistics)
8282 (print_objfile_statistics): Update.
8283 * symfile.c (allocate_symtab): Use intern.
8284 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8285 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8286 macro_cache>: Remove.
8287 <string_cache>: New member.
8288 (struct objfile) <intern>: New methods.
8289 * elfread.c (elf_symtab_read): Use intern.
8290 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8291 (dwarf2_compute_name, dwarf2_physname)
8292 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8293 names.
8294 (guess_partial_die_structure_name): Update.
8295 (partial_die_info::fixup): Intern name.
8296 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8297 name.
8298 (dwarf2_name): Intern name. Update.
8299 * buildsym.c (buildsym_compunit::get_macro_table): Use
8300 string_cache.
8301
8302 2020-03-04 Tom Tromey <tom@tromey.com>
8303
8304 * jit.c (bfd_open_from_target_memory): Make "target" const.
8305 * corefile.c (gnutarget): Now const.
8306 * gdbcore.h (gnutarget): Now const.
8307
8308 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8309
8310 * NEWS: Mention support for WOW64 processes.
8311 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8312 (amd64_windows_segment_register_p): Remove static.
8313 (_initialize_amd64_windows_nat): Update.
8314 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8315 * i386-windows-nat.c (context_offset): Update.
8316 (i386_mappings): Rename and remove static.
8317 (i386_windows_segment_register_p): Remove static.
8318 (_initialize_i386_windows_nat): Update.
8319 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8320 (STATUS_WX86_SINGLE_STEP): New macro.
8321 (EnumProcessModulesEx): New macro.
8322 (Wow64SuspendThread): New macro.
8323 (Wow64GetThreadContext): New macro.
8324 (Wow64SetThreadContext): New macro.
8325 (Wow64GetThreadSelectorEntry): New macro.
8326 (windows_set_context_register_offsets): Add static.
8327 (windows_set_segment_register_p): Likewise.
8328 (windows_add_thread): Adapt for WOW64 processes.
8329 (windows_fetch_one_register): Likewise.
8330 (windows_nat_target::fetch_registers): Likewise.
8331 (windows_store_one_register): Likewise.
8332 (display_selector): Likewise.
8333 (display_selectors): Likewise.
8334 (handle_exception): Likewise.
8335 (windows_continue): Likewise.
8336 (windows_nat_target::resume): Likewise.
8337 (windows_add_all_dlls): Likewise.
8338 (do_initial_windows_stuff): Likewise.
8339 (windows_nat_target::attach): Likewise.
8340 (windows_get_exec_module_filename): Likewise.
8341 (windows_nat_target::create_inferior): Likewise.
8342 (windows_xfer_siginfo): Likewise.
8343 (_initialize_loadable): Initialize Wow64SuspendThread,
8344 Wow64GetThreadContext, Wow64SetThreadContext,
8345 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8346 * windows-nat.h (windows_set_context_register_offsets):
8347 Remove declaration.
8348 (windows_set_segment_register_p): Likewise.
8349 (i386_windows_segment_register_p): Add declaration.
8350 (amd64_windows_segment_register_p): Likewise.
8351
8352 2020-03-04 Luis Machado <luis.machado@linaro.org>
8353
8354 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8355 in "info registers" for AArch64/ARM.
8356
8357 The change caused "info registers" to not print GPR's.
8358
8359 gdb/ChangeLog:
8360
8361 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8362
8363 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8364 when reg->group is empty and reggroup is not.
8365
8366 2020-03-03 Tom Tromey <tromey@adacore.com>
8367
8368 * dwarf2/frame.c (struct dwarf2_frame_cache)
8369 <checked_tailcall_bottom, entry_cfa_sp_offset,
8370 entry_cfa_sp_offset_p>: Remove members.
8371 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8372 (dwarf2_frame_prev_register): Don't call
8373 dwarf2_tailcall_sniffer_first.
8374 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8375 * frame-unwind.c (add_unwinder): New fuction.
8376 (frame_unwind_init): Use it. Add tailcall unwinder.
8377
8378 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8379 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8380
8381 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8382 value should be printed as true.
8383
8384 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8385
8386 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8387 (windows_init_abi): Set and use windows_so_ops.
8388
8389 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8390
8391 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8392 when verifying if dealing with a convenience variable.
8393
8394 2020-03-03 Luis Machado <luis.machado@linaro.org>
8395
8396 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8397
8398 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8399
8400 * infrun.c (gdbarch_supports_displaced_stepping): New.
8401 (use_displaced_stepping): Break up conditions in smaller pieces.
8402 Use gdbarch_supports_displaced_stepping.
8403 (displaced_step_prepare_throw): Use
8404 gdbarch_supports_displaced_stepping.
8405
8406 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8407
8408 * NEWS: Mention new behaviour of the history filename.
8409 * top.c (write_history_p): Add comment.
8410 (show_write_history_p): Add header comment, give a different
8411 message when history writing is on, but the history filename is
8412 empty.
8413 (history_filename): Add comment.
8414 (history_filename_empty): New function.
8415 (show_history_filename): Add header comment, give a different
8416 message when the filename is empty.
8417 (init_history): Compare history_filename against nullptr, and only
8418 read history if the filename is not empty.
8419 (set_history_filename): Add header comment, and only make
8420 non-empty filenames absolute.
8421 (init_main): Make the filename argument to 'set history filename'
8422 optional.
8423
8424 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8425
8426 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8427 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8428 (fetch_fp_register): Update.
8429 (fetch_fp_regs): Update.
8430 (store_fp_register): Update.
8431 (store_fp_regs): Update.
8432 (arm_netbsd_nat_target::read_description): New function.
8433 (fetch_elfcore_registers): Update.
8434
8435 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8436
8437 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8438 general_thread if the stop reply is missing a thread-id.
8439 (remote_target::process_stop_reply): Use the first non-exited
8440 thread if the target didn't pass a thread-id.
8441 * infrun.c (do_target_wait): Move call to
8442 switch_to_inferior_no_thread to ....
8443 (do_target_wait_1): ... here.
8444
8445 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8446
8447 * debuginfod-support.c: Include defs.h first.
8448
8449 2020-02-28 Tom de Vries <tdevries@suse.de>
8450
8451 * symfile.c (set_initial_language): Use default language for lookup.
8452
8453 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8454
8455 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8456 reader variable, pass `this` to read_cutu_die_from_dwo.
8457
8458 2020-02-27 Aaron Merey <amerey@redhat.com>
8459
8460 * source.c (open_source_file): Check for nullptr when computing
8461 srcpath.
8462
8463 2020-02-27 Tom Tromey <tromey@adacore.com>
8464
8465 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8466 member.
8467 (dwarf2_add_field): Don't update nfields.
8468 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8469
8470 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8471
8472 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8473 abs.
8474
8475 2020-02-26 Tom Tromey <tom@tromey.com>
8476
8477 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8478 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8479 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8480 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8481 per_cu_data.
8482
8483 2020-02-26 Tom Tromey <tom@tromey.com>
8484
8485 * dwarf2/index-write.c (psym_index_map): Change type.
8486 (add_address_entry_worker, write_one_signatured_type)
8487 (recursively_count_psymbols, recursively_write_psymbols)
8488 (class debug_names, psyms_seen_size, write_gdbindex)
8489 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8490
8491 2020-02-26 Aaron Merey <amerey@redhat.com>
8492
8493 * Makefile.in: Handle optional debuginfod support.
8494 * NEWS: Update.
8495 * README: Add --with-debuginfod summary.
8496 * config.in: Regenerate.
8497 * configure: Regenerate.
8498 * configure.ac: Handle optional debuginfod support.
8499 * debuginfod-support.c: debuginfod helper functions.
8500 * debuginfod-support.h: Ditto.
8501 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8502 summary.
8503 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8504 when a dwz file cannot be found.
8505 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8506 debuginfo file cannot be found.
8507 * source.c (open_source_file): Query debuginfod servers when a
8508 source file cannot be found.
8509 * top.c (print_gdb_configuration): Include
8510 --{with,without}-debuginfod in the output.
8511
8512 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8513
8514 * thread.c (thr_try_catch_cmd): Print thread name.
8515
8516 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8517
8518 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8519 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8520 dwarf2_fetch_die_type_sect_off): Move to...
8521 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8522 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8523 dwarf2_fetch_die_type_sect_off): ... here.
8524 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8525 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8526 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8527
8528 2020-02-26 Tom de Vries <tdevries@suse.de>
8529
8530 PR gdb/25603
8531 * symfile.c (set_initial_language): Exit-early if
8532 language_mode == language_mode_manual.
8533
8534 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8535
8536 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8537 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8538 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8539
8540 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8541
8542 * gdbtypes.c (create_array_type_with_stride): Handle negative
8543 array strides.
8544 * valarith.c (value_subscripted_rvalue): Likewise.
8545
8546 2020-02-25 Luis Machado <luis.machado@linaro.org>
8547
8548 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8549
8550 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8551
8552 * loc.h (dwarf2_get_die_type): Move to...
8553 * read.h (dwarf2_get_die_type): ... here.
8554 * read.c (dwarf2_get_die_type): Move doc to header.
8555
8556 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8557
8558 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8559 'gnulib/Makefile.in' to the list.
8560
8561 2020-02-24 Tom Tromey <tom@tromey.com>
8562
8563 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8564 Remove.
8565 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8566 XOBNEWVEC.
8567
8568 2020-02-24 Tom Tromey <tom@tromey.com>
8569
8570 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8571 New method.
8572 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8573 (dw2_do_instantiate_symtab, dw2_get_file_names)
8574 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8575
8576 2020-02-24 Tom Tromey <tom@tromey.com>
8577
8578 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8579 make_scoped_restore.
8580 (dwarf2_psymtab::read_symtab): Don't clear
8581 reading_partial_symbols.
8582
8583 2020-02-24 Tom de Vries <tdevries@suse.de>
8584
8585 PR gdb/25592
8586 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8587
8588 2020-02-24 Tom de Vries <tdevries@suse.de>
8589
8590 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8591 commands layout next/prev/regs.
8592
8593 2020-02-22 Tom Tromey <tom@tromey.com>
8594
8595 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8596 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8597
8598 2020-02-22 Tom Tromey <tom@tromey.com>
8599
8600 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8601
8602 2020-02-22 Tom Tromey <tom@tromey.com>
8603
8604 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8605 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8606 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8607 * tui/tui.c (_initialize_tui): Add usage text.
8608
8609 2020-02-22 Tom Tromey <tom@tromey.com>
8610
8611 * tui/tui-win.c (tui_set_focus_command)
8612 (tui_set_win_height_command): Use error_no_arg.
8613 (_initialize_tui_win): Update help text.
8614 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8615
8616 2020-02-22 Tom Tromey <tom@tromey.com>
8617
8618 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8619 * tui/tui-disasm.h (struct tui_disasm_window)
8620 <display_start_addr>: Declare.
8621 * tui/tui-source.h (struct tui_source_window)
8622 <display_start_addr>: Declare.
8623 * tui/tui-winsource.h (struct tui_source_window_base)
8624 <show_source_line, display_start_addr>: New methods.
8625 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8626 Rename and move to protected section.
8627 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8628 (tui_source_window_base::do_erase_source_content): Update.
8629 (tui_source_window_base::show_source_line): Now a method.
8630 (tui_source_window_base::show_source_content)
8631 (tui_source_window_base::tui_source_window_base)
8632 (tui_source_window_base::rerender)
8633 (tui_source_window_base::refill)
8634 (tui_source_window_base::do_scroll_horizontal)
8635 (tui_source_window_base::set_is_exec_point_at)
8636 (tui_source_window_base::update_breakpoint_info)
8637 (tui_source_window_base::update_exec_info): Update.
8638 * tui/tui-source.c (tui_source_window::set_contents)
8639 (tui_source_window::showing_source_p)
8640 (tui_source_window::do_scroll_vertical)
8641 (tui_source_window::location_matches_p)
8642 (tui_source_window::line_is_displayed): Update.
8643 (tui_source_window::display_start_addr): New method.
8644 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8645 (tui_disasm_window::do_scroll_vertical)
8646 (tui_disasm_window::location_matches_p): Update.
8647 (tui_disasm_window::display_start_addr): New method.
8648
8649 2020-02-22 Tom Tromey <tom@tromey.com>
8650
8651 * NEWS: Add entry for gdb.register_window_type.
8652 * tui/tui-layout.h (window_factory): New typedef.
8653 (tui_register_window): Declare.
8654 * tui/tui-layout.c (saved_tui_windows): New global.
8655 (tui_apply_current_layout): Use it.
8656 (tui_register_window): New function.
8657 * python/python.c (do_start_initialization): Call
8658 gdbpy_initialize_tui.
8659 (python_GdbMethods): Add "register_window_type" function.
8660 * python/python-internal.h (gdbpy_register_tui_window)
8661 (gdbpy_initialize_tui): Declare.
8662 * python/py-tui.c: New file.
8663 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8664
8665 2020-02-22 Tom Tromey <tom@tromey.com>
8666
8667 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8668
8669 2020-02-22 Tom Tromey <tom@tromey.com>
8670
8671 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8672 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8673 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8674 (tui_set_win_focus_to): Move from tui-win.c.
8675
8676 2020-02-22 Tom Tromey <tom@tromey.com>
8677
8678 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8679 functions.
8680 (known_window_types): New global.
8681 (tui_get_window_by_name): Reimplement.
8682 (initialize_known_windows): New function.
8683 (validate_window_name): Rewrite.
8684 (_initialize_tui_layout): Call initialize_known_windows.
8685
8686 2020-02-22 Tom Tromey <tom@tromey.com>
8687
8688 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8689 Remove constants.
8690 * tui/tui-winsource.h (struct tui_source_window_base)
8691 <tui_source_window_base>: Remove parameter.
8692 * tui/tui-winsource.c
8693 (tui_source_window_base::tui_source_window_base): Remove
8694 parameter.
8695 (tui_source_window_base::refill): Update.
8696 * tui/tui-stack.h (struct tui_locator_window)
8697 <tui_locator_window>: Update.
8698 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8699 Default the constructor.
8700 * tui/tui-regs.h (struct tui_data_item_window)
8701 <tui_data_item_window>: Default the constructor.
8702 (struct tui_data_window) <tui_data_window>: Likewise.
8703 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8704 Default the constructor.
8705 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8706 Default the constructor.
8707 <type>: Remove.
8708 (struct tui_win_info) <tui_win_info>: Default the constructor.
8709 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8710 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8711 Default the constructor.
8712
8713 2020-02-22 Tom Tromey <tom@tromey.com>
8714
8715 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8716 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8717 * tui/tui-win.c (tui_resize_all): Don't call
8718 tui_delete_invisible_windows.
8719 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8720 done.
8721 (tui_set_layout): Update.
8722 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8723 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8724 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8725
8726 2020-02-22 Tom Tromey <tom@tromey.com>
8727
8728 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8729 correctly.
8730
8731 2020-02-22 Tom Tromey <tom@tromey.com>
8732
8733 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8734
8735 2020-02-22 Tom Tromey <tom@tromey.com>
8736
8737 * tui/tui-winsource.h (struct tui_source_window_iterator)
8738 <inner_iterator>: New etytypedef.
8739 <tui_source_window_iterator>: Take "end" parameter.
8740 <tui_source_window_iterator>: Take iterator.
8741 <operator*, advance>: Update.
8742 <m_iter>: Change type.
8743 <m_end>: New field.
8744 (struct tui_source_windows) <begin, end>: Update.
8745 * tui/tui-layout.c (tui_windows): New global.
8746 (tui_apply_current_layout): Clear tui_windows.
8747 (tui_layout_window::apply): Update tui_windows.
8748 * tui/tui-data.h (tui_windows): Declare.
8749 (all_tui_windows): Now inline function.
8750 (class tui_window_iterator, struct all_tui_windows): Remove.
8751
8752 2020-02-22 Tom Tromey <tom@tromey.com>
8753
8754 PR tui/17850:
8755 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8756 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8757 "height" argument.
8758 (class tui_layout_window) <get_sizes>: Likewise.
8759 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8760 argument.
8761 <get_sizes>: Add "height" argument.
8762 <m_vertical>: New field.
8763 * tui/tui-layout.c (tui_layout_split::clone): Update.
8764 (tui_layout_split::get_sizes): Add "height" argument.
8765 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8766 (tui_new_layout_command): Parse "-horizontal".
8767 (_initialize_tui_layout): Update help string.
8768 (tui_layout_split::specification): Add "-horizontal" when needed.
8769 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8770 argument.
8771 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8772 New methods.
8773
8774 2020-02-22 Tom Tromey <tom@tromey.com>
8775
8776 * tui/tui-layout.h (enum tui_adjust_result): New.
8777 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8778 (class tui_layout_window) <adjust_size>: Return
8779 tui_adjust_result. Rewrite.
8780 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8781 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8782
8783 2020-02-22 Tom Tromey <tom@tromey.com>
8784
8785 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8786 parameter and return types.
8787 (class tui_layout_base) <specification>: Add "depth".
8788 (class tui_layout_window) <specification>: Add "depth".
8789 (class tui_layout_split) <specification>: Add "depth".
8790 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8791 and return types.
8792 (tui_new_layout_command): Parse sub-layouts.
8793 (_initialize_tui_layout): Update help string.
8794 (tui_layout_window::specification): Add "depth".
8795 (add_layout_command): Update.
8796
8797 2020-02-22 Tom Tromey <tom@tromey.com>
8798
8799 * NEWS: Add "tui new-layout" item.
8800 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8801 Add new-layout command to help text.
8802 (validate_window_name): New function.
8803 (tui_new_layout_command): New function.
8804 (_initialize_tui_layout): Register "new-layout".
8805 (tui_layout_window::specification): New method.
8806 (tui_layout_window::specification): New method.
8807 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8808 method.
8809 (class tui_layout_window) <specification>: New method.
8810 (class tui_layout_split) <specification>: New method.
8811
8812 2020-02-22 Tom Tromey <tom@tromey.com>
8813
8814 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8815 * tui/tui-win.c (window_name_completer): Update comment.
8816 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8817 Declare method.
8818 (class tui_layout_window) <replace_window>: Likewise.
8819 (class tui_layout_split) <replace_window>: Likewise.
8820 (tui_set_layout): Don't declare.
8821 (tui_set_initial_layout): Declare function.
8822 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8823 (asm_regs_layout): New globals.
8824 (tui_current_layout, show_layout): Remove.
8825 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8826 (find_layout, tui_apply_layout): New function.
8827 (layout_completer): Remove.
8828 (tui_next_layout): Reimplement.
8829 (tui_next_layout_command): New function.
8830 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8831 (tui_regs_layout): Reimplement.
8832 (tui_regs_layout_command): New function.
8833 (extract_display_start_addr): Rewrite.
8834 (next_layout, prev_layout): Remove.
8835 (tui_layout_window::replace_window): New method.
8836 (tui_layout_split::replace_window): New method.
8837 (destroy_layout): New function.
8838 (layout_list): New global.
8839 (add_layout_command): New function.
8840 (initialize_layouts): Update.
8841 (tui_layout_command): New function.
8842 (_initialize_tui_layout): Install "layout" commands.
8843 * tui/tui-data.h (enum tui_layout_type): Remove.
8844 (tui_current_layout): Don't declare.
8845
8846 2020-02-22 Tom Tromey <tom@tromey.com>
8847
8848 * tui/tui-regs.c (tui_reg_layout): Remove.
8849 (tui_reg_command): Use tui_regs_layout.
8850 * tui/tui-layout.h (tui_reg_command): Declare.
8851 * tui/tui-layout.c (tui_reg_command): New function.
8852
8853 2020-02-22 Tom Tromey <tom@tromey.com>
8854
8855 * tui/tui.c (tui_rl_delete_other_windows): Call
8856 tui_remove_some_windows.
8857 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8858 Declare method.
8859 (class tui_layout_window) <remove_windows>: New method.
8860 (class tui_layout_split) <remove_windows>: Declare.
8861 (tui_remove_some_windows): Declare.
8862 * tui/tui-layout.c (tui_remove_some_windows): New function.
8863 (tui_layout_split::remove_windows): New method.
8864
8865 2020-02-22 Tom Tromey <tom@tromey.com>
8866
8867 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8868 * tui/tui-layout.h (tui_next_layout): Declare.
8869 * tui/tui-layout.c (tui_next_layout): New function.
8870
8871 2020-02-22 Tom Tromey <tom@tromey.com>
8872
8873 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8874 correct coordinates.
8875
8876 2020-02-22 Tom Tromey <tom@tromey.com>
8877
8878 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8879 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8880 DATA_WIN case.
8881
8882 2020-02-22 Tom Tromey <tom@tromey.com>
8883
8884 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8885 TUI_DISASM_WIN, not tui_win_list.
8886
8887 2020-02-22 Tom Tromey <tom@tromey.com>
8888
8889 * valprint.c (generic_val_print_enum_1)
8890 (val_print_type_code_flags): Style member names.
8891 * rust-lang.c (val_print_struct, rust_print_enum)
8892 (rust_print_struct_def, rust_internal_print_type): Style member
8893 names.
8894 * p-valprint.c (pascal_object_print_value_fields): Style member
8895 names. Only call fprintf_symbol_filtered for static members.
8896 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8897 * f-valprint.c (f_val_print): Style member names.
8898 * f-typeprint.c (f_type_print_base): Style member names.
8899 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8900 call fprintf_symbol_filtered for static members.
8901 (cp_print_class_member): Style member names.
8902 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8903 member names.
8904 * ada-valprint.c (ada_print_scalar): Style enum names.
8905 (ada_val_print_enum): Likewise.
8906 * ada-typeprint.c (print_enum_type): Style enum names.
8907
8908 2020-02-21 Tom Tromey <tom@tromey.com>
8909
8910 * psympriv.h (struct partial_symtab): Update comment.
8911
8912 2020-02-21 Tom Tromey <tromey@adacore.com>
8913
8914 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8915 type is CORE_ADDR.
8916
8917 2020-02-21 Tom de Vries <tdevries@suse.de>
8918
8919 PR gdb/25534
8920 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8921 if dependencies[i]->user != NULL.
8922
8923 2020-02-21 Ali Tamur <tamur@google.com>
8924
8925 * dwarf2/read.c (dwarf2_name): Add null check.
8926
8927 2020-02-20 Tom Tromey <tom@tromey.com>
8928
8929 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8930 ">=", in binary search.
8931 (dwarf2_find_containing_comp_unit): New overload.
8932 (run_test): New self-test.
8933 (_initialize_dwarf2_read): Register new test.
8934
8935 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8936
8937 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8938 * riscv-tdep.h: Likewise.
8939 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8940 rv32-only CSR.
8941 * features/riscv/64bit-csr.xml: Regenerated.
8942
8943 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8944 Tom Tromey <tom@tromey.com>
8945
8946 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8947 of 'fputc_unfiltered'.
8948 (putchar_unfiltered): Call 'fputc_unfiltered'.
8949 (fputc_unfiltered): Call 'fputs_unfiltered'.
8950
8951 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8952
8953 * config.in: Regenerate.
8954 * configure: Regenerate.
8955 * configure.ac: Add --with-python-libdir option.
8956 * main.c: Use WITH_PYTHON_LIBDIR.
8957
8958 2020-02-19 Tom Tromey <tom@tromey.com>
8959
8960 * symtab.c (general_symbol_info::compute_and_set_names): Use
8961 obstack_strndup. Simplify call to symbol_set_demangled_name.
8962
8963 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
8964
8965 * dwarf2/read.c (allocate_signatured_type_table,
8966 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8967 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8968 Remove objfile parameter, update all callers.
8969
8970 2020-02-19 Doug Evans <dje@google.com>
8971
8972 PR rust/25535
8973 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8974 rust_enum_variant calculation.
8975
8976 2020-02-19 Tom Tromey <tromey@adacore.com>
8977
8978 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8979
8980 2020-02-19 Tom Tromey <tromey@adacore.com>
8981
8982 * ada-lang.c (cache_symbol): Use obstack_strdup.
8983
8984 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8985
8986 * configure: Regenerate.
8987
8988 2020-02-19 Tom Tromey <tromey@adacore.com>
8989
8990 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8991 NULL check.
8992
8993 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
8994
8995 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8996
8997 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8998
8999 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9000 if GDBSERVER is not defined.
9001 (riscv_tdesc_cache): Likewise, also store const target_desc.
9002 (STATIC_IN_GDB): Define.
9003 (riscv_create_target_description): Update declaration with
9004 STATIC_IN_GDB.
9005 (riscv_lookup_target_description): New function, only define if
9006 GDBSERVER is not defined.
9007 * arch/riscv.h (riscv_create_target_description): Declare only
9008 when GDBSERVER is defined.
9009 (riscv_lookup_target_description): New declaration when GDBSERVER
9010 is not defined.
9011 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9012 (riscv_linux_read_features): ...this, and return
9013 riscv_gdbarch_features instead of target_desc.
9014 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9015 (riscv_linux_read_description): Rename to...
9016 (riscv_linux_read_features): ...this.
9017 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9018 Update to use riscv_gdbarch_features and
9019 riscv_lookup_target_description.
9020 * riscv-tdep.c (riscv_find_default_target_description): Use
9021 riscv_lookup_target_description instead of
9022 riscv_create_target_description.
9023
9024 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9025
9026 * valprint.c (generic_val_print_enum_1): When printing a flag
9027 enum with value 0 and there is no enumerator with value 0, print
9028 just "0" instead of "(unknown: 0x0)".
9029
9030 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9031
9032 * valprint.c (generic_val_print_enum_1): Print unknown part of
9033 flag enum in hex.
9034
9035 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9036
9037 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9038 flag enums to contain duplicate enumerators.
9039 * valprint.c (generic_val_print_enum_1): Update comment.
9040
9041 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9042
9043 * dwarf2/read.c: Include "count-one-bits.h".
9044 (update_enumeration_type_from_children): If an enumerator has
9045 multiple bits set, don't treat the enumeration as a "flag enum".
9046 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9047 of flag enums have 0 or 1 bit set.
9048
9049 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9050
9051 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9052 conversion.
9053 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9054 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9055 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9056 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9057 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9058
9059 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9060
9061 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9062
9063 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9064
9065 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9066 displaced_step_closure_up.
9067 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9068 (struct displaced_step_closure_up):
9069 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9070 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9071 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9072 Likewise.
9073 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9074 * gdbarch.c, gdbarch.h: Re-generate.
9075 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9076 displaced_step_closure_up.
9077 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9078 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9079 * infrun.h (displaced_step_closure_up): New type alias.
9080 (struct displaced_step_inferior_state) <step_closure>: Change
9081 type to displaced_step_closure_up.
9082 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9083 displaced_step_closure_up.
9084 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9085
9086 2020-02-14 Tom Tromey <tom@tromey.com>
9087
9088 * minidebug.c (gnu_debug_key): New global.
9089 (find_separate_debug_file_in_section): Use it.
9090
9091 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9092
9093 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9094 std::unique_ptr.
9095 * gdbarch.c: Re-generate.
9096 * gdbarch.h: Re-generate.
9097 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9098 change.
9099 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9100 type to std::unique_ptr.
9101 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9102 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9103 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9104 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9105 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9106 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9107 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9108 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9109 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9110
9111 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9112
9113 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9114 std::unique_ptr.
9115 (displaced_step_clear): Rename to...
9116 (displaced_step_reset): ... this. Just call displaced->reset ().
9117 (displaced_step_clear_cleanup): Rename to...
9118 (displaced_step_reset_cleanup): ... this.
9119 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9120 (displaced_step_fixup): Likewise.
9121 (resume_1): Likewise.
9122 (handle_inferior_event): Restore child's memory before calling
9123 displaced_step_fixup on the parent.
9124 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9125 to std::unique_ptr.
9126 <step_closure>: Change type to std::unique_ptr.
9127
9128 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9129
9130 * arm-tdep.c: Include count-one-bits.h.
9131 (cleanup_block_store_pc): Use count_one_bits.
9132 (cleanup_block_load_pc): Use count_one_bits.
9133 (arm_copy_block_xfer): Use count_one_bits.
9134 (thumb2_copy_block_xfer): Use count_one_bits.
9135 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9136 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9137 (thumb_get_next_pcs_raw): Use count_one_bits.
9138 (arm_get_next_pcs_raw): Use count_one_bits_l.
9139 * arch/arm.c (bitcount): Remove.
9140 * arch/arm.h (bitcount): Remove.
9141
9142 2020-02-14 Tom Tromey <tromey@adacore.com>
9143
9144 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9145 Update.
9146 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9147 * dwarf2/loc.c (call_site_find_chain_1): Return
9148 unique_xmalloc_ptr.
9149 (call_site_find_chain): Likewise.
9150
9151 2020-02-14 Richard Biener <rguenther@suse.de>
9152
9153 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9154 on expression with division operators.
9155
9156 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9157
9158 * MAINTAINERS (Write After Approval): Adding myself.
9159
9160 2020-02-12 Tom Tromey <tom@tromey.com>
9161
9162 * event-loop.c (event_data, gdb_event, event_handler_func):
9163 Remove.
9164
9165 2020-02-12 Tom Tromey <tom@tromey.com>
9166
9167 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9168 (dwarf2_frame_objfile_data): Add comment.
9169 (find_comp_unit, set_comp_unit): New functions.
9170 (dwarf2_frame_find_fde): Use find_comp_unit.
9171 (dwarf2_build_frame_info): Use set_comp_unit.
9172
9173 2020-02-12 Tom Tromey <tom@tromey.com>
9174
9175 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9176 (comp_unit): Don't initialize objfile.
9177 (execute_cfa_program): Add text_offset parameter.
9178 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9179 (dwarf2_frame_cache): Update.
9180 (dwarf2_build_frame_info): Don't set "objfile" member.
9181
9182 2020-02-12 Tom Tromey <tom@tromey.com>
9183
9184 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9185 (decode_frame_entry): Likewise.
9186 (dwarf2_build_frame_info): Update.
9187
9188 2020-02-12 Tom Tromey <tom@tromey.com>
9189
9190 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9191 (decode_frame_entry_1): Use the comp_unit obstack.
9192
9193 2020-02-12 Tom Tromey <tom@tromey.com>
9194
9195 * dwarf2/frame.c (struct comp_unit): Add initializers and
9196 constructor.
9197 (dwarf2_frame_objfile_data): Store a comp_unit.
9198 (dwarf2_frame_find_fde): Update.
9199 (dwarf2_build_frame_info): Use "new".
9200
9201 2020-02-12 Tom Tromey <tom@tromey.com>
9202
9203 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9204 (dwarf2_fde_table): Typedef for std::vector.
9205 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9206 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9207 (decode_frame_entry): Update.
9208 (dwarf2_build_frame_info): Use "new".
9209
9210 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9211
9212 * arm-tdep.c (arm_gdbarch_init): Update.
9213 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9214 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9215 have_neon, is_m>: Change to bool.
9216
9217 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9218
9219 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9220
9221 2020-02-12 Tom Tromey <tom@tromey.com>
9222
9223 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9224
9225 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9226
9227 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9228 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9229
9230 2020-02-11 Tom Tromey <tom@tromey.com>
9231
9232 * psymtab.h: Update comment.
9233
9234 2020-02-11 Tom Tromey <tom@tromey.com>
9235
9236 * gdb_obstack.h (struct auto_obstack): Use
9237 DISABLE_COPY_AND_ASSIGN.
9238
9239 2020-02-11 Tom Tromey <tom@tromey.com>
9240
9241 * dwarf2/frame.h (struct objfile): Don't forward declare.
9242
9243 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9244
9245 * cris-tdep.c (cris_supply_gregset): Change signature to match
9246 what struct regset expects.
9247 (cris_regset): New struct.
9248 (fetch_core_registers): Remove.
9249 (cris_iterate_over_regset_sections): New function.
9250 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9251 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9252
9253 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9254
9255 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9256 registers.
9257
9258 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9259
9260 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9261
9262 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9263
9264 * configure: Re-generate.
9265
9266 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9267
9268 * configure: Re-generate.
9269
9270 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9271
9272 * acinclude: Update warning.m4 path.
9273 * warning.m4: Move to gdbsupport.
9274
9275 2020-02-11 Tom Tromey <tromey@adacore.com>
9276
9277 * remote.c (remote_console_output): Update.
9278 * printcmd.c (printf_command): Update.
9279 * event-loop.c (gdb_wait_for_event): Update.
9280 * linux-nat.c (sigchld_handler): Update.
9281 * remote-sim.c (gdb_os_write_stdout): Update.
9282 (gdb_os_flush_stdout): Update.
9283 (gdb_os_flush_stderr): Update.
9284 (gdb_os_write_stderr): Update.
9285 * exceptions.c (print_exception): Update.
9286 * remote-fileio.c (remote_fileio_func_read): Update.
9287 (remote_fileio_func_write): Update.
9288 * tui/tui.c (tui_enable): Update.
9289 * tui/tui-interp.c (tui_interp::init): Update.
9290 * utils.c (init_page_info): Update.
9291 (putchar_unfiltered, fputc_unfiltered): Update.
9292 (gdb_flush): Update.
9293 (emit_style_escape): Update.
9294 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9295 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9296 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9297 (stderr_file::write): Update.
9298 (stderr_file::puts): Update.
9299 * ui-file.h (ui_file_isatty, ui_file_write)
9300 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9301 (ui_file_puts): Don't declare.
9302
9303 2020-02-10 Tom de Vries <tdevries@suse.de>
9304
9305 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9306 sentinel to char *.
9307
9308 2020-02-09 Tom de Vries <tdevries@suse.de>
9309
9310 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9311 filename if it matches "<artificial>".
9312
9313 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9314
9315 * windows-tdep.c (struct enum_value_name): New struct.
9316 (create_enum): New function.
9317 (windows_get_siginfo_type): Create and use enum types.
9318
9319 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9320
9321 * NEWS: Mention $_siginfo support for Windows.
9322 * windows-nat.c (handle_exception): Set siginfo_er.
9323 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9324 (windows_xfer_siginfo): New function.
9325 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9326 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9327 (init_windows_gdbarch_data): New function.
9328 (get_windows_gdbarch_data): New function.
9329 (windows_get_siginfo_type): New function.
9330 (windows_init_abi): Register windows_get_siginfo_type.
9331 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9332
9333 2020-02-08 Tom Tromey <tom@tromey.com>
9334
9335 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9336 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9337 <keep>: Declare method.
9338 <m_keep>: Remove member.
9339 <~cutu_reader>: Remove.
9340 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9341 (cutu_reader::cutu_reader): Update.
9342 (cutu_reader::keep): Rename from ~cutu_reader.
9343 (process_psymtab_comp_unit, build_type_psymtabs_1)
9344 (process_skeletonless_type_unit, load_partial_comp_unit)
9345 (load_full_comp_unit, dwarf2_read_addr_index)
9346 (read_signatured_type): Update.
9347
9348 2020-02-08 Tom Tromey <tom@tromey.com>
9349
9350 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9351 "want_partial_unit" parameter.
9352 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9353 Inline check for DW_TAG_partial_unit.
9354 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9355
9356 2020-02-08 Tom Tromey <tom@tromey.com>
9357
9358 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9359 read.c.
9360 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9361 read.c.
9362
9363 2020-02-08 Tom Tromey <tom@tromey.com>
9364
9365 * dwarf2/read.c (read_address): Move to comp-unit.c.
9366 (dwarf2_rnglists_process, dwarf2_ranges_process)
9367 (read_attribute_value, dwarf_decode_lines_1)
9368 (var_decode_location, decode_locdesc): Update.
9369 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9370 read.c. Remove "cu" parameter.
9371 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9372 method.
9373
9374 2020-02-08 Tom Tromey <tom@tromey.com>
9375
9376 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9377 (read_indirect_line_string): Update.
9378 * dwarf2/comp-unit.c (read_offset): Remove.
9379 (read_comp_unit_head): Update.
9380 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9381 method.
9382 (read_offset): Don't declare.
9383
9384 2020-02-08 Tom Tromey <tom@tromey.com>
9385
9386 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9387 * dwarf2/read.c (struct comp_unit_head): Move to
9388 dwarf2/comp-unit.h.
9389 (enum class rcuh_kind): Move to comp-unit.h.
9390 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9391 (read_comp_unit_head, error_check_comp_unit_head)
9392 (read_and_check_comp_unit_head): Move to comp-unit.c.
9393 (read_offset, dwarf_unit_type_name): Likewise.
9394 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9395 (cutu_reader::cutu_reader, read_call_site_scope)
9396 (find_partial_die, follow_die_offset): Update.
9397 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9398
9399 2020-02-08 Tom Tromey <tom@tromey.com>
9400
9401 * dwarf2/read.c (read_offset_1): Move to leb.c.
9402 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9403 (dwarf_decode_macro_bytes): Update.
9404 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9405 * dwarf2/leb.h (read_offset): Declare.
9406
9407 2020-02-08 Tom Tromey <tom@tromey.com>
9408
9409 * dwarf2/read.c (dwarf2_section_size): Remove.
9410 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9411 Update.
9412 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9413
9414 2020-02-08 Tom Tromey <tom@tromey.com>
9415
9416 * dwarf2/read.c (read_initial_length): Move to leb.c.
9417 * dwarf2/leb.h (read_initial_length): Declare.
9418 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9419 handle_nonstd parameter.
9420 * dwarf2/frame.c (read_initial_length): Remove.
9421 (decode_frame_entry_1): Update.
9422
9423 2020-02-08 Tom Tromey <tom@tromey.com>
9424
9425 * dwarf2/loc.c (dwarf2_find_location_expression)
9426 (dwarf_evaluate_loc_desc::get_tls_address)
9427 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9428 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9429 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9430 (dwarf2_compile_property_to_c)
9431 (dwarf2_loc_desc_get_symbol_read_needs)
9432 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9433 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9434 (loclist_describe_location, loclist_tracepoint_var_ref)
9435 (loclist_generate_c_location): Update.
9436 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9437 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9438 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9439 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9440 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9441 (dwarf2_per_cu_data::addr_size)
9442 (dwarf2_per_cu_data::ref_addr_size)
9443 (dwarf2_per_cu_data::text_offset)
9444 (dwarf2_per_cu_data::addr_type): Now methods.
9445 (per_cu_header_read_in): Make per_cu "const".
9446 (dwarf2_version): Remove.
9447 (dwarf2_per_cu_data::int_type): Now a method.
9448 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9449 (set_die_type, read_array_type, read_subrange_index_type)
9450 (read_tag_string_type, read_subrange_type): Update.
9451 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9452 offset_size, ref_addr_size, text_offset, addr_type, version,
9453 objfile, int_type, addr_sized_int_type>: Declare methods.
9454
9455 2020-02-08 Tom Tromey <tom@tromey.com>
9456
9457 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9458 Move earlier.
9459
9460 2020-02-08 Tom Tromey <tom@tromey.com>
9461
9462 * dwarf2/read.h (dwarf_line_debug): Declare.
9463 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9464 * dwarf2/read.c: Move line_header code to new files.
9465 (dwarf_line_debug): No longer static.
9466 * dwarf2/line-header.c: New file.
9467 * dwarf2/line-header.h: New file.
9468
9469 2020-02-08 Tom Tromey <tom@tromey.com>
9470
9471 * dwarf2/read.c (struct line_header) <file_full_name,
9472 file_file_name>: Return unique_xmalloc_ptr.
9473 (line_header::file_file_name): Update.
9474 (line_header::file_full_name): Update.
9475 (dw2_get_file_names_reader): Update.
9476 (macro_start_file): Update.
9477
9478 2020-02-08 Tom Tromey <tom@tromey.com>
9479
9480 * dwarf2/read.c (struct line_header) <file_full_name,
9481 file_file_name>: Declare methods.
9482 (dw2_get_file_names_reader): Update.
9483 (file_file_name): Now a method.
9484 (file_full_name): Likewise.
9485 (macro_start_file): Update.
9486
9487 2020-02-08 Tom Tromey <tom@tromey.com>
9488
9489 * dwarf2/read.c (dwarf_always_disassemble)
9490 (show_dwarf_always_disassemble): Move to loc.c.
9491 (_initialize_dwarf2_read): Move "always-disassemble" registration
9492 to loc.c.
9493 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9494 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9495 static.
9496 (show_dwarf_always_disassemble): Move from read.c.
9497 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9498
9499 2020-02-08 Tom Tromey <tom@tromey.com>
9500
9501 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9502 (create_quick_file_names_table): Return htab_up.
9503 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9504 Update.
9505 * dwarf2/read.h (struct dwarf2_per_objfile)
9506 <quick_file_names_table>: Now htab_up.
9507
9508 2020-02-08 Tom Tromey <tom@tromey.com>
9509
9510 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9511
9512 2020-02-08 Tom Tromey <tom@tromey.com>
9513
9514 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9515 Rewrite.
9516 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9517 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9518 (abbrev_table::abbrev_table): No longer inline.
9519 (ABBREV_HASH_SIZE): Remove.
9520 (abbrev_table::m_abbrevs): Now an htab_up.
9521
9522 2020-02-08 Tom Tromey <tom@tromey.com>
9523
9524 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9525 (cutu_reader): Update.
9526 (build_type_psymtabs_1): Update.
9527 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9528 (abbrev_table::alloc_abbrev): Update.
9529 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9530 (abbrev_table::read): New static method, renamed from
9531 abbrev_table_read_table.
9532 (abbrev_table::alloc_abbrev)
9533 (abbrev_table::add_abbrev): Now private.
9534 (abbrev_table::abbrev_table): Now private.
9535 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9536
9537 2020-02-08 Tom Tromey <tom@tromey.com>
9538
9539 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9540 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9541 htab_up.
9542
9543 2020-02-08 Tom Tromey <tom@tromey.com>
9544
9545 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9546 htab_up.
9547 (lookup_dwo_unit_in_dwp): Update.
9548 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9549 on obstack.
9550
9551 2020-02-08 Tom Tromey <tom@tromey.com>
9552
9553 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9554 obstack.
9555
9556 2020-02-08 Tom Tromey <tom@tromey.com>
9557
9558 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9559 line_header_hash.
9560 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9561 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9562 Change type to htab_up.
9563
9564 2020-02-08 Tom Tromey <tom@tromey.com>
9565
9566 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9567 htab_up. Don't allocate on obstack.
9568 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9569 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9570 Change type to htab_up.
9571
9572 2020-02-08 Tom Tromey <tom@tromey.com>
9573
9574 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9575 Change type to htab_up.
9576 * dwarf2/read.c (create_signatured_type_table_from_index)
9577 (create_signatured_type_table_from_debug_names)
9578 (create_all_type_units, add_type_unit)
9579 (lookup_dwo_signatured_type, lookup_signatured_type)
9580 (process_skeletonless_type_unit): Update.
9581 (create_debug_type_hash_table, create_debug_types_hash_table):
9582 Change type of types_htab.
9583 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9584 htab_up. Don't allocate on obstack.
9585 (create_cus_hash_table): Change type of cus_htab parameter.
9586 (struct dwo_file) <cus, tus>: Now htab_up.
9587 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9588 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9589 (queue_and_load_all_dwo_tus): Update.
9590 * dwarf2/index-write.c (write_gdbindex): Update.
9591 (write_debug_names): Update.
9592
9593 2020-02-08 Tom Tromey <tom@tromey.com>
9594
9595 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9596 dwarf2/read.c. Remove "next" member. Add constructor ntad
9597 destructor.
9598 (struct dwarf2_per_objfile) <queue>: New member.
9599 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9600 dwarf2/read.h.
9601 (dwarf2_queue, dwarf2_queue_tail): Remove.
9602 (class dwarf2_queue_guard): Add parameter to constructor. Use
9603 DISABLE_COPY_AND_ASSIGN.
9604 <m_per_objfile>: New member.
9605 <~dwarf2_queue_guard>: Rewrite.
9606 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9607 Update.
9608 (~dwarf2_queue_item): New.
9609
9610 2020-02-08 Tom Tromey <tom@tromey.com>
9611
9612 * dwarf2/read.c (struct die_info) <has_children>: New member.
9613 (dw2_get_file_names_reader): Remove has_children.
9614 (dw2_get_file_names): Update.
9615 (read_cutu_die_from_dwo): Remove has_children.
9616 (cutu_reader::init_tu_and_read_dwo_dies)
9617 (cutu_reader::cutu_reader): Update.
9618 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9619 Remove has_children.
9620 (build_type_psymtabs_1, process_skeletonless_type_unit)
9621 (load_partial_comp_unit, load_full_comp_unit): Update.
9622 (create_dwo_cu_reader): Remove has_children.
9623 (create_cus_hash_table, read_die_and_children): Update.
9624 (read_full_die_1,read_full_die): Remove has_children.
9625 (read_signatured_type): Update.
9626 (class cutu_reader) <has_children>: Remove.
9627
9628 2020-02-08 Tom Tromey <tom@tromey.com>
9629
9630 * dwarf2/expr.c: Rename from dwarf2expr.c.
9631 * dwarf2/expr.h: Rename from dwarf2expr.h.
9632 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9633 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9634 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9635 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9636 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9637 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9638 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9639 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9640 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9641 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9642 * dwarf2/loc.c: Rename from dwarf2loc.c.
9643 * dwarf2/loc.h: Rename from dwarf2loc.h.
9644 * dwarf2/read.c: Rename from dwarf2read.c.
9645 * dwarf2/read.h: Rename from dwarf2read.h.
9646 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9647 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9648 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9649 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9650 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9651 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9652 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9653 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9654 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9655 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9656 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9657 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9658 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9659 Update.
9660 * Makefile.in (COMMON_SFILES): Update.
9661 (HFILES_NO_SRCDIR): Update.
9662
9663 2020-02-08 Tom Tromey <tom@tromey.com>
9664
9665 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9666 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9667
9668 2020-02-08 Tom Tromey <tom@tromey.com>
9669
9670 * dwarf2read.h (struct die_info): Don't declare.
9671
9672 2020-02-08 Tom Tromey <tom@tromey.com>
9673
9674 * dwarf2read.h (die_info_ptr): Remove typedef.
9675
9676 2020-02-08 Tom Tromey <tom@tromey.com>
9677
9678 * dwarf2read.c (read_call_site_scope)
9679 (handle_data_member_location, dwarf2_add_member_fn)
9680 (mark_common_block_symbol_computed, read_common_block)
9681 (attr_to_dynamic_prop, partial_die_info::read)
9682 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9683 (dwarf2_symbol_mark_computed, set_die_type): Update.
9684 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9685 method.
9686 (attr_form_is_block): Don't declare.
9687 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9688
9689 2020-02-08 Tom Tromey <tom@tromey.com>
9690
9691 * dwarf2read.c (dwarf2_find_base_address, )
9692 (read_call_site_scope, rust_containing_type)
9693 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9694 (handle_data_member_location, dwarf2_add_member_fn)
9695 (get_alignment, read_structure_type, process_structure_scope)
9696 (mark_common_block_symbol_computed, read_common_block)
9697 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9698 (partial_die_info::read, read_attribute_value, new_symbol)
9699 (lookup_die_type, dwarf2_get_ref_die_offset)
9700 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9701 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9702 (dwarf2_symbol_mark_computed): Update.
9703 * dwarf2/attribute.h (struct attribute) <value_as_address,
9704 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9705 methods.
9706 (value_as_address, attr_form_is_section_offset)
9707 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9708 * dwarf2/attribute.c (attribute::value_as_address)
9709 (attribute::form_is_section_offset, attribute::form_is_constant)
9710 (attribute::form_is_ref): Now methods.
9711
9712 2020-02-08 Tom Tromey <tom@tromey.com>
9713
9714 * dwarf2read.c (struct attribute, DW_STRING)
9715 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9716 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9717 (attr_form_is_block, attr_form_is_section_offset)
9718 (attr_form_is_constant, attr_form_is_ref): Move.
9719 * dwarf2/attribute.h: New file.
9720 * dwarf2/attribute.c: New file, from dwarf2read.c.
9721 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9722
9723 2020-02-08 Tom Tromey <tom@tromey.com>
9724
9725 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9726 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9727 Move.
9728 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9729 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9730 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9731 abbrev.c.
9732 * dwarf2/abbrev.h: New file.
9733 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9734 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9735
9736 2020-02-08 Tom Tromey <tom@tromey.com>
9737
9738 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9739 (dwarf2_section_size, dwarf2_get_section_info)
9740 (create_signatured_type_table_from_debug_names)
9741 (create_addrmap_from_aranges, read_debug_names_from_section)
9742 (get_gdb_index_contents_from_section, read_comp_unit_head)
9743 (error_check_comp_unit_head, read_abbrev_offset)
9744 (create_debug_type_hash_table, init_cu_die_reader)
9745 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9746 (read_comp_units_from_section, create_cus_hash_table)
9747 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9748 (create_dwp_v2_section, dwarf2_rnglists_process)
9749 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9750 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9751 (read_indirect_string_from_dwz, read_addr_index_1)
9752 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9753 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9754 (fill_in_loclist_baton): Update.
9755 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9756 get_containing_section, get_bfd_owner, get_bfd_section,
9757 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9758 (dwarf2_read_section, get_section_name, get_section_file_name)
9759 (get_containing_section, get_section_bfd_owner)
9760 (get_section_bfd_section, get_section_name, get_section_file_name)
9761 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9762 declare.
9763 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9764 (dwarf2_section_info::get_bfd_owner)
9765 (dwarf2_section_info::get_bfd_section)
9766 (dwarf2_section_info::get_name)
9767 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9768 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9769 (dwarf2_section_info::read): Now methods.
9770 * dwarf-index-write.c (class debug_names): Update.
9771
9772 2020-02-08 Tom Tromey <tom@tromey.com>
9773
9774 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9775 Move to dwarf2/section.h.
9776 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9777 (get_section_bfd_section, get_section_name)
9778 (get_section_file_name, get_section_id, get_section_flags)
9779 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9780 dwarf2/section.c.
9781 * dwarf2/section.h: New file.
9782 * dwarf2/section.c: New file, from dwarf2read.c.
9783 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9784
9785 2020-02-08 Tom Tromey <tom@tromey.com>
9786
9787 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9788 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9789 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9790 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9791 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9792 * dwarf2/leb.h: New file, from dwarf2read.c.
9793 * dwarf2/leb.c: New file, from dwarf2read.c.
9794 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9795 Remove.
9796 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9797 (COMMON_SFILES): Add dwarf2/leb.c.
9798
9799 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9800
9801 GDB 9.1 released.
9802
9803 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9804
9805 PR gdb/25190:
9806 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9807 * gdb/remote.c (remote_console_output): Update.
9808 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9809 (ui_file_puts): ...this.
9810 * gdb/ui-file.h (ui_file_puts): Add declaration.
9811 * gdb/utils.c (emit_style_escape): Update.
9812 (flush_wrap_buffer): Update.
9813 (fputs_maybe_filtered): Update.
9814 (fputs_unfiltered): Add function.
9815
9816 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9817
9818 * gdb/event-loop.c (gdb_wait_for_event): Update.
9819 * gdb/printcmd.c (printf_command): Update.
9820 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9821 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9822 (gdb_os_flush_stderr): Update.
9823 * gdb/remote.c (remote_console_output): Update.
9824 * gdb/ui-file.c (gdb_flush): Rename to...
9825 (ui_file_flush): ...this.
9826 (stderr_file::write): Update.
9827 (stderr_file::puts): Update.
9828 * gdb/ui-file.h (gdb_flush): Rename to...
9829 (ui_file_flush): ...this.
9830 * gdb/utils.c (gdb_flush): Add function.
9831 * gdb/utils.h (gdb_flush): Add declaration.
9832
9833 2020-02-07 Tom Tromey <tromey@adacore.com>
9834
9835 PR breakpoints/24915:
9836 * source.c (find_and_open_source): Do not check basenames_may_differ.
9837
9838 2020-02-07 Tom Tromey <tom@tromey.com>
9839
9840 * README: Update gdbserver documentation.
9841 * gdbserver: Move to top level.
9842 * configure.tgt (build_gdbserver): Remove.
9843 * configure.ac: Remove --enable-gdbserver.
9844 * configure: Rebuild.
9845 * Makefile.in (distclean): Don't mention gdbserver.
9846
9847 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9848
9849 * source-cache.c (source_cache::ensure): Surround
9850 get_plain_source_lines with a try/catch.
9851 (source_cache::get_line_charpos): Get rid of try/catch
9852 and only check for the return value of "ensure".
9853 * tui/tui-source.c (tui_source_window::set_contents):
9854 Simplify "nlines" calculation.
9855
9856 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9857
9858 * MAINTAINERS (Write After Approval): Add myself.
9859
9860 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9861
9862 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9863 function call.
9864
9865 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9866
9867 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9868
9869 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9870
9871 * nat/riscv-linux-tdesc.h: New file.
9872 * nat/riscv-linux-tdesc.c: New file, taking code from...
9873 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9874 ... here.
9875 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9876 NATDEPFILES.
9877
9878 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9879
9880 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9881 we don't set the fake simulator ptid to the null_ptid.
9882
9883 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9884
9885 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9886 * gdbthread.h (class thread_info) <resumed>: Likewise.
9887 * infrun.c (resume_1): Likewise.
9888 (proceed): Likewise.
9889 (infrun_thread_stop_requested): Likewise.
9890 (stop_all_threads): Likewise.
9891 (handle_inferior_event): Likewise.
9892 (restart_threads): Likewise.
9893 (finish_step_over): Likewise.
9894 (keep_going_stepped_thread): Likewise.
9895 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9896 (linux_handle_extended_wait): Likewise.
9897 * record-btrace.c (get_thread_current_frame_id): Likewise.
9898 * record-full.c (record_full_wait_1): Likewise.
9899 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9900 * target.c (target_resume): Likewise.
9901 * thread.c (set_running_thread): Likewise.
9902
9903 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9904
9905 * f-valprint.c (f77_print_array_1): Changed datatype of index
9906 variable to LONGEST from int to enable it to contain bound
9907 values correctly.
9908
9909 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9910
9911 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9912 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9913 offsets according to FLEN determined.
9914 (riscv_linux_nat_target::read_description): Determine FLEN
9915 dynamically.
9916 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9917 according to FLEN determined.
9918 (riscv_linux_nat_target::store_registers): Likewise.
9919
9920 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9921
9922 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9923 when reg->group is empty and reggroup is not.
9924
9925 2020-01-31 Tom Tromey <tromey@adacore.com>
9926
9927 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9928 Call beneath target's mourn_inferior after unpushing.
9929
9930 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9931
9932 PR tui/9765
9933 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9934 have enough lines to fill the screen, still return the lowest
9935 address we found.
9936
9937 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9938
9939 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9940 '-', '<', and '>' commands.
9941
9942 2020-01-29 Pedro Alves <palves@redhat.com>
9943 Sergio Durigan Junior <sergiodj@redhat.com>
9944
9945 * infcmd.c (construct_inferior_arguments): Assert that
9946 'argc' is greater than 0.
9947
9948 2020-01-29 Luis Machado <luis.machado@linaro.org>
9949
9950 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9951 (BRK_INSN_MASK): Define to 0xd4200000.
9952 (aarch64_program_breakpoint_here_p): New function.
9953 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9954 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9955 breakpoint.c.
9956 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9957 breakpoint.h
9958 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9959 call gdbarch_program_breakpoint_here_p.
9960 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9961 default_program_breakpoint_here_p, changed return type to bool and
9962 simplified.
9963 * breakpoint.h (program_breakpoint_here): Moved prototype to
9964 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9965 return type to bool.
9966 * gdbarch.c: Regenerate.
9967 * gdbarch.h: Regenerate.
9968 * gdbarch.sh (program_breakpoint_here_p): New method.
9969 * infrun.c (handle_signal_stop): Call
9970 gdbarch_program_breakpoint_here_p.
9971
9972 2020-01-26 Tom Tromey <tom@tromey.com>
9973
9974 * ctfread.c (struct ctf_fp_info): Reindent.
9975 (_initialize_ctfread): Remove.
9976
9977 2020-01-26 Tom Tromey <tom@tromey.com>
9978
9979 * psymtab.c (partial_map_expand_apply)
9980 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9981 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9982 (psym_print_stats, psym_expand_symtabs_for_function)
9983 (psym_map_symbol_filenames, psym_map_matching_symbols)
9984 (psym_expand_symtabs_matching)
9985 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9986 (maintenance_check_psymtabs): Use new methods.
9987 * psympriv.h (struct partial_symtab) <readin_p,
9988 get_compunit_symtab>: New methods.
9989 <readin, compunit_symtab>: Remove members.
9990 (struct standard_psymtab): New.
9991 (struct legacy_psymtab): Derive from standard_psymtab.
9992 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9993 standard_psymtab.
9994 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9995
9996 2020-01-26 Tom Tromey <tom@tromey.com>
9997
9998 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9999 read_dependencies. Add assert.
10000 * psymtab.c (partial_symtab::read_dependencies): New method.
10001 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10002 method.
10003 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10004 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10005 read_dependencies.
10006 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10007 Add assert.
10008
10009 2020-01-26 Tom Tromey <tom@tromey.com>
10010
10011 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10012 Call expand_psymtab.
10013 (xcoff_read_symtab): Call expand_psymtab.
10014 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10015 legacy_expand_psymtab.
10016 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10017 method.
10018 (struct legacy_psymtab) <expand_psymtab>: Implement.
10019 <legacy_expand_psymtab>: New member.
10020 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10021 (parse_partial_symbols): Set legacy_expand_psymtab.
10022 (psymtab_to_symtab_1): Change argument order. Call
10023 expand_psymtab.
10024 (new_psymtab): Set legacy_expand_psymtab.
10025 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10026 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10027 expand_psymtab.
10028 (dwarf2_psymtab::expand_psymtab): Rename from
10029 psymtab_to_symtab_1. Call expand_psymtab.
10030 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10031 (dbx_end_psymtab): Likewise.
10032 (dbx_psymtab_to_symtab_1): Change argument order. Call
10033 expand_psymtab.
10034 (dbx_read_symtab): Call expand_psymtab.
10035 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10036 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10037 (ctf_psymtab::read_symtab): Call expand_psymtab.
10038
10039 2020-01-26 Tom Tromey <tom@tromey.com>
10040
10041 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10042 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10043 messages.
10044 * mdebugread.c (mdebug_read_symtab): Remove prints.
10045 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10046 assert.
10047 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10048
10049 2020-01-26 Tom Tromey <tom@tromey.com>
10050
10051 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10052 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10053 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10054 legacy_symtab.
10055 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10056 * psymtab.c (psymtab_to_symtab): Call method.
10057 (dump_psymtab): Update.
10058 * psympriv.h (struct partial_symtab): Add virtual destructor.
10059 <read_symtab>: New method.
10060 (struct legacy_symtab): New.
10061 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10062 (struct pst_map) <pst>: Now a legacy_psymtab.
10063 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10064 (new_psymtab): Use legacy_psymtab.
10065 * dwarf2read.h (struct dwarf2_psymtab): New.
10066 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10067 * dwarf2read.c (dwarf2_create_include_psymtab)
10068 (dwarf2_build_include_psymtabs, create_type_unit_group)
10069 (create_partial_symtab, process_psymtab_comp_unit_reader)
10070 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10071 (set_partial_user): Use dwarf2_psymtab.
10072 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10073 (psymtab_to_symtab_1, process_full_comp_unit)
10074 (process_full_type_unit, dwarf2_ranges_read)
10075 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10076 (dwarf_decode_lines): Use dwarf2_psymtab.
10077 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10078 (add_address_entry_worker, write_one_signatured_type)
10079 (recursively_count_psymbols, recursively_write_psymbols)
10080 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10081 (write_debug_names): Likewise.
10082 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10083 <pst>: Now a legacy_psymtab.
10084 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10085 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10086 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10087 * ctfread.c (struct ctf_psymtab): New.
10088 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10089 ctf_psymtab.
10090 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10091 (create_partial_symtab): Return a ctf_psymtab.
10092 (scan_partial_symbols): Update.
10093
10094 2020-01-26 Tom Tromey <tom@tromey.com>
10095
10096 * xcoffread.c (xcoff_start_psymtab): Use new.
10097 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10098 renamed from start_psymtab_common.
10099 * psympriv.h (struct partial_symtab): Add new constructor.
10100 (start_psymtab_common): Don't declare.
10101 * mdebugread.c (parse_partial_symbols): Use new.
10102 * dwarf2read.c (create_partial_symtab): Use new.
10103 * dbxread.c (start_psymtab): Use new.
10104 * ctfread.c (create_partial_symtab): Use new.
10105
10106 2020-01-26 Tom Tromey <tom@tromey.com>
10107
10108 * xcoffread.c (xcoff_end_psymtab): Use new.
10109 * psymtab.c (start_psymtab_common): Use new.
10110 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10111 Update.
10112 * psympriv.h (struct partial_symtab): Add parameters to
10113 constructor. Don't inline.
10114 (allocate_psymtab): Don't declare.
10115 * mdebugread.c (new_psymtab): Use new.
10116 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10117 * dbxread.c (dbx_end_psymtab): Use new.
10118
10119 2020-01-26 Tom Tromey <tom@tromey.com>
10120
10121 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10122 allocate_psymtab. Update documentation.
10123 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10124 allocate_psymtab. Do not use new.
10125 (allocate_psymtab): Use new. Update.
10126
10127 2020-01-26 Tom Tromey <tom@tromey.com>
10128
10129 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10130 * psymtab.c (psym_print_stats): Update.
10131 * psympriv.h (struct partial_symtab) <readin,
10132 psymtabs_addrmap_supported, anonymous>: Now bool.
10133 * mdebugread.c (psymtab_to_symtab_1): Update.
10134 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10135 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10136 (process_full_comp_unit, process_full_type_unit): Update.
10137 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10138 * ctfread.c (psymtab_to_symtab): Update.
10139
10140 2020-01-26 Tom Tromey <tom@tromey.com>
10141
10142 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10143 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10144 * psymtab.c (psymtab_storage): Delete psymtabs.
10145 (psymtab_storage::allocate_psymtab): Use new.
10146 (psymtab_storage::discard_psymtab): Use delete.
10147 * psympriv.h (struct partial_symtab): Add constructor and
10148 initializers.
10149
10150 2020-01-26 Tom Tromey <tom@tromey.com>
10151
10152 * machoread.c: Do not include psympriv.h.
10153
10154 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10155
10156 * NEWS: Mention the new option and the set/show commands.
10157
10158 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10159
10160 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10161 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10162 (validate_exec_file): New variables, enums, functions.
10163 (exec_file_locate_attach, print_section_info): Style the filenames.
10164 (_initialize_exec): Install show_exec_file_mismatch_command and
10165 set_exec_file_mismatch_command.
10166 * gdbcore.h (validate_exec_file): Declare.
10167 * infcmd.c (attach_command): Call validate_exec_file.
10168 * remote.c ( remote_target::remote_add_inferior): Likewise.
10169
10170 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10171
10172 * frame.c (find_frame_sal): Move call to get_next_frame into more
10173 inner scope.
10174 * inline-frame.c (inilne_state) <inline_state>: Update argument
10175 types.
10176 (inilne_state) <skipped_symbol>: Rename to...
10177 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10178 (skip_inline_frames): Build vector of skipped symbols and use this
10179 to reate the inline_state.
10180 (inline_skipped_symbol): Add a comment and some assertions, fetch
10181 skipped symbol from the list.
10182
10183 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10184
10185 * buildsym.c (lte_is_less_than): Delete.
10186 (buildsym_compunit::end_symtab_with_blockvector): Create local
10187 lambda function to sort line table entries, and use
10188 std::stable_sort instead of std::sort.
10189 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10190 markers when looking for a previous line.
10191
10192 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10193
10194 * dwarf2read.c (lnp_state_machine::record_line): Include
10195 end_sequence parameter in debug print out. Record the line if we
10196 are at an end_sequence marker even if it's not the start of a
10197 statement.
10198 * symmisc.c (maintenance_print_one_line_table): Print end of
10199 sequence markers with 'END' not '0'.
10200
10201 2020-01-24 Pedro Alves <palves@redhat.com>
10202
10203 PR gdb/25410
10204 * thread.c (scoped_restore_current_thread::restore): Use
10205 switch_to_inferior_no_thread.
10206 * exec.c: Include "progspace-and-thread.h".
10207 (add_target_sections, remove_target_sections):
10208 scoped_restore_current_pspace_and_thread instead of
10209 scoped_restore_current_thread.
10210 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10211 and aspace to the inferior before calling clone_program_space.
10212 Remove stale comment.
10213
10214 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10215
10216 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10217 (arm_netbsd_nat_target::fetch_registers): ...this.
10218 (arm_nbsd_nat_target::store_registers): Rename to...
10219 (arm_netbsd_nat_target::store_registers): ...this.
10220
10221 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10222
10223 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10224 register_t.
10225
10226 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10227
10228 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10229 Update comment.
10230 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10231 Likewise.
10232 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10233 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10234 the correct replacement (iterate_over_regset_sections).
10235 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10236 Update comment.
10237
10238 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10239
10240 PR gdb/23718
10241 * gdb/python/python.c (execute_gdb_command): Call
10242 async_enable_stdin in catch block.
10243
10244 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10245
10246 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10247 SWITCH_THRU_ALL_UIS.
10248
10249 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10250
10251 PR tui/9765
10252 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10253 comment, add extra parameter, and update to store previous symbol
10254 when appropriate.
10255 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10256 add extra parameter.
10257 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10258 remove unneeded parameter, add try/catch around gdb_print_insn,
10259 rewrite to add items to asm_lines vector.
10260 (tui_find_backward_disassembly_start_address): New function.
10261 (tui_find_disassembly_address): Updated throughout.
10262 (tui_disasm_window::set_contents): Update for changes to
10263 tui_disassemble.
10264 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10265 number of lines to scroll.
10266
10267 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10268
10269 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10270 (SECT_OFF_DATA): Likewise.
10271 (SECT_OFF_RODATA): Likewise.
10272 (SECT_OFF_TEXT): Likewise.
10273 (SECT_OFF_BSS): Likewise.
10274 (struct objfile) <text_section_offset, data_section_offset>: New
10275 methods.
10276 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10277 objfile::text_section_offset.
10278 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10279 * coffread.c (coff_symtab_read): Likewise.
10280 (enter_linenos): Likewise.
10281 (process_coff_symbol): Likewise.
10282 * ctfread.c (get_objfile_text_range): Likewise.
10283 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10284 Use objfile::data_section_offset.
10285 * dwarf2-frame.c (execute_cfa_program): Use
10286 objfile::text_section_offset.
10287 (dwarf2_frame_find_fde): Likewise.
10288 * dwarf2read.c (create_addrmap_from_index): Likewise.
10289 (create_addrmap_from_aranges): Likewise.
10290 (dw2_find_pc_sect_compunit_symtab): Likewise.
10291 (process_psymtab_comp_unit_reader): Likewise.
10292 (add_partial_symbol): Likewise.
10293 (add_partial_subprogram): Likewise.
10294 (process_full_comp_unit): Likewise.
10295 (read_file_scope): Likewise.
10296 (read_func_scope): Likewise.
10297 (read_lexical_block_scope): Likewise.
10298 (read_call_site_scope): Likewise.
10299 (dwarf2_rnglists_process): Likewise.
10300 (dwarf2_ranges_process): Likewise.
10301 (dwarf2_ranges_read): Likewise.
10302 (dwarf_decode_lines_1): Likewise.
10303 (new_symbol): Likewise.
10304 (dwarf2_fetch_die_loc_sect_off): Likewise.
10305 (dwarf2_per_cu_text_offset): Likewise.
10306 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10307 * hppa-tdep.c (read_unwind_info): Likewise.
10308 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10309 * psympriv.h (struct partial_symtab): Likewise.
10310 * psymtab.c (find_pc_sect_psymtab): Likewise.
10311 * solib-svr4.c (enable_break): Likewise.
10312 * stap-probe.c (relocate_address): Use
10313 objfile::data_section_offset.
10314 * xcoffread.c (enter_line_range): Use
10315 objfile::text_section_offset.
10316 (read_xcoff_symtab): Likewise.
10317
10318 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10319
10320 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10321 declaration to narrower scopes.
10322
10323 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10324
10325 * darwin-nat.h (struct darwin_exception_msg, enum
10326 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10327 Move up.
10328 (class darwin_nat_target) <wait_1, check_new_threads,
10329 decode_exception_message, decode_message, stop_inferior,
10330 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10331 * darwin-nat.c (darwin_check_new_threads): Rename to...
10332 (darwin_nat_target::check_new_threads): ... this.
10333 (darwin_suspend_inferior_it): Remove.
10334 (darwin_decode_exception_message): Rename to...
10335 (darwin_nat_target::decode_exception_message): ... this.
10336 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10337 (darwin_decode_message): Rename to...
10338 (darwin_nat_target::decode_message): ... this.
10339 (cancel_breakpoint): Rename to...
10340 (darwin_nat_target::cancel_breakpoint): ... this.
10341 (darwin_wait): Rename to...
10342 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10343 instead of iterate_over_inferiors.
10344 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10345 (darwin_stop_inferior): Rename to...
10346 (darwin_nat_target::stop_inferior): ... this.
10347 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10348 (darwin_init_thread_list): Rename to...
10349 (darwin_nat_target::init_thread_list): ... this.
10350 (darwin_ptrace_him): Rename to...
10351 (darwin_nat_target::ptrace_him): ... this.
10352 (darwin_nat_target::create_inferior): Pass lambda function to
10353 fork_inferior.
10354 (darwin_nat_target::detach): Call stop_inferior instead of
10355 darwin_stop_inferior.
10356 * fork-inferior.h (fork_inferior): Change init_trace_fun
10357 parameter to gdb::function_view.
10358 * fork-inferior.c (fork_inferior): Likewise.
10359
10360 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10361
10362 * i386-cygwin-tdep.c (core_process_module_section): Update.
10363 * windows-nat.c (struct lm_info_windows): Add text_offset.
10364 (windows_xfer_shared_libraries): Update.
10365 * windows-tdep.c (windows_xfer_shared_library):
10366 Add text_offset_cached argument.
10367 * windows-tdep.h (windows_xfer_shared_library): Update.
10368
10369 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10370
10371 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10372
10373 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10374
10375 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10376 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10377 replace with range-based for.
10378 (gdbsim_interrupt_inferior): Remove.
10379 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10380 with a range-based for. Inline code from
10381 gdbsim_interrupt_inferior.
10382
10383 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10384
10385 * infrun.c (proceed): Fix indentation.
10386
10387 2020-01-21 Tom Tromey <tromey@adacore.com>
10388
10389 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10390 * python/python.c (python_extension_ops): Update.
10391 (gdbpy_colorize): New function.
10392 * python/lib/gdb/__init__.py (colorize): New function.
10393 * extension.h (ext_lang_colorize): Declare.
10394 * extension.c (ext_lang_colorize): New function.
10395 * extension-priv.h (struct extension_language_ops) <colorize>: New
10396 member.
10397 * cli/cli-style.c (_initialize_cli_style): Update help text.
10398
10399 2020-01-21 Luis Machado <luis.machado@linaro.org>
10400
10401 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10402 <cond>: Change type to bool.
10403 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10404 (aarch64_displaced_step_cb): Likewise.
10405 (aarch64_displaced_step_tb): Likewise.
10406
10407 2020-01-21 Luis Machado <luis.machado@linaro.org>
10408
10409 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10410 output.
10411
10412 2020-01-21 Luis Machado <luis.machado@linaro.org>
10413
10414 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10415 <pc_adjust>: Adjust the documentation.
10416 (aarch64_displaced_step_fixup): Check if PC really moved before
10417 adjusting it.
10418
10419 2020-01-19 Tom Tromey <tom@tromey.com>
10420
10421 * disasm.c (~gdb_disassembler): New destructor.
10422 (gdb_buffered_insn_length): Call disassemble_free_target.
10423 * disasm.h (class gdb_disassembler): Declare destructor. Use
10424 DISABLE_COPY_AND_ASSIGN.
10425
10426 2020-01-19 Tom Tromey <tom@tromey.com>
10427
10428 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10429 (die_reader_func_ftype): Remove.
10430 (cutu_reader): New class.
10431 (dw2_get_file_names_reader): Remove "data" parameter.
10432 (dw2_get_file_names): Use cutu_reader.
10433 (create_debug_type_hash_table): Update.
10434 (read_cutu_die_from_dwo): Update comment.
10435 (lookup_dwo_unit): Add dwo_name parameter.
10436 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10437 die_reader_func_ftype and data parameters.
10438 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10439 Remove die_reader_func_ftype and data parameters.
10440 (~cutu_reader): New; from init_cutu_and_read_dies.
10441 (cutu_reader::cutu_reader): Rename from
10442 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10443 and data parameters.
10444 (init_cutu_and_read_dies_simple): Remove.
10445 (struct process_psymtab_comp_unit_data): Remove.
10446 (process_psymtab_comp_unit_reader): Remove data parameter; add
10447 want_partial_unit and pretend_language parameters.
10448 (process_psymtab_comp_unit): Use cutu_reader.
10449 (build_type_psymtabs_reader): Remove data parameter.
10450 (build_type_psymtabs_1): Use cutu_reader.
10451 (process_skeletonless_type_unit): Likewise.
10452 (load_partial_comp_unit_reader): Remove.
10453 (load_partial_comp_unit): Use cutu_reader.
10454 (load_full_comp_unit_reader): Remove.
10455 (load_full_comp_unit): Use cutu_reader.
10456 (struct create_dwo_cu_data): Remove.
10457 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10458 dwo_unit parameters.
10459 (create_cus_hash_table): Use cutu_reader.
10460 (struct dwarf2_read_addr_index_data): Remove.
10461 (dwarf2_read_addr_index_reader): Remove.
10462 (dwarf2_read_addr_index): Use cutu_reader.
10463 (read_signatured_type_reader): Remove.
10464 (read_signatured_type): Use cutu_reader.
10465
10466 2020-01-19 Tom Tromey <tom@tromey.com>
10467
10468 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10469 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10470 (tui_wrefresh): Declare.
10471 * tui/tui-wingeneral.c (suppress_output): New global.
10472 (tui_suppress_output, ~tui_suppress_output): New constructor and
10473 destructor.
10474 (tui_wrefresh): New function.
10475 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10476 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10477 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10478 method.
10479 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10480 tui_wrefresh.
10481 (tui_data_window::no_refresh): New method.
10482 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10483 (tui_reg_command): Use tui_suppress_output
10484 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10485 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10486 method.
10487 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10488
10489 2020-01-19 Tom Tromey <tom@tromey.com>
10490
10491 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10492 Handle case where symtab is null.
10493
10494 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10495
10496 * linux-fork.c (one_fork_p): Simplify.
10497
10498 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10499
10500 * top.c (struct qt_args): Remove.
10501 (kill_or_detach): Change return type to void, replace `void *`
10502 parameter with a proper one.
10503 (print_inferior_quit_action): Likewise.
10504 (quit_confirm): Use range-based for loop to iterate over inferiors.
10505 (quit_force): Likewise.
10506
10507 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10508
10509 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10510 `void *` parameter with proper parameters.
10511 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10512 (print_one_inferior): Change return type to void, replace `void *`
10513 parameter with proper parameters.
10514 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10515 inferiors.
10516 (get_other_inferior): Remove.
10517 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10518 inferiors.
10519
10520 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10521
10522 * mi/mi-interp.c (report_initial_inferior): Remove.
10523 (mi_interp::init): Use range-based for to iterate over inferiors.
10524
10525 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10526
10527 * python/py-inferior.c (build_inferior_list): Remove.
10528 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10529
10530 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10531
10532 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10533 (btrace_stitch_trace): Likewise.
10534 * charset.c (intermediate_encoding): Likewise (vaild).
10535 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10536 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10537 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10538
10539 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10540
10541 * windows-tdep.c (windows_get_tlb_type):
10542 Add rtl_user_process_parameters type.
10543
10544 2020-01-16 Pedro Alves <palves@redhat.com>
10545 Norbert Lange <nolange79@gmail.com>
10546
10547 PR build/24805
10548 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10549 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10550 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10551 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10552 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10553 (ps_plog): Redeclare exported functions with default visibility.
10554
10555 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10556
10557 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10558 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10559
10560 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10561
10562 * infcmd.c (post_create_inferior): Use get_thread_regcache
10563 instead of get_current_regcache.
10564
10565 2020-01-14 Tom Tromey <tom@tromey.com>
10566
10567 PR symtab/12535:
10568 * python/python.c (gdbpy_decode_line): Treat empty string the same
10569 as no argument.
10570
10571 2020-01-14 Tom Tromey <tom@tromey.com>
10572
10573 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10574
10575 2020-01-14 Tom Tromey <tom@tromey.com>
10576
10577 * nat/linux-btrace.c: Don't include <config.h>.
10578 * nat/linux-ptrace.c: Don't include <config.h>.
10579 * nat/x86-linux-dregs.c: Don't include <config.h>.
10580
10581 2020-01-14 Tom Tromey <tom@tromey.com>
10582
10583 * configure: Rebuild.
10584 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10585
10586 2020-01-14 Tom Tromey <tom@tromey.com>
10587
10588 * nat/x86-linux-dregs.c: Include configh.h.
10589 * nat/linux-ptrace.c: Include configh.h.
10590 * nat/linux-btrace.c: Include configh.h.
10591 * defs.h: Include config.h, bfd.h.
10592 * configure.ac: Don't source common.host.
10593 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10594 * configure: Rebuild.
10595 * acinclude.m4: Update path.
10596 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10597 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10598 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10599 (CLIBS): Add LIBSUPPORT.
10600 (CDEPS): Likewise.
10601 (COMMON_SFILES): Remove gdbsupport files.
10602 (HFILES_NO_SRCDIR): Likewise.
10603 (stamp-version): Update path to create-version.sh.
10604 (ALLDEPFILES): Remove gdbsupport files.
10605
10606 2020-01-14 Tom Tromey <tom@tromey.com>
10607
10608 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10609 USE_WIN32API when needed.
10610 * configure.ac (USE_WIN32API): Don't define.
10611 (WIN32LIBS): Use WIN32APILIBS.
10612 * configure: Rebuild.
10613
10614 2020-01-14 Tom Tromey <tom@tromey.com>
10615
10616 * configure: Rebuild.
10617 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10618
10619 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10620
10621 * skip.c (skip_function_command): Make skip w/o arguments use the
10622 name of the inlined function if pc is inside any inlined function.
10623
10624 2020-01-14 Luis Machado <luis.machado@linaro.org>
10625
10626 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10627 * infrun.c (resume_1): Likewise.
10628 (handle_inferior_event): Remove stale comment.
10629 * linux-nat.c (linux_nat_target::resume): Update comments.
10630 (save_stop_reason): Likewise.
10631 (linux_nat_filter_event): Likewise.
10632 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10633
10634 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10635
10636 * elfread.c (record_minimal_symbol): Set section index to 0 for
10637 non-allocatable sections.
10638
10639
10640 2020-01-13 Ali Tamur <tamur@google.com>
10641
10642 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10643 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10644 to gdb::optional. Update comments.
10645 (dwo_file): Update comments.
10646 (read_attribute): Update API to take an additional out parameter,
10647 need_reprocess. This is used to mark attributes that need other
10648 attributes (e.g. str_offsets_base) for correct computation which may not
10649 have been read yet.
10650 (read_attribute_reprocess): New function declaration.
10651 (read_addr_index): Likewise.
10652 (read_dwo_str_index): Likewise.
10653 (read_stub_str_index): Likewise.
10654 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10655 (lookup_addr_base): New function definition.
10656 (lookup_ranges_base): Likewise.
10657 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10658 lookup_ranges_base.
10659 (init_cutu_and_read_dies): Update comments.
10660 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10661 unit. This is used to inherit parent's str_offsets_base and addr_base.
10662 Update comments.
10663 (init_cutu_and_read_dies_simple): Reflect API changes.
10664 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10665 (create_cus_hash_table): Change API to take parent compile unit.
10666 Reflect API changes.
10667 (open_and_init_dwo_file): Reflect API changes.
10668 (dwarf2_get_pc_bounds): Update comments.
10669 (dwarf2_record_block_ranges): Likewise.
10670 (read_full_die_1): Change implementation to reprocess attributes that
10671 need str_offsets_base and addr_base.
10672 (partial_die_info::read): Likewise.
10673 (read_attribute_reprocess): New function definition.
10674 (read_attribute_value): Change API to take an additional out parameter,
10675 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10676 when a non-dwo compile unit has index based attributes.
10677 (read_attribute): Reflect API changes.
10678 (read_addr_index_1): Reflect API changes. Update comments.
10679 (dwarf2_read_addr_index_data): Reflect API changes.
10680 (dwarf2_read_addr_index): Likewise.
10681 (read_str_index): Change API and implementation. This becomes a helper
10682 to be used by the new string index related methods. Update error
10683 message and comments.
10684 (read_dwo_str_index): New function definition.
10685 (read_stub_str_index): Likewise.
10686 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10687 * symfile.h (dwarf2_debug_sections): Likewise.
10688 * xcoffread.c (dwarf2_debug_sections): Likewise.
10689
10690 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10691
10692 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10693 core_reg_sect type to gdb_byte *.
10694 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10695 * cris-tdep.c (fetch_core_registers): Likewise.
10696 * corelow.c (core_target::get_core_register_section): Change
10697 type of `contents` to gdb::byte_vector.
10698
10699 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10700
10701 * tui/tui-wingeneral.c (box_win): Position the title in the center
10702 of the border.
10703
10704 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10705
10706 * corelow.c (core_target::get_core_register_section): Use
10707 std::vector instead of alloca.
10708
10709 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10710
10711 * warning.m4: Add -Wmissing-declarations to build_warnings.
10712 * configure: Re-generate.
10713
10714 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10715
10716 * python/python.c (init__gdb_module): Add declaration.
10717
10718 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10719
10720 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10721 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10722 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10723 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10724 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10725 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10726 * ada-exp.y (_initialize_ada_exp): Add declaration.
10727 * ada-lang.c (_initialize_ada_language): Add declaration.
10728 * ada-tasks.c (_initialize_tasks): Add declaration.
10729 * agent.c (_initialize_agent): Add declaration.
10730 * aix-thread.c (_initialize_aix_thread): Add declaration.
10731 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10732 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10733 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10734 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10735 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10736 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10737 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10738 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10739 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10740 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10741 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10742 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10743 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10744 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10745 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10746 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10747 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10748 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10749 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10750 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10751 * annotate.c (_initialize_annotate): Add declaration.
10752 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10753 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10754 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10755 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10756 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10757 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10758 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10759 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10760 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10761 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10762 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10763 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10764 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10765 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10766 * auto-load.c (_initialize_auto_load): Add declaration.
10767 * auxv.c (_initialize_auxv): Add declaration.
10768 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10769 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10770 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10771 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10772 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10773 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10774 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10775 * breakpoint.c (_initialize_breakpoint): Add declaration.
10776 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10777 * btrace.c (_initialize_btrace): Add declaration.
10778 * charset.c (_initialize_charset): Add declaration.
10779 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10780 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10781 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10782 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10783 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10784 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10785 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10786 * coffread.c (_initialize_coffread): Add declaration.
10787 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10788 * compile/compile.c (_initialize_compile): Add declaration.
10789 * complaints.c (_initialize_complaints): Add declaration.
10790 * completer.c (_initialize_completer): Add declaration.
10791 * copying.c (_initialize_copying): Add declaration.
10792 * corefile.c (_initialize_core): Add declaration.
10793 * corelow.c (_initialize_corelow): Add declaration.
10794 * cp-abi.c (_initialize_cp_abi): Add declaration.
10795 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10796 * cp-support.c (_initialize_cp_support): Add declaration.
10797 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10798 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10799 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10800 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10801 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10802 * ctfread.c (_initialize_ctfread): Add declaration.
10803 * d-lang.c (_initialize_d_language): Add declaration.
10804 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10805 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10806 * dbxread.c (_initialize_dbxread): Add declaration.
10807 * dcache.c (_initialize_dcache): Add declaration.
10808 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10809 * disasm.c (_initialize_disasm): Add declaration.
10810 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10811 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10812 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10813 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10814 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10815 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10816 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10817 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10818 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10819 * elfread.c (_initialize_elfread): Add declaration.
10820 * exec.c (_initialize_exec): Add declaration.
10821 * extension.c (_initialize_extension): Add declaration.
10822 * f-lang.c (_initialize_f_language): Add declaration.
10823 * f-valprint.c (_initialize_f_valprint): Add declaration.
10824 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10825 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10826 * filesystem.c (_initialize_filesystem): Add declaration.
10827 * findcmd.c (_initialize_mem_search): Add declaration.
10828 * findvar.c (_initialize_findvar): Add declaration.
10829 * fork-child.c (_initialize_fork_child): Add declaration.
10830 * frame-base.c (_initialize_frame_base): Add declaration.
10831 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10832 * frame.c (_initialize_frame): Add declaration.
10833 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10834 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10835 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10836 * gcore.c (_initialize_gcore): Add declaration.
10837 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10838 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10839 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10840 * gdbarch.c (_initialize_gdbarch): Add declaration.
10841 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10842 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10843 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10844 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10845 * go-lang.c (_initialize_go_language): Add declaration.
10846 * go32-nat.c (_initialize_go32_nat): Add declaration.
10847 * guile/guile.c (_initialize_guile): Add declaration.
10848 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10849 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10850 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10851 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10852 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10853 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10854 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10855 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10856 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10857 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10858 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10859 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10860 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10861 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10862 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10863 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10864 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10865 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10866 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10867 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10868 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10869 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10870 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10871 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10872 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10873 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10874 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10875 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10876 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10877 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10878 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10879 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10880 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10881 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10882 * infcall.c (_initialize_infcall): Add declaration.
10883 * infcmd.c (_initialize_infcmd): Add declaration.
10884 * inflow.c (_initialize_inflow): Add declaration.
10885 * infrun.c (_initialize_infrun): Add declaration.
10886 * interps.c (_initialize_interpreter): Add declaration.
10887 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10888 * jit.c (_initialize_jit): Add declaration.
10889 * language.c (_initialize_language): Add declaration.
10890 * linux-fork.c (_initialize_linux_fork): Add declaration.
10891 * linux-nat.c (_initialize_linux_nat): Add declaration.
10892 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10893 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10894 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10895 * m2-lang.c (_initialize_m2_language): Add declaration.
10896 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10897 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10898 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10899 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10900 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10901 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10902 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10903 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10904 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10905 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10906 * machoread.c (_initialize_machoread): Add declaration.
10907 * macrocmd.c (_initialize_macrocmd): Add declaration.
10908 * macroscope.c (_initialize_macroscope): Add declaration.
10909 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10910 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10911 * maint.c (_initialize_maint_cmds): Add declaration.
10912 * mdebugread.c (_initialize_mdebugread): Add declaration.
10913 * memattr.c (_initialize_mem): Add declaration.
10914 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10915 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10916 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10917 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10918 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10919 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10920 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10921 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10922 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10923 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10924 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10925 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10926 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10927 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10928 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10929 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10930 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10931 * mipsread.c (_initialize_mipsread): Add declaration.
10932 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10933 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10934 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10935 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10936 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10937 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10938 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10939 * nto-procfs.c (_initialize_procfs): Add declaration.
10940 * objc-lang.c (_initialize_objc_language): Add declaration.
10941 * observable.c (_initialize_observer): Add declaration.
10942 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10943 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10944 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10945 * osabi.c (_initialize_gdb_osabi): Add declaration.
10946 * osdata.c (_initialize_osdata): Add declaration.
10947 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10948 * parse.c (_initialize_parse): Add declaration.
10949 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10950 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10951 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10952 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10953 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10954 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10955 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10956 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10957 * printcmd.c (_initialize_printcmd): Add declaration.
10958 * probe.c (_initialize_probe): Add declaration.
10959 * proc-api.c (_initialize_proc_api): Add declaration.
10960 * proc-events.c (_initialize_proc_events): Add declaration.
10961 * proc-service.c (_initialize_proc_service): Add declaration.
10962 * procfs.c (_initialize_procfs): Add declaration.
10963 * producer.c (_initialize_producer): Add declaration.
10964 * psymtab.c (_initialize_psymtab): Add declaration.
10965 * python/python.c (_initialize_python): Add declaration.
10966 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10967 * record-btrace.c (_initialize_record_btrace): Add declaration.
10968 * record-full.c (_initialize_record_full): Add declaration.
10969 * record.c (_initialize_record): Add declaration.
10970 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10971 * regcache.c (_initialize_regcache): Add declaration.
10972 * reggroups.c (_initialize_reggroup): Add declaration.
10973 * remote-notif.c (_initialize_notif): Add declaration.
10974 * remote-sim.c (_initialize_remote_sim): Add declaration.
10975 * remote.c (_initialize_remote): Add declaration.
10976 * reverse.c (_initialize_reverse): Add declaration.
10977 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10978 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10979 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10980 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10981 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10982 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10983 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10984 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10985 Add declaration.
10986 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10987 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10988 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10989 * rust-exp.y (_initialize_rust_exp): Add declaration.
10990 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10991 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10992 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10993 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10994 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10995 * score-tdep.c (_initialize_score_tdep): Add declaration.
10996 * ser-go32.c (_initialize_ser_dos): Add declaration.
10997 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10998 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10999 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11000 * ser-uds.c (_initialize_ser_socket): Add declaration.
11001 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11002 * serial.c (_initialize_serial): Add declaration.
11003 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11004 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11005 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11006 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11007 * skip.c (_initialize_step_skip): Add declaration.
11008 * sol-thread.c (_initialize_sol_thread): Add declaration.
11009 * solib-aix.c (_initialize_solib_aix): Add declaration.
11010 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11011 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11012 * solib-frv.c (_initialize_frv_solib): Add declaration.
11013 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11014 * solib-target.c (_initialize_solib_target): Add declaration.
11015 * solib.c (_initialize_solib): Add declaration.
11016 * source-cache.c (_initialize_source_cache): Add declaration.
11017 * source.c (_initialize_source): Add declaration.
11018 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11019 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11020 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11021 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11022 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11023 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11024 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11025 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11026 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11027 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11028 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11029 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11030 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11031 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11032 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11033 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11034 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11035 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11036 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11037 * stabsread.c (_initialize_stabsread): Add declaration.
11038 * stack.c (_initialize_stack): Add declaration.
11039 * stap-probe.c (_initialize_stap_probe): Add declaration.
11040 * std-regs.c (_initialize_frame_reg): Add declaration.
11041 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11042 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11043 * symfile.c (_initialize_symfile): Add declaration.
11044 * symmisc.c (_initialize_symmisc): Add declaration.
11045 * symtab.c (_initialize_symtab): Add declaration.
11046 * target.c (_initialize_target): Add declaration.
11047 * target-connection.c (_initialize_target_connection): Add
11048 declaration.
11049 * target-dcache.c (_initialize_target_dcache): Add declaration.
11050 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11051 * thread.c (_initialize_thread): Add declaration.
11052 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11053 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11054 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11055 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11056 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11057 * tracectf.c (_initialize_ctf): Add declaration.
11058 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11059 * tracefile.c (_initialize_tracefile): Add declaration.
11060 * tracepoint.c (_initialize_tracepoint): Add declaration.
11061 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11062 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11063 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11064 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11065 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11066 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11067 * tui/tui.c (_initialize_tui): Add declaration.
11068 * typeprint.c (_initialize_typeprint): Add declaration.
11069 * ui-style.c (_initialize_ui_style): Add declaration.
11070 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11071 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11072 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11073 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11074 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11075 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11076 * unittests/filtered_iterator-selftests.c
11077 (_initialize_filtered_iterator_selftests): Add declaration.
11078 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11079 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11080 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11081 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11082 * unittests/main-thread-selftests.c
11083 (_initialize_main_thread_selftests): Add declaration.
11084 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11085 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11086 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11087 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11088 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11089 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11090 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11091 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11092 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11093 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11094 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11095 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11096 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11097 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11098 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11099 declaration.
11100 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11101 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11102 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11103 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11104 * user-regs.c (_initialize_user_regs): Add declaration.
11105 * utils.c (_initialize_utils): Add declaration.
11106 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11107 * valops.c (_initialize_valops): Add declaration.
11108 * valprint.c (_initialize_valprint): Add declaration.
11109 * value.c (_initialize_values): Add declaration.
11110 * varobj.c (_initialize_varobj): Add declaration.
11111 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11112 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11113 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11114 * windows-nat.c (_initialize_windows_nat): Add declaration.
11115 (_initialize_check_for_gdb_ini): Add declaration.
11116 (_initialize_loadable): Add declaration.
11117 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11118 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11119 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11120 * xcoffread.c (_initialize_xcoffread): Add declaration.
11121 * xml-support.c (_initialize_xml_support): Add declaration.
11122 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11123 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11124 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11125 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11126
11127 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11128
11129 * regformats/regdat.sh: Generate declaration for init function.
11130
11131 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11132
11133 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11134 up.
11135 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11136 close_one_inferior>: New methods.
11137 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11138 pass down target to find_inferior_pid.
11139 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11140 Pass down target to find_inferior_ptid.
11141 (gdbsim_target::create_inferior): Pass down target to
11142 add_thread_silent.
11143 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11144 target down to find_inferior_ptid and switch_to_thread.
11145 (gdbsim_target::close): Update to call close_one_inferior.
11146 (struct resume_data): Remove.
11147 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11148 directly, rather than through a void pointer.
11149 (gdbsim_target::resume): Update to call resume_one_inferior.
11150
11151 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11152
11153 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11154
11155 2020-01-12 Pedro Alves <palves@redhat.com>
11156
11157 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11158 directly for the current inferior instead of
11159 discard_all_inferiors.
11160 (discard_all_inferiors): Delete.
11161
11162 2020-01-11 Tom Tromey <tom@tromey.com>
11163
11164 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11165 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11166 deprecated_safe_get_selected_frame.
11167
11168 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11169
11170 * inferior.c (print_inferior): Switch inferior before printing it.
11171
11172 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11173 Pedro Alves <palves@redhat.com>
11174
11175 * progspace-and-thread.c (switch_to_program_space_and_thread):
11176 Assert there's an inferior for PSPACE. Use
11177 switch_to_inferior_no_thread to switch the inferior too.
11178 * progspace.c (program_space::~program_space): Call
11179 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11180 (program_space::free_all_objfiles): Don't call clear_symtab_users
11181 here.
11182 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11183
11184 2020-01-10 Pedro Alves <palves@redhat.com>
11185
11186 * NEWS: Mention multi-target debugging, "info connections", and
11187 "add-inferior -no-connection".
11188
11189 2020-01-10 Pedro Alves <palves@redhat.com>
11190
11191 * infrun.c: Include "target-connection.h".
11192 (check_multi_target_resumption): New.
11193 (proceed): Call it.
11194 * target-connection.c (make_target_connection_string): Make
11195 extern.
11196 * target-connection.h (make_target_connection_string): Declare.
11197
11198 2020-01-10 Pedro Alves <palves@redhat.com>
11199
11200 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11201 * inferior.c (uiout_field_connection): New function.
11202 (print_inferior): Add new "connection-id" column.
11203 (add_inferior_command): Show connection number/string of added
11204 inferior.
11205 * process-stratum-target.h
11206 (process_stratum_target::connection_string): New virtual method.
11207 (process_stratum_target::connection_number): New field.
11208 * remote.c (remote_target::connection_string): New override.
11209 * target-connection.c: New file.
11210 * target-connection.h: New file.
11211 * target.c (decref_target): Remove process_stratum targets from
11212 the connection list.
11213 (target_stack::push): Add process_stratum targets to the
11214 connection list.
11215
11216 2020-01-10 Pedro Alves <palves@redhat.com>
11217
11218 Revert:
11219 2016-04-12 Pedro Alves <palves@redhat.com>
11220 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11221 Remove references to name.
11222 * serial.h (struct serial) <name>: Delete.
11223
11224 2020-01-10 Pedro Alves <palves@redhat.com>
11225
11226 * gdbarch-selftests.c (register_to_value_test): Remove "target
11227 already pushed" check.
11228
11229 2020-01-10 Pedro Alves <palves@redhat.com>
11230 John Baldwin <jhb@FreeBSD.org>
11231
11232 * aarch64-linux-nat.c
11233 (aarch64_linux_nat_target::thread_architecture): Adjust.
11234 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11235 (task_command_1): Likewise.
11236 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11237 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11238 (aix_thread_target::store_registers)
11239 (aix_thread_target::thread_alive): Adjust.
11240 * amd64-fbsd-tdep.c: Include "inferior.h".
11241 (amd64fbsd_get_thread_local_address): Pass down target.
11242 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11243 thread's gdbarch instead of target_gdbarch.
11244 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11245 get_last_target_status.
11246 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11247 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11248 inferiors.
11249 (update_inserted_breakpoint_locations): Skip if inferiors with no
11250 execution.
11251 (update_global_location_list): When handling moribund locations,
11252 find representative inferior for location's pspace, and use thread
11253 count of its process_stratum target.
11254 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11255 * bsd-uthread.c (bsd_uthread_target::wait): Use
11256 as_process_stratum_target and adjust thread_change_ptid and
11257 add_thread calls.
11258 (bsd_uthread_target::update_thread_list): Use
11259 as_process_stratum_target and adjust find_thread_ptid,
11260 thread_change_ptid and add_thread calls.
11261 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11262 find_thread_ptid call.
11263 * corelow.c (add_to_thread_list): Adjust add_thread call.
11264 (core_target_open): Adjust add_thread_silent and thread_count
11265 calls.
11266 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11267 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11268 * event-top.c (async_disconnect): Pop targets from all inferiors.
11269 * exec.c (add_target_sections): Push exec target on all inferiors
11270 sharing the program space.
11271 (remove_target_sections): Remove the exec target from all
11272 inferiors sharing the program space.
11273 (exec_on_vfork): New.
11274 * exec.h (exec_on_vfork): Declare.
11275 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11276 Pass it down.
11277 (fbsd_nat_target::update_thread_list): Adjust.
11278 (fbsd_nat_target::resume): Adjust.
11279 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11280 down.
11281 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11282 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11283 get_thread_arch_regcache call.
11284 * fork-child.c (gdb_startup_inferior): Pass target down to
11285 startup_inferior and set_executing.
11286 * gdbthread.h (struct process_stratum_target): Forward declare.
11287 (add_thread, add_thread_silent, add_thread_with_info)
11288 (in_thread_list): Add process_stratum_target parameter.
11289 (find_thread_ptid(inferior*, ptid_t)): New overload.
11290 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11291 parameter.
11292 (all_threads()): Delete overload.
11293 (all_threads, all_non_exited_threads): Add process_stratum_target
11294 parameter.
11295 (all_threads_safe): Use brace initialization.
11296 (thread_count): Add process_stratum_target parameter.
11297 (set_resumed, set_running, set_stop_requested, set_executing)
11298 (threads_are_executing, finish_thread_state): Add
11299 process_stratum_target parameter.
11300 (switch_to_thread): Use is_current_thread.
11301 * i386-fbsd-tdep.c: Include "inferior.h".
11302 (i386fbsd_get_thread_local_address): Pass down target.
11303 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11304 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11305 have_inferiors check.
11306 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11307 (inf_ptrace_target::attach): Adjust.
11308 * infcall.c (run_inferior_call): Adjust.
11309 * infcmd.c (run_command_1): Pass target to
11310 scoped_finish_thread_state.
11311 (proceed_thread_callback): Skip inferiors with no execution.
11312 (continue_command): Rename 'all_threads' local to avoid hiding
11313 'all_threads' function. Adjust get_last_target_status call.
11314 (prepare_one_step): Adjust set_running call.
11315 (signal_command): Use user_visible_resume_target. Compare thread
11316 pointers instead of inferior_ptid.
11317 (info_program_command): Adjust to pass down target.
11318 (attach_command): Mark target's 'thread_executing' flag.
11319 (stop_current_target_threads_ns): New, factored out from ...
11320 (interrupt_target_1): ... this. Switch inferior before making
11321 target calls.
11322 * inferior-iter.h
11323 (struct all_inferiors_iterator, struct all_inferiors_range)
11324 (struct all_inferiors_safe_range)
11325 (struct all_non_exited_inferiors_range): Filter on
11326 process_stratum_target too. Remove explicit.
11327 * inferior.c (inferior::inferior): Push dummy target on target
11328 stack.
11329 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11330 Add process_stratum_target parameter, and pass it down.
11331 (have_live_inferiors): Adjust.
11332 (switch_to_inferior_and_push_target): New.
11333 (add_inferior_command, clone_inferior_command): Handle
11334 "-no-connection" parameter. Use
11335 switch_to_inferior_and_push_target.
11336 (_initialize_inferior): Mention "-no-connection" option in
11337 the help of "add-inferior" and "clone-inferior" commands.
11338 * inferior.h: Include "process-stratum-target.h".
11339 (interrupt_target_1): Use bool.
11340 (struct inferior) <push_target, unpush_target, target_is_pushed,
11341 find_target_beneath, top_target, process_target, target_at,
11342 m_stack>: New.
11343 (discard_all_inferiors): Delete.
11344 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11345 (all_inferiors, all_non_exited_inferiors): Add
11346 process_stratum_target parameter.
11347 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11348 (target_last_proc_target): New global.
11349 (follow_fork_inferior): Push target on new inferior. Pass target
11350 to add_thread_silent. Call exec_on_vfork. Handle target's
11351 reference count.
11352 (follow_fork): Adjust get_last_target_status call. Also consider
11353 target.
11354 (follow_exec): Push target on new inferior.
11355 (struct execution_control_state) <target>: New field.
11356 (user_visible_resume_target): New.
11357 (do_target_resume): Call target_async.
11358 (resume_1): Set target's threads_executing flag. Consider resume
11359 target.
11360 (commit_resume_all_targets): New.
11361 (proceed): Also consider resume target. Skip threads of inferiors
11362 with no execution. Commit resumtion in all targets.
11363 (start_remote): Pass current inferior to wait_for_inferior.
11364 (infrun_thread_stop_requested): Consider target as well. Pass
11365 thread_info pointer to clear_inline_frame_state instead of ptid.
11366 (infrun_thread_thread_exit): Consider target as well.
11367 (random_pending_event_thread): New inferior parameter. Use it.
11368 (do_target_wait): Rename to ...
11369 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11370 down.
11371 (threads_are_resumed_pending_p, do_target_wait): New.
11372 (prepare_for_detach): Adjust calls.
11373 (wait_for_inferior): New inferior parameter. Handle it. Use
11374 do_target_wait_1 instead of do_target_wait.
11375 (fetch_inferior_event): Adjust. Switch to representative
11376 inferior. Pass target down.
11377 (set_last_target_status): Add process_stratum_target parameter.
11378 Save target in global.
11379 (get_last_target_status): Add process_stratum_target parameter and
11380 handle it.
11381 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11382 (context_switch): Check inferior_ptid == null_ptid before calling
11383 inferior_thread().
11384 (get_inferior_stop_soon): Pass down target.
11385 (wait_one): Rename to ...
11386 (poll_one_curr_target): ... this.
11387 (struct wait_one_event): New.
11388 (wait_one): New.
11389 (stop_all_threads): Adjust.
11390 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11391 event's target.
11392 (switch_back_to_stepped_thread): Also consider target.
11393 (print_stop_event): Update.
11394 (normal_stop): Update. Also consider the resume target.
11395 * infrun.h (wait_for_inferior): Remove declaration.
11396 (user_visible_resume_target): New declaration.
11397 (get_last_target_status, set_last_target_status): New
11398 process_stratum_target parameter.
11399 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11400 process_stratum_target parameter, and use it.
11401 (clear_inline_frame_state (thread_info*)): New.
11402 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11403 process_stratum_target parameter.
11404 (clear_inline_frame_state (thread_info*)): Declare.
11405 * linux-fork.c (delete_checkpoint_command): Pass target down to
11406 find_thread_ptid.
11407 (checkpoint_command): Adjust.
11408 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11409 instead of just tweaking inferior_ptid.
11410 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11411 (exit_lwp): Pass target down to find_thread_ptid.
11412 (attach_proc_task_lwp_callback): Pass target down to
11413 add_thread/set_running/set_executing.
11414 (linux_nat_target::attach): Pass target down to
11415 thread_change_ptid.
11416 (get_detach_signal): Pass target down to find_thread_ptid.
11417 Consider last target status's target.
11418 (linux_resume_one_lwp_throw, resume_lwp)
11419 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11420 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11421 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11422 (linux_nat_target::async_wait_fd): New.
11423 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11424 target down.
11425 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11426 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11427 * linux-thread-db.c (struct thread_db_info::process_target): New
11428 field.
11429 (add_thread_db_info): Save target.
11430 (get_thread_db_info): New process_stratum_target parameter. Also
11431 match target.
11432 (delete_thread_db_info): New process_stratum_target parameter.
11433 Also match target.
11434 (thread_from_lwp): Adjust to pass down target.
11435 (thread_db_notice_clone): Pass down target.
11436 (check_thread_db_callback): Pass down target.
11437 (try_thread_db_load_1): Always push the thread_db target.
11438 (try_thread_db_load, record_thread): Pass target down.
11439 (thread_db_target::detach): Pass target down. Always unpush the
11440 thread_db target.
11441 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11442 target down. Always unpush the thread_db target.
11443 (find_new_threads_callback, thread_db_find_new_threads_2)
11444 (thread_db_target::update_thread_list): Pass target down.
11445 (thread_db_target::pid_to_str): Pass current inferior down.
11446 (thread_db_target::get_thread_local_address): Pass target down.
11447 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11448 target down.
11449 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11450 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11451 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11452 (procfs_init_inferior): Rename to ...
11453 (procfs_target::procfs_init_inferior): ... this and adjust.
11454 (procfs_target::create_inferior, procfs_notice_thread)
11455 (procfs_do_thread_registers): Adjust.
11456 * ppc-fbsd-tdep.c: Include "inferior.h".
11457 (ppcfbsd_get_thread_local_address): Pass down target.
11458 * proc-service.c (ps_xfer_memory): Switch current inferior and
11459 program space as well.
11460 (get_ps_regcache): Pass target down.
11461 * process-stratum-target.c
11462 (process_stratum_target::thread_address_space)
11463 (process_stratum_target::thread_architecture): Pass target down.
11464 * process-stratum-target.h
11465 (process_stratum_target::threads_executing): New field.
11466 (as_process_stratum_target): New.
11467 * ravenscar-thread.c
11468 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11469 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11470 down.
11471 * record-btrace.c (record_btrace_target::info_record): Adjust.
11472 (record_btrace_target::record_method)
11473 (record_btrace_target::record_is_replaying)
11474 (record_btrace_target::fetch_registers)
11475 (get_thread_current_frame_id, record_btrace_target::resume)
11476 (record_btrace_target::wait, record_btrace_target::stop): Pass
11477 target down.
11478 * record-full.c (record_full_wait_1): Switch to event thread.
11479 Pass target down.
11480 * regcache.c (regcache::regcache)
11481 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11482 process_stratum_target parameter and handle it.
11483 (current_thread_target): New global.
11484 (get_thread_regcache): Add process_stratum_target parameter and
11485 handle it. Switch inferior before calling target method.
11486 (get_thread_regcache): Pass target down.
11487 (get_thread_regcache_for_ptid): Pass target down.
11488 (registers_changed_ptid): Add process_stratum_target parameter and
11489 handle it.
11490 (registers_changed_thread, registers_changed): Pass target down.
11491 (test_get_thread_arch_aspace_regcache): New.
11492 (current_regcache_test): Define a couple local test_target_ops
11493 instances and use them for testing.
11494 (readwrite_regcache): Pass process_stratum_target parameter.
11495 (cooked_read_test, cooked_write_test): Pass mock_target down.
11496 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11497 (get_thread_arch_aspace_regcache): Add process_stratum_target
11498 parameter.
11499 (regcache::target): New method.
11500 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11501 (regcache::registers_changed_ptid): Add process_stratum_target
11502 parameter.
11503 (regcache::m_target): New field.
11504 (registers_changed_ptid): Add process_stratum_target parameter.
11505 * remote.c (remote_state::supports_vCont_probed): New field.
11506 (remote_target::async_wait_fd): New method.
11507 (remote_unpush_and_throw): Add remote_target parameter.
11508 (get_current_remote_target): Adjust.
11509 (remote_target::remote_add_inferior): Push target.
11510 (remote_target::remote_add_thread)
11511 (remote_target::remote_notice_new_inferior)
11512 (get_remote_thread_info): Pass target down.
11513 (remote_target::update_thread_list): Skip threads of inferiors
11514 bound to other targets. (remote_target::close): Don't discard
11515 inferiors. (remote_target::add_current_inferior_and_thread)
11516 (remote_target::process_initial_stop_replies)
11517 (remote_target::start_remote)
11518 (remote_target::remote_serial_quit_handler): Pass down target.
11519 (remote_target::remote_unpush_target): New remote_target
11520 parameter. Unpush the target from all inferiors.
11521 (remote_target::remote_unpush_and_throw): New remote_target
11522 parameter. Pass it down.
11523 (remote_target::open_1): Check whether the current inferior has
11524 execution instead of checking whether any inferior is live. Pass
11525 target down.
11526 (remote_target::remote_detach_1): Pass down target. Use
11527 remote_unpush_target.
11528 (extended_remote_target::attach): Pass down target.
11529 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11530 (remote_target::append_resumption): Pass down target.
11531 (remote_target::append_pending_thread_resumptions)
11532 (remote_target::remote_resume_with_hc, remote_target::resume)
11533 (remote_target::commit_resume): Pass down target.
11534 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11535 (remote_target::interrupt_query)
11536 (remote_target::remove_new_fork_children)
11537 (remote_target::check_pending_events_prevent_wildcard_vcont)
11538 (remote_target::remote_parse_stop_reply)
11539 (remote_target::process_stop_reply): Pass down target.
11540 (first_remote_resumed_thread): New remote_target parameter. Pass
11541 it down.
11542 (remote_target::wait_as): Pass down target.
11543 (unpush_and_perror): New remote_target parameter. Pass it down.
11544 (remote_target::readchar, remote_target::remote_serial_write)
11545 (remote_target::getpkt_or_notif_sane_1)
11546 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11547 down target.
11548 (remote_target::mourn_inferior): Pass down target. Use
11549 remote_unpush_target.
11550 (remote_target::core_of_thread)
11551 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11552 (remote_target::pid_to_exec_file)
11553 (remote_target::thread_handle_to_thread_info): Pass down target.
11554 (remote_target::async_wait_fd): New.
11555 * riscv-fbsd-tdep.c: Include "inferior.h".
11556 (riscv_fbsd_get_thread_local_address): Pass down target.
11557 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11558 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11559 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11560 Adjust.
11561 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11562 * solib-svr4.c (enable_break): Pass down target.
11563 * spu-multiarch.c (parse_spufs_run): Pass down target.
11564 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11565 * target-delegates.c: Regenerate.
11566 * target.c (g_target_stack): Delete.
11567 (current_top_target): Return the current inferior's top target.
11568 (target_has_execution_1): Refer to the passed-in inferior's top
11569 target.
11570 (target_supports_terminal_ours): Check whether the initial
11571 inferior was already created.
11572 (decref_target): New.
11573 (target_stack::push): Incref/decref the target.
11574 (push_target, push_target, unpush_target): Adjust.
11575 (target_stack::unpush): Defref target.
11576 (target_is_pushed): Return bool. Adjust to refer to the current
11577 inferior's target stack.
11578 (dispose_inferior): Delete, and inline parts ...
11579 (target_preopen): ... here. Only dispose of the current inferior.
11580 (target_detach): Hold strong target reference while detaching.
11581 Pass target down.
11582 (target_thread_name): Add assertion.
11583 (target_resume): Pass down target.
11584 (target_ops::beneath, find_target_at): Adjust to refer to the
11585 current inferior's target stack.
11586 (get_dummy_target): New.
11587 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11588 has a thread running.
11589 (initialize_targets): Rename to ...
11590 (_initialize_target): ... this.
11591 * target.h: Include "gdbsupport/refcounted-object.h".
11592 (struct target_ops): Inherit refcounted_object.
11593 (target_ops::shortname, target_ops::longname): Make const.
11594 (target_ops::async_wait_fd): New method.
11595 (decref_target): Declare.
11596 (struct target_ops_ref_policy): New.
11597 (target_ops_ref): New typedef.
11598 (get_dummy_target): Declare function.
11599 (target_is_pushed): Return bool.
11600 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11601 (all_matching_threads_iterator::all_matching_threads_iterator):
11602 Handle filter target.
11603 * thread-iter.h (struct all_matching_threads_iterator, struct
11604 all_matching_threads_range, class all_non_exited_threads_range):
11605 Filter by target too. Remove explicit.
11606 * thread.c (threads_executing): Delete.
11607 (inferior_thread): Pass down current inferior.
11608 (clear_thread_inferior_resources): Pass down thread pointer
11609 instead of ptid_t.
11610 (add_thread_silent, add_thread_with_info, add_thread): Add
11611 process_stratum_target parameter. Use it for thread and inferior
11612 searches.
11613 (is_current_thread): New.
11614 (thread_info::deletable): Use it.
11615 (find_thread_ptid, thread_count, in_thread_list)
11616 (thread_change_ptid, set_resumed, set_running): New
11617 process_stratum_target parameter. Pass it down.
11618 (set_executing): New process_stratum_target parameter. Pass it
11619 down. Adjust reference to 'threads_executing'.
11620 (threads_are_executing): New process_stratum_target parameter.
11621 Adjust reference to 'threads_executing'.
11622 (set_stop_requested, finish_thread_state): New
11623 process_stratum_target parameter. Pass it down.
11624 (switch_to_thread): Also match inferior.
11625 (switch_to_thread): New process_stratum_target parameter. Pass it
11626 down.
11627 (update_threads_executing): Reimplement.
11628 * top.c (quit_force): Pop targets from all inferior.
11629 (gdb_init): Don't call initialize_targets.
11630 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11631 Declare.
11632 (windows_add_thread, windows_delete_thread): Adjust.
11633 (get_windows_debug_event): Rename to ...
11634 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11635 * tracefile-tfile.c (tfile_target_open): Pass down target.
11636 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11637 Forward declare.
11638 (switch_to_thread): Add process_stratum_target parameter.
11639 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11640 parameter. Use it.
11641 (mi_on_resume): Pass target down.
11642 * nat/fork-inferior.c (startup_inferior): Add
11643 process_stratum_target parameter. Pass it down.
11644 * nat/fork-inferior.h (startup_inferior): Add
11645 process_stratum_target parameter.
11646 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11647
11648 2020-01-10 Pedro Alves <palves@redhat.com>
11649
11650 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11651 directly. Instead find the first thread in the thread list and
11652 use switch_to_thread.
11653
11654 2020-01-10 Pedro Alves <palves@redhat.com>
11655
11656 * remote.c (remote_target::remote_add_inferior): Don't bind a
11657 process to the current inferior if the current inferior is already
11658 bound to a process.
11659
11660 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11661 Pedro Alves <palves@redhat.com>
11662
11663 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11664 If no process is specified, return null_ptid instead of
11665 inferior_ptid.
11666 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11667 TARGET_WAITKIND_SIGNALLED with no pid.
11668
11669 2020-01-10 Pedro Alves <palves@redhat.com>
11670
11671 * remote.c (first_remote_resumed_thread): New.
11672 (remote_target::wait_as): Use it as default event_ptid instead of
11673 inferior_ptid.
11674
11675 2020-01-10 Pedro Alves <palves@redhat.com>
11676
11677 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11678
11679 2020-01-10 Pedro Alves <palves@redhat.com>
11680
11681 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11682 not -1.
11683
11684 2020-01-10 Pedro Alves <palves@redhat.com>
11685
11686 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11687 ptid to get_last_target_status.
11688 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11689 ptid to get_last_target_status.
11690 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11691 get_last_target_status.
11692 (info_program_command): Don't pass a target_waitstatus to
11693 get_last_target_status.
11694 * infrun.c (init_wait_for_inferior): Use
11695 nullify_last_target_wait_ptid.
11696 (get_last_target_status): Handle nullptr arguments.
11697 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11698 (print_stop_event): Don't pass a ptid to get_last_target_status.
11699 (normal_stop): Don't pass a ptid to get_last_target_status.
11700 * infrun.h (get_last_target_status, set_last_target_status): Move
11701 comments here and update.
11702 (nullify_last_target_wait_ptid): Declare.
11703 * linux-fork.c (fork_load_infrun_state): Remove local extern
11704 declaration of nullify_last_target_wait_ptid.
11705 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11706 to get_last_target_status.
11707
11708 2020-01-10 Pedro Alves <palves@redhat.com>
11709
11710 * gdbthread.h (scoped_restore_current_thread)
11711 <dont_restore, restore, m_dont_restore>: Declare.
11712 * thread.c (thread_alive): Add assertion. Return bool.
11713 (switch_to_thread_if_alive): New.
11714 (prune_threads): Switch inferior/thread.
11715 (print_thread_info_1): Switch thread before calling target methods.
11716 (scoped_restore_current_thread::restore): New, factored out from
11717 ...
11718 (scoped_restore_current_thread::~scoped_restore_current_thread):
11719 ... this.
11720 (scoped_restore_current_thread::scoped_restore_current_thread):
11721 Add assertion.
11722 (thread_apply_all_command, thread_select): Use
11723 switch_to_thread_if_alive.
11724 * infrun.c (proceed, restart_threads, handle_signal_stop)
11725 (switch_back_to_stepped_thread): Switch current thread before
11726 calling target methods.
11727
11728 2020-01-10 Pedro Alves <palves@redhat.com>
11729
11730 * inferior.c (switch_to_inferior_no_thread): New function,
11731 factored out from ...
11732 (inferior_command): ... here.
11733 * inferior.h (switch_to_inferior_no_thread): Declare.
11734 * mi/mi-main.c (run_one_inferior): Use
11735 switch_to_inferior_no_thread.
11736
11737 2020-01-10 Pedro Alves <palves@redhat.com>
11738
11739 * infcmd.c (kill_command): Remove dead code.
11740
11741 2020-01-10 Pedro Alves <palves@redhat.com>
11742
11743 * remote.c (remote_target::mourn_inferior): No longer check
11744 whether the target is running.
11745
11746 2020-01-10 Pedro Alves <palves@redhat.com>
11747
11748 * corelow.c (core_target::has_execution): Change parameter type to
11749 inferior pointer.
11750 * inferior.c (number_of_live_inferiors): Use
11751 inferior::has_execution instead of target_has_execution_1.
11752 * inferior.h (inferior::has_execution): New.
11753 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11754 inferior::has_execution instead of target_has_execution_1.
11755 * process-stratum-target.c
11756 (process_stratum_target::has_execution): Change parameter type to
11757 inferior pointer. Check the inferior's PID instead of
11758 inferior_ptid.
11759 * process-stratum-target.h
11760 (process_stratum_target::has_execution): Change parameter type to
11761 inferior pointer.
11762 * record-full.c (record_full_core_target::has_execution): Change
11763 parameter type to inferior pointer.
11764 * target.c (target_has_execution_1): Change parameter type to
11765 inferior pointer.
11766 (target_has_execution_current): Adjust.
11767 * target.h (target_ops::has_execution): Change parameter type to
11768 inferior pointer.
11769 (target_has_execution_1): Change parameter type to inferior
11770 pointer. Change return type to bool.
11771 * tracefile.h (tracefile_target::has_execution): Change parameter
11772 type to inferior pointer.
11773
11774 2020-01-10 Pedro Alves <palves@redhat.com>
11775
11776 * exceptions.c (print_flush): Remove current_top_target() check.
11777
11778 2020-01-10 Pedro Alves <palves@redhat.com>
11779
11780 * remote.c (show_remote_exec_file): Show the current inferior's
11781 exec-file instead of the command variable's value.
11782
11783 2020-01-10 Pedro Alves <palves@redhat.com>
11784
11785 * record-full.c (record_full_resume_ptid): New global.
11786 (record_full_target::resume): Set it.
11787 (record_full_wait_1): Use record_full_resume_ptid instead of
11788 inferior_ptid.
11789
11790 2020-01-10 Pedro Alves <palves@redhat.com>
11791
11792 * gdbthread.h (scoped_restore_current_thread)
11793 <dont_restore, restore, m_dont_restore>: Declare.
11794 * thread.c (thread_alive): Add assertion. Return bool.
11795 (switch_to_thread_if_alive): New.
11796 (prune_threads): Switch inferior/thread.
11797 (print_thread_info_1): Switch thread before calling target methods.
11798 (scoped_restore_current_thread::restore): New, factored out from
11799 ...
11800 (scoped_restore_current_thread::~scoped_restore_current_thread):
11801 ... this.
11802 (scoped_restore_current_thread::scoped_restore_current_thread):
11803 Add assertion.
11804 (thread_apply_all_command, thread_select): Use
11805 switch_to_thread_if_alive.
11806
11807 2020-01-10 George Barrett <bob@bob131.so>
11808
11809 * stap-probe.c (stap_modify_semaphore): Don't check for null
11810 semaphores.
11811 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11812 for null semaphores.
11813
11814 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11815
11816 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11817 all source windows, and maintain horizontal scroll status while
11818 doing so.
11819
11820 2020-01-09 Tom Tromey <tom@tromey.com>
11821
11822 PR tui/18932:
11823 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11824 update_source_window, not print_source_lines.
11825
11826 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11827
11828 * tui/tui.c (tui_enable): Register tui hooks after calling
11829 tui_display_main.
11830
11831 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11832
11833 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11834
11835 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11836
11837 * thread.c (print_thread_info_1): Fix indentation.
11838
11839 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11840
11841 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11842 unique_xmalloc_ptr outside the if to always free the demangled name.
11843
11844 2020-01-08 Tom Tromey <tromey@adacore.com>
11845
11846 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11847 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11848 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11849 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11850 Remove.
11851 (section_offsets): New typedef.
11852 * symtab.c (fixup_section, get_msymbol_address): Update.
11853 * symmisc.c (dump_msymbols): Update.
11854 * symfile.h (relative_addr_info_to_section_offsets)
11855 (symfile_map_offsets_to_segments): Update.
11856 * symfile.c (build_section_addr_info_from_objfile)
11857 (init_objfile_sect_indices): Update.
11858 (struct place_section_arg): Change type of "offsets".
11859 (place_section): Update.
11860 (relative_addr_info_to_section_offsets): Change type of
11861 "section_offsets". Remove "num_sections" parameter.
11862 (default_symfile_offsets, syms_from_objfile_1)
11863 (set_objfile_default_section_offset): Update.
11864 (reread_symbols): No need to preserve section offsets by hand.
11865 (symfile_map_offsets_to_segments): Change type of "offsets".
11866 * stap-probe.c (relocate_address): Update.
11867 * stabsread.h (process_one_symbol): Update.
11868 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11869 (solib_target_relocate_section_addresses): Update.
11870 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11871 Update.
11872 * solib-frv.c (frv_relocate_main_executable): Update.
11873 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11874 * solib-aix.c (solib_aix_get_section_offsets): Change return
11875 type.
11876 (solib_aix_solib_create_inferior_hook): Update.
11877 * remote.c (remote_target::get_offsets): Update.
11878 * psymtab.c (find_pc_sect_psymtab): Update.
11879 * psympriv.h (struct partial_symbol) <address, text_low,
11880 text_high>: Update.
11881 * objfiles.h (obj_section_offset): Update.
11882 (struct objfile) <section_offsets>: Change type.
11883 <num_sections>: Remove.
11884 (objfile_relocate): Update.
11885 * objfiles.c (entry_point_address_query): Update
11886 (relocate_one_symbol): Change type of "section_offsets".
11887 (objfile_relocate1, objfile_relocate1): Change type of
11888 "new_offsets".
11889 (objfile_rebase1): Update.
11890 * mipsread.c (mipscoff_symfile_read): Update.
11891 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11892 parameter.
11893 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11894 (parse_external, psymtab_to_symtab_1): Update.
11895 * machoread.c (macho_symfile_offsets): Update.
11896 * ia64-tdep.c (ia64_find_unwind_table): Update.
11897 * hppa-tdep.c (read_unwind_info): Update.
11898 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11899 * dwarf2read.c (create_addrmap_from_index)
11900 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11901 (process_psymtab_comp_unit_reader, add_partial_symbol)
11902 (add_partial_subprogram, process_full_comp_unit)
11903 (read_file_scope, read_func_scope, read_lexical_block_scope)
11904 (read_call_site_scope, dwarf2_rnglists_process)
11905 (dwarf2_ranges_process, dwarf2_ranges_read)
11906 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11907 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11908 Update.
11909 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11910 Update.
11911 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11912 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11913 (process_one_symbol): Change type of "section_offsets".
11914 * ctfread.c (get_objfile_text_range): Update.
11915 * coffread.c (coff_symtab_read, enter_linenos)
11916 (process_coff_symbol): Update.
11917 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11918 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11919
11920 2020-01-08 Tom Tromey <tromey@adacore.com>
11921
11922 * dwarf2read.c (parse_macro_definition): Use std::string.
11923 (parse_macro_definition): Likewise.
11924
11925 2020-01-08 Tom Tromey <tromey@adacore.com>
11926
11927 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11928 (ATTR_ALLOC_CHUNK): Remove.
11929
11930 2020-01-08 Tom Tromey <tromey@adacore.com>
11931
11932 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11933
11934 2020-01-08 Tom Tromey <tromey@adacore.com>
11935
11936 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11937 (dwarf2_compute_name, open_dwo_file): Likewise.
11938 (process_enumeration_scope): Use std::vector.
11939 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11940 (partial_die_info::fixup, dwarf2_start_subfile)
11941 (guess_full_die_structure_name, dwarf2_name): Likewise.
11942 (determine_prefix): Update.
11943 (guess_full_die_structure_name): Make return type const.
11944 (partial_die_full_name): Return unique_xmalloc_ptr.
11945 (DW_FIELD_ALLOC_CHUNK): Remove.
11946
11947 2020-01-07 Tom Tromey <tromey@adacore.com>
11948
11949 PR build/24937:
11950 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11951
11952 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11953
11954 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11955
11956 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11957
11958 * stack.c (print_frame_info): Move disassemble_next_line code
11959 inside source_print block.
11960
11961 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11962
11963 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11964 gdb/signals.h, as we are now using native signal symbols.
11965
11966 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11967
11968 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11969 overflow by an early check of content vs threshold.
11970 * tui/tui-source.c (tui_source_window::line_is_displayed):
11971 Likewise.
11972
11973 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11974
11975 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11976
11977 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11978
11979 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11980 export table if no section contains it's RVA.
11981
11982 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11983
11984 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11985
11986 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
11987
11988 * source.c (print_source_lines_base): Set last_line_listed.
11989
11990 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11991
11992 * tui/tui-disasm.c: Remove trailing spaces.
11993
11994 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11995 Pedro Alves <palves@redhat.com>
11996
11997 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11998 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11999 (windows_gdb_signal_to_target): New function, uses the above
12000 enumeration to convert GDB internal signal codes to equivalent
12001 Windows codes.
12002 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12003 * windows-nat.c: Include "gdb_wait.h".
12004 (get_windows_debug_event): Extract the fatal exception from the
12005 exit status and convert to the equivalent Posix signal number.
12006 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12007 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12008 * gdbsupport/gdb_wait.c: New file, implements
12009 windows_status_to_termsig.
12010 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12011 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12012
12013 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12014
12015 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12016 show_layout.
12017
12018 2020-01-05 Luis Machado <luis.machado@linaro.org>
12019
12020 * aarch64-linux-nat.c
12021 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12022 and bfd_mach_aarch64.
12023
12024 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12025
12026 * ui-file.c (stdio_file::can_emit_style_escape)
12027 (tee_file::can_emit_style_escape): Ensure style is used also on
12028 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12029 to gdb_stdout.
12030 * main.c (set_gdb_data_directory): Use file style to output the
12031 warning that the given pathname is not a directory.
12032 * top.c (show_history_filename, gdb_safe_append_history)
12033 (show_gdb_datadir): Use file style.
12034
12035 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12036
12037 * solib-target.c (struct lm_info_target):
12038 Change offsets to be a unique_xmalloc_ptr.
12039 (solib_target_relocate_section_addresses): Update.
12040
12041 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12042
12043 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12044
12045 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12046
12047 * MAINTAINERS (Write After Approval): Add myself.
12048
12049 2020-01-02 Luis Machado <luis.machado@linaro.org>
12050
12051 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12052 Cell BE architecture.
12053 * target.h (struct target_ops) <thread_architecture>: Likewise.
12054
12055 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12056
12057 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12058
12059 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12060
12061 * MAINTAINERS (Write After Approval): Add myself.
12062
12063 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12064
12065 * gdbarch.sh: Update copyright year range of generated files.
12066
12067 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12068
12069 Update copyright year range in all GDB files.
12070
12071 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12072
12073 * copyright.py: Convert to Python 3.
12074
12075 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12076
12077 * copyright.py: Adapt after move of gnulib directory from gdb
12078 directory to toplevel directory.
12079
12080 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12081
12082 * copyright.py (main): Exit if run from the wrong directory.
12083
12084 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12085
12086 * top.c (print_gdb_version): Change copyright year to 2020.
12087
12088 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12089
12090 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12091
12092 For older changes see ChangeLog-2019.
12093 \f
12094 Local Variables:
12095 mode: change-log
12096 left-margin: 8
12097 fill-column: 74
12098 version-control: never
12099 coding: utf-8
12100 End: