debuginfod-support.c: Replace globals with user_data
[binutils-gdb.git] / gdb / ChangeLog
1 2020-08-13 Aaron Merey <amerey@redhat.com>
2
3 * debuginfod-support.c: Replace global variables with user_data.
4
5 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6
7 * maint.c (maintenance_selftest): Split args and pass array_view
8 to run_tests.
9
10 2020-08-12 Luis Machado <luis.machado@linaro.org>
11
12 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
13 type's length.
14 Use %s and pulongest to print the length.
15
16 2020-08-12 Pedro Alves <palves@redhat.com>
17
18 * NEWS: Move "Multi-target debugging support" item to the
19 "Changes since GDB 9" section.
20
21 2020-08-12 Pedro Alves <palves@redhat.com>
22
23 PR gdb/26336
24 * progspace.c (program_space::remove_objfile): Invalidate the
25 frame cache.
26
27 2020-08-11 Tom de Vries <tdevries@suse.de>
28
29 * MAINTAINERS: Mark ms1 as deleted.
30
31 2020-08-10 Luis Machado <luis.machado@linaro.org>
32
33 PR gdb/26310
34
35 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
36 act accordingly.
37 (aarch64_analyze_prologue_test): Add more unit tests to exercise
38 movz/str/stur/stp skipping behavior.
39
40 2020-08-10 Luis Machado <luis.machado@linaro.org>
41
42 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
43 struct user_sve_header instead of struct sve_context.
44
45 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
46
47 * read.h (dwarf2_fetch_die_loc_sect_off,
48 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
49 `void *` parameter with function_view.
50 * read.c (dwarf2_fetch_die_loc_sect_off,
51 dwarf2_fetch_die_loc_cu_off): Likewise.
52 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
53 (per_cu_dwarf_call): Adjust.
54 (get_frame_address_in_block_wrapper): Remove.
55 (indirect_synthetic_pointer): Adjust.
56 (get_ax_pc): Remove.
57 (dwarf2_compile_expr_to_ax): Adjust.
58
59 2020-08-08 Tom de Vries <tdevries@suse.de>
60
61 PR build/26344
62 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
63 constructor.
64 * regcache.c (get_thread_arch_aspace_regcache): Same.
65
66 2020-08-07 Tom Tromey <tromey@adacore.com>
67
68 * ravenscar-thread.c
69 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
70 New method.
71 (ravenscar_thread_target::wait): Check
72 runtime_initialized.
73 (ravenscar_thread_target::prepare_to_store)
74 (ravenscar_thread_target::stopped_by_sw_breakpoint)
75 (ravenscar_thread_target::stopped_by_hw_breakpoint)
76 (ravenscar_thread_target::stopped_by_watchpoint)
77 (ravenscar_thread_target::stopped_data_address)
78 (ravenscar_thread_target::core_of_thread): Use
79 scoped_restore_current_thread and
80 set_base_thread_from_ravenscar_task.
81
82 2020-08-07 Tom Tromey <tromey@adacore.com>
83
84 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
85
86 2020-08-07 Tom Tromey <tromey@adacore.com>
87
88 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
89 update_inferior_ptid before update_thread_list.
90 (temporarily_change_regcache_ptid): New class.
91 (ravenscar_thread_target::fetch_registers)
92 (ravenscar_thread_target::store_registers)
93 (ravenscar_thread_target::prepare_to_store): Use base thread when
94 forwarding operation.
95
96 2020-08-07 Tom Tromey <tromey@adacore.com>
97
98 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
99 "is_pid" case.
100
101 2020-08-07 Tom Tromey <tromey@adacore.com>
102
103 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
104 New methods.
105 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
106 first.
107 (ravenscar_thread_target::add_thread): Rename from
108 ravenscar_add_thread.
109 (ravenscar_thread_target::update_thread_list): Use a lambda.
110 (ravenscar_thread_target::xfer_partial): New method.
111
112 2020-08-07 Tom Tromey <tromey@adacore.com>
113
114 * ada-lang.h (ada_task_list_iterator_ftype): Now a
115 gdb::function_view.
116 (iterate_over_live_ada_tasks): Change type of argument.
117 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
118 of argument.
119
120 2020-08-07 Tom Tromey <tromey@adacore.com>
121
122 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
123 Remove.
124 (ravenscar_thread_target::extra_thread_info): Remove.
125 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
126 defer to target beneath for non-Ravenscar threads.
127
128 2020-08-07 Tom Tromey <tromey@adacore.com>
129
130 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
131 get_base_thread_from_ravenscar_task>: Now methods.
132 <m_cpu_map>: New member.
133 (ravenscar_thread_target::get_thread_base_cpu): Rename from
134 ravenscar_get_thread_base_cpu. Check m_cpu_map.
135 (ravenscar_thread_target::task_is_currently_active): Update.
136 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
137 Now a method.
138 (ravenscar_thread_target::add_active_thread): Put initial thread
139 into the m_cpu_map.
140
141 2020-08-07 Tom Tromey <tromey@adacore.com>
142
143 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
144 event_ptid.
145
146 2020-08-07 Tom Tromey <tromey@adacore.com>
147
148 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
149 runtime_initialized.
150
151 2020-08-07 Tom Tromey <tromey@adacore.com>
152
153 * ravenscar-thread.c (ravenscar_thread_target): Don't call
154 add_active_thread.
155 (ravenscar_thread_target::add_active_thread): Now public.
156 (ravenscar_inferior_created): Call add_active_thread after pushing
157 the target.
158
159 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
160
161 * regcache.c (ptid_regcache_map): New type.
162 (target_ptid_regcache_map): New type.
163 (regcaches): Change type to target_ptid_regcache_map.
164 (get_thread_arch_aspace_regcache): Update to regcaches' new
165 type.
166 (regcache_thread_ptid_changed): Likewise.
167 (registers_changed_ptid): Likewise.
168 (regcaches_size): Likewise.
169 (regcaches_test): Update.
170 (regcache_thread_ptid_changed): Update.
171 * regcache.h (regcache_up): New type.
172 * gdbsupport/ptid.h (hash_ptid): New struct.
173
174 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
175
176 * observable.h (thread_ptid_changed): Add parameter
177 `process_stratum_target *`.
178 * infrun.c (infrun_thread_ptid_changed): Add parameter
179 `process_stratum_target *` and use it.
180 (selftests): New namespace.
181 (infrun_thread_ptid_changed): New function.
182 (_initialize_infrun): Register selftest.
183 * regcache.c (regcache_thread_ptid_changed): Add parameter
184 `process_stratum_target *` and use it.
185 (regcache_thread_ptid_changed): New function.
186 (_initialize_regcache): Register selftest.
187 * thread.c (thread_change_ptid): Pass target to
188 thread_ptid_changed observable.
189
190 2020-08-06 Caroline Tice <cmtice@google.com>
191
192 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
193 (struct dwp_sections): Update field comments. Add loclists and
194 rnglists fields.
195 (struct virtual_v2_dwo_sections): Rename struct to
196 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
197 size & offset fields for loclists and rnglists.
198 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
199 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
200 skipping dummy type units.
201 (create_dwp_hash_table): Update the large comment above the function to
202 discuss Version 5 DWP files as well, with references. Update all the
203 version checks in the function to check for version 5 as well. Add new
204 section at the end to create dwp hash table for version 5.
205 (create_dwp_v2_section): Rename function to
206 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
207 Add V5 to error message text.
208 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
209 into calls to create_dwp_v2_or_v5_section.
210 (create_dwo_unit_in_dwp_v5): New function.
211 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
212 check for version2; add else clause to handle version 5.
213 (open_and_init_dwo_file): Add code to check dwarf version & only call
214 create_debug_types_hash_table (with sections.types) if version is not 5;
215 else call create_debug_type_hash_table, with sections.info.
216 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
217 version 5.
218 (dwarf2_locate_v5_dwp_sections): New function.
219 (open_and_init_dwp_file): Add else-if clause for version 5 to call
220 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
221
222 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
223
224 * regcache.h (class regcache): Remove friend
225 registers_changed_ptid.
226 <regcache_thread_ptid_changed>: Remove.
227 <regcaches>: Remove.
228 * regcache.c (regcache::regcaches): Rename to...
229 (regcaches): ... this. Make static.
230 (get_thread_arch_aspace_regcache): Update.
231 (regcache::regcache_thread_ptid_changed): Rename to...
232 (regcache_thread_ptid_changed): ... this. Update.
233 (class regcache_access): Remove.
234 (regcaches_test): Update.
235 (_initialize_regcache): Update.
236 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
237 <forward_list>.
238
239 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
240
241 * regcache.h (class regcache) <current_regcache>: Rename to...
242 <regcaches>: ... this. Move doc here.
243 * regcache.c (regcache::current_regcache) Rename to...
244 (regcache::regcaches): ... this. Move doc to header.
245 (get_thread_arch_aspace_regcache): Update.
246 (regcache::regcache_thread_ptid_changed): Update.
247 (registers_changed_ptid): Update.
248 (class regcache_access) <current_regcache_size>: Rename to...
249 <regcaches_size>: ... this.
250 (current_regcache_test): Rename to...
251 (regcaches_test): ... this.
252 (_initialize_regcache): Update.
253
254 2020-08-06 Victor Collod <vcollod@nvidia.com>
255
256 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
257
258 2020-08-05 Kevin Buettner <kevinb@redhat.com>
259
260 * corelow.c (core_target::build_file_mappings): Don't output
261 null pathname in warning.
262
263 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
264
265 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
266 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
267 gdb.dwarf2/dw2-single-line-discriminators.exp,
268 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
269
270 2020-08-05 Tom Tromey <tromey@adacore.com>
271
272 PR rust/26197:
273 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
274 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
275 Fix off-by-one and type size errors in ordinary case.
276
277 2020-08-05 Tom de Vries <tdevries@suse.de>
278
279 * gdbtypes.c (type_not_allocated, type_not_associated): Use
280 "prop->const_val () == 0" instead of "prop->const_val () != 0".
281
282 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
283
284 * frame.h (frame_id_p): Return bool.
285 (frame_id_artificial_p): Return bool.
286 (frame_id_eq): Return bool.
287 (has_stack_frames): Return bool.
288 (get_selected_frame): Fix typo in comment.
289 (get_frame_pc_if_available): Return bool.
290 (get_frame_address_in_block_if_available): Return bool.
291 (get_frame_func_if_available): Return bool.
292 (read_frame_register_unsigned): Return bool.
293 (get_frame_register_bytes): Return bool.
294 (safe_frame_unwind_memory): Return bool.
295 (deprecated_frame_register_read): Return bool.
296 (frame_unwinder_is): Return bool.
297 * frame.c (struct frame_info) <prev_arch::p>: Change type to
298 bool.
299 <this_id::p>: Likewise.
300 <prev_p>: Likewise.
301 (frame_stash_add): Return bool.
302 (get_frame_id): Use bool.
303 (frame_id_build_special) Use bool.
304 (frame_id_build_unavailable_stack): Use bool.
305 (frame_id_build): Use bool.
306 (frame_id_p): Return bool, use true/false instead of 1/0.
307 (frame_id_artificial_p): Likewise.
308 (frame_id_eq): Likewise.
309 (frame_id_inner): Likewise.
310 (get_frame_func_if_available): Likewise.
311 (read_frame_register_unsigned): Likewise.
312 (deprecated_frame_register_read): Likewise.
313 (get_frame_register_bytes): Likewise.
314 (has_stack_frames): Likewise.
315 (inside_main_func): Likewise.
316 (inside_entry_func): Likewise.
317 (get_frame_pc_if_available): Likewise.
318 (get_frame_address_in_block_if_available): Likewise.
319 (frame_unwinder_is): Likewise.
320 (safe_frame_unwind_memory): Likewise.
321 (frame_unwind_arch): Likewise.
322
323 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
324
325 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
326 type to cached_copy_status.
327 (fprintf_frame): Adjust.
328 (get_frame_func_if_available): Adjust.
329 (frame_cleanup_after_sniffer): Adjust.
330
331 2020-08-04 Mark Wielaard <mark@klomp.org>
332
333 * MAINTAINERS (Write After Approval): Update email address.
334
335 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
336
337 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
338 dynamic_prop::const_val.
339
340 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
341
342 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
343 dynamic_prop::kind.
344
345 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
346
347 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
348
349 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
350
351 * configure.tgt: Set gdb_sim for bpf-*-* targets.
352
353 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
354 Jose E. Marchesi <jose.marchesi@oracle.com>
355
356 * configure.tgt: Add entry for bpf-*-*.
357 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
358 (ALLDEPFILES): Add bpf-tdep.c.
359 * bpf-tdep.c: New file.
360 * MAINTAINERS: Add bpf target and maintainer.
361 * NEWS: Mention the support for the new target.
362
363 2020-08-04 Tom de Vries <tdevries@suse.de>
364
365 PR symtab/23270
366 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
367 Error.
368
369 2020-08-03 John Baldwin <jhb@FreeBSD.org>
370
371 * syscalls/freebsd.xml: Regenerate.
372
373 2020-08-03 John Baldwin <jhb@FreeBSD.org>
374
375 * syscalls/update-freebsd.sh: Fix usage and year range.
376
377 2020-08-03 Tom de Vries <tdevries@suse.de>
378
379 PR symtab/26333
380 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
381 DW_LNE_lo_user/DW_LNE_hi_user range.
382
383 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
384
385 PR ada/26318
386 * ada-lang.c (ada_modulus): Return 0 if property is not of const
387 kind.
388
389 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
390
391 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
392
393 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
394
395 * breakpoint.c (set_breakpoint_condition): Update the condition
396 expressions after checking that the input condition string parses
397 successfully and does not contain junk at the end.
398
399 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
400
401 * breakpoint.c (set_breakpoint_condition): Update the
402 condition string after parsing the new condition successfully.
403
404 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
405
406 * proc-api.c (_STRUCTURED_PROC): Don't define.
407 * proc-events.c: Likewise.
408 * proc-flags.c: Likewise.
409 * proc-why.c: Likewise.
410 * procfs.c: Likewise.
411
412 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
413 * configure, config.in: Regenerate.
414
415 2020-07-30 Tom de Vries <tdevries@suse.de>
416
417 PR build/26320
418 * ui-style.h (struct ui_file_style::color): Wrap m_value and
419 m_red/m_green/m_blue in a union.
420
421 2020-07-29 Tom de Vries <tdevries@suse.de>
422
423 PR tdep/26280
424 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
425
426 2020-07-28 Tom Tromey <tromey@adacore.com>
427
428 PR symtab/26270:
429 * symtab.h (find_pc_partial_function_sym): Declare.
430 * cli/cli-cmds.c (disassemble_command): Use
431 find_pc_partial_function_sym. Check asm_demangle.
432 * blockframe.c (cache_pc_function_sym): New global.
433 (cache_pc_function_name): Remove.
434 (clear_pc_function_cache): Update.
435 (find_pc_partial_function_sym): New function, from
436 find_pc_partial_function.
437 (find_pc_partial_function): Rewrite using
438 find_pc_partial_function_sym.
439
440 2020-07-28 Tom Tromey <tromey@adacore.com>
441
442 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
443 help. Add usage.
444
445 2020-07-28 Tom Tromey <tromey@adacore.com>
446
447 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
448 <DW_OP_GNU_variable_value>: Cast to address type.
449
450 2020-07-28 Kamil Rytarowski <n54@gmx.com>
451
452 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
453 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
454 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
455 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
456 (nbsd_get_siginfo_type): New.
457 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
458 (_initialize_nbsd_tdep): New.
459
460 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
461
462 PR binutils/26301
463 * configure: Regenerated.
464
465 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
466
467 PR binutils/26301
468 * configure: Regenerated.
469
470 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
471
472 * python/py-frame.c: Remove 'user-regs.h' include.
473 (frapy_read_register): Rewrite to make use of
474 gdbpy_parse_register_id.
475 * python/py-registers.c (gdbpy_parse_register_id): New function,
476 moved here from python/py-unwind.c. Updated the return type, and
477 also accepts register descriptor objects.
478 * python/py-unwind.c: Remove 'user-regs.h' include.
479 (pyuw_parse_register_id): Moved to python/py-registers.c.
480 (unwind_infopy_add_saved_register): Update to use
481 gdbpy_parse_register_id.
482 (pending_framepy_read_register): Likewise.
483 * python/python-internal.h (gdbpy_parse_register_id): Declare.
484
485 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
486
487 * python/py-registers.c: Add 'user-regs.h' include.
488 (register_descriptor_iter_find): New function.
489 (register_descriptor_iterator_object_methods): New static global
490 methods array.
491 (register_descriptor_iterator_object_type): Add pointer to methods
492 array.
493
494 2020-07-27 John Baldwin <jhb@FreeBSD.org>
495
496 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
497 for all architectures on FreeBSD 11.3 and later.
498
499 2020-07-27 Tom Tromey <tromey@adacore.com>
500
501 * gcore.h (load_corefile): Don't declare.
502
503 2020-07-27 Tom de Vries <tdevries@suse.de>
504
505 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
506 * config.in: Regenerate.
507 * configure: Regenerate.
508
509 2020-07-26 Eli Zaretskii <eliz@gnu.org>
510
511 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
512 ws2tcpip.h. When checking whether socklen_t type is defined, use
513 ws2tcpip.h if it is available and sys/socket.h isn't.
514 * configure: Regenerate.
515 * config.in: Regenerate.
516
517 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
518
519 PR fortran/23051
520 PR fortran/26139
521 * valops.c (value_ind): Pass address to
522 readjust_indirect_value_type.
523 * value.c (readjust_indirect_value_type): Make parameter
524 non-const, and add extra address parameter. Resolve original type
525 before using it.
526 * value.h (readjust_indirect_value_type): Update function
527 signature and comment.
528
529 2020-07-25 Tom de Vries <tdevries@suse.de>
530
531 PR symtab/26243
532 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
533 entries.
534
535 2020-07-24 Aaron Merey <amerey@redhat.com>
536
537 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
538 * configure: Rebuild.
539
540 2020-07-23 Kevin Buettner <kevinb@redhat.com>
541
542 PR corefiles/26294
543 * corelow.c (_initialize_corelow): Add period to help text
544 for "maintenance print core-file-backed-mappings".
545
546 2020-07-23 Pedro Alves <pedro@palves.net>
547
548 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
549 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
550 meanwhile.
551 * frame.c (frame_cache_generation, get_frame_cache_generation):
552 New.
553 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
554 (get_prev_frame_if_no_cycle): On exception, don't touch
555 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
556 * frame.h (get_frame_cache_generation): Declare.
557
558 2020-07-23 Tom de Vries <tdevries@suse.de>
559
560 PR tui/26282
561 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
562 New default constructor.
563
564 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
565
566 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
567 exclude non-statement entries.
568
569 2020-07-22 Kevin Buettner <kevinb@redhat.com>
570
571 * NEWS (New commands): Mention new command
572 "maintenance print core-file-backed-mappings".
573
574 2020-07-22 Kevin Buettner <kevinb@redhat.com>
575
576 * corelow.c (gdbcmd.h): Include.
577 (core_target::info_proc_mappings): New method.
578 (get_current_core_target): New function.
579 (maintenance_print_core_file_backed_mappings): New function.
580 (_initialize_corelow): Add core-file-backed-mappings to
581 "maint print" commands.
582
583 2020-07-22 Kevin Buettner <kevinb@redhat.com>
584
585 * linux-tdep.c (dump_note_entry_p): New function.
586 (linux_dump_mapping_p_ftype): New typedef.
587 (linux_find_memory_regions_full): Add new parameter,
588 should_dump_mapping_p.
589 (linux_find_memory_regions): Adjust call to
590 linux_find_memory_regions_full.
591 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
592 call to linux_find_memory_regions_full.
593
594 2020-07-22 Kevin Buettner <kevinb@redhat.com>
595
596 * corelow.c (solist.h, unordered_map): Include.
597 (class core_target): Add field m_core_file_mappings and
598 method build_file_mappings.
599 (core_target::core_target): Call build_file_mappings.
600 (core_target::~core_target): Free memory associated with
601 m_core_file_mappings.
602 (core_target::build_file_mappings): New method.
603 (core_target::xfer_partial): Use m_core_file_mappings
604 for memory transfers.
605 * linux-tdep.c (linux_read_core_file_mappings): New
606 function.
607 (linux_core_info_proc_mappings): Rewrite to use
608 linux_read_core_file_mappings.
609 (linux_init_abi): Register linux_read_core_file_mappings.
610
611 2020-07-22 Kevin Buettner <kevinb@redhat.com>
612
613 * arch-utils.c (default_read_core_file_mappings): New function.
614 * arch-utils.c (default_read_core_file_mappings): Declare.
615 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
616 * gdbarch.h, gdbarch.c: Regenerate.
617
618 2020-07-22 Kevin Buettner <kevinb@redhat.com>
619
620 PR corefiles/25631
621 * corelow.c (core_target:xfer_partial): Revise
622 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
623 case after first checking the stratum beneath the core
624 target.
625 (has_all_memory): Return true.
626 * target.c (raw_memory_xfer_partial): Revise comment
627 regarding use of has_all_memory.
628
629 2020-07-22 Kevin Buettner <kevinb@redhat.com>
630
631 * exec.h (section_table_xfer_memory): Revise declaration,
632 replacing section name parameter with an optional callback
633 predicate.
634 * exec.c (section_table_xfer_memory): Likewise.
635 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
636 of section_table_xfer_memory.
637
638 2020-07-22 Tom Tromey <tromey@adacore.com>
639
640 * mi/mi-cmd-stack.c (list_args_or_locals): Use
641 lookup_symbol_search_name.
642
643 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
644
645 * python/py-registers.c (gdbpy_register_object_data_init): Remove
646 redundant local variable.
647 (gdbpy_get_register_descriptor): Extract descriptor vector as a
648 reference, not pointer, update code accordingly.
649
650 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
651 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
652
653 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
654 * jit.c (jit_breakpoint_re_set_internal): Use the
655 `skip_jit_symbol_lookup` field.
656
657 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
658 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
659
660 * jit.c (jit_read_descriptor): Define the descriptor address once,
661 use twice.
662 (jit_breakpoint_deleted): Move the declaration of the loop variable
663 `iter` into the loop header.
664 (jit_breakpoint_re_set_internal): Move the declaration of the local
665 variable `objf_data` to the first point of definition.
666 (jit_event_handler): Move the declaration of local variables
667 `code_entry`, `entry_addr`, and `objf` to their first point of use.
668 Rename `objf` to `jited`.
669
670 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
671
672 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
673 Remove.
674 * jit.c (get_jiter_objfile_data): Update.
675
676 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
677 Simon Marchi <simon.marchi@polymtl.ca>
678
679 * jit.c (struct jit_program_space_data): Remove.
680 (jit_program_space_key): Remove.
681 (jiter_objfile_data::~jiter_objfile_data): Remove program space
682 stuff.
683 (get_jit_program_space_data): Remove.
684 (jit_breakpoint_deleted): Iterate on all of the program space's
685 objfiles.
686 (jit_inferior_init): Likewise.
687 (jit_breakpoint_re_set_internal): Likewise. Also change return
688 type to void.
689 (jit_breakpoint_re_set): Pass current_program_space to
690 jit_breakpoint_re_set_internal.
691
692 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
693
694 * jit.h (struct jiter_objfile_data) <cached_code_address,
695 jit_breakpoint>: Move to here from ...
696 * jit.c (jit_program_space_data): ... here.
697 (jiter_objfile_data::~jiter_objfile_data): Update.
698 (jit_breakpoint_deleted): Update.
699 (jit_breakpoint_re_set_internal): Update.
700
701 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
702
703 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
704 checks.
705 (jit_read_descriptor): Remove NULL check.
706 (jit_event_handler): Add an assertion.
707
708 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
709
710 * jit.h (struct jit_objfile_data): Split into...
711 (struct jiter_objfile_data): ... this ...
712 (struct jited_objfile_data): ... and this.
713 * objfiles.h (struct objfile) <jit_data>: Remove.
714 <jiter_data, jited_data>: New fields.
715 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
716 (jiter_objfile_data::~jiter_objfile_data): ... this.
717 (get_jit_objfile_data): Rename to ...
718 (get_jiter_objfile_data): ... this.
719 (add_objfile_entry): Update.
720 (jit_read_descriptor): Use get_jiter_objfile_data.
721 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
722 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
723 (jit_inferior_exit_hook): Use objfile's jited_data field.
724
725 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
726
727 * jit.h: Forward-declare `struct minimal_symbol`.
728 (struct jit_objfile_data): Migrate to here from jit.c; also add a
729 constructor, destructor, and an objfile* field.
730 * jit.c (jit_objfile_data): Remove.
731 (struct jit_objfile_data): Migrate from here to jit.h.
732 (jit_objfile_data::~jit_objfile_data): New destructor
733 implementation with code moved from free_objfile_data.
734 (free_objfile_data): Delete.
735 (get_jit_objfile_data): Update to use the jit_data field of objfile.
736 (jit_find_objf_with_entry_addr): Ditto.
737 (jit_inferior_exit_hook): Ditto.
738 (_initialize_jit): Remove the call to
739 register_objfile_data_with_cleanup.
740 * objfiles.h (struct objfile) <jit_data>: New field.
741
742 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
743
744 * jit.h: Forward-declare `struct objfile`.
745 (jit_event_handler): Add a second parameter, the JITer objfile.
746 * jit.c (jit_read_descriptor): Change the signature to take the
747 JITer objfile as an argument instead of the jit_program_space_data.
748 (jit_inferior_init): Update the call to jit_read_descriptor.
749 (jit_event_handler): Use the new JITer objfile argument when calling
750 jit_read_descriptor.
751 * breakpoint.c (handle_jit_event): Update the call to
752 jit_event_handler to pass the JITer objfile.
753
754 2020-07-21 John Baldwin <jhb@FreeBSD.org>
755
756 * gdbarch.c: Regenerate.
757 * gdbarch.h: Regenerate.
758 * gdbarch.sh (handle_segmentation_fault): Remove method.
759 * infrun.c (handle_segmentation_fault): Remove.
760 (print_signal_received_reason): Remove call to
761 handle_segmentation_fault.
762
763 2020-07-21 John Baldwin <jhb@FreeBSD.org>
764
765 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
766 Rename to sparc64_linux_report_signal_info and add siggnal
767 argument.
768 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
769 instead of sparc64_linux_handle_segmentation_fault.
770
771 2020-07-21 John Baldwin <jhb@FreeBSD.org>
772
773 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
774 i386_linux_report_signal_info instead of
775 i386_linux_handle_segmentation_fault.
776 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
777 to i386_linux_report_signal_info and add siggnal argument.
778 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
779 of i386_linux_handle_segmentation_fault.
780 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
781 to i386_linux_report_signal_info and add siggnal argument.
782
783 2020-07-21 John Baldwin <jhb@FreeBSD.org>
784
785 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
786 hook if present.
787
788 2020-07-21 John Baldwin <jhb@FreeBSD.org>
789
790 * gdbarch.c: Regenerate.
791 * gdbarch.h: Regenerate.
792 * gdbarch.sh (report_signal_info): New method.
793 * infrun.c (print_signal_received_reason): Invoke gdbarch
794 report_signal_info hook if present.
795
796 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
797
798 * python/py-registers.c : Add 'unordered_map' include.
799 (gdbpy_new_reggroup): Renamed to...
800 (gdbpy_get_reggroup): ...this. Update to only create register
801 group descriptors when needed.
802 (gdbpy_reggroup_iter_next): Update.
803
804 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
805
806 * python/py-registers.c (gdbpy_register_object_data): New static
807 global.
808 (gdbpy_register_object_data_init): New function.
809 (gdbpy_new_register_descriptor): Renamed to...
810 (gdbpy_get_register_descriptor): ...this, and update to reuse
811 existing register descriptors where possible.
812 (gdbpy_register_descriptor_iter_next): Update.
813 (gdbpy_initialize_registers): Register new gdbarch data.
814
815 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
816
817 * linux-nat.c (stopped_pids): Make static.
818
819 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
820
821 PR ada/26235
822 * gdbtypes.c (ada_discrete_type_low_bound,
823 ada_discrete_type_high_bound): Handle undefined bounds.
824
825 2020-07-21 Kamil Rytarowski <n54@gmx.com>
826
827 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
828 declaration.
829 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
830 function.
831
832 2020-07-20 John Baldwin <jhb@FreeBSD.org>
833
834 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
835 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
836 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
837 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
838 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
839 method.
840
841 2020-07-20 Ludovic Courtès <ludo@gnu.org>
842
843 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
844 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
845 which are deprecated in Guile 3.0.
846 * configure.ac (try_guile_versions): Add "guile-3.0".
847 * configure (try_guile_versions): Regenerate.
848 * NEWS: Update entry.
849
850 2020-07-20 Ludovic Courtès <ludo@gnu.org>
851 Doug Evans <dje@google.com>
852
853 PR gdb/21104
854 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
855 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
856 USING_GUILE_BEFORE_2_2.
857 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
858 Change type to 'scm_t_port_type *'.
859 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
860 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
861 parameter and honor it. Update callers.
862 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
863 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
864 functions.
865 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
866 USING_GUILE_BEFORE_2_2.
867 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
868 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
869 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
870 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
871 and 'SCM_PORT_TYPE'.
872 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
873 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
874 (gdbscm_memory_port_read, gdbscm_memory_port_write)
875 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
876 [!USING_GUILE_BEFORE_2_2]: New functions.
877 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
878 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
879 'gdbscm_memory_port_read'.
880 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
881 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
882 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
883 function.
884 (ioscm_init_memory_port): Remove.
885 (ioscm_init_memory_port_stream): New function
886 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
887 function.
888 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
889 Return scm_from_uint (0).
890 (gdbscm_set_memory_port_read_buffer_size_x)
891 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
892 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
893 Return scm_from_uint (0).
894 (gdbscm_set_memory_port_write_buffer_size_x)
895 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
896 * configure.ac (try_guile_versions): Add "guile-2.2".
897 * configure: Regenerate.
898 * NEWS: Add entry.
899
900 2020-07-18 Tom Tromey <tom@tromey.com>
901
902 * linux-nat.c (linux_multi_process): Remove.
903 (linux_nat_target::supports_multi_process): Return true.
904
905 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
906
907 * arch/riscv.c (riscv_tdesc_cache): Change map type.
908 (riscv_lookup_target_description): Return pointer out of
909 unique_ptr.
910 * target-descriptions.c (allocate_target_description): Add
911 comment.
912 (target_desc_deleter::operator()): Likewise.
913 * target-descriptions.h (struct target_desc_deleter): Moved to
914 gdbsupport/tdesc.h.
915 (target_desc_up): Likewise.
916
917 2020-07-17 Tom Tromey <tromey@adacore.com>
918
919 * linux-nat.c (linux_nat_target::supports_non_stop)
920 (linux_nat_target::always_non_stop_p): Use "true".
921 (linux_nat_target::supports_disable_randomization): Use "true" and
922 "false".
923
924 2020-07-16 Caroline Tice <cmtice@google.com>
925
926 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
927 (RNGLIST_HEADER_SIZE64): New constant definition.
928 (struct dwop_section_names): Add rnglists_dwo.
929 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
930 (struct loclist_header): Rename to 'loclists_rnglists_header'.
931 (struct dwo_sections): Add rnglists field.
932 (read_attribut_reprocess): Add tag parameter.
933 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
934 (cu_debug_rnglists_section): New function (decl & definition).
935 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
936 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
937 die whose range is being checked; get rnglist section from
938 cu_debug_rnglists_section, to get from either objfile or dwo file as
939 appropriate. Add cases for DW_RLE_base_addressx,
940 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
941 the base address to DW_RLE_offset_pairs (not to all ranges), moving
942 test inside if-condition and updating complaint message.
943 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
944 dwarf2_rnglists_process.
945 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
946 dwarf2_ranges_process.
947 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
948 need_ranges_base and update comment appropriately. Also pass die tag
949 to dwarf2_ranges_read.
950 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
951 need_ranges_base and update comment appropriately. Also pass die tag
952 to dwarf2_ranges_process.
953 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
954 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
955 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
956 need_ranges_base and update comment appropriately. Also pass die tag
957 to read_attribute_reprocess and dwarf2_ranges_read.
958 (read_loclist_header): Rename function to read_loclists_rnglists_header,
959 and update function comment appropriately.
960 (read_loclist_index): Call read_loclists_rnglists_header instead of
961 read_loclist_header.
962 (read_rnglist_index): New function.
963 (read_attribute_reprocess): Add tag parameter. Add code for
964 DW_FORM_rnglistx, passing tag to read_rnglist_index.
965 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
966
967 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
968
969 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
970 being resolved.
971
972 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
973
974 * arch-utils.c (show_architecture): Update formatting of messages.
975
976 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
977
978 * gdbtypes.h (struct type) <bounds>: Handle array and string
979 types.
980 * ada-lang.c (assign_aggregate): Use type::bounds on
981 array/string type.
982 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
983 * c-varobj.c (c_number_of_children): Likewise.
984 (c_describe_child): Likewise.
985 * eval.c (evaluate_subexp_for_sizeof): Likewise.
986 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
987 (f_type_print_base): Likewise.
988 * f-valprint.c (f77_array_offset_tbl): Likewise.
989 (f77_get_upperbound): Likewise.
990 (f77_print_array_1): Likewise.
991 * guile/scm-type.c (gdbscm_type_range): Likewise.
992 * m2-typeprint.c (m2_array): Likewise.
993 (m2_is_long_set_of_type): Likewise.
994 * m2-valprint.c (get_long_set_bounds): Likewise.
995 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
996 * python/py-type.c (typy_range): Likewise.
997 * rust-lang.c (rust_internal_print_type): Likewise.
998 * type-stack.c (type_stack::follow_types): Likewise.
999 * valarith.c (value_subscripted_rvalue): Likewise.
1000 * valops.c (value_cast): Likewise.
1001
1002 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1003
1004 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1005 callers to use the equivalent accessor methods.
1006
1007 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1008
1009 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1010 (struct type) <bit_stride>: New method.
1011 (TYPE_BIT_STRIDE): Remove.
1012 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1013
1014 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1015
1016 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1017 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1018 callers to use the equivalent accessor methods instead.
1019
1020 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1021
1022 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1023 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1024 callers to use the equivalent accessor methods instead.
1025
1026 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1027
1028 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1029 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1030 to use dynamic_prop::kind.
1031
1032 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1033
1034 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1035 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1036 to get the bound property's kind and check against
1037 PROP_UNDEFINED.
1038
1039 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1040
1041 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1042 all callers to use type::range_bounds followed by
1043 dynamic_prop::{low,high}.
1044
1045 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1046
1047 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1048 const_val, set_const_val, baton, set_locexpr, set_loclist,
1049 set_addr_offset, variant_parts, set_variant_parts,
1050 original_type, set_original_type>: New methods.
1051 <kind>: Rename to...
1052 <m_kind>: ... this. Update all users to use the new methods
1053 instead.
1054 <data>: Rename to...
1055 <m_data>: ... this. Update all users to use the new methods
1056 instead.
1057
1058 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1059
1060 * gdbtypes.c (get_discrete_bounds): Return failure if
1061 the range type's bounds are not both defined and constant
1062 values.
1063 (get_array_bounds): Update comment. Remove undefined bound check.
1064
1065 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1066
1067 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1068 the type::bounds method directly.
1069
1070 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1071
1072 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1073 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1074 are used to set the range type's bounds to use set_bounds.
1075
1076 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1077
1078 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1079
1080 2020-07-10 Pedro Alves <pedro@palves.net>
1081
1082 * gdbthread.h (inferior_ref): Define.
1083 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1084 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1085 * thread.c
1086 (scoped_restore_current_thread::restore):
1087 Adjust to gdb::ref_ptr.
1088 (scoped_restore_current_thread::~scoped_restore_current_thread):
1089 Remove manual decref handling.
1090 (scoped_restore_current_thread::scoped_restore_current_thread):
1091 Adjust to use
1092 inferior_ref::new_reference/thread_info_ref::new_reference.
1093 Incref the thread before calling get_frame_id instead of after.
1094 Let TARGET_CLOSE_ERROR propagate.
1095
1096 2020-07-10 Pedro Alves <pedro@palves.net>
1097
1098 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1099 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1100 NOT_AVAILABLE_ERROR.
1101 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1102 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1103
1104 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1105 Pedro Alves <pedro@palves.net>
1106
1107 PR gdb/26199
1108 * infrun.c (threads_are_resumed_pending_p): Delete.
1109 (do_target_wait): Remove threads_are_executing and
1110 threads_are_resumed_pending_p checks from the inferior_matches
1111 lambda. Update comments.
1112
1113 2020-07-10 Pedro Alves <pedro@palves.net>
1114
1115 PR gdb/26199
1116 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1117 executing threads.
1118
1119 2020-07-10 Pedro Alves <pedro@palves.net>
1120
1121 PR gdb/26199
1122 * infrun.c (handle_no_resumed): Handle multiple targets.
1123
1124 2020-07-10 Pedro Alves <pedro@palves.net>
1125
1126 PR gdb/26199
1127 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1128 target_is_async_p.
1129
1130 2020-07-10 Pedro Alves <pedro@palves.net>
1131
1132 PR gdb/26199
1133 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1134 threads, not all threads.
1135
1136 2020-07-10 Pedro Alves <pedro@palves.net>
1137
1138 PR gdb/26199
1139 * remote.c (remote_target::open_1): Pass remote target pointer as
1140 data to create_async_event_handler.
1141 (remote_async_inferior_event_handler): Mark async event handler
1142 before returning if the remote target still has either pending
1143 events or unacknowledged notifications.
1144
1145 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1146
1147 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1148 declaration.
1149 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1150 function.
1151
1152 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1153
1154 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1155 inferior_ptid.
1156
1157 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1158
1159 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1160 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1161 AT_FREEBSD_PS_STRINGS.
1162
1163 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1164
1165 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1166 of debugfile path on Windows.
1167
1168 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1169
1170 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1171 argument to 'data'.
1172
1173 2020-07-08 Tom Tromey <tromey@adacore.com>
1174
1175 * ada-lang.c (ada_exception_message_1): Use read_memory.
1176
1177 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1178
1179 PR python/22748
1180 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1181 special handling for inline frames.
1182 * findvar.c (value_of_register_lazy): Skip inline frames when
1183 creating lazy register values.
1184 * frame.c (frame_id_computed_p): Delete definition.
1185 * frame.h (frame_id_computed_p): Delete declaration.
1186
1187 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1188
1189 * NEWS: Mention additions to Python API.
1190 * python/py-arch.c (archpy_register_groups): New function.
1191 (arch_object_methods): Add 'register_groups' method.
1192 * python/py-registers.c (reggroup_iterator_object): New struct.
1193 (reggroup_object): New struct.
1194 (gdbpy_new_reggroup): New function.
1195 (gdbpy_reggroup_to_string): New function.
1196 (gdbpy_reggroup_name): New function.
1197 (gdbpy_reggroup_iter): New function.
1198 (gdbpy_reggroup_iter_next): New function.
1199 (gdbpy_new_reggroup_iterator): New function
1200 (gdbpy_initialize_registers): Register new types.
1201 (reggroup_iterator_object_type): Define new Python type.
1202 (gdbpy_reggroup_getset): New static global.
1203 (reggroup_object_type): Define new Python type.
1204 * python/python-internal.h
1205
1206 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1207
1208 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1209 * python/py-arch.c (archpy_registers): New function.
1210 (arch_object_methods): Add 'registers' method.
1211 * python/py-registers.c: New file.
1212 * python/python-internal.h
1213 (gdbpy_new_register_descriptor_iterator): Declare.
1214 (gdbpy_initialize_registers): Declare.
1215 * python/python.c (do_start_initialization): Call
1216 gdbpy_initialize_registers.
1217 * NEWS: Mention additions to the Python API.
1218
1219 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1220
1221 * NEWS: Mention new Python API method.
1222 * python/py-unwind.c (pending_framepy_architecture): New function.
1223 (pending_frame_object_methods): Add architecture method.
1224
1225 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1226
1227 * gdbarch.c: Regenerate.
1228 * gdbarch.h: Regenerate.
1229 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1230 (gdbarch_data): Use internal_error for the case where
1231 deprecated_set_gdbarch_data was originally needed.
1232 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1233 and use passed in obstack.
1234 (libunwind_frame_set_descr): Should no longer get back NULL from
1235 gdbarch_data.
1236 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1237 type.
1238 * user-regs.c (user_regs_init): Update parameters, and use passed
1239 in obstack.
1240 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1241 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1242
1243 2020-07-06 Tom de Vries <tdevries@suse.de>
1244
1245 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1246 End-Of-Sequence in lte_is_less_than.
1247 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1248 "gdb: Don't reorder line table entries too much when sorting".
1249
1250 2020-07-06 Tom de Vries <tdevries@suse.de>
1251
1252 PR tui/26205
1253 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1254
1255 2020-07-05 Tom de Vries <tdevries@suse.de>
1256
1257 PR build/26187
1258 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1259 std::uncaught_exceptions instead of deprecated
1260 std::uncaught_exception.
1261
1262 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1263
1264 * macroexp.h (macro_stringify): Return
1265 gdb::unique_xmalloc_ptr<char>.
1266 * macroexp.c (macro_stringify): Likewise.
1267 * macrotab.c (fixup_definition): Update.
1268
1269 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1270
1271 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1272 (lex_one_token): Update.
1273 * macroexp.c (struct macro_buffer) <release>: Return
1274 gdb::unique_xmalloc_ptr<char>.
1275 (macro_stringify): Update.
1276 (macro_expand): Update.
1277 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1278 * macroexp.h (macro_expand_next): Likewise.
1279
1280 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1281
1282 * macroexp.h (macro_lookup_ftype): Remove.
1283 (macro_expand, macro_expand_once, macro_expand_next): Remove
1284 lookup function parameters, add scope parameter.
1285 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1286 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1287 * macroscope.h (standard_macro_lookup): Change parameter type
1288 to macro_scope.
1289 * macroscope.c (standard_macro_lookup): Likewise.
1290 * c-exp.y (lex_one_token): Update.
1291 * macrocmd.c (macro_expand_command): Likewise.
1292 (macro_expand_once_command): Likewise.
1293
1294 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1295
1296 * inf-loop.c (inferior_event_handler): Remove client_data param.
1297 * inf-loop.h (inferior_event_handler): Likewise.
1298 * infcmd.c (step_1): Adjust.
1299 * infrun.c (proceed): Adjust.
1300 (fetch_inferior_event): Remove client_data param.
1301 (infrun_async_inferior_event_handler): Adjust.
1302 * infrun.h (fetch_inferior_event): Remove `void *` param.
1303 * linux-nat.c (handle_target_event): Adjust.
1304 * record-btrace.c (record_btrace_handle_async_inferior_event):
1305 Adjust.
1306 * record-full.c (record_full_async_inferior_event_handler):
1307 Adjust.
1308 * remote.c (remote_async_inferior_event_handler): Adjust.
1309
1310 2020-07-01 Tom Tromey <tom@tromey.com>
1311
1312 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1313 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1314
1315 2020-07-01 Tom Tromey <tom@tromey.com>
1316
1317 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1318 tui_gen_win_info.
1319 (tui_win_info::make_window): Merge with
1320 tui_gen_win_info::make_window.
1321 (tui_win_info::make_visible): Move from tui_gen_win_info.
1322 * tui/tui-win.c (tui_win_info::max_width): Move from
1323 tui_gen_win_info.
1324 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1325 type.
1326 <window_factory>: Likewise.
1327 * tui/tui-layout.c (tui_win_info::resize): Move from
1328 tui_gen_win_info.
1329 (make_standard_window): Change return type.
1330 (get_locator_window, tui_get_window_by_name): Likewise.
1331 (tui_layout_window::apply): Remove a cast.
1332 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1333 (struct tui_win_info): Merge with tui_gen_win_info.
1334 (struct tui_gen_win_info): Remove.
1335
1336 2020-07-01 Tom Tromey <tom@tromey.com>
1337
1338 * tui/tui-stack.h (struct tui_locator_window): Derive from
1339 tui_win_info.
1340 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1341 <can_box>: New method.
1342
1343 2020-07-01 Tom Tromey <tom@tromey.com>
1344
1345 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1346
1347 2020-07-01 Tom Tromey <tom@tromey.com>
1348
1349 * tui/tui-regs.c (tui_data_window::display_registers_from)
1350 (tui_data_window::display_registers_from)
1351 (tui_data_window::first_data_item_displayed)
1352 (tui_data_window::delete_data_content_windows): Update.
1353 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1354 Remove.
1355 (tui_data_window::check_register_values): Update.
1356 (tui_data_item_window::rerender): Add parameters. Update.
1357 (tui_data_item_window::refresh_window): Remove.
1358 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1359 virtual.
1360 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1361 tui_gen_win_info.
1362 <refresh_window, max_height, min_height>: Remove.
1363 <rerender>: Add parameters.
1364 <x, y, visible>: New members.
1365 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1366 <m_item_width>: New member.
1367
1368 2020-07-01 Tom Tromey <tom@tromey.com>
1369
1370 * tui/tui-regs.c (tui_data_window::show_register_group)
1371 (tui_data_window::check_register_values): Update.
1372 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1373 from item_no.
1374
1375 2020-07-01 Tom Tromey <tom@tromey.com>
1376
1377 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1378 useless "if".
1379
1380 2020-07-01 Tom Tromey <tom@tromey.com>
1381
1382 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1383 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1384
1385 2020-07-01 Tom Tromey <tom@tromey.com>
1386
1387 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1388 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1389 (struct tui_line_or_address): Move from tui-data.h.
1390 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1391 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1392 (tui_cmd_window, tui_source_window_base, tui_source_window)
1393 (tui_disasm_window): Don't declare.
1394 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1395 to tui-winsource.h.
1396 (SINGLE_KEY): Move to tui-stack.c.
1397
1398 2020-07-01 Tom Tromey <tom@tromey.com>
1399
1400 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1401 std::string.
1402 * tui/tui-regs.c (class tab_expansion_file): New.
1403 (tab_expansion_file::write): New method.
1404 (tui_register_format): Change return type. Use
1405 tab_expansion_file.
1406 (tui_get_register, tui_data_window::display_registers_from)
1407 (tui_data_item_window::rerender): Update.
1408 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1409 * tui/tui-io.c (tui_expand_tabs): Remove.
1410
1411 2020-07-01 Tom Tromey <tom@tromey.com>
1412
1413 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1414
1415 2020-07-01 Fangrui Song <maskray@google.com>
1416
1417 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1418
1419 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1420
1421 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1422 forms for DW_AT_associated and DW_AT_allocated attributes,
1423 which is already checked in function attr_to_dynamic_prop.
1424
1425 2020-06-30 Tom Tromey <tromey@adacore.com>
1426
1427 * dwarf2/read.c (quirk_rust_enum): Correctly call
1428 alloc_rust_variant for default-less enum.
1429
1430 2020-06-30 Tom Tromey <tromey@adacore.com>
1431
1432 PR build/26183:
1433 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1434 gdb::to_string.
1435
1436 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1437
1438 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1439 * gdbarch.h: Re-generate.
1440
1441 2020-06-28 Tom Tromey <tom@tromey.com>
1442
1443 * command.h (cmd_types): Remove.
1444 (cmd_type): Don't declare.
1445 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1446 typedef.
1447 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1448 * cli/cli-decode.c (cmd_type): Remove.
1449
1450 2020-06-27 Pedro Alves <palves@redhat.com>
1451
1452 * fork-child.c (prefork_hook): Adjust.
1453 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1454 Delete.
1455 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1456 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1457 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1458 Remove declarations.
1459 (struct inferior) <set_tty, tty>: New methods.
1460 (struct inferior) <terminal>: Rename to ...
1461 (struct inferior) <m_terminal>: ... this and make private.
1462 * main.c (captured_main_1): Adjust.
1463 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1464 (mi_cmd_inferior_tty_show): Adjust.
1465 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1466 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1467
1468 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1469
1470 * configure.ac: Add --enable-libctf: handle --disable-static
1471 properly.
1472 * acinclude.m4: sinclude ../config/enable.m4.
1473 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1474 (LIBCTF): Substitute in.
1475 (CTF_DEPS): New, likewise.
1476 (CLIBS): libctf needs symbols from libbfd: move earlier.
1477 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1478 flags.
1479 * ctfread.c: Surround in ENABLE_LIBCTF.
1480 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1481 * configure: Regenerate.
1482 * config.in: Likewise.
1483
1484 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1485
1486 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1487
1488 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1489
1490 * inferior.h (struct inferior) <terminal>: Change type to
1491 gdb::unique_xmalloc_ptr<char>.
1492 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1493 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1494 field, adjust to unique pointer.
1495 (get_inferior_io_terminal): Adjust to unique pointer.
1496
1497 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1498
1499 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1500 registers, not just the known core set of registers.
1501
1502 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1503
1504 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1505 fflags, frm, and fcsr registers.
1506 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1507 restore groups.
1508 (riscv_tdesc_unknown_reg): New function.
1509 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1510 tdesc_use_registers.
1511 * riscv-tdep.h (struct gdbarch_tdep): Add
1512 unknown_csrs_first_regnum, unknown_csrs_count,
1513 duplicate_fflags_regnum, duplicate_frm_regnum, and
1514 duplicate_fcsr_regnum fields.
1515
1516 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1517
1518 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1519 callback, use the callback (when not null) to help number unknown
1520 registers.
1521 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1522 (tdesc_use_registers): Add extra parameter to declaration.
1523
1524 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1525
1526 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1527 in the file.
1528 (class riscv_pending_register_alias): Likewise.
1529 (riscv_register_feature::register_info): Change 'required_p' field
1530 to 'required', and change its type. Add 'check' member function.
1531 (riscv_register_feature::register_info::check): Define new member
1532 function.
1533 (riscv_xreg_feature): Change initialisation of 'required' field.
1534 (riscv_freg_feature): Likewise.
1535 (riscv_virtual_feature): Likewise.
1536 (riscv_csr_feature): Likewise.
1537 (riscv_check_tdesc_feature): Take extra parameter, the csr
1538 tdesc_feature, rewrite the function to use the new
1539 riscv_register_feature::register_info::check function.
1540 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1541
1542 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1543
1544 * features/Makefile: Remove all references to the deleted files
1545 below.
1546 * features/riscv/32bit-csr.c: Deleted.
1547 * features/riscv/32bit-csr.xml: Deleted.
1548 * features/riscv/64bit-csr.c: Deleted.
1549 * features/riscv/64bit-csr.xml: Deleted.
1550 * features/riscv/rebuild-csr-xml.sh: Deleted.
1551
1552 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1553
1554 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1555 whitespace error for declaration of names member variable.
1556 (struct riscv_register_feature): Add new prefer_first_name member
1557 variable, and fix whitespace error in declaration of registers.
1558 (riscv_xreg_feature): Initialize prefer_first_name field.
1559 (riscv_freg_feature): Likewise.
1560 (riscv_virtual_feature): Likewise.
1561 (riscv_csr_feature): Likewise.
1562 (riscv_register_name): Expand on comments. Remove register name
1563 modifications for CSR and virtual registers.
1564
1565 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1566
1567 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1568 errors.
1569
1570 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1571
1572 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1573 riscv-opc.h.
1574 (class riscv_pending_register_alias): New class.
1575 (riscv_check_tdesc_feature): Take vector of pending aliases and
1576 populate it as appropriate.
1577 (riscv_setup_register_aliases): Delete.
1578 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1579 to riscv_check_tdesc_feature in all cases. Use the vector to
1580 create the register aliases.
1581
1582 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1583
1584 * sol2-tdep.c (sol2_static_transform_name): Remove.
1585 (sol2_init_abi): Don't register it.
1586 * gdbarch.sh (static_transform_name): Remove.
1587 * gdbarch.c, gdbarch.h: Regenerate.
1588
1589 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1590 gdbarch_static_transform_name.
1591 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1592 * stabsread.c (define_symbol) <'X'>: Remove.
1593 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1594 handling.
1595 <'V'>: Likewise.
1596 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1597 <'S'>: Remove call to gdbarch_static_transform_name.
1598
1599 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1600
1601 * procfs.c (procfs_pre_trace): New function.
1602 (procfs_target::create_inferior): Pass it to fork_inferior.
1603
1604 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1605
1606 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1607 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1608 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1609 sol2-tdep.o, sparc-sol2-tdep.o.
1610 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1611 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1612 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1613 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1614
1615 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1616
1617 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1618 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1619 Call sol2_init_abi.
1620 Remove calls to set_gdbarch_skip_solib_resolver,
1621 set_gdbarch_core_pid_to_str.
1622 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1623 (i386_sol2_static_transform_name): Remove.
1624 (i386_sol2_init_abi): Call sol2_init_abi.
1625 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1626 set_gdbarch_static_transform_name,
1627 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1628 Use sol2_sigtramp_p.
1629 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1630 (sol2_sigtramp_p): New function.
1631 (sol2_static_transform_name): New function.
1632 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1633 (sol2_init_abi): New function.
1634 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1635 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1636 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1637 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1638 (sparc_sol2_static_transform_name): Remove.
1639 (sparc32_sol2_init_abi): Call sol2_init_abi.
1640 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1641 set_gdbarch_static_transform_name,
1642 set_gdbarch_skip_solib_resolver,
1643 set_gdbarch_core_pid_to_str.
1644 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1645 (sparc_sol2_static_transform_name): Remove
1646 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1647 call sol2_sigtramp_p.
1648 (sparc64_sol2_init_abi): Call sol2_init_abi.
1649 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1650 set_gdbarch_static_transform_name,
1651 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1652
1653 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1654
1655 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1656 * exec.c (validate_exec_file): If from_tty, set both
1657 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1658 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1659 and from_tty, unconditionally ask a confirmation.
1660
1661 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1662
1663 * target-descriptions.c (tdesc_architecture_name): Protect against
1664 NULL pointer dereference.
1665 (maint_print_xml_tdesc_cmd): New function.
1666 (_initialize_target_descriptions): Register new 'maint print
1667 xml-tdesc' command and give it the filename completer.
1668 * NEWS: Mention new 'maint print xml-tdesc' command.
1669
1670 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1671
1672 * target-descriptions.c (class tdesc_compatible_info): New class.
1673 (struct target_desc): Change type of compatible vector.
1674 (tdesc_compatible_p): Update for change in type of
1675 target_desc::compatible.
1676 (tdesc_compatible_info_list): New function.
1677 (tdesc_compatible_info_arch_name): New function.
1678 (tdesc_add_compatible): Update for change in type of
1679 target_desc::compatible.
1680 (print_c_tdesc::visit_pre): Likewise.
1681
1682 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1683
1684 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1685 whitespace to underscore.
1686 (maint_print_c_tdesc_cmd): Use fake filename for target
1687 descriptions that came from the target.
1688 (_initialize_target_descriptions): Add filename command completion
1689 for 'maint print c-tdesc'.
1690
1691 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1692
1693 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1694 lines.
1695
1696 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1697
1698 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1699 lines.
1700 (dwarf2_find_location_expression): Likewise.
1701 (call_site_parameter_matches): Likewise.
1702 (dwarf2_compile_expr_to_ax): Likewise.
1703 (disassemble_dwarf_expression): Likewise.
1704 (loclist_describe_location): Likewise.
1705
1706 2020-06-23 Pedro Alves <palves@redhat.com>
1707
1708 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1709 progspace-and-thread.h. Include scoped-mock-context.h instead.
1710 (register_to_value_test): Use scoped_mock_context.
1711 * regcache.c: Include "scoped-mock-context.h".
1712 (cooked_read_test): Don't error out if a target is already pushed.
1713 Use scoped_mock_context. Adjust.
1714 * scoped-mock-context.h: New file.
1715
1716 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1717
1718 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1719 initializer.
1720 (ada_language::is_string_type_p): New member function.
1721 * c-lang.c (c_language_data): Delete la_is_string_type_p
1722 initializer.
1723 (cplus_language_data): Likewise.
1724 (asm_language_data): Likewise.
1725 (minimal_language_data): Likewise.
1726 * d-lang.c (d_language_data): Likewise.
1727 * f-lang.c (f_is_string_type_p): Delete function, implementation
1728 moved to f_language::is_string_type_p.
1729 (f_language_data): Delete la_is_string_type_p initializer.
1730 (f_language::is_string_type_p): New member function,
1731 implementation from f_is_string_type_p.
1732 * go-lang.c (go_is_string_type_p): Delete function, implementation
1733 moved to go_language::is_string_type_p.
1734 (go_language_data): Delete la_is_string_type_p initializer.
1735 (go_language::is_string_type_p): New member function,
1736 implementation from go_is_string_type_p.
1737 * language.c (language_defn::is_string_type_p): Define new member
1738 function.
1739 (default_is_string_type_p): Make static, add comment copied from
1740 header file.
1741 (unknown_language_data): Delete la_is_string_type_p initializer.
1742 (unknown_language::is_string_type_p): New member function.
1743 (auto_language_data): Delete la_is_string_type_p initializer.
1744 (auto_language::is_string_type_p): New member function.
1745 * language.h (language_data): Delete la_is_string_type_p field.
1746 (language_defn::is_string_type_p): Declare new function.
1747 (default_is_string_type_p): Delete desclaration, move comment to
1748 definition.
1749 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1750 moved to m2_language::is_string_type_p.
1751 (m2_language_data): Delete la_is_string_type_p initializer.
1752 (m2_language::is_string_type_p): New member function,
1753 implementation from m2_is_string_type_p.
1754 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1755 initializer.
1756 * opencl-lang.c (opencl_language_data): Likewise.
1757 * p-lang.c (pascal_is_string_type_p): Delete function,
1758 implementation moved to pascal_language::is_string_type_p.
1759 (pascal_language_data): Delete la_is_string_type_p initializer.
1760 (pascal_language::is_string_type_p): New member function,
1761 implementation from pascal_is_string_type_p.
1762 * rust-lang.c (rust_is_string_type_p): Delete function,
1763 implementation moved to rust_language::is_string_type_p.
1764 (rust_language_data): Delete la_is_string_type_p initializer.
1765 (rust_language::is_string_type_p): New member function,
1766 implementation from rust_is_string_type_p.
1767 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1768 is_string_type_p.
1769
1770 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1771
1772 * ada-lang.c (ada_language_data): Delete la_print_typedef
1773 initializer.
1774 (ada_language::print_typedef): New member function.
1775 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1776 (cplus_language_data): Likewise.
1777 (asm_language_data): Likewise.
1778 (minimal_language_data): Likewise.
1779 * d-lang.c (d_language_data): Likewise.
1780 * f-lang.c (f_language_data): Likewise.
1781 (f_language::print_typedef): New member function.
1782 * go-lang.c (go_language_data): Delete la_print_typedef
1783 initializer.
1784 * language.c (language_defn::print_typedef): Define member
1785 function.
1786 (unknown_language_data): Delete la_print_typedef initializer.
1787 (unknown_language::print_typedef): New member function.
1788 (auto_language_data): Delete la_print_typedef initializer.
1789 (auto_language::print_typedef): New member function.
1790 * language.h (language_data): Delete la_print_typedef field.
1791 (language_defn::print_typedef): Declare new member function.
1792 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1793 (default_print_typedef): Delete declaration.
1794 * m2-lang.c (m2_language_data): Delete la_print_typedef
1795 initializer.
1796 (m2_language::print_typedef): New member function.
1797 * objc-lang.c (objc_language_data): Delete la_print_typedef
1798 initializer.
1799 * opencl-lang.c (opencl_language_data): Likewise.
1800 * p-lang.c (pascal_language_data): Likewise.
1801 (pascal_language::print_typedef): New member function.
1802 * rust-lang.c (rust_print_typedef): Delete function,
1803 implementation moved to rust_language::print_typedef.
1804 (rust_language): Delete la_print_typedef initializer.
1805 (rust_language::print_typedef): New member function,
1806 implementation from rust_print_typedef.
1807 * typeprint.c (default_print_typedef): Delete.
1808
1809 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1810
1811 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1812 (ada_language::printstr): New member function.
1813 * c-lang.c (c_language_data): Delete la_printstr initializer.
1814 (cplus_language_data): Likewise.
1815 (asm_language_data): Likewise.
1816 (minimal_language_data): Likewise.
1817 * d-lang.c (d_language_data): Likewise.
1818 * f-lang.c (f_printstr): Rename to f_language::printstr.
1819 (f_language_data): Delete la_printstr initializer.
1820 (f_language::printstr): New member function, implementation from
1821 f_printstr.
1822 * go-lang.c (go_language_data): Delete la_printstr initializer.
1823 * language.c (language_defn::printstr): Define new member
1824 function.
1825 (unk_lang_printstr): Delete.
1826 (unknown_language_data): Delete la_printstr initializer.
1827 (unknown_language::printstr): New member function.
1828 (auto_language_data): Delete la_printstr initializer.
1829 (auto_language::printstr): New member function.
1830 * language.h (language_data): Delete la_printstr field.
1831 (language_defn::printstr): Declare new member function.
1832 (LA_PRINT_STRING): Update call to printstr.
1833 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1834 (m2_language_data): Delete la_printstr initializer.
1835 (m2_language::printstr): New member function, implementation from
1836 m2_printstr.
1837 * objc-lang.c (objc_language_data): Delete la_printstr
1838 initializer.
1839 * opencl-lang.c (opencl_language_data): Likewise.
1840 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1841 (pascal_language_data): Delete la_printstr initializer.
1842 (pascal_language::printstr): New member function, implementation
1843 from pascal_printstr.
1844 * p-lang.h (pascal_printstr): Delete declaration.
1845 * rust-lang.c (rust_printstr): Update header comment.
1846 (rust_language_data): Delete la_printstr initializer.
1847 (rust_language::printstr): New member function.
1848
1849 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1850
1851 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1852 (ada_language::printchar): New member function.
1853 * c-lang.c (c_language_data): Delete la_printchar initializer.
1854 (cplus_language_data): Likewise.
1855 (asm_language_data): Likewise.
1856 (minimal_language_data): Likewise.
1857 * d-lang.c (d_language_data): Likewise.
1858 * f-lang.c (f_printchar): Rename to f_language::printchar.
1859 (f_language_data): Delete la_printchar initializer.
1860 (f_language::printchar): New member function, implementation from
1861 f_printchar.
1862 * go-lang.c (go_language_data): Delete la_printchar initializer.
1863 * language.c (unk_lang_printchar): Delete.
1864 (language_defn::printchar): Define new member function.
1865 (unknown_language_data): Delete la_printchar initializer.
1866 (unknown_language::printchar): New member function.
1867 (auto_language_data): Delete la_printchar initializer.
1868 (auto_language::printchar): New member function.
1869 * language.h (language_data): Delete la_printchar field.
1870 (language_defn::printchar): Declare new member function.
1871 (LA_PRINT_CHAR): Update call to printchar.
1872 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1873 (m2_language::printchar): New member function.
1874 * objc-lang.c (objc_language_data): Delete la_printchar
1875 initializer.
1876 * opencl-lang.c (opencl_language_data): Likewise.
1877 * p-lang.c (pascal_language_data): Delete la_printchar
1878 initializer.
1879 (pascal_language::printchar): New member function.
1880 * rust-lang.c (rust_printchar): Rename to
1881 rust_language::printchar.
1882 (rust_language_data): Delete la_printchar initializer.
1883 (rust_language::printchar): New member function, implementation
1884 from rust_printchar.
1885
1886 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1887
1888 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1889 (ada_language_data): Delete la_emitchar initializer.
1890 (ada_language::emitchar): New member function, implementation from
1891 emit_char.
1892 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1893 (cplus_language_data): Likewise.
1894 (asm_language_data): Likewise.
1895 (minimal_language_data): Likewise.
1896 * d-lang.c (d_language_data): Likewise.
1897 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1898 (f_language_data): Delete la_emitchar initializer.
1899 (f_language::emitchar): New member function, implementation from
1900 f_emit_char.
1901 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1902 * language.c (unk_lang_emit_char): Delete.
1903 (language_defn::emitchar): New member function definition.
1904 (unknown_language_data): Delete la_emitchar initializer.
1905 (unknown_language::emitchar): New member function.
1906 (auto_language_data): Delete la_emitchar initializer.
1907 (auto_language::emitchar): New member function.
1908 * language.h (language_data): Delete la_emitchar field.
1909 (language_defn::emitchar): New member field declaration.
1910 (LA_EMIT_CHAR): Update call to emitchar.
1911 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1912 (m2_language_data): Delete la_emitchar initializer.
1913 (m2_language::emitchar): New member function, implementation from
1914 m2_emit_char.
1915 * objc-lang.c (objc_language_data): Delete la_emitchar
1916 initializer.
1917 * opencl-lang.c (opencl_language_data): Likewise.
1918 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1919 (pascal_language_data): Delete la_emitchar initializer.
1920 (pascal_language::emitchar): New member function, implementation
1921 from pascal_emit_char.
1922 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1923 (rust_language_data): Delete la_emitchar initializer.
1924 (rust_language::emitchar): New member function, implementation
1925 from rust_emitchar.
1926
1927 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1928
1929 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1930 (ada_language_data): Delete la_post_parser initializer.
1931 (ada_language::post_parser): New member function.
1932 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1933 (cplus_language_data): Likewise.
1934 (asm_language_data): Likewise.
1935 (minimal_language_data): Likewise.
1936 * d-lang.c (d_language_data): Likewise.
1937 * f-lang.c (f_language_data): Likewise.
1938 * go-lang.c (go_language_data): Likewise.
1939 * language.c (unknown_language_data): Likewise.
1940 (auto_language_data): Likewise.
1941 * language.h (language_data): Delete la_post_parser field.
1942 (language_defn::post_parser): New member function.
1943 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1944 * objc-lang.c (objc_language_data): Likewise.
1945 * opencl-lang.c (opencl_language_data): Likewise.
1946 * p-lang.c (pascal_language_data): Likewise.
1947 * parse.c (parse_exp_in_context): Update call to post_parser.
1948 (null_post_parser): Delete definition.
1949 * parser-defs.h (null_post_parser): Delete declaration.
1950 * rust-lang.c (rust_language_data): Delete la_post_parser
1951 initializer.
1952
1953 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1954
1955 * ada-lang.c (parse): Rename to ada_language::parser.
1956 (ada_language_data): Delete la_parser initializer.
1957 (ada_language::parser): New member function, implementation from
1958 parse.
1959 * c-lang.c (c_language_data): Delete la_parser initializer.
1960 (cplus_language_data): Likewise.
1961 (asm_language_data): Likewise.
1962 (minimal_language_data): Likewise.
1963 * d-lang.c (d_language_data): Likewise.
1964 (d_language::parser): New member function.
1965 * f-lang.c (f_language_data): Delete la_parser initializer.
1966 (f_language::parser): New member function.
1967 * go-lang.c (go_language_data): Delete la_parser initializer.
1968 (go_language::parser): New member function.
1969 * language.c (unk_lang_parser): Delete.
1970 (language_defn::parser): Define new member function.
1971 (unknown_language_data): Delete la_parser initializer.
1972 (unknown_language::parser): New member function.
1973 (auto_language_data): Delete la_parser initializer.
1974 (auto_language::parser): New member function.
1975 * language.h (language_data): Delete la_parser field.
1976 (language_defn::parser): Declare new member function.
1977 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1978 (m2_language::parser): New member function.
1979 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1980 * opencl-lang.c (opencl_language_data): Likewise.
1981 * p-lang.c (pascal_language_data): Likewise.
1982 (pascal_language::parser): New member function.
1983 * parse.c (parse_exp_in_context): Update call to parser.
1984 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1985 (rust_language::parser): New member function.
1986
1987 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1988
1989 * top.c (print_gdb_configuration): Print --with-python-libdir
1990 configuration value.
1991
1992 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1993
1994 * NEWS: Mention change to the alias command.
1995
1996 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1997
1998 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1999 (alias_command_completer)
2000 (make_alias_options_def_group): New functions.
2001 (alias_opts, alias_option_defs): New struct and array.
2002 (alias_usage_error): Update usage.
2003 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2004 Use option framework.
2005 (_initialize_cli_cmds): Update alias command help.
2006 Update aliases command help.
2007 (show_user):
2008 Add NULL for new default_args lookup_cmd argument.
2009 (valid_command_p): Rename to validate_aliased_command.
2010 Add NULL for new default_args lookup_cmd argument. Verify that the
2011 aliased_command has no default args.
2012 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2013 (lookup_cmd_1, lookup_cmd): New argument default_args.
2014 (add_alias_cmd):
2015 Add NULL for new default_args lookup_cmd argument.
2016 (print_help_for_command): Show default args under the layout
2017 alias some_alias = some_aliased_cmd some_alias_default_arg.
2018 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2019 xfree default_args in destructor.
2020 * cli/cli-script.c (process_next_line, do_define_command):
2021 Add NULL for new default_args lookup_cmd argument.
2022 * command.h: Declare new default_args argument in lookup_cmd
2023 and lookup_cmd_1.
2024 * completer.c (complete_line_internal_1):
2025 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2026 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2027 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2028 Likewise.
2029 * infcmd.c (_initialize_infcmd): Likewise.
2030 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2031 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2032 * python/py-param.c (add_setshow_generic): Likewise.
2033 * remote.c (_initialize_remote): Likewise.
2034 * top.c (execute_command): Prepend default_args if command has some.
2035 (set_verbose):
2036 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2037 * tracepoint.c (validate_actionline, encode_actions_1):
2038 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2039
2040 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2041
2042 * jit.c (jit_read_descriptor): Use bool as the return type.
2043 (jit_breakpoint_re_set_internal): Use bool as the return type.
2044 Invert the return value logic; return true if the jit breakpoint
2045 has been successfully initialized.
2046 (jit_inferior_init): Update the call to
2047 jit_breakpoint_re_set_internal.
2048
2049 2020-06-22 Pedro Alves <palves@redhat.com>
2050
2051 PR gdb/25939
2052 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2053 Use the current inferior instead. Don't return
2054 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2055 wait again.
2056 * sol-thread.c (sol_thread_target::wait): Don't reference
2057 inferior_ptid.
2058 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2059 (sol_update_thread_list_callback): Use the current inferior's pid
2060 instead of inferior_ptid.
2061
2062 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2063
2064 * procfs.c: Cleanup many comments.
2065
2066 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2067 (AFTER_WATCHFLAG): Replace by value.
2068
2069 (MAIN_PROC_NAME_FORMAT): Inline ...
2070 (create_procinfo): ... here.
2071
2072 (procfs_debug_inferior): Remove SYS_exec handling.
2073 (syscall_is_exec): Likewise.
2074 (procfs_set_exec_trap): Likewise.
2075
2076 (syscall_is_lwp_exit): Inline in callers.
2077 (syscall_is_exit): Likewise.
2078 (syscall_is_exec): Likewise.
2079 (syscall_is_lwp_create): Likewise.
2080
2081 (invalidate_cache): Remove #if 0 code.
2082
2083 (make_signal_thread_runnable): Remove.
2084 (procfs_target::resume): Remove #if 0 code.
2085
2086 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2087
2088 PR gdb/25939
2089 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2090 call ...
2091 (procfs_target::create_inferior): ... here.
2092
2093 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2094
2095 * exec.c (validate_exec_file): Ensure the build-id is up to
2096 date by calling reopen_exec_file (that checks file timestamp
2097 to decide to re-read the file).
2098
2099 2020-06-18 Pedro Alves <palves@redhat.com>
2100
2101 PR gdb/25412
2102 * gdbthread.h (delete_thread, delete_thread_silent)
2103 (find_thread_ptid): Update comments.
2104 * thread.c (current_thread_): New global.
2105 (is_current_thread): Move higher, and reimplement.
2106 (inferior_thread): Reimplement.
2107 (set_thread_exited): Use bool. Add assertions.
2108 (add_thread_silent): Simplify thread-reuse handling by always
2109 calling delete_thread.
2110 (delete_thread): Remove intro comment.
2111 (find_thread_ptid): Skip exited threads.
2112 (switch_to_thread_no_regs): Write to current_thread_.
2113 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2114 INFERIOR_PTID. Clear current_thread_.
2115
2116 2020-06-18 Pedro Alves <palves@redhat.com>
2117
2118 * aix-thread.c (pd_update): Use switch_to_thread.
2119
2120 2020-06-18 Pedro Alves <palves@redhat.com>
2121
2122 * ravenscar-thread.c (ravenscar_thread_target): Update.
2123 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2124 (ravenscar_thread_target::add_active_thread): ... this. Don't
2125 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2126 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2127
2128 2020-06-18 Pedro Alves <palves@redhat.com>
2129
2130 * nat/windows-nat.c (current_windows_thread): Remove.
2131 * nat/windows-nat.h (current_windows_thread): Remove.
2132 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2133 Adjust.
2134 (display_selectors): Adjust to fetch the current
2135 windows_thread_info based on inferior_ptid.
2136 (fake_create_process): No longer write to current_windows_thread.
2137 (windows_nat_target::get_windows_debug_event):
2138 Don't set inferior_ptid or current_windows_thread.
2139 (windows_nat_target::wait): Adjust to not rely on
2140 current_windows_thread.
2141 (do_initial_windows_stuff): Now a method of windows_nat_target.
2142 Switch to the last_ptid thread.
2143 (windows_nat_target::attach): Adjust.
2144 (windows_nat_target::detach): Use switch_to_no_thread instead of
2145 writing to inferior_ptid directly.
2146 (windows_nat_target::create_inferior): Adjust.
2147
2148 2020-06-18 Pedro Alves <palves@redhat.com>
2149
2150 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2151
2152 2020-06-18 Pedro Alves <palves@redhat.com>
2153
2154 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2155 after creating it, instead of writing to inferior_ptid. Don't
2156 write to inferior_ptid.
2157
2158 2020-06-18 Pedro Alves <palves@redhat.com>
2159
2160 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2161
2162 2020-06-18 Pedro Alves <palves@redhat.com>
2163
2164 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2165 it, instead of writing to inferior_ptid.
2166
2167 2020-06-18 Pedro Alves <palves@redhat.com>
2168
2169 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2170 to inferior_ptid.
2171
2172 2020-06-18 Pedro Alves <palves@redhat.com>
2173
2174 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2175 instead of writing to inferior_ptid directly.
2176
2177 2020-06-18 Pedro Alves <palves@redhat.com>
2178
2179 * corelow.c (core_target::close): Use switch_to_no_thread instead
2180 of writing to inferior_ptid directly.
2181 (add_to_thread_list, core_target_open): Use switch_to_thread
2182 instead of writing to inferior_ptid directly.
2183
2184 2020-06-18 Pedro Alves <palves@redhat.com>
2185
2186 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2187 inferior_ptid.
2188 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2189 inferior_ptid.
2190 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2191 inferior_ptid directly.
2192 (darwin_nat_target::init_thread_list): Switch to thread, instead
2193 of writing to inferior_ptid.
2194 (darwin_nat_target::attach): Don't write to inferior_ptid.
2195 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2196
2197 2020-06-18 Pedro Alves <palves@redhat.com>
2198
2199 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2200 thread.
2201 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2202 Instead use switch_to_thread.
2203 (gnu_nat_target::detach): Use switch_to_no_thread
2204 instead of writing to inferior_ptid directly. Used passed-in
2205 inferior instead of looking up the inferior by pid.
2206
2207 2020-06-18 Pedro Alves <palves@redhat.com>
2208
2209 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2210 inferior_ptid.
2211
2212 2020-06-18 Pedro Alves <palves@redhat.com>
2213
2214 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2215 inferior_ptid.
2216 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2217 thread.
2218 (nto_procfs_target::detach): Avoid referencing
2219 inferior_ptid. Use switch_to_no_thread instead of writing to
2220 inferior_ptid directly.
2221 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2222 instead of writing to inferior_ptid directly.
2223 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2224 to thread.
2225
2226 2020-06-18 Pedro Alves <palves@redhat.com>
2227
2228 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2229 after creating it, instead of writing to inferior_ptid.
2230 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2231 to inferior_ptid directly.
2232 (gdbsim_target::wait): Don't write to inferior_ptid.
2233
2234 2020-06-18 Pedro Alves <palves@redhat.com>
2235
2236 * remote.c (remote_target::remote_notice_new_inferior): Use
2237 switch_to_thread instead of writing to inferior_ptid directly.
2238 (remote_target::add_current_inferior_and_thread): Use
2239 switch_to_no_thread instead of writing to inferior_ptid directly.
2240 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2241 and switch_to_thread instead of using set_current_inferior or
2242 writing to inferior_ptid directly.
2243
2244 2020-06-18 Pedro Alves <palves@redhat.com>
2245
2246 * tracectf.c (ctf_target_open): Switch to added thread instead of
2247 writing to inferior_ptid directly.
2248 (ctf_target::close): Use switch_to_no_thread instead of writing to
2249 inferior_ptid directly.
2250
2251 2020-06-18 Pedro Alves <palves@redhat.com>
2252
2253 * tracefile-tfile.c (tfile_target_open): Don't write to
2254 inferior_ptid directly, instead switch to added thread.
2255 (tfile_target::close): Use switch_to_no_thread instead of writing
2256 to inferior_ptid directly.
2257
2258 2020-06-18 Pedro Alves <palves@redhat.com>
2259
2260 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2261 (procfs_target::detach): Use switch_to_no_thread
2262 instead of writing to inferior_ptid directly.
2263 (do_attach): Change return type to void. Switch to the added
2264 thread.
2265 (procfs_target::create_inferior): Switch to the added thread.
2266 (procfs_do_thread_registers): Don't write to inferior_ptid.
2267
2268 2020-06-18 Pedro Alves <palves@redhat.com>
2269
2270 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2271 of writing to inferior_ptid.
2272 (scoped_restore_exited_inferior): Delete.
2273 (handle_vfork_child_exec_or_exit): Simplify using
2274 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2275 instead of writing to inferior_ptid.
2276 (THREAD_STOPPED_BY): Delete.
2277 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2278 (thread_stopped_by_hw_breakpoint): Delete.
2279 (save_waitstatus): Use
2280 scoped_restore_current_thread+switch_to_thread, and call
2281 target_stopped_by_watchpoint instead of
2282 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2283 instead of thread_stopped_by_sw_breakpoint, and
2284 target_stopped_by_hw_breakpoint instead of
2285 thread_stopped_by_hw_breakpoint.
2286 (handle_inferior_event)
2287 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2288 inferior_ptid directly, nor
2289 set_current_inferior/set_current_program_space. Use
2290 switch_to_thread / switch_to_inferior_no_thread instead.
2291
2292 2020-06-18 Pedro Alves <palves@redhat.com>
2293
2294 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2295 instead of writing to inferior_ptid.
2296
2297 2020-06-18 Pedro Alves <palves@redhat.com>
2298
2299 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2300 added thread.
2301 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2302 to the added thread.
2303 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2304 instead of writing to inferior_ptid.
2305
2306 2020-06-18 Pedro Alves <palves@redhat.com>
2307
2308 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2309 (register_to_value_test): Mock a program_space too. Heap-allocate
2310 the address space. Don't write to inferior_ptid. Use
2311 switch_to_thread instead.
2312
2313 2020-06-18 Pedro Alves <palves@redhat.com>
2314
2315 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2316 Delete.
2317 (find_signalled_thread()): New, factored out from
2318 linux_make_corefile_notes and adjusted to handle exited threads.
2319 (linux_make_corefile_notes): Adjust to use the new
2320 find_signalled_thread.
2321
2322 2020-06-18 Pedro Alves <palves@redhat.com>
2323
2324 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2325 of saving/restoring inferior_ptid.
2326
2327 2020-06-17 Tom Tromey <tom@tromey.com>
2328
2329 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2330 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2331 declare.
2332 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2333
2334 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2335
2336 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2337 of partial symtabs.
2338
2339 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2340
2341 * regformats/reg-arm.dat: Remove.
2342 * regformats/reg-bfin.dat: Remove.
2343 * regformats/reg-cris.dat: Remove.
2344 * regformats/reg-crisv32.dat: Remove.
2345 * regformats/reg-m32r.dat: Remove.
2346 * regformats/reg-tilegx.dat: Remove.
2347 * regformats/reg-tilegx32.dat: Remove.
2348
2349 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2350
2351 * features/Makefile (WHICH): Remove arm files.
2352 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2353 * regformats/arm/arm-with-neon.dat: Remove.
2354 * regformats/arm/arm-with-vfpv2.dat: Remove.
2355 * regformats/arm/arm-with-vfpv3.dat: Remove.
2356
2357 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2358
2359 * features/Makefile (XMLTOC): Remove rx.xml.
2360
2361 2020-06-17 Pedro Alves <palves@redhat.com>
2362
2363 * gdbthread.h (thread_control_state) <trap_expected> Update
2364 comments.
2365
2366 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2367
2368 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2369 ada_language::lookup_symbol_nonlocal.
2370 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2371 (ada_language::lookup_symbol_nonlocal): New member function,
2372 implementation from ada_lookup_symbol_nonlocal.
2373 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2374 initializer.
2375 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2376 initializer.
2377 (cplus_language::lookup_symbol_nonlocal): New member function.
2378 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2379 (minimal_language_data) Likewise.
2380 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2381 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2382 initializer.
2383 (d_language::lookup_symbol_nonlocal): New member function.
2384 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2385 initializer.
2386 (f_language::lookup_symbol_nonlocal): New member function.
2387 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2388 initializer.
2389 * language.c (unknown_language_data): Likewise.
2390 (auto_language_data): Likewise.
2391 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2392 field.
2393 (language_defn::lookup_symbol_nonlocal): New member function.
2394 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2395 initializer.
2396 * objc-lang.c (objc_language_data): Likewise.
2397 * opencl-lang.c (opencl_language_data): Likewise.
2398 * p-lang.c (pascal_language_data): Likewise.
2399 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2400 rust_language::lookup_symbol_nonlocal.
2401 (rust_language_data): Delete la_lookup_symbol_nonlocal
2402 initializer.
2403 (rust_language::lookup_symbol_nonlocal): New member function,
2404 implementation from rust_lookup_symbol_nonlocal.
2405 * symtab.c (lookup_symbol_aux): Update call to
2406 lookup_symbol_nonlocal.
2407 (basic_lookup_symbol_nonlocal): Rename to...
2408 (language_defn::lookup_symbol_nonlocal): ...this, and update
2409 header comment. Remove language_defn parameter, and replace with
2410 uses of `this'.
2411 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2412
2413 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2414
2415 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2416 initializer.
2417 (ada_language::value_print_inner): New member function.
2418 * c-lang.c (c_language_data): Delete la_value_print_inner
2419 initializer.
2420 (cplus_language_data): Likewise.
2421 (asm_language_data): Likewise.
2422 (minimal_language_data): Likewise.
2423 * d-lang.c (d_language_data): Likewise.
2424 (d_language::value_print_inner): New member function.
2425 * f-lang.c (f_language_data): Delete la_value_print_inner
2426 initializer.
2427 (f_language::value_print_inner): New member function.
2428 * f-lang.h (f_value_print_innner): Rename to...
2429 (f_value_print_inner): ...this (note spelling of 'inner').
2430 * f-valprint.c (f_value_print_innner): Rename to...
2431 (f_value_print_inner): ...this (note spelling of 'inner').
2432 * go-lang.c (go_language_data): Delete la_value_print_inner
2433 initializer.
2434 (go_language::value_print_inner): New member function.
2435 * language.c (language_defn::value_print_inner): Define new member
2436 function.
2437 (unk_lang_value_print_inner): Delete.
2438 (unknown_language_data): Delete la_value_print_inner initializer.
2439 (unknown_language::value_print_inner): New member function.
2440 (auto_language_data): Delete la_value_print_inner initializer.
2441 (auto_language::value_print_inner): New member function.
2442 * language.h (language_data): Delete la_value_print_inner field.
2443 (language_defn::value_print_inner): Delcare new member function.
2444 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2445 initializer.
2446 (m2_language::value_print_inner): New member function.
2447 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2448 initializer.
2449 * opencl-lang.c (opencl_language_data): Likewise.
2450 * p-lang.c (pascal_language_data): Likewise.
2451 (pascal_language::value_print_inner): New member function.
2452 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2453 initializer.
2454 (rust_language::value_print_inner): New member function.
2455 * valprint.c (do_val_print): Update call to value_print_inner.
2456
2457 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2458
2459 * ada-lang.c (ada_language_data): Delete la_value_print
2460 initializer.
2461 (ada_language::value_print): New member function.
2462 * c-lang.c (c_language_data): Delete la_value_print initializer.
2463 (cplus_language_data): Likewise.
2464 (asm_language_data): Likewise.
2465 (minimal_language_data): Likewise.
2466 * d-lang.c (d_language_data): Likewise.
2467 * f-lang.c (f_language_data): Likewise.
2468 * go-lang.c (go_language_data): Likewise.
2469 * language.c (unk_lang_value_print): Delete.
2470 (language_defn::value_print): Define new member function.
2471 (unknown_language_data): Delete la_value_print initializer.
2472 (unknown_language::value_print): New member function.
2473 (auto_language_data): Delete la_value_print initializer.
2474 (auto_language::value_print): New member function.
2475 * language.h (language_data): Delete la_value_print field.
2476 (language_defn::value_print): Declare new member function.
2477 (LA_VALUE_PRINT): Update call to value_print.
2478 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2479 * objc-lang.c (objc_language_data): Likewise.
2480 * opencl-lang.c (opencl_language_data): Likewise.
2481 * p-lang.c (pascal_language_data): Likewise.
2482 (pascal_language::value_print): New member function.
2483 * rust-lang.c (rust_language_data): Delete la_value_print
2484 initializer.
2485
2486 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2487
2488 * ada-lang.c (ada_watch_location_expression): Rename to
2489 ada_language::watch_location_expression.
2490 (ada_language_data): Delete la_watch_location_expression
2491 initializer.
2492 (ada_language::watch_location_expression): New member function,
2493 implementation from ada_watch_location_expression.
2494 * breakpoint.c (watch_command_1): Update call to
2495 watch_location_expression.
2496 * c-lang.c (c_watch_location_expression): Rename to
2497 language_defn::watch_location_expression.
2498 (c_language_data): Delete la_watch_location_expression
2499 initializer.
2500 (cplus_language_data): Likewise.
2501 (asm_language_data): Likewise.
2502 (minimal_language_data): Likewise.
2503 * c-lang.h (c_watch_location_expression): Delete declaration.
2504 * d-lang.c (d_language_data): Delete la_watch_location_expression
2505 initializer.
2506 * f-lang.c (f_language_data): Likewise.
2507 * go-lang.c (go_language_data): Likewise.
2508 * language.c (language_defn::watch_location_expression): Member
2509 function implementation from c_watch_location_expression.
2510 (unknown_language_data): Delete la_watch_location_expression
2511 initializer.
2512 (auto_language_data): Likewise.
2513 * language.h (language_data): Delete la_watch_location_expression
2514 field.
2515 (language_defn::watch_location_expression): Declare new member
2516 function.
2517 * m2-lang.c (m2_language_data): Delete
2518 la_watch_location_expression initializer.
2519 * objc-lang.c (objc_language_data): Likewise.
2520 * opencl-lang.c (opencl_language_data): Likewise.
2521 * p-lang.c (pascal_language_data): Likewise.
2522 * rust-lang.c (rust_watch_location_expression): Rename to
2523 rust_language::watch_location_expression.
2524 (rust_language_data): Delete la_watch_location_expression
2525 initializer.
2526 (rust_language::watch_location_expression): New member function,
2527 implementation from rust_watch_location_expression.
2528
2529 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2530
2531 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2532 ada_language::collect_symbol_completion_matches.
2533 (ada_language_data): Delete la_collect_symbol_completion_matches
2534 initializer.
2535 (ada_language::collect_symbol_completion_matches): New member
2536 function, implementation from
2537 ada_collect_symbol_completion_matches.
2538 * c-lang.c (c_language_data): Delete
2539 la_collect_symbol_completion_matches initializer.
2540 (cplus_language_data): Likewise.
2541 (asm_language_data): Likewise.
2542 (minimal_language_data): Likewise.
2543 * d-lang.c (d_language_data): Likewise.
2544 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2545 f_language::collect_symbol_completion_matches.
2546 (f_language_data): Delete la_collect_symbol_completion_matches
2547 initializer.
2548 (f_language::collect_symbol_completion_matches) New member
2549 function, implementation from f_collect_symbol_completion_matches.
2550 * go-lang.c (go_language_data): Delete
2551 la_collect_symbol_completion_matches initializer.
2552 * language.c (unknown_language_data): Likewise.
2553 (auto_language_data): Likewise.
2554 * language.h (language_data): Delete
2555 la_collect_symbol_completion_matches field.
2556 (language_defn::collect_symbol_completion_matches): New member
2557 function.
2558 * m2-lang.c (m2_language_data): Delete
2559 la_collect_symbol_completion_matches initializer.
2560 * objc-lang.c (objc_language_data): Likewise.
2561 * opencl-lang.c (opencl_language_data): Likewise.
2562 * p-lang.c (pascal_language_data): Likewise.
2563 * rust-lang.c (rust_language_data): Likewise.
2564 * symtab.c (default_collect_symbol_completion_matches): Delete.
2565 (collect_symbol_completion_matches): Update call to
2566 collect_symbol_completion_matches.
2567 (collect_symbol_completion_matches_type): Likewise.
2568 * symtab.h (default_collect_symbol_completion_matches): Delete
2569 declaration.
2570
2571 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2572
2573 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2574 (ada_language_data): Delete la_word_break_characters initializer.
2575 (ada_language::word_break_characters): New member function.
2576 * c-lang.c (c_language_data): Delete la_word_break_characters
2577 initializer.
2578 (cplus_language_data): Likewise.
2579 (asm_language_data): Likewise.
2580 (minimal_language_data): Likewise.
2581 * completer.c: Update global comment.
2582 (advance_to_expression_complete_word_point): Update call to
2583 word_break_characters.
2584 (complete_files_symbols): Likewise.
2585 (complete_line_internal_1): Likewise.
2586 (default_completer_handle_brkchars): Likewise.
2587 (skip_quoted_chars): Likewise.
2588 * d-lang.c (d_language_data): Delete la_word_break_characters
2589 initializer.
2590 * f-lang.c (f_word_break_characters): Delete.
2591 (f_language_data): Delete la_word_break_characters initializer.
2592 (f_language::word_break_characters): New member function.
2593 * go-lang.c (go_language_data): Delete la_word_break_characters
2594 initializer.
2595 * language.c (unknown_language_data): Likewise.
2596 (auto_language_data): Likewise.
2597 * language.h (default_word_break_characters): Move declaration to
2598 earlier in the file.
2599 (language_data): Delete la_word_break_characters field.
2600 (language_defn::word_break_characters): New member function.
2601 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2602 initializer.
2603 * objc-lang.c (objc_language_data): Likewise.
2604 * opencl-lang.c (opencl_language_data): Likewise.
2605 * p-lang.c (pascal_language_data): Likewise.
2606 * rust-lang.c (rust_language_data): Likewise.
2607
2608 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2609
2610 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2611 (ada_language_data): Delete la_get_symbol_name_matcher
2612 initializer.
2613 (language_defn::get_symbol_name_matcher_inner): New member
2614 function.
2615 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2616 initializer.
2617 (cplus_language_data): Likewise.
2618 (cplus_language::get_symbol_name_matcher_inner): New member
2619 function.
2620 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2621 (minimal_language_data): Likewise.
2622 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2623 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2624 initializer.
2625 * dictionary.c (iter_match_first_hashed): Update call to
2626 get_symbol_name_matcher.
2627 (iter_match_next_hashed): Likewise.
2628 (iter_match_next_linear): Likewise.
2629 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2630 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2631 initializer.
2632 (f_language::get_symbol_name_matcher_inner): New member function.
2633 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2634 initializer.
2635 * language.c (default_symbol_name_matcher): Update header comment,
2636 make static.
2637 (language_defn::get_symbol_name_matcher): New definition.
2638 (language_defn::get_symbol_name_matcher_inner): Likewise.
2639 (get_symbol_name_matcher): Delete.
2640 (unknown_language_data): Delete la_get_symbol_name_matcher
2641 initializer.
2642 (auto_language_data): Likewise.
2643 * language.h (language_data): Delete la_get_symbol_name_matcher
2644 field.
2645 (language_defn::get_symbol_name_matcher): New member function.
2646 (language_defn::get_symbol_name_matcher_inner): Likewise.
2647 (default_symbol_name_matcher): Delete declaration.
2648 * linespec.c (find_methods): Update call to
2649 get_symbol_name_matcher.
2650 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2651 initializer.
2652 * minsyms.c (lookup_minimal_symbol): Update call to
2653 get_symbol_name_matcher.
2654 (iterate_over_minimal_symbols): Likewise.
2655 * objc-lang.c (objc_language_data): Delete
2656 la_get_symbol_name_matcher initializer.
2657 * opencl-lang.c (opencl_language_data): Likewise.
2658 * p-lang.c (pascal_language_data): Likewise.
2659 * psymtab.c (psymbol_name_matches): Update call to
2660 get_symbol_name_matcher.
2661 * rust-lang.c (rust_language_data): Delete
2662 la_get_symbol_name_matcher initializer.
2663 * symtab.c (symbol_matches_search_name): Update call to
2664 get_symbol_name_matcher.
2665 (compare_symbol_name): Likewise.
2666
2667 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2668
2669 * ada-lang.c (ada_language_data): Delete la_compute_program
2670 initializer.
2671 * c-lang.c (c_language_data): Likewise.
2672 (c_language::compute_program): New member function.
2673 (cplus_language_data): Delete la_compute_program initializer.
2674 (cplus_language::compute_program): New member function.
2675 (asm_language_data): Delete la_compute_program initializer.
2676 (minimal_language_data): Likewise.
2677 * c-lang.h (c_compute_program): Update comment.
2678 (cplus_compute_program): Likewise.
2679 * compile/compile-c-support.c (c_compute_program): Likewise.
2680 (cplus_compute_program): Likewise.
2681 * compile/compile.c (compile_to_object): Update call to
2682 la_compute_program.
2683 * d-lang.c (d_language_data): Delete la_compute_program
2684 initializer.
2685 * f-lang.c (f_language_data): Likewise.
2686 * go-lang.c (go_language_data): Likewise.
2687 * language.c (unknown_language_data): Likewise.
2688 (auto_language_data): Likewise.
2689 * language.h (language_data): Delete la_compute_program field.
2690 (language_defn::compute_program): New member function.
2691 * m2-lang.c (m2_language_data): Delete la_compute_program
2692 initializer.
2693 * objc-lang.c (objc_language_data): Likewise.
2694 * opencl-lang.c (opencl_language_data): Likewise.
2695 * p-lang.c (pascal_language_data): Likewise.
2696 * rust-lang.c (rust_language_data): Likewise.
2697
2698 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2699
2700 * ada-lang.c (ada_language_data) Delete
2701 la_class_name_from_physname initializer.
2702 * c-lang.c (c_language_data): Likewise.
2703 (cplus_language_data): Likewise.
2704 (cplus_language::class_name_from_physname): New member function.
2705 (asm_language_data): Delete la_class_name_from_physname
2706 initializer.
2707 (minimal_language_data): Likewise.
2708 * d-lang.c (d_language_data): Likewise.
2709 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2710 method on language_defn class.
2711 (guess_full_die_structure_name): Likewise.
2712 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2713 initializer.
2714 * go-lang.c (go_language_data): Likewise.
2715 * language.c (language_class_name_from_physname): Delete.
2716 (unk_lang_class_name): Delete.
2717 (unknown_language_data): Delete la_class_name_from_physname
2718 initializer.
2719 (auto_language_data): Likewise.
2720 * language.h (language_data): Delete la_class_name_from_physname
2721 field.
2722 (language_defn::class_name_from_physname): New function.
2723 (language_class_name_from_physname): Delete declaration.
2724 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2725 initializer.
2726 * objc-lang.c (objc_language_data): Likewise.
2727 * opencl-lang.c (opencl_language_data): Likewise.
2728 * p-lang.c (pascal_language_data): Likewise.
2729 * rust-lang.c (rust_language_data): Likewise.
2730
2731 2020-06-16 Tom Tromey <tom@tromey.com>
2732
2733 * tui/tui-data.h (STATUS_NAME): New macro.
2734 * tui/tui-layout.c (tui_remove_some_windows)
2735 (initialize_known_windows, tui_register_window)
2736 (tui_layout_split::remove_windows, initialize_layouts)
2737 (tui_new_layout_command): Don't use hard-coded window names.
2738
2739 2020-06-16 Tom Tromey <tom@tromey.com>
2740
2741 PR tui/25348:
2742 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2743 tui_initialize_readline. Only run once. Call rl_initialize.
2744 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2745 tui_initialize_readline.
2746 * tui/tui-io.c (tui_setup_io): Call
2747 tui_ensure_readline_initialized.
2748 * tui/tui-interp.c (tui_interp::init): Update.
2749
2750 2020-06-16 Tom Tromey <tom@tromey.com>
2751
2752 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2753 Also preserve the status window.
2754
2755 2020-06-16 Tom Tromey <tom@tromey.com>
2756
2757 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2758 where m_window==nullptr.
2759
2760 2020-06-15 Tom Tromey <tromey@adacore.com>
2761
2762 * windows-nat.c (windows_nat::handle_output_debug_string):
2763 Update.
2764 (windows_nat::handle_ms_vc_exception): Update.
2765 * target.h (target_read_string): Change API.
2766 * target.c (target_read_string): Change API.
2767 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2768 Update.
2769 * solib-frv.c (frv_current_sos): Update.
2770 * solib-dsbt.c (dsbt_current_sos): Update.
2771 * solib-darwin.c (darwin_current_sos): Update.
2772 * linux-thread-db.c (inferior_has_bug): Update.
2773 * expprint.c (print_subexp_standard): Update.
2774 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2775 (ada_exception_message_1): Update.
2776
2777 2020-06-15 Tom Tromey <tromey@adacore.com>
2778
2779 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2780
2781 2020-06-15 Tom Tromey <tromey@adacore.com>
2782
2783 * valprint.c (read_string): Update comment.
2784 * target.c (MIN): Remove.
2785 (target_read_string): Rewrite.
2786
2787 2020-06-15 Tom Tromey <tromey@adacore.com>
2788
2789 * corefile.c (read_memory_string): Remove.
2790 * ada-valprint.c (ada_value_print_ptr): Update.
2791 * ada-lang.h (ada_tag_name): Change return type.
2792 * ada-lang.c (type_from_tag): Update.
2793 (ada_tag_name_from_tsd): Change return type. Use
2794 target_read_string.
2795 (ada_tag_name): Likewise.
2796 * gdbcore.h (read_memory_string): Don't declare.
2797
2798 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2799
2800 * symtab.c (rbreak_command): Ignore Windows drive colon.
2801
2802 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2803
2804 * NEWS: Mention removed GDBserver host support.
2805
2806 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2807
2808 * features/riscv/rebuild-csr-xml.sh: Updated.
2809
2810 2020-06-11 Tom Tromey <tom@tromey.com>
2811
2812 PR gdb/18318:
2813 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2814
2815 2020-06-09 Jonny Grant <jg@jguk.org>
2816 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2817
2818 * main.c (captured_main_1): Don't print new line after help.
2819 (print_gdb_help): add mailing list and IRC channel information
2820 to --help. Add new lines between items in the footer. Remove
2821 quotes around bug url.
2822
2823 2020-06-11 Keith Seitz <keiths@redhat.com>
2824
2825 PR gdb/21356
2826 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2827 Resolve typedefs for type length calculations.
2828
2829 2020-06-10 Tom de Vries <tdevries@suse.de>
2830
2831 PR ada/24713
2832 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2833 (write_psymbols): Enable .gdb_index for ada.
2834 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2835 ada.
2836
2837 2020-06-10 Tom de Vries <tdevries@suse.de>
2838
2839 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2840 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2841 namei" instead of "const char *name" argument.
2842 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2843 dw2_symtab_iter_init.
2844
2845 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2846
2847 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2848 to use type::field and field::type instead.
2849
2850 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2851
2852 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2853 to use field::type instead.
2854
2855 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2856
2857 * gdbtypes.h (struct field) <type, set_type>: New methods.
2858 Rename `type` field to...
2859 <m_type>: ... this. Change references throughout to use type or
2860 set_type methods.
2861 (FIELD_TYPE): Use field::type. Change call sites that modify
2862 the field's type to use field::set_type instead.
2863
2864 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2865
2866 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2867 to use type::index_type instead.
2868
2869 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2870
2871 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2872 methods.
2873 (TYPE_INDEX_TYPE): Use type::index_type.
2874 * gdbtypes.c (create_array_type_with_stride): Likewise.
2875
2876 2020-06-07 Tom Tromey <tom@tromey.com>
2877
2878 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2879 parameter.
2880 (generic_value_print): Update.
2881
2882 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2883
2884 Revert commit 982a38f60b0.
2885 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2886
2887 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2888
2889 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2890 avoid use after free.
2891
2892 2020-06-05 Tom de Vries <tdevries@suse.de>
2893
2894 * NEWS: Fix typos.
2895
2896 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2897
2898 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2899 the per_bfd object.
2900 (dwarf2_read_debug_names): Likewise.
2901 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2902 object when re-using a per_bfd object with an index.
2903
2904 2020-06-03 Tom de Vries <tdevries@suse.de>
2905
2906 PR symtab/26046
2907 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2908 children for C++.
2909 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2910 DW_TAG_subprogram.
2911
2912 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2913
2914 * ada-lang.c (ada_language_data): Delete skip_trampoline
2915 initializer.
2916 * c-lang.c (c_language_data): Likewise.
2917 (cplus_language_data): Likewise.
2918 (cplus_language::skip_trampoline): New member function.
2919 (asm_language_data): Delete skip_trampoline initializer.
2920 (minimal_language_data): Likewise.
2921 * d-lang.c (d_language_data): Likewise.
2922 * f-lang.c (f_language_data): Likewise.
2923 * go-lang.c (go_language_data): Likewise.
2924 * language.c (unk_lang_trampoline): Delete function.
2925 (skip_language_trampoline): Update.
2926 (unknown_language_data): Delete skip_trampoline initializer.
2927 (auto_language_data): Likewise.
2928 * language.h (language_data): Delete skip_trampoline field.
2929 (language_defn::skip_trampoline): New function.
2930 * m2-lang.c (m2_language_data): Delete skip_trampoline
2931 initializer.
2932 * objc-lang.c (objc_skip_trampoline): Delete function, move
2933 implementation to objc_language::skip_trampoline.
2934 (objc_language_data): Delete skip_trampoline initializer.
2935 (objc_language::skip_trampoline): New member function with
2936 implementation from objc_skip_trampoline.
2937 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2938 initializer.
2939 * p-lang.c (pascal_language_data): Likewise.
2940 * rust-lang.c (rust_language_data): Likewise.
2941
2942 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2943
2944 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2945 (ada_language::demangle): New member function.
2946 * c-lang.c (c_language_data): Delete la_demangle initializer.
2947 (cplus_language_data): Delete la_demangle initializer.
2948 (cplus_language::demangle): New member function.
2949 (asm_language_data): Delete la_demangle initializer.
2950 (minimal_language_data): Delete la_demangle initializer.
2951 * d-lang.c (d_language_data): Delete la_demangle initializer.
2952 (d_language::demangle): New member function.
2953 * f-lang.c (f_language_data): Delete la_demangle initializer.
2954 (f_language::demangle): New member function.
2955 * go-lang.c (go_language_data): Delete la_demangle initializer.
2956 (go_language::demangle): New member function.
2957 * language.c (language_demangle): Update.
2958 (unk_lang_demangle): Delete.
2959 (unknown_language_data): Delete la_demangle initializer.
2960 (unknown_language::demangle): New member function.
2961 (auto_language_data): Delete la_demangle initializer.
2962 (auto_language::demangle): New member function.
2963 * language.h (language_data): Delete la_demangle field.
2964 (language_defn::demangle): New function.
2965 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2966 * objc-lang.c (objc_language_data): Delete la_demangle
2967 initializer.
2968 (objc_language::demangle): New member function.
2969 * opencl-lang.c (opencl_language_data): Delete la_demangle
2970 initializer.
2971 * p-lang.c (pascal_language_data): Likewise.
2972 * rust-lang.c (rust_language_data): Likewise.
2973 (rust_language::demangle): New member function.
2974
2975 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2976
2977 * ada-lang.c (ada_language_data): Delete la_print_type
2978 initializer.
2979 (ada_language::print_type): New member function.
2980 * c-lang.c (c_language_data): Delete la_print_type initializer.
2981 (c_language::print_type): New member function.
2982 (cplus_language_data): Delete la_print_type initializer.
2983 (cplus_language::print_type): New member function.
2984 (asm_language_data): Delete la_print_type initializer.
2985 (asm_language::print_type): New member function.
2986 (minimal_language_data): Delete la_print_type initializer.
2987 (minimal_language::print_type): New member function.
2988 * d-lang.c (d_language_data): Delete la_print_type initializer.
2989 (d_language::print_type): New member function.
2990 * f-lang.c (f_language_data): Delete la_print_type initializer.
2991 (f_language::print_type): New member function.
2992 * go-lang.c (go_language_data): Delete la_print_type initializer.
2993 (go_language::print_type): New member function.
2994 * language.c (unk_lang_print_type): Delete.
2995 (unknown_language_data): Delete la_print_type initializer.
2996 (unknown_language::print_type): New member function.
2997 (auto_language_data): Delete la_print_type initializer.
2998 (auto_language::print_type): New member function.
2999 * language.h (language_data): Delete la_print_type field.
3000 (language_defn::print_type): New function.
3001 (LA_PRINT_TYPE): Update.
3002 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3003 (m2_language::print_type): New member function.
3004 * objc-lang.c (objc_language_data): Delete la_print_type
3005 initializer.
3006 (objc_language::print_type): New member function.
3007 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3008 to opencl_language::print_type.
3009 (opencl_language_data): Delete la_print_type initializer.
3010 (opencl_language::print_type): New member function, implementation
3011 from opencl_print_type.
3012 * p-lang.c (pascal_language_data): Delete la_print_type
3013 initializer.
3014 (pascal_language::print_type): New member function.
3015 * rust-lang.c (rust_print_type): Delete, implementation moved to
3016 rust_language::print_type.
3017 (rust_language_data): Delete la_print_type initializer.
3018 (rust_language::print_type): New member function, implementation
3019 from rust_print_type.
3020
3021 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3022
3023 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3024 implementation moves to...
3025 (ada_language::sniff_from_mangled_name): ...here. Update return
3026 type.
3027 (ada_language_data): Delete la_sniff_from_mangled_name
3028 initializer.
3029 * c-lang.c (c_language_data): Likewise.
3030 (cplus_language_data): Likewise.
3031 (cplus_language::sniff_from_mangled_name): New member function,
3032 implementation taken from gdb_sniff_from_mangled_name.
3033 (asm_language_data): Delete la_sniff_from_mangled_name
3034 initializer.
3035 (minimal_language_data): Likewise.
3036 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3037 implementation moves to cplus_language::sniff_from_mangled_name.
3038 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3039 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3040 moves to...
3041 (d_language::sniff_from_mangled_name): ...here.
3042 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3043 * f-lang.c (f_language_data): Likewise.
3044 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3045 moves to...
3046 (go_language::sniff_from_mangled_name): ...here.
3047 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3048 * language.c (language_sniff_from_mangled_name): Delete.
3049 (unknown_language_data): Delete la_sniff_from_mangled_name
3050 initializer.
3051 (auto_language_data): Likewise.
3052 * language.h (language_data): Delete la_sniff_from_mangled_name
3053 field.
3054 (language_defn::sniff_from_mangled_name): New function.
3055 (language_sniff_from_mangled_name): Delete declaration.
3056 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3057 field.
3058 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3059 implementation moves to...
3060 (objc_language::sniff_from_mangled_name): ...here.
3061 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3062 * opencl-lang.c (opencl_language_data): Likewise.
3063 * p-lang.c (pascal_language_data): Likewise.
3064 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3065 implementation moves to...
3066 (rust_language::sniff_from_mangled_name): ...here.
3067 (rust_language_data): Delete la_sniff_from_mangled_name
3068 initializer.
3069 * symtab.c (symbol_find_demangled_name): Call
3070 sniff_from_mangled_name member function.
3071
3072 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3073
3074 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3075 initializer.
3076 * c-lang.c (c_language_data): Likewise.
3077 (cplus_language_data): Likewise.
3078 (cplus_language::search_name_hash): New member function.
3079 (asm_language_data): Delete la_search_name_hash initializer.
3080 (minimal_language_data): Likewise.
3081 * d-lang.c (d_language_data): Likewise.
3082 * dictionary.c (default_search_name_hash): Rename to...
3083 (language_defn::search_name_hash): ...this.
3084 * f-lang.c (f_language_data): Likewise.
3085 (f_language::search_name_hash): New member function.
3086 * go-lang.c (go_language_data): Delete la_search_name_hash
3087 initializer.
3088 * language.c (unknown_language_data): Likewise.
3089 (auto_language_data): Likewise.
3090 * language.h (struct language_data): Delete la_search_name_hash
3091 field.
3092 (language_defn::search_name_hash): Declare new member function.
3093 (default_search_name_hash): Delete declaration.
3094 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3095 initializer.
3096 * objc-lang.c (objc_language_data): Likewise.
3097 * opencl-lang.c (opencl_language_data): Likewise.
3098 * p-lang.c (pascal_language_data): Likewise.
3099 * rust-lang.c (rust_language_data): Likewise.
3100 * symtab.c (search_name_hash): Update call.
3101
3102 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3103
3104 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3105 initializer.
3106 * c-lang.c (class compile_instance): Declare.
3107 (c_language_data): Delete la_get_compile_instance initializer.
3108 (c_language::get_compile_instance): New member function.
3109 (cplus_language_data): Delete la_get_compile_instance initializer.
3110 (cplus_language::get_compile_instance): New member function.
3111 (asm_language_data): Delete la_get_compile_instance initializer.
3112 (minimal_language_data): Likewise.
3113 * c-lang.h (c_get_compile_context): Update comment.
3114 (cplus_get_compile_context): Update comment.
3115 * compile/compile.c (compile_to_object): Update calls, don't rely
3116 on function pointer being NULL.
3117 * d-lang.c (d_language_data): Delete la_get_compile_instance
3118 initializer.
3119 * f-lang.c (f_language_data): Likewise.
3120 * go-lang.c (go_language_data): Likewise.
3121 * language.c (unknown_language_data): Likewise.
3122 (auto_language_data): Likewise.
3123 * language.h (language_data): Delete la_get_compile_instance field.
3124 (language_defn::get_compile_instance): New member function.
3125 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3126 initializer.
3127 * objc-lang.c (objc_language_data): Likewise.
3128 * opencl-lang.c (opencl_language_data): Likewise.
3129 * p-lang.c (pascal_language_data): Likewise.
3130 * rust-lang.c (rust_language_data): Likewise.
3131
3132 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3133
3134 * ada-lang.c (ada_add_all_symbols): Update comment.
3135 (ada_iterate_over_symbols): Delete, move implementation to...
3136 (ada_language::iterate_over_symbols): ...here, a new member
3137 function, rewrite to use range based for loop.
3138 (ada_language_data): Delete la_iterate_over_symbols initializer.
3139 * c-lang.c (c_language_data): Likewise.
3140 (cplus_language_data): Likewise.
3141 (asm_language_data): Likewise.
3142 (minimal_language_data): Likewise.
3143 * d-lang.c (d_language_data): Likewise.
3144 * f-lang.c (f_language_data): Likewise.
3145 * go-lang.c (go_language_data): Likewise.
3146 * language.c (unknown_language_data): Likewise.
3147 (auto_language_data): Likewise.
3148 * language.h (language_data): Delete la_iterate_over_symbols field.
3149 (language_defn::iterate_over_symbols): New member function.
3150 (LA_ITERATE_OVER_SYMBOLS): Update.
3151 * linespec.c (iterate_over_all_matching_symtabs): Update.
3152 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3153 initializer.
3154 * objc-lang.c (objc_language_data): Likewise.
3155 * opencl-lang.c (opencl_language_data): Likewise.
3156 * p-lang.c (pascal_language_data): Likewise.
3157 * rust-lang.c (rust_language_data): Likewise.
3158
3159 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3160
3161 * ada-lang.c (ada_language_data): Delete
3162 la_lookup_transparent_type initializer.
3163 * c-lang.c (c_language_data): Likewise.
3164 (cplus_language_data): Likewise.
3165 (cplus_language::lookup_transparent_type): New member function.
3166 (asm_language_data): Delete la_lookup_transparent_type
3167 initializer.
3168 (minimal_language_data): Likewise.
3169 * d-lang.c (d_language_data): Likewise.
3170 * f-lang.c (f_language_data): Likewise.
3171 * go-lang.c (go_language_data): Likewise.
3172 * language.c (unknown_language_data): Likewise.
3173 (auto_language_data): Likewise.
3174 * language.h (struct language_data): Delete
3175 la_lookup_transparent_type field.
3176 (language_defn::lookup_transparent_type): New member function.
3177 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3178 initializer.
3179 * objc-lang.c (objc_language_data): Likewise.
3180 * opencl-lang.c (opencl_language_data): Likewise.
3181 * p-lang.c (pascal_language_data): Likewise.
3182 * rust-lang.c (rust_language_data): Likewise.
3183 * symtab.c (symbol_matches_domain): Update call.
3184
3185 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3186
3187 * ada-lang.c (ada_language_arch_info): Delete function, move
3188 implementation to...
3189 (ada_language::language_arch_info): ...here, a new member
3190 function.
3191 (ada_language_data): Delete la_language_arch_info.
3192 * c-lang.c (c_language_data): Likewise.
3193 (c_language::language_arch_info): New member function.
3194 (cplus_language_arch_info): Delete function, move
3195 implementation to...
3196 (cplus_language::language_arch_info): ...here, a new member
3197 function.
3198 (cplus_language_data): Delete la_language_arch_info.
3199 (asm_language_data): Likewise.
3200 (asm_language::language_arch_info): New member function.
3201 (minimal_language_data): Delete la_language_arch_info.
3202 (minimal_language::language_arch_info): New member function.
3203 * d-lang.c (d_language_arch_info): Delete function, move
3204 implementation to...
3205 (d_language::language_arch_info): ...here, a new member
3206 function.
3207 (d_language_data): Delete la_language_arch_info.
3208 * f-lang.c (f_language_arch_info): Delete function, move
3209 implementation to...
3210 (f_language::language_arch_info): ...here, a new member
3211 function.
3212 (f_language_data): Delete la_language_arch_info.
3213 * go-lang.c (go_language_arch_info): Delete function, move
3214 implementation to...
3215 (go_language::language_arch_info): ...here, a new member
3216 function.
3217 (go_language_data): Delete la_language_arch_info.
3218 * language.c (unknown_language_data): Likewise.
3219 (unknown_language::language_arch_info): New member function.
3220 (auto_language_data): Delete la_language_arch_info.
3221 (auto_language::language_arch_info): New member function.
3222 (language_gdbarch_post_init): Update call to
3223 la_language_arch_info.
3224 * language.h (language_data): Delete la_language_arch_info
3225 function pointer.
3226 (language_defn::language_arch_info): New function.
3227 * m2-lang.c (m2_language_arch_info): Delete function, move
3228 implementation to...
3229 (m2_language::language_arch_info): ...here, a new member
3230 function.
3231 (m2_language_data): Delete la_language_arch_info.
3232 * objc-lang.c (objc_language_arch_info): Delete function, move
3233 implementation to...
3234 (objc_language::language_arch_info): ...here, a new member
3235 function.
3236 (objc_language_data): Delete la_language_arch_info.
3237 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3238 implementation to...
3239 (opencl_language::language_arch_info): ...here, a new member
3240 function.
3241 (opencl_language_data): Delete la_language_arch_info.
3242 * p-lang.c (pascal_language_arch_info): Delete function, move
3243 implementation to...
3244 (pascal_language::language_arch_info): ...here, a new member
3245 function.
3246 (pascal_language_data): Delete la_language_arch_info.
3247 * rust-lang.c (rust_language_arch_info): Delete function, move
3248 implementation to...
3249 (rust_language::language_arch_info): ...here, a new member
3250 function.
3251 (rust_language_data): Delete la_language_arch_info.
3252
3253 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3254
3255 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3256 initializer.
3257 * c-lang.c (c_language_data): Likewise.
3258 (cplus_language_data): Likewise.
3259 (cplus_language::pass_by_reference_info): New method.
3260 (asm_language_data): Delete la_pass_by_reference initializer.
3261 (minimal_language_data): Likewise.
3262 * cp-abi.c (cp_pass_by_reference): Remove use of
3263 default_pass_by_reference.
3264 * d-lang.c (d_language_data): Likewise.
3265 * f-lang.c (f_language_data): Likewise.
3266 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3267 default_pass_by_reference.
3268 * go-lang.c (go_language_data): Likewise.
3269 * language.c (language_pass_by_reference): Update.
3270 (default_pass_by_reference): Delete.
3271 (unknown_language_data): Delete la_pass_by_reference
3272 initializer.
3273 (auto_language_data): Likewise.
3274 * language.h (struct language_data): Delete la_pass_by_reference
3275 field.
3276 (language_defn::pass_by_reference_info): New member function.
3277 (default_pass_by_reference): Delete declaration.
3278 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3279 initializer.
3280 * objc-lang.c (objc_language_data): Likewise.
3281 * opencl-lang.c (opencl_language_data): Likewise.
3282 * p-lang.c (pascal_language_data): Likewise.
3283 * rust-lang.c (rust_language_data): Likewise.
3284
3285 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3286
3287 * ada-lang.c (ada_read_var_value): Delete function, move
3288 implementation to...
3289 (ada_language::read_var_value): ...here.
3290 (ada_language_data): Delete la_read_var_value initializer.
3291 * c-lang.c (c_language_data): Likewise.
3292 (cplus_language_data): Likewise.
3293 (minimal_language_data): Likewise.
3294 * d-lang.c (d_language_data): Likewise.
3295 * f-lang.c (f_language_data): Likewise.
3296 * findvar.c (default_read_var_value): Rename to...
3297 (language_defn::read_var_value): ...this.
3298 * findvar.c (read_var_value): Update header comment, and change to
3299 call member function instead of function pointer.
3300 * go-lang.c (go_language_data): Likewise.
3301 * language.c (unknown_language_data): Delete la_read_var_value
3302 initializer.
3303 (auto_language_data): Likewise.
3304 * language.h (struct language_data): Delete la_read_var_value
3305 field.
3306 (language_defn::read_var_value): New member function.
3307 (default_read_var_value): Delete declaration.
3308 * m2-lang.c (m2_language_data): Delete la_read_var_value
3309 initializer.
3310 * objc-lang.c (objc_language_data): Likewise.
3311 * opencl-lang.c (opencl_language_data): Likewise.
3312 * p-lang.c (pascal_language_data): Likewise.
3313 * rust-lang.c (rust_language_data): Likewise.
3314 * value.h (default_read_var_value): Delete declaration.
3315
3316 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3317
3318 * ada-lang.c (ada_print_array_index): Delete function, move
3319 implementation to...
3320 (ada_language::print_array_index): ...here.
3321 (ada_language_data): Delete la_print_array_index initializer.
3322 * c-lang.c (c_language_data): Likewise.
3323 (cplus_language_data): Likewise.
3324 (minimal_language_data): Likewise.
3325 * d-lang.c (d_language_data): Likewise.
3326 * f-lang.c (f_language_data): Likewise.
3327 * go-lang.c (go_language_data): Likewise.
3328 * language.c (default_print_array_index): Delete function, move
3329 implementation to...
3330 (language_defn::print_array_index): ...here.
3331 (unknown_language_data): Delete la_print_array_index initializer.
3332 (auto_language_data): Likewise.
3333 * language.h (struct language_data): Delete la_print_array_index
3334 field.
3335 (language_defn::print_array_index): New member function.
3336 (LA_PRINT_ARRAY_INDEX): Update.
3337 (default_print_array_index): Delete declaration.
3338 * m2-lang.c (m2_language_data): Delete la_print_array_index
3339 initializer.
3340 * objc-lang.c (objc_language_data): Likewise.
3341 * opencl-lang.c (opencl_language_data): Likewise.
3342 * p-lang.c (pascal_language_data): Likewise.
3343 * rust-lang.c (rust_language_data): Likewise.
3344
3345 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3346
3347 * gdb/ada-lang.c (ada_language_defn): Convert to...
3348 (ada_language_data): ...this.
3349 (class ada_language): New class.
3350 (ada_language_defn): New static global.
3351 * gdb/c-lang.c (c_language_defn): Convert to...
3352 (c_language_data): ...this.
3353 (class c_language): New class.
3354 (c_language_defn): New static global.
3355 (cplus_language_defn): Convert to...
3356 (cplus_language_data): ...this.
3357 (class cplus_language): New class.
3358 (cplus_language_defn): New static global.
3359 (asm_language_defn): Convert to...
3360 (asm_language_data): ...this.
3361 (class asm_language): New class.
3362 (asm_language_defn): New static global.
3363 (minimal_language_defn): Convert to...
3364 (minimal_language_data): ...this.
3365 (class minimal_language): New class.
3366 (minimal_language_defn): New static global.
3367 * gdb/d-lang.c (d_language_defn): Convert to...
3368 (d_language_data): ...this.
3369 (class d_language): New class.
3370 (d_language_defn): New static global.
3371 * gdb/f-lang.c (f_language_defn): Convert to...
3372 (f_language_data): ...this.
3373 (class f_language): New class.
3374 (f_language_defn): New static global.
3375 * gdb/go-lang.c (go_language_defn): Convert to...
3376 (go_language_data): ...this.
3377 (class go_language): New class.
3378 (go_language_defn): New static global.
3379 * gdb/language.c (unknown_language_defn): Remove declaration.
3380 (current_language): Initialize to nullptr, real initialization is
3381 moved to _initialize_language.
3382 (languages): Delete global.
3383 (language_defn::languages): Define.
3384 (set_language_command): Use language_defn::languages.
3385 (set_language): Likewise.
3386 (range_error): Likewise.
3387 (language_enum): Likewise.
3388 (language_def): Likewise.
3389 (add_set_language_command): Use language_def::languages for the
3390 language list, and language_def to lookup language pointers.
3391 (skip_language_trampoline): Use language_defn::languages.
3392 (unknown_language_defn): Convert to...
3393 (unknown_language_data): ...this.
3394 (class unknown_language): New class.
3395 (unknown_language_defn): New static global.
3396 (auto_language_defn): Convert to...
3397 (auto_language_data): ...this.
3398 (class auto_language): New class.
3399 (auto_language_defn): New static global.
3400 (language_gdbarch_post_init): Use language_defn::languages.
3401 (_initialize_language): Initialize current_language.
3402 * gdb/language.h (struct language_defn): Rename to...
3403 (struct language_data): ...this.
3404 (struct language_defn): New.
3405 (auto_language_defn): Delete.
3406 (unknown_language_defn): Delete.
3407 (minimal_language_defn): Delete.
3408 (ada_language_defn): Delete.
3409 (asm_language_defn): Delete.
3410 (c_language_defn): Delete.
3411 (cplus_language_defn): Delete.
3412 (d_language_defn): Delete.
3413 (f_language_defn): Delete.
3414 (go_language_defn): Delete.
3415 (m2_language_defn): Delete.
3416 (objc_language_defn): Delete.
3417 (opencl_language_defn): Delete.
3418 (pascal_language_defn): Delete.
3419 (rust_language_defn): Delete.
3420 * gdb/m2-lang.c (m2_language_defn): Convert to...
3421 (m2_language_data): ...this.
3422 (class m2_language): New class.
3423 (m2_language_defn): New static global.
3424 * gdb/objc-lang.c (objc_language_defn): Convert to...
3425 (objc_language_data): ...this.
3426 (class objc_language): New class.
3427 (objc_language_defn): New static global.
3428 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3429 (opencl_language_data): ...this.
3430 (class opencl_language): New class.
3431 (opencl_language_defn): New static global.
3432 * gdb/p-lang.c (pascal_language_defn): Convert to...
3433 (pascal_language_data): ...this.
3434 (class pascal_language): New class.
3435 (pascal_language_defn): New static global.
3436 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3437 language pointer, update comment format.
3438 * gdb/rust-lang.c (rust_language_defn): Convert to...
3439 (rust_language_data): ...this.
3440 (class rust_language): New class.
3441 (rust_language_defn): New static global.
3442
3443 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3444
3445 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3446 member variable.
3447 <m_stmt_at_address>: New member variable.
3448 (lnp_state_machine::record_line): Don't record some lines, update
3449 tracking of is_stmt at the same address.
3450 (lnp_state_machine::lnp_state_machine): Initialise new member
3451 variables.
3452
3453 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3454
3455 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3456 "-include gnu-nat-mig.h".
3457 * gnu-nat-mig.h: New file.
3458 * gnu-nat.c: Include "gnu-nat-mig.h".
3459 (exc_server, msg_reply_server, notify_server,
3460 process_reply_server): Remove declarations.
3461
3462 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3463
3464 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3465 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3466 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3467 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3468 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3469 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3470 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3471 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3472 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3473 to gnu_nat_target class.
3474 * gnu-nat.c: Likewise.
3475 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3476 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3477 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3478 object.
3479 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3480 instead of `gnu_target'.
3481
3482 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3483
3484 * i386-gnu-tdep.c: Include "gdbcore.h"
3485 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3486 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3487 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3488 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3489 i386_gnu_sigcontext_addr): New functions
3490 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3491 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3492 tdep.
3493
3494 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3495
3496 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3497 before fork_inferior call. Avoid calling it if target_is_pushed returns
3498 true.
3499
3500 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3501
3502 * gnu-nat.h (gnu_target): New variable declaration.
3503 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3504 gnu_target.
3505 * gnu-nat.c (gnu_target): New variable.
3506 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3507 add_thread_silent, and add_thread calls.
3508 (gnu_nat_target::create_inferior): Pass gnu_target to
3509 add_thread_silent, thread_change_ptid call.
3510 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3511 call.
3512
3513 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3514
3515 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3516 (gnu_nat_target::find_memory_regions): Remove unused
3517 `old_address' variable.
3518
3519 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3520
3521 * gnu-nat.c: Include "gdbarch.h".
3522
3523 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3524
3525 * reply_mig_hack.awk (Error return): Cast function through
3526 void *, to bypass compiler function call check.
3527
3528 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3529
3530 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3531 $(srcdir)/reply_mig_hack.awk.
3532
3533 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3534
3535 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3536
3537 2020-05-30 Jonny Grant <jg@jguk.org>
3538
3539 * configure.ac (ACX_BUGURL): change bug URL to https.
3540
3541 2020-05-30 Pedro Alves <palves@redhat.com>
3542
3543 * cp-support.c (replace_typedefs_template): New.
3544 (replace_typedefs_qualified_name): Handle
3545 DEMANGLE_COMPONENT_TEMPLATE.
3546
3547 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3548
3549 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3550 dwarf2/index-cache.h, dwarf2/index-write.c,
3551 dwarf2/index-write.h, dwarf2/line-header.c,
3552 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3553 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3554 variables and fields from `dwarf2_per_objfile` to just
3555 `per_objfile` throughout.
3556
3557 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3558
3559 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3560 <push_dwarf_reg_entry_value>: Add comment.
3561
3562 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3563 Keith Seitz <keiths@redhat.com>
3564
3565 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3566 instead of PyEval_ReleaseLock.
3567 (class gdbpy_gil): Move to earlier in file.
3568 (finalize_python): Set gdb_python_initialized.
3569 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3570 when not initialized.
3571
3572 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3573
3574 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3575 <push_dwarf_reg_entry_value>: Remove assert. Override
3576 per_objfile with caller_per_objfile.
3577
3578 2020-05-28 Tom de Vries <tdevries@suse.de>
3579
3580 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3581 PR gold/15646 workaround to symbol kind "type".
3582
3583 2020-05-27 Tom Tromey <tromey@adacore.com>
3584
3585 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3586
3587 2020-05-27 Tom Tromey <tromey@adacore.com>
3588
3589 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3590 Use htab_find_with_hash.
3591 <add_abbrev>: Remove "abbrev_number" parameter.
3592 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3593 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3594 (hash_abbrev): Add comment.
3595 (abbrev_table::lookup_abbrev): Move to header file.
3596 (abbrev_table::read): Update.
3597
3598 2020-05-27 Tom Tromey <tromey@adacore.com>
3599
3600 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3601 method.
3602 <canonical_name>: New member.
3603 <raw_name>: Rename from "name".
3604 (partial_die_info): Initialize canonical_name.
3605 (scan_partial_symbols): Check raw_name.
3606 (partial_die_parent_scope, partial_die_full_name)
3607 (add_partial_symbol, add_partial_subprogram)
3608 (add_partial_enumeration, load_partial_dies): Use "name" method.
3609 (partial_die_info::name): New method.
3610 (partial_die_info::read, guess_partial_die_structure_name)
3611 (partial_die_info::fixup): Update.
3612
3613 2020-05-27 Tom Tromey <tromey@adacore.com>
3614
3615 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3616 <get_ref_die_offset>: Inline.
3617 <get_ref_die_offset_complaint>: New method.
3618 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3619 (attribute::get_ref_die_offset_complaint): Rename from
3620 get_ref_die_offset. Just issue complaint.
3621
3622 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3623
3624 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3625
3626 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3627
3628 * exec.c (exec_file_attach): Use errno value of first openp failure.
3629
3630 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3631
3632 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3633 Don't close thread handle.
3634
3635 2020-05-27 Tom Tromey <tom@tromey.com>
3636 Simon Marchi <simon.marchi@efficios.com>
3637
3638 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3639 shared_ptr.
3640 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3641 member.
3642 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3643 dwarf2_per_bfd_objfile_data_key>: New globals.
3644 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3645 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3646 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3647 shared.
3648 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3649 short-circuit when sharing.
3650 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3651 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3652
3653 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3654
3655 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3656 to...
3657 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3658 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3659
3660 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3661
3662 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3663 build_name_components, find_name_components_bounds>:
3664 Add per_objfile parameter.
3665 (struct mapped_index) <symbol_name_at>: Likewise.
3666 (struct mapped_debug_names): Remove constructor.
3667 <dwarf2_per_objfile>: Remove field.
3668 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3669 (mapped_index_base::find_name_components_bounds,
3670 mapped_index_base::build_name_components,
3671 dw2_expand_symtabs_matching_symbol): Likewise.
3672 (class mock_mapped_index) <symbol_name_at>: Likewise.
3673 (check_match): Likewise.
3674 (check_find_bounds_finds): Likewise.
3675 (test_mapped_index_find_name_component_bounds): Update.
3676 (CHECK_MATCH): Update.
3677 (dw2_expand_symtabs_matching): Update.
3678 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3679 per_objfile parameter.
3680 <find_vec_in_debug_names>: Likewise.
3681 <m_per_objfile>: New field.
3682 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3683 parameter.
3684 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3685 (dw2_debug_names_iterator::next): Update.
3686 (dw2_debug_names_lookup_symbol): Update.
3687 (dw2_debug_names_expand_symtabs_for_function): Update.
3688 (dw2_debug_names_map_matching_symbols): Update.
3689 (dw2_debug_names_expand_symtabs_matching): Update.
3690 (dwarf2_read_debug_names): Update.
3691
3692 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3693
3694 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3695 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3696 move to dwarf2_per_objfile.
3697 <read_in_chain>: Remove.
3698 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3699 remove_all_cus, age_comp_units>: New methods.
3700 <m_dwarf2_cus>: New member.
3701 (struct dwarf2_per_cu_data) <cu>: Remove.
3702 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3703 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3704 moved to methods of dwarf2_per_objfile.
3705 (dwarf2_clear_marks): Remove.
3706 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3707 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3708 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3709 (dwarf2_per_objfile::remove_all_cus): New.
3710 (class free_cached_comp_units) <~free_cached_comp_units>:
3711 Update.
3712 (load_cu): Update.
3713 (dw2_do_instantiate_symtab): Adjust.
3714 (fill_in_sig_entry_from_dwo_entry): Adjust.
3715 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3716 (cutu_reader::cutu_reader): Likewise.
3717 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3718 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3719 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3720 and dwarf2_per_objfile::age_comp_units.
3721 (load_partial_comp_unit): Update.
3722 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3723 (process_queue): Likewise.
3724 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3725 backlink.
3726 (dwarf2_read_addr_index): Likewise.
3727 (follow_die_offset): Likewise.
3728 (dwarf2_fetch_die_loc_sect_off): Likewise.
3729 (dwarf2_fetch_constant_bytes): Likewise.
3730 (dwarf2_fetch_die_type_sect_off): Likewise.
3731 (follow_die_sig_1): Likewise.
3732 (load_full_type_unit): Likewise.
3733 (read_signatured_type): Likewise.
3734 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3735 (dwarf2_cu::~dwarf2_cu): Remove.
3736 (dwarf2_per_objfile::get_cu): New.
3737 (dwarf2_per_objfile::set_cu): New.
3738 (age_cached_comp_units): Rename to...
3739 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3740 to std::unordered_map.
3741 (free_one_cached_comp_unit): Rename to...
3742 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3743 to std::unordered_map.
3744 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3745 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3746 a dwarf2_per_objfile in data.
3747 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3748 (dwarf2_clear_marks): Remove.
3749
3750 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3751
3752 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3753 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3754 (init_tu_and_read_dwo_dies): Likewise.
3755 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3756 (cutu_reader::cutu_reader): Likewise.
3757 (load_partial_comp_unit): Likewise.
3758 (process_psymtab_comp_unit): Update.
3759 (build_type_psymtabs_1): Update.
3760 (process_skeletonless_type_unit): Update.
3761 (load_full_comp_unit): Update.
3762 (find_partial_die): Update.
3763 (dwarf2_read_addr_index): Update.
3764 (read_signatured_type): Update.
3765
3766 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3767
3768 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3769 m_header_read_in>: New fields.
3770 <get_header>: New method.
3771 * dwarf2/read.c (per_cu_header_read_in): Remove.
3772 (dwarf2_per_cu_data::get_header): New.
3773 (dwarf2_per_cu_data::addr_size): Update.
3774 (dwarf2_per_cu_data::offset_size): Update.
3775 (dwarf2_per_cu_data::ref_addr_size): Update.
3776
3777 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3778
3779 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3780 (dw2_do_instantiate_symtab): Update.
3781 (queue_and_load_all_dwo_tus): Change parameter from
3782 dwarf2_per_cu_data to dwarf2_cu.
3783 (dwarf2_fetch_die_loc_sect_off): Update.
3784 (dwarf2_fetch_constant_bytes): Update.
3785 (dwarf2_fetch_die_type_sect_off): Update.
3786
3787 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3788
3789 * dwarf2/read.c (process_full_comp_unit,
3790 process_full_type_unit): Remove per_cu, per_objfile paramters.
3791 Add dwarf2_cu parameter.
3792 (process_queue): Update.
3793
3794 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3795
3796 * dwarf2/read.c (create_cu_from_index_list): Replace
3797 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3798 (create_cus_from_index_list): Likewise.
3799 (create_cus_from_index): Likewise.
3800 (create_signatured_type_table_from_index): Likewise.
3801 (create_cus_from_debug_names_list): Likewise.
3802 (create_cus_from_debug_names): Likewise.
3803 (dwarf2_read_gdb_index): Update.
3804 (dwarf2_read_debug_names): Update.
3805
3806 2020-05-27 Tom Tromey <tom@tromey.com>
3807 Simon Marchi <simon.marchi@efficios.com>
3808
3809 * dwarf2/read.h (struct dwarf2_per_objfile)
3810 <get_type_for_signatured_type, set_type_for_signatured_type>:
3811 New methods.
3812 <m_type_map>: New member.
3813 (struct signatured_type) <type>: Remove.
3814 * dwarf2/read.c
3815 (dwarf2_per_objfile::get_type_for_signatured_type,
3816 dwarf2_per_objfile::set_type_for_signatured_type): New.
3817 (get_signatured_type): Use new methods.
3818
3819 2020-05-27 Tom Tromey <tom@tromey.com>
3820 Simon Marchi <simon.marchi@efficios.com>
3821
3822 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3823 (struct dwarf2_per_objfile) <type_units>: New member.
3824 <get_type_unit_group_unshareable>: New method.
3825 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3826 num_symtabs, symtabs>: Remove; move to
3827 type_unit_group_unshareable.
3828 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3829 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3830 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3831
3832 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3833
3834 * dwarf2/read.h (struct dwarf2_per_cu_data):
3835 <dwarf2_per_objfile>: Remove.
3836 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3837 dwarf2_per_objfile.
3838 (create_signatured_type_table_from_index): Likewise.
3839 (create_signatured_type_table_from_debug_names): Likewise.
3840 (create_debug_type_hash_table): Likewise.
3841 (fill_in_sig_entry_from_dwo_entry): Likewise.
3842 (create_type_unit_group): Likewise.
3843 (read_comp_units_from_section): Likewise.
3844 (create_cus_hash_table): Likewise.
3845
3846 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3847
3848 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3849 dwarf2_per_cu_data::dwarf2_per_objfile.
3850 (compute_compunit_symtab_includes): Likewise.
3851 (dwarf2_cu::start_symtab): Likewise.
3852
3853 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3854
3855 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3856 parameter.
3857 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3858 (read_namespace_alias): Update.
3859 (lookup_die_type): Update.
3860 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3861 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3862 Update.
3863 (disassemble_dwarf_expression): Update.
3864
3865 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3866
3867 * dwarf2/read.h (struct dwarf2_queue_item): Add
3868 dwarf2_per_objfile parameter, assign new parameter.
3869 <per_objfile>: New field.
3870 * dwarf2/read.c (free_one_cached_comp_unit): Add
3871 dwarf2_per_objfile parameter.
3872 (queue_comp_unit): Likewise.
3873 (dw2_do_instantiate_symtab): Update.
3874 (process_psymtab_comp_unit): Update.
3875 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3876 (process_imported_unit_die): Update.
3877 (queue_and_load_dwo_tu): Update.
3878 (follow_die_offset): Update.
3879 (follow_die_sig_1): Update.
3880
3881 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3882
3883 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3884 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3885 (read_call_site_scope): Assign per_objfile.
3886 (dwarf2_per_cu_data::objfile): Remove.
3887 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3888 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3889 dwarf2_per_objfile parameter.
3890 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3891 dwarf2_per_objfile parameter.
3892 (dwarf_expr_reg_to_entry_parameter): Add output
3893 dwarf2_per_objfile parameter.
3894 (locexpr_get_frame_base): Update.
3895 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3896 <push_dwarf_reg_entry_value>: Update.
3897 <call_site_to_target_addr>: Update.
3898 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3899 parameter.
3900 (value_of_dwarf_reg_entry): Update.
3901 (rw_pieced_value): Update.
3902 (indirect_synthetic_pointer): Update.
3903 (dwarf2_evaluate_property): Update.
3904 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3905 parameter.
3906 (locexpr_read_variable): Update.
3907 (locexpr_get_symbol_read_needs): Update.
3908 (loclist_read_variable): Update.
3909
3910 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3911
3912 * dwarf2/read.h (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/read.c (dwarf2_fetch_die_loc_sect_off,
3917 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3918 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3919 parameter.
3920 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3921 sect_variable_value): Add dwarf2_per_objfile parameter.
3922 (class dwarf_evaluate_loc_desc) <dwarf_call,
3923 dwarf_variable_value>: Update.
3924 (fetch_const_value_from_synthetic_pointer): Add
3925 dwarf2_per_objfile parameter.
3926 (fetch_const_value_from_synthetic_pointer): Update.
3927 (coerced_pieced_ref): Update.
3928 (class symbol_needs_eval_context) <dwarf_call,
3929 dwarf_variable_value>: Update.
3930 (dwarf2_compile_expr_to_ax): Update.
3931
3932 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3933
3934 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3935 parameter.
3936 (dwarf2_evaluate_loc_desc_full): Update.
3937
3938 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3939
3940 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3941 parameter.
3942 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3943 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3944 dwarf2_per_objfile parameter.
3945 (decode_debug_loc_dwo_addresses): Likewise.
3946 (dwarf2_find_location_expression): Update.
3947 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3948 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3949 parameter.
3950 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3951 parameter.
3952 (locexpr_describe_location_1): Likewise.
3953 (locexpr_describe_location): Update.
3954
3955 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3956
3957 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3958 Remove.
3959 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3960 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3961 (dwarf2_compile_property_to_c): Update.
3962 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3963 use text offset from objfile.
3964 (locexpr_tracepoint_var_ref): Update.
3965 (locexpr_generate_c_location): Update.
3966 (loclist_describe_location): Update.
3967 (loclist_tracepoint_var_ref): Update.
3968 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3969 dwarf2_per_objfile parameter.
3970 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3971 use text offset from objfile.
3972 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3973
3974 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3975
3976 * dwarf2/expr.h (struct dwarf_expr_context)
3977 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3978 <offset>: Remove.
3979 <per_objfile>: New member.
3980 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3981 dwarf2_per_objfile parameter. Don't set offset, set
3982 per_objfile.
3983 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3984 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3985 a dwarf2_per_objfile object instead of an offset.
3986 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3987 constructor.
3988 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3989 to dwarf2_expr_executor constructor. Don't set offset.
3990 (dwarf2_fetch_cfa_info): Update.
3991 (struct dwarf2_frame_cache) <text_offset>: Remove.
3992 <per_objfile>: New field.
3993 (dwarf2_frame_cache): Update.
3994 (dwarf2_frame_prev_register): Update.
3995 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3996 <dwarf_evaluate_loc_desc>: Add constructor.
3997 (dwarf2_evaluate_loc_desc_full): Update.
3998 (dwarf2_locexpr_baton_eval): Update.
3999 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4000 Add constructor.
4001 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4002
4003 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4004
4005 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4006 addr_sized_int_type>: Move to dwarf2_cu.
4007 <int_type>: Move to dwarf2_per_objfile.
4008 (struct dwarf2_per_objfile) <int_type>: Move here.
4009 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4010 addr_sized_int_type>: Move here.
4011 (read_func_scope): Update.
4012 (read_array_type): Update.
4013 (read_tag_string_type): Update.
4014 (attr_to_dynamic_prop): Update.
4015 (dwarf2_per_cu_data::int_type): Rename to...
4016 (dwarf2_per_objfile::int_type): ... this.
4017 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4018 (dwarf2_cu::addr_sized_int_type): ... this.
4019 (read_subrange_type): Update.
4020 (dwarf2_per_cu_data::addr_type): Rename to...
4021 (dwarf2_cu::addr_type): ... this.
4022 (set_die_type): Update.
4023
4024 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4025
4026 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4027 data through per_cu->cu.
4028
4029 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4030
4031 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4032 dwarf2_per_cu_data parameter fo dwarf2_cu.
4033 (lookup_dwo_type_unit): Likewise.
4034 (read_cutu_die_from_dwo): Likewise.
4035 (lookup_dwo_unit): Likewise.
4036 (open_and_init_dwo_file): Likewise.
4037 (lookup_dwo_cutu): Likewise.
4038 (lookup_dwo_comp_unit): Likewise.
4039 (lookup_dwo_type_unit): Likewise.
4040 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4041 (cutu_reader::cutu_reader): Update.
4042
4043 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4044
4045 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4046 parameter.
4047 (process_full_type_unit): Likewise.
4048 (process_queue): Update.
4049
4050 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4051
4052 * dwarf2/read.c (recursively_compute_inclusions): Add
4053 dwarf2_per_objfile parameter.
4054 (compute_compunit_symtab_includes): Likewise.
4055 (process_cu_includes): Update.
4056
4057 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4058
4059 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4060 parameter.
4061 (create_type_unit_group): Update.
4062 (process_psymtab_comp_unit_reader): Update.
4063 (build_type_psymtabs_reader): Update.
4064
4065 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4066
4067 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4068 object through m_this_cu->cu.
4069
4070 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4071
4072 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4073 the info parameter.
4074 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4075
4076 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4077
4078 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4079 per_objfile parameter.
4080 (load_full_type_unit): Add per_objfile parameter.
4081 (read_signatured_type): Likewise.
4082 (load_full_comp_unit): Likewise.
4083 (load_cu): Likewise.
4084 (dw2_do_instantiate_symtab): Likewise.
4085 (dw2_get_file_names): Likewise.
4086 (dw2_map_symtabs_matching_filename): Update.
4087 (dw_expand_symtabs_matching_file_matcher): Update.
4088 (dw2_map_symbol_filenames): Update.
4089 (process_psymtab_comp_unit): Add per_objfile parameter.
4090 (build_type_psymtabs_1): Update.
4091 (process_skeletonless_type_unit): Update.
4092 (dwarf2_build_psymtabs_hard): Update.
4093 (load_partial_comp_unit): Add per_objfile parameter.
4094 (scan_partial_symbols): Update.
4095 (load_full_comp_unit): Add per_objfile parameter.
4096 (process_imported_unit_die): Update.
4097 (create_cus_hash_table): Update.
4098 (find_partial_die): Update.
4099 (dwarf2_read_addr_index): Update.
4100 (follow_die_offset): Update.
4101 (dwarf2_fetch_die_loc_sect_off): Update.
4102 (dwarf2_fetch_constant_bytes): Update.
4103 (dwarf2_fetch_die_type_sect_off): Update.
4104 (follow_die_sig_1): Update.
4105 (load_full_type_unit): Add per_objfile parameter.
4106 (read_signatured_type): Likewise.
4107
4108 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4109
4110 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4111 of objfile_name.
4112
4113 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4114
4115 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4116 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4117 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4118 field.
4119 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4120 (create_cus_from_index): Update.
4121 (dwarf2_read_gdb_index): Update.
4122 (create_cus_from_debug_names): Update.
4123 (dwarf2_read_debug_names): Update.
4124 (get_abbrev_section_for_cu): Update.
4125 (create_all_comp_units): Update.
4126 (read_attribute_value): Update.
4127 (get_debug_line_section): Update.
4128 * dwarf2/index-cache.c (index_cache::store): Update.
4129 * dwarf2/index-write.c (save_gdb_index_command): Update.
4130 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4131
4132 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4133
4134 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4135 member.
4136 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4137 dwarf2_per_cu_data::per_bfd.
4138 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4139 (create_type_unit_group): Likewise.
4140 (queue_comp_unit): Remove reference to
4141 per_cu->dwarf2_per_objfile.
4142 (maybe_queue_comp_unit): Likewise.
4143 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4144 (create_cus_hash_table): Assign new field.
4145
4146 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4147
4148 * dwarf2/read.c: Replace
4149 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4150 dwarf2_cu->per_objfile throughout.
4151
4152 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4153
4154 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4155 parameter, don't use per_cu->dwarf2_per_objfile.
4156 (dw2_instantiate_symtab): Likewise.
4157 (dw2_find_last_source_symtab): Update.
4158 (dw2_map_expand_apply): Update.
4159 (dw2_lookup_symbol): Update.
4160 (dw2_expand_symtabs_for_function): Update.
4161 (dw2_expand_all_symtabs): Update.
4162 (dw2_expand_symtabs_with_fullname): Update.
4163 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4164 don't use per_cu->dwarf2_per_objfile.
4165 (dw2_expand_marked_cus): Update.
4166 (dw2_find_pc_sect_compunit_symtab): Update.
4167 (dw2_debug_names_lookup_symbol): Update.
4168 (dw2_debug_names_expand_symtabs_for_function): Update.
4169 (dw2_debug_names_map_matching_symbols): Update.
4170 (dwarf2_psymtab::expand_psymtab): Update.
4171
4172 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4173
4174 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4175 <per_objfile>: New member.
4176 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4177 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4178 call to dwarf2_cu.
4179 (cutu_reader::cutu_reader): Update.
4180 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4181
4182 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4183
4184 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4185 struct dwarf2_per_objfile.
4186 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4187 dwarf2_per_bfd.
4188 * dwarf2/read.c (set_die_type): Update.
4189 (get_die_type_at_offset): Update.
4190
4191 2020-05-27 Tom Tromey <tom@tromey.com>
4192 Simon Marchi <simon.marchi@efficios.com>
4193
4194 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4195 method.
4196 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4197 get_symtab, set_symtab>: New methods.
4198 <m_symtabs>: New field.
4199 (struct dwarf2_psymtab): Derive from partial_symtab.
4200 <readin_p, get_compunit_symtab>: Declare methods.
4201 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4202 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4203 New methods.
4204 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4205 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4206 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4207 (dw2_symtab_iter_next, dw2_print_stats)
4208 (dw2_expand_symtabs_with_fullname)
4209 (dw2_expand_symtabs_matching_one)
4210 (dw_expand_symtabs_matching_file_matcher)
4211 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4212 (dw2_debug_names_iterator::next)
4213 (dw2_debug_names_map_matching_symbols)
4214 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4215 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4216 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4217 New methods.
4218 (get_compunit_symtab, process_full_comp_unit)
4219 (process_full_type_unit): Update.
4220 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4221
4222 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4223
4224 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4225 then introduce a new dwarf2_per_objfile type.
4226 <read_line_string>: Move to the new dwarf2_per_objfile type.
4227 <objfile>: Likewise.
4228 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4229 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4230 dwarf2_per_objfile->per_bfd.
4231 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4232 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4233 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4234 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4235 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4236 (dwarf2_per_objfile::locate_sections): Rename to...
4237 (dwarf2_per_bfd::locate_sections): ... this.
4238 (dwarf2_per_objfile::get_cutu): Rename to...
4239 (dwarf2_per_bfd::get_cutu): ... this.
4240 (dwarf2_per_objfile::get_cu): Rename to...
4241 (dwarf2_per_bfd::get_cu): ... this.
4242 (dwarf2_per_objfile::get_tu): Rename to...
4243 (dwarf2_per_bfd::get_tu): ... this.
4244 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4245 (dwarf2_per_bfd::allocate_per_cu): ... this.
4246 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4247 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4248 (get_gdb_index_contents_ftype): Change parameter from
4249 dwarf2_per_objfile to dwarf2_per_bfd.
4250 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4251 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4252
4253 2020-05-27 Tom Tromey <tom@tromey.com>
4254 Simon Marchi <simon.marchi@efficios.com>
4255
4256 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4257 (allocate_piece_closure): Set "per_objfile" member.
4258 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4259 (locexpr_describe_location, loclist_describe_location): Use new
4260 member.
4261 * dwarf2/read.c (read_call_site_scope)
4262 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4263 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4264 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4265 handle_data_member_location): Set per_objfile member.
4266 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4267 member.
4268 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4269
4270 2020-05-27 Tom Tromey <tom@tromey.com>
4271
4272 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4273 allocate_signatured_type>: Declare new methods.
4274 <m_num_psymtabs>: New member.
4275 (struct dwarf2_per_cu_data) <index>: New member.
4276 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4277 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4278 (create_cu_from_index_list): Use allocate_per_cu.
4279 (create_signatured_type_table_from_index)
4280 (create_signatured_type_table_from_debug_names)
4281 (create_debug_type_hash_table, add_type_unit)
4282 (read_comp_units_from_section): Use allocate_signatured_type.
4283
4284 2020-05-27 Tom Tromey <tom@tromey.com>
4285
4286 * psymtab.c (partial_map_expand_apply)
4287 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4288 (psym_lookup_global_symbol_language)
4289 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4290 (psym_print_stats, psym_expand_symtabs_for_function)
4291 (psym_map_symbol_filenames, psym_map_matching_symbols)
4292 (psym_expand_symtabs_matching)
4293 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4294 (maintenance_check_psymtabs): Update.
4295 * psympriv.h (struct partial_symtab) <readin_p,
4296 get_compunit_symtab>: Add objfile parameter.
4297 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4298 Likewise.
4299 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4300 get_compunit_symtab>: Likewise.
4301 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4302
4303 2020-05-27 Tom Tromey <tom@tromey.com>
4304
4305 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4306 member.
4307 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4308 (create_cu_from_index_list)
4309 (create_signatured_type_table_from_index)
4310 (create_signatured_type_table_from_debug_names)
4311 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4312 (dwarf2_create_include_psymtab)
4313 (create_debug_type_hash_table, add_type_unit)
4314 (create_type_unit_group, read_comp_units_from_section)
4315 (dwarf2_compute_name, create_cus_hash_table)
4316 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4317 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4318 obstack.
4319 (dw2_get_real_path): Likewise. Change argument to
4320 dwarf2_per_objfile.
4321
4322 2020-05-27 Luis Machado <luis.machado@linaro.org>
4323
4324 PR tdep/26000
4325 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4326 for ldrd (immediate).
4327
4328 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4329
4330 * command.h: Add comment giving the name of class_tui.
4331 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4332 create the fake command for the help for class_tui.
4333
4334 2020-05-26 Tom Tromey <tromey@adacore.com>
4335
4336 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4337 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4338 (val_atr): New function.
4339 (value_val_atr): Use it.
4340 * ada-valprint.c (print_optional_low_bound): Change low bound
4341 handling for enums.
4342 (val_print_packed_array_elements): Don't call discrete_position.
4343 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4344 discrete_position for enum types.
4345 * language.c (default_print_array_index): Change type.
4346 * language.h (struct language_defn) <la_print_array_index>: Add
4347 index_type parameter, change type of index_value.
4348 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4349 (default_print_array_index): Update.
4350 * valprint.c (maybe_print_array_index): Don't call
4351 value_from_longest. Update.
4352 (value_print_array_elements): Don't call discrete_position.
4353
4354 2020-05-26 Tom Tromey <tromey@adacore.com>
4355
4356 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4357 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4358
4359 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4360
4361 PR gdb/13519
4362 * avr-tdep.c (avr_integer_to_address): Return data or code
4363 address accordingly to the second 'type' argument of the
4364 function.
4365
4366 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4367
4368 * infcmd.c, inferior.h: (construct_inferior_arguments):
4369 Moved function from here to gdbsupport/common-inferior.{h,cc}
4370
4371 2020-05-23 Tom Tromey <tom@tromey.com>
4372
4373 Revert commit eca1f90c:
4374 * NEWS: Remove entry for completion styling.
4375 * completer.c (_rl_completion_prefix_display_length): Move
4376 declaration later.
4377 (gdb_fnprint): Revert.
4378 (gdb_display_match_list_1): Likewise.
4379 * cli/cli-style.c (completion_prefix_style)
4380 (completion_difference_style, completion_suffix_style): Remove.
4381 (_initialize_cli_style): Revert.
4382 * cli/cli-style.h (completion_prefix_style)
4383 (completion_difference_style, completion_suffix_style): Don't
4384 declare.
4385
4386 2020-05-24 Pedro Alves <palves@redhat.com>
4387
4388 * symtab.c (completion_list_add_name): Return boolean indication
4389 of whether the symbol matched.
4390 (completion_list_add_symbol): Don't try to remove C++ aliases if
4391 the symbol didn't match in the first place.
4392 * symtab.h (completion_list_add_name): Return bool.
4393
4394 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4395
4396 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4397 type::field.
4398
4399 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4400
4401 GDB 9.2 released.
4402
4403 2020-05-23 Tom Tromey <tom@tromey.com>
4404
4405 * NEWS: Add entry for completion styling.
4406 * completer.c (_rl_completion_prefix_display_length): Move
4407 declaration earlier.
4408 (gdb_fnprint): Use completion_style.
4409 (gdb_display_match_list_1): Likewise.
4410 * cli/cli-style.c (completion_prefix_style)
4411 (completion_difference_style, completion_suffix_style): New
4412 globals.
4413 (_initialize_cli_style): Register new globals.
4414 * cli/cli-style.h (completion_prefix_style)
4415 (completion_difference_style, completion_suffix_style): Declare.
4416
4417 2020-05-23 Pedro Alves <palves@redhat.com>
4418
4419 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4420 (parse_escape): Use ISDIGIT instead of isdigit.
4421 (puts_debug): Use gdb_isprint instead of isprint.
4422 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4423 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4424 ISSPACE instead of isspace.
4425 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4426 instead of isspace.
4427 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4428 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4429 instead of isxdigit and ISDIGIT instead of isdigit.
4430
4431 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4432
4433 * gdbtypes.h (struct type) <field>: New method.
4434 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4435 or type::field.
4436
4437 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4438
4439 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4440 (TYPE_FIELDS): Use type::fields. Change all call sites that
4441 modify the propery to use type::set_fields instead.
4442
4443 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4444
4445 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4446 type::num_fields instead.
4447
4448 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4449
4450 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4451 methods.
4452 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4453 that modify the number of fields to use type::set_num_fields
4454 instead.
4455
4456 2020-05-22 Tom Tromey <tromey@adacore.com>
4457
4458 * compile/compile-object-load.h (munmap_list_free): Don't
4459 declare.
4460
4461 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4462
4463 * annotate.c (annotate_source_line): Update return type, add call
4464 to update current symtab and line.
4465 * annotate.h (annotate_source_line): Update return type, and
4466 extend header comment.
4467 * source.c (info_line_command): Check annotation_level before
4468 calling annotate_source_line.
4469 * stack.c (print_frame_info): If calling annotate_source_line
4470 returns true, then don't print any other source line information.
4471
4472 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4473
4474 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4475
4476 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4477
4478 * coffread.c (patch_type): Remove NULL check before xfree.
4479 * corefile.c (set_gnutarget): Likewise.
4480 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4481 * exec.c (build_section_table): Likewise.
4482 * remote.c (remote_target::pass_signals): Likewise.
4483 * utils.c (n_spaces): Likewise.
4484 * cli/cli-script.c (document_command): Likewise.
4485 * i386-windows-tdep.c (core_process_module_section): Likewise.
4486 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4487
4488 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4489
4490 * symfile.c (reread_symbols): Clear objfile's section_offsets
4491 vector and section indices, re-compute them by calling
4492 sym_offsets.
4493
4494 2020-05-20 Tom Tromey <tromey@adacore.com>
4495
4496 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4497 (desc_one_bound, desc_index_type): Compute field name.
4498
4499 2020-05-20 Tom de Vries <tdevries@suse.de>
4500
4501 PR symtab/25833
4502 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4503
4504 2020-05-20 Alan Modra <amodra@gmail.com>
4505
4506 PR 25993
4507 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4508 bfd_set_filename.
4509 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4510 passed to bfd_set_filename.
4511 * symfile-mem.c (add_vsyscall_page): Likewise for string
4512 passed to symbol_file_add_from_memory.
4513 (symbol_file_add_from_memory): Make name param a const char* and
4514 don't strdup.
4515
4516 2020-05-20 Alan Modra <amodra@gmail.com>
4517
4518 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4519 rather than accessing bfd->filename directly.
4520 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4521 and use bfd_section_name.
4522 * dwarf2/frame.c (decode_frame_entry): Likewise.
4523 * exec.c (exec_set_section_address): Likewise.
4524 * solib-aix.c (solib_aix_bfd_open): Likewise.
4525 * stap-probe.c (get_stap_base_address): Likewise.
4526 * symfile.c (reread_symbols): Likewise.
4527
4528 2020-05-19 Tom Tromey <tromey@adacore.com>
4529
4530 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4531
4532 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4533
4534 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4535
4536 2020-05-19 Pedro Alves <palves@redhat.com>
4537
4538 * NEWS (set exec-file-mismatch): Adjust entry.
4539 * exec.c: Include "build-id.h".
4540 (validate_exec_file): Try to match build IDs instead of filenames.
4541 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4542 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4543 and pass down 'warn_if_slow'.
4544 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4545 gdb_bfd_open_closure to pass it down.
4546 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4547
4548 2020-05-19 Pedro Alves <palves@redhat.com>
4549
4550 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4551 * target.c (target_fileio_open_1): Rename to target_fileio_open
4552 and make extern. Use bool.
4553 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4554 (target_fileio_read_alloc_1): Adjust.
4555 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4556 (target_fileio_open_warn_if_slow): Delete declaration.
4557
4558 2020-05-19 Pedro Alves <palves@redhat.com>
4559
4560 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4561 Adjust all callers.
4562
4563 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4564
4565 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4566 whether disp is negative.
4567
4568 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4569
4570 * symfile.h (struct symfile_segment_data)
4571 <~symfile_segment_data>: Remove.
4572 <segment_info>: Change to std::vector.
4573 * symfile.c (default_symfile_segments): Update.
4574 * elfread.c (elf_symfile_segments): Update.
4575
4576 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4577
4578 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4579 <segments>: New.
4580 <segment_bases, segment_sizes>: Remove.
4581 * symfile.c (default_symfile_segments): Update.
4582 * elfread.c (elf_symfile_segments): Update.
4583 * remote.c (remote_target::get_offsets): Update.
4584 * solib-target.c (solib_target_relocate_section_addresses):
4585 Update.
4586
4587 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4588
4589 * symfile.h (struct symfile_segment_data): Initialize fields.
4590 <~symfile_segment_data>: Add.
4591 (symfile_segment_data_up): New.
4592 (struct sym_fns) <sym_segments>: Return a
4593 symfile_segment_data_up.
4594 (default_symfile_segments): Return a symfile_segment_data_up.
4595 (free_symfile_segment_data): Remove.
4596 (get_symfile_segment_data): Return a symfile_segment_data_up.
4597 * symfile.c (default_symfile_segments): Likewise.
4598 (get_symfile_segment_data): Likewise.
4599 (free_symfile_segment_data): Remove.
4600 (symfile_find_segment_sections): Update.
4601 * elfread.c (elf_symfile_segments): Return a
4602 symfile_segment_data_up.
4603 * remote.c (remote_target::get_offsets): Update.
4604 * solib-target.c (solib_target_relocate_section_addresses):
4605 Update.
4606 * symfile-debug.c (debug_sym_segments): Return a
4607 symfile_segment_data_up.
4608
4609 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4610
4611 PR build/25981
4612 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4613 Hardcode register numbers.
4614
4615 PR build/25981
4616 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4617 procfs_find_LDT_entry): Remove.
4618 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4619 procfs_find_LDT_entry): Remove.
4620 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4621 Remove.
4622
4623 2020-05-17 Pedro Alves <palves@redhat.com>
4624 Andrew Burgess <andrew.burgess@embecosm.com>
4625 Keno Fischer <keno@juliacomputing.com>
4626
4627 PR gdb/25741
4628 * breakpoint.c (build_target_condition_list): Update comments.
4629 (build_target_command_list): Update comments and skip matching
4630 locations.
4631 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4632 a separate function. Simplify "set breakpoint auto-hw off"
4633 handling.
4634 (insert_breakpoints): Update comment.
4635 (tracepoint_locations_match): New parameter. For breakpoints,
4636 compare location types too, if the caller wants to.
4637 (handle_automatic_hardware_breakpoints): New functions.
4638 (bp_location_is_less_than): Also sort by location type and
4639 hardware breakpoint length.
4640 (update_global_location_list): Handle "set breakpoint auto-hw on"
4641 here.
4642 (update_breakpoint_locations): Ask breakpoint_locations_match to
4643 ignore location types.
4644
4645 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4646
4647 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4648 type::name instead.
4649
4650 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4651
4652 * gdbtypes.h (struct type) <name, set_name>: New methods.
4653 (TYPE_CODE): Use type::name. Change all call sites used to set
4654 the name to use type::set_name instead.
4655
4656 2020-05-16 Tom Tromey <tom@tromey.com>
4657
4658 * top.c (quit_force): Update.
4659 * infrun.c (handle_no_resumed): Update.
4660 * top.h (all_uis): New function.
4661 (ALL_UIS): Remove.
4662
4663 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4664
4665 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4666
4667 2020-05-16 Pedro Alves <palves@redhat.com>
4668
4669 * ia64-linux-nat.c
4670 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4671 Declare method.
4672 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4673
4674 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4675
4676 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4677 (sparc64_adi_info): Likewise.
4678
4679 2020-05-15 Tom Tromey <tom@tromey.com>
4680
4681 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4682 block_objfile.
4683 (lookup_objfile_from_block): Remove.
4684 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4685 (lookup_global_symbol): Use block_objfile.
4686 * symtab.h (lookup_objfile_from_block): Don't declare.
4687 * printcmd.c (clear_dangling_display_expressions): Use
4688 block_objfile.
4689 * parse.c (operator_check_standard): Use block_objfile.
4690
4691 2020-05-15 Tom Tromey <tom@tromey.com>
4692
4693 * language.c (language_alloc_type_symbol): Set
4694 SYMBOL_SECTION.
4695 * symtab.c (initialize_objfile_symbol): Remove.
4696 (allocate_symbol): Remove.
4697 (allocate_template_symbol): Remove.
4698 * dwarf2/read.c (fixup_go_packaging): Use "new".
4699 (new_symbol): Use "new".
4700 (read_variable): Don't call initialize_objfile_symbol. Use
4701 "new".
4702 (read_func_scope): Use "new".
4703 * xcoffread.c (process_xcoff_symbol): Don't call
4704 initialize_objfile_symbol.
4705 (SYMBOL_DUP): Remove.
4706 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4707 "new".
4708 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4709 (allocate_template_symbol): Don't declare.
4710 (struct symbol): Add copy constructor. Change defaults.
4711 * jit.c (finalize_symtab): Use "new".
4712 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4713 Use "new".
4714 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4715 (common_block_end): Use "new".
4716 * mdebugread.c (parse_symbol): Use "new".
4717 (new_symbol): Likewise.
4718
4719 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4720
4721 * NEWS: Mention changes to help and apropos.
4722
4723 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4724
4725 * command.h (enum command_class): Improve comments, document
4726 that class_alias is for user-defined aliases, give the class
4727 name for each class, remove unused class_xdb.
4728 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4729 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4730 by a precise class.
4731 * infcmd.c (_initialize_infcmd): Likewise.
4732 * reverse.c (_initialize_reverse): Likewise.
4733 * stack.c (_initialize_stack): Likewise.
4734 * symfile.c (_initialize_symfile): Likewise.
4735 * tracepoint.c (_initialize_tracepoint): Likewise.
4736
4737 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4738
4739 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4740 when their aliased command is traversed.
4741 (help_cmd): Add fput_command_names_styled call to
4742 output command name and aliases when command has an alias.
4743
4744 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4745
4746 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4747 * cli/cli-decode.c (help_cmd_list): Declare as static,
4748 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4749 a command together with the command.
4750 (fput_command_name_styled, fput_command_names_styled): New functions.
4751 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4752 fput_command_name_styled.
4753 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4754 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4755
4756 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4757
4758 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4759 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4760 * command.h (cmd_show_list): Likewise.
4761 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4762 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4763
4764 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4765
4766 * unittests/command-def-selftests.c (traverse_command_structure):
4767 Verify all commands of a list have the same prefix command and
4768 that only the top cmdlist commands have a null prefix.
4769
4770 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4771
4772 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4773 as prefix, not one of its aliases.
4774 (set_cmd_prefix): Remove.
4775 (do_add_cmd): Centralize the setting of the prefix of a command, when
4776 command is defined after its full chain of prefix commands.
4777 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4778 (add_setshow_cmd_full): Likewise.
4779 (update_prefix_field_of_prefixed_commands): New function.
4780 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4781 update_prefix_field_of_prefixed_commands.
4782 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4783 addresses of remote_set_cmdlist and remote_show_cmdlist given
4784 as argument, not the address of an argument.
4785 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4786 * gdb/remote.c (_initialize_remote): Likewise.
4787
4788 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4789
4790 * cli/cli-cmds.c (alias_command): Check for an existing alias
4791 using lookup_cmd_composition, as valid_command_p is too strict
4792 and forbids aliases that are the prefix of an existing alias
4793 or command.
4794 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4795 command is properly recognised as a valid command.
4796
4797 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4798
4799 * unittests/help-doc-selftests.c: Rename to
4800 unittests/command-def-selftests.c
4801 * unittests/command-def-selftests.c (help_doc_tests): Update some
4802 comments.
4803 (command_structure_tests, traverse_command_structure): New namespace
4804 and function.
4805 (command_structure_invariants_tests): New function.
4806 (_initialize_command_def_selftests) Renamed from
4807 _initialize_help_doc_selftests, register command_structure_invariants
4808 selftest.
4809
4810 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4811
4812 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4813 an alias of 'show'.
4814
4815 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4816
4817 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4818 ada_is_fixed_point_type. Update all callers.
4819 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4820 all callers.
4821 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4822 Update all callers.
4823 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4824 print_fixed_point_type. Update all callers.
4825 * ada-valprint.c (ada_value_print_num): Replace call to
4826 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4827
4828 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4829
4830 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4831 processors.
4832 (cpu_supports_bts): Add CV_AMD case.
4833
4834 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4835 Simon Marchi <simon.marchi@efficios.com>
4836
4837 * infrun.c (stop_all_threads): Collect multiple wait events at
4838 each pass.
4839
4840 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4841
4842 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4843 type::code instead.
4844
4845 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4846
4847 * gdbtypes.h (struct type) <code, set_code>: New methods.
4848 (TYPE_CODE): Use type::code. Change all call sites used to set
4849 the code to use type::set_code instead.
4850
4851 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4852 Tom de Vries <tdevries@suse.de>
4853 Pedro Alves <palves@redhat.com>
4854
4855 PR threads/25478
4856 * infrun.c (stop_all_threads): Do NOT ignore
4857 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4858 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4859 received.
4860 (handle_no_resumed): Remove code handling a live inferior with no
4861 threads.
4862 * remote.c (has_single_non_exited_thread): New.
4863 (remote_target::update_thread_list): Do not delete a thread if is
4864 the last thread of the process.
4865 * thread.c (thread_select): Call delete_exited_threads instead of
4866 prune_threads.
4867
4868 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4869
4870 * infrun.c (stop_all_threads): Enable/disable thread events of all
4871 targets. Move a debug message denoting the end of the function
4872 into the SCOPED_EXIT block.
4873
4874 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4875
4876 * process-stratum-target.h: Include <set>.
4877 (all_non_exited_process_targets, switch_to_target_no_thread): New
4878 function declarations.
4879 * process-stratum-target.c (all_non_exited_process_targets)
4880 (switch_to_target_no_thread): New function implementations.
4881
4882 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4883
4884 * infrun.c (handle_inferior_event): Extract out a piece of code
4885 into...
4886 (mark_non_executing_threads): ...this new function.
4887
4888 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4889
4890 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4891 use.
4892
4893 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4894
4895 * regcache.c (regcache_read_pc_protected): New function
4896 implementation that returns 0 if the PC cannot read via
4897 'regcache_read_pc'.
4898 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4899 instead of 'regcache_read_pc'.
4900 (keep_going_pass_signal): Ditto.
4901
4902 2020-05-13 Tom Tromey <tromey@adacore.com>
4903
4904 * ada-lang.c (align_value): Remove.
4905 (ada_template_to_fixed_record_type_1): Use align_up.
4906
4907 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4908
4909 * async-event.c: Update the copyright year.
4910 * async-event.h: Update the copyright year.
4911
4912 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4913
4914 * objfiles.h (is_addr_in_objfile,
4915 shared_objfile_contains_address_p): Return bool.
4916 * objfile.c (is_addr_in_objfile,
4917 shared_objfile_contains_address_p): Return bool.
4918
4919 2020-05-11 Tom Tromey <tromey@adacore.com>
4920
4921 * cli/cli-cmds.c (info_command): Restore.
4922 (_initialize_cli_cmds): Use add_prefix_command for "info".
4923 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4924
4925 2020-05-11 Tom Tromey <tromey@adacore.com>
4926
4927 * ada-lang.c (ada_value_primitive_field): Now public.
4928 * ada-lang.h (ada_value_primitive_field): Declare.
4929 * ada-valprint.c (print_field_values): Use
4930 ada_value_primitive_field for wrapper fields.
4931
4932 2020-05-11 Tom de Vries <tdevries@suse.de>
4933
4934 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4935 MODULE_DOMAIN.
4936
4937 2020-05-11 Tom de Vries <tdevries@suse.de>
4938
4939 PR symtab/25941
4940 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4941 with length 0, if not gdb-produced.
4942 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4943
4944 2020-05-09 Tom de Vries <tdevries@suse.de>
4945
4946 PR gdb/25955
4947 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4948 calculation.
4949
4950 2020-05-09 Tom Tromey <tom@tromey.com>
4951
4952 * top.c (server_command): Now bool.
4953 * top.h (server_command): Now bool.
4954
4955 2020-05-08 Tom Tromey <tromey@adacore.com>
4956
4957 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4958 already being processed.
4959
4960 2020-05-08 Tom Tromey <tom@tromey.com>
4961
4962 * printcmd.c (struct display) <next>: Remove.
4963 <display>: New constructor.
4964 <exp_string>: Now a std::string.
4965 <enabled_p>: Now a bool.
4966 (display_number): Move definition earlier.
4967 (displays): Rename from display_chain. Now a std::vector.
4968 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4969 (display_command): Update.
4970 (do_one_display, disable_display)
4971 (enable_disable_display_command, do_enable_disable_display):
4972 Update.
4973 (free_display): Remove.
4974 (clear_displays): Rewrite.
4975 (delete_display): Update.
4976 (map_display_numbers): Use function_view. Remove "data"
4977 parameter. Update.
4978 (do_delete_display): Remove.
4979 (undisplay_command): Update.
4980 (do_one_display, do_displays, disable_display)
4981 (info_display_command): Update.
4982 (do_enable_disable_display): Remove.
4983 (enable_disable_display_command)
4984 (clear_dangling_display_expressions): Update.
4985
4986 2020-05-08 Tom Tromey <tom@tromey.com>
4987
4988 * symtab.c (set_symbol_cache_size)
4989 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4990 (maintenance_print_symbol_cache_statistics): Update.
4991 * symmisc.c (print_symbol_bcache_statistics)
4992 (print_objfile_statistics, maintenance_print_objfiles)
4993 (maintenance_info_symtabs, maintenance_check_symtabs)
4994 (maintenance_expand_symtabs, maintenance_info_line_tables):
4995 Update.
4996 * symfile-debug.c (set_debug_symfile): Update.
4997 * source.c (forget_cached_source_info): Update.
4998 * python/python.c (gdbpy_progspaces): Update.
4999 * psymtab.c (maintenance_info_psymtabs): Update.
5000 * probe.c (parse_probes): Update.
5001 * linespec.c (iterate_over_all_matching_symtabs)
5002 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5003 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5004 * exec.c (exec_target::close): Update.
5005 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5006 * breakpoint.c (print_one_breakpoint_location)
5007 (create_longjmp_master_breakpoint)
5008 (create_std_terminate_master_breakpoint): Update.
5009 * progspace.c (program_spaces): Now a std::vector.
5010 (maybe_new_address_space): Update.
5011 (add_program_space): Remove.
5012 (program_space::program_space): Update.
5013 (remove_program_space): Update.
5014 (number_of_program_spaces): Remove.
5015 (print_program_space, update_address_spaces): Update.
5016 * progspace.h (program_spaces): Change type.
5017 (ALL_PSPACES): Remove.
5018 (number_of_program_spaces): Don't declare.
5019 (struct program_space) <next>: Remove.
5020
5021 2020-05-08 Tom Tromey <tom@tromey.com>
5022
5023 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5024 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5025 (enable_break): Update.
5026 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5027 (frv_fdpic_find_canonical_descriptor): Update.
5028 (frv_fetch_objfile_link_map): Update.
5029 * progspace.c (program_space::free_all_objfiles): Update.
5030 (program_space::solibs): New method.
5031 * progspace.h (struct program_space) <solibs>: New method.
5032 * solist.h (master_so_list): Don't declare.
5033 (ALL_SO_LIBS): Remove.
5034 * solib.h (so_list_head): Remove.
5035 (update_solib_list): Update comment.
5036 * solib.c (master_so_list): Remove.
5037 (solib_used, update_solib_list, solib_add)
5038 (info_sharedlibrary_command, clear_solib)
5039 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5040
5041 2020-05-08 Tom Tromey <tom@tromey.com>
5042
5043 * extension.c (extension_languages): Now a std::array.
5044 (ALL_EXTENSION_LANGUAGES): Remove.
5045 (get_ext_lang_defn, get_ext_lang_of_file)
5046 (eval_ext_lang_from_control_command): Update.
5047 (finish_ext_lang_initialization)
5048 (auto_load_ext_lang_scripts_for_objfile)
5049 (ext_lang_type_printers::ext_lang_type_printers)
5050 (apply_ext_lang_type_printers)
5051 (ext_lang_type_printers::~ext_lang_type_printers)
5052 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5053 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5054 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5055 (get_matching_xmethod_workers, ext_lang_colorize)
5056 (ext_lang_before_prompt): Update.
5057 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5058
5059 2020-05-08 Tom Tromey <tom@tromey.com>
5060
5061 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5062 overload.
5063 <swap_string, m_string>: Remove.
5064 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5065 Update.
5066 * stabsread.c (define_symbol, read_type): Update.
5067 * linespec.c (find_linespec_symbols): Update.
5068 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5069 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5070 * dbxread.c (read_dbx_symtab): Update.
5071 * cp-support.h (cp_canonicalize_string_full)
5072 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5073 Return unique_xmalloc_ptr.
5074 * cp-support.c (inspect_type): Update.
5075 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5076 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5077 Likewise.
5078 * c-typeprint.c (print_name_maybe_canonical): Update.
5079 * break-catch-throw.c (check_status_exception_catchpoint):
5080 Update.
5081
5082 2020-05-08 Tom de Vries <tdevries@suse.de>
5083
5084 * infrun.c (follow_fork): Copy current_line and current_symtab to
5085 child thread.
5086
5087 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5088
5089 * async-event.c (struct async_signal_handler, struct
5090 async_event_handler): Reformat, remove typedef.
5091
5092 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5093
5094 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5095 access thistype->main_type->dyn_prop_list directly.
5096
5097 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5098
5099 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5100 (remove_dyn_prop): Remove. Update all users to use
5101 type::remove_dyn_prop.
5102 * gdbtypes.c (remove_dyn_prop): Rename to...
5103 (type::remove_dyn_prop): ... this.
5104
5105 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5106
5107 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5108 (add_dyn_prop): Remove. Update all users to use
5109 type::add_dyn_prop.
5110 * gdbtypes.c (add_dyn_prop): Rename to...
5111 (type::add_dyn_prop): ... this.
5112
5113 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5114
5115 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5116 (get_dyn_prop): Remove. Update all users to use
5117 type::dyn_prop.
5118 * gdbtypes.c (get_dyn_prop): Rename to...
5119 (type::dyn_prop): ... this.
5120
5121 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5122
5123 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5124
5125 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5126
5127 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5128 instruction, skip it if it's there.
5129
5130 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5131
5132 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5133
5134 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5135
5136 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5137 * gdbtypes.c (recursive_dump_type): Remove use of
5138 TYPE_INCOMPLETE.
5139
5140 2020-05-03 Tom Tromey <tom@tromey.com>
5141
5142 * breakpoint.c (catch_command, tcatch_command): Remove.
5143 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5144 add_show_prefix_cmd.
5145 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5146 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5147 Remove.
5148 (add_internal_problem_command): Use add_basic_prefix_cmd,
5149 add_show_prefix_cmd.
5150 * mips-tdep.c (set_mipsfpu_command): Remove.
5151 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5152 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5153 (_initialize_index_cache): Use add_basic_prefix_cmd.
5154 * memattr.c (dummy_cmd): Remove.
5155 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5156 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5157 (_initialize_tui_win): Use add_basic_prefix_cmd,
5158 add_show_prefix_cmd.
5159 * cli/cli-logging.c (set_logging_command): Remove.
5160 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5161 add_show_prefix_cmd.
5162 (show_logging_command): Remove.
5163 * target.c (target_command): Remove.
5164 (add_target): Use add_basic_prefix_cmd.
5165
5166 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5167
5168 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5169
5170 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5171
5172 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5173 info_command.
5174
5175 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5176
5177 * nbsd-nat.c (nbsd_enable_proc_events)
5178 (nbsd_nat_target::post_startup_inferior): Add.
5179 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5180 (nbsd_nat_target::update_thread_list): Rewrite.
5181 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5182 "PTRACE_LWP_CREATE".
5183 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5184
5185 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5186
5187 * stack.c (_initialize_stack): Remove duplicated creation
5188 of "frame" command and "f" alias.
5189
5190 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5191
5192 PR gdb/18706
5193 * gdbtypes.c (check_typedef): Calculate size of array of
5194 stubbed type.
5195
5196 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5197
5198 PR gdb/15559
5199 * i386-tdep.c (i386_push_dummy_call): Call
5200 i386_thiscall_push_dummy_call.
5201 (i386_thiscall_push_dummy_call): New function.
5202 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5203 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5204 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5205
5206 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5207
5208 * gdbarch.sh (do_read): Add shellcheck disable directive for
5209 warning SC2162.
5210
5211 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5212
5213 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5214 "referenced but not assigned" warning.
5215
5216 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5217
5218 * gdbarch.sh: Remove code that sets fallbackdefault.
5219
5220 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5221
5222 * gdbarch.sh: Use shell operators && and || instead of
5223 -a and -o.
5224
5225 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5226
5227 * gdbarch.sh: Use $(...) instead of `...`.
5228
5229 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5230
5231 * gdbarch.sh: Use double quotes around variables.
5232
5233 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5234
5235 * gdbarch.sh: Use %s with printf, instead of variables in the
5236 format string.
5237
5238 2020-04-29 Tom Tromey <tromey@adacore.com>
5239
5240 PR ada/25875:
5241 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5242 type fields here.
5243 (read_enumeration_type): Call
5244 update_enumeration_type_from_children later. Update comments.
5245 (process_enumeration_scope): Don't create type fields.
5246
5247 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5248
5249 * nbsd-tdep.c: Include "xml-syscall.h".
5250 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5251
5252 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5253
5254 * nbsd-nat.c: Include "sys/wait.h".
5255 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5256 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5257 (nbsd_nat_target::remove_exec_catchpoint)
5258 (nbsd_nat_target::set_syscall_catchpoint): Add.
5259 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5260 (nbsd_nat_target::insert_exec_catchpoint)
5261 (nbsd_nat_target::remove_exec_catchpoint)
5262 (nbsd_nat_target::set_syscall_catchpoint): Add.
5263 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5264 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5265 `nbsd_get_syscall_number'.
5266
5267 2020-04-29 Tom Tromey <tom@tromey.com>
5268
5269 * stack.c (print_block_frame_labels): Remove.
5270
5271 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5272
5273 PR gdb/17320
5274 * ada-valprint.c (val_print_packed_array_elements): Move array
5275 end bracket to new line.
5276 (ada_val_print_string): Remove extra spaces before first array
5277 element.
5278 * c-valprint.c (c_value_print_array): Likewise.
5279 * m2-valprint.c (m2_print_array_contents): Likewise.
5280 (m2_value_print_inner): Likewise.
5281 * p-valprint.c (pascal_value_print_inner): Likewise.
5282 * valprint.c (generic_val_print_array): Likewise.
5283 (value_print_array_elements): Move first array element and array
5284 end bracket to new line.
5285
5286 2020-04-29 Tom de Vries <tdevries@suse.de>
5287
5288 PR symtab/25889
5289 * linespec.c (find_method): Fix ix calculation.
5290
5291 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5292
5293 * syscalls/update-netbsd.sh: New file.
5294 * syscalls/netbsd.xml: Regenerate.
5295 * data-directory/Makefile.in: Register `netbsd.xml' in
5296 `SYSCALLS_FILES'.
5297
5298 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5299
5300 * syscalls/update-freebsd.sh: Add double quotes.
5301
5302 2020-04-28 Tom Tromey <tom@tromey.com>
5303
5304 * NEWS: Update.
5305 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5306 (cmdpy_init): Allow class_tui.
5307
5308 2020-04-28 Mark Williams <mark@myosotissp.com>
5309
5310 PR gdb/24480
5311 * dwarf2read.c: Add missing assingments to list_in_scope when
5312 start_symtab was already called.
5313
5314 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5315
5316 PR gdb/25881
5317 * dwarf2/read.c (offset_map_type): Use
5318 gdb:hash_enum<sect_offset> as hash function.
5319
5320 2020-04-28 Tom de Vries <tdevries@suse.de>
5321
5322 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5323 with DW_AT_signature.
5324
5325 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5326
5327 * configure.ac: Remove check for fs_base/gs_base in
5328 user_regs_struct.
5329 * configure: Re-generate.
5330 * config.in: Re-generate.
5331 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5332 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5333 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5334
5335 2020-04-27 Luis Machado <luis.machado@linaro.org>
5336
5337 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5338 problematic inline frame unwinding situation.
5339 * frame.c (frame_id_computed_p): New function.
5340 * frame.h (frame_id_computed_p): New prototype.
5341
5342 2020-04-26 Tom Tromey <tom@tromey.com>
5343
5344 * command.h (enum command_class) <class_pseudo>: Remove.
5345
5346 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5347
5348 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5349 and whitespace.
5350
5351 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5352
5353 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5354 `PT_GET_PROCESS_STATE' block.
5355
5356 2020-04-24 Tom Tromey <tom@tromey.com>
5357
5358 * symtab.h (symbol_get_demangled_name): Don't declare.
5359 * symtab.c (symbol_get_demangled_name): Remove.
5360 (general_symbol_info::natural_name)
5361 (general_symbol_info::demangled_name): Update.
5362
5363 2020-04-24 Tom Tromey <tom@tromey.com>
5364
5365 PR rust/25025:
5366 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5367
5368 2020-04-24 Tom Tromey <tom@tromey.com>
5369
5370 PR symtab/12707:
5371 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5372 exists.
5373 (new_symbol): Likewise.
5374 * compile/compile-object-load.c (get_out_value_type): Use
5375 symbol_matches_search_name.
5376
5377 2020-04-24 Tom Tromey <tom@tromey.com>
5378
5379 * dwarf2/read.c (add_partial_symbol): Do not call
5380 compute_and_set_names.
5381
5382 2020-04-24 Tom Tromey <tom@tromey.com>
5383
5384 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5385 overload.
5386
5387 2020-04-24 Tom Tromey <tom@tromey.com>
5388
5389 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5390 (add_psymbol_to_list): New overload. Make old overload call new
5391 one.
5392 * psympriv.h (add_psymbol_to_list): New overload.
5393
5394 2020-04-24 Tom Tromey <tom@tromey.com>
5395
5396 * dwarf2/read.c (partial_die_info::read) <case
5397 DW_AT_linkage_name>: Use value_as_string.
5398 (dwarf2_string_attr): Use value_as_string.
5399 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5400 method.
5401 * dwarf2/attribute.c (attribute::value_as_string): New method.
5402
5403 2020-04-24 Tom Tromey <tom@tromey.com>
5404
5405 * symtab.c (general_symbol_info::natural_name)
5406 (general_symbol_info::demangled_name): Check for language_rust.
5407
5408 2020-04-24 Tom Tromey <tom@tromey.com>
5409
5410 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5411 (dwarf2_physname): ... from here.
5412 (partial_die_info::read): Add Rust "{" hack.
5413
5414 2020-04-24 Tom Tromey <tom@tromey.com>
5415
5416 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5417 method.
5418 (symbol_set_demangled_name): Don't declare.
5419 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5420 symbol_set_demangled_name.
5421 (general_symbol_info::set_language)
5422 (general_symbol_info::compute_and_set_names): Update.
5423 * minsyms.c (minimal_symbol_reader::install): Update.
5424 * dwarf2/read.c (new_symbol): Update.
5425
5426 2020-04-24 Tom Tromey <tromey@adacore.com>
5427
5428 PR python/23662:
5429 * python/py-type.c (convert_field): Handle
5430 FIELD_LOC_KIND_DWARF_BLOCK.
5431 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5432 (typy_get_dynamic): Nw function.
5433 (type_object_getset): Add "dynamic".
5434 * NEWS: Add entry.
5435
5436 2020-04-24 Tom Tromey <tromey@adacore.com>
5437
5438 * ada-typeprint.c (print_choices, print_variant_part)
5439 (print_record_field_types_dynamic): New functions.
5440 (print_record_field_types): Use print_record_field_types_dynamic.
5441
5442 2020-04-24 Tom Tromey <tromey@adacore.com>
5443
5444 * dwarf2/read.c (handle_data_member_location): New overload.
5445 (dwarf2_add_field): Use it.
5446 (decode_locdesc): Add "computed" parameter. Update comment.
5447 * gdbtypes.c (is_dynamic_type_internal): Also look for
5448 FIELD_LOC_KIND_DWARF_BLOCK.
5449 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5450 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5451 virtual base classes.
5452 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5453 FIELD_LOC_KIND_DWARF_BLOCK.
5454
5455 2020-04-24 Tom Tromey <tromey@adacore.com>
5456
5457 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5458 * gdbtypes.c (is_dynamic_type_internal): Check
5459 TYPE_HAS_DYNAMIC_LENGTH.
5460 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5461 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5462 New macros.
5463 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5464 constant.
5465
5466 2020-04-24 Tom Tromey <tromey@adacore.com>
5467
5468 * dwarf2/read.c (struct variant_field): Rewrite.
5469 (struct variant_part_builder): New.
5470 (struct nextfield): Remove "variant" field. Add "offset".
5471 (struct field_info): Add "current_variant_part" and
5472 "variant_parts".
5473 (alloc_discriminant_info): Remove.
5474 (alloc_rust_variant): New function.
5475 (quirk_rust_enum): Update.
5476 (dwarf2_add_field): Set "offset" member. Don't handle
5477 DW_TAG_variant_part.
5478 (offset_map_type): New typedef.
5479 (convert_variant_range, create_one_variant)
5480 (create_one_variant_part, create_variant_parts)
5481 (add_variant_property): New functions.
5482 (dwarf2_attach_fields_to_type): Call add_variant_property.
5483 (read_structure_type): Don't handle DW_TAG_variant_part.
5484 (handle_variant_part, handle_variant): New functions.
5485 (handle_struct_member_die): Use them.
5486 (process_structure_scope): Don't handle variant parts.
5487 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5488 (struct discriminant_info): Remove.
5489 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5490 (struct main_type) <flag_discriminated_union>: Remove.
5491 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5492 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5493 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5494 Update.
5495 * valops.c (value_union_variant): Remove.
5496 * value.h (value_union_variant): Don't declare.
5497
5498 2020-04-24 Tom Tromey <tromey@adacore.com>
5499
5500 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5501 (ada_value_primitive_packed_val): Update.
5502 * ada-valprint.c (ada_value_print_1): Update.
5503 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5504 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5505 just an address. Use evaluate_for_locexpr_baton.
5506 (dwarf2_evaluate_property): Update.
5507 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5508 array_view.
5509 * findvar.c (default_read_var_value): Update.
5510 * gdbtypes.c (compute_variant_fields_inner)
5511 (resolve_dynamic_type_internal): Update.
5512 (resolve_dynamic_type): Change type of valaddr parameter.
5513 * gdbtypes.h (resolve_dynamic_type): Update.
5514 * valarith.c (value_subscripted_rvalue): Update.
5515 * value.c (value_from_contents_and_address): Update.
5516
5517 2020-04-24 Tom Tromey <tromey@adacore.com>
5518
5519 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5520 "push_initial_value" parameter.
5521 (dwarf2_evaluate_property): Likewise.
5522 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5523
5524 2020-04-24 Tom Tromey <tromey@adacore.com>
5525
5526 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5527 (variant::matches, compute_variant_fields_recurse)
5528 (compute_variant_fields_inner, compute_variant_fields): New
5529 functions.
5530 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5531 Use resolved_type after type is made.
5532 (operator==): Add new cases.
5533 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5534 (struct discriminant_range, struct variant, struct variant_part):
5535 New.
5536 (union dynamic_prop_data) <variant_parts, original_type>: New
5537 members.
5538 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5539 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5540 constants.
5541 * value.c (unpack_bits_as_long): Now public.
5542 * value.h (unpack_bits_as_long): Declare.
5543
5544 2020-04-24 Tom Tromey <tromey@adacore.com>
5545
5546 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5547 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5548
5549 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5550
5551 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5552
5553 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5554
5555 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5556 (remove_fork_catchpoint, post_startup_inferior)
5557 (post_attach): Move...
5558 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5559 (remove_fork_catchpoint, post_startup_inferior)
5560 (post_attach): ...here.
5561 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5562 (remove_fork_catchpoint, post_startup_inferior)
5563 (post_attach): Move...
5564 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5565 (remove_fork_catchpoint, post_startup_inferior)
5566 (post_attach): ...here.
5567
5568 2020-04-24 Tom Tromey <tromey@adacore.com>
5569
5570 * nat/windows-nat.h (struct windows_thread_info)
5571 <pc_adjusted>: New member.
5572 * windows-nat.c (windows_fetch_one_register): Check
5573 pc_adjusted.
5574 (windows_nat_target::get_windows_debug_event)
5575 (windows_nat_target::wait): Set pc_adjusted.
5576
5577 2020-04-24 Tom de Vries <tdevries@suse.de>
5578
5579 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5580 Run gdb-add-index inside temp dir.
5581
5582 2020-04-23 Tom Tromey <tromey@adacore.com>
5583
5584 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5585 in loop.
5586
5587 2020-04-23 Luis Machado <luis.machado@linaro.org>
5588
5589 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5590 get_frame_register instead of gdbarch_unwind_pc.
5591
5592 2020-04-23 Tom de Vries <tdevries@suse.de>
5593
5594 * symtab.c (lookup_global_symbol): Prefer def over decl.
5595
5596 2020-04-23 Tom de Vries <tdevries@suse.de>
5597
5598 PR symtab/25807
5599 * block.c (best_symbol, better_symbol): Promote to external.
5600 * block.h (best_symbol, better_symbol): Declare.
5601 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5602 decl.
5603
5604 2020-04-23 Tom Tromey <tromey@adacore.com>
5605
5606 PR ada/25837:
5607 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5608 "const char *", not a "const std::string &".
5609 <name_and_matcher::operator==>: Update.
5610 * unittests/lookup_name_info-selftests.c: Change type of
5611 "result".
5612
5613 2020-04-23 Tom Tromey <tom@tromey.com>
5614
5615 * inferior.h (iterate_over_inferiors): Don't declare.
5616 * inferior.c (iterate_over_inferiors): Remove.
5617 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5618 Remove.
5619 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5620 use iterate_over_inferiors.
5621 (darwin_resume_inferior_it)
5622 (struct resume_inferior_threads_param)
5623 (darwin_resume_inferior_threads_it): Remove.
5624 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5625
5626 2020-04-23 Tom de Vries <tdevries@suse.de>
5627
5628 * blockframe.c (find_pc_partial_function): Use
5629 find_pc_sect_compunit_symtab rather than
5630 objfile->sf->qf->find_pc_sect_compunit_symtab.
5631
5632 2020-04-22 Tom de Vries <tdevries@suse.de>
5633
5634 PR symtab/25764
5635 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5636 in psymtabs.
5637
5638 2020-04-22 Tom de Vries <tdevries@suse.de>
5639
5640 PR symtab/25801
5641 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5642 symtabs.
5643
5644 2020-04-22 Tom de Vries <tdevries@suse.de>
5645
5646 PR symtab/25700
5647 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5648 CU if already created.
5649
5650 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5651
5652 * infrun.c (displaced_step_fixup): Switch to the event_thread
5653 before calling displaced_step_restore, not after.
5654
5655 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5656
5657 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5658 its inferior is not recorded by us.
5659 (record_btrace_target_open): Replace call to
5660 all_non_exited_threads () with call to current_inferior
5661 ()->non_exited_threads ().
5662 (record_btrace_target::stop_recording): Likewise.
5663 (record_btrace_target::close): Likewise.
5664 (record_btrace_target::wait): Likewise.
5665 (record_btrace_target::record_stop_replaying): Likewise.
5666
5667 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5668
5669 * btrace.c (btrace_enable): Throw an error on double enables and
5670 when enabling recording fails.
5671 (btrace_disable): Throw an error if the thread is not recorded.
5672
5673 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5674
5675 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5676 request if we do not have a thread_info.
5677
5678 2020-04-21 Tom de Vries <tdevries@suse.de>
5679
5680 PR gdb/25471
5681 * thread.c
5682 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5683 exception in get_frame_id.
5684
5685 2020-04-20 Tom Tromey <tromey@adacore.com>
5686
5687 * python/python.c (struct gdbpy_event): Mark move constructor as
5688 noexcept.
5689 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5690 constructor as noexcept.
5691 * completer.h (struct completion_result): Mark move constructor as
5692 noexcept.
5693 * completer.c (completion_result::completion_result): Use
5694 initialization style. Don't call reset_match_list.
5695
5696 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5697
5698 * MAINTAINERS (Write After Approval): Add myself.
5699
5700 2020-04-18 Tom Tromey <tom@tromey.com>
5701
5702 * windows-tdep.c (init_w32_command_list)
5703 (w32_prefix_command_valid): Restore.
5704 (_initialize_windows_tdep): Call init_w32_command_list.
5705
5706 2020-04-18 Tom Tromey <tom@tromey.com>
5707
5708 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5709 * value.c (value_fn_field): Update.
5710 * valops.c (find_function_in_inferior)
5711 (value_allocate_space_in_inferior): Update.
5712 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5713 Update.
5714 * tui/tui-source.c (tui_source_window::set_contents): Update.
5715 * symtab.c (lookup_global_or_static_symbol)
5716 (find_function_start_sal_1, skip_prologue_sal)
5717 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5718 * symmisc.c (dump_msymbols, dump_symtab_1)
5719 (maintenance_print_one_line_table): Update.
5720 * symfile.c (init_entry_point_info, section_is_mapped)
5721 (list_overlays_command, simple_read_overlay_table)
5722 (simple_overlay_update_1): Update.
5723 * stap-probe.c (handle_stap_probe): Update.
5724 * stabsread.c (dbx_init_float_type, define_symbol)
5725 (read_one_struct_field, read_enum_type, read_range_type): Update.
5726 * source.c (info_line_command): Update.
5727 * python/python.c (gdbpy_source_objfile_script)
5728 (gdbpy_execute_objfile_script): Update.
5729 * python/py-type.c (save_objfile_types): Update.
5730 * python/py-objfile.c (py_free_objfile): Update.
5731 * python/py-inferior.c (python_new_objfile): Update.
5732 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5733 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5734 (maintenance_check_psymtabs): Update.
5735 * printcmd.c (info_address_command): Update.
5736 * objfiles.h (struct objfile) <arch>: New method, from
5737 get_objfile_arch.
5738 (get_objfile_arch): Don't declare.
5739 * objfiles.c (get_objfile_arch): Remove.
5740 (filter_overlapping_sections): Update.
5741 * minsyms.c (msymbol_is_function): Update.
5742 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5743 (output_nondebug_symbol): Update.
5744 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5745 (mdebug_expand_psymtab): Update.
5746 * machoread.c (macho_add_oso_symfile): Update.
5747 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5748 Update.
5749 * linux-fork.c (checkpoint_command): Update.
5750 * linespec.c (convert_linespec_to_sals): Update.
5751 * jit.c (finalize_symtab): Update.
5752 * infrun.c (insert_exception_resume_from_probe): Update.
5753 * ia64-tdep.c (ia64_find_unwind_table): Update.
5754 * hppa-tdep.c (internalize_unwinds): Update.
5755 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5756 Update.
5757 * gcore.c (call_target_sbrk): Update.
5758 * elfread.c (record_minimal_symbol, elf_symtab_read)
5759 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5760 (elf_gnu_ifunc_resolve_by_got): Update.
5761 * dwarf2/read.c (create_addrmap_from_index)
5762 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5763 (read_debug_names_from_section)
5764 (process_psymtab_comp_unit_reader, add_partial_symbol)
5765 (add_partial_subprogram, process_full_comp_unit)
5766 (read_file_scope, read_func_scope, read_lexical_block_scope)
5767 (read_call_site_scope, dwarf2_ranges_read)
5768 (dwarf2_record_block_ranges, dwarf2_add_field)
5769 (mark_common_block_symbol_computed, read_tag_pointer_type)
5770 (read_tag_string_type, dwarf2_init_float_type)
5771 (dwarf2_init_complex_target_type, read_base_type)
5772 (partial_die_info::read, partial_die_info::read)
5773 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5774 (dwarf2_fetch_die_loc_sect_off): Update.
5775 * dwarf2/loc.c (dwarf2_find_location_expression)
5776 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5777 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5778 (dwarf2_loc_desc_get_symbol_read_needs)
5779 (locexpr_describe_location_piece, locexpr_describe_location_1)
5780 (loclist_describe_location): Update.
5781 * dwarf2/index-write.c (write_debug_names): Update.
5782 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5783 * dtrace-probe.c (dtrace_process_dof): Update.
5784 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5785 (process_one_symbol): Update.
5786 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5787 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5788 (coff_read_enum_type): Update.
5789 * cli/cli-cmds.c (edit_command, list_command): Update.
5790 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5791 * breakpoint.c (create_overlay_event_breakpoint)
5792 (create_longjmp_master_breakpoint)
5793 (create_std_terminate_master_breakpoint)
5794 (create_exception_master_breakpoint, get_sal_arch): Update.
5795 * block.c (block_gdbarch): Update.
5796 * annotate.c (annotate_source_line): Update.
5797
5798 2020-04-17 Tom Tromey <tromey@adacore.com>
5799
5800 * auto-load.c (show_auto_load_cmd): Remove.
5801 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5802 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5803 (maintenance_print_arc_command): Remove.
5804 * tui/tui-win.c (tui_command): Remove.
5805 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5806 * tui/tui-layout.c (tui_layout_command): Remove.
5807 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5808 * python/python.c (user_set_python, user_show_python): Remove.
5809 (_initialize_python): Use add_basic_prefix_cmd,
5810 add_show_prefix_cmd.
5811 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5812 (install_gdb_commands): Use add_basic_prefix_cmd,
5813 add_show_prefix_cmd.
5814 (info_guile_command): Remove.
5815 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5816 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5817 add_show_prefix_cmd.
5818 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5819 Remove do_set and do_show parameters.
5820 * cli/cli-style.c (set_style, show_style): Remove.
5821 (_initialize_cli_style): Use add_basic_prefix_cmd,
5822 add_show_prefix_cmd.
5823 (cli_style_option::add_setshow_commands): Remove do_set and
5824 do_show parameters.
5825 (cli_style_option::add_setshow_commands): Use
5826 add_basic_prefix_cmd, add_show_prefix_cmd.
5827 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5828 (set_style_name): Remove.
5829 * cli/cli-dump.c (dump_command, append_command): Remove.
5830 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5831 (tekhex_dump_command, binary_dump_command)
5832 (binary_append_command): Remove.
5833 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5834 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5835 (init_w32_command_list): Remove; move into ...
5836 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5837 * valprint.c (set_print, show_print, set_print_raw)
5838 (show_print_raw): Remove.
5839 (_initialize_valprint): Use add_basic_prefix_cmd,
5840 add_show_prefix_cmd.
5841 * typeprint.c (set_print_type, show_print_type): Remove.
5842 (_initialize_typeprint): Use add_basic_prefix_cmd,
5843 add_show_prefix_cmd.
5844 * record.c (set_record_command, show_record_command): Remove.
5845 (_initialize_record): Use add_basic_prefix_cmd,
5846 add_show_prefix_cmd.
5847 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5848 add_show_prefix_cmd.
5849 (info_command, show_command, set_debug, show_debug): Remove.
5850 * top.h (set_history, show_history): Don't declare.
5851 * top.c (set_history, show_history): Remove.
5852 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5853 (unset_tdesc_cmd): Remove.
5854 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5855 add_show_prefix_cmd.
5856 * symtab.c (info_module_command): Remove.
5857 (_initialize_symtab): Use add_basic_prefix_cmd.
5858 * symfile.c (overlay_command): Remove.
5859 (_initialize_symfile): Use add_basic_prefix_cmd.
5860 * sparc64-tdep.c (info_adi_command): Remove.
5861 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5862 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5863 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5864 add_show_prefix_cmd.
5865 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5866 (_initialize_serial): Use add_basic_prefix_cmd,
5867 add_show_prefix_cmd.
5868 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5869 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5870 add_show_prefix_cmd.
5871 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5872 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5873 add_show_prefix_cmd.
5874 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5875 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5876 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5877 add_show_prefix_cmd.
5878 * remote.c (remote_command, set_remote_cmd): Remove.
5879 (_initialize_remote): Use add_basic_prefix_cmd.
5880 * record-full.c (set_record_full_command)
5881 (show_record_full_command): Remove.
5882 (_initialize_record_full): Use add_basic_prefix_cmd,
5883 add_show_prefix_cmd.
5884 * record-btrace.c (cmd_set_record_btrace)
5885 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5886 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5887 (cmd_show_record_btrace_pt): Remove.
5888 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5889 add_show_prefix_cmd.
5890 * ravenscar-thread.c (set_ravenscar_command)
5891 (show_ravenscar_command): Remove.
5892 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5893 add_show_prefix_cmd.
5894 * mips-tdep.c (show_mips_command, set_mips_command)
5895 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5896 add_show_prefix_cmd.
5897 * maint.c (maintenance_command, maintenance_info_command)
5898 (maintenance_check_command, maintenance_print_command)
5899 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5900 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5901 add_show_prefix_cmd.
5902 (show_per_command_cmd): Remove.
5903 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5904 Remove.
5905 (maintenance_show_test_settings_cmd): Remove.
5906 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5907 add_show_prefix_cmd.
5908 * maint-test-options.c (maintenance_test_options_command):
5909 Remove.
5910 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5911 * macrocmd.c (macro_command): Remove
5912 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5913 * language.c (set_check, show_check): Remove.
5914 (_initialize_language): Use add_basic_prefix_cmd,
5915 add_show_prefix_cmd.
5916 * infcmd.c (unset_command): Remove.
5917 (_initialize_infcmd): Use add_basic_prefix_cmd.
5918 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5919 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5920 add_show_prefix_cmd.
5921 * go32-nat.c (go32_info_dos_command): Remove.
5922 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5923 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5924 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5925 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5926 (_initialize_frame): Use add_basic_prefix_cmd,
5927 add_show_prefix_cmd.
5928 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5929 (_initialize_dcache): Use add_basic_prefix_cmd,
5930 add_show_prefix_cmd.
5931 * cp-support.c (maint_cplus_command): Remove.
5932 (_initialize_cp_support): Use add_basic_prefix_cmd.
5933 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5934 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5935 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5936 add_basic_prefix_cmd, add_show_prefix_cmd.
5937 * breakpoint.c (save_command): Remove.
5938 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5939 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5940 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5941 add_show_prefix_cmd.
5942 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5943 (set_ada_command, show_ada_command): Remove.
5944 (_initialize_ada_language): Use add_basic_prefix_cmd,
5945 add_show_prefix_cmd.
5946 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5947
5948 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5949
5950 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5951 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5952
5953 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5954
5955 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5956 warning messages.
5957
5958 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5959
5960 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5961 import table is not at beginning of .idata section.
5962
5963 2020-04-16 Pedro Alves <palves@redhat.com>
5964
5965 * inferior.c (delete_inferior): Use delete operator directly
5966 instead of delete_program_space.
5967 * progspace.c (add_program_space): New, factored out from
5968 program_space::program_space.
5969 (remove_program_space): New, factored out from
5970 delete_program_space.
5971 (program_space::program_space): Remove intro comment. Rewrite.
5972 (program_space::~program_space): Remove intro comment. Call
5973 remove_program_space.
5974 (delete_program_space): Delete.
5975 * progspace.h (program_space::program_space): Make explicit. Move
5976 intro comment here, adjusted.
5977 (program_space::~program_space): Move intro comment here,
5978 adjusted.
5979 (delete_program_space): Remove.
5980
5981 2020-04-16 Tom Tromey <tromey@adacore.com>
5982
5983 * windows-nat.c (windows_nat::handle_access_violation): New
5984 function.
5985 * nat/windows-nat.h (handle_access_violation): Declare.
5986 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5987 windows-nat.c. Call handle_access_violation.
5988
5989 2020-04-16 Tom de Vries <tdevries@suse.de>
5990
5991 PR symtab/25791
5992 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5993 CUs without psymtab.
5994
5995 2020-04-16 Kevin Buettner <kevinb@redhat.com>
5996
5997 * python/python.c (do_start_initialization): Don't call
5998 PyEval_InitThreads for Python 3.9 and beyond.
5999
6000 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6001
6002 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6003 thread functions.
6004 (obsd_nat_target::wait): Likewise.
6005
6006 2020-04-15 Tom Tromey <tromey@adacore.com>
6007
6008 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6009 (DEBUG_EXCEPT): Use debug_printf.
6010
6011 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6012
6013 * completer.c (class completion_tracker::completion_hash_entry)
6014 <hash_name>: New member function.
6015 (completion_tracker::discard_completions): New callback to hash a
6016 completion_hash_entry, pass this to htab_create_alloc.
6017
6018 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6019
6020 * windows-nat.c (windows_make_so): Warn rather than stopping with
6021 an error if realpath() fails.
6022
6023 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6024
6025 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6026 (nbsd_nat_target::info_proc): Add do_status.
6027
6028 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6029 Tom de Vries <tdevries@suse.de>
6030
6031 PR symtab/25718
6032 * psympriv.h (struct partial_symtab::read_symtab)
6033 (struct partial_symtab::expand_psymtab)
6034 (struct partial_symtab::read_dependencies): Update comments.
6035 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6036 read_symtab for includer.
6037 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6038 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6039 (struct dwarf2_include_psymtab::m_readin): Remove.
6040 (struct dwarf2_include_psymtab::includer): New member function.
6041 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6042
6043 2020-04-14 Tom de Vries <tdevries@suse.de>
6044
6045 PR symtab/25720
6046 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6047 with NULL symbol_matcher and lookup_name.
6048 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6049 and lookup_name.
6050 * dwarf2/read.c (dw2_expand_symtabs_matching)
6051 (dw2_debug_names_expand_symtabs_matching): Same.
6052 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6053 Make lookup_name a pointer. Update comment.
6054 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6055 lookup_name being a pointer.
6056 * symfile.c (expand_symtabs_matching): Same.
6057 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6058 * linespec.c (iterate_over_all_matching_symtabs): Same.
6059
6060 2020-04-13 Tom Tromey <tom@tromey.com>
6061
6062 * run-on-main-thread.c: Update include.
6063 * unittests/main-thread-selftests.c: Update include.
6064 * tui/tui-win.c: Update include.
6065 * tui/tui-io.c: Update include.
6066 * tui/tui-interp.c: Update include.
6067 * tui/tui-hooks.c: Update include.
6068 * top.h: Update include.
6069 * top.c: Update include.
6070 * ser-base.c: Update include.
6071 * remote.c: Update include.
6072 * remote-notif.c: Update include.
6073 * remote-fileio.c: Update include.
6074 * record-full.c: Update include.
6075 * record-btrace.c: Update include.
6076 * python/python.c: Update include.
6077 * posix-hdep.c: Update include.
6078 * mingw-hdep.c: Update include.
6079 * mi/mi-main.c: Update include.
6080 * mi/mi-interp.c: Update include.
6081 * main.c: Update include.
6082 * linux-nat.c: Update include.
6083 * interps.c: Update include.
6084 * infrun.c: Update include.
6085 * inf-loop.c: Update include.
6086 * event-top.c: Update include.
6087 * event-loop.c: Move to ../gdbsupport/.
6088 * event-loop.h: Move to ../gdbsupport/.
6089 * async-event.h: Update include.
6090 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6091
6092 2020-04-13 Tom Tromey <tom@tromey.com>
6093
6094 * tui/tui-win.c: Include async-event.h.
6095 * remote.c: Include async-event.h.
6096 * remote-notif.c: Include async-event.h.
6097 * record-full.c: Include async-event.h.
6098 * record-btrace.c: Include async-event.h.
6099 * infrun.c: Include async-event.h.
6100 * event-top.c: Include async-event.h.
6101 * event-loop.h: Move some declarations to async-event.h.
6102 * event-loop.c: Don't include ser-event.h or top.h. Move some
6103 code to async-event.c.
6104 * async-event.h: New file.
6105 * async-event.c: New file.
6106 * Makefile.in (COMMON_SFILES): Add async-event.c.
6107 (HFILES_NO_SRCDIR): Add async-event.h.
6108
6109 2020-04-13 Tom Tromey <tom@tromey.com>
6110
6111 * utils.c (flush_streams): New function.
6112 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6113
6114 2020-04-13 Tom Tromey <tom@tromey.com>
6115
6116 * event-loop.c (handle_file_event): Use warning, not
6117 printf_unfiltered.
6118
6119 2020-04-13 Tom Tromey <tom@tromey.com>
6120
6121 * event-loop.c: Include <chrono>.
6122
6123 2020-04-13 Tom Tromey <tom@tromey.com>
6124
6125 * gdb_select.h: Move to ../gdbsupport/.
6126 * event-loop.c: Update include path.
6127 * top.c: Update include path.
6128 * ser-base.c: Update include path.
6129 * ui-file.c: Update include path.
6130 * ser-tcp.c: Update include path.
6131 * guile/scm-ports.c: Update include path.
6132 * posix-hdep.c: Update include path.
6133 * ser-unix.c: Update include path.
6134 * gdb_usleep.c: Update include path.
6135 * mingw-hdep.c: Update include path.
6136 * inflow.c: Update include path.
6137 * infrun.c: Update include path.
6138 * event-top.c: Update include path.
6139
6140 2020-04-13 Tom Tromey <tom@tromey.com>
6141
6142 * configure: Rebuild.
6143 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6144
6145 2020-04-13 Tom Tromey <tom@tromey.com>
6146
6147 * event-loop.h (start_event_loop): Don't declare.
6148 * event-loop.c (start_event_loop): Move...
6149 * main.c (start_event_loop): ...here. Now static.
6150
6151 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6152
6153 * MAINTAINERS: Update my email address.
6154
6155 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6156
6157 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6158 IP_ALL.
6159
6160 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6161
6162 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6163 (nbsd_nat_target::info_proc): Add do_cmdline.
6164
6165 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6166
6167 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6168 (nbsd_nat_target::info_proc): Add do_cwd.
6169
6170 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6171
6172 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6173
6174 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6175
6176 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6177 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6178 (nbsd_nat_target::info_proc): New functions.
6179 * nbsd-nat.c (kinfo_get_vmmap): New function.
6180 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6181 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6182 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6183 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6184 functions.
6185 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6186 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6187 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6188 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6189 (KINFO_VME_FLAG_GROWS_DOWN): New.
6190
6191 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6192
6193 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6194 bit shift.
6195
6196 2020-04-10 Tom Tromey <tromey@adacore.com>
6197
6198 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6199
6200 2020-04-10 Tom Tromey <tromey@adacore.com>
6201
6202 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6203 separate debug files.
6204
6205 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6206
6207 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6208 Move to...
6209 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6210 ... here.
6211 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6212 Check for STATUS_WX86_BREAKPOINT.
6213 (windows_nat_target::wait): Same.
6214
6215 2020-04-10 Tom de Vries <tdevries@suse.de>
6216
6217 PR cli/25808
6218 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6219
6220 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6221
6222 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6223 (Write After Approval): Remove Tom de Vries.
6224
6225 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6226
6227 revert partially:
6228 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6229
6230 * buildsym.c (record_line): Fix undefined behavior and preserve
6231 lines at eof.
6232
6233 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6234
6235 * auxv.h (svr4_auxv_parse): New.
6236 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6237 and generic_auxv_parse.
6238 (svr4_auxv_parse): Add.
6239 * obsd-tdep.c: Include "auxv.h".
6240 (obsd_auxv_parse): Remove.
6241 (obsd_init_abi): Remove comment.
6242 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6243 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6244 * nbsd-tdep.c: Include "auxv.h".
6245 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6246
6247 2020-04-08 Tom Tromey <tromey@adacore.com>
6248
6249 * nat/windows-nat.h (last_wait_event): Don't declare.
6250 (wait_for_debug_event): Update comment.
6251 * nat/windows-nat.c (last_wait_event): Now static.
6252
6253 2020-04-08 Tom Tromey <tromey@adacore.com>
6254
6255 * windows-nat.c (wait_for_debug_event): Move to
6256 nat/windows-nat.c.
6257 * nat/windows-nat.h (wait_for_debug_event): Declare.
6258 * nat/windows-nat.c (wait_for_debug_event): Move from
6259 windows-nat.c. No longer static.
6260
6261 2020-04-08 Tom Tromey <tromey@adacore.com>
6262
6263 * windows-nat.c (get_windows_debug_event): Use
6264 fetch_pending_stop.
6265 * nat/windows-nat.h (fetch_pending_stop): Declare.
6266 * nat/windows-nat.c (fetch_pending_stop): New function.
6267
6268 2020-04-08 Tom Tromey <tromey@adacore.com>
6269
6270 * windows-nat.c (windows_continue): Use matching_pending_stop and
6271 continue_last_debug_event.
6272 * nat/windows-nat.h (matching_pending_stop)
6273 (continue_last_debug_event): Declare.
6274 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6275 (matching_pending_stop, continue_last_debug_event): New
6276 functions.
6277
6278 2020-04-08 Tom Tromey <tromey@adacore.com>
6279
6280 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6281 (handle_exception_result): Move to nat/windows-nat.h.
6282 (DEBUG_EXCEPTION_SIMPLE): Remove.
6283 (windows_nat::handle_ms_vc_exception): New function.
6284 (handle_exception): Move to nat/windows-nat.c.
6285 (get_windows_debug_event): Update.
6286 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6287 nat/windows-nat.c.
6288 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6289 (handle_exception_result): Move from windows-nat.c.
6290 (handle_exception): Declare.
6291 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6292 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6293 windows-nat.c.
6294
6295 2020-04-08 Tom Tromey <tromey@adacore.com>
6296
6297 * windows-nat.c (exception_count, event_count): Remove.
6298 (handle_exception, get_windows_debug_event)
6299 (do_initial_windows_stuff): Update.
6300
6301 2020-04-08 Tom Tromey <tromey@adacore.com>
6302
6303 * windows-nat.c (windows_nat::handle_load_dll)
6304 (windows_nat::handle_unload_dll): Rename. No longer static.
6305 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6306 Declare.
6307
6308 2020-04-08 Tom Tromey <tromey@adacore.com>
6309
6310 * complaints.h (stop_whining): Declare at top-level.
6311 (complaint): Don't declare stop_whining.
6312
6313 2020-04-08 Tom Tromey <tromey@adacore.com>
6314
6315 * windows-nat.c (windows_nat::handle_output_debug_string):
6316 Rename. No longer static.
6317 * nat/windows-nat.h (handle_output_debug_string): Declare.
6318
6319 2020-04-08 Tom Tromey <tromey@adacore.com>
6320
6321 * windows-nat.c (current_process_handle, current_process_id)
6322 (main_thread_id, last_sig, current_event, last_wait_event)
6323 (current_windows_thread, desired_stop_thread_id, pending_stops)
6324 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6325 (display_selectors, fake_create_process)
6326 (get_windows_debug_event): Update.
6327 * nat/windows-nat.h (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 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6331 * nat/windows-nat.c (current_process_handle, current_process_id)
6332 (main_thread_id, last_sig, current_event, last_wait_event)
6333 (current_windows_thread, desired_stop_thread_id, pending_stops)
6334 (siginfo_er): New globals. Move from windows-nat.c.
6335
6336 2020-04-08 Tom Tromey <tromey@adacore.com>
6337
6338 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6339 (handle_load_dll): Update.
6340 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6341
6342 2020-04-08 Tom Tromey <tromey@adacore.com>
6343
6344 * windows-nat.c (enum thread_disposition_type): Move to
6345 nat/windows-nat.h.
6346 (windows_nat::thread_rec): Rename from thread_rec. No longer
6347 static.
6348 (windows_add_thread, windows_nat_target::fetch_registers)
6349 (windows_nat_target::store_registers, handle_exception)
6350 (windows_nat_target::resume, get_windows_debug_event)
6351 (windows_nat_target::get_tib_address)
6352 (windows_nat_target::thread_name)
6353 (windows_nat_target::thread_alive): Update.
6354 * nat/windows-nat.h (enum thread_disposition_type): Move from
6355 windows-nat.c.
6356 (thread_rec): Declare.
6357
6358 2020-04-08 Tom Tromey <tromey@adacore.com>
6359
6360 * windows-nat.c: Add "using namespace".
6361 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6362 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6363
6364 2020-04-08 Tom Tromey <tromey@adacore.com>
6365
6366 * nat/windows-nat.h (struct windows_thread_info): Declare
6367 destructor.
6368 * nat/windows-nat.c (~windows_thread_info): New.
6369
6370 2020-04-08 Tom Tromey <tromey@adacore.com>
6371
6372 PR gdb/22992
6373 * windows-nat.c (current_event): Update comment.
6374 (last_wait_event, desired_stop_thread_id): New globals.
6375 (struct pending_stop): New.
6376 (pending_stops): New global.
6377 (windows_nat_target) <stopped_by_sw_breakpoint>
6378 <supports_stopped_by_sw_breakpoint>: New methods.
6379 (windows_fetch_one_register): Add assertions. Adjust PC.
6380 (windows_continue): Handle pending stops. Suspend other threads
6381 when stepping. Use last_wait_event
6382 (wait_for_debug_event): New function.
6383 (get_windows_debug_event): Use wait_for_debug_event. Handle
6384 pending stops. Queue spurious stops.
6385 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6386 (windows_nat_target::kill): Use wait_for_debug_event.
6387 * nat/windows-nat.h (struct windows_thread_info)
6388 <stopped_at_software_breakpoint>: New field.
6389 * nat/windows-nat.c (windows_thread_info::resume): Clear
6390 stopped_at_software_breakpoint.
6391
6392 2020-04-08 Tom Tromey <tromey@adacore.com>
6393
6394 * windows-nat.c (enum thread_disposition_type): New.
6395 (thread_rec): Replace "get_context" parameter with "disposition";
6396 change type.
6397 (windows_add_thread, windows_nat_target::fetch_registers)
6398 (windows_nat_target::store_registers, handle_exception)
6399 (windows_nat_target::resume, get_windows_debug_event)
6400 (windows_nat_target::get_tib_address)
6401 (windows_nat_target::thread_name)
6402 (windows_nat_target::thread_alive): Update.
6403
6404 2020-04-08 Tom Tromey <tromey@adacore.com>
6405
6406 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6407 (windows_continue): Use windows_continue::resume.
6408 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6409 resume>: Declare new methods.
6410 * nat/windows-nat.c: New file.
6411 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6412
6413 2020-04-08 Tom Tromey <tromey@adacore.com>
6414
6415 * windows-nat.c (windows_add_thread, windows_delete_thread)
6416 (windows_nat_target::fetch_registers)
6417 (windows_nat_target::store_registers, fake_create_process)
6418 (windows_nat_target::resume, windows_nat_target::resume)
6419 (get_windows_debug_event, windows_nat_target::wait)
6420 (windows_nat_target::pid_to_str)
6421 (windows_nat_target::get_tib_address)
6422 (windows_nat_target::get_ada_task_ptid)
6423 (windows_nat_target::thread_name)
6424 (windows_nat_target::thread_alive): Use lwp, not tid.
6425
6426 2020-04-08 Tom Tromey <tromey@adacore.com>
6427
6428 * windows-nat.c (handle_exception)
6429 (windows_nat_target::thread_name): Update.
6430 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6431 <name>: Now unique_xmalloc_ptr.
6432
6433 2020-04-08 Tom Tromey <tromey@adacore.com>
6434
6435 * windows-nat.c (thread_rec)
6436 (windows_nat_target::fetch_registers): Update.
6437 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6438 Update comment.
6439 <debug_registers_changed, reload_context>: Now bool.
6440
6441 2020-04-08 Tom Tromey <tromey@adacore.com>
6442
6443 * windows-nat.c (windows_add_thread): Use new.
6444 (windows_init_thread_list, windows_delete_thread): Use delete.
6445 (get_windows_debug_event): Update.
6446 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6447 destructor, and initializers.
6448
6449 2020-04-08 Tom Tromey <tromey@adacore.com>
6450
6451 * windows-nat.c (struct windows_thread_info): Remove.
6452 * nat/windows-nat.h: New file.
6453
6454 2020-04-08 Tom Tromey <tromey@adacore.com>
6455
6456 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6457 (thread_rec, windows_add_thread, windows_delete_thread)
6458 (windows_continue): Update.
6459
6460 2020-04-08 Tom Tromey <tromey@adacore.com>
6461
6462 * windows-nat.c (struct windows_thread_info): Remove typedef.
6463 (thread_head): Remove.
6464 (thread_list): New global.
6465 (thread_rec, windows_add_thread, windows_init_thread_list)
6466 (windows_delete_thread, windows_continue): Update.
6467
6468 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6469
6470 * windows-tdep.h (windows_init_abi): Add comment.
6471 (cygwin_init_abi): New declaration.
6472 * windows-tdep.c: Split signal enumeration in two, one for
6473 Windows and one for Cygwin.
6474 (windows_gdb_signal_to_target): Only deal with signal of the
6475 Windows OS ABI.
6476 (cygwin_gdb_signal_to_target): New function.
6477 (windows_init_abi): Rename to windows_init_abi_common, don't set
6478 gdb_signal_to_target gdbarch method. Add new new function with
6479 this name.
6480 (cygwin_init_abi): New function.
6481 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6482 comment. Don't call windows_init_abi.
6483 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6484 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6485 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6486 i386_windows_init_abi_common, don't call windows_init_abi. Add
6487 a new function of this name.
6488 (i386_cygwin_init_abi): New function.
6489 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6490 OS ABI Cygwin.
6491
6492 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6493
6494 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6495 parameter.c.
6496 (dwarf2_read_gdb_index): Update.
6497
6498 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6499
6500 * nbsd-tdep.c: Include "objfiles.h".
6501 (nbsd_skip_solib_resolver): New.
6502 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6503
6504 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6505
6506 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6507 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6508 with DW_LLE_base_addressx are being emitted in DWARFv5.
6509 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6510 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6511 unsigned integer.
6512
6513 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6514
6515 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6516 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6517 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6518 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6519 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6520 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6521 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6522
6523
6524 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6525
6526 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6527 (read_loclist_index): New function definition.
6528 (lookup_loclist_base): New function definition.
6529 (read_loclist_header): New function definition.
6530 (dwarf2_cu): Add loclist_base and loclist_header field.
6531 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6532 (read_full_die_1): Read the value of DW_AT_loclists_base.
6533 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6534 (read_attribute_value): Handle DW_FORM_loclistx.
6535 (skip_one_die): Handle DW_FORM_loclistx.
6536 (loclist_header): New structure declaration.
6537 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6538
6539 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6540
6541 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6542 constructor. Remove `addr` parameter from other constructor and
6543 add `per_cu` parameter.
6544 * dwarf2/read.c (create_partial_symtab): Update.
6545
6546 2020-04-07 Tom de Vries <tdevries@suse.de>
6547
6548 PR symtab/25796
6549 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6550 (partial_die_info::fixup): Inherit has_const_value.
6551
6552 2020-04-07 Tom de Vries <tdevries@suse.de>
6553
6554 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6555 symbols without address.
6556
6557 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6558
6559 * nbsd-nat.h (struct thread_info): Add forward declaration.
6560 (nbsd_nat_target::thread_alive): Add.
6561 (nbsd_nat_target::thread_name): Likewise.
6562 (nbsd_nat_target::update_thread_list): Likewise.
6563 (update_thread_list::post_attach): Likewise.
6564 (post_attach::pid_to_str): Likewise.
6565 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6566 (nbsd_thread_lister): Add.
6567 (nbsd_nat_target::thread_alive): Likewise.
6568 (nbsd_nat_target::thread_name): Likewise.
6569 (nbsd_add_threads): Likewise.
6570 (update_thread_list::post_attach): Likewise.
6571 (nbsd_nat_target::update_thread_list): Likewise.
6572 (post_attach::pid_to_str): Likewise.
6573
6574 2020-04-06 Tom Tromey <tromey@adacore.com>
6575
6576 * ada-valprint.c (print_variant_part): Extract the variant field.
6577 (print_field_values): Use the field as the outer value when
6578 recursing.
6579
6580 2020-04-06 Tom Tromey <tromey@adacore.com>
6581
6582 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6583 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6584 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6585 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6586 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6587
6588 2020-04-06 Tom Tromey <tromey@adacore.com>
6589
6590 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6591 TYPE_CODE_ERROR.
6592
6593 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6594
6595 * nbsd-tdep.c: Include "gdbarch.h".
6596 Define enum with NetBSD signal numbers.
6597 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6598 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6599 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6600 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6601 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6602 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6603 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6604 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6605 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6606 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6607 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6608 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6609
6610 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6611
6612 PR gdb/25325
6613 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6614
6615 2020-04-03 Tom Tromey <tromey@adacore.com>
6616
6617 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6618 Read constant block.
6619
6620 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6621
6622 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6623 (gdb_bfd_get_full_section_contents): New declaration.
6624 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6625 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6626 gdb_bfd_get_full_section_contents.
6627
6628 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6629
6630 * exec.c (build_section_table): Replace internal_error with
6631 gdb_assert.
6632 (section_table_xfer_memory_partial): Likewise.
6633 * mdebugread.c (parse_partial_symbols): Likewise.
6634 * psymtab.c (lookup_partial_symbol): Likewise.
6635 * utils.c (wrap_here): Likewise.
6636
6637 2020-04-02 Tom Tromey <tromey@adacore.com>
6638
6639 * f-lang.c (build_fortran_types): Use arch_type to initialize
6640 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6641
6642 2020-04-02 Tom Tromey <tromey@adacore.com>
6643
6644 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6645 of attributes.
6646
6647 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6648 Bernd Edlinger <bernd.edlinger@hotmail.de>
6649 Tom Tromey <tromey@adacore.com>
6650
6651 * buildsym.c (buildsym_compunit::record_line): Remove
6652 deduplication code.
6653
6654 2020-04-02 Tom de Vries <tdevries@suse.de>
6655
6656 PR ada/24671
6657 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6658
6659 2020-04-02 Tom de Vries <tdevries@suse.de>
6660
6661 * dwarf2/read.c (dwarf2_gdb_index_functions,
6662 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6663 NULL.
6664 * psymtab.c (psym_lookup_global_symbol_language): New function.
6665 (psym_functions): Init psym_lookup_global_symbol_language with
6666 psym_lookup_global_symbol_language.
6667 * symfile-debug.c (debug_sym_quick_functions): Init
6668 lookup_global_symbol_language with NULL.
6669 * symfile.c (set_initial_language): Remove fixme comment.
6670 * symfile.h (struct quick_symbol_functions): Add
6671 lookup_global_symbol_language.
6672 * symtab.c (find_quick_global_symbol_language): New function.
6673 (find_main_name): Use find_quick_global_symbol_language.
6674
6675 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6676
6677 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6678
6679 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6680
6681 * buildsym.c (record_line): Fix undefined behavior and preserve
6682 lines at eof.
6683
6684 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6685
6686 * buildsym.c (record_line): Fix the resizing condition.
6687
6688 2020-04-01 Tom Tromey <tom@tromey.com>
6689
6690 * value.h (value_literal_complex): Add comment.
6691 * valops.c (value_literal_complex): Refer to value.h.
6692
6693 2020-04-01 Tom Tromey <tom@tromey.com>
6694
6695 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6696 (scalar_type): New rule, from typebase.
6697 (typebase): Use scalar_type. Recognize complex types.
6698 (field_name): Handle FLOAT_KEYWORD.
6699 (ident_tokens): Add _Complex and __complex__.
6700
6701 2020-04-01 Tom Tromey <tom@tromey.com>
6702
6703 PR exp/25299:
6704 * valarith.c (promotion_type, complex_binop): New functions.
6705 (scalar_binop): Handle complex numbers. Use promotion_type.
6706 (value_pos, value_neg, value_complement): Handle complex numbers.
6707
6708 2020-04-01 Tom Tromey <tom@tromey.com>
6709
6710 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6711 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6712 (parse_number): Handle complex numbers.
6713
6714 2020-04-01 Tom Tromey <tom@tromey.com>
6715
6716 * c-valprint.c (c_decorations): Change complex suffix to "i".
6717
6718 2020-04-01 Tom Tromey <tom@tromey.com>
6719
6720 * valprint.c (generic_value_print_complex): Use accessors.
6721 * value.h (value_real_part, value_imaginary_part): Declare.
6722 * valops.c (value_real_part, value_imaginary_part): New
6723 functions.
6724 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6725
6726 2020-04-01 Tom Tromey <tom@tromey.com>
6727
6728 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6729 (read_range_type): Update.
6730 * mdebugread.c (basic_type): Update.
6731 * go-lang.c (build_go_types): Use init_complex_type.
6732 * gdbtypes.h (struct main_type) <complex_type>: New member.
6733 (init_complex_type): Update.
6734 (arch_complex_type): Don't declare.
6735 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6736 Make name if none given. Use alloc_type_copy. Look for cached
6737 complex type.
6738 (arch_complex_type): Remove.
6739 (gdbtypes_post_init): Use init_complex_type.
6740 * f-lang.c (build_fortran_types): Use init_complex_type.
6741 * dwarf2/read.c (read_base_type): Update.
6742 * d-lang.c (build_d_types): Use init_complex_type.
6743 * ctfread.c (read_base_type): Update.
6744
6745 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6746
6747 * infrun.c (stop_all_threads): Update assertion, plus when
6748 stopping threads, take into account that we might be trying
6749 to stop an all-stop target.
6750 (stop_waiting): Call 'stop_all_threads' if there exists a
6751 non-stop target.
6752
6753 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6754
6755 * target.h (exists_non_stop_target): New function declaration.
6756 * target.c (exists_non_stop_target): New function.
6757
6758 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6759
6760 PR gdb/24789
6761 * eval.c (is_integral_or_integral_reference): New function.
6762 (evaluate_subexp_standard): Allow integer references in
6763 pointer arithmetic.
6764
6765 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6766
6767 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6768 check for no ptid in the stop reply when the target is non-stop.
6769
6770 2020-04-01 Tom Tromey <tromey@adacore.com>
6771
6772 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6773 "name" parameter to rvalue reference. Initialize m_name_holder.
6774 <lookup_name_info>: New overloads.
6775 <name>: Return gdb::string_view.
6776 <c_str>: New method.
6777 <make_ignore_params>: Update.
6778 <search_name_hash>: Update.
6779 <language_lookup_name>: Return const char *.
6780 <m_name>: Change type.
6781 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6782 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6783 (lookup_name_info::match_any): Update.
6784 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6785 Update.
6786 * minsyms.c (linkage_name_str): Update.
6787 * language.c (default_symbol_name_matcher): Update.
6788 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6789 Update.
6790 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6791 (ada_lookup_name_info::ada_lookup_name_info): Update.
6792 (literal_symbol_name_matcher): Update.
6793
6794 2020-04-01 Tom Tromey <tromey@adacore.com>
6795
6796 * psymtab.c (psymtab_search_name): Remove function.
6797 (psym_lookup_symbol): Create search name and lookup name here.
6798 (lookup_partial_symbol): Remove "name" parameter; add
6799 lookup_name.
6800 (psym_expand_symtabs_for_function): Update.
6801
6802 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6803
6804 PR tui/25597:
6805 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6806
6807 2020-03-31 Tom Tromey <tromey@adacore.com>
6808
6809 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6810 memcpy.
6811
6812 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6813
6814 * features/riscv/32bit-csr.xml: Regenerated.
6815 * features/riscv/64bit-csr.xml: Regenerated.
6816
6817 2020-03-30 Tom Tromey <tromey@adacore.com>
6818
6819 * ada-valprint.c (print_variant_part): Update.
6820 * ada-lang.h (ada_which_variant_applies): Update.
6821 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6822 outer_valaddr parameters; replace with "outer" value parameter.
6823 (to_fixed_variant_branch_type): Update.
6824
6825 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6826
6827 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6828 <list>. Remove inclusion of observable.h.
6829 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6830 (struct arch_lwp_info): New struct.
6831 (class ppc_linux_dreg_interface): New class.
6832 (struct ppc_linux_process_info): New struct.
6833 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6834 <low_new_clone, low_forget_process, low_prepare_to_resume>
6835 <copy_thread_dreg_state, mark_thread_stale>
6836 <mark_debug_registers_changed, register_hw_breakpoint>
6837 <clear_hw_breakpoint, register_wp, clear_wp>
6838 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6839 <num_memory_accesses, get_trigger_type>
6840 <create_watchpoint_request, hwdebug_point_cmp>
6841 <init_arch_lwp_info, get_arch_lwp_info>
6842 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6843 methods.
6844 <struct ptid_hash>: New inner struct.
6845 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6846 members.
6847 (saved_dabr_value, hwdebug_info, max_slots_number)
6848 (struct hw_break_tuple, struct thread_points, ppc_threads)
6849 (have_ptrace_hwdebug_interface)
6850 (hwdebug_find_thread_points_by_tid)
6851 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6852 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6853 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6854 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6855 use m_dreg_interface.
6856 (hwdebug_point_cmp): Change to...
6857 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6858 reference arguments instead of pointers.
6859 (ppc_linux_nat_target::ranged_break_num_registers): Use
6860 m_dreg_interface.
6861 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6862 m_dreg_interface. Call register_hw_breakpoint.
6863 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6864 m_dreg_interface. Call clear_hw_breakpoint.
6865 (get_trigger_type): Change to...
6866 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6867 comment.
6868 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6869 use m_dreg_interface. Call register_hw_breakpoint.
6870 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6871 use m_dreg_interface. Call clear_hw_breakpoint.
6872 (can_use_watchpoint_cond_accel): Change to...
6873 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6874 method. Update comment, use m_dreg_interface and
6875 m_process_info.
6876 (calculate_dvc): Change to...
6877 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6878 m_dreg_interface.
6879 (num_memory_accesses): Change to...
6880 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6881 (check_condition): Change to...
6882 (ppc_linux_nat_target::check_condition): ...this method.
6883 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6884 comment, use m_dreg_interface.
6885 (create_watchpoint_request): Change to...
6886 (ppc_linux_nat_target::create_watchpoint_request): ...this
6887 method. Use m_dreg_interface.
6888 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6889 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6890 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6891 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6892 (ppc_linux_nat_target::low_forget_process)
6893 (ppc_linux_nat_target::low_new_fork)
6894 (ppc_linux_nat_target::low_new_clone)
6895 (ppc_linux_nat_target::low_delete_thread)
6896 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6897 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6898 only call mark_thread_stale.
6899 (ppc_linux_thread_exit): Remove.
6900 (ppc_linux_nat_target::stopped_data_address): Change to...
6901 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6902 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6903 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6904 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6905 comment. Call low_stopped_data_address.
6906 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6907 m_dreg_interface.
6908 (ppc_linux_nat_target::masked_watch_num_registers): Use
6909 m_dreg_interface.
6910 (ppc_linux_nat_target::copy_thread_dreg_state)
6911 (ppc_linux_nat_target::mark_thread_stale)
6912 (ppc_linux_nat_target::mark_debug_registers_changed)
6913 (ppc_linux_nat_target::register_hw_breakpoint)
6914 (ppc_linux_nat_target::clear_hw_breakpoint)
6915 (ppc_linux_nat_target::register_wp)
6916 (ppc_linux_nat_target::clear_wp)
6917 (ppc_linux_nat_target::init_arch_lwp_info)
6918 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6919 (_initialize_ppc_linux_nat): Remove observer callback.
6920
6921 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6922
6923 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6924 (ppc_linux_nat_target::auxv_parse)
6925 (ppc_linux_nat_target::read_description)
6926 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6927 Move up.
6928
6929 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6930
6931 * linux-nat.h (low_new_clone): New method.
6932 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6933
6934 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6935
6936 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6937 (dbx_expand_psymtab): ... this.
6938 (start_psymtab): Update.
6939 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6940 (mdebug_expand_psymtab): ... this.
6941 (parse_partial_symbols): Update.
6942 (new_psymtab): Update.
6943 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6944 (xcoff_expand_psymtab): ... this.
6945 (xcoff_start_psymtab): Update.
6946
6947 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6948
6949 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6950 <expand_dependencies>: ... this.
6951 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6952 (partial_symtab::expand_dependencies): ... this.
6953 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6954 Update.
6955 (dwarf2_psymtab::expand_psymtab): Update.
6956 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6957 * mdebugread.c (psymtab_to_symtab_1): Update.
6958 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6959
6960 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6961
6962 * psympriv.h (discard_psymtab): Remove.
6963 * dbxread.c (dbx_end_psymtab): Update.
6964 * xcoffread.c (xcoff_end_psymtab): Update.
6965
6966 2020-03-28 Tom Tromey <tom@tromey.com>
6967
6968 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6969 comment.
6970
6971 2020-03-28 Tom Tromey <tom@tromey.com>
6972
6973 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6974
6975 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
6976
6977 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6978
6979 2020-03-26 John Baldwin <jhb@FreeBSD.org>
6980
6981 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6982
6983 2020-03-26 Tom Tromey <tom@tromey.com>
6984
6985 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6986 (mark_common_block_symbol_computed, read_tag_string_type)
6987 (attr_to_dynamic_prop, read_subrange_type): Update.
6988 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6989 to be methods on struct attribute.
6990 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6991 (read_call_site_scope, partial_die_info::read)
6992 (partial_die_info::read, lookup_die_type, follow_die_ref):
6993 Update.
6994 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6995 from dwarf2_get_ref_die_offset.
6996 (attribute::constant_value): New method, from
6997 dwarf2_get_attr_constant_value.
6998 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6999 Declare method.
7000 <constant_value>: New method.
7001
7002 2020-03-26 Tom Tromey <tom@tromey.com>
7003
7004 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7005 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7006 (dwarf_type_encoding_name): Move to stringify.c.
7007 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7008 * dwarf2/stringify.c: New file.
7009 * dwarf2/stringify.h: New file.
7010
7011 2020-03-26 Tom Tromey <tom@tromey.com>
7012
7013 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7014 Rewrite.
7015
7016 2020-03-26 Tom Tromey <tom@tromey.com>
7017
7018 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7019 methods.
7020 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7021 (lookup_ranges_base): Likewise.
7022 (read_cutu_die_from_dwo, read_full_die_1): Update.
7023
7024 2020-03-26 Tom Tromey <tom@tromey.com>
7025
7026 * dwarf2/read.c (read_import_statement, read_file_scope)
7027 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7028 (read_lexical_block_scope, read_call_site_scope)
7029 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7030 (handle_struct_member_die, process_structure_scope)
7031 (update_enumeration_type_from_children)
7032 (process_enumeration_scope, read_array_type, read_common_block)
7033 (read_namespace, read_module, read_subroutine_type): Update.
7034 (sibling_die): Remove.
7035
7036 2020-03-26 Tom Tromey <tom@tromey.com>
7037
7038 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7039 (build_type_psymtabs_reader, read_structure_type)
7040 (read_enumeration_type, read_full_die_1): Update.
7041 (dwarf2_attr_no_follow): Move to die.h.
7042 * dwarf2/die.h (struct die_info) <attr>: New method.
7043
7044 2020-03-26 Tom Tromey <tom@tromey.com>
7045
7046 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7047 <base_address>: Now an optional.
7048 (dwarf2_find_base_address, dwarf2_rnglists_process)
7049 (dwarf2_ranges_process, fill_in_loclist_baton)
7050 (dwarf2_symbol_mark_computed): Update.
7051
7052 2020-03-26 Tom Tromey <tom@tromey.com>
7053
7054 * dwarf2/read.c (struct die_info): Move to die.h.
7055 * dwarf2/die.h: New file.
7056
7057 2020-03-26 Tom Tromey <tom@tromey.com>
7058
7059 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7060 * dwarf2/read.c
7061 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7062 Move to line-header.c.
7063 (read_checked_initial_length_and_offset, read_formatted_entries):
7064 Likewise.
7065 (dwarf_decode_line_header): Split into two.
7066 * dwarf2/line-header.c
7067 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7068 Move from read.c.
7069 (read_checked_initial_length_and_offset, read_formatted_entries):
7070 Likewise.
7071 (dwarf_decode_line_header): New function, split from read.c.
7072
7073 2020-03-26 Tom Tromey <tom@tromey.com>
7074
7075 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7076 Declare method.
7077 * dwarf2/read.c (read_attribute_value): Update.
7078 (dwarf2_per_objfile::read_line_string): Rename from
7079 read_indirect_line_string.
7080 (read_formatted_entries): Update.
7081
7082 2020-03-26 Tom Tromey <tom@tromey.com>
7083
7084 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7085 variable.
7086
7087 2020-03-26 Tom Tromey <tom@tromey.com>
7088
7089 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7090 const.
7091 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7092 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7093 parameter const.
7094
7095 2020-03-26 Tom Tromey <tom@tromey.com>
7096
7097 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7098 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7099 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7100 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7101
7102 2020-03-26 Tom Tromey <tom@tromey.com>
7103
7104 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7105 file_names_size, file_full_name, file_file_name>: Use const.
7106 <file_name_at, file_names>: Add const overload.
7107 * dwarf2/line-header.c (line_header::file_file_name)
7108 (line_header::file_full_name): Update.
7109
7110 2020-03-26 Tom Tromey <tom@tromey.com>
7111
7112 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7113 (macro_start_file, consume_improper_spaces)
7114 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7115 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7116 (dwarf_decode_macros): Move to macro.c.
7117 * dwarf2/macro.c: New file.
7118 * dwarf2/macro.h: New file.
7119 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7120
7121 2020-03-26 Tom Tromey <tom@tromey.com>
7122
7123 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7124 method.
7125 * dwarf2/section.c: New method. From
7126 read_indirect_string_at_offset_from.
7127 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7128 (read_indirect_string_at_offset_from): Move to section.c.
7129 (read_indirect_string_at_offset): Rewrite.
7130 (read_indirect_line_string_at_offset): Remove.
7131 (read_indirect_string, read_indirect_line_string)
7132 (dwarf_decode_macro_bytes): Update.
7133
7134 2020-03-26 Tom Tromey <tom@tromey.com>
7135
7136 * dwarf2/section.h (struct dwarf2_section_info)
7137 <overload_complaint>: Declare.
7138 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7139 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7140 Rename from dwarf2_section_buffer_overflow_complaint.
7141 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7142 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7143
7144 2020-03-26 Tom Tromey <tom@tromey.com>
7145
7146 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7147 Declare.
7148 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7149 Move from read.c.
7150 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7151 to section.c.
7152
7153 2020-03-26 Tom Tromey <tom@tromey.com>
7154
7155 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7156
7157 2020-03-26 Tom Tromey <tom@tromey.com>
7158
7159 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7160 "builder".
7161 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7162 parameter.
7163 (dwarf_decode_macros): Update.
7164
7165 2020-03-26 Tom Tromey <tom@tromey.com>
7166
7167 * dwarf2/read.c (read_attribute_value): Update.
7168 (read_indirect_string_from_dwz): Move to dwz.c; change into
7169 method.
7170 (dwarf_decode_macro_bytes): Update.
7171 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7172 * dwarf2/dwz.c: New file.
7173 * Makefile.in (COMMON_SFILES): Add dwz.c.
7174
7175 2020-03-26 Tom Tromey <tom@tromey.com>
7176
7177 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7178 * dwarf2/read.c: Add include.
7179 * dwarf2/index-write.c: Add include.
7180 * dwarf2/index-cache.c: Add include.
7181 * dwarf2/dwz.h: New file.
7182
7183 2020-03-25 Tom Tromey <tom@tromey.com>
7184
7185 * compile/compile-object-load.c (get_out_value_type): Mention
7186 correct symbol name in error message.
7187
7188 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7189
7190 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7191
7192 2020-03-25 Tom de Vries <tdevries@suse.de>
7193
7194 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7195 * symmisc.c (dump_symtab_1): Print user and includes fields.
7196 (maintenance_info_symtabs): Same.
7197
7198 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7199
7200 PR gdb/25534
7201 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7202 (riscv_regcache_cooked_write): New function.
7203 (riscv_push_dummy_call): Use new function.
7204 (riscv_return_value): Likewise.
7205
7206 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7207
7208 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7209 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7210 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7211 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7212 * infrun.c (follow_fork): Likewise.
7213 (follow_fork_inferior): Likewise.
7214 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7215 * linux-nat.h (class linux_nat_target): Likewise.
7216 * remote.c (class remote_target) <follow_fork>: Likewise.
7217 (remote_target::follow_fork): Likewise.
7218 * target-delegates.c: Re-generate.
7219 * target.c (default_follow_fork): Likewise.
7220 (target_follow_fork): Likewise.
7221 * target.h (struct target_ops) <follow_fork>: Likewise.
7222 (target_follow_fork): Likewise.
7223
7224 2020-03-24 Tom de Vries <tdevries@suse.de>
7225
7226 * psymtab.c (maintenance_info_psymtabs): Print user field.
7227
7228 2020-03-20 Tom Tromey <tromey@adacore.com>
7229
7230 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7231 const.
7232 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7233 const.
7234
7235 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7236
7237 * ptrace.m4: Don't check for ptrace declaration.
7238 * config.in: Re-generate.
7239 * configure: Re-generate.
7240 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7241 not defined.
7242
7243 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7244
7245 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7246 `PTRACE_TYPE_RET'.
7247 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7248 * sparc-nat.c (gdb_ptrace): Likewise.
7249 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7250
7251 2020-03-20 Tom Tromey <tromey@adacore.com>
7252
7253 * c-exp.y (lex_one_token): Fix assert.
7254
7255 2020-03-20 Tom Tromey <tromey@adacore.com>
7256
7257 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7258 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7259 strncpy call.
7260
7261 2020-03-20 Tom Tromey <tromey@adacore.com>
7262
7263 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7264
7265 2020-03-20 Tom Tromey <tromey@adacore.com>
7266
7267 * ada-valprint.c (print_variant_part): Remove parameters; switch
7268 to value-based API.
7269 (print_field_values): Likewise.
7270 (ada_val_print_struct_union): Likewise.
7271 (ada_value_print_1): Update.
7272
7273 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7274
7275 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7276 nbsd_nat_target instead of inf_ptrace_target.
7277 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7278 nbsd_nat_target.
7279
7280 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7281
7282 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7283 it to the ptrace call.
7284 * (store_registers): Likewise.
7285
7286 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7287
7288 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7289 it to the ptrace call.
7290 * (store_registers): Likewise.
7291
7292 2020-03-19 Luis Machado <luis.machado@linaro.org>
7293
7294 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7295 valid, fetch vg value from ptrace.
7296
7297 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7298 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7299 * inf-ptrace.c: Likewise.
7300 * (gdb_ptrace): Add.
7301 * (inf_ptrace_target::resume): Update.
7302 * (inf_ptrace_target::xfer_partial): Likewise.
7303 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7304 * (inf_ptrace_peek_poke): Update.
7305
7306 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7307
7308 * x86-bsd-nat.c (gdb_ptrace): New.
7309 * (x86bsd_dr_set): Add new argument `ptid'.
7310 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7311 x86bsd_dr_set_addr): Update.
7312
7313 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7314
7315 * remote.c (remote_target::process_stop_reply): Handle events for
7316 all threads differently.
7317
7318 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7319
7320 * completer.c (completion_tracker::remove_completion): Define new
7321 function.
7322 * completer.h (completion_tracker::remove_completion): Declare new
7323 function.
7324 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7325 when adding a C++ function symbol.
7326
7327 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7328
7329 * completer.c (completion_tracker::completion_hash_entry): Define
7330 new class.
7331 (advance_to_filename_complete_word_point): Call
7332 recompute_lowest_common_denominator.
7333 (completion_tracker::completion_tracker): Call discard_completions
7334 to setup the hash table.
7335 (completion_tracker::discard_completions): Allow for being called
7336 from the constructor, pass new equal function, and element deleter
7337 when constructing the hash table. Initialise new class member
7338 variables.
7339 (completion_tracker::maybe_add_completion): Remove use of
7340 m_entries_vec, and store more information into m_entries_hash.
7341 (completion_tracker::recompute_lcd_visitor): New function, most
7342 content taken from...
7343 (completion_tracker::recompute_lowest_common_denominator):
7344 ...here, this now just visits each item in the hash calling the
7345 above visitor.
7346 (completion_tracker::build_completion_result): Remove use of
7347 m_entries_vec, call recompute_lowest_common_denominator.
7348 * completer.h (completion_tracker::have_completions): Remove use
7349 of m_entries_vec.
7350 (completion_tracker::completion_hash_entry): Declare new class.
7351 (completion_tracker::recompute_lowest_common_denominator): Change
7352 function signature.
7353 (completion_tracker::recompute_lcd_visitor): Declare new function.
7354 (completion_tracker::m_entries_vec): Delete.
7355 (completion_tracker::m_entries_hash): Initialize to NULL.
7356 (completion_tracker::m_lowest_common_denominator_valid): New
7357 member variable.
7358 (completion_tracker::m_lowest_common_denominator_max_length): New
7359 member variable.
7360
7361 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7362
7363 * regformats/regdef.h: Put reg in gdb namespace.
7364
7365 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7366
7367 * i386-bsd-nat.c (gdb_ptrace): New.
7368 * (i386bsd_fetch_inferior_registers,
7369 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7370 * (i386bsd_fetch_inferior_registers,
7371 i386bsd_store_inferior_registers) Use gdb_ptrace.
7372
7373 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7374
7375 * amd64-bsd-nat.c (gdb_ptrace): New.
7376 * (amd64bsd_fetch_inferior_registers,
7377 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7378 * (amd64bsd_fetch_inferior_registers,
7379 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7380
7381 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7382
7383 * user-regs.c (user_reg::read): Rename to...
7384 (user_reg::xread): ...this.
7385 * (append_user_reg): Rename argument `read' to `xread'.
7386 * (user_reg_add_builtin): Likewise.
7387 * (user_reg_add): Likewise.
7388 * (value_of_user_reg): Likewise.
7389
7390 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7391
7392 * sparc-nat.c (gdb_ptrace): New.
7393 * sparc-nat.c (sparc_fetch_inferior_registers)
7394 (sparc_store_inferior_registers) Remove obsolete comment.
7395 * sparc-nat.c (sparc_fetch_inferior_registers)
7396 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7397 * sparc-nat.c (sparc_fetch_inferior_registers)
7398 (sparc_store_inferior_registers) Use gdb_ptrace.
7399
7400 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7401
7402 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7403 it to the ptrace call.
7404 * sh-nbsd-nat.c (store_registers): Likewise.
7405
7406 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7407
7408 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7409 nbsd_nat_target instead of inf_ptrace_target.
7410 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7411 nbsd_nat_target.
7412
7413 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7414
7415 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7416
7417 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7418
7419 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7420 <sys/sysctl.h>.
7421 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7422
7423 2020-03-17 Tom de Vries <tdevries@suse.de>
7424
7425 PR gdb/23710
7426 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7427 fields.
7428 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7429 fields.
7430 (process_imported_unit_die): Skip import of c++ CUs.
7431
7432 2020-03-16 Tom Tromey <tom@tromey.com>
7433
7434 * p-valprint.c (pascal_object_print_value): Initialize
7435 base_value.
7436
7437 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7438 Shahab Vahedi <shahab@synopsys.com>
7439
7440 * Makefile.in: Add arch/arc.o
7441 * configure.tgt: Likewise.
7442 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7443 (_initialize_arc_tdep): Don't initialize old target descriptions.
7444 (arc_read_description): New function to cache target descriptions.
7445 * arc-tdep.h (arc_read_description): Add proto type.
7446 * arch/arc.c: New file.
7447 * arch/arc.h: Likewise.
7448 * features/Makefile: Replace old target descriptions with new.
7449 * features/arc-arcompact.c: Remove.
7450 * features/arc-arcompact.xml: Likewise.
7451 * features/arc-v2.c: Likewise
7452 * features/arc-v2.xml: Likewise
7453 * features/arc/aux-arcompact.xml: New file.
7454 * features/arc/aux-v2.xml: Likewise.
7455 * features/arc/core-arcompact.xml: Likewise.
7456 * features/arc/core-v2.xml: Likewise.
7457 * features/arc/aux-arcompact.c: Generate.
7458 * features/arc/aux-v2.c: Likewise.
7459 * features/arc/core-arcompact.c: Likewise.
7460 * features/arc/core-v2.c: Likewise.
7461 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7462
7463 2020-03-16 Tom Tromey <tromey@adacore.com>
7464
7465 PR gdb/25663:
7466 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7467 putting value into bcache.
7468
7469 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7470
7471 PR gdb/21500
7472 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7473 to...
7474 (amd64_windows_init_abi_common): ... this. Don't set size of
7475 long type.
7476 (amd64_windows_init_abi): New function.
7477 (amd64_cygwin_init_abi): New function.
7478 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7479 the Cygwin OS ABI.
7480 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7481 comment.
7482
7483 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7484
7485 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7486 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7487 (pe_import_directory_entry): New struct type.
7488 (is_linked_with_cygwin_dll): New function.
7489 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7490 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7491 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7492
7493 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7494
7495 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7496 i386_cygwin_core_osabi_sniffer.
7497
7498 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7499
7500 * i386-cygwin-tdep.c: Rename to...
7501 * i386-windows-tdep.c: ... this.
7502 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7503 i386-windows-tdep.c.
7504 * configure.tgt: Likewise.
7505
7506 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7507
7508 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7509 * osabi.c (gdb_osabi_names): Add "Windows".
7510 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7511 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7512 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7513 i386_cygwin_osabi_sniffer.
7514 (_initialize_i386_cygwin_tdep): Register OS ABI
7515 GDB_OSABI_WINDOWS for i386.
7516 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7517 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7518 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7519 for x86-64.
7520 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7521 when the target matches '*-*-mingw*'.
7522
7523 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7524
7525 * defs.h (enum gdb_osabi): Move to...
7526 * osabi.h (enum gdb_osabi): ... here.
7527 * gdbarch.sh: Include osabi.h in gdbarch.h.
7528 * gdbarch.h: Re-generate.
7529
7530 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7531
7532 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7533 function.
7534 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7535
7536 2020-03-14 Tom Tromey <tom@tromey.com>
7537
7538 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7539 for C++.
7540 (c_type_print_modifier): Likewise. Add "language" parameter.
7541 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7542 (c_type_print_base_1): Update.
7543 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7544 constants.
7545 * type-stack.c (type_stack::insert): Handle tp_atomic and
7546 tp_restrict.
7547 (type_stack::follow_type_instance_flags): Likewise.
7548 (type_stack::follow_types): Likewise. Merge type-following code.
7549 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7550 (space_identifier, cv_with_space_id)
7551 (const_or_volatile_or_space_identifier_noopt)
7552 (const_or_volatile_or_space_identifier): Remove.
7553 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7554 rules.
7555 (ptr_operator, typebase): Update.
7556 (enum token_flag) <FLAG_C>: New constant.
7557 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7558 "_Atomic".
7559 (lex_one_token): Handle FLAG_C.
7560
7561 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7562
7563 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7564 it to the ptrace call.
7565 * m68k-bsd-nat.c (store_registers): Likewise.
7566
7567 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7568
7569 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7570 gdb_byte *.
7571 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7572 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7573 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7574
7575 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7576
7577 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7578 nbsd_nat_target instead of inf_ptrace_target.
7579 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7580 nbsd_nat_target.
7581
7582 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7583
7584 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7585 register_t.
7586
7587 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7588
7589 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7590 it to the ptrace call.
7591 * alpha-bsd-nat.c (store_registers): Likewise.
7592
7593 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7594
7595 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7596 includes.
7597 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7598 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7599 fill_fpregset): Likewise.
7600
7601 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7602
7603 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7604 nbsd_nat_target instead of inf_ptrace_target.
7605 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7606 nbsd_nat_target.
7607
7608 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7609
7610 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7611 register_t.
7612
7613 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7614
7615 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7616 it to the ptrace call.
7617 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7618 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7619 * arm-nbsd-nat.c (store_register): Likewise.
7620 * arm-nbsd-nat.c (store_regs): Likewise.
7621 * arm-nbsd-nat.c (store_fp_register): Likewise.
7622 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7623
7624 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7625
7626 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7627 nbsd_nat_target instead of inf_ptrace_target.
7628 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7629 nbsd_nat_target.
7630
7631 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7632
7633 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7634 it to the ptrace call.
7635 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7636
7637 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7638
7639 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7640 it to the ptrace call.
7641 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7642
7643 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7644
7645 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7646 gdb_byte *.
7647 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7648
7649 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7650
7651 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7652 instead of inf_ptrace_target.
7653 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7654 nbsd_nat_target.
7655
7656 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7657
7658 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7659 register_t.
7660
7661 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7662
7663 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7664 register_t.
7665
7666 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7667
7668 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7669 register_t.
7670
7671 2020-03-13 Tom Tromey <tom@tromey.com>
7672
7673 * value.h (val_print): Don't declare.
7674 * valprint.h (val_print_array_elements)
7675 (val_print_scalar_formatted, generic_val_print): Don't declare.
7676 * valprint.c (generic_val_print_array): Take a struct value.
7677 (generic_val_print_ptr, generic_val_print_memberptr)
7678 (generic_val_print_bool, generic_val_print_int)
7679 (generic_val_print_char, generic_val_print_complex)
7680 (generic_val_print): Remove.
7681 (generic_value_print): Update.
7682 (do_val_print): Remove unused parameters. Don't call
7683 la_val_print.
7684 (val_print): Remove.
7685 (common_val_print): Update. Don't call value_check_printable.
7686 (val_print_scalar_formatted, val_print_array_elements): Remove.
7687 * rust-lang.c (rust_val_print): Remove.
7688 (rust_language_defn): Update.
7689 * p-valprint.c (pascal_val_print): Remove.
7690 (pascal_value_print_inner): Update.
7691 (pascal_object_print_val_fields, pascal_object_print_val):
7692 Remove.
7693 (pascal_object_print_static_field): Update.
7694 * p-lang.h (pascal_val_print): Don't declare.
7695 * p-lang.c (pascal_language_defn): Update.
7696 * opencl-lang.c (opencl_language_defn): Update.
7697 * objc-lang.c (objc_language_defn): Update.
7698 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7699 * m2-lang.h (m2_val_print): Don't declare.
7700 * m2-lang.c (m2_language_defn): Update.
7701 * language.h (struct language_defn) <la_val_print>: Remove.
7702 * language.c (unk_lang_value_print_inner): Rename. Change
7703 argument types.
7704 (unknown_language_defn, auto_language_defn): Update.
7705 * go-valprint.c (go_val_print): Remove.
7706 * go-lang.h (go_val_print): Don't declare.
7707 * go-lang.c (go_language_defn): Update.
7708 * f-valprint.c (f_val_print): Remove.
7709 * f-lang.h (f_value_print): Don't declare.
7710 * f-lang.c (f_language_defn): Update.
7711 * d-valprint.c (d_val_print): Remove.
7712 * d-lang.h (d_value_print): Don't declare.
7713 * d-lang.c (d_language_defn): Update.
7714 * cp-valprint.c (cp_print_value_fields)
7715 (cp_print_value_fields_rtti, cp_print_value): Remove.
7716 (cp_print_static_field): Update.
7717 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7718 (c_val_print_struct, c_val_print_union, c_val_print_int)
7719 (c_val_print_memberptr, c_val_print): Remove.
7720 * c-lang.h (c_val_print_array, cp_print_value_fields)
7721 (cp_print_value_fields_rtti): Don't declare.
7722 * c-lang.c (c_language_defn, cplus_language_defn)
7723 (asm_language_defn, minimal_language_defn): Update.
7724 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7725 (ada_val_print_enum): Take a struct value.
7726 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7727 (ada_val_print): Remove.
7728 (ada_value_print_1): Update.
7729 (printable_val_type): Remove.
7730 * ada-lang.h (ada_val_print): Don't declare.
7731 * ada-lang.c (ada_language_defn): Update.
7732
7733 2020-03-13 Tom Tromey <tom@tromey.com>
7734
7735 * valprint.c (do_val_print): Update.
7736 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7737 a struct value.
7738 (value_to_value_object_no_release): Declare.
7739 * python/py-value.c (value_to_value_object_no_release): New
7740 function.
7741 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7742 struct value.
7743 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7744 function.
7745 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7746 a struct value.
7747 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7748 Declare.
7749 (gdbscm_apply_val_pretty_printer): Take a struct value.
7750 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7751 value.
7752 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7753 value.
7754 * extension-priv.h (struct extension_language_ops)
7755 <apply_val_pretty_printer>: Take a struct value.
7756 * cp-valprint.c (cp_print_value): Create a struct value.
7757 (cp_print_value): Update.
7758
7759 2020-03-13 Tom Tromey <tom@tromey.com>
7760
7761 * ada-valprint.c (print_field_values): Call common_val_print.
7762
7763 2020-03-13 Tom Tromey <tom@tromey.com>
7764
7765 * ada-valprint.c (val_print_packed_array_elements): Remove
7766 bitoffset and val parameters. Call common_val_print.
7767 (ada_val_print_string): Remove offset, address, and original_value
7768 parameters.
7769 (ada_val_print_array): Update.
7770 (ada_value_print_array): New function.
7771 (ada_value_print_1): Call it.
7772
7773 2020-03-13 Tom Tromey <tom@tromey.com>
7774
7775 * ada-valprint.c (ada_value_print): Use common_val_print.
7776
7777 2020-03-13 Tom Tromey <tom@tromey.com>
7778
7779 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7780
7781 2020-03-13 Tom Tromey <tom@tromey.com>
7782
7783 * ada-valprint.c (ada_value_print_num): New function.
7784 (ada_value_print_1): Use it.
7785
7786 2020-03-13 Tom Tromey <tom@tromey.com>
7787
7788 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7789
7790 2020-03-13 Tom Tromey <tom@tromey.com>
7791
7792 * ada-valprint.c (ada_value_print_ptr): New function.
7793 (ada_value_print_1): Use it.
7794
7795 2020-03-13 Tom Tromey <tom@tromey.com>
7796
7797 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7798 call common_val_print.
7799 (ada_val_print_1): Update.
7800 (ada_value_print_1): New function.
7801 (ada_value_print_inner): Rewrite.
7802
7803 2020-03-13 Tom Tromey <tom@tromey.com>
7804
7805 * cp-valprint.c (cp_print_value_fields): Update.
7806 (cp_print_value): New function.
7807
7808 2020-03-13 Tom Tromey <tom@tromey.com>
7809
7810 * m2-valprint.c (m2_value_print_inner): Use
7811 cp_print_value_fields.
7812 * cp-valprint.c (cp_print_value_fields): New function.
7813 * c-valprint.c (c_value_print_struct): New function.
7814 (c_value_print_inner): Use c_value_print_struct.
7815 * c-lang.h (cp_print_value_fields): Declare.
7816
7817 2020-03-13 Tom Tromey <tom@tromey.com>
7818
7819 * c-valprint.c (c_value_print_array): New function.
7820 (c_value_print_inner): Use it.
7821
7822 2020-03-13 Tom Tromey <tom@tromey.com>
7823
7824 * c-valprint.c (c_value_print_memberptr): New function.
7825 (c_value_print_inner): Use it.
7826
7827 2020-03-13 Tom Tromey <tom@tromey.com>
7828
7829 * c-valprint.c (c_value_print_int): New function.
7830 (c_value_print_inner): Use it.
7831
7832 2020-03-13 Tom Tromey <tom@tromey.com>
7833
7834 * c-valprint.c (c_value_print_ptr): New function.
7835 (c_value_print_inner): Use it.
7836
7837 2020-03-13 Tom Tromey <tom@tromey.com>
7838
7839 * c-valprint.c (c_value_print_inner): Rewrite.
7840
7841 2020-03-13 Tom Tromey <tom@tromey.com>
7842
7843 * valprint.c (generic_value_print_complex): New function.
7844 (generic_value_print): Use it.
7845
7846 2020-03-13 Tom Tromey <tom@tromey.com>
7847
7848 * valprint.c (generic_val_print_float): Don't call
7849 val_print_scalar_formatted.
7850 (generic_val_print, generic_value_print): Update.
7851
7852 2020-03-13 Tom Tromey <tom@tromey.com>
7853
7854 * valprint.c (generic_value_print_char): New function
7855 (generic_value_print): Use it.
7856
7857 2020-03-13 Tom Tromey <tom@tromey.com>
7858
7859 * valprint.c (generic_value_print_int): New function.
7860 (generic_value_print): Use it.
7861
7862 2020-03-13 Tom Tromey <tom@tromey.com>
7863
7864 * valprint.c (generic_value_print_bool): New function.
7865 (generic_value_print): Use it.
7866
7867 2020-03-13 Tom Tromey <tom@tromey.com>
7868
7869 * valprint.c (generic_val_print_func): Simplify.
7870 (generic_val_print, generic_value_print): Update.
7871
7872 2020-03-13 Tom Tromey <tom@tromey.com>
7873
7874 * valprint.c (generic_val_print_flags): Remove.
7875 (generic_val_print, generic_value_print): Update.
7876 (val_print_type_code_flags): Add original_value parameter.
7877
7878 2020-03-13 Tom Tromey <tom@tromey.com>
7879
7880 * valprint.c (generic_val_print): Update.
7881 (generic_value_print): Update.
7882 * valprint.c (generic_val_print_enum): Don't call
7883 val_print_scalar_formatted.
7884
7885 2020-03-13 Tom Tromey <tom@tromey.com>
7886
7887 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7888 * valprint.c (generic_value_print_ptr): New function.
7889
7890 2020-03-13 Tom Tromey <tom@tromey.com>
7891
7892 * valprint.c (generic_value_print): Rewrite.
7893
7894 2020-03-13 Tom Tromey <tom@tromey.com>
7895
7896 * p-valprint.c (pascal_object_print_value_fields)
7897 (pascal_object_print_value): New functions.
7898
7899 2020-03-13 Tom Tromey <tom@tromey.com>
7900
7901 * p-valprint.c (pascal_value_print_inner): Rewrite.
7902
7903 2020-03-13 Tom Tromey <tom@tromey.com>
7904
7905 * f-valprint.c (f_value_print_innner): Rewrite.
7906
7907 2020-03-13 Tom Tromey <tom@tromey.com>
7908
7909 * m2-valprint.c (m2_print_unbounded_array): New overload.
7910 (m2_print_unbounded_array): Update.
7911 (m2_print_array_contents): Take a struct value.
7912 (m2_value_print_inner): Rewrite.
7913
7914 2020-03-13 Tom Tromey <tom@tromey.com>
7915
7916 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7917 (d_value_print_inner): New function.
7918 * d-lang.h (d_value_print_inner): Declare.
7919 * d-lang.c (d_language_defn): Use d_value_print_inner.
7920
7921 2020-03-13 Tom Tromey <tom@tromey.com>
7922
7923 * go-valprint.c (go_value_print_inner): New function.
7924 * go-lang.h (go_value_print_inner): Declare.
7925 * go-lang.c (go_language_defn): Use go_value_print_inner.
7926
7927 2020-03-13 Tom Tromey <tom@tromey.com>
7928
7929 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7930 API.
7931 (rust_val_print): Rewrite.
7932 (rust_value_print_inner): New function, from rust_val_print.
7933 (rust_language_defn): Use rust_value_print_inner.
7934
7935 2020-03-13 Tom Tromey <tom@tromey.com>
7936
7937 * ada-valprint.c (ada_value_print_inner): New function.
7938 * ada-lang.h (ada_value_print_inner): Declare.
7939 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7940
7941 2020-03-13 Tom Tromey <tom@tromey.com>
7942
7943 * f-valprint.c (f_value_print_innner): New function.
7944 * f-lang.h (f_value_print_innner): Declare.
7945 * f-lang.c (f_language_defn): Use f_value_print_innner.
7946
7947 2020-03-13 Tom Tromey <tom@tromey.com>
7948
7949 * p-valprint.c (pascal_value_print_inner): New function.
7950 * p-lang.h (pascal_value_print_inner): Declare.
7951 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7952
7953 2020-03-13 Tom Tromey <tom@tromey.com>
7954
7955 * m2-valprint.c (m2_value_print_inner): New function.
7956 * m2-lang.h (m2_value_print_inner): Declare.
7957 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7958
7959 2020-03-13 Tom Tromey <tom@tromey.com>
7960
7961 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7962 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7963 * c-valprint.c (c_value_print_inner): New function.
7964 * c-lang.h (c_value_print_inner): Declare.
7965 * c-lang.c (c_language_defn, cplus_language_defn)
7966 (asm_language_defn, minimal_language_defn): Use
7967 c_value_print_inner.
7968
7969 2020-03-13 Tom Tromey <tom@tromey.com>
7970
7971 * p-valprint.c (pascal_object_print_value_fields): Now static.
7972 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7973
7974 2020-03-13 Tom Tromey <tom@tromey.com>
7975
7976 * c-valprint.c (c_val_print_array): Simplify.
7977
7978 2020-03-13 Tom Tromey <tom@tromey.com>
7979
7980 * valprint.c (value_print_array_elements): New function.
7981 * valprint.h (value_print_array_elements): Declare.
7982
7983 2020-03-13 Tom Tromey <tom@tromey.com>
7984
7985 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7986 * mips-tdep.c (mips_print_register): Use
7987 value_print_scalar_formatted.
7988
7989 2020-03-13 Tom Tromey <tom@tromey.com>
7990
7991 * valprint.h (value_print_scalar_formatted): Declare.
7992 * valprint.c (value_print_scalar_formatted): New function.
7993
7994 2020-03-13 Tom Tromey <tom@tromey.com>
7995
7996 * valprint.h (generic_value_print): Declare.
7997 * valprint.c (generic_value_print): New function.
7998
7999 2020-03-13 Tom Tromey <tom@tromey.com>
8000
8001 * valprint.c (do_val_print): Call la_value_print_inner, if
8002 available.
8003 * rust-lang.c (rust_language_defn): Update.
8004 * p-lang.c (pascal_language_defn): Update.
8005 * opencl-lang.c (opencl_language_defn): Update.
8006 * objc-lang.c (objc_language_defn): Update.
8007 * m2-lang.c (m2_language_defn): Update.
8008 * language.h (struct language_defn) <la_value_print_inner>: New
8009 member.
8010 * language.c (unknown_language_defn, auto_language_defn): Update.
8011 * go-lang.c (go_language_defn): Update.
8012 * f-lang.c (f_language_defn): Update.
8013 * d-lang.c (d_language_defn): Update.
8014 * c-lang.c (c_language_defn, cplus_language_defn)
8015 (asm_language_defn, minimal_language_defn): Update.
8016 * ada-lang.c (ada_language_defn): Update.
8017
8018 2020-03-13 Tom Tromey <tom@tromey.com>
8019
8020 * c-valprint.c (c_value_print): Use common_val_print.
8021
8022 2020-03-13 Tom Tromey <tom@tromey.com>
8023
8024 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8025
8026 2020-03-13 Tom Tromey <tom@tromey.com>
8027
8028 * f-valprint.c (f77_print_array_1, f_val_print): Use
8029 common_val_print.
8030
8031 2020-03-13 Tom Tromey <tom@tromey.com>
8032
8033 * riscv-tdep.c (riscv_print_one_register_info): Use
8034 common_val_print.
8035
8036 2020-03-13 Tom Tromey <tom@tromey.com>
8037
8038 * mi/mi-main.c (output_register): Use common_val_print.
8039
8040 2020-03-13 Tom Tromey <tom@tromey.com>
8041
8042 * infcmd.c (default_print_one_register_info): Use
8043 common_val_print.
8044
8045 2020-03-13 Tom Tromey <tom@tromey.com>
8046
8047 * valprint.h (common_val_print_checked): Declare.
8048 * valprint.c (common_val_print_checked): New function.
8049 * stack.c (print_frame_arg): Use common_val_print_checked.
8050
8051 2020-03-13 Tom Tromey <tom@tromey.com>
8052
8053 * valprint.c (do_val_print): New function, from val_print.
8054 (val_print): Use do_val_print.
8055 (common_val_print): Use do_val_print.
8056
8057 2020-03-13 Tom Tromey <tom@tromey.com>
8058
8059 * valprint.c (value_print): Use scoped_value_mark.
8060
8061 2020-03-13 Tom de Vries <tdevries@suse.de>
8062
8063 PR symtab/25646
8064 * psymtab.c (partial_symtab::partial_symtab): Don't set
8065 globals_offset and statics_offset. Push element onto
8066 current_global_psymbols and current_static_psymbols stacks.
8067 (concat): New function.
8068 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8069 element from current_global_psymbols and current_static_psymbols
8070 stacks. Concat popped elements to global_psymbols and
8071 static_symbols.
8072 (add_psymbol_to_list): Use current_global_psymbols and
8073 current_static_psymbols stacks.
8074 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8075 current_static_psymbols fields.
8076
8077 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8078
8079 * corelow.c (sniff_core_bfd): Remove.
8080 (class core_target) <m_core_vec>: Remove.
8081 (core_target::core_target): Update.
8082 (core_file_fns): Remove.
8083 (deprecated_add_core_fns): Remove.
8084 (default_core_sniffer): Remove.
8085 (sniff_core_bfd): Remove.
8086 (default_check_format): Remove.
8087 (gdb_check_format): Remove.
8088 (core_target_open): Update.
8089 (core_target::get_core_register_section): Update.
8090 (get_core_registers_cb): Update.
8091 (core_target::fetch_registers): Update.
8092 * gdbcore.h (struct core_fns): Remove.
8093 (deprecated_add_core_fns): Remove.
8094 (default_core_sniffer): Remove.
8095 (default_check_format): Remove.
8096
8097 2020-03-12 Tom Tromey <tom@tromey.com>
8098
8099 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8100 CORE_ADDR.
8101 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8102
8103 2020-03-12 Tom Tromey <tom@tromey.com>
8104
8105 * remote.c (remote_target::download_tracepoint)
8106 (remote_target::enable_tracepoint)
8107 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8108 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8109 sprintf_vma.
8110
8111 2020-03-12 Tom Tromey <tom@tromey.com>
8112
8113 * symfile-mem.c: Update CORE_ADDR size assert.
8114
8115 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8116
8117 * selftest.m4: Move to gdbsupport/.
8118 * acinclude.m4: Update path to selftest.m4.
8119
8120 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8121
8122 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8123 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8124 gdbarch-selfselftests.c and selftest-arch.c.
8125 (SUBDIR_UNITTESTS_OBS): Rename to...
8126 (SELFTESTS_OBS): ... this.
8127 (COMMON_SFILES): Remove disasm-selftests.c and
8128 gdbarch-selftests.c.
8129 * configure.ac: Don't add selftest-arch.{c,o} to
8130 CONFIG_{SRCS,OBS}.
8131 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8132 preprocessor conditions.
8133
8134 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8135
8136 * configure.ac: Don't source bfd/development.sh.
8137 * selftest.m4: Modify comment.
8138 * configure: Re-generate.
8139
8140 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8141
8142 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8143 not "true" or "false".
8144 * configure: Re-generate.
8145
8146 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8147
8148 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8149 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8150 renamed to arm_nbsd_supply_gregset.
8151 (fetch_register): Update to call arm_nbsd_supply_gregset.
8152 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8153 (arm_netbsd_nat_target::fetch_registers): Update.
8154 (fetch_elfcore_registers): Removed.
8155 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8156 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8157 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8158 not require NetBSD system headers.
8159 (arm_nbsd_regset): New struct.
8160 (arm_nbsd_iterate_over_regset_sections): New function.
8161 (arm_netbsd_init_abi_common): Updated to call
8162 set_gdbarch_iterate_over_regset_sections.
8163 * arm-nbsd-tdep.h: New file.
8164
8165 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8166
8167 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8168 recursion.
8169
8170 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8171
8172 * configure: Re-generate.
8173
8174 2020-03-11 Tom Tromey <tromey@adacore.com>
8175
8176 * ada-typeprint.c (print_choices): Fix comment.
8177
8178 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8179
8180 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8181 previous item in the list, when the list has no items.
8182
8183 2020-03-11 Tom de Vries <tdevries@suse.de>
8184
8185 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8186 PROP_LOCLIST handling code.
8187
8188 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8189
8190 * buildsym-legacy.c (record_line): Pass extra parameter to
8191 record_line.
8192 * buildsym.c (buildsym_compunit::record_line): Take an extra
8193 parameter, reduce duplication in the line table, and record the
8194 is_stmt flag in the line table.
8195 * buildsym.h (buildsym_compunit::record_line): Add extra
8196 parameter.
8197 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8198 non-statement lines.
8199 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8200 this to the symtab builder.
8201 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8202 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8203 through to dwarf_record_line_1.
8204 * infrun.c (process_event_stop_test): When stepping, don't stop at
8205 a non-statement instruction, and only refresh the step info when
8206 we land in the middle of a line's range. Also add an extra
8207 comment.
8208 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8209 field.
8210 * record-btrace.c (btrace_find_line_range): Only record lines
8211 marked as is-statement.
8212 * stack.c (frame_show_address): Show the frame address if we are
8213 in a non-statement sal.
8214 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8215 (maintenance_print_one_line_table): Print a header for the is_stmt
8216 column, and include is_stmt information in the output.
8217 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8218 preference to non-statements.
8219 (find_pcs_for_symtab_line): Prefer is-statement entries.
8220 (find_line_common): Likewise.
8221 * symtab.h (struct linetable_entry): Add is_stmt field.
8222 (struct symtab_and_line): Likewise.
8223 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8224 arranging the line table.
8225
8226 2020-03-07 Tom de Vries <tdevries@suse.de>
8227
8228 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8229 DIE.
8230
8231 2020-03-07 Tom Tromey <tom@tromey.com>
8232
8233 * valops.c (value_literal_complex): Remove obsolete comment.
8234 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8235 comment.
8236
8237 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8238
8239 * infrun.h: Forward-declare thread_info.
8240 (set_step_info): Add thread_info parameter, add doc.
8241 * infrun.c (set_step_info): Add thread_info parameter, move doc
8242 to header.
8243 * infrun.c (process_event_stop_test): Pass thread to
8244 set_step_info call.
8245 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8246 set_step_info.
8247 (prepare_one_step): Add thread_info parameter, pass it to
8248 set_step_frame and prepare_one_step (recursive) call.
8249 (step_1): Pass thread to prepare_one_step call.
8250 (step_command_fsm::should_stop): Pass thread to
8251 prepare_one_step.
8252 (until_next_fsm): Pass thread to set_step_frame call.
8253 (finish_command): Pass thread to set_step_info call.
8254
8255 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8256
8257 * windows-tdep.c (windows_solib_create_inferior_hook):
8258 Check if inferior is running.
8259
8260 2020-03-06 Tom de Vries <tdevries@suse.de>
8261
8262 * NEWS: Fix "the the".
8263 * ctfread.c: Same.
8264
8265 2020-03-06 Tom de Vries <tdevries@suse.de>
8266
8267 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8268
8269 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8270
8271 * .dir-locals.el: Add a comment referencing the other copies of
8272 this file.
8273
8274 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8275
8276 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8277 psargs.
8278
8279 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8280
8281 * .gitattributes: New file.
8282
8283 2020-03-04 Tom Tromey <tom@tromey.com>
8284
8285 * symmisc.c (print_symbol_bcache_statistics)
8286 (print_objfile_statistics): Update.
8287 * symfile.c (allocate_symtab): Use intern.
8288 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8289 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8290 macro_cache>: Remove.
8291 <string_cache>: New member.
8292 (struct objfile) <intern>: New methods.
8293 * elfread.c (elf_symtab_read): Use intern.
8294 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8295 (dwarf2_compute_name, dwarf2_physname)
8296 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8297 names.
8298 (guess_partial_die_structure_name): Update.
8299 (partial_die_info::fixup): Intern name.
8300 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8301 name.
8302 (dwarf2_name): Intern name. Update.
8303 * buildsym.c (buildsym_compunit::get_macro_table): Use
8304 string_cache.
8305
8306 2020-03-04 Tom Tromey <tom@tromey.com>
8307
8308 * jit.c (bfd_open_from_target_memory): Make "target" const.
8309 * corefile.c (gnutarget): Now const.
8310 * gdbcore.h (gnutarget): Now const.
8311
8312 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8313
8314 * NEWS: Mention support for WOW64 processes.
8315 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8316 (amd64_windows_segment_register_p): Remove static.
8317 (_initialize_amd64_windows_nat): Update.
8318 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8319 * i386-windows-nat.c (context_offset): Update.
8320 (i386_mappings): Rename and remove static.
8321 (i386_windows_segment_register_p): Remove static.
8322 (_initialize_i386_windows_nat): Update.
8323 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8324 (STATUS_WX86_SINGLE_STEP): New macro.
8325 (EnumProcessModulesEx): New macro.
8326 (Wow64SuspendThread): New macro.
8327 (Wow64GetThreadContext): New macro.
8328 (Wow64SetThreadContext): New macro.
8329 (Wow64GetThreadSelectorEntry): New macro.
8330 (windows_set_context_register_offsets): Add static.
8331 (windows_set_segment_register_p): Likewise.
8332 (windows_add_thread): Adapt for WOW64 processes.
8333 (windows_fetch_one_register): Likewise.
8334 (windows_nat_target::fetch_registers): Likewise.
8335 (windows_store_one_register): Likewise.
8336 (display_selector): Likewise.
8337 (display_selectors): Likewise.
8338 (handle_exception): Likewise.
8339 (windows_continue): Likewise.
8340 (windows_nat_target::resume): Likewise.
8341 (windows_add_all_dlls): Likewise.
8342 (do_initial_windows_stuff): Likewise.
8343 (windows_nat_target::attach): Likewise.
8344 (windows_get_exec_module_filename): Likewise.
8345 (windows_nat_target::create_inferior): Likewise.
8346 (windows_xfer_siginfo): Likewise.
8347 (_initialize_loadable): Initialize Wow64SuspendThread,
8348 Wow64GetThreadContext, Wow64SetThreadContext,
8349 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8350 * windows-nat.h (windows_set_context_register_offsets):
8351 Remove declaration.
8352 (windows_set_segment_register_p): Likewise.
8353 (i386_windows_segment_register_p): Add declaration.
8354 (amd64_windows_segment_register_p): Likewise.
8355
8356 2020-03-04 Luis Machado <luis.machado@linaro.org>
8357
8358 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8359 in "info registers" for AArch64/ARM.
8360
8361 The change caused "info registers" to not print GPR's.
8362
8363 gdb/ChangeLog:
8364
8365 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8366
8367 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8368 when reg->group is empty and reggroup is not.
8369
8370 2020-03-03 Tom Tromey <tromey@adacore.com>
8371
8372 * dwarf2/frame.c (struct dwarf2_frame_cache)
8373 <checked_tailcall_bottom, entry_cfa_sp_offset,
8374 entry_cfa_sp_offset_p>: Remove members.
8375 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8376 (dwarf2_frame_prev_register): Don't call
8377 dwarf2_tailcall_sniffer_first.
8378 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8379 * frame-unwind.c (add_unwinder): New fuction.
8380 (frame_unwind_init): Use it. Add tailcall unwinder.
8381
8382 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8383 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8384
8385 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8386 value should be printed as true.
8387
8388 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8389
8390 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8391 (windows_init_abi): Set and use windows_so_ops.
8392
8393 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8394
8395 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8396 when verifying if dealing with a convenience variable.
8397
8398 2020-03-03 Luis Machado <luis.machado@linaro.org>
8399
8400 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8401
8402 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8403
8404 * infrun.c (gdbarch_supports_displaced_stepping): New.
8405 (use_displaced_stepping): Break up conditions in smaller pieces.
8406 Use gdbarch_supports_displaced_stepping.
8407 (displaced_step_prepare_throw): Use
8408 gdbarch_supports_displaced_stepping.
8409
8410 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8411
8412 * NEWS: Mention new behaviour of the history filename.
8413 * top.c (write_history_p): Add comment.
8414 (show_write_history_p): Add header comment, give a different
8415 message when history writing is on, but the history filename is
8416 empty.
8417 (history_filename): Add comment.
8418 (history_filename_empty): New function.
8419 (show_history_filename): Add header comment, give a different
8420 message when the filename is empty.
8421 (init_history): Compare history_filename against nullptr, and only
8422 read history if the filename is not empty.
8423 (set_history_filename): Add header comment, and only make
8424 non-empty filenames absolute.
8425 (init_main): Make the filename argument to 'set history filename'
8426 optional.
8427
8428 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8429
8430 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8431 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8432 (fetch_fp_register): Update.
8433 (fetch_fp_regs): Update.
8434 (store_fp_register): Update.
8435 (store_fp_regs): Update.
8436 (arm_netbsd_nat_target::read_description): New function.
8437 (fetch_elfcore_registers): Update.
8438
8439 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8440
8441 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8442 general_thread if the stop reply is missing a thread-id.
8443 (remote_target::process_stop_reply): Use the first non-exited
8444 thread if the target didn't pass a thread-id.
8445 * infrun.c (do_target_wait): Move call to
8446 switch_to_inferior_no_thread to ....
8447 (do_target_wait_1): ... here.
8448
8449 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8450
8451 * debuginfod-support.c: Include defs.h first.
8452
8453 2020-02-28 Tom de Vries <tdevries@suse.de>
8454
8455 * symfile.c (set_initial_language): Use default language for lookup.
8456
8457 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8458
8459 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8460 reader variable, pass `this` to read_cutu_die_from_dwo.
8461
8462 2020-02-27 Aaron Merey <amerey@redhat.com>
8463
8464 * source.c (open_source_file): Check for nullptr when computing
8465 srcpath.
8466
8467 2020-02-27 Tom Tromey <tromey@adacore.com>
8468
8469 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8470 member.
8471 (dwarf2_add_field): Don't update nfields.
8472 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8473
8474 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8475
8476 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8477 abs.
8478
8479 2020-02-26 Tom Tromey <tom@tromey.com>
8480
8481 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8482 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8483 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8484 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8485 per_cu_data.
8486
8487 2020-02-26 Tom Tromey <tom@tromey.com>
8488
8489 * dwarf2/index-write.c (psym_index_map): Change type.
8490 (add_address_entry_worker, write_one_signatured_type)
8491 (recursively_count_psymbols, recursively_write_psymbols)
8492 (class debug_names, psyms_seen_size, write_gdbindex)
8493 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8494
8495 2020-02-26 Aaron Merey <amerey@redhat.com>
8496
8497 * Makefile.in: Handle optional debuginfod support.
8498 * NEWS: Update.
8499 * README: Add --with-debuginfod summary.
8500 * config.in: Regenerate.
8501 * configure: Regenerate.
8502 * configure.ac: Handle optional debuginfod support.
8503 * debuginfod-support.c: debuginfod helper functions.
8504 * debuginfod-support.h: Ditto.
8505 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8506 summary.
8507 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8508 when a dwz file cannot be found.
8509 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8510 debuginfo file cannot be found.
8511 * source.c (open_source_file): Query debuginfod servers when a
8512 source file cannot be found.
8513 * top.c (print_gdb_configuration): Include
8514 --{with,without}-debuginfod in the output.
8515
8516 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8517
8518 * thread.c (thr_try_catch_cmd): Print thread name.
8519
8520 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8521
8522 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8523 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8524 dwarf2_fetch_die_type_sect_off): Move to...
8525 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8526 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8527 dwarf2_fetch_die_type_sect_off): ... here.
8528 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8529 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8530 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8531
8532 2020-02-26 Tom de Vries <tdevries@suse.de>
8533
8534 PR gdb/25603
8535 * symfile.c (set_initial_language): Exit-early if
8536 language_mode == language_mode_manual.
8537
8538 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8539
8540 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8541 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8542 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8543
8544 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8545
8546 * gdbtypes.c (create_array_type_with_stride): Handle negative
8547 array strides.
8548 * valarith.c (value_subscripted_rvalue): Likewise.
8549
8550 2020-02-25 Luis Machado <luis.machado@linaro.org>
8551
8552 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8553
8554 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8555
8556 * loc.h (dwarf2_get_die_type): Move to...
8557 * read.h (dwarf2_get_die_type): ... here.
8558 * read.c (dwarf2_get_die_type): Move doc to header.
8559
8560 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8561
8562 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8563 'gnulib/Makefile.in' to the list.
8564
8565 2020-02-24 Tom Tromey <tom@tromey.com>
8566
8567 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8568 Remove.
8569 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8570 XOBNEWVEC.
8571
8572 2020-02-24 Tom Tromey <tom@tromey.com>
8573
8574 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8575 New method.
8576 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8577 (dw2_do_instantiate_symtab, dw2_get_file_names)
8578 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8579
8580 2020-02-24 Tom Tromey <tom@tromey.com>
8581
8582 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8583 make_scoped_restore.
8584 (dwarf2_psymtab::read_symtab): Don't clear
8585 reading_partial_symbols.
8586
8587 2020-02-24 Tom de Vries <tdevries@suse.de>
8588
8589 PR gdb/25592
8590 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8591
8592 2020-02-24 Tom de Vries <tdevries@suse.de>
8593
8594 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8595 commands layout next/prev/regs.
8596
8597 2020-02-22 Tom Tromey <tom@tromey.com>
8598
8599 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8600 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8601
8602 2020-02-22 Tom Tromey <tom@tromey.com>
8603
8604 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8605
8606 2020-02-22 Tom Tromey <tom@tromey.com>
8607
8608 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8609 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8610 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8611 * tui/tui.c (_initialize_tui): Add usage text.
8612
8613 2020-02-22 Tom Tromey <tom@tromey.com>
8614
8615 * tui/tui-win.c (tui_set_focus_command)
8616 (tui_set_win_height_command): Use error_no_arg.
8617 (_initialize_tui_win): Update help text.
8618 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8619
8620 2020-02-22 Tom Tromey <tom@tromey.com>
8621
8622 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8623 * tui/tui-disasm.h (struct tui_disasm_window)
8624 <display_start_addr>: Declare.
8625 * tui/tui-source.h (struct tui_source_window)
8626 <display_start_addr>: Declare.
8627 * tui/tui-winsource.h (struct tui_source_window_base)
8628 <show_source_line, display_start_addr>: New methods.
8629 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8630 Rename and move to protected section.
8631 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8632 (tui_source_window_base::do_erase_source_content): Update.
8633 (tui_source_window_base::show_source_line): Now a method.
8634 (tui_source_window_base::show_source_content)
8635 (tui_source_window_base::tui_source_window_base)
8636 (tui_source_window_base::rerender)
8637 (tui_source_window_base::refill)
8638 (tui_source_window_base::do_scroll_horizontal)
8639 (tui_source_window_base::set_is_exec_point_at)
8640 (tui_source_window_base::update_breakpoint_info)
8641 (tui_source_window_base::update_exec_info): Update.
8642 * tui/tui-source.c (tui_source_window::set_contents)
8643 (tui_source_window::showing_source_p)
8644 (tui_source_window::do_scroll_vertical)
8645 (tui_source_window::location_matches_p)
8646 (tui_source_window::line_is_displayed): Update.
8647 (tui_source_window::display_start_addr): New method.
8648 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8649 (tui_disasm_window::do_scroll_vertical)
8650 (tui_disasm_window::location_matches_p): Update.
8651 (tui_disasm_window::display_start_addr): New method.
8652
8653 2020-02-22 Tom Tromey <tom@tromey.com>
8654
8655 * NEWS: Add entry for gdb.register_window_type.
8656 * tui/tui-layout.h (window_factory): New typedef.
8657 (tui_register_window): Declare.
8658 * tui/tui-layout.c (saved_tui_windows): New global.
8659 (tui_apply_current_layout): Use it.
8660 (tui_register_window): New function.
8661 * python/python.c (do_start_initialization): Call
8662 gdbpy_initialize_tui.
8663 (python_GdbMethods): Add "register_window_type" function.
8664 * python/python-internal.h (gdbpy_register_tui_window)
8665 (gdbpy_initialize_tui): Declare.
8666 * python/py-tui.c: New file.
8667 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8668
8669 2020-02-22 Tom Tromey <tom@tromey.com>
8670
8671 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8672
8673 2020-02-22 Tom Tromey <tom@tromey.com>
8674
8675 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8676 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8677 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8678 (tui_set_win_focus_to): Move from tui-win.c.
8679
8680 2020-02-22 Tom Tromey <tom@tromey.com>
8681
8682 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8683 functions.
8684 (known_window_types): New global.
8685 (tui_get_window_by_name): Reimplement.
8686 (initialize_known_windows): New function.
8687 (validate_window_name): Rewrite.
8688 (_initialize_tui_layout): Call initialize_known_windows.
8689
8690 2020-02-22 Tom Tromey <tom@tromey.com>
8691
8692 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8693 Remove constants.
8694 * tui/tui-winsource.h (struct tui_source_window_base)
8695 <tui_source_window_base>: Remove parameter.
8696 * tui/tui-winsource.c
8697 (tui_source_window_base::tui_source_window_base): Remove
8698 parameter.
8699 (tui_source_window_base::refill): Update.
8700 * tui/tui-stack.h (struct tui_locator_window)
8701 <tui_locator_window>: Update.
8702 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8703 Default the constructor.
8704 * tui/tui-regs.h (struct tui_data_item_window)
8705 <tui_data_item_window>: Default the constructor.
8706 (struct tui_data_window) <tui_data_window>: Likewise.
8707 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8708 Default the constructor.
8709 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8710 Default the constructor.
8711 <type>: Remove.
8712 (struct tui_win_info) <tui_win_info>: Default the constructor.
8713 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8714 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8715 Default the constructor.
8716
8717 2020-02-22 Tom Tromey <tom@tromey.com>
8718
8719 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8720 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8721 * tui/tui-win.c (tui_resize_all): Don't call
8722 tui_delete_invisible_windows.
8723 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8724 done.
8725 (tui_set_layout): Update.
8726 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8727 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8728 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8729
8730 2020-02-22 Tom Tromey <tom@tromey.com>
8731
8732 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8733 correctly.
8734
8735 2020-02-22 Tom Tromey <tom@tromey.com>
8736
8737 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8738
8739 2020-02-22 Tom Tromey <tom@tromey.com>
8740
8741 * tui/tui-winsource.h (struct tui_source_window_iterator)
8742 <inner_iterator>: New etytypedef.
8743 <tui_source_window_iterator>: Take "end" parameter.
8744 <tui_source_window_iterator>: Take iterator.
8745 <operator*, advance>: Update.
8746 <m_iter>: Change type.
8747 <m_end>: New field.
8748 (struct tui_source_windows) <begin, end>: Update.
8749 * tui/tui-layout.c (tui_windows): New global.
8750 (tui_apply_current_layout): Clear tui_windows.
8751 (tui_layout_window::apply): Update tui_windows.
8752 * tui/tui-data.h (tui_windows): Declare.
8753 (all_tui_windows): Now inline function.
8754 (class tui_window_iterator, struct all_tui_windows): Remove.
8755
8756 2020-02-22 Tom Tromey <tom@tromey.com>
8757
8758 PR tui/17850:
8759 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8760 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8761 "height" argument.
8762 (class tui_layout_window) <get_sizes>: Likewise.
8763 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8764 argument.
8765 <get_sizes>: Add "height" argument.
8766 <m_vertical>: New field.
8767 * tui/tui-layout.c (tui_layout_split::clone): Update.
8768 (tui_layout_split::get_sizes): Add "height" argument.
8769 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8770 (tui_new_layout_command): Parse "-horizontal".
8771 (_initialize_tui_layout): Update help string.
8772 (tui_layout_split::specification): Add "-horizontal" when needed.
8773 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8774 argument.
8775 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8776 New methods.
8777
8778 2020-02-22 Tom Tromey <tom@tromey.com>
8779
8780 * tui/tui-layout.h (enum tui_adjust_result): New.
8781 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8782 (class tui_layout_window) <adjust_size>: Return
8783 tui_adjust_result. Rewrite.
8784 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8785 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8786
8787 2020-02-22 Tom Tromey <tom@tromey.com>
8788
8789 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8790 parameter and return types.
8791 (class tui_layout_base) <specification>: Add "depth".
8792 (class tui_layout_window) <specification>: Add "depth".
8793 (class tui_layout_split) <specification>: Add "depth".
8794 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8795 and return types.
8796 (tui_new_layout_command): Parse sub-layouts.
8797 (_initialize_tui_layout): Update help string.
8798 (tui_layout_window::specification): Add "depth".
8799 (add_layout_command): Update.
8800
8801 2020-02-22 Tom Tromey <tom@tromey.com>
8802
8803 * NEWS: Add "tui new-layout" item.
8804 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8805 Add new-layout command to help text.
8806 (validate_window_name): New function.
8807 (tui_new_layout_command): New function.
8808 (_initialize_tui_layout): Register "new-layout".
8809 (tui_layout_window::specification): New method.
8810 (tui_layout_window::specification): New method.
8811 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8812 method.
8813 (class tui_layout_window) <specification>: New method.
8814 (class tui_layout_split) <specification>: New method.
8815
8816 2020-02-22 Tom Tromey <tom@tromey.com>
8817
8818 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8819 * tui/tui-win.c (window_name_completer): Update comment.
8820 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8821 Declare method.
8822 (class tui_layout_window) <replace_window>: Likewise.
8823 (class tui_layout_split) <replace_window>: Likewise.
8824 (tui_set_layout): Don't declare.
8825 (tui_set_initial_layout): Declare function.
8826 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8827 (asm_regs_layout): New globals.
8828 (tui_current_layout, show_layout): Remove.
8829 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8830 (find_layout, tui_apply_layout): New function.
8831 (layout_completer): Remove.
8832 (tui_next_layout): Reimplement.
8833 (tui_next_layout_command): New function.
8834 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8835 (tui_regs_layout): Reimplement.
8836 (tui_regs_layout_command): New function.
8837 (extract_display_start_addr): Rewrite.
8838 (next_layout, prev_layout): Remove.
8839 (tui_layout_window::replace_window): New method.
8840 (tui_layout_split::replace_window): New method.
8841 (destroy_layout): New function.
8842 (layout_list): New global.
8843 (add_layout_command): New function.
8844 (initialize_layouts): Update.
8845 (tui_layout_command): New function.
8846 (_initialize_tui_layout): Install "layout" commands.
8847 * tui/tui-data.h (enum tui_layout_type): Remove.
8848 (tui_current_layout): Don't declare.
8849
8850 2020-02-22 Tom Tromey <tom@tromey.com>
8851
8852 * tui/tui-regs.c (tui_reg_layout): Remove.
8853 (tui_reg_command): Use tui_regs_layout.
8854 * tui/tui-layout.h (tui_reg_command): Declare.
8855 * tui/tui-layout.c (tui_reg_command): New function.
8856
8857 2020-02-22 Tom Tromey <tom@tromey.com>
8858
8859 * tui/tui.c (tui_rl_delete_other_windows): Call
8860 tui_remove_some_windows.
8861 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8862 Declare method.
8863 (class tui_layout_window) <remove_windows>: New method.
8864 (class tui_layout_split) <remove_windows>: Declare.
8865 (tui_remove_some_windows): Declare.
8866 * tui/tui-layout.c (tui_remove_some_windows): New function.
8867 (tui_layout_split::remove_windows): New method.
8868
8869 2020-02-22 Tom Tromey <tom@tromey.com>
8870
8871 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8872 * tui/tui-layout.h (tui_next_layout): Declare.
8873 * tui/tui-layout.c (tui_next_layout): New function.
8874
8875 2020-02-22 Tom Tromey <tom@tromey.com>
8876
8877 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8878 correct coordinates.
8879
8880 2020-02-22 Tom Tromey <tom@tromey.com>
8881
8882 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8883 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8884 DATA_WIN case.
8885
8886 2020-02-22 Tom Tromey <tom@tromey.com>
8887
8888 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8889 TUI_DISASM_WIN, not tui_win_list.
8890
8891 2020-02-22 Tom Tromey <tom@tromey.com>
8892
8893 * valprint.c (generic_val_print_enum_1)
8894 (val_print_type_code_flags): Style member names.
8895 * rust-lang.c (val_print_struct, rust_print_enum)
8896 (rust_print_struct_def, rust_internal_print_type): Style member
8897 names.
8898 * p-valprint.c (pascal_object_print_value_fields): Style member
8899 names. Only call fprintf_symbol_filtered for static members.
8900 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8901 * f-valprint.c (f_val_print): Style member names.
8902 * f-typeprint.c (f_type_print_base): Style member names.
8903 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8904 call fprintf_symbol_filtered for static members.
8905 (cp_print_class_member): Style member names.
8906 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8907 member names.
8908 * ada-valprint.c (ada_print_scalar): Style enum names.
8909 (ada_val_print_enum): Likewise.
8910 * ada-typeprint.c (print_enum_type): Style enum names.
8911
8912 2020-02-21 Tom Tromey <tom@tromey.com>
8913
8914 * psympriv.h (struct partial_symtab): Update comment.
8915
8916 2020-02-21 Tom Tromey <tromey@adacore.com>
8917
8918 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8919 type is CORE_ADDR.
8920
8921 2020-02-21 Tom de Vries <tdevries@suse.de>
8922
8923 PR gdb/25534
8924 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8925 if dependencies[i]->user != NULL.
8926
8927 2020-02-21 Ali Tamur <tamur@google.com>
8928
8929 * dwarf2/read.c (dwarf2_name): Add null check.
8930
8931 2020-02-20 Tom Tromey <tom@tromey.com>
8932
8933 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8934 ">=", in binary search.
8935 (dwarf2_find_containing_comp_unit): New overload.
8936 (run_test): New self-test.
8937 (_initialize_dwarf2_read): Register new test.
8938
8939 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8940
8941 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8942 * riscv-tdep.h: Likewise.
8943 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8944 rv32-only CSR.
8945 * features/riscv/64bit-csr.xml: Regenerated.
8946
8947 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8948 Tom Tromey <tom@tromey.com>
8949
8950 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8951 of 'fputc_unfiltered'.
8952 (putchar_unfiltered): Call 'fputc_unfiltered'.
8953 (fputc_unfiltered): Call 'fputs_unfiltered'.
8954
8955 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8956
8957 * config.in: Regenerate.
8958 * configure: Regenerate.
8959 * configure.ac: Add --with-python-libdir option.
8960 * main.c: Use WITH_PYTHON_LIBDIR.
8961
8962 2020-02-19 Tom Tromey <tom@tromey.com>
8963
8964 * symtab.c (general_symbol_info::compute_and_set_names): Use
8965 obstack_strndup. Simplify call to symbol_set_demangled_name.
8966
8967 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
8968
8969 * dwarf2/read.c (allocate_signatured_type_table,
8970 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8971 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8972 Remove objfile parameter, update all callers.
8973
8974 2020-02-19 Doug Evans <dje@google.com>
8975
8976 PR rust/25535
8977 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8978 rust_enum_variant calculation.
8979
8980 2020-02-19 Tom Tromey <tromey@adacore.com>
8981
8982 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8983
8984 2020-02-19 Tom Tromey <tromey@adacore.com>
8985
8986 * ada-lang.c (cache_symbol): Use obstack_strdup.
8987
8988 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8989
8990 * configure: Regenerate.
8991
8992 2020-02-19 Tom Tromey <tromey@adacore.com>
8993
8994 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8995 NULL check.
8996
8997 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
8998
8999 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9000
9001 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9002
9003 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9004 if GDBSERVER is not defined.
9005 (riscv_tdesc_cache): Likewise, also store const target_desc.
9006 (STATIC_IN_GDB): Define.
9007 (riscv_create_target_description): Update declaration with
9008 STATIC_IN_GDB.
9009 (riscv_lookup_target_description): New function, only define if
9010 GDBSERVER is not defined.
9011 * arch/riscv.h (riscv_create_target_description): Declare only
9012 when GDBSERVER is defined.
9013 (riscv_lookup_target_description): New declaration when GDBSERVER
9014 is not defined.
9015 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9016 (riscv_linux_read_features): ...this, and return
9017 riscv_gdbarch_features instead of target_desc.
9018 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9019 (riscv_linux_read_description): Rename to...
9020 (riscv_linux_read_features): ...this.
9021 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9022 Update to use riscv_gdbarch_features and
9023 riscv_lookup_target_description.
9024 * riscv-tdep.c (riscv_find_default_target_description): Use
9025 riscv_lookup_target_description instead of
9026 riscv_create_target_description.
9027
9028 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9029
9030 * valprint.c (generic_val_print_enum_1): When printing a flag
9031 enum with value 0 and there is no enumerator with value 0, print
9032 just "0" instead of "(unknown: 0x0)".
9033
9034 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9035
9036 * valprint.c (generic_val_print_enum_1): Print unknown part of
9037 flag enum in hex.
9038
9039 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9040
9041 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9042 flag enums to contain duplicate enumerators.
9043 * valprint.c (generic_val_print_enum_1): Update comment.
9044
9045 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9046
9047 * dwarf2/read.c: Include "count-one-bits.h".
9048 (update_enumeration_type_from_children): If an enumerator has
9049 multiple bits set, don't treat the enumeration as a "flag enum".
9050 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9051 of flag enums have 0 or 1 bit set.
9052
9053 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9054
9055 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9056 conversion.
9057 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9058 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9059 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9060 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9061 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9062
9063 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9064
9065 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9066
9067 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9068
9069 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9070 displaced_step_closure_up.
9071 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9072 (struct displaced_step_closure_up):
9073 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9074 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9075 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9076 Likewise.
9077 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9078 * gdbarch.c, gdbarch.h: Re-generate.
9079 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9080 displaced_step_closure_up.
9081 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9082 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9083 * infrun.h (displaced_step_closure_up): New type alias.
9084 (struct displaced_step_inferior_state) <step_closure>: Change
9085 type to displaced_step_closure_up.
9086 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9087 displaced_step_closure_up.
9088 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9089
9090 2020-02-14 Tom Tromey <tom@tromey.com>
9091
9092 * minidebug.c (gnu_debug_key): New global.
9093 (find_separate_debug_file_in_section): Use it.
9094
9095 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9096
9097 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9098 std::unique_ptr.
9099 * gdbarch.c: Re-generate.
9100 * gdbarch.h: Re-generate.
9101 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9102 change.
9103 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9104 type to std::unique_ptr.
9105 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9106 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9107 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9108 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9109 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9110 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9111 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9112 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9113 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9114
9115 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9116
9117 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9118 std::unique_ptr.
9119 (displaced_step_clear): Rename to...
9120 (displaced_step_reset): ... this. Just call displaced->reset ().
9121 (displaced_step_clear_cleanup): Rename to...
9122 (displaced_step_reset_cleanup): ... this.
9123 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9124 (displaced_step_fixup): Likewise.
9125 (resume_1): Likewise.
9126 (handle_inferior_event): Restore child's memory before calling
9127 displaced_step_fixup on the parent.
9128 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9129 to std::unique_ptr.
9130 <step_closure>: Change type to std::unique_ptr.
9131
9132 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9133
9134 * arm-tdep.c: Include count-one-bits.h.
9135 (cleanup_block_store_pc): Use count_one_bits.
9136 (cleanup_block_load_pc): Use count_one_bits.
9137 (arm_copy_block_xfer): Use count_one_bits.
9138 (thumb2_copy_block_xfer): Use count_one_bits.
9139 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9140 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9141 (thumb_get_next_pcs_raw): Use count_one_bits.
9142 (arm_get_next_pcs_raw): Use count_one_bits_l.
9143 * arch/arm.c (bitcount): Remove.
9144 * arch/arm.h (bitcount): Remove.
9145
9146 2020-02-14 Tom Tromey <tromey@adacore.com>
9147
9148 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9149 Update.
9150 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9151 * dwarf2/loc.c (call_site_find_chain_1): Return
9152 unique_xmalloc_ptr.
9153 (call_site_find_chain): Likewise.
9154
9155 2020-02-14 Richard Biener <rguenther@suse.de>
9156
9157 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9158 on expression with division operators.
9159
9160 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9161
9162 * MAINTAINERS (Write After Approval): Adding myself.
9163
9164 2020-02-12 Tom Tromey <tom@tromey.com>
9165
9166 * event-loop.c (event_data, gdb_event, event_handler_func):
9167 Remove.
9168
9169 2020-02-12 Tom Tromey <tom@tromey.com>
9170
9171 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9172 (dwarf2_frame_objfile_data): Add comment.
9173 (find_comp_unit, set_comp_unit): New functions.
9174 (dwarf2_frame_find_fde): Use find_comp_unit.
9175 (dwarf2_build_frame_info): Use set_comp_unit.
9176
9177 2020-02-12 Tom Tromey <tom@tromey.com>
9178
9179 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9180 (comp_unit): Don't initialize objfile.
9181 (execute_cfa_program): Add text_offset parameter.
9182 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9183 (dwarf2_frame_cache): Update.
9184 (dwarf2_build_frame_info): Don't set "objfile" member.
9185
9186 2020-02-12 Tom Tromey <tom@tromey.com>
9187
9188 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9189 (decode_frame_entry): Likewise.
9190 (dwarf2_build_frame_info): Update.
9191
9192 2020-02-12 Tom Tromey <tom@tromey.com>
9193
9194 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9195 (decode_frame_entry_1): Use the comp_unit obstack.
9196
9197 2020-02-12 Tom Tromey <tom@tromey.com>
9198
9199 * dwarf2/frame.c (struct comp_unit): Add initializers and
9200 constructor.
9201 (dwarf2_frame_objfile_data): Store a comp_unit.
9202 (dwarf2_frame_find_fde): Update.
9203 (dwarf2_build_frame_info): Use "new".
9204
9205 2020-02-12 Tom Tromey <tom@tromey.com>
9206
9207 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9208 (dwarf2_fde_table): Typedef for std::vector.
9209 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9210 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9211 (decode_frame_entry): Update.
9212 (dwarf2_build_frame_info): Use "new".
9213
9214 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9215
9216 * arm-tdep.c (arm_gdbarch_init): Update.
9217 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9218 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9219 have_neon, is_m>: Change to bool.
9220
9221 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9222
9223 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9224
9225 2020-02-12 Tom Tromey <tom@tromey.com>
9226
9227 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9228
9229 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9230
9231 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9232 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9233
9234 2020-02-11 Tom Tromey <tom@tromey.com>
9235
9236 * psymtab.h: Update comment.
9237
9238 2020-02-11 Tom Tromey <tom@tromey.com>
9239
9240 * gdb_obstack.h (struct auto_obstack): Use
9241 DISABLE_COPY_AND_ASSIGN.
9242
9243 2020-02-11 Tom Tromey <tom@tromey.com>
9244
9245 * dwarf2/frame.h (struct objfile): Don't forward declare.
9246
9247 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9248
9249 * cris-tdep.c (cris_supply_gregset): Change signature to match
9250 what struct regset expects.
9251 (cris_regset): New struct.
9252 (fetch_core_registers): Remove.
9253 (cris_iterate_over_regset_sections): New function.
9254 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9255 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9256
9257 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9258
9259 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9260 registers.
9261
9262 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9263
9264 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
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 * configure: Re-generate.
9273
9274 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9275
9276 * acinclude: Update warning.m4 path.
9277 * warning.m4: Move to gdbsupport.
9278
9279 2020-02-11 Tom Tromey <tromey@adacore.com>
9280
9281 * remote.c (remote_console_output): Update.
9282 * printcmd.c (printf_command): Update.
9283 * event-loop.c (gdb_wait_for_event): Update.
9284 * linux-nat.c (sigchld_handler): Update.
9285 * remote-sim.c (gdb_os_write_stdout): Update.
9286 (gdb_os_flush_stdout): Update.
9287 (gdb_os_flush_stderr): Update.
9288 (gdb_os_write_stderr): Update.
9289 * exceptions.c (print_exception): Update.
9290 * remote-fileio.c (remote_fileio_func_read): Update.
9291 (remote_fileio_func_write): Update.
9292 * tui/tui.c (tui_enable): Update.
9293 * tui/tui-interp.c (tui_interp::init): Update.
9294 * utils.c (init_page_info): Update.
9295 (putchar_unfiltered, fputc_unfiltered): Update.
9296 (gdb_flush): Update.
9297 (emit_style_escape): Update.
9298 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9299 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9300 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9301 (stderr_file::write): Update.
9302 (stderr_file::puts): Update.
9303 * ui-file.h (ui_file_isatty, ui_file_write)
9304 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9305 (ui_file_puts): Don't declare.
9306
9307 2020-02-10 Tom de Vries <tdevries@suse.de>
9308
9309 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9310 sentinel to char *.
9311
9312 2020-02-09 Tom de Vries <tdevries@suse.de>
9313
9314 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9315 filename if it matches "<artificial>".
9316
9317 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9318
9319 * windows-tdep.c (struct enum_value_name): New struct.
9320 (create_enum): New function.
9321 (windows_get_siginfo_type): Create and use enum types.
9322
9323 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9324
9325 * NEWS: Mention $_siginfo support for Windows.
9326 * windows-nat.c (handle_exception): Set siginfo_er.
9327 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9328 (windows_xfer_siginfo): New function.
9329 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9330 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9331 (init_windows_gdbarch_data): New function.
9332 (get_windows_gdbarch_data): New function.
9333 (windows_get_siginfo_type): New function.
9334 (windows_init_abi): Register windows_get_siginfo_type.
9335 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9336
9337 2020-02-08 Tom Tromey <tom@tromey.com>
9338
9339 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9340 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9341 <keep>: Declare method.
9342 <m_keep>: Remove member.
9343 <~cutu_reader>: Remove.
9344 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9345 (cutu_reader::cutu_reader): Update.
9346 (cutu_reader::keep): Rename from ~cutu_reader.
9347 (process_psymtab_comp_unit, build_type_psymtabs_1)
9348 (process_skeletonless_type_unit, load_partial_comp_unit)
9349 (load_full_comp_unit, dwarf2_read_addr_index)
9350 (read_signatured_type): Update.
9351
9352 2020-02-08 Tom Tromey <tom@tromey.com>
9353
9354 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9355 "want_partial_unit" parameter.
9356 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9357 Inline check for DW_TAG_partial_unit.
9358 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9359
9360 2020-02-08 Tom Tromey <tom@tromey.com>
9361
9362 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9363 read.c.
9364 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9365 read.c.
9366
9367 2020-02-08 Tom Tromey <tom@tromey.com>
9368
9369 * dwarf2/read.c (read_address): Move to comp-unit.c.
9370 (dwarf2_rnglists_process, dwarf2_ranges_process)
9371 (read_attribute_value, dwarf_decode_lines_1)
9372 (var_decode_location, decode_locdesc): Update.
9373 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9374 read.c. Remove "cu" parameter.
9375 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9376 method.
9377
9378 2020-02-08 Tom Tromey <tom@tromey.com>
9379
9380 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9381 (read_indirect_line_string): Update.
9382 * dwarf2/comp-unit.c (read_offset): Remove.
9383 (read_comp_unit_head): Update.
9384 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9385 method.
9386 (read_offset): Don't declare.
9387
9388 2020-02-08 Tom Tromey <tom@tromey.com>
9389
9390 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9391 * dwarf2/read.c (struct comp_unit_head): Move to
9392 dwarf2/comp-unit.h.
9393 (enum class rcuh_kind): Move to comp-unit.h.
9394 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9395 (read_comp_unit_head, error_check_comp_unit_head)
9396 (read_and_check_comp_unit_head): Move to comp-unit.c.
9397 (read_offset, dwarf_unit_type_name): Likewise.
9398 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9399 (cutu_reader::cutu_reader, read_call_site_scope)
9400 (find_partial_die, follow_die_offset): Update.
9401 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9402
9403 2020-02-08 Tom Tromey <tom@tromey.com>
9404
9405 * dwarf2/read.c (read_offset_1): Move to leb.c.
9406 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9407 (dwarf_decode_macro_bytes): Update.
9408 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9409 * dwarf2/leb.h (read_offset): Declare.
9410
9411 2020-02-08 Tom Tromey <tom@tromey.com>
9412
9413 * dwarf2/read.c (dwarf2_section_size): Remove.
9414 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9415 Update.
9416 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9417
9418 2020-02-08 Tom Tromey <tom@tromey.com>
9419
9420 * dwarf2/read.c (read_initial_length): Move to leb.c.
9421 * dwarf2/leb.h (read_initial_length): Declare.
9422 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9423 handle_nonstd parameter.
9424 * dwarf2/frame.c (read_initial_length): Remove.
9425 (decode_frame_entry_1): Update.
9426
9427 2020-02-08 Tom Tromey <tom@tromey.com>
9428
9429 * dwarf2/loc.c (dwarf2_find_location_expression)
9430 (dwarf_evaluate_loc_desc::get_tls_address)
9431 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9432 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9433 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9434 (dwarf2_compile_property_to_c)
9435 (dwarf2_loc_desc_get_symbol_read_needs)
9436 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9437 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9438 (loclist_describe_location, loclist_tracepoint_var_ref)
9439 (loclist_generate_c_location): Update.
9440 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9441 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9442 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9443 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9444 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9445 (dwarf2_per_cu_data::addr_size)
9446 (dwarf2_per_cu_data::ref_addr_size)
9447 (dwarf2_per_cu_data::text_offset)
9448 (dwarf2_per_cu_data::addr_type): Now methods.
9449 (per_cu_header_read_in): Make per_cu "const".
9450 (dwarf2_version): Remove.
9451 (dwarf2_per_cu_data::int_type): Now a method.
9452 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9453 (set_die_type, read_array_type, read_subrange_index_type)
9454 (read_tag_string_type, read_subrange_type): Update.
9455 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9456 offset_size, ref_addr_size, text_offset, addr_type, version,
9457 objfile, int_type, addr_sized_int_type>: Declare methods.
9458
9459 2020-02-08 Tom Tromey <tom@tromey.com>
9460
9461 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9462 Move earlier.
9463
9464 2020-02-08 Tom Tromey <tom@tromey.com>
9465
9466 * dwarf2/read.h (dwarf_line_debug): Declare.
9467 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9468 * dwarf2/read.c: Move line_header code to new files.
9469 (dwarf_line_debug): No longer static.
9470 * dwarf2/line-header.c: New file.
9471 * dwarf2/line-header.h: New file.
9472
9473 2020-02-08 Tom Tromey <tom@tromey.com>
9474
9475 * dwarf2/read.c (struct line_header) <file_full_name,
9476 file_file_name>: Return unique_xmalloc_ptr.
9477 (line_header::file_file_name): Update.
9478 (line_header::file_full_name): Update.
9479 (dw2_get_file_names_reader): Update.
9480 (macro_start_file): Update.
9481
9482 2020-02-08 Tom Tromey <tom@tromey.com>
9483
9484 * dwarf2/read.c (struct line_header) <file_full_name,
9485 file_file_name>: Declare methods.
9486 (dw2_get_file_names_reader): Update.
9487 (file_file_name): Now a method.
9488 (file_full_name): Likewise.
9489 (macro_start_file): Update.
9490
9491 2020-02-08 Tom Tromey <tom@tromey.com>
9492
9493 * dwarf2/read.c (dwarf_always_disassemble)
9494 (show_dwarf_always_disassemble): Move to loc.c.
9495 (_initialize_dwarf2_read): Move "always-disassemble" registration
9496 to loc.c.
9497 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9498 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9499 static.
9500 (show_dwarf_always_disassemble): Move from read.c.
9501 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9502
9503 2020-02-08 Tom Tromey <tom@tromey.com>
9504
9505 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9506 (create_quick_file_names_table): Return htab_up.
9507 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9508 Update.
9509 * dwarf2/read.h (struct dwarf2_per_objfile)
9510 <quick_file_names_table>: Now htab_up.
9511
9512 2020-02-08 Tom Tromey <tom@tromey.com>
9513
9514 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9515
9516 2020-02-08 Tom Tromey <tom@tromey.com>
9517
9518 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9519 Rewrite.
9520 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9521 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9522 (abbrev_table::abbrev_table): No longer inline.
9523 (ABBREV_HASH_SIZE): Remove.
9524 (abbrev_table::m_abbrevs): Now an htab_up.
9525
9526 2020-02-08 Tom Tromey <tom@tromey.com>
9527
9528 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9529 (cutu_reader): Update.
9530 (build_type_psymtabs_1): Update.
9531 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9532 (abbrev_table::alloc_abbrev): Update.
9533 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9534 (abbrev_table::read): New static method, renamed from
9535 abbrev_table_read_table.
9536 (abbrev_table::alloc_abbrev)
9537 (abbrev_table::add_abbrev): Now private.
9538 (abbrev_table::abbrev_table): Now private.
9539 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9540
9541 2020-02-08 Tom Tromey <tom@tromey.com>
9542
9543 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9544 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9545 htab_up.
9546
9547 2020-02-08 Tom Tromey <tom@tromey.com>
9548
9549 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9550 htab_up.
9551 (lookup_dwo_unit_in_dwp): Update.
9552 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9553 on obstack.
9554
9555 2020-02-08 Tom Tromey <tom@tromey.com>
9556
9557 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9558 obstack.
9559
9560 2020-02-08 Tom Tromey <tom@tromey.com>
9561
9562 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9563 line_header_hash.
9564 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9565 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9566 Change type to htab_up.
9567
9568 2020-02-08 Tom Tromey <tom@tromey.com>
9569
9570 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9571 htab_up. Don't allocate on obstack.
9572 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9573 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9574 Change type to htab_up.
9575
9576 2020-02-08 Tom Tromey <tom@tromey.com>
9577
9578 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9579 Change type to htab_up.
9580 * dwarf2/read.c (create_signatured_type_table_from_index)
9581 (create_signatured_type_table_from_debug_names)
9582 (create_all_type_units, add_type_unit)
9583 (lookup_dwo_signatured_type, lookup_signatured_type)
9584 (process_skeletonless_type_unit): Update.
9585 (create_debug_type_hash_table, create_debug_types_hash_table):
9586 Change type of types_htab.
9587 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9588 htab_up. Don't allocate on obstack.
9589 (create_cus_hash_table): Change type of cus_htab parameter.
9590 (struct dwo_file) <cus, tus>: Now htab_up.
9591 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9592 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9593 (queue_and_load_all_dwo_tus): Update.
9594 * dwarf2/index-write.c (write_gdbindex): Update.
9595 (write_debug_names): Update.
9596
9597 2020-02-08 Tom Tromey <tom@tromey.com>
9598
9599 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9600 dwarf2/read.c. Remove "next" member. Add constructor ntad
9601 destructor.
9602 (struct dwarf2_per_objfile) <queue>: New member.
9603 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9604 dwarf2/read.h.
9605 (dwarf2_queue, dwarf2_queue_tail): Remove.
9606 (class dwarf2_queue_guard): Add parameter to constructor. Use
9607 DISABLE_COPY_AND_ASSIGN.
9608 <m_per_objfile>: New member.
9609 <~dwarf2_queue_guard>: Rewrite.
9610 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9611 Update.
9612 (~dwarf2_queue_item): New.
9613
9614 2020-02-08 Tom Tromey <tom@tromey.com>
9615
9616 * dwarf2/read.c (struct die_info) <has_children>: New member.
9617 (dw2_get_file_names_reader): Remove has_children.
9618 (dw2_get_file_names): Update.
9619 (read_cutu_die_from_dwo): Remove has_children.
9620 (cutu_reader::init_tu_and_read_dwo_dies)
9621 (cutu_reader::cutu_reader): Update.
9622 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9623 Remove has_children.
9624 (build_type_psymtabs_1, process_skeletonless_type_unit)
9625 (load_partial_comp_unit, load_full_comp_unit): Update.
9626 (create_dwo_cu_reader): Remove has_children.
9627 (create_cus_hash_table, read_die_and_children): Update.
9628 (read_full_die_1,read_full_die): Remove has_children.
9629 (read_signatured_type): Update.
9630 (class cutu_reader) <has_children>: Remove.
9631
9632 2020-02-08 Tom Tromey <tom@tromey.com>
9633
9634 * dwarf2/expr.c: Rename from dwarf2expr.c.
9635 * dwarf2/expr.h: Rename from dwarf2expr.h.
9636 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9637 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9638 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9639 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9640 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9641 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9642 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9643 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9644 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9645 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9646 * dwarf2/loc.c: Rename from dwarf2loc.c.
9647 * dwarf2/loc.h: Rename from dwarf2loc.h.
9648 * dwarf2/read.c: Rename from dwarf2read.c.
9649 * dwarf2/read.h: Rename from dwarf2read.h.
9650 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9651 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9652 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9653 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9654 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9655 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9656 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9657 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9658 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9659 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9660 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9661 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9662 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9663 Update.
9664 * Makefile.in (COMMON_SFILES): Update.
9665 (HFILES_NO_SRCDIR): Update.
9666
9667 2020-02-08 Tom Tromey <tom@tromey.com>
9668
9669 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9670 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9671
9672 2020-02-08 Tom Tromey <tom@tromey.com>
9673
9674 * dwarf2read.h (struct die_info): Don't declare.
9675
9676 2020-02-08 Tom Tromey <tom@tromey.com>
9677
9678 * dwarf2read.h (die_info_ptr): Remove typedef.
9679
9680 2020-02-08 Tom Tromey <tom@tromey.com>
9681
9682 * dwarf2read.c (read_call_site_scope)
9683 (handle_data_member_location, dwarf2_add_member_fn)
9684 (mark_common_block_symbol_computed, read_common_block)
9685 (attr_to_dynamic_prop, partial_die_info::read)
9686 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9687 (dwarf2_symbol_mark_computed, set_die_type): Update.
9688 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9689 method.
9690 (attr_form_is_block): Don't declare.
9691 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9692
9693 2020-02-08 Tom Tromey <tom@tromey.com>
9694
9695 * dwarf2read.c (dwarf2_find_base_address, )
9696 (read_call_site_scope, rust_containing_type)
9697 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9698 (handle_data_member_location, dwarf2_add_member_fn)
9699 (get_alignment, read_structure_type, process_structure_scope)
9700 (mark_common_block_symbol_computed, read_common_block)
9701 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9702 (partial_die_info::read, read_attribute_value, new_symbol)
9703 (lookup_die_type, dwarf2_get_ref_die_offset)
9704 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9705 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9706 (dwarf2_symbol_mark_computed): Update.
9707 * dwarf2/attribute.h (struct attribute) <value_as_address,
9708 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9709 methods.
9710 (value_as_address, attr_form_is_section_offset)
9711 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9712 * dwarf2/attribute.c (attribute::value_as_address)
9713 (attribute::form_is_section_offset, attribute::form_is_constant)
9714 (attribute::form_is_ref): Now methods.
9715
9716 2020-02-08 Tom Tromey <tom@tromey.com>
9717
9718 * dwarf2read.c (struct attribute, DW_STRING)
9719 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9720 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9721 (attr_form_is_block, attr_form_is_section_offset)
9722 (attr_form_is_constant, attr_form_is_ref): Move.
9723 * dwarf2/attribute.h: New file.
9724 * dwarf2/attribute.c: New file, from dwarf2read.c.
9725 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9726
9727 2020-02-08 Tom Tromey <tom@tromey.com>
9728
9729 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9730 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9731 Move.
9732 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9733 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9734 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9735 abbrev.c.
9736 * dwarf2/abbrev.h: New file.
9737 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9738 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9739
9740 2020-02-08 Tom Tromey <tom@tromey.com>
9741
9742 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9743 (dwarf2_section_size, dwarf2_get_section_info)
9744 (create_signatured_type_table_from_debug_names)
9745 (create_addrmap_from_aranges, read_debug_names_from_section)
9746 (get_gdb_index_contents_from_section, read_comp_unit_head)
9747 (error_check_comp_unit_head, read_abbrev_offset)
9748 (create_debug_type_hash_table, init_cu_die_reader)
9749 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9750 (read_comp_units_from_section, create_cus_hash_table)
9751 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9752 (create_dwp_v2_section, dwarf2_rnglists_process)
9753 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9754 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9755 (read_indirect_string_from_dwz, read_addr_index_1)
9756 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9757 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9758 (fill_in_loclist_baton): Update.
9759 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9760 get_containing_section, get_bfd_owner, get_bfd_section,
9761 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9762 (dwarf2_read_section, get_section_name, get_section_file_name)
9763 (get_containing_section, get_section_bfd_owner)
9764 (get_section_bfd_section, get_section_name, get_section_file_name)
9765 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9766 declare.
9767 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9768 (dwarf2_section_info::get_bfd_owner)
9769 (dwarf2_section_info::get_bfd_section)
9770 (dwarf2_section_info::get_name)
9771 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9772 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9773 (dwarf2_section_info::read): Now methods.
9774 * dwarf-index-write.c (class debug_names): Update.
9775
9776 2020-02-08 Tom Tromey <tom@tromey.com>
9777
9778 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9779 Move to dwarf2/section.h.
9780 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9781 (get_section_bfd_section, get_section_name)
9782 (get_section_file_name, get_section_id, get_section_flags)
9783 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9784 dwarf2/section.c.
9785 * dwarf2/section.h: New file.
9786 * dwarf2/section.c: New file, from dwarf2read.c.
9787 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9788
9789 2020-02-08 Tom Tromey <tom@tromey.com>
9790
9791 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9792 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9793 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9794 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9795 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9796 * dwarf2/leb.h: New file, from dwarf2read.c.
9797 * dwarf2/leb.c: New file, from dwarf2read.c.
9798 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9799 Remove.
9800 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9801 (COMMON_SFILES): Add dwarf2/leb.c.
9802
9803 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9804
9805 GDB 9.1 released.
9806
9807 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9808
9809 PR gdb/25190:
9810 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9811 * gdb/remote.c (remote_console_output): Update.
9812 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9813 (ui_file_puts): ...this.
9814 * gdb/ui-file.h (ui_file_puts): Add declaration.
9815 * gdb/utils.c (emit_style_escape): Update.
9816 (flush_wrap_buffer): Update.
9817 (fputs_maybe_filtered): Update.
9818 (fputs_unfiltered): Add function.
9819
9820 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9821
9822 * gdb/event-loop.c (gdb_wait_for_event): Update.
9823 * gdb/printcmd.c (printf_command): Update.
9824 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9825 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9826 (gdb_os_flush_stderr): Update.
9827 * gdb/remote.c (remote_console_output): Update.
9828 * gdb/ui-file.c (gdb_flush): Rename to...
9829 (ui_file_flush): ...this.
9830 (stderr_file::write): Update.
9831 (stderr_file::puts): Update.
9832 * gdb/ui-file.h (gdb_flush): Rename to...
9833 (ui_file_flush): ...this.
9834 * gdb/utils.c (gdb_flush): Add function.
9835 * gdb/utils.h (gdb_flush): Add declaration.
9836
9837 2020-02-07 Tom Tromey <tromey@adacore.com>
9838
9839 PR breakpoints/24915:
9840 * source.c (find_and_open_source): Do not check basenames_may_differ.
9841
9842 2020-02-07 Tom Tromey <tom@tromey.com>
9843
9844 * README: Update gdbserver documentation.
9845 * gdbserver: Move to top level.
9846 * configure.tgt (build_gdbserver): Remove.
9847 * configure.ac: Remove --enable-gdbserver.
9848 * configure: Rebuild.
9849 * Makefile.in (distclean): Don't mention gdbserver.
9850
9851 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9852
9853 * source-cache.c (source_cache::ensure): Surround
9854 get_plain_source_lines with a try/catch.
9855 (source_cache::get_line_charpos): Get rid of try/catch
9856 and only check for the return value of "ensure".
9857 * tui/tui-source.c (tui_source_window::set_contents):
9858 Simplify "nlines" calculation.
9859
9860 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9861
9862 * MAINTAINERS (Write After Approval): Add myself.
9863
9864 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9865
9866 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9867 function call.
9868
9869 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9870
9871 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9872
9873 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9874
9875 * nat/riscv-linux-tdesc.h: New file.
9876 * nat/riscv-linux-tdesc.c: New file, taking code from...
9877 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9878 ... here.
9879 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9880 NATDEPFILES.
9881
9882 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9883
9884 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9885 we don't set the fake simulator ptid to the null_ptid.
9886
9887 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9888
9889 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9890 * gdbthread.h (class thread_info) <resumed>: Likewise.
9891 * infrun.c (resume_1): Likewise.
9892 (proceed): Likewise.
9893 (infrun_thread_stop_requested): Likewise.
9894 (stop_all_threads): Likewise.
9895 (handle_inferior_event): Likewise.
9896 (restart_threads): Likewise.
9897 (finish_step_over): Likewise.
9898 (keep_going_stepped_thread): Likewise.
9899 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9900 (linux_handle_extended_wait): Likewise.
9901 * record-btrace.c (get_thread_current_frame_id): Likewise.
9902 * record-full.c (record_full_wait_1): Likewise.
9903 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9904 * target.c (target_resume): Likewise.
9905 * thread.c (set_running_thread): Likewise.
9906
9907 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9908
9909 * f-valprint.c (f77_print_array_1): Changed datatype of index
9910 variable to LONGEST from int to enable it to contain bound
9911 values correctly.
9912
9913 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9914
9915 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9916 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9917 offsets according to FLEN determined.
9918 (riscv_linux_nat_target::read_description): Determine FLEN
9919 dynamically.
9920 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9921 according to FLEN determined.
9922 (riscv_linux_nat_target::store_registers): Likewise.
9923
9924 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9925
9926 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9927 when reg->group is empty and reggroup is not.
9928
9929 2020-01-31 Tom Tromey <tromey@adacore.com>
9930
9931 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9932 Call beneath target's mourn_inferior after unpushing.
9933
9934 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9935
9936 PR tui/9765
9937 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9938 have enough lines to fill the screen, still return the lowest
9939 address we found.
9940
9941 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9942
9943 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9944 '-', '<', and '>' commands.
9945
9946 2020-01-29 Pedro Alves <palves@redhat.com>
9947 Sergio Durigan Junior <sergiodj@redhat.com>
9948
9949 * infcmd.c (construct_inferior_arguments): Assert that
9950 'argc' is greater than 0.
9951
9952 2020-01-29 Luis Machado <luis.machado@linaro.org>
9953
9954 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9955 (BRK_INSN_MASK): Define to 0xd4200000.
9956 (aarch64_program_breakpoint_here_p): New function.
9957 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9958 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9959 breakpoint.c.
9960 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9961 breakpoint.h
9962 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9963 call gdbarch_program_breakpoint_here_p.
9964 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9965 default_program_breakpoint_here_p, changed return type to bool and
9966 simplified.
9967 * breakpoint.h (program_breakpoint_here): Moved prototype to
9968 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9969 return type to bool.
9970 * gdbarch.c: Regenerate.
9971 * gdbarch.h: Regenerate.
9972 * gdbarch.sh (program_breakpoint_here_p): New method.
9973 * infrun.c (handle_signal_stop): Call
9974 gdbarch_program_breakpoint_here_p.
9975
9976 2020-01-26 Tom Tromey <tom@tromey.com>
9977
9978 * ctfread.c (struct ctf_fp_info): Reindent.
9979 (_initialize_ctfread): Remove.
9980
9981 2020-01-26 Tom Tromey <tom@tromey.com>
9982
9983 * psymtab.c (partial_map_expand_apply)
9984 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9985 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9986 (psym_print_stats, psym_expand_symtabs_for_function)
9987 (psym_map_symbol_filenames, psym_map_matching_symbols)
9988 (psym_expand_symtabs_matching)
9989 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9990 (maintenance_check_psymtabs): Use new methods.
9991 * psympriv.h (struct partial_symtab) <readin_p,
9992 get_compunit_symtab>: New methods.
9993 <readin, compunit_symtab>: Remove members.
9994 (struct standard_psymtab): New.
9995 (struct legacy_psymtab): Derive from standard_psymtab.
9996 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9997 standard_psymtab.
9998 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9999
10000 2020-01-26 Tom Tromey <tom@tromey.com>
10001
10002 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10003 read_dependencies. Add assert.
10004 * psymtab.c (partial_symtab::read_dependencies): New method.
10005 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10006 method.
10007 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10008 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10009 read_dependencies.
10010 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10011 Add assert.
10012
10013 2020-01-26 Tom Tromey <tom@tromey.com>
10014
10015 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10016 Call expand_psymtab.
10017 (xcoff_read_symtab): Call expand_psymtab.
10018 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10019 legacy_expand_psymtab.
10020 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10021 method.
10022 (struct legacy_psymtab) <expand_psymtab>: Implement.
10023 <legacy_expand_psymtab>: New member.
10024 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10025 (parse_partial_symbols): Set legacy_expand_psymtab.
10026 (psymtab_to_symtab_1): Change argument order. Call
10027 expand_psymtab.
10028 (new_psymtab): Set legacy_expand_psymtab.
10029 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10030 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10031 expand_psymtab.
10032 (dwarf2_psymtab::expand_psymtab): Rename from
10033 psymtab_to_symtab_1. Call expand_psymtab.
10034 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10035 (dbx_end_psymtab): Likewise.
10036 (dbx_psymtab_to_symtab_1): Change argument order. Call
10037 expand_psymtab.
10038 (dbx_read_symtab): Call expand_psymtab.
10039 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10040 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10041 (ctf_psymtab::read_symtab): Call expand_psymtab.
10042
10043 2020-01-26 Tom Tromey <tom@tromey.com>
10044
10045 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10046 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10047 messages.
10048 * mdebugread.c (mdebug_read_symtab): Remove prints.
10049 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10050 assert.
10051 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10052
10053 2020-01-26 Tom Tromey <tom@tromey.com>
10054
10055 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10056 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10057 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10058 legacy_symtab.
10059 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10060 * psymtab.c (psymtab_to_symtab): Call method.
10061 (dump_psymtab): Update.
10062 * psympriv.h (struct partial_symtab): Add virtual destructor.
10063 <read_symtab>: New method.
10064 (struct legacy_symtab): New.
10065 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10066 (struct pst_map) <pst>: Now a legacy_psymtab.
10067 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10068 (new_psymtab): Use legacy_psymtab.
10069 * dwarf2read.h (struct dwarf2_psymtab): New.
10070 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10071 * dwarf2read.c (dwarf2_create_include_psymtab)
10072 (dwarf2_build_include_psymtabs, create_type_unit_group)
10073 (create_partial_symtab, process_psymtab_comp_unit_reader)
10074 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10075 (set_partial_user): Use dwarf2_psymtab.
10076 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10077 (psymtab_to_symtab_1, process_full_comp_unit)
10078 (process_full_type_unit, dwarf2_ranges_read)
10079 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10080 (dwarf_decode_lines): Use dwarf2_psymtab.
10081 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10082 (add_address_entry_worker, write_one_signatured_type)
10083 (recursively_count_psymbols, recursively_write_psymbols)
10084 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10085 (write_debug_names): Likewise.
10086 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10087 <pst>: Now a legacy_psymtab.
10088 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10089 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10090 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10091 * ctfread.c (struct ctf_psymtab): New.
10092 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10093 ctf_psymtab.
10094 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10095 (create_partial_symtab): Return a ctf_psymtab.
10096 (scan_partial_symbols): Update.
10097
10098 2020-01-26 Tom Tromey <tom@tromey.com>
10099
10100 * xcoffread.c (xcoff_start_psymtab): Use new.
10101 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10102 renamed from start_psymtab_common.
10103 * psympriv.h (struct partial_symtab): Add new constructor.
10104 (start_psymtab_common): Don't declare.
10105 * mdebugread.c (parse_partial_symbols): Use new.
10106 * dwarf2read.c (create_partial_symtab): Use new.
10107 * dbxread.c (start_psymtab): Use new.
10108 * ctfread.c (create_partial_symtab): Use new.
10109
10110 2020-01-26 Tom Tromey <tom@tromey.com>
10111
10112 * xcoffread.c (xcoff_end_psymtab): Use new.
10113 * psymtab.c (start_psymtab_common): Use new.
10114 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10115 Update.
10116 * psympriv.h (struct partial_symtab): Add parameters to
10117 constructor. Don't inline.
10118 (allocate_psymtab): Don't declare.
10119 * mdebugread.c (new_psymtab): Use new.
10120 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10121 * dbxread.c (dbx_end_psymtab): Use new.
10122
10123 2020-01-26 Tom Tromey <tom@tromey.com>
10124
10125 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10126 allocate_psymtab. Update documentation.
10127 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10128 allocate_psymtab. Do not use new.
10129 (allocate_psymtab): Use new. Update.
10130
10131 2020-01-26 Tom Tromey <tom@tromey.com>
10132
10133 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10134 * psymtab.c (psym_print_stats): Update.
10135 * psympriv.h (struct partial_symtab) <readin,
10136 psymtabs_addrmap_supported, anonymous>: Now bool.
10137 * mdebugread.c (psymtab_to_symtab_1): Update.
10138 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10139 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10140 (process_full_comp_unit, process_full_type_unit): Update.
10141 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10142 * ctfread.c (psymtab_to_symtab): Update.
10143
10144 2020-01-26 Tom Tromey <tom@tromey.com>
10145
10146 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10147 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10148 * psymtab.c (psymtab_storage): Delete psymtabs.
10149 (psymtab_storage::allocate_psymtab): Use new.
10150 (psymtab_storage::discard_psymtab): Use delete.
10151 * psympriv.h (struct partial_symtab): Add constructor and
10152 initializers.
10153
10154 2020-01-26 Tom Tromey <tom@tromey.com>
10155
10156 * machoread.c: Do not include psympriv.h.
10157
10158 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10159
10160 * NEWS: Mention the new option and the set/show commands.
10161
10162 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10163
10164 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10165 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10166 (validate_exec_file): New variables, enums, functions.
10167 (exec_file_locate_attach, print_section_info): Style the filenames.
10168 (_initialize_exec): Install show_exec_file_mismatch_command and
10169 set_exec_file_mismatch_command.
10170 * gdbcore.h (validate_exec_file): Declare.
10171 * infcmd.c (attach_command): Call validate_exec_file.
10172 * remote.c ( remote_target::remote_add_inferior): Likewise.
10173
10174 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10175
10176 * frame.c (find_frame_sal): Move call to get_next_frame into more
10177 inner scope.
10178 * inline-frame.c (inilne_state) <inline_state>: Update argument
10179 types.
10180 (inilne_state) <skipped_symbol>: Rename to...
10181 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10182 (skip_inline_frames): Build vector of skipped symbols and use this
10183 to reate the inline_state.
10184 (inline_skipped_symbol): Add a comment and some assertions, fetch
10185 skipped symbol from the list.
10186
10187 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10188
10189 * buildsym.c (lte_is_less_than): Delete.
10190 (buildsym_compunit::end_symtab_with_blockvector): Create local
10191 lambda function to sort line table entries, and use
10192 std::stable_sort instead of std::sort.
10193 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10194 markers when looking for a previous line.
10195
10196 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10197
10198 * dwarf2read.c (lnp_state_machine::record_line): Include
10199 end_sequence parameter in debug print out. Record the line if we
10200 are at an end_sequence marker even if it's not the start of a
10201 statement.
10202 * symmisc.c (maintenance_print_one_line_table): Print end of
10203 sequence markers with 'END' not '0'.
10204
10205 2020-01-24 Pedro Alves <palves@redhat.com>
10206
10207 PR gdb/25410
10208 * thread.c (scoped_restore_current_thread::restore): Use
10209 switch_to_inferior_no_thread.
10210 * exec.c: Include "progspace-and-thread.h".
10211 (add_target_sections, remove_target_sections):
10212 scoped_restore_current_pspace_and_thread instead of
10213 scoped_restore_current_thread.
10214 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10215 and aspace to the inferior before calling clone_program_space.
10216 Remove stale comment.
10217
10218 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10219
10220 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10221 (arm_netbsd_nat_target::fetch_registers): ...this.
10222 (arm_nbsd_nat_target::store_registers): Rename to...
10223 (arm_netbsd_nat_target::store_registers): ...this.
10224
10225 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10226
10227 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10228 register_t.
10229
10230 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10231
10232 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10233 Update comment.
10234 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10235 Likewise.
10236 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10237 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10238 the correct replacement (iterate_over_regset_sections).
10239 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10240 Update comment.
10241
10242 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10243
10244 PR gdb/23718
10245 * gdb/python/python.c (execute_gdb_command): Call
10246 async_enable_stdin in catch block.
10247
10248 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10249
10250 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10251 SWITCH_THRU_ALL_UIS.
10252
10253 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10254
10255 PR tui/9765
10256 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10257 comment, add extra parameter, and update to store previous symbol
10258 when appropriate.
10259 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10260 add extra parameter.
10261 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10262 remove unneeded parameter, add try/catch around gdb_print_insn,
10263 rewrite to add items to asm_lines vector.
10264 (tui_find_backward_disassembly_start_address): New function.
10265 (tui_find_disassembly_address): Updated throughout.
10266 (tui_disasm_window::set_contents): Update for changes to
10267 tui_disassemble.
10268 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10269 number of lines to scroll.
10270
10271 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10272
10273 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10274 (SECT_OFF_DATA): Likewise.
10275 (SECT_OFF_RODATA): Likewise.
10276 (SECT_OFF_TEXT): Likewise.
10277 (SECT_OFF_BSS): Likewise.
10278 (struct objfile) <text_section_offset, data_section_offset>: New
10279 methods.
10280 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10281 objfile::text_section_offset.
10282 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10283 * coffread.c (coff_symtab_read): Likewise.
10284 (enter_linenos): Likewise.
10285 (process_coff_symbol): Likewise.
10286 * ctfread.c (get_objfile_text_range): Likewise.
10287 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10288 Use objfile::data_section_offset.
10289 * dwarf2-frame.c (execute_cfa_program): Use
10290 objfile::text_section_offset.
10291 (dwarf2_frame_find_fde): Likewise.
10292 * dwarf2read.c (create_addrmap_from_index): Likewise.
10293 (create_addrmap_from_aranges): Likewise.
10294 (dw2_find_pc_sect_compunit_symtab): Likewise.
10295 (process_psymtab_comp_unit_reader): Likewise.
10296 (add_partial_symbol): Likewise.
10297 (add_partial_subprogram): Likewise.
10298 (process_full_comp_unit): Likewise.
10299 (read_file_scope): Likewise.
10300 (read_func_scope): Likewise.
10301 (read_lexical_block_scope): Likewise.
10302 (read_call_site_scope): Likewise.
10303 (dwarf2_rnglists_process): Likewise.
10304 (dwarf2_ranges_process): Likewise.
10305 (dwarf2_ranges_read): Likewise.
10306 (dwarf_decode_lines_1): Likewise.
10307 (new_symbol): Likewise.
10308 (dwarf2_fetch_die_loc_sect_off): Likewise.
10309 (dwarf2_per_cu_text_offset): Likewise.
10310 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10311 * hppa-tdep.c (read_unwind_info): Likewise.
10312 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10313 * psympriv.h (struct partial_symtab): Likewise.
10314 * psymtab.c (find_pc_sect_psymtab): Likewise.
10315 * solib-svr4.c (enable_break): Likewise.
10316 * stap-probe.c (relocate_address): Use
10317 objfile::data_section_offset.
10318 * xcoffread.c (enter_line_range): Use
10319 objfile::text_section_offset.
10320 (read_xcoff_symtab): Likewise.
10321
10322 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10323
10324 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10325 declaration to narrower scopes.
10326
10327 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10328
10329 * darwin-nat.h (struct darwin_exception_msg, enum
10330 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10331 Move up.
10332 (class darwin_nat_target) <wait_1, check_new_threads,
10333 decode_exception_message, decode_message, stop_inferior,
10334 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10335 * darwin-nat.c (darwin_check_new_threads): Rename to...
10336 (darwin_nat_target::check_new_threads): ... this.
10337 (darwin_suspend_inferior_it): Remove.
10338 (darwin_decode_exception_message): Rename to...
10339 (darwin_nat_target::decode_exception_message): ... this.
10340 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10341 (darwin_decode_message): Rename to...
10342 (darwin_nat_target::decode_message): ... this.
10343 (cancel_breakpoint): Rename to...
10344 (darwin_nat_target::cancel_breakpoint): ... this.
10345 (darwin_wait): Rename to...
10346 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10347 instead of iterate_over_inferiors.
10348 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10349 (darwin_stop_inferior): Rename to...
10350 (darwin_nat_target::stop_inferior): ... this.
10351 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10352 (darwin_init_thread_list): Rename to...
10353 (darwin_nat_target::init_thread_list): ... this.
10354 (darwin_ptrace_him): Rename to...
10355 (darwin_nat_target::ptrace_him): ... this.
10356 (darwin_nat_target::create_inferior): Pass lambda function to
10357 fork_inferior.
10358 (darwin_nat_target::detach): Call stop_inferior instead of
10359 darwin_stop_inferior.
10360 * fork-inferior.h (fork_inferior): Change init_trace_fun
10361 parameter to gdb::function_view.
10362 * fork-inferior.c (fork_inferior): Likewise.
10363
10364 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10365
10366 * i386-cygwin-tdep.c (core_process_module_section): Update.
10367 * windows-nat.c (struct lm_info_windows): Add text_offset.
10368 (windows_xfer_shared_libraries): Update.
10369 * windows-tdep.c (windows_xfer_shared_library):
10370 Add text_offset_cached argument.
10371 * windows-tdep.h (windows_xfer_shared_library): Update.
10372
10373 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10374
10375 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10376
10377 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10378
10379 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10380 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10381 replace with range-based for.
10382 (gdbsim_interrupt_inferior): Remove.
10383 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10384 with a range-based for. Inline code from
10385 gdbsim_interrupt_inferior.
10386
10387 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10388
10389 * infrun.c (proceed): Fix indentation.
10390
10391 2020-01-21 Tom Tromey <tromey@adacore.com>
10392
10393 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10394 * python/python.c (python_extension_ops): Update.
10395 (gdbpy_colorize): New function.
10396 * python/lib/gdb/__init__.py (colorize): New function.
10397 * extension.h (ext_lang_colorize): Declare.
10398 * extension.c (ext_lang_colorize): New function.
10399 * extension-priv.h (struct extension_language_ops) <colorize>: New
10400 member.
10401 * cli/cli-style.c (_initialize_cli_style): Update help text.
10402
10403 2020-01-21 Luis Machado <luis.machado@linaro.org>
10404
10405 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10406 <cond>: Change type to bool.
10407 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10408 (aarch64_displaced_step_cb): Likewise.
10409 (aarch64_displaced_step_tb): Likewise.
10410
10411 2020-01-21 Luis Machado <luis.machado@linaro.org>
10412
10413 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10414 output.
10415
10416 2020-01-21 Luis Machado <luis.machado@linaro.org>
10417
10418 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10419 <pc_adjust>: Adjust the documentation.
10420 (aarch64_displaced_step_fixup): Check if PC really moved before
10421 adjusting it.
10422
10423 2020-01-19 Tom Tromey <tom@tromey.com>
10424
10425 * disasm.c (~gdb_disassembler): New destructor.
10426 (gdb_buffered_insn_length): Call disassemble_free_target.
10427 * disasm.h (class gdb_disassembler): Declare destructor. Use
10428 DISABLE_COPY_AND_ASSIGN.
10429
10430 2020-01-19 Tom Tromey <tom@tromey.com>
10431
10432 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10433 (die_reader_func_ftype): Remove.
10434 (cutu_reader): New class.
10435 (dw2_get_file_names_reader): Remove "data" parameter.
10436 (dw2_get_file_names): Use cutu_reader.
10437 (create_debug_type_hash_table): Update.
10438 (read_cutu_die_from_dwo): Update comment.
10439 (lookup_dwo_unit): Add dwo_name parameter.
10440 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10441 die_reader_func_ftype and data parameters.
10442 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10443 Remove die_reader_func_ftype and data parameters.
10444 (~cutu_reader): New; from init_cutu_and_read_dies.
10445 (cutu_reader::cutu_reader): Rename from
10446 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10447 and data parameters.
10448 (init_cutu_and_read_dies_simple): Remove.
10449 (struct process_psymtab_comp_unit_data): Remove.
10450 (process_psymtab_comp_unit_reader): Remove data parameter; add
10451 want_partial_unit and pretend_language parameters.
10452 (process_psymtab_comp_unit): Use cutu_reader.
10453 (build_type_psymtabs_reader): Remove data parameter.
10454 (build_type_psymtabs_1): Use cutu_reader.
10455 (process_skeletonless_type_unit): Likewise.
10456 (load_partial_comp_unit_reader): Remove.
10457 (load_partial_comp_unit): Use cutu_reader.
10458 (load_full_comp_unit_reader): Remove.
10459 (load_full_comp_unit): Use cutu_reader.
10460 (struct create_dwo_cu_data): Remove.
10461 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10462 dwo_unit parameters.
10463 (create_cus_hash_table): Use cutu_reader.
10464 (struct dwarf2_read_addr_index_data): Remove.
10465 (dwarf2_read_addr_index_reader): Remove.
10466 (dwarf2_read_addr_index): Use cutu_reader.
10467 (read_signatured_type_reader): Remove.
10468 (read_signatured_type): Use cutu_reader.
10469
10470 2020-01-19 Tom Tromey <tom@tromey.com>
10471
10472 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10473 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10474 (tui_wrefresh): Declare.
10475 * tui/tui-wingeneral.c (suppress_output): New global.
10476 (tui_suppress_output, ~tui_suppress_output): New constructor and
10477 destructor.
10478 (tui_wrefresh): New function.
10479 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10480 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10481 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10482 method.
10483 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10484 tui_wrefresh.
10485 (tui_data_window::no_refresh): New method.
10486 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10487 (tui_reg_command): Use tui_suppress_output
10488 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10489 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10490 method.
10491 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10492
10493 2020-01-19 Tom Tromey <tom@tromey.com>
10494
10495 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10496 Handle case where symtab is null.
10497
10498 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10499
10500 * linux-fork.c (one_fork_p): Simplify.
10501
10502 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10503
10504 * top.c (struct qt_args): Remove.
10505 (kill_or_detach): Change return type to void, replace `void *`
10506 parameter with a proper one.
10507 (print_inferior_quit_action): Likewise.
10508 (quit_confirm): Use range-based for loop to iterate over inferiors.
10509 (quit_force): Likewise.
10510
10511 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10512
10513 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10514 `void *` parameter with proper parameters.
10515 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10516 (print_one_inferior): Change return type to void, replace `void *`
10517 parameter with proper parameters.
10518 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10519 inferiors.
10520 (get_other_inferior): Remove.
10521 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10522 inferiors.
10523
10524 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10525
10526 * mi/mi-interp.c (report_initial_inferior): Remove.
10527 (mi_interp::init): Use range-based for to iterate over inferiors.
10528
10529 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10530
10531 * python/py-inferior.c (build_inferior_list): Remove.
10532 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10533
10534 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10535
10536 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10537 (btrace_stitch_trace): Likewise.
10538 * charset.c (intermediate_encoding): Likewise (vaild).
10539 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10540 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10541 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10542
10543 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10544
10545 * windows-tdep.c (windows_get_tlb_type):
10546 Add rtl_user_process_parameters type.
10547
10548 2020-01-16 Pedro Alves <palves@redhat.com>
10549 Norbert Lange <nolange79@gmail.com>
10550
10551 PR build/24805
10552 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10553 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10554 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10555 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10556 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10557 (ps_plog): Redeclare exported functions with default visibility.
10558
10559 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10560
10561 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10562 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10563
10564 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10565
10566 * infcmd.c (post_create_inferior): Use get_thread_regcache
10567 instead of get_current_regcache.
10568
10569 2020-01-14 Tom Tromey <tom@tromey.com>
10570
10571 PR symtab/12535:
10572 * python/python.c (gdbpy_decode_line): Treat empty string the same
10573 as no argument.
10574
10575 2020-01-14 Tom Tromey <tom@tromey.com>
10576
10577 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10578
10579 2020-01-14 Tom Tromey <tom@tromey.com>
10580
10581 * nat/linux-btrace.c: Don't include <config.h>.
10582 * nat/linux-ptrace.c: Don't include <config.h>.
10583 * nat/x86-linux-dregs.c: Don't include <config.h>.
10584
10585 2020-01-14 Tom Tromey <tom@tromey.com>
10586
10587 * configure: Rebuild.
10588 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10589
10590 2020-01-14 Tom Tromey <tom@tromey.com>
10591
10592 * nat/x86-linux-dregs.c: Include configh.h.
10593 * nat/linux-ptrace.c: Include configh.h.
10594 * nat/linux-btrace.c: Include configh.h.
10595 * defs.h: Include config.h, bfd.h.
10596 * configure.ac: Don't source common.host.
10597 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10598 * configure: Rebuild.
10599 * acinclude.m4: Update path.
10600 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10601 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10602 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10603 (CLIBS): Add LIBSUPPORT.
10604 (CDEPS): Likewise.
10605 (COMMON_SFILES): Remove gdbsupport files.
10606 (HFILES_NO_SRCDIR): Likewise.
10607 (stamp-version): Update path to create-version.sh.
10608 (ALLDEPFILES): Remove gdbsupport files.
10609
10610 2020-01-14 Tom Tromey <tom@tromey.com>
10611
10612 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10613 USE_WIN32API when needed.
10614 * configure.ac (USE_WIN32API): Don't define.
10615 (WIN32LIBS): Use WIN32APILIBS.
10616 * configure: Rebuild.
10617
10618 2020-01-14 Tom Tromey <tom@tromey.com>
10619
10620 * configure: Rebuild.
10621 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10622
10623 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10624
10625 * skip.c (skip_function_command): Make skip w/o arguments use the
10626 name of the inlined function if pc is inside any inlined function.
10627
10628 2020-01-14 Luis Machado <luis.machado@linaro.org>
10629
10630 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10631 * infrun.c (resume_1): Likewise.
10632 (handle_inferior_event): Remove stale comment.
10633 * linux-nat.c (linux_nat_target::resume): Update comments.
10634 (save_stop_reason): Likewise.
10635 (linux_nat_filter_event): Likewise.
10636 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10637
10638 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10639
10640 * elfread.c (record_minimal_symbol): Set section index to 0 for
10641 non-allocatable sections.
10642
10643
10644 2020-01-13 Ali Tamur <tamur@google.com>
10645
10646 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10647 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10648 to gdb::optional. Update comments.
10649 (dwo_file): Update comments.
10650 (read_attribute): Update API to take an additional out parameter,
10651 need_reprocess. This is used to mark attributes that need other
10652 attributes (e.g. str_offsets_base) for correct computation which may not
10653 have been read yet.
10654 (read_attribute_reprocess): New function declaration.
10655 (read_addr_index): Likewise.
10656 (read_dwo_str_index): Likewise.
10657 (read_stub_str_index): Likewise.
10658 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10659 (lookup_addr_base): New function definition.
10660 (lookup_ranges_base): Likewise.
10661 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10662 lookup_ranges_base.
10663 (init_cutu_and_read_dies): Update comments.
10664 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10665 unit. This is used to inherit parent's str_offsets_base and addr_base.
10666 Update comments.
10667 (init_cutu_and_read_dies_simple): Reflect API changes.
10668 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10669 (create_cus_hash_table): Change API to take parent compile unit.
10670 Reflect API changes.
10671 (open_and_init_dwo_file): Reflect API changes.
10672 (dwarf2_get_pc_bounds): Update comments.
10673 (dwarf2_record_block_ranges): Likewise.
10674 (read_full_die_1): Change implementation to reprocess attributes that
10675 need str_offsets_base and addr_base.
10676 (partial_die_info::read): Likewise.
10677 (read_attribute_reprocess): New function definition.
10678 (read_attribute_value): Change API to take an additional out parameter,
10679 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10680 when a non-dwo compile unit has index based attributes.
10681 (read_attribute): Reflect API changes.
10682 (read_addr_index_1): Reflect API changes. Update comments.
10683 (dwarf2_read_addr_index_data): Reflect API changes.
10684 (dwarf2_read_addr_index): Likewise.
10685 (read_str_index): Change API and implementation. This becomes a helper
10686 to be used by the new string index related methods. Update error
10687 message and comments.
10688 (read_dwo_str_index): New function definition.
10689 (read_stub_str_index): Likewise.
10690 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10691 * symfile.h (dwarf2_debug_sections): Likewise.
10692 * xcoffread.c (dwarf2_debug_sections): Likewise.
10693
10694 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10695
10696 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10697 core_reg_sect type to gdb_byte *.
10698 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10699 * cris-tdep.c (fetch_core_registers): Likewise.
10700 * corelow.c (core_target::get_core_register_section): Change
10701 type of `contents` to gdb::byte_vector.
10702
10703 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10704
10705 * tui/tui-wingeneral.c (box_win): Position the title in the center
10706 of the border.
10707
10708 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10709
10710 * corelow.c (core_target::get_core_register_section): Use
10711 std::vector instead of alloca.
10712
10713 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10714
10715 * warning.m4: Add -Wmissing-declarations to build_warnings.
10716 * configure: Re-generate.
10717
10718 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10719
10720 * python/python.c (init__gdb_module): Add declaration.
10721
10722 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10723
10724 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10725 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10726 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10727 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10728 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10729 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10730 * ada-exp.y (_initialize_ada_exp): Add declaration.
10731 * ada-lang.c (_initialize_ada_language): Add declaration.
10732 * ada-tasks.c (_initialize_tasks): Add declaration.
10733 * agent.c (_initialize_agent): Add declaration.
10734 * aix-thread.c (_initialize_aix_thread): Add declaration.
10735 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10736 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10737 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10738 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10739 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10740 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10741 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10742 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10743 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10744 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10745 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10746 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10747 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10748 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10749 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10750 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10751 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10752 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10753 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10754 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10755 * annotate.c (_initialize_annotate): Add declaration.
10756 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10757 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10758 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10759 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10760 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10761 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10762 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10763 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10764 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10765 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10766 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10767 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10768 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10769 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10770 * auto-load.c (_initialize_auto_load): Add declaration.
10771 * auxv.c (_initialize_auxv): Add declaration.
10772 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10773 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10774 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10775 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10776 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10777 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10778 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10779 * breakpoint.c (_initialize_breakpoint): Add declaration.
10780 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10781 * btrace.c (_initialize_btrace): Add declaration.
10782 * charset.c (_initialize_charset): Add declaration.
10783 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10784 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10785 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10786 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10787 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10788 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10789 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10790 * coffread.c (_initialize_coffread): Add declaration.
10791 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10792 * compile/compile.c (_initialize_compile): Add declaration.
10793 * complaints.c (_initialize_complaints): Add declaration.
10794 * completer.c (_initialize_completer): Add declaration.
10795 * copying.c (_initialize_copying): Add declaration.
10796 * corefile.c (_initialize_core): Add declaration.
10797 * corelow.c (_initialize_corelow): Add declaration.
10798 * cp-abi.c (_initialize_cp_abi): Add declaration.
10799 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10800 * cp-support.c (_initialize_cp_support): Add declaration.
10801 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10802 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10803 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10804 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10805 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10806 * ctfread.c (_initialize_ctfread): Add declaration.
10807 * d-lang.c (_initialize_d_language): Add declaration.
10808 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10809 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10810 * dbxread.c (_initialize_dbxread): Add declaration.
10811 * dcache.c (_initialize_dcache): Add declaration.
10812 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10813 * disasm.c (_initialize_disasm): Add declaration.
10814 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10815 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10816 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10817 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10818 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10819 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10820 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10821 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10822 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10823 * elfread.c (_initialize_elfread): Add declaration.
10824 * exec.c (_initialize_exec): Add declaration.
10825 * extension.c (_initialize_extension): Add declaration.
10826 * f-lang.c (_initialize_f_language): Add declaration.
10827 * f-valprint.c (_initialize_f_valprint): Add declaration.
10828 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10829 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10830 * filesystem.c (_initialize_filesystem): Add declaration.
10831 * findcmd.c (_initialize_mem_search): Add declaration.
10832 * findvar.c (_initialize_findvar): Add declaration.
10833 * fork-child.c (_initialize_fork_child): Add declaration.
10834 * frame-base.c (_initialize_frame_base): Add declaration.
10835 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10836 * frame.c (_initialize_frame): Add declaration.
10837 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10838 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10839 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10840 * gcore.c (_initialize_gcore): Add declaration.
10841 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10842 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10843 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10844 * gdbarch.c (_initialize_gdbarch): Add declaration.
10845 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10846 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10847 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10848 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10849 * go-lang.c (_initialize_go_language): Add declaration.
10850 * go32-nat.c (_initialize_go32_nat): Add declaration.
10851 * guile/guile.c (_initialize_guile): Add declaration.
10852 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10853 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10854 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10855 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10856 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10857 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10858 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10859 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10860 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10861 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10862 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10863 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10864 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10865 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10866 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10867 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10868 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10869 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10870 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10871 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10872 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10873 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10874 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10875 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10876 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10877 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10878 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10879 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10880 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10881 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10882 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10883 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10884 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10885 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10886 * infcall.c (_initialize_infcall): Add declaration.
10887 * infcmd.c (_initialize_infcmd): Add declaration.
10888 * inflow.c (_initialize_inflow): Add declaration.
10889 * infrun.c (_initialize_infrun): Add declaration.
10890 * interps.c (_initialize_interpreter): Add declaration.
10891 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10892 * jit.c (_initialize_jit): Add declaration.
10893 * language.c (_initialize_language): Add declaration.
10894 * linux-fork.c (_initialize_linux_fork): Add declaration.
10895 * linux-nat.c (_initialize_linux_nat): Add declaration.
10896 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10897 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10898 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10899 * m2-lang.c (_initialize_m2_language): Add declaration.
10900 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10901 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10902 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10903 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10904 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10905 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10906 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10907 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10908 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10909 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10910 * machoread.c (_initialize_machoread): Add declaration.
10911 * macrocmd.c (_initialize_macrocmd): Add declaration.
10912 * macroscope.c (_initialize_macroscope): Add declaration.
10913 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10914 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10915 * maint.c (_initialize_maint_cmds): Add declaration.
10916 * mdebugread.c (_initialize_mdebugread): Add declaration.
10917 * memattr.c (_initialize_mem): Add declaration.
10918 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10919 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10920 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10921 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10922 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10923 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10924 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10925 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10926 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10927 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10928 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10929 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10930 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10931 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10932 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10933 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10934 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10935 * mipsread.c (_initialize_mipsread): Add declaration.
10936 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10937 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10938 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10939 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10940 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10941 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10942 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10943 * nto-procfs.c (_initialize_procfs): Add declaration.
10944 * objc-lang.c (_initialize_objc_language): Add declaration.
10945 * observable.c (_initialize_observer): Add declaration.
10946 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10947 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10948 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10949 * osabi.c (_initialize_gdb_osabi): Add declaration.
10950 * osdata.c (_initialize_osdata): Add declaration.
10951 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10952 * parse.c (_initialize_parse): Add declaration.
10953 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10954 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10955 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10956 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10957 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10958 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10959 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10960 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10961 * printcmd.c (_initialize_printcmd): Add declaration.
10962 * probe.c (_initialize_probe): Add declaration.
10963 * proc-api.c (_initialize_proc_api): Add declaration.
10964 * proc-events.c (_initialize_proc_events): Add declaration.
10965 * proc-service.c (_initialize_proc_service): Add declaration.
10966 * procfs.c (_initialize_procfs): Add declaration.
10967 * producer.c (_initialize_producer): Add declaration.
10968 * psymtab.c (_initialize_psymtab): Add declaration.
10969 * python/python.c (_initialize_python): Add declaration.
10970 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10971 * record-btrace.c (_initialize_record_btrace): Add declaration.
10972 * record-full.c (_initialize_record_full): Add declaration.
10973 * record.c (_initialize_record): Add declaration.
10974 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10975 * regcache.c (_initialize_regcache): Add declaration.
10976 * reggroups.c (_initialize_reggroup): Add declaration.
10977 * remote-notif.c (_initialize_notif): Add declaration.
10978 * remote-sim.c (_initialize_remote_sim): Add declaration.
10979 * remote.c (_initialize_remote): Add declaration.
10980 * reverse.c (_initialize_reverse): Add declaration.
10981 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10982 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10983 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10984 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10985 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10986 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10987 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10988 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10989 Add declaration.
10990 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10991 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10992 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10993 * rust-exp.y (_initialize_rust_exp): Add declaration.
10994 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10995 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10996 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10997 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10998 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10999 * score-tdep.c (_initialize_score_tdep): Add declaration.
11000 * ser-go32.c (_initialize_ser_dos): Add declaration.
11001 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11002 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11003 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11004 * ser-uds.c (_initialize_ser_socket): Add declaration.
11005 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11006 * serial.c (_initialize_serial): Add declaration.
11007 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11008 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11009 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11010 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11011 * skip.c (_initialize_step_skip): Add declaration.
11012 * sol-thread.c (_initialize_sol_thread): Add declaration.
11013 * solib-aix.c (_initialize_solib_aix): Add declaration.
11014 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11015 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11016 * solib-frv.c (_initialize_frv_solib): Add declaration.
11017 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11018 * solib-target.c (_initialize_solib_target): Add declaration.
11019 * solib.c (_initialize_solib): Add declaration.
11020 * source-cache.c (_initialize_source_cache): Add declaration.
11021 * source.c (_initialize_source): Add declaration.
11022 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11023 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11024 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11025 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11026 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11027 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11028 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11029 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11030 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11031 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11032 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11033 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11034 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11035 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11036 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11037 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11038 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11039 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11040 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11041 * stabsread.c (_initialize_stabsread): Add declaration.
11042 * stack.c (_initialize_stack): Add declaration.
11043 * stap-probe.c (_initialize_stap_probe): Add declaration.
11044 * std-regs.c (_initialize_frame_reg): Add declaration.
11045 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11046 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11047 * symfile.c (_initialize_symfile): Add declaration.
11048 * symmisc.c (_initialize_symmisc): Add declaration.
11049 * symtab.c (_initialize_symtab): Add declaration.
11050 * target.c (_initialize_target): Add declaration.
11051 * target-connection.c (_initialize_target_connection): Add
11052 declaration.
11053 * target-dcache.c (_initialize_target_dcache): Add declaration.
11054 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11055 * thread.c (_initialize_thread): Add declaration.
11056 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11057 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11058 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11059 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11060 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11061 * tracectf.c (_initialize_ctf): Add declaration.
11062 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11063 * tracefile.c (_initialize_tracefile): Add declaration.
11064 * tracepoint.c (_initialize_tracepoint): Add declaration.
11065 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11066 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11067 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11068 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11069 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11070 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11071 * tui/tui.c (_initialize_tui): Add declaration.
11072 * typeprint.c (_initialize_typeprint): Add declaration.
11073 * ui-style.c (_initialize_ui_style): Add declaration.
11074 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11075 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11076 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11077 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11078 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11079 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11080 * unittests/filtered_iterator-selftests.c
11081 (_initialize_filtered_iterator_selftests): Add declaration.
11082 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11083 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11084 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11085 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11086 * unittests/main-thread-selftests.c
11087 (_initialize_main_thread_selftests): Add declaration.
11088 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11089 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11090 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11091 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11092 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11093 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11094 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11095 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11096 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11097 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11098 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11099 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11100 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11101 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11102 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11103 declaration.
11104 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11105 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11106 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11107 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11108 * user-regs.c (_initialize_user_regs): Add declaration.
11109 * utils.c (_initialize_utils): Add declaration.
11110 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11111 * valops.c (_initialize_valops): Add declaration.
11112 * valprint.c (_initialize_valprint): Add declaration.
11113 * value.c (_initialize_values): Add declaration.
11114 * varobj.c (_initialize_varobj): Add declaration.
11115 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11116 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11117 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11118 * windows-nat.c (_initialize_windows_nat): Add declaration.
11119 (_initialize_check_for_gdb_ini): Add declaration.
11120 (_initialize_loadable): Add declaration.
11121 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11122 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11123 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11124 * xcoffread.c (_initialize_xcoffread): Add declaration.
11125 * xml-support.c (_initialize_xml_support): Add declaration.
11126 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11127 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11128 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11129 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11130
11131 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11132
11133 * regformats/regdat.sh: Generate declaration for init function.
11134
11135 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11136
11137 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11138 up.
11139 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11140 close_one_inferior>: New methods.
11141 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11142 pass down target to find_inferior_pid.
11143 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11144 Pass down target to find_inferior_ptid.
11145 (gdbsim_target::create_inferior): Pass down target to
11146 add_thread_silent.
11147 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11148 target down to find_inferior_ptid and switch_to_thread.
11149 (gdbsim_target::close): Update to call close_one_inferior.
11150 (struct resume_data): Remove.
11151 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11152 directly, rather than through a void pointer.
11153 (gdbsim_target::resume): Update to call resume_one_inferior.
11154
11155 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11156
11157 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11158
11159 2020-01-12 Pedro Alves <palves@redhat.com>
11160
11161 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11162 directly for the current inferior instead of
11163 discard_all_inferiors.
11164 (discard_all_inferiors): Delete.
11165
11166 2020-01-11 Tom Tromey <tom@tromey.com>
11167
11168 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11169 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11170 deprecated_safe_get_selected_frame.
11171
11172 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11173
11174 * inferior.c (print_inferior): Switch inferior before printing it.
11175
11176 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11177 Pedro Alves <palves@redhat.com>
11178
11179 * progspace-and-thread.c (switch_to_program_space_and_thread):
11180 Assert there's an inferior for PSPACE. Use
11181 switch_to_inferior_no_thread to switch the inferior too.
11182 * progspace.c (program_space::~program_space): Call
11183 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11184 (program_space::free_all_objfiles): Don't call clear_symtab_users
11185 here.
11186 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11187
11188 2020-01-10 Pedro Alves <palves@redhat.com>
11189
11190 * NEWS: Mention multi-target debugging, "info connections", and
11191 "add-inferior -no-connection".
11192
11193 2020-01-10 Pedro Alves <palves@redhat.com>
11194
11195 * infrun.c: Include "target-connection.h".
11196 (check_multi_target_resumption): New.
11197 (proceed): Call it.
11198 * target-connection.c (make_target_connection_string): Make
11199 extern.
11200 * target-connection.h (make_target_connection_string): Declare.
11201
11202 2020-01-10 Pedro Alves <palves@redhat.com>
11203
11204 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11205 * inferior.c (uiout_field_connection): New function.
11206 (print_inferior): Add new "connection-id" column.
11207 (add_inferior_command): Show connection number/string of added
11208 inferior.
11209 * process-stratum-target.h
11210 (process_stratum_target::connection_string): New virtual method.
11211 (process_stratum_target::connection_number): New field.
11212 * remote.c (remote_target::connection_string): New override.
11213 * target-connection.c: New file.
11214 * target-connection.h: New file.
11215 * target.c (decref_target): Remove process_stratum targets from
11216 the connection list.
11217 (target_stack::push): Add process_stratum targets to the
11218 connection list.
11219
11220 2020-01-10 Pedro Alves <palves@redhat.com>
11221
11222 Revert:
11223 2016-04-12 Pedro Alves <palves@redhat.com>
11224 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11225 Remove references to name.
11226 * serial.h (struct serial) <name>: Delete.
11227
11228 2020-01-10 Pedro Alves <palves@redhat.com>
11229
11230 * gdbarch-selftests.c (register_to_value_test): Remove "target
11231 already pushed" check.
11232
11233 2020-01-10 Pedro Alves <palves@redhat.com>
11234 John Baldwin <jhb@FreeBSD.org>
11235
11236 * aarch64-linux-nat.c
11237 (aarch64_linux_nat_target::thread_architecture): Adjust.
11238 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11239 (task_command_1): Likewise.
11240 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11241 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11242 (aix_thread_target::store_registers)
11243 (aix_thread_target::thread_alive): Adjust.
11244 * amd64-fbsd-tdep.c: Include "inferior.h".
11245 (amd64fbsd_get_thread_local_address): Pass down target.
11246 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11247 thread's gdbarch instead of target_gdbarch.
11248 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11249 get_last_target_status.
11250 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11251 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11252 inferiors.
11253 (update_inserted_breakpoint_locations): Skip if inferiors with no
11254 execution.
11255 (update_global_location_list): When handling moribund locations,
11256 find representative inferior for location's pspace, and use thread
11257 count of its process_stratum target.
11258 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11259 * bsd-uthread.c (bsd_uthread_target::wait): Use
11260 as_process_stratum_target and adjust thread_change_ptid and
11261 add_thread calls.
11262 (bsd_uthread_target::update_thread_list): Use
11263 as_process_stratum_target and adjust find_thread_ptid,
11264 thread_change_ptid and add_thread calls.
11265 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11266 find_thread_ptid call.
11267 * corelow.c (add_to_thread_list): Adjust add_thread call.
11268 (core_target_open): Adjust add_thread_silent and thread_count
11269 calls.
11270 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11271 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11272 * event-top.c (async_disconnect): Pop targets from all inferiors.
11273 * exec.c (add_target_sections): Push exec target on all inferiors
11274 sharing the program space.
11275 (remove_target_sections): Remove the exec target from all
11276 inferiors sharing the program space.
11277 (exec_on_vfork): New.
11278 * exec.h (exec_on_vfork): Declare.
11279 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11280 Pass it down.
11281 (fbsd_nat_target::update_thread_list): Adjust.
11282 (fbsd_nat_target::resume): Adjust.
11283 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11284 down.
11285 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11286 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11287 get_thread_arch_regcache call.
11288 * fork-child.c (gdb_startup_inferior): Pass target down to
11289 startup_inferior and set_executing.
11290 * gdbthread.h (struct process_stratum_target): Forward declare.
11291 (add_thread, add_thread_silent, add_thread_with_info)
11292 (in_thread_list): Add process_stratum_target parameter.
11293 (find_thread_ptid(inferior*, ptid_t)): New overload.
11294 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11295 parameter.
11296 (all_threads()): Delete overload.
11297 (all_threads, all_non_exited_threads): Add process_stratum_target
11298 parameter.
11299 (all_threads_safe): Use brace initialization.
11300 (thread_count): Add process_stratum_target parameter.
11301 (set_resumed, set_running, set_stop_requested, set_executing)
11302 (threads_are_executing, finish_thread_state): Add
11303 process_stratum_target parameter.
11304 (switch_to_thread): Use is_current_thread.
11305 * i386-fbsd-tdep.c: Include "inferior.h".
11306 (i386fbsd_get_thread_local_address): Pass down target.
11307 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11308 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11309 have_inferiors check.
11310 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11311 (inf_ptrace_target::attach): Adjust.
11312 * infcall.c (run_inferior_call): Adjust.
11313 * infcmd.c (run_command_1): Pass target to
11314 scoped_finish_thread_state.
11315 (proceed_thread_callback): Skip inferiors with no execution.
11316 (continue_command): Rename 'all_threads' local to avoid hiding
11317 'all_threads' function. Adjust get_last_target_status call.
11318 (prepare_one_step): Adjust set_running call.
11319 (signal_command): Use user_visible_resume_target. Compare thread
11320 pointers instead of inferior_ptid.
11321 (info_program_command): Adjust to pass down target.
11322 (attach_command): Mark target's 'thread_executing' flag.
11323 (stop_current_target_threads_ns): New, factored out from ...
11324 (interrupt_target_1): ... this. Switch inferior before making
11325 target calls.
11326 * inferior-iter.h
11327 (struct all_inferiors_iterator, struct all_inferiors_range)
11328 (struct all_inferiors_safe_range)
11329 (struct all_non_exited_inferiors_range): Filter on
11330 process_stratum_target too. Remove explicit.
11331 * inferior.c (inferior::inferior): Push dummy target on target
11332 stack.
11333 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11334 Add process_stratum_target parameter, and pass it down.
11335 (have_live_inferiors): Adjust.
11336 (switch_to_inferior_and_push_target): New.
11337 (add_inferior_command, clone_inferior_command): Handle
11338 "-no-connection" parameter. Use
11339 switch_to_inferior_and_push_target.
11340 (_initialize_inferior): Mention "-no-connection" option in
11341 the help of "add-inferior" and "clone-inferior" commands.
11342 * inferior.h: Include "process-stratum-target.h".
11343 (interrupt_target_1): Use bool.
11344 (struct inferior) <push_target, unpush_target, target_is_pushed,
11345 find_target_beneath, top_target, process_target, target_at,
11346 m_stack>: New.
11347 (discard_all_inferiors): Delete.
11348 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11349 (all_inferiors, all_non_exited_inferiors): Add
11350 process_stratum_target parameter.
11351 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11352 (target_last_proc_target): New global.
11353 (follow_fork_inferior): Push target on new inferior. Pass target
11354 to add_thread_silent. Call exec_on_vfork. Handle target's
11355 reference count.
11356 (follow_fork): Adjust get_last_target_status call. Also consider
11357 target.
11358 (follow_exec): Push target on new inferior.
11359 (struct execution_control_state) <target>: New field.
11360 (user_visible_resume_target): New.
11361 (do_target_resume): Call target_async.
11362 (resume_1): Set target's threads_executing flag. Consider resume
11363 target.
11364 (commit_resume_all_targets): New.
11365 (proceed): Also consider resume target. Skip threads of inferiors
11366 with no execution. Commit resumtion in all targets.
11367 (start_remote): Pass current inferior to wait_for_inferior.
11368 (infrun_thread_stop_requested): Consider target as well. Pass
11369 thread_info pointer to clear_inline_frame_state instead of ptid.
11370 (infrun_thread_thread_exit): Consider target as well.
11371 (random_pending_event_thread): New inferior parameter. Use it.
11372 (do_target_wait): Rename to ...
11373 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11374 down.
11375 (threads_are_resumed_pending_p, do_target_wait): New.
11376 (prepare_for_detach): Adjust calls.
11377 (wait_for_inferior): New inferior parameter. Handle it. Use
11378 do_target_wait_1 instead of do_target_wait.
11379 (fetch_inferior_event): Adjust. Switch to representative
11380 inferior. Pass target down.
11381 (set_last_target_status): Add process_stratum_target parameter.
11382 Save target in global.
11383 (get_last_target_status): Add process_stratum_target parameter and
11384 handle it.
11385 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11386 (context_switch): Check inferior_ptid == null_ptid before calling
11387 inferior_thread().
11388 (get_inferior_stop_soon): Pass down target.
11389 (wait_one): Rename to ...
11390 (poll_one_curr_target): ... this.
11391 (struct wait_one_event): New.
11392 (wait_one): New.
11393 (stop_all_threads): Adjust.
11394 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11395 event's target.
11396 (switch_back_to_stepped_thread): Also consider target.
11397 (print_stop_event): Update.
11398 (normal_stop): Update. Also consider the resume target.
11399 * infrun.h (wait_for_inferior): Remove declaration.
11400 (user_visible_resume_target): New declaration.
11401 (get_last_target_status, set_last_target_status): New
11402 process_stratum_target parameter.
11403 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11404 process_stratum_target parameter, and use it.
11405 (clear_inline_frame_state (thread_info*)): New.
11406 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11407 process_stratum_target parameter.
11408 (clear_inline_frame_state (thread_info*)): Declare.
11409 * linux-fork.c (delete_checkpoint_command): Pass target down to
11410 find_thread_ptid.
11411 (checkpoint_command): Adjust.
11412 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11413 instead of just tweaking inferior_ptid.
11414 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11415 (exit_lwp): Pass target down to find_thread_ptid.
11416 (attach_proc_task_lwp_callback): Pass target down to
11417 add_thread/set_running/set_executing.
11418 (linux_nat_target::attach): Pass target down to
11419 thread_change_ptid.
11420 (get_detach_signal): Pass target down to find_thread_ptid.
11421 Consider last target status's target.
11422 (linux_resume_one_lwp_throw, resume_lwp)
11423 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11424 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11425 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11426 (linux_nat_target::async_wait_fd): New.
11427 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11428 target down.
11429 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11430 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11431 * linux-thread-db.c (struct thread_db_info::process_target): New
11432 field.
11433 (add_thread_db_info): Save target.
11434 (get_thread_db_info): New process_stratum_target parameter. Also
11435 match target.
11436 (delete_thread_db_info): New process_stratum_target parameter.
11437 Also match target.
11438 (thread_from_lwp): Adjust to pass down target.
11439 (thread_db_notice_clone): Pass down target.
11440 (check_thread_db_callback): Pass down target.
11441 (try_thread_db_load_1): Always push the thread_db target.
11442 (try_thread_db_load, record_thread): Pass target down.
11443 (thread_db_target::detach): Pass target down. Always unpush the
11444 thread_db target.
11445 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11446 target down. Always unpush the thread_db target.
11447 (find_new_threads_callback, thread_db_find_new_threads_2)
11448 (thread_db_target::update_thread_list): Pass target down.
11449 (thread_db_target::pid_to_str): Pass current inferior down.
11450 (thread_db_target::get_thread_local_address): Pass target down.
11451 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11452 target down.
11453 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11454 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11455 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11456 (procfs_init_inferior): Rename to ...
11457 (procfs_target::procfs_init_inferior): ... this and adjust.
11458 (procfs_target::create_inferior, procfs_notice_thread)
11459 (procfs_do_thread_registers): Adjust.
11460 * ppc-fbsd-tdep.c: Include "inferior.h".
11461 (ppcfbsd_get_thread_local_address): Pass down target.
11462 * proc-service.c (ps_xfer_memory): Switch current inferior and
11463 program space as well.
11464 (get_ps_regcache): Pass target down.
11465 * process-stratum-target.c
11466 (process_stratum_target::thread_address_space)
11467 (process_stratum_target::thread_architecture): Pass target down.
11468 * process-stratum-target.h
11469 (process_stratum_target::threads_executing): New field.
11470 (as_process_stratum_target): New.
11471 * ravenscar-thread.c
11472 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11473 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11474 down.
11475 * record-btrace.c (record_btrace_target::info_record): Adjust.
11476 (record_btrace_target::record_method)
11477 (record_btrace_target::record_is_replaying)
11478 (record_btrace_target::fetch_registers)
11479 (get_thread_current_frame_id, record_btrace_target::resume)
11480 (record_btrace_target::wait, record_btrace_target::stop): Pass
11481 target down.
11482 * record-full.c (record_full_wait_1): Switch to event thread.
11483 Pass target down.
11484 * regcache.c (regcache::regcache)
11485 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11486 process_stratum_target parameter and handle it.
11487 (current_thread_target): New global.
11488 (get_thread_regcache): Add process_stratum_target parameter and
11489 handle it. Switch inferior before calling target method.
11490 (get_thread_regcache): Pass target down.
11491 (get_thread_regcache_for_ptid): Pass target down.
11492 (registers_changed_ptid): Add process_stratum_target parameter and
11493 handle it.
11494 (registers_changed_thread, registers_changed): Pass target down.
11495 (test_get_thread_arch_aspace_regcache): New.
11496 (current_regcache_test): Define a couple local test_target_ops
11497 instances and use them for testing.
11498 (readwrite_regcache): Pass process_stratum_target parameter.
11499 (cooked_read_test, cooked_write_test): Pass mock_target down.
11500 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11501 (get_thread_arch_aspace_regcache): Add process_stratum_target
11502 parameter.
11503 (regcache::target): New method.
11504 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11505 (regcache::registers_changed_ptid): Add process_stratum_target
11506 parameter.
11507 (regcache::m_target): New field.
11508 (registers_changed_ptid): Add process_stratum_target parameter.
11509 * remote.c (remote_state::supports_vCont_probed): New field.
11510 (remote_target::async_wait_fd): New method.
11511 (remote_unpush_and_throw): Add remote_target parameter.
11512 (get_current_remote_target): Adjust.
11513 (remote_target::remote_add_inferior): Push target.
11514 (remote_target::remote_add_thread)
11515 (remote_target::remote_notice_new_inferior)
11516 (get_remote_thread_info): Pass target down.
11517 (remote_target::update_thread_list): Skip threads of inferiors
11518 bound to other targets. (remote_target::close): Don't discard
11519 inferiors. (remote_target::add_current_inferior_and_thread)
11520 (remote_target::process_initial_stop_replies)
11521 (remote_target::start_remote)
11522 (remote_target::remote_serial_quit_handler): Pass down target.
11523 (remote_target::remote_unpush_target): New remote_target
11524 parameter. Unpush the target from all inferiors.
11525 (remote_target::remote_unpush_and_throw): New remote_target
11526 parameter. Pass it down.
11527 (remote_target::open_1): Check whether the current inferior has
11528 execution instead of checking whether any inferior is live. Pass
11529 target down.
11530 (remote_target::remote_detach_1): Pass down target. Use
11531 remote_unpush_target.
11532 (extended_remote_target::attach): Pass down target.
11533 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11534 (remote_target::append_resumption): Pass down target.
11535 (remote_target::append_pending_thread_resumptions)
11536 (remote_target::remote_resume_with_hc, remote_target::resume)
11537 (remote_target::commit_resume): Pass down target.
11538 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11539 (remote_target::interrupt_query)
11540 (remote_target::remove_new_fork_children)
11541 (remote_target::check_pending_events_prevent_wildcard_vcont)
11542 (remote_target::remote_parse_stop_reply)
11543 (remote_target::process_stop_reply): Pass down target.
11544 (first_remote_resumed_thread): New remote_target parameter. Pass
11545 it down.
11546 (remote_target::wait_as): Pass down target.
11547 (unpush_and_perror): New remote_target parameter. Pass it down.
11548 (remote_target::readchar, remote_target::remote_serial_write)
11549 (remote_target::getpkt_or_notif_sane_1)
11550 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11551 down target.
11552 (remote_target::mourn_inferior): Pass down target. Use
11553 remote_unpush_target.
11554 (remote_target::core_of_thread)
11555 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11556 (remote_target::pid_to_exec_file)
11557 (remote_target::thread_handle_to_thread_info): Pass down target.
11558 (remote_target::async_wait_fd): New.
11559 * riscv-fbsd-tdep.c: Include "inferior.h".
11560 (riscv_fbsd_get_thread_local_address): Pass down target.
11561 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11562 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11563 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11564 Adjust.
11565 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11566 * solib-svr4.c (enable_break): Pass down target.
11567 * spu-multiarch.c (parse_spufs_run): Pass down target.
11568 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11569 * target-delegates.c: Regenerate.
11570 * target.c (g_target_stack): Delete.
11571 (current_top_target): Return the current inferior's top target.
11572 (target_has_execution_1): Refer to the passed-in inferior's top
11573 target.
11574 (target_supports_terminal_ours): Check whether the initial
11575 inferior was already created.
11576 (decref_target): New.
11577 (target_stack::push): Incref/decref the target.
11578 (push_target, push_target, unpush_target): Adjust.
11579 (target_stack::unpush): Defref target.
11580 (target_is_pushed): Return bool. Adjust to refer to the current
11581 inferior's target stack.
11582 (dispose_inferior): Delete, and inline parts ...
11583 (target_preopen): ... here. Only dispose of the current inferior.
11584 (target_detach): Hold strong target reference while detaching.
11585 Pass target down.
11586 (target_thread_name): Add assertion.
11587 (target_resume): Pass down target.
11588 (target_ops::beneath, find_target_at): Adjust to refer to the
11589 current inferior's target stack.
11590 (get_dummy_target): New.
11591 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11592 has a thread running.
11593 (initialize_targets): Rename to ...
11594 (_initialize_target): ... this.
11595 * target.h: Include "gdbsupport/refcounted-object.h".
11596 (struct target_ops): Inherit refcounted_object.
11597 (target_ops::shortname, target_ops::longname): Make const.
11598 (target_ops::async_wait_fd): New method.
11599 (decref_target): Declare.
11600 (struct target_ops_ref_policy): New.
11601 (target_ops_ref): New typedef.
11602 (get_dummy_target): Declare function.
11603 (target_is_pushed): Return bool.
11604 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11605 (all_matching_threads_iterator::all_matching_threads_iterator):
11606 Handle filter target.
11607 * thread-iter.h (struct all_matching_threads_iterator, struct
11608 all_matching_threads_range, class all_non_exited_threads_range):
11609 Filter by target too. Remove explicit.
11610 * thread.c (threads_executing): Delete.
11611 (inferior_thread): Pass down current inferior.
11612 (clear_thread_inferior_resources): Pass down thread pointer
11613 instead of ptid_t.
11614 (add_thread_silent, add_thread_with_info, add_thread): Add
11615 process_stratum_target parameter. Use it for thread and inferior
11616 searches.
11617 (is_current_thread): New.
11618 (thread_info::deletable): Use it.
11619 (find_thread_ptid, thread_count, in_thread_list)
11620 (thread_change_ptid, set_resumed, set_running): New
11621 process_stratum_target parameter. Pass it down.
11622 (set_executing): New process_stratum_target parameter. Pass it
11623 down. Adjust reference to 'threads_executing'.
11624 (threads_are_executing): New process_stratum_target parameter.
11625 Adjust reference to 'threads_executing'.
11626 (set_stop_requested, finish_thread_state): New
11627 process_stratum_target parameter. Pass it down.
11628 (switch_to_thread): Also match inferior.
11629 (switch_to_thread): New process_stratum_target parameter. Pass it
11630 down.
11631 (update_threads_executing): Reimplement.
11632 * top.c (quit_force): Pop targets from all inferior.
11633 (gdb_init): Don't call initialize_targets.
11634 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11635 Declare.
11636 (windows_add_thread, windows_delete_thread): Adjust.
11637 (get_windows_debug_event): Rename to ...
11638 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11639 * tracefile-tfile.c (tfile_target_open): Pass down target.
11640 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11641 Forward declare.
11642 (switch_to_thread): Add process_stratum_target parameter.
11643 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11644 parameter. Use it.
11645 (mi_on_resume): Pass target down.
11646 * nat/fork-inferior.c (startup_inferior): Add
11647 process_stratum_target parameter. Pass it down.
11648 * nat/fork-inferior.h (startup_inferior): Add
11649 process_stratum_target parameter.
11650 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11651
11652 2020-01-10 Pedro Alves <palves@redhat.com>
11653
11654 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11655 directly. Instead find the first thread in the thread list and
11656 use switch_to_thread.
11657
11658 2020-01-10 Pedro Alves <palves@redhat.com>
11659
11660 * remote.c (remote_target::remote_add_inferior): Don't bind a
11661 process to the current inferior if the current inferior is already
11662 bound to a process.
11663
11664 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11665 Pedro Alves <palves@redhat.com>
11666
11667 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11668 If no process is specified, return null_ptid instead of
11669 inferior_ptid.
11670 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11671 TARGET_WAITKIND_SIGNALLED with no pid.
11672
11673 2020-01-10 Pedro Alves <palves@redhat.com>
11674
11675 * remote.c (first_remote_resumed_thread): New.
11676 (remote_target::wait_as): Use it as default event_ptid instead of
11677 inferior_ptid.
11678
11679 2020-01-10 Pedro Alves <palves@redhat.com>
11680
11681 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11682
11683 2020-01-10 Pedro Alves <palves@redhat.com>
11684
11685 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11686 not -1.
11687
11688 2020-01-10 Pedro Alves <palves@redhat.com>
11689
11690 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11691 ptid to get_last_target_status.
11692 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11693 ptid to get_last_target_status.
11694 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11695 get_last_target_status.
11696 (info_program_command): Don't pass a target_waitstatus to
11697 get_last_target_status.
11698 * infrun.c (init_wait_for_inferior): Use
11699 nullify_last_target_wait_ptid.
11700 (get_last_target_status): Handle nullptr arguments.
11701 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11702 (print_stop_event): Don't pass a ptid to get_last_target_status.
11703 (normal_stop): Don't pass a ptid to get_last_target_status.
11704 * infrun.h (get_last_target_status, set_last_target_status): Move
11705 comments here and update.
11706 (nullify_last_target_wait_ptid): Declare.
11707 * linux-fork.c (fork_load_infrun_state): Remove local extern
11708 declaration of nullify_last_target_wait_ptid.
11709 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11710 to get_last_target_status.
11711
11712 2020-01-10 Pedro Alves <palves@redhat.com>
11713
11714 * gdbthread.h (scoped_restore_current_thread)
11715 <dont_restore, restore, m_dont_restore>: Declare.
11716 * thread.c (thread_alive): Add assertion. Return bool.
11717 (switch_to_thread_if_alive): New.
11718 (prune_threads): Switch inferior/thread.
11719 (print_thread_info_1): Switch thread before calling target methods.
11720 (scoped_restore_current_thread::restore): New, factored out from
11721 ...
11722 (scoped_restore_current_thread::~scoped_restore_current_thread):
11723 ... this.
11724 (scoped_restore_current_thread::scoped_restore_current_thread):
11725 Add assertion.
11726 (thread_apply_all_command, thread_select): Use
11727 switch_to_thread_if_alive.
11728 * infrun.c (proceed, restart_threads, handle_signal_stop)
11729 (switch_back_to_stepped_thread): Switch current thread before
11730 calling target methods.
11731
11732 2020-01-10 Pedro Alves <palves@redhat.com>
11733
11734 * inferior.c (switch_to_inferior_no_thread): New function,
11735 factored out from ...
11736 (inferior_command): ... here.
11737 * inferior.h (switch_to_inferior_no_thread): Declare.
11738 * mi/mi-main.c (run_one_inferior): Use
11739 switch_to_inferior_no_thread.
11740
11741 2020-01-10 Pedro Alves <palves@redhat.com>
11742
11743 * infcmd.c (kill_command): Remove dead code.
11744
11745 2020-01-10 Pedro Alves <palves@redhat.com>
11746
11747 * remote.c (remote_target::mourn_inferior): No longer check
11748 whether the target is running.
11749
11750 2020-01-10 Pedro Alves <palves@redhat.com>
11751
11752 * corelow.c (core_target::has_execution): Change parameter type to
11753 inferior pointer.
11754 * inferior.c (number_of_live_inferiors): Use
11755 inferior::has_execution instead of target_has_execution_1.
11756 * inferior.h (inferior::has_execution): New.
11757 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11758 inferior::has_execution instead of target_has_execution_1.
11759 * process-stratum-target.c
11760 (process_stratum_target::has_execution): Change parameter type to
11761 inferior pointer. Check the inferior's PID instead of
11762 inferior_ptid.
11763 * process-stratum-target.h
11764 (process_stratum_target::has_execution): Change parameter type to
11765 inferior pointer.
11766 * record-full.c (record_full_core_target::has_execution): Change
11767 parameter type to inferior pointer.
11768 * target.c (target_has_execution_1): Change parameter type to
11769 inferior pointer.
11770 (target_has_execution_current): Adjust.
11771 * target.h (target_ops::has_execution): Change parameter type to
11772 inferior pointer.
11773 (target_has_execution_1): Change parameter type to inferior
11774 pointer. Change return type to bool.
11775 * tracefile.h (tracefile_target::has_execution): Change parameter
11776 type to inferior pointer.
11777
11778 2020-01-10 Pedro Alves <palves@redhat.com>
11779
11780 * exceptions.c (print_flush): Remove current_top_target() check.
11781
11782 2020-01-10 Pedro Alves <palves@redhat.com>
11783
11784 * remote.c (show_remote_exec_file): Show the current inferior's
11785 exec-file instead of the command variable's value.
11786
11787 2020-01-10 Pedro Alves <palves@redhat.com>
11788
11789 * record-full.c (record_full_resume_ptid): New global.
11790 (record_full_target::resume): Set it.
11791 (record_full_wait_1): Use record_full_resume_ptid instead of
11792 inferior_ptid.
11793
11794 2020-01-10 Pedro Alves <palves@redhat.com>
11795
11796 * gdbthread.h (scoped_restore_current_thread)
11797 <dont_restore, restore, m_dont_restore>: Declare.
11798 * thread.c (thread_alive): Add assertion. Return bool.
11799 (switch_to_thread_if_alive): New.
11800 (prune_threads): Switch inferior/thread.
11801 (print_thread_info_1): Switch thread before calling target methods.
11802 (scoped_restore_current_thread::restore): New, factored out from
11803 ...
11804 (scoped_restore_current_thread::~scoped_restore_current_thread):
11805 ... this.
11806 (scoped_restore_current_thread::scoped_restore_current_thread):
11807 Add assertion.
11808 (thread_apply_all_command, thread_select): Use
11809 switch_to_thread_if_alive.
11810
11811 2020-01-10 George Barrett <bob@bob131.so>
11812
11813 * stap-probe.c (stap_modify_semaphore): Don't check for null
11814 semaphores.
11815 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11816 for null semaphores.
11817
11818 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11819
11820 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11821 all source windows, and maintain horizontal scroll status while
11822 doing so.
11823
11824 2020-01-09 Tom Tromey <tom@tromey.com>
11825
11826 PR tui/18932:
11827 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11828 update_source_window, not print_source_lines.
11829
11830 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11831
11832 * tui/tui.c (tui_enable): Register tui hooks after calling
11833 tui_display_main.
11834
11835 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11836
11837 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11838
11839 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11840
11841 * thread.c (print_thread_info_1): Fix indentation.
11842
11843 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11844
11845 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11846 unique_xmalloc_ptr outside the if to always free the demangled name.
11847
11848 2020-01-08 Tom Tromey <tromey@adacore.com>
11849
11850 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11851 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11852 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11853 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11854 Remove.
11855 (section_offsets): New typedef.
11856 * symtab.c (fixup_section, get_msymbol_address): Update.
11857 * symmisc.c (dump_msymbols): Update.
11858 * symfile.h (relative_addr_info_to_section_offsets)
11859 (symfile_map_offsets_to_segments): Update.
11860 * symfile.c (build_section_addr_info_from_objfile)
11861 (init_objfile_sect_indices): Update.
11862 (struct place_section_arg): Change type of "offsets".
11863 (place_section): Update.
11864 (relative_addr_info_to_section_offsets): Change type of
11865 "section_offsets". Remove "num_sections" parameter.
11866 (default_symfile_offsets, syms_from_objfile_1)
11867 (set_objfile_default_section_offset): Update.
11868 (reread_symbols): No need to preserve section offsets by hand.
11869 (symfile_map_offsets_to_segments): Change type of "offsets".
11870 * stap-probe.c (relocate_address): Update.
11871 * stabsread.h (process_one_symbol): Update.
11872 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11873 (solib_target_relocate_section_addresses): Update.
11874 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11875 Update.
11876 * solib-frv.c (frv_relocate_main_executable): Update.
11877 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11878 * solib-aix.c (solib_aix_get_section_offsets): Change return
11879 type.
11880 (solib_aix_solib_create_inferior_hook): Update.
11881 * remote.c (remote_target::get_offsets): Update.
11882 * psymtab.c (find_pc_sect_psymtab): Update.
11883 * psympriv.h (struct partial_symbol) <address, text_low,
11884 text_high>: Update.
11885 * objfiles.h (obj_section_offset): Update.
11886 (struct objfile) <section_offsets>: Change type.
11887 <num_sections>: Remove.
11888 (objfile_relocate): Update.
11889 * objfiles.c (entry_point_address_query): Update
11890 (relocate_one_symbol): Change type of "section_offsets".
11891 (objfile_relocate1, objfile_relocate1): Change type of
11892 "new_offsets".
11893 (objfile_rebase1): Update.
11894 * mipsread.c (mipscoff_symfile_read): Update.
11895 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11896 parameter.
11897 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11898 (parse_external, psymtab_to_symtab_1): Update.
11899 * machoread.c (macho_symfile_offsets): Update.
11900 * ia64-tdep.c (ia64_find_unwind_table): Update.
11901 * hppa-tdep.c (read_unwind_info): Update.
11902 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11903 * dwarf2read.c (create_addrmap_from_index)
11904 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11905 (process_psymtab_comp_unit_reader, add_partial_symbol)
11906 (add_partial_subprogram, process_full_comp_unit)
11907 (read_file_scope, read_func_scope, read_lexical_block_scope)
11908 (read_call_site_scope, dwarf2_rnglists_process)
11909 (dwarf2_ranges_process, dwarf2_ranges_read)
11910 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11911 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11912 Update.
11913 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11914 Update.
11915 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11916 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11917 (process_one_symbol): Change type of "section_offsets".
11918 * ctfread.c (get_objfile_text_range): Update.
11919 * coffread.c (coff_symtab_read, enter_linenos)
11920 (process_coff_symbol): Update.
11921 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11922 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11923
11924 2020-01-08 Tom Tromey <tromey@adacore.com>
11925
11926 * dwarf2read.c (parse_macro_definition): Use std::string.
11927 (parse_macro_definition): Likewise.
11928
11929 2020-01-08 Tom Tromey <tromey@adacore.com>
11930
11931 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11932 (ATTR_ALLOC_CHUNK): Remove.
11933
11934 2020-01-08 Tom Tromey <tromey@adacore.com>
11935
11936 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11937
11938 2020-01-08 Tom Tromey <tromey@adacore.com>
11939
11940 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11941 (dwarf2_compute_name, open_dwo_file): Likewise.
11942 (process_enumeration_scope): Use std::vector.
11943 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11944 (partial_die_info::fixup, dwarf2_start_subfile)
11945 (guess_full_die_structure_name, dwarf2_name): Likewise.
11946 (determine_prefix): Update.
11947 (guess_full_die_structure_name): Make return type const.
11948 (partial_die_full_name): Return unique_xmalloc_ptr.
11949 (DW_FIELD_ALLOC_CHUNK): Remove.
11950
11951 2020-01-07 Tom Tromey <tromey@adacore.com>
11952
11953 PR build/24937:
11954 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11955
11956 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11957
11958 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11959
11960 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11961
11962 * stack.c (print_frame_info): Move disassemble_next_line code
11963 inside source_print block.
11964
11965 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11966
11967 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11968 gdb/signals.h, as we are now using native signal symbols.
11969
11970 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11971
11972 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11973 overflow by an early check of content vs threshold.
11974 * tui/tui-source.c (tui_source_window::line_is_displayed):
11975 Likewise.
11976
11977 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11978
11979 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11980
11981 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11982
11983 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11984 export table if no section contains it's RVA.
11985
11986 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11987
11988 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11989
11990 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
11991
11992 * source.c (print_source_lines_base): Set last_line_listed.
11993
11994 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11995
11996 * tui/tui-disasm.c: Remove trailing spaces.
11997
11998 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11999 Pedro Alves <palves@redhat.com>
12000
12001 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12002 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12003 (windows_gdb_signal_to_target): New function, uses the above
12004 enumeration to convert GDB internal signal codes to equivalent
12005 Windows codes.
12006 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12007 * windows-nat.c: Include "gdb_wait.h".
12008 (get_windows_debug_event): Extract the fatal exception from the
12009 exit status and convert to the equivalent Posix signal number.
12010 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12011 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12012 * gdbsupport/gdb_wait.c: New file, implements
12013 windows_status_to_termsig.
12014 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12015 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12016
12017 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12018
12019 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12020 show_layout.
12021
12022 2020-01-05 Luis Machado <luis.machado@linaro.org>
12023
12024 * aarch64-linux-nat.c
12025 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12026 and bfd_mach_aarch64.
12027
12028 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12029
12030 * ui-file.c (stdio_file::can_emit_style_escape)
12031 (tee_file::can_emit_style_escape): Ensure style is used also on
12032 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12033 to gdb_stdout.
12034 * main.c (set_gdb_data_directory): Use file style to output the
12035 warning that the given pathname is not a directory.
12036 * top.c (show_history_filename, gdb_safe_append_history)
12037 (show_gdb_datadir): Use file style.
12038
12039 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12040
12041 * solib-target.c (struct lm_info_target):
12042 Change offsets to be a unique_xmalloc_ptr.
12043 (solib_target_relocate_section_addresses): Update.
12044
12045 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12046
12047 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12048
12049 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12050
12051 * MAINTAINERS (Write After Approval): Add myself.
12052
12053 2020-01-02 Luis Machado <luis.machado@linaro.org>
12054
12055 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12056 Cell BE architecture.
12057 * target.h (struct target_ops) <thread_architecture>: Likewise.
12058
12059 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12060
12061 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12062
12063 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12064
12065 * MAINTAINERS (Write After Approval): Add myself.
12066
12067 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12068
12069 * gdbarch.sh: Update copyright year range of generated files.
12070
12071 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12072
12073 Update copyright year range in all GDB files.
12074
12075 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12076
12077 * copyright.py: Convert to Python 3.
12078
12079 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12080
12081 * copyright.py: Adapt after move of gnulib directory from gdb
12082 directory to toplevel directory.
12083
12084 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12085
12086 * copyright.py (main): Exit if run from the wrong directory.
12087
12088 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12089
12090 * top.c (print_gdb_version): Change copyright year to 2020.
12091
12092 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12093
12094 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12095
12096 For older changes see ChangeLog-2019.
12097 \f
12098 Local Variables:
12099 mode: change-log
12100 left-margin: 8
12101 fill-column: 74
12102 version-control: never
12103 coding: utf-8
12104 End: