gdb: Implement native dumpcore function
[binutils-gdb.git] / gdb / ChangeLog
1 2020-08-13 Kamil Rytarowski <n54@gmx.com>
2
3 * target.h (supports_dumpcore, dumpcore): New
4 function declarations.
5 * target.c (supports_dumpcore, dumpcore): New
6 functions.
7 * target-delegates.c: Rebuild.
8 * gcore.c (gcore_command): Use target_supports_dumpcore ()
9 and target_dumpcore ().
10
11 2020-08-13 Aaron Merey <amerey@redhat.com>
12
13 * debuginfod-support.c: Replace global variables with user_data.
14
15 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
16
17 * maint.c (maintenance_selftest): Split args and pass array_view
18 to run_tests.
19
20 2020-08-12 Luis Machado <luis.machado@linaro.org>
21
22 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
23 type's length.
24 Use %s and pulongest to print the length.
25
26 2020-08-12 Pedro Alves <palves@redhat.com>
27
28 * NEWS: Move "Multi-target debugging support" item to the
29 "Changes since GDB 9" section.
30
31 2020-08-12 Pedro Alves <palves@redhat.com>
32
33 PR gdb/26336
34 * progspace.c (program_space::remove_objfile): Invalidate the
35 frame cache.
36
37 2020-08-11 Tom de Vries <tdevries@suse.de>
38
39 * MAINTAINERS: Mark ms1 as deleted.
40
41 2020-08-10 Luis Machado <luis.machado@linaro.org>
42
43 PR gdb/26310
44
45 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
46 act accordingly.
47 (aarch64_analyze_prologue_test): Add more unit tests to exercise
48 movz/str/stur/stp skipping behavior.
49
50 2020-08-10 Luis Machado <luis.machado@linaro.org>
51
52 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
53 struct user_sve_header instead of struct sve_context.
54
55 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
56
57 * read.h (dwarf2_fetch_die_loc_sect_off,
58 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
59 `void *` parameter with function_view.
60 * read.c (dwarf2_fetch_die_loc_sect_off,
61 dwarf2_fetch_die_loc_cu_off): Likewise.
62 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
63 (per_cu_dwarf_call): Adjust.
64 (get_frame_address_in_block_wrapper): Remove.
65 (indirect_synthetic_pointer): Adjust.
66 (get_ax_pc): Remove.
67 (dwarf2_compile_expr_to_ax): Adjust.
68
69 2020-08-08 Tom de Vries <tdevries@suse.de>
70
71 PR build/26344
72 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
73 constructor.
74 * regcache.c (get_thread_arch_aspace_regcache): Same.
75
76 2020-08-07 Tom Tromey <tromey@adacore.com>
77
78 * ravenscar-thread.c
79 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
80 New method.
81 (ravenscar_thread_target::wait): Check
82 runtime_initialized.
83 (ravenscar_thread_target::prepare_to_store)
84 (ravenscar_thread_target::stopped_by_sw_breakpoint)
85 (ravenscar_thread_target::stopped_by_hw_breakpoint)
86 (ravenscar_thread_target::stopped_by_watchpoint)
87 (ravenscar_thread_target::stopped_data_address)
88 (ravenscar_thread_target::core_of_thread): Use
89 scoped_restore_current_thread and
90 set_base_thread_from_ravenscar_task.
91
92 2020-08-07 Tom Tromey <tromey@adacore.com>
93
94 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
95
96 2020-08-07 Tom Tromey <tromey@adacore.com>
97
98 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
99 update_inferior_ptid before update_thread_list.
100 (temporarily_change_regcache_ptid): New class.
101 (ravenscar_thread_target::fetch_registers)
102 (ravenscar_thread_target::store_registers)
103 (ravenscar_thread_target::prepare_to_store): Use base thread when
104 forwarding operation.
105
106 2020-08-07 Tom Tromey <tromey@adacore.com>
107
108 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
109 "is_pid" case.
110
111 2020-08-07 Tom Tromey <tromey@adacore.com>
112
113 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
114 New methods.
115 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
116 first.
117 (ravenscar_thread_target::add_thread): Rename from
118 ravenscar_add_thread.
119 (ravenscar_thread_target::update_thread_list): Use a lambda.
120 (ravenscar_thread_target::xfer_partial): New method.
121
122 2020-08-07 Tom Tromey <tromey@adacore.com>
123
124 * ada-lang.h (ada_task_list_iterator_ftype): Now a
125 gdb::function_view.
126 (iterate_over_live_ada_tasks): Change type of argument.
127 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
128 of argument.
129
130 2020-08-07 Tom Tromey <tromey@adacore.com>
131
132 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
133 Remove.
134 (ravenscar_thread_target::extra_thread_info): Remove.
135 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
136 defer to target beneath for non-Ravenscar threads.
137
138 2020-08-07 Tom Tromey <tromey@adacore.com>
139
140 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
141 get_base_thread_from_ravenscar_task>: Now methods.
142 <m_cpu_map>: New member.
143 (ravenscar_thread_target::get_thread_base_cpu): Rename from
144 ravenscar_get_thread_base_cpu. Check m_cpu_map.
145 (ravenscar_thread_target::task_is_currently_active): Update.
146 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
147 Now a method.
148 (ravenscar_thread_target::add_active_thread): Put initial thread
149 into the m_cpu_map.
150
151 2020-08-07 Tom Tromey <tromey@adacore.com>
152
153 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
154 event_ptid.
155
156 2020-08-07 Tom Tromey <tromey@adacore.com>
157
158 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
159 runtime_initialized.
160
161 2020-08-07 Tom Tromey <tromey@adacore.com>
162
163 * ravenscar-thread.c (ravenscar_thread_target): Don't call
164 add_active_thread.
165 (ravenscar_thread_target::add_active_thread): Now public.
166 (ravenscar_inferior_created): Call add_active_thread after pushing
167 the target.
168
169 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
170
171 * regcache.c (ptid_regcache_map): New type.
172 (target_ptid_regcache_map): New type.
173 (regcaches): Change type to target_ptid_regcache_map.
174 (get_thread_arch_aspace_regcache): Update to regcaches' new
175 type.
176 (regcache_thread_ptid_changed): Likewise.
177 (registers_changed_ptid): Likewise.
178 (regcaches_size): Likewise.
179 (regcaches_test): Update.
180 (regcache_thread_ptid_changed): Update.
181 * regcache.h (regcache_up): New type.
182 * gdbsupport/ptid.h (hash_ptid): New struct.
183
184 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
185
186 * observable.h (thread_ptid_changed): Add parameter
187 `process_stratum_target *`.
188 * infrun.c (infrun_thread_ptid_changed): Add parameter
189 `process_stratum_target *` and use it.
190 (selftests): New namespace.
191 (infrun_thread_ptid_changed): New function.
192 (_initialize_infrun): Register selftest.
193 * regcache.c (regcache_thread_ptid_changed): Add parameter
194 `process_stratum_target *` and use it.
195 (regcache_thread_ptid_changed): New function.
196 (_initialize_regcache): Register selftest.
197 * thread.c (thread_change_ptid): Pass target to
198 thread_ptid_changed observable.
199
200 2020-08-06 Caroline Tice <cmtice@google.com>
201
202 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
203 (struct dwp_sections): Update field comments. Add loclists and
204 rnglists fields.
205 (struct virtual_v2_dwo_sections): Rename struct to
206 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
207 size & offset fields for loclists and rnglists.
208 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
209 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
210 skipping dummy type units.
211 (create_dwp_hash_table): Update the large comment above the function to
212 discuss Version 5 DWP files as well, with references. Update all the
213 version checks in the function to check for version 5 as well. Add new
214 section at the end to create dwp hash table for version 5.
215 (create_dwp_v2_section): Rename function to
216 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
217 Add V5 to error message text.
218 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
219 into calls to create_dwp_v2_or_v5_section.
220 (create_dwo_unit_in_dwp_v5): New function.
221 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
222 check for version2; add else clause to handle version 5.
223 (open_and_init_dwo_file): Add code to check dwarf version & only call
224 create_debug_types_hash_table (with sections.types) if version is not 5;
225 else call create_debug_type_hash_table, with sections.info.
226 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
227 version 5.
228 (dwarf2_locate_v5_dwp_sections): New function.
229 (open_and_init_dwp_file): Add else-if clause for version 5 to call
230 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
231
232 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
233
234 * regcache.h (class regcache): Remove friend
235 registers_changed_ptid.
236 <regcache_thread_ptid_changed>: Remove.
237 <regcaches>: Remove.
238 * regcache.c (regcache::regcaches): Rename to...
239 (regcaches): ... this. Make static.
240 (get_thread_arch_aspace_regcache): Update.
241 (regcache::regcache_thread_ptid_changed): Rename to...
242 (regcache_thread_ptid_changed): ... this. Update.
243 (class regcache_access): Remove.
244 (regcaches_test): Update.
245 (_initialize_regcache): Update.
246 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
247 <forward_list>.
248
249 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
250
251 * regcache.h (class regcache) <current_regcache>: Rename to...
252 <regcaches>: ... this. Move doc here.
253 * regcache.c (regcache::current_regcache) Rename to...
254 (regcache::regcaches): ... this. Move doc to header.
255 (get_thread_arch_aspace_regcache): Update.
256 (regcache::regcache_thread_ptid_changed): Update.
257 (registers_changed_ptid): Update.
258 (class regcache_access) <current_regcache_size>: Rename to...
259 <regcaches_size>: ... this.
260 (current_regcache_test): Rename to...
261 (regcaches_test): ... this.
262 (_initialize_regcache): Update.
263
264 2020-08-06 Victor Collod <vcollod@nvidia.com>
265
266 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
267
268 2020-08-05 Kevin Buettner <kevinb@redhat.com>
269
270 * corelow.c (core_target::build_file_mappings): Don't output
271 null pathname in warning.
272
273 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
274
275 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
276 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
277 gdb.dwarf2/dw2-single-line-discriminators.exp,
278 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
279
280 2020-08-05 Tom Tromey <tromey@adacore.com>
281
282 PR rust/26197:
283 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
284 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
285 Fix off-by-one and type size errors in ordinary case.
286
287 2020-08-05 Tom de Vries <tdevries@suse.de>
288
289 * gdbtypes.c (type_not_allocated, type_not_associated): Use
290 "prop->const_val () == 0" instead of "prop->const_val () != 0".
291
292 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
293
294 * frame.h (frame_id_p): Return bool.
295 (frame_id_artificial_p): Return bool.
296 (frame_id_eq): Return bool.
297 (has_stack_frames): Return bool.
298 (get_selected_frame): Fix typo in comment.
299 (get_frame_pc_if_available): Return bool.
300 (get_frame_address_in_block_if_available): Return bool.
301 (get_frame_func_if_available): Return bool.
302 (read_frame_register_unsigned): Return bool.
303 (get_frame_register_bytes): Return bool.
304 (safe_frame_unwind_memory): Return bool.
305 (deprecated_frame_register_read): Return bool.
306 (frame_unwinder_is): Return bool.
307 * frame.c (struct frame_info) <prev_arch::p>: Change type to
308 bool.
309 <this_id::p>: Likewise.
310 <prev_p>: Likewise.
311 (frame_stash_add): Return bool.
312 (get_frame_id): Use bool.
313 (frame_id_build_special) Use bool.
314 (frame_id_build_unavailable_stack): Use bool.
315 (frame_id_build): Use bool.
316 (frame_id_p): Return bool, use true/false instead of 1/0.
317 (frame_id_artificial_p): Likewise.
318 (frame_id_eq): Likewise.
319 (frame_id_inner): Likewise.
320 (get_frame_func_if_available): Likewise.
321 (read_frame_register_unsigned): Likewise.
322 (deprecated_frame_register_read): Likewise.
323 (get_frame_register_bytes): Likewise.
324 (has_stack_frames): Likewise.
325 (inside_main_func): Likewise.
326 (inside_entry_func): Likewise.
327 (get_frame_pc_if_available): Likewise.
328 (get_frame_address_in_block_if_available): Likewise.
329 (frame_unwinder_is): Likewise.
330 (safe_frame_unwind_memory): Likewise.
331 (frame_unwind_arch): Likewise.
332
333 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
334
335 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
336 type to cached_copy_status.
337 (fprintf_frame): Adjust.
338 (get_frame_func_if_available): Adjust.
339 (frame_cleanup_after_sniffer): Adjust.
340
341 2020-08-04 Mark Wielaard <mark@klomp.org>
342
343 * MAINTAINERS (Write After Approval): Update email address.
344
345 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
346
347 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
348 dynamic_prop::const_val.
349
350 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
351
352 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
353 dynamic_prop::kind.
354
355 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
356
357 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
358
359 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
360
361 * configure.tgt: Set gdb_sim for bpf-*-* targets.
362
363 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
364 Jose E. Marchesi <jose.marchesi@oracle.com>
365
366 * configure.tgt: Add entry for bpf-*-*.
367 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
368 (ALLDEPFILES): Add bpf-tdep.c.
369 * bpf-tdep.c: New file.
370 * MAINTAINERS: Add bpf target and maintainer.
371 * NEWS: Mention the support for the new target.
372
373 2020-08-04 Tom de Vries <tdevries@suse.de>
374
375 PR symtab/23270
376 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
377 Error.
378
379 2020-08-03 John Baldwin <jhb@FreeBSD.org>
380
381 * syscalls/freebsd.xml: Regenerate.
382
383 2020-08-03 John Baldwin <jhb@FreeBSD.org>
384
385 * syscalls/update-freebsd.sh: Fix usage and year range.
386
387 2020-08-03 Tom de Vries <tdevries@suse.de>
388
389 PR symtab/26333
390 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
391 DW_LNE_lo_user/DW_LNE_hi_user range.
392
393 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
394
395 PR ada/26318
396 * ada-lang.c (ada_modulus): Return 0 if property is not of const
397 kind.
398
399 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
400
401 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
402
403 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
404
405 * breakpoint.c (set_breakpoint_condition): Update the condition
406 expressions after checking that the input condition string parses
407 successfully and does not contain junk at the end.
408
409 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
410
411 * breakpoint.c (set_breakpoint_condition): Update the
412 condition string after parsing the new condition successfully.
413
414 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
415
416 * proc-api.c (_STRUCTURED_PROC): Don't define.
417 * proc-events.c: Likewise.
418 * proc-flags.c: Likewise.
419 * proc-why.c: Likewise.
420 * procfs.c: Likewise.
421
422 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
423 * configure, config.in: Regenerate.
424
425 2020-07-30 Tom de Vries <tdevries@suse.de>
426
427 PR build/26320
428 * ui-style.h (struct ui_file_style::color): Wrap m_value and
429 m_red/m_green/m_blue in a union.
430
431 2020-07-29 Tom de Vries <tdevries@suse.de>
432
433 PR tdep/26280
434 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
435
436 2020-07-28 Tom Tromey <tromey@adacore.com>
437
438 PR symtab/26270:
439 * symtab.h (find_pc_partial_function_sym): Declare.
440 * cli/cli-cmds.c (disassemble_command): Use
441 find_pc_partial_function_sym. Check asm_demangle.
442 * blockframe.c (cache_pc_function_sym): New global.
443 (cache_pc_function_name): Remove.
444 (clear_pc_function_cache): Update.
445 (find_pc_partial_function_sym): New function, from
446 find_pc_partial_function.
447 (find_pc_partial_function): Rewrite using
448 find_pc_partial_function_sym.
449
450 2020-07-28 Tom Tromey <tromey@adacore.com>
451
452 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
453 help. Add usage.
454
455 2020-07-28 Tom Tromey <tromey@adacore.com>
456
457 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
458 <DW_OP_GNU_variable_value>: Cast to address type.
459
460 2020-07-28 Kamil Rytarowski <n54@gmx.com>
461
462 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
463 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
464 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
465 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
466 (nbsd_get_siginfo_type): New.
467 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
468 (_initialize_nbsd_tdep): New.
469
470 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
471
472 PR binutils/26301
473 * configure: Regenerated.
474
475 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
476
477 PR binutils/26301
478 * configure: Regenerated.
479
480 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
481
482 * python/py-frame.c: Remove 'user-regs.h' include.
483 (frapy_read_register): Rewrite to make use of
484 gdbpy_parse_register_id.
485 * python/py-registers.c (gdbpy_parse_register_id): New function,
486 moved here from python/py-unwind.c. Updated the return type, and
487 also accepts register descriptor objects.
488 * python/py-unwind.c: Remove 'user-regs.h' include.
489 (pyuw_parse_register_id): Moved to python/py-registers.c.
490 (unwind_infopy_add_saved_register): Update to use
491 gdbpy_parse_register_id.
492 (pending_framepy_read_register): Likewise.
493 * python/python-internal.h (gdbpy_parse_register_id): Declare.
494
495 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
496
497 * python/py-registers.c: Add 'user-regs.h' include.
498 (register_descriptor_iter_find): New function.
499 (register_descriptor_iterator_object_methods): New static global
500 methods array.
501 (register_descriptor_iterator_object_type): Add pointer to methods
502 array.
503
504 2020-07-27 John Baldwin <jhb@FreeBSD.org>
505
506 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
507 for all architectures on FreeBSD 11.3 and later.
508
509 2020-07-27 Tom Tromey <tromey@adacore.com>
510
511 * gcore.h (load_corefile): Don't declare.
512
513 2020-07-27 Tom de Vries <tdevries@suse.de>
514
515 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
516 * config.in: Regenerate.
517 * configure: Regenerate.
518
519 2020-07-26 Eli Zaretskii <eliz@gnu.org>
520
521 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
522 ws2tcpip.h. When checking whether socklen_t type is defined, use
523 ws2tcpip.h if it is available and sys/socket.h isn't.
524 * configure: Regenerate.
525 * config.in: Regenerate.
526
527 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
528
529 PR fortran/23051
530 PR fortran/26139
531 * valops.c (value_ind): Pass address to
532 readjust_indirect_value_type.
533 * value.c (readjust_indirect_value_type): Make parameter
534 non-const, and add extra address parameter. Resolve original type
535 before using it.
536 * value.h (readjust_indirect_value_type): Update function
537 signature and comment.
538
539 2020-07-25 Tom de Vries <tdevries@suse.de>
540
541 PR symtab/26243
542 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
543 entries.
544
545 2020-07-24 Aaron Merey <amerey@redhat.com>
546
547 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
548 * configure: Rebuild.
549
550 2020-07-23 Kevin Buettner <kevinb@redhat.com>
551
552 PR corefiles/26294
553 * corelow.c (_initialize_corelow): Add period to help text
554 for "maintenance print core-file-backed-mappings".
555
556 2020-07-23 Pedro Alves <pedro@palves.net>
557
558 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
559 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
560 meanwhile.
561 * frame.c (frame_cache_generation, get_frame_cache_generation):
562 New.
563 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
564 (get_prev_frame_if_no_cycle): On exception, don't touch
565 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
566 * frame.h (get_frame_cache_generation): Declare.
567
568 2020-07-23 Tom de Vries <tdevries@suse.de>
569
570 PR tui/26282
571 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
572 New default constructor.
573
574 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
575
576 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
577 exclude non-statement entries.
578
579 2020-07-22 Kevin Buettner <kevinb@redhat.com>
580
581 * NEWS (New commands): Mention new command
582 "maintenance print core-file-backed-mappings".
583
584 2020-07-22 Kevin Buettner <kevinb@redhat.com>
585
586 * corelow.c (gdbcmd.h): Include.
587 (core_target::info_proc_mappings): New method.
588 (get_current_core_target): New function.
589 (maintenance_print_core_file_backed_mappings): New function.
590 (_initialize_corelow): Add core-file-backed-mappings to
591 "maint print" commands.
592
593 2020-07-22 Kevin Buettner <kevinb@redhat.com>
594
595 * linux-tdep.c (dump_note_entry_p): New function.
596 (linux_dump_mapping_p_ftype): New typedef.
597 (linux_find_memory_regions_full): Add new parameter,
598 should_dump_mapping_p.
599 (linux_find_memory_regions): Adjust call to
600 linux_find_memory_regions_full.
601 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
602 call to linux_find_memory_regions_full.
603
604 2020-07-22 Kevin Buettner <kevinb@redhat.com>
605
606 * corelow.c (solist.h, unordered_map): Include.
607 (class core_target): Add field m_core_file_mappings and
608 method build_file_mappings.
609 (core_target::core_target): Call build_file_mappings.
610 (core_target::~core_target): Free memory associated with
611 m_core_file_mappings.
612 (core_target::build_file_mappings): New method.
613 (core_target::xfer_partial): Use m_core_file_mappings
614 for memory transfers.
615 * linux-tdep.c (linux_read_core_file_mappings): New
616 function.
617 (linux_core_info_proc_mappings): Rewrite to use
618 linux_read_core_file_mappings.
619 (linux_init_abi): Register linux_read_core_file_mappings.
620
621 2020-07-22 Kevin Buettner <kevinb@redhat.com>
622
623 * arch-utils.c (default_read_core_file_mappings): New function.
624 * arch-utils.c (default_read_core_file_mappings): Declare.
625 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
626 * gdbarch.h, gdbarch.c: Regenerate.
627
628 2020-07-22 Kevin Buettner <kevinb@redhat.com>
629
630 PR corefiles/25631
631 * corelow.c (core_target:xfer_partial): Revise
632 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
633 case after first checking the stratum beneath the core
634 target.
635 (has_all_memory): Return true.
636 * target.c (raw_memory_xfer_partial): Revise comment
637 regarding use of has_all_memory.
638
639 2020-07-22 Kevin Buettner <kevinb@redhat.com>
640
641 * exec.h (section_table_xfer_memory): Revise declaration,
642 replacing section name parameter with an optional callback
643 predicate.
644 * exec.c (section_table_xfer_memory): Likewise.
645 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
646 of section_table_xfer_memory.
647
648 2020-07-22 Tom Tromey <tromey@adacore.com>
649
650 * mi/mi-cmd-stack.c (list_args_or_locals): Use
651 lookup_symbol_search_name.
652
653 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
654
655 * python/py-registers.c (gdbpy_register_object_data_init): Remove
656 redundant local variable.
657 (gdbpy_get_register_descriptor): Extract descriptor vector as a
658 reference, not pointer, update code accordingly.
659
660 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
661 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
662
663 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
664 * jit.c (jit_breakpoint_re_set_internal): Use the
665 `skip_jit_symbol_lookup` field.
666
667 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
668 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
669
670 * jit.c (jit_read_descriptor): Define the descriptor address once,
671 use twice.
672 (jit_breakpoint_deleted): Move the declaration of the loop variable
673 `iter` into the loop header.
674 (jit_breakpoint_re_set_internal): Move the declaration of the local
675 variable `objf_data` to the first point of definition.
676 (jit_event_handler): Move the declaration of local variables
677 `code_entry`, `entry_addr`, and `objf` to their first point of use.
678 Rename `objf` to `jited`.
679
680 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
681
682 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
683 Remove.
684 * jit.c (get_jiter_objfile_data): Update.
685
686 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
687 Simon Marchi <simon.marchi@polymtl.ca>
688
689 * jit.c (struct jit_program_space_data): Remove.
690 (jit_program_space_key): Remove.
691 (jiter_objfile_data::~jiter_objfile_data): Remove program space
692 stuff.
693 (get_jit_program_space_data): Remove.
694 (jit_breakpoint_deleted): Iterate on all of the program space's
695 objfiles.
696 (jit_inferior_init): Likewise.
697 (jit_breakpoint_re_set_internal): Likewise. Also change return
698 type to void.
699 (jit_breakpoint_re_set): Pass current_program_space to
700 jit_breakpoint_re_set_internal.
701
702 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
703
704 * jit.h (struct jiter_objfile_data) <cached_code_address,
705 jit_breakpoint>: Move to here from ...
706 * jit.c (jit_program_space_data): ... here.
707 (jiter_objfile_data::~jiter_objfile_data): Update.
708 (jit_breakpoint_deleted): Update.
709 (jit_breakpoint_re_set_internal): Update.
710
711 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
712
713 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
714 checks.
715 (jit_read_descriptor): Remove NULL check.
716 (jit_event_handler): Add an assertion.
717
718 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
719
720 * jit.h (struct jit_objfile_data): Split into...
721 (struct jiter_objfile_data): ... this ...
722 (struct jited_objfile_data): ... and this.
723 * objfiles.h (struct objfile) <jit_data>: Remove.
724 <jiter_data, jited_data>: New fields.
725 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
726 (jiter_objfile_data::~jiter_objfile_data): ... this.
727 (get_jit_objfile_data): Rename to ...
728 (get_jiter_objfile_data): ... this.
729 (add_objfile_entry): Update.
730 (jit_read_descriptor): Use get_jiter_objfile_data.
731 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
732 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
733 (jit_inferior_exit_hook): Use objfile's jited_data field.
734
735 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
736
737 * jit.h: Forward-declare `struct minimal_symbol`.
738 (struct jit_objfile_data): Migrate to here from jit.c; also add a
739 constructor, destructor, and an objfile* field.
740 * jit.c (jit_objfile_data): Remove.
741 (struct jit_objfile_data): Migrate from here to jit.h.
742 (jit_objfile_data::~jit_objfile_data): New destructor
743 implementation with code moved from free_objfile_data.
744 (free_objfile_data): Delete.
745 (get_jit_objfile_data): Update to use the jit_data field of objfile.
746 (jit_find_objf_with_entry_addr): Ditto.
747 (jit_inferior_exit_hook): Ditto.
748 (_initialize_jit): Remove the call to
749 register_objfile_data_with_cleanup.
750 * objfiles.h (struct objfile) <jit_data>: New field.
751
752 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
753
754 * jit.h: Forward-declare `struct objfile`.
755 (jit_event_handler): Add a second parameter, the JITer objfile.
756 * jit.c (jit_read_descriptor): Change the signature to take the
757 JITer objfile as an argument instead of the jit_program_space_data.
758 (jit_inferior_init): Update the call to jit_read_descriptor.
759 (jit_event_handler): Use the new JITer objfile argument when calling
760 jit_read_descriptor.
761 * breakpoint.c (handle_jit_event): Update the call to
762 jit_event_handler to pass the JITer objfile.
763
764 2020-07-21 John Baldwin <jhb@FreeBSD.org>
765
766 * gdbarch.c: Regenerate.
767 * gdbarch.h: Regenerate.
768 * gdbarch.sh (handle_segmentation_fault): Remove method.
769 * infrun.c (handle_segmentation_fault): Remove.
770 (print_signal_received_reason): Remove call to
771 handle_segmentation_fault.
772
773 2020-07-21 John Baldwin <jhb@FreeBSD.org>
774
775 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
776 Rename to sparc64_linux_report_signal_info and add siggnal
777 argument.
778 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
779 instead of sparc64_linux_handle_segmentation_fault.
780
781 2020-07-21 John Baldwin <jhb@FreeBSD.org>
782
783 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
784 i386_linux_report_signal_info instead of
785 i386_linux_handle_segmentation_fault.
786 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
787 to i386_linux_report_signal_info and add siggnal argument.
788 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
789 of i386_linux_handle_segmentation_fault.
790 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
791 to i386_linux_report_signal_info and add siggnal argument.
792
793 2020-07-21 John Baldwin <jhb@FreeBSD.org>
794
795 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
796 hook if present.
797
798 2020-07-21 John Baldwin <jhb@FreeBSD.org>
799
800 * gdbarch.c: Regenerate.
801 * gdbarch.h: Regenerate.
802 * gdbarch.sh (report_signal_info): New method.
803 * infrun.c (print_signal_received_reason): Invoke gdbarch
804 report_signal_info hook if present.
805
806 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
807
808 * python/py-registers.c : Add 'unordered_map' include.
809 (gdbpy_new_reggroup): Renamed to...
810 (gdbpy_get_reggroup): ...this. Update to only create register
811 group descriptors when needed.
812 (gdbpy_reggroup_iter_next): Update.
813
814 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
815
816 * python/py-registers.c (gdbpy_register_object_data): New static
817 global.
818 (gdbpy_register_object_data_init): New function.
819 (gdbpy_new_register_descriptor): Renamed to...
820 (gdbpy_get_register_descriptor): ...this, and update to reuse
821 existing register descriptors where possible.
822 (gdbpy_register_descriptor_iter_next): Update.
823 (gdbpy_initialize_registers): Register new gdbarch data.
824
825 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
826
827 * linux-nat.c (stopped_pids): Make static.
828
829 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
830
831 PR ada/26235
832 * gdbtypes.c (ada_discrete_type_low_bound,
833 ada_discrete_type_high_bound): Handle undefined bounds.
834
835 2020-07-21 Kamil Rytarowski <n54@gmx.com>
836
837 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
838 declaration.
839 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
840 function.
841
842 2020-07-20 John Baldwin <jhb@FreeBSD.org>
843
844 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
845 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
846 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
847 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
848 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
849 method.
850
851 2020-07-20 Ludovic Courtès <ludo@gnu.org>
852
853 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
854 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
855 which are deprecated in Guile 3.0.
856 * configure.ac (try_guile_versions): Add "guile-3.0".
857 * configure (try_guile_versions): Regenerate.
858 * NEWS: Update entry.
859
860 2020-07-20 Ludovic Courtès <ludo@gnu.org>
861 Doug Evans <dje@google.com>
862
863 PR gdb/21104
864 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
865 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
866 USING_GUILE_BEFORE_2_2.
867 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
868 Change type to 'scm_t_port_type *'.
869 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
870 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
871 parameter and honor it. Update callers.
872 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
873 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
874 functions.
875 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
876 USING_GUILE_BEFORE_2_2.
877 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
878 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
879 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
880 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
881 and 'SCM_PORT_TYPE'.
882 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
883 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
884 (gdbscm_memory_port_read, gdbscm_memory_port_write)
885 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
886 [!USING_GUILE_BEFORE_2_2]: New functions.
887 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
888 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
889 'gdbscm_memory_port_read'.
890 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
891 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
892 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
893 function.
894 (ioscm_init_memory_port): Remove.
895 (ioscm_init_memory_port_stream): New function
896 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
897 function.
898 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
899 Return scm_from_uint (0).
900 (gdbscm_set_memory_port_read_buffer_size_x)
901 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
902 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
903 Return scm_from_uint (0).
904 (gdbscm_set_memory_port_write_buffer_size_x)
905 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
906 * configure.ac (try_guile_versions): Add "guile-2.2".
907 * configure: Regenerate.
908 * NEWS: Add entry.
909
910 2020-07-18 Tom Tromey <tom@tromey.com>
911
912 * linux-nat.c (linux_multi_process): Remove.
913 (linux_nat_target::supports_multi_process): Return true.
914
915 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
916
917 * arch/riscv.c (riscv_tdesc_cache): Change map type.
918 (riscv_lookup_target_description): Return pointer out of
919 unique_ptr.
920 * target-descriptions.c (allocate_target_description): Add
921 comment.
922 (target_desc_deleter::operator()): Likewise.
923 * target-descriptions.h (struct target_desc_deleter): Moved to
924 gdbsupport/tdesc.h.
925 (target_desc_up): Likewise.
926
927 2020-07-17 Tom Tromey <tromey@adacore.com>
928
929 * linux-nat.c (linux_nat_target::supports_non_stop)
930 (linux_nat_target::always_non_stop_p): Use "true".
931 (linux_nat_target::supports_disable_randomization): Use "true" and
932 "false".
933
934 2020-07-16 Caroline Tice <cmtice@google.com>
935
936 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
937 (RNGLIST_HEADER_SIZE64): New constant definition.
938 (struct dwop_section_names): Add rnglists_dwo.
939 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
940 (struct loclist_header): Rename to 'loclists_rnglists_header'.
941 (struct dwo_sections): Add rnglists field.
942 (read_attribut_reprocess): Add tag parameter.
943 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
944 (cu_debug_rnglists_section): New function (decl & definition).
945 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
946 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
947 die whose range is being checked; get rnglist section from
948 cu_debug_rnglists_section, to get from either objfile or dwo file as
949 appropriate. Add cases for DW_RLE_base_addressx,
950 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
951 the base address to DW_RLE_offset_pairs (not to all ranges), moving
952 test inside if-condition and updating complaint message.
953 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
954 dwarf2_rnglists_process.
955 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
956 dwarf2_ranges_process.
957 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
958 need_ranges_base and update comment appropriately. Also pass die tag
959 to dwarf2_ranges_read.
960 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
961 need_ranges_base and update comment appropriately. Also pass die tag
962 to dwarf2_ranges_process.
963 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
964 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
965 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
966 need_ranges_base and update comment appropriately. Also pass die tag
967 to read_attribute_reprocess and dwarf2_ranges_read.
968 (read_loclist_header): Rename function to read_loclists_rnglists_header,
969 and update function comment appropriately.
970 (read_loclist_index): Call read_loclists_rnglists_header instead of
971 read_loclist_header.
972 (read_rnglist_index): New function.
973 (read_attribute_reprocess): Add tag parameter. Add code for
974 DW_FORM_rnglistx, passing tag to read_rnglist_index.
975 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
976
977 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
978
979 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
980 being resolved.
981
982 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
983
984 * arch-utils.c (show_architecture): Update formatting of messages.
985
986 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
987
988 * gdbtypes.h (struct type) <bounds>: Handle array and string
989 types.
990 * ada-lang.c (assign_aggregate): Use type::bounds on
991 array/string type.
992 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
993 * c-varobj.c (c_number_of_children): Likewise.
994 (c_describe_child): Likewise.
995 * eval.c (evaluate_subexp_for_sizeof): Likewise.
996 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
997 (f_type_print_base): Likewise.
998 * f-valprint.c (f77_array_offset_tbl): Likewise.
999 (f77_get_upperbound): Likewise.
1000 (f77_print_array_1): Likewise.
1001 * guile/scm-type.c (gdbscm_type_range): Likewise.
1002 * m2-typeprint.c (m2_array): Likewise.
1003 (m2_is_long_set_of_type): Likewise.
1004 * m2-valprint.c (get_long_set_bounds): Likewise.
1005 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1006 * python/py-type.c (typy_range): Likewise.
1007 * rust-lang.c (rust_internal_print_type): Likewise.
1008 * type-stack.c (type_stack::follow_types): Likewise.
1009 * valarith.c (value_subscripted_rvalue): Likewise.
1010 * valops.c (value_cast): Likewise.
1011
1012 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1013
1014 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1015 callers to use the equivalent accessor methods.
1016
1017 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1018
1019 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1020 (struct type) <bit_stride>: New method.
1021 (TYPE_BIT_STRIDE): Remove.
1022 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1023
1024 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1025
1026 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1027 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1028 callers to use the equivalent accessor methods instead.
1029
1030 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1031
1032 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1033 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1034 callers to use the equivalent accessor methods instead.
1035
1036 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1037
1038 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1039 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1040 to use dynamic_prop::kind.
1041
1042 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1043
1044 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1045 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1046 to get the bound property's kind and check against
1047 PROP_UNDEFINED.
1048
1049 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1050
1051 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1052 all callers to use type::range_bounds followed by
1053 dynamic_prop::{low,high}.
1054
1055 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1056
1057 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1058 const_val, set_const_val, baton, set_locexpr, set_loclist,
1059 set_addr_offset, variant_parts, set_variant_parts,
1060 original_type, set_original_type>: New methods.
1061 <kind>: Rename to...
1062 <m_kind>: ... this. Update all users to use the new methods
1063 instead.
1064 <data>: Rename to...
1065 <m_data>: ... this. Update all users to use the new methods
1066 instead.
1067
1068 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1069
1070 * gdbtypes.c (get_discrete_bounds): Return failure if
1071 the range type's bounds are not both defined and constant
1072 values.
1073 (get_array_bounds): Update comment. Remove undefined bound check.
1074
1075 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1076
1077 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1078 the type::bounds method directly.
1079
1080 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1081
1082 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1083 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1084 are used to set the range type's bounds to use set_bounds.
1085
1086 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1087
1088 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1089
1090 2020-07-10 Pedro Alves <pedro@palves.net>
1091
1092 * gdbthread.h (inferior_ref): Define.
1093 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1094 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1095 * thread.c
1096 (scoped_restore_current_thread::restore):
1097 Adjust to gdb::ref_ptr.
1098 (scoped_restore_current_thread::~scoped_restore_current_thread):
1099 Remove manual decref handling.
1100 (scoped_restore_current_thread::scoped_restore_current_thread):
1101 Adjust to use
1102 inferior_ref::new_reference/thread_info_ref::new_reference.
1103 Incref the thread before calling get_frame_id instead of after.
1104 Let TARGET_CLOSE_ERROR propagate.
1105
1106 2020-07-10 Pedro Alves <pedro@palves.net>
1107
1108 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1109 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1110 NOT_AVAILABLE_ERROR.
1111 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1112 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1113
1114 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1115 Pedro Alves <pedro@palves.net>
1116
1117 PR gdb/26199
1118 * infrun.c (threads_are_resumed_pending_p): Delete.
1119 (do_target_wait): Remove threads_are_executing and
1120 threads_are_resumed_pending_p checks from the inferior_matches
1121 lambda. Update comments.
1122
1123 2020-07-10 Pedro Alves <pedro@palves.net>
1124
1125 PR gdb/26199
1126 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1127 executing threads.
1128
1129 2020-07-10 Pedro Alves <pedro@palves.net>
1130
1131 PR gdb/26199
1132 * infrun.c (handle_no_resumed): Handle multiple targets.
1133
1134 2020-07-10 Pedro Alves <pedro@palves.net>
1135
1136 PR gdb/26199
1137 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1138 target_is_async_p.
1139
1140 2020-07-10 Pedro Alves <pedro@palves.net>
1141
1142 PR gdb/26199
1143 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1144 threads, not all threads.
1145
1146 2020-07-10 Pedro Alves <pedro@palves.net>
1147
1148 PR gdb/26199
1149 * remote.c (remote_target::open_1): Pass remote target pointer as
1150 data to create_async_event_handler.
1151 (remote_async_inferior_event_handler): Mark async event handler
1152 before returning if the remote target still has either pending
1153 events or unacknowledged notifications.
1154
1155 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1156
1157 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1158 declaration.
1159 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1160 function.
1161
1162 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1163
1164 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1165 inferior_ptid.
1166
1167 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1168
1169 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1170 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1171 AT_FREEBSD_PS_STRINGS.
1172
1173 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1174
1175 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1176 of debugfile path on Windows.
1177
1178 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1179
1180 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1181 argument to 'data'.
1182
1183 2020-07-08 Tom Tromey <tromey@adacore.com>
1184
1185 * ada-lang.c (ada_exception_message_1): Use read_memory.
1186
1187 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1188
1189 PR python/22748
1190 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1191 special handling for inline frames.
1192 * findvar.c (value_of_register_lazy): Skip inline frames when
1193 creating lazy register values.
1194 * frame.c (frame_id_computed_p): Delete definition.
1195 * frame.h (frame_id_computed_p): Delete declaration.
1196
1197 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1198
1199 * NEWS: Mention additions to Python API.
1200 * python/py-arch.c (archpy_register_groups): New function.
1201 (arch_object_methods): Add 'register_groups' method.
1202 * python/py-registers.c (reggroup_iterator_object): New struct.
1203 (reggroup_object): New struct.
1204 (gdbpy_new_reggroup): New function.
1205 (gdbpy_reggroup_to_string): New function.
1206 (gdbpy_reggroup_name): New function.
1207 (gdbpy_reggroup_iter): New function.
1208 (gdbpy_reggroup_iter_next): New function.
1209 (gdbpy_new_reggroup_iterator): New function
1210 (gdbpy_initialize_registers): Register new types.
1211 (reggroup_iterator_object_type): Define new Python type.
1212 (gdbpy_reggroup_getset): New static global.
1213 (reggroup_object_type): Define new Python type.
1214 * python/python-internal.h
1215
1216 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1217
1218 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1219 * python/py-arch.c (archpy_registers): New function.
1220 (arch_object_methods): Add 'registers' method.
1221 * python/py-registers.c: New file.
1222 * python/python-internal.h
1223 (gdbpy_new_register_descriptor_iterator): Declare.
1224 (gdbpy_initialize_registers): Declare.
1225 * python/python.c (do_start_initialization): Call
1226 gdbpy_initialize_registers.
1227 * NEWS: Mention additions to the Python API.
1228
1229 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1230
1231 * NEWS: Mention new Python API method.
1232 * python/py-unwind.c (pending_framepy_architecture): New function.
1233 (pending_frame_object_methods): Add architecture method.
1234
1235 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1236
1237 * gdbarch.c: Regenerate.
1238 * gdbarch.h: Regenerate.
1239 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1240 (gdbarch_data): Use internal_error for the case where
1241 deprecated_set_gdbarch_data was originally needed.
1242 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1243 and use passed in obstack.
1244 (libunwind_frame_set_descr): Should no longer get back NULL from
1245 gdbarch_data.
1246 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1247 type.
1248 * user-regs.c (user_regs_init): Update parameters, and use passed
1249 in obstack.
1250 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1251 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1252
1253 2020-07-06 Tom de Vries <tdevries@suse.de>
1254
1255 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1256 End-Of-Sequence in lte_is_less_than.
1257 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1258 "gdb: Don't reorder line table entries too much when sorting".
1259
1260 2020-07-06 Tom de Vries <tdevries@suse.de>
1261
1262 PR tui/26205
1263 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1264
1265 2020-07-05 Tom de Vries <tdevries@suse.de>
1266
1267 PR build/26187
1268 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1269 std::uncaught_exceptions instead of deprecated
1270 std::uncaught_exception.
1271
1272 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1273
1274 * macroexp.h (macro_stringify): Return
1275 gdb::unique_xmalloc_ptr<char>.
1276 * macroexp.c (macro_stringify): Likewise.
1277 * macrotab.c (fixup_definition): Update.
1278
1279 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1280
1281 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1282 (lex_one_token): Update.
1283 * macroexp.c (struct macro_buffer) <release>: Return
1284 gdb::unique_xmalloc_ptr<char>.
1285 (macro_stringify): Update.
1286 (macro_expand): Update.
1287 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1288 * macroexp.h (macro_expand_next): Likewise.
1289
1290 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1291
1292 * macroexp.h (macro_lookup_ftype): Remove.
1293 (macro_expand, macro_expand_once, macro_expand_next): Remove
1294 lookup function parameters, add scope parameter.
1295 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1296 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1297 * macroscope.h (standard_macro_lookup): Change parameter type
1298 to macro_scope.
1299 * macroscope.c (standard_macro_lookup): Likewise.
1300 * c-exp.y (lex_one_token): Update.
1301 * macrocmd.c (macro_expand_command): Likewise.
1302 (macro_expand_once_command): Likewise.
1303
1304 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1305
1306 * inf-loop.c (inferior_event_handler): Remove client_data param.
1307 * inf-loop.h (inferior_event_handler): Likewise.
1308 * infcmd.c (step_1): Adjust.
1309 * infrun.c (proceed): Adjust.
1310 (fetch_inferior_event): Remove client_data param.
1311 (infrun_async_inferior_event_handler): Adjust.
1312 * infrun.h (fetch_inferior_event): Remove `void *` param.
1313 * linux-nat.c (handle_target_event): Adjust.
1314 * record-btrace.c (record_btrace_handle_async_inferior_event):
1315 Adjust.
1316 * record-full.c (record_full_async_inferior_event_handler):
1317 Adjust.
1318 * remote.c (remote_async_inferior_event_handler): Adjust.
1319
1320 2020-07-01 Tom Tromey <tom@tromey.com>
1321
1322 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1323 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1324
1325 2020-07-01 Tom Tromey <tom@tromey.com>
1326
1327 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1328 tui_gen_win_info.
1329 (tui_win_info::make_window): Merge with
1330 tui_gen_win_info::make_window.
1331 (tui_win_info::make_visible): Move from tui_gen_win_info.
1332 * tui/tui-win.c (tui_win_info::max_width): Move from
1333 tui_gen_win_info.
1334 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1335 type.
1336 <window_factory>: Likewise.
1337 * tui/tui-layout.c (tui_win_info::resize): Move from
1338 tui_gen_win_info.
1339 (make_standard_window): Change return type.
1340 (get_locator_window, tui_get_window_by_name): Likewise.
1341 (tui_layout_window::apply): Remove a cast.
1342 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1343 (struct tui_win_info): Merge with tui_gen_win_info.
1344 (struct tui_gen_win_info): Remove.
1345
1346 2020-07-01 Tom Tromey <tom@tromey.com>
1347
1348 * tui/tui-stack.h (struct tui_locator_window): Derive from
1349 tui_win_info.
1350 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1351 <can_box>: New method.
1352
1353 2020-07-01 Tom Tromey <tom@tromey.com>
1354
1355 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1356
1357 2020-07-01 Tom Tromey <tom@tromey.com>
1358
1359 * tui/tui-regs.c (tui_data_window::display_registers_from)
1360 (tui_data_window::display_registers_from)
1361 (tui_data_window::first_data_item_displayed)
1362 (tui_data_window::delete_data_content_windows): Update.
1363 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1364 Remove.
1365 (tui_data_window::check_register_values): Update.
1366 (tui_data_item_window::rerender): Add parameters. Update.
1367 (tui_data_item_window::refresh_window): Remove.
1368 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1369 virtual.
1370 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1371 tui_gen_win_info.
1372 <refresh_window, max_height, min_height>: Remove.
1373 <rerender>: Add parameters.
1374 <x, y, visible>: New members.
1375 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1376 <m_item_width>: New member.
1377
1378 2020-07-01 Tom Tromey <tom@tromey.com>
1379
1380 * tui/tui-regs.c (tui_data_window::show_register_group)
1381 (tui_data_window::check_register_values): Update.
1382 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1383 from item_no.
1384
1385 2020-07-01 Tom Tromey <tom@tromey.com>
1386
1387 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1388 useless "if".
1389
1390 2020-07-01 Tom Tromey <tom@tromey.com>
1391
1392 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1393 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1394
1395 2020-07-01 Tom Tromey <tom@tromey.com>
1396
1397 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1398 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1399 (struct tui_line_or_address): Move from tui-data.h.
1400 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1401 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1402 (tui_cmd_window, tui_source_window_base, tui_source_window)
1403 (tui_disasm_window): Don't declare.
1404 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1405 to tui-winsource.h.
1406 (SINGLE_KEY): Move to tui-stack.c.
1407
1408 2020-07-01 Tom Tromey <tom@tromey.com>
1409
1410 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1411 std::string.
1412 * tui/tui-regs.c (class tab_expansion_file): New.
1413 (tab_expansion_file::write): New method.
1414 (tui_register_format): Change return type. Use
1415 tab_expansion_file.
1416 (tui_get_register, tui_data_window::display_registers_from)
1417 (tui_data_item_window::rerender): Update.
1418 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1419 * tui/tui-io.c (tui_expand_tabs): Remove.
1420
1421 2020-07-01 Tom Tromey <tom@tromey.com>
1422
1423 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1424
1425 2020-07-01 Fangrui Song <maskray@google.com>
1426
1427 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1428
1429 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1430
1431 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1432 forms for DW_AT_associated and DW_AT_allocated attributes,
1433 which is already checked in function attr_to_dynamic_prop.
1434
1435 2020-06-30 Tom Tromey <tromey@adacore.com>
1436
1437 * dwarf2/read.c (quirk_rust_enum): Correctly call
1438 alloc_rust_variant for default-less enum.
1439
1440 2020-06-30 Tom Tromey <tromey@adacore.com>
1441
1442 PR build/26183:
1443 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1444 gdb::to_string.
1445
1446 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1447
1448 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1449 * gdbarch.h: Re-generate.
1450
1451 2020-06-28 Tom Tromey <tom@tromey.com>
1452
1453 * command.h (cmd_types): Remove.
1454 (cmd_type): Don't declare.
1455 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1456 typedef.
1457 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1458 * cli/cli-decode.c (cmd_type): Remove.
1459
1460 2020-06-27 Pedro Alves <palves@redhat.com>
1461
1462 * fork-child.c (prefork_hook): Adjust.
1463 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1464 Delete.
1465 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1466 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1467 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1468 Remove declarations.
1469 (struct inferior) <set_tty, tty>: New methods.
1470 (struct inferior) <terminal>: Rename to ...
1471 (struct inferior) <m_terminal>: ... this and make private.
1472 * main.c (captured_main_1): Adjust.
1473 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1474 (mi_cmd_inferior_tty_show): Adjust.
1475 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1476 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1477
1478 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1479
1480 * configure.ac: Add --enable-libctf: handle --disable-static
1481 properly.
1482 * acinclude.m4: sinclude ../config/enable.m4.
1483 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1484 (LIBCTF): Substitute in.
1485 (CTF_DEPS): New, likewise.
1486 (CLIBS): libctf needs symbols from libbfd: move earlier.
1487 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1488 flags.
1489 * ctfread.c: Surround in ENABLE_LIBCTF.
1490 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1491 * configure: Regenerate.
1492 * config.in: Likewise.
1493
1494 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1495
1496 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1497
1498 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1499
1500 * inferior.h (struct inferior) <terminal>: Change type to
1501 gdb::unique_xmalloc_ptr<char>.
1502 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1503 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1504 field, adjust to unique pointer.
1505 (get_inferior_io_terminal): Adjust to unique pointer.
1506
1507 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1508
1509 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1510 registers, not just the known core set of registers.
1511
1512 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1513
1514 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1515 fflags, frm, and fcsr registers.
1516 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1517 restore groups.
1518 (riscv_tdesc_unknown_reg): New function.
1519 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1520 tdesc_use_registers.
1521 * riscv-tdep.h (struct gdbarch_tdep): Add
1522 unknown_csrs_first_regnum, unknown_csrs_count,
1523 duplicate_fflags_regnum, duplicate_frm_regnum, and
1524 duplicate_fcsr_regnum fields.
1525
1526 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1527
1528 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1529 callback, use the callback (when not null) to help number unknown
1530 registers.
1531 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1532 (tdesc_use_registers): Add extra parameter to declaration.
1533
1534 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1535
1536 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1537 in the file.
1538 (class riscv_pending_register_alias): Likewise.
1539 (riscv_register_feature::register_info): Change 'required_p' field
1540 to 'required', and change its type. Add 'check' member function.
1541 (riscv_register_feature::register_info::check): Define new member
1542 function.
1543 (riscv_xreg_feature): Change initialisation of 'required' field.
1544 (riscv_freg_feature): Likewise.
1545 (riscv_virtual_feature): Likewise.
1546 (riscv_csr_feature): Likewise.
1547 (riscv_check_tdesc_feature): Take extra parameter, the csr
1548 tdesc_feature, rewrite the function to use the new
1549 riscv_register_feature::register_info::check function.
1550 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1551
1552 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1553
1554 * features/Makefile: Remove all references to the deleted files
1555 below.
1556 * features/riscv/32bit-csr.c: Deleted.
1557 * features/riscv/32bit-csr.xml: Deleted.
1558 * features/riscv/64bit-csr.c: Deleted.
1559 * features/riscv/64bit-csr.xml: Deleted.
1560 * features/riscv/rebuild-csr-xml.sh: Deleted.
1561
1562 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1563
1564 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1565 whitespace error for declaration of names member variable.
1566 (struct riscv_register_feature): Add new prefer_first_name member
1567 variable, and fix whitespace error in declaration of registers.
1568 (riscv_xreg_feature): Initialize prefer_first_name field.
1569 (riscv_freg_feature): Likewise.
1570 (riscv_virtual_feature): Likewise.
1571 (riscv_csr_feature): Likewise.
1572 (riscv_register_name): Expand on comments. Remove register name
1573 modifications for CSR and virtual registers.
1574
1575 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1576
1577 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1578 errors.
1579
1580 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1581
1582 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1583 riscv-opc.h.
1584 (class riscv_pending_register_alias): New class.
1585 (riscv_check_tdesc_feature): Take vector of pending aliases and
1586 populate it as appropriate.
1587 (riscv_setup_register_aliases): Delete.
1588 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1589 to riscv_check_tdesc_feature in all cases. Use the vector to
1590 create the register aliases.
1591
1592 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1593
1594 * sol2-tdep.c (sol2_static_transform_name): Remove.
1595 (sol2_init_abi): Don't register it.
1596 * gdbarch.sh (static_transform_name): Remove.
1597 * gdbarch.c, gdbarch.h: Regenerate.
1598
1599 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1600 gdbarch_static_transform_name.
1601 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1602 * stabsread.c (define_symbol) <'X'>: Remove.
1603 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1604 handling.
1605 <'V'>: Likewise.
1606 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1607 <'S'>: Remove call to gdbarch_static_transform_name.
1608
1609 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1610
1611 * procfs.c (procfs_pre_trace): New function.
1612 (procfs_target::create_inferior): Pass it to fork_inferior.
1613
1614 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1615
1616 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1617 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1618 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1619 sol2-tdep.o, sparc-sol2-tdep.o.
1620 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1621 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1622 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1623 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1624
1625 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1626
1627 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1628 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1629 Call sol2_init_abi.
1630 Remove calls to set_gdbarch_skip_solib_resolver,
1631 set_gdbarch_core_pid_to_str.
1632 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1633 (i386_sol2_static_transform_name): Remove.
1634 (i386_sol2_init_abi): Call sol2_init_abi.
1635 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1636 set_gdbarch_static_transform_name,
1637 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1638 Use sol2_sigtramp_p.
1639 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1640 (sol2_sigtramp_p): New function.
1641 (sol2_static_transform_name): New function.
1642 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1643 (sol2_init_abi): New function.
1644 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1645 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1646 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1647 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1648 (sparc_sol2_static_transform_name): Remove.
1649 (sparc32_sol2_init_abi): Call sol2_init_abi.
1650 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1651 set_gdbarch_static_transform_name,
1652 set_gdbarch_skip_solib_resolver,
1653 set_gdbarch_core_pid_to_str.
1654 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1655 (sparc_sol2_static_transform_name): Remove
1656 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1657 call sol2_sigtramp_p.
1658 (sparc64_sol2_init_abi): Call sol2_init_abi.
1659 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1660 set_gdbarch_static_transform_name,
1661 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1662
1663 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1664
1665 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1666 * exec.c (validate_exec_file): If from_tty, set both
1667 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1668 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1669 and from_tty, unconditionally ask a confirmation.
1670
1671 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1672
1673 * target-descriptions.c (tdesc_architecture_name): Protect against
1674 NULL pointer dereference.
1675 (maint_print_xml_tdesc_cmd): New function.
1676 (_initialize_target_descriptions): Register new 'maint print
1677 xml-tdesc' command and give it the filename completer.
1678 * NEWS: Mention new 'maint print xml-tdesc' command.
1679
1680 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1681
1682 * target-descriptions.c (class tdesc_compatible_info): New class.
1683 (struct target_desc): Change type of compatible vector.
1684 (tdesc_compatible_p): Update for change in type of
1685 target_desc::compatible.
1686 (tdesc_compatible_info_list): New function.
1687 (tdesc_compatible_info_arch_name): New function.
1688 (tdesc_add_compatible): Update for change in type of
1689 target_desc::compatible.
1690 (print_c_tdesc::visit_pre): Likewise.
1691
1692 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1693
1694 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1695 whitespace to underscore.
1696 (maint_print_c_tdesc_cmd): Use fake filename for target
1697 descriptions that came from the target.
1698 (_initialize_target_descriptions): Add filename command completion
1699 for 'maint print c-tdesc'.
1700
1701 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1702
1703 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1704 lines.
1705
1706 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1707
1708 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1709 lines.
1710 (dwarf2_find_location_expression): Likewise.
1711 (call_site_parameter_matches): Likewise.
1712 (dwarf2_compile_expr_to_ax): Likewise.
1713 (disassemble_dwarf_expression): Likewise.
1714 (loclist_describe_location): Likewise.
1715
1716 2020-06-23 Pedro Alves <palves@redhat.com>
1717
1718 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1719 progspace-and-thread.h. Include scoped-mock-context.h instead.
1720 (register_to_value_test): Use scoped_mock_context.
1721 * regcache.c: Include "scoped-mock-context.h".
1722 (cooked_read_test): Don't error out if a target is already pushed.
1723 Use scoped_mock_context. Adjust.
1724 * scoped-mock-context.h: New file.
1725
1726 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1727
1728 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1729 initializer.
1730 (ada_language::is_string_type_p): New member function.
1731 * c-lang.c (c_language_data): Delete la_is_string_type_p
1732 initializer.
1733 (cplus_language_data): Likewise.
1734 (asm_language_data): Likewise.
1735 (minimal_language_data): Likewise.
1736 * d-lang.c (d_language_data): Likewise.
1737 * f-lang.c (f_is_string_type_p): Delete function, implementation
1738 moved to f_language::is_string_type_p.
1739 (f_language_data): Delete la_is_string_type_p initializer.
1740 (f_language::is_string_type_p): New member function,
1741 implementation from f_is_string_type_p.
1742 * go-lang.c (go_is_string_type_p): Delete function, implementation
1743 moved to go_language::is_string_type_p.
1744 (go_language_data): Delete la_is_string_type_p initializer.
1745 (go_language::is_string_type_p): New member function,
1746 implementation from go_is_string_type_p.
1747 * language.c (language_defn::is_string_type_p): Define new member
1748 function.
1749 (default_is_string_type_p): Make static, add comment copied from
1750 header file.
1751 (unknown_language_data): Delete la_is_string_type_p initializer.
1752 (unknown_language::is_string_type_p): New member function.
1753 (auto_language_data): Delete la_is_string_type_p initializer.
1754 (auto_language::is_string_type_p): New member function.
1755 * language.h (language_data): Delete la_is_string_type_p field.
1756 (language_defn::is_string_type_p): Declare new function.
1757 (default_is_string_type_p): Delete desclaration, move comment to
1758 definition.
1759 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1760 moved to m2_language::is_string_type_p.
1761 (m2_language_data): Delete la_is_string_type_p initializer.
1762 (m2_language::is_string_type_p): New member function,
1763 implementation from m2_is_string_type_p.
1764 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1765 initializer.
1766 * opencl-lang.c (opencl_language_data): Likewise.
1767 * p-lang.c (pascal_is_string_type_p): Delete function,
1768 implementation moved to pascal_language::is_string_type_p.
1769 (pascal_language_data): Delete la_is_string_type_p initializer.
1770 (pascal_language::is_string_type_p): New member function,
1771 implementation from pascal_is_string_type_p.
1772 * rust-lang.c (rust_is_string_type_p): Delete function,
1773 implementation moved to rust_language::is_string_type_p.
1774 (rust_language_data): Delete la_is_string_type_p initializer.
1775 (rust_language::is_string_type_p): New member function,
1776 implementation from rust_is_string_type_p.
1777 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1778 is_string_type_p.
1779
1780 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1781
1782 * ada-lang.c (ada_language_data): Delete la_print_typedef
1783 initializer.
1784 (ada_language::print_typedef): New member function.
1785 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1786 (cplus_language_data): Likewise.
1787 (asm_language_data): Likewise.
1788 (minimal_language_data): Likewise.
1789 * d-lang.c (d_language_data): Likewise.
1790 * f-lang.c (f_language_data): Likewise.
1791 (f_language::print_typedef): New member function.
1792 * go-lang.c (go_language_data): Delete la_print_typedef
1793 initializer.
1794 * language.c (language_defn::print_typedef): Define member
1795 function.
1796 (unknown_language_data): Delete la_print_typedef initializer.
1797 (unknown_language::print_typedef): New member function.
1798 (auto_language_data): Delete la_print_typedef initializer.
1799 (auto_language::print_typedef): New member function.
1800 * language.h (language_data): Delete la_print_typedef field.
1801 (language_defn::print_typedef): Declare new member function.
1802 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1803 (default_print_typedef): Delete declaration.
1804 * m2-lang.c (m2_language_data): Delete la_print_typedef
1805 initializer.
1806 (m2_language::print_typedef): New member function.
1807 * objc-lang.c (objc_language_data): Delete la_print_typedef
1808 initializer.
1809 * opencl-lang.c (opencl_language_data): Likewise.
1810 * p-lang.c (pascal_language_data): Likewise.
1811 (pascal_language::print_typedef): New member function.
1812 * rust-lang.c (rust_print_typedef): Delete function,
1813 implementation moved to rust_language::print_typedef.
1814 (rust_language): Delete la_print_typedef initializer.
1815 (rust_language::print_typedef): New member function,
1816 implementation from rust_print_typedef.
1817 * typeprint.c (default_print_typedef): Delete.
1818
1819 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1820
1821 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1822 (ada_language::printstr): New member function.
1823 * c-lang.c (c_language_data): Delete la_printstr initializer.
1824 (cplus_language_data): Likewise.
1825 (asm_language_data): Likewise.
1826 (minimal_language_data): Likewise.
1827 * d-lang.c (d_language_data): Likewise.
1828 * f-lang.c (f_printstr): Rename to f_language::printstr.
1829 (f_language_data): Delete la_printstr initializer.
1830 (f_language::printstr): New member function, implementation from
1831 f_printstr.
1832 * go-lang.c (go_language_data): Delete la_printstr initializer.
1833 * language.c (language_defn::printstr): Define new member
1834 function.
1835 (unk_lang_printstr): Delete.
1836 (unknown_language_data): Delete la_printstr initializer.
1837 (unknown_language::printstr): New member function.
1838 (auto_language_data): Delete la_printstr initializer.
1839 (auto_language::printstr): New member function.
1840 * language.h (language_data): Delete la_printstr field.
1841 (language_defn::printstr): Declare new member function.
1842 (LA_PRINT_STRING): Update call to printstr.
1843 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1844 (m2_language_data): Delete la_printstr initializer.
1845 (m2_language::printstr): New member function, implementation from
1846 m2_printstr.
1847 * objc-lang.c (objc_language_data): Delete la_printstr
1848 initializer.
1849 * opencl-lang.c (opencl_language_data): Likewise.
1850 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1851 (pascal_language_data): Delete la_printstr initializer.
1852 (pascal_language::printstr): New member function, implementation
1853 from pascal_printstr.
1854 * p-lang.h (pascal_printstr): Delete declaration.
1855 * rust-lang.c (rust_printstr): Update header comment.
1856 (rust_language_data): Delete la_printstr initializer.
1857 (rust_language::printstr): New member function.
1858
1859 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1860
1861 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1862 (ada_language::printchar): New member function.
1863 * c-lang.c (c_language_data): Delete la_printchar initializer.
1864 (cplus_language_data): Likewise.
1865 (asm_language_data): Likewise.
1866 (minimal_language_data): Likewise.
1867 * d-lang.c (d_language_data): Likewise.
1868 * f-lang.c (f_printchar): Rename to f_language::printchar.
1869 (f_language_data): Delete la_printchar initializer.
1870 (f_language::printchar): New member function, implementation from
1871 f_printchar.
1872 * go-lang.c (go_language_data): Delete la_printchar initializer.
1873 * language.c (unk_lang_printchar): Delete.
1874 (language_defn::printchar): Define new member function.
1875 (unknown_language_data): Delete la_printchar initializer.
1876 (unknown_language::printchar): New member function.
1877 (auto_language_data): Delete la_printchar initializer.
1878 (auto_language::printchar): New member function.
1879 * language.h (language_data): Delete la_printchar field.
1880 (language_defn::printchar): Declare new member function.
1881 (LA_PRINT_CHAR): Update call to printchar.
1882 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1883 (m2_language::printchar): New member function.
1884 * objc-lang.c (objc_language_data): Delete la_printchar
1885 initializer.
1886 * opencl-lang.c (opencl_language_data): Likewise.
1887 * p-lang.c (pascal_language_data): Delete la_printchar
1888 initializer.
1889 (pascal_language::printchar): New member function.
1890 * rust-lang.c (rust_printchar): Rename to
1891 rust_language::printchar.
1892 (rust_language_data): Delete la_printchar initializer.
1893 (rust_language::printchar): New member function, implementation
1894 from rust_printchar.
1895
1896 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1897
1898 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1899 (ada_language_data): Delete la_emitchar initializer.
1900 (ada_language::emitchar): New member function, implementation from
1901 emit_char.
1902 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1903 (cplus_language_data): Likewise.
1904 (asm_language_data): Likewise.
1905 (minimal_language_data): Likewise.
1906 * d-lang.c (d_language_data): Likewise.
1907 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1908 (f_language_data): Delete la_emitchar initializer.
1909 (f_language::emitchar): New member function, implementation from
1910 f_emit_char.
1911 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1912 * language.c (unk_lang_emit_char): Delete.
1913 (language_defn::emitchar): New member function definition.
1914 (unknown_language_data): Delete la_emitchar initializer.
1915 (unknown_language::emitchar): New member function.
1916 (auto_language_data): Delete la_emitchar initializer.
1917 (auto_language::emitchar): New member function.
1918 * language.h (language_data): Delete la_emitchar field.
1919 (language_defn::emitchar): New member field declaration.
1920 (LA_EMIT_CHAR): Update call to emitchar.
1921 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1922 (m2_language_data): Delete la_emitchar initializer.
1923 (m2_language::emitchar): New member function, implementation from
1924 m2_emit_char.
1925 * objc-lang.c (objc_language_data): Delete la_emitchar
1926 initializer.
1927 * opencl-lang.c (opencl_language_data): Likewise.
1928 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1929 (pascal_language_data): Delete la_emitchar initializer.
1930 (pascal_language::emitchar): New member function, implementation
1931 from pascal_emit_char.
1932 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1933 (rust_language_data): Delete la_emitchar initializer.
1934 (rust_language::emitchar): New member function, implementation
1935 from rust_emitchar.
1936
1937 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1938
1939 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1940 (ada_language_data): Delete la_post_parser initializer.
1941 (ada_language::post_parser): New member function.
1942 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1943 (cplus_language_data): Likewise.
1944 (asm_language_data): Likewise.
1945 (minimal_language_data): Likewise.
1946 * d-lang.c (d_language_data): Likewise.
1947 * f-lang.c (f_language_data): Likewise.
1948 * go-lang.c (go_language_data): Likewise.
1949 * language.c (unknown_language_data): Likewise.
1950 (auto_language_data): Likewise.
1951 * language.h (language_data): Delete la_post_parser field.
1952 (language_defn::post_parser): New member function.
1953 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1954 * objc-lang.c (objc_language_data): Likewise.
1955 * opencl-lang.c (opencl_language_data): Likewise.
1956 * p-lang.c (pascal_language_data): Likewise.
1957 * parse.c (parse_exp_in_context): Update call to post_parser.
1958 (null_post_parser): Delete definition.
1959 * parser-defs.h (null_post_parser): Delete declaration.
1960 * rust-lang.c (rust_language_data): Delete la_post_parser
1961 initializer.
1962
1963 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1964
1965 * ada-lang.c (parse): Rename to ada_language::parser.
1966 (ada_language_data): Delete la_parser initializer.
1967 (ada_language::parser): New member function, implementation from
1968 parse.
1969 * c-lang.c (c_language_data): Delete la_parser initializer.
1970 (cplus_language_data): Likewise.
1971 (asm_language_data): Likewise.
1972 (minimal_language_data): Likewise.
1973 * d-lang.c (d_language_data): Likewise.
1974 (d_language::parser): New member function.
1975 * f-lang.c (f_language_data): Delete la_parser initializer.
1976 (f_language::parser): New member function.
1977 * go-lang.c (go_language_data): Delete la_parser initializer.
1978 (go_language::parser): New member function.
1979 * language.c (unk_lang_parser): Delete.
1980 (language_defn::parser): Define new member function.
1981 (unknown_language_data): Delete la_parser initializer.
1982 (unknown_language::parser): New member function.
1983 (auto_language_data): Delete la_parser initializer.
1984 (auto_language::parser): New member function.
1985 * language.h (language_data): Delete la_parser field.
1986 (language_defn::parser): Declare new member function.
1987 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1988 (m2_language::parser): New member function.
1989 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1990 * opencl-lang.c (opencl_language_data): Likewise.
1991 * p-lang.c (pascal_language_data): Likewise.
1992 (pascal_language::parser): New member function.
1993 * parse.c (parse_exp_in_context): Update call to parser.
1994 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1995 (rust_language::parser): New member function.
1996
1997 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1998
1999 * top.c (print_gdb_configuration): Print --with-python-libdir
2000 configuration value.
2001
2002 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2003
2004 * NEWS: Mention change to the alias command.
2005
2006 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2007
2008 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2009 (alias_command_completer)
2010 (make_alias_options_def_group): New functions.
2011 (alias_opts, alias_option_defs): New struct and array.
2012 (alias_usage_error): Update usage.
2013 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2014 Use option framework.
2015 (_initialize_cli_cmds): Update alias command help.
2016 Update aliases command help.
2017 (show_user):
2018 Add NULL for new default_args lookup_cmd argument.
2019 (valid_command_p): Rename to validate_aliased_command.
2020 Add NULL for new default_args lookup_cmd argument. Verify that the
2021 aliased_command has no default args.
2022 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2023 (lookup_cmd_1, lookup_cmd): New argument default_args.
2024 (add_alias_cmd):
2025 Add NULL for new default_args lookup_cmd argument.
2026 (print_help_for_command): Show default args under the layout
2027 alias some_alias = some_aliased_cmd some_alias_default_arg.
2028 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2029 xfree default_args in destructor.
2030 * cli/cli-script.c (process_next_line, do_define_command):
2031 Add NULL for new default_args lookup_cmd argument.
2032 * command.h: Declare new default_args argument in lookup_cmd
2033 and lookup_cmd_1.
2034 * completer.c (complete_line_internal_1):
2035 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2036 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2037 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2038 Likewise.
2039 * infcmd.c (_initialize_infcmd): Likewise.
2040 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2041 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2042 * python/py-param.c (add_setshow_generic): Likewise.
2043 * remote.c (_initialize_remote): Likewise.
2044 * top.c (execute_command): Prepend default_args if command has some.
2045 (set_verbose):
2046 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2047 * tracepoint.c (validate_actionline, encode_actions_1):
2048 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2049
2050 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2051
2052 * jit.c (jit_read_descriptor): Use bool as the return type.
2053 (jit_breakpoint_re_set_internal): Use bool as the return type.
2054 Invert the return value logic; return true if the jit breakpoint
2055 has been successfully initialized.
2056 (jit_inferior_init): Update the call to
2057 jit_breakpoint_re_set_internal.
2058
2059 2020-06-22 Pedro Alves <palves@redhat.com>
2060
2061 PR gdb/25939
2062 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2063 Use the current inferior instead. Don't return
2064 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2065 wait again.
2066 * sol-thread.c (sol_thread_target::wait): Don't reference
2067 inferior_ptid.
2068 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2069 (sol_update_thread_list_callback): Use the current inferior's pid
2070 instead of inferior_ptid.
2071
2072 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2073
2074 * procfs.c: Cleanup many comments.
2075
2076 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2077 (AFTER_WATCHFLAG): Replace by value.
2078
2079 (MAIN_PROC_NAME_FORMAT): Inline ...
2080 (create_procinfo): ... here.
2081
2082 (procfs_debug_inferior): Remove SYS_exec handling.
2083 (syscall_is_exec): Likewise.
2084 (procfs_set_exec_trap): Likewise.
2085
2086 (syscall_is_lwp_exit): Inline in callers.
2087 (syscall_is_exit): Likewise.
2088 (syscall_is_exec): Likewise.
2089 (syscall_is_lwp_create): Likewise.
2090
2091 (invalidate_cache): Remove #if 0 code.
2092
2093 (make_signal_thread_runnable): Remove.
2094 (procfs_target::resume): Remove #if 0 code.
2095
2096 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2097
2098 PR gdb/25939
2099 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2100 call ...
2101 (procfs_target::create_inferior): ... here.
2102
2103 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2104
2105 * exec.c (validate_exec_file): Ensure the build-id is up to
2106 date by calling reopen_exec_file (that checks file timestamp
2107 to decide to re-read the file).
2108
2109 2020-06-18 Pedro Alves <palves@redhat.com>
2110
2111 PR gdb/25412
2112 * gdbthread.h (delete_thread, delete_thread_silent)
2113 (find_thread_ptid): Update comments.
2114 * thread.c (current_thread_): New global.
2115 (is_current_thread): Move higher, and reimplement.
2116 (inferior_thread): Reimplement.
2117 (set_thread_exited): Use bool. Add assertions.
2118 (add_thread_silent): Simplify thread-reuse handling by always
2119 calling delete_thread.
2120 (delete_thread): Remove intro comment.
2121 (find_thread_ptid): Skip exited threads.
2122 (switch_to_thread_no_regs): Write to current_thread_.
2123 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2124 INFERIOR_PTID. Clear current_thread_.
2125
2126 2020-06-18 Pedro Alves <palves@redhat.com>
2127
2128 * aix-thread.c (pd_update): Use switch_to_thread.
2129
2130 2020-06-18 Pedro Alves <palves@redhat.com>
2131
2132 * ravenscar-thread.c (ravenscar_thread_target): Update.
2133 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2134 (ravenscar_thread_target::add_active_thread): ... this. Don't
2135 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2136 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2137
2138 2020-06-18 Pedro Alves <palves@redhat.com>
2139
2140 * nat/windows-nat.c (current_windows_thread): Remove.
2141 * nat/windows-nat.h (current_windows_thread): Remove.
2142 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2143 Adjust.
2144 (display_selectors): Adjust to fetch the current
2145 windows_thread_info based on inferior_ptid.
2146 (fake_create_process): No longer write to current_windows_thread.
2147 (windows_nat_target::get_windows_debug_event):
2148 Don't set inferior_ptid or current_windows_thread.
2149 (windows_nat_target::wait): Adjust to not rely on
2150 current_windows_thread.
2151 (do_initial_windows_stuff): Now a method of windows_nat_target.
2152 Switch to the last_ptid thread.
2153 (windows_nat_target::attach): Adjust.
2154 (windows_nat_target::detach): Use switch_to_no_thread instead of
2155 writing to inferior_ptid directly.
2156 (windows_nat_target::create_inferior): Adjust.
2157
2158 2020-06-18 Pedro Alves <palves@redhat.com>
2159
2160 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2161
2162 2020-06-18 Pedro Alves <palves@redhat.com>
2163
2164 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2165 after creating it, instead of writing to inferior_ptid. Don't
2166 write to inferior_ptid.
2167
2168 2020-06-18 Pedro Alves <palves@redhat.com>
2169
2170 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2171
2172 2020-06-18 Pedro Alves <palves@redhat.com>
2173
2174 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2175 it, instead of writing to inferior_ptid.
2176
2177 2020-06-18 Pedro Alves <palves@redhat.com>
2178
2179 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2180 to inferior_ptid.
2181
2182 2020-06-18 Pedro Alves <palves@redhat.com>
2183
2184 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2185 instead of writing to inferior_ptid directly.
2186
2187 2020-06-18 Pedro Alves <palves@redhat.com>
2188
2189 * corelow.c (core_target::close): Use switch_to_no_thread instead
2190 of writing to inferior_ptid directly.
2191 (add_to_thread_list, core_target_open): Use switch_to_thread
2192 instead of writing to inferior_ptid directly.
2193
2194 2020-06-18 Pedro Alves <palves@redhat.com>
2195
2196 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2197 inferior_ptid.
2198 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2199 inferior_ptid.
2200 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2201 inferior_ptid directly.
2202 (darwin_nat_target::init_thread_list): Switch to thread, instead
2203 of writing to inferior_ptid.
2204 (darwin_nat_target::attach): Don't write to inferior_ptid.
2205 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2206
2207 2020-06-18 Pedro Alves <palves@redhat.com>
2208
2209 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2210 thread.
2211 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2212 Instead use switch_to_thread.
2213 (gnu_nat_target::detach): Use switch_to_no_thread
2214 instead of writing to inferior_ptid directly. Used passed-in
2215 inferior instead of looking up the inferior by pid.
2216
2217 2020-06-18 Pedro Alves <palves@redhat.com>
2218
2219 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2220 inferior_ptid.
2221
2222 2020-06-18 Pedro Alves <palves@redhat.com>
2223
2224 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2225 inferior_ptid.
2226 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2227 thread.
2228 (nto_procfs_target::detach): Avoid referencing
2229 inferior_ptid. Use switch_to_no_thread instead of writing to
2230 inferior_ptid directly.
2231 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2232 instead of writing to inferior_ptid directly.
2233 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2234 to thread.
2235
2236 2020-06-18 Pedro Alves <palves@redhat.com>
2237
2238 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2239 after creating it, instead of writing to inferior_ptid.
2240 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2241 to inferior_ptid directly.
2242 (gdbsim_target::wait): Don't write to inferior_ptid.
2243
2244 2020-06-18 Pedro Alves <palves@redhat.com>
2245
2246 * remote.c (remote_target::remote_notice_new_inferior): Use
2247 switch_to_thread instead of writing to inferior_ptid directly.
2248 (remote_target::add_current_inferior_and_thread): Use
2249 switch_to_no_thread instead of writing to inferior_ptid directly.
2250 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2251 and switch_to_thread instead of using set_current_inferior or
2252 writing to inferior_ptid directly.
2253
2254 2020-06-18 Pedro Alves <palves@redhat.com>
2255
2256 * tracectf.c (ctf_target_open): Switch to added thread instead of
2257 writing to inferior_ptid directly.
2258 (ctf_target::close): Use switch_to_no_thread instead of writing to
2259 inferior_ptid directly.
2260
2261 2020-06-18 Pedro Alves <palves@redhat.com>
2262
2263 * tracefile-tfile.c (tfile_target_open): Don't write to
2264 inferior_ptid directly, instead switch to added thread.
2265 (tfile_target::close): Use switch_to_no_thread instead of writing
2266 to inferior_ptid directly.
2267
2268 2020-06-18 Pedro Alves <palves@redhat.com>
2269
2270 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2271 (procfs_target::detach): Use switch_to_no_thread
2272 instead of writing to inferior_ptid directly.
2273 (do_attach): Change return type to void. Switch to the added
2274 thread.
2275 (procfs_target::create_inferior): Switch to the added thread.
2276 (procfs_do_thread_registers): Don't write to inferior_ptid.
2277
2278 2020-06-18 Pedro Alves <palves@redhat.com>
2279
2280 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2281 of writing to inferior_ptid.
2282 (scoped_restore_exited_inferior): Delete.
2283 (handle_vfork_child_exec_or_exit): Simplify using
2284 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2285 instead of writing to inferior_ptid.
2286 (THREAD_STOPPED_BY): Delete.
2287 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2288 (thread_stopped_by_hw_breakpoint): Delete.
2289 (save_waitstatus): Use
2290 scoped_restore_current_thread+switch_to_thread, and call
2291 target_stopped_by_watchpoint instead of
2292 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2293 instead of thread_stopped_by_sw_breakpoint, and
2294 target_stopped_by_hw_breakpoint instead of
2295 thread_stopped_by_hw_breakpoint.
2296 (handle_inferior_event)
2297 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2298 inferior_ptid directly, nor
2299 set_current_inferior/set_current_program_space. Use
2300 switch_to_thread / switch_to_inferior_no_thread instead.
2301
2302 2020-06-18 Pedro Alves <palves@redhat.com>
2303
2304 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2305 instead of writing to inferior_ptid.
2306
2307 2020-06-18 Pedro Alves <palves@redhat.com>
2308
2309 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2310 added thread.
2311 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2312 to the added thread.
2313 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2314 instead of writing to inferior_ptid.
2315
2316 2020-06-18 Pedro Alves <palves@redhat.com>
2317
2318 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2319 (register_to_value_test): Mock a program_space too. Heap-allocate
2320 the address space. Don't write to inferior_ptid. Use
2321 switch_to_thread instead.
2322
2323 2020-06-18 Pedro Alves <palves@redhat.com>
2324
2325 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2326 Delete.
2327 (find_signalled_thread()): New, factored out from
2328 linux_make_corefile_notes and adjusted to handle exited threads.
2329 (linux_make_corefile_notes): Adjust to use the new
2330 find_signalled_thread.
2331
2332 2020-06-18 Pedro Alves <palves@redhat.com>
2333
2334 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2335 of saving/restoring inferior_ptid.
2336
2337 2020-06-17 Tom Tromey <tom@tromey.com>
2338
2339 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2340 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2341 declare.
2342 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2343
2344 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2345
2346 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2347 of partial symtabs.
2348
2349 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2350
2351 * regformats/reg-arm.dat: Remove.
2352 * regformats/reg-bfin.dat: Remove.
2353 * regformats/reg-cris.dat: Remove.
2354 * regformats/reg-crisv32.dat: Remove.
2355 * regformats/reg-m32r.dat: Remove.
2356 * regformats/reg-tilegx.dat: Remove.
2357 * regformats/reg-tilegx32.dat: Remove.
2358
2359 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2360
2361 * features/Makefile (WHICH): Remove arm files.
2362 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2363 * regformats/arm/arm-with-neon.dat: Remove.
2364 * regformats/arm/arm-with-vfpv2.dat: Remove.
2365 * regformats/arm/arm-with-vfpv3.dat: Remove.
2366
2367 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2368
2369 * features/Makefile (XMLTOC): Remove rx.xml.
2370
2371 2020-06-17 Pedro Alves <palves@redhat.com>
2372
2373 * gdbthread.h (thread_control_state) <trap_expected> Update
2374 comments.
2375
2376 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2377
2378 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2379 ada_language::lookup_symbol_nonlocal.
2380 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2381 (ada_language::lookup_symbol_nonlocal): New member function,
2382 implementation from ada_lookup_symbol_nonlocal.
2383 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2384 initializer.
2385 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2386 initializer.
2387 (cplus_language::lookup_symbol_nonlocal): New member function.
2388 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2389 (minimal_language_data) Likewise.
2390 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2391 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2392 initializer.
2393 (d_language::lookup_symbol_nonlocal): New member function.
2394 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2395 initializer.
2396 (f_language::lookup_symbol_nonlocal): New member function.
2397 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2398 initializer.
2399 * language.c (unknown_language_data): Likewise.
2400 (auto_language_data): Likewise.
2401 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2402 field.
2403 (language_defn::lookup_symbol_nonlocal): New member function.
2404 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2405 initializer.
2406 * objc-lang.c (objc_language_data): Likewise.
2407 * opencl-lang.c (opencl_language_data): Likewise.
2408 * p-lang.c (pascal_language_data): Likewise.
2409 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2410 rust_language::lookup_symbol_nonlocal.
2411 (rust_language_data): Delete la_lookup_symbol_nonlocal
2412 initializer.
2413 (rust_language::lookup_symbol_nonlocal): New member function,
2414 implementation from rust_lookup_symbol_nonlocal.
2415 * symtab.c (lookup_symbol_aux): Update call to
2416 lookup_symbol_nonlocal.
2417 (basic_lookup_symbol_nonlocal): Rename to...
2418 (language_defn::lookup_symbol_nonlocal): ...this, and update
2419 header comment. Remove language_defn parameter, and replace with
2420 uses of `this'.
2421 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2422
2423 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2424
2425 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2426 initializer.
2427 (ada_language::value_print_inner): New member function.
2428 * c-lang.c (c_language_data): Delete la_value_print_inner
2429 initializer.
2430 (cplus_language_data): Likewise.
2431 (asm_language_data): Likewise.
2432 (minimal_language_data): Likewise.
2433 * d-lang.c (d_language_data): Likewise.
2434 (d_language::value_print_inner): New member function.
2435 * f-lang.c (f_language_data): Delete la_value_print_inner
2436 initializer.
2437 (f_language::value_print_inner): New member function.
2438 * f-lang.h (f_value_print_innner): Rename to...
2439 (f_value_print_inner): ...this (note spelling of 'inner').
2440 * f-valprint.c (f_value_print_innner): Rename to...
2441 (f_value_print_inner): ...this (note spelling of 'inner').
2442 * go-lang.c (go_language_data): Delete la_value_print_inner
2443 initializer.
2444 (go_language::value_print_inner): New member function.
2445 * language.c (language_defn::value_print_inner): Define new member
2446 function.
2447 (unk_lang_value_print_inner): Delete.
2448 (unknown_language_data): Delete la_value_print_inner initializer.
2449 (unknown_language::value_print_inner): New member function.
2450 (auto_language_data): Delete la_value_print_inner initializer.
2451 (auto_language::value_print_inner): New member function.
2452 * language.h (language_data): Delete la_value_print_inner field.
2453 (language_defn::value_print_inner): Delcare new member function.
2454 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2455 initializer.
2456 (m2_language::value_print_inner): New member function.
2457 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2458 initializer.
2459 * opencl-lang.c (opencl_language_data): Likewise.
2460 * p-lang.c (pascal_language_data): Likewise.
2461 (pascal_language::value_print_inner): New member function.
2462 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2463 initializer.
2464 (rust_language::value_print_inner): New member function.
2465 * valprint.c (do_val_print): Update call to value_print_inner.
2466
2467 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2468
2469 * ada-lang.c (ada_language_data): Delete la_value_print
2470 initializer.
2471 (ada_language::value_print): New member function.
2472 * c-lang.c (c_language_data): Delete la_value_print initializer.
2473 (cplus_language_data): Likewise.
2474 (asm_language_data): Likewise.
2475 (minimal_language_data): Likewise.
2476 * d-lang.c (d_language_data): Likewise.
2477 * f-lang.c (f_language_data): Likewise.
2478 * go-lang.c (go_language_data): Likewise.
2479 * language.c (unk_lang_value_print): Delete.
2480 (language_defn::value_print): Define new member function.
2481 (unknown_language_data): Delete la_value_print initializer.
2482 (unknown_language::value_print): New member function.
2483 (auto_language_data): Delete la_value_print initializer.
2484 (auto_language::value_print): New member function.
2485 * language.h (language_data): Delete la_value_print field.
2486 (language_defn::value_print): Declare new member function.
2487 (LA_VALUE_PRINT): Update call to value_print.
2488 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2489 * objc-lang.c (objc_language_data): Likewise.
2490 * opencl-lang.c (opencl_language_data): Likewise.
2491 * p-lang.c (pascal_language_data): Likewise.
2492 (pascal_language::value_print): New member function.
2493 * rust-lang.c (rust_language_data): Delete la_value_print
2494 initializer.
2495
2496 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2497
2498 * ada-lang.c (ada_watch_location_expression): Rename to
2499 ada_language::watch_location_expression.
2500 (ada_language_data): Delete la_watch_location_expression
2501 initializer.
2502 (ada_language::watch_location_expression): New member function,
2503 implementation from ada_watch_location_expression.
2504 * breakpoint.c (watch_command_1): Update call to
2505 watch_location_expression.
2506 * c-lang.c (c_watch_location_expression): Rename to
2507 language_defn::watch_location_expression.
2508 (c_language_data): Delete la_watch_location_expression
2509 initializer.
2510 (cplus_language_data): Likewise.
2511 (asm_language_data): Likewise.
2512 (minimal_language_data): Likewise.
2513 * c-lang.h (c_watch_location_expression): Delete declaration.
2514 * d-lang.c (d_language_data): Delete la_watch_location_expression
2515 initializer.
2516 * f-lang.c (f_language_data): Likewise.
2517 * go-lang.c (go_language_data): Likewise.
2518 * language.c (language_defn::watch_location_expression): Member
2519 function implementation from c_watch_location_expression.
2520 (unknown_language_data): Delete la_watch_location_expression
2521 initializer.
2522 (auto_language_data): Likewise.
2523 * language.h (language_data): Delete la_watch_location_expression
2524 field.
2525 (language_defn::watch_location_expression): Declare new member
2526 function.
2527 * m2-lang.c (m2_language_data): Delete
2528 la_watch_location_expression initializer.
2529 * objc-lang.c (objc_language_data): Likewise.
2530 * opencl-lang.c (opencl_language_data): Likewise.
2531 * p-lang.c (pascal_language_data): Likewise.
2532 * rust-lang.c (rust_watch_location_expression): Rename to
2533 rust_language::watch_location_expression.
2534 (rust_language_data): Delete la_watch_location_expression
2535 initializer.
2536 (rust_language::watch_location_expression): New member function,
2537 implementation from rust_watch_location_expression.
2538
2539 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2540
2541 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2542 ada_language::collect_symbol_completion_matches.
2543 (ada_language_data): Delete la_collect_symbol_completion_matches
2544 initializer.
2545 (ada_language::collect_symbol_completion_matches): New member
2546 function, implementation from
2547 ada_collect_symbol_completion_matches.
2548 * c-lang.c (c_language_data): Delete
2549 la_collect_symbol_completion_matches initializer.
2550 (cplus_language_data): Likewise.
2551 (asm_language_data): Likewise.
2552 (minimal_language_data): Likewise.
2553 * d-lang.c (d_language_data): Likewise.
2554 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2555 f_language::collect_symbol_completion_matches.
2556 (f_language_data): Delete la_collect_symbol_completion_matches
2557 initializer.
2558 (f_language::collect_symbol_completion_matches) New member
2559 function, implementation from f_collect_symbol_completion_matches.
2560 * go-lang.c (go_language_data): Delete
2561 la_collect_symbol_completion_matches initializer.
2562 * language.c (unknown_language_data): Likewise.
2563 (auto_language_data): Likewise.
2564 * language.h (language_data): Delete
2565 la_collect_symbol_completion_matches field.
2566 (language_defn::collect_symbol_completion_matches): New member
2567 function.
2568 * m2-lang.c (m2_language_data): Delete
2569 la_collect_symbol_completion_matches initializer.
2570 * objc-lang.c (objc_language_data): Likewise.
2571 * opencl-lang.c (opencl_language_data): Likewise.
2572 * p-lang.c (pascal_language_data): Likewise.
2573 * rust-lang.c (rust_language_data): Likewise.
2574 * symtab.c (default_collect_symbol_completion_matches): Delete.
2575 (collect_symbol_completion_matches): Update call to
2576 collect_symbol_completion_matches.
2577 (collect_symbol_completion_matches_type): Likewise.
2578 * symtab.h (default_collect_symbol_completion_matches): Delete
2579 declaration.
2580
2581 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2582
2583 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2584 (ada_language_data): Delete la_word_break_characters initializer.
2585 (ada_language::word_break_characters): New member function.
2586 * c-lang.c (c_language_data): Delete la_word_break_characters
2587 initializer.
2588 (cplus_language_data): Likewise.
2589 (asm_language_data): Likewise.
2590 (minimal_language_data): Likewise.
2591 * completer.c: Update global comment.
2592 (advance_to_expression_complete_word_point): Update call to
2593 word_break_characters.
2594 (complete_files_symbols): Likewise.
2595 (complete_line_internal_1): Likewise.
2596 (default_completer_handle_brkchars): Likewise.
2597 (skip_quoted_chars): Likewise.
2598 * d-lang.c (d_language_data): Delete la_word_break_characters
2599 initializer.
2600 * f-lang.c (f_word_break_characters): Delete.
2601 (f_language_data): Delete la_word_break_characters initializer.
2602 (f_language::word_break_characters): New member function.
2603 * go-lang.c (go_language_data): Delete la_word_break_characters
2604 initializer.
2605 * language.c (unknown_language_data): Likewise.
2606 (auto_language_data): Likewise.
2607 * language.h (default_word_break_characters): Move declaration to
2608 earlier in the file.
2609 (language_data): Delete la_word_break_characters field.
2610 (language_defn::word_break_characters): New member function.
2611 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2612 initializer.
2613 * objc-lang.c (objc_language_data): Likewise.
2614 * opencl-lang.c (opencl_language_data): Likewise.
2615 * p-lang.c (pascal_language_data): Likewise.
2616 * rust-lang.c (rust_language_data): Likewise.
2617
2618 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2619
2620 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2621 (ada_language_data): Delete la_get_symbol_name_matcher
2622 initializer.
2623 (language_defn::get_symbol_name_matcher_inner): New member
2624 function.
2625 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2626 initializer.
2627 (cplus_language_data): Likewise.
2628 (cplus_language::get_symbol_name_matcher_inner): New member
2629 function.
2630 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2631 (minimal_language_data): Likewise.
2632 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2633 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2634 initializer.
2635 * dictionary.c (iter_match_first_hashed): Update call to
2636 get_symbol_name_matcher.
2637 (iter_match_next_hashed): Likewise.
2638 (iter_match_next_linear): Likewise.
2639 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2640 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2641 initializer.
2642 (f_language::get_symbol_name_matcher_inner): New member function.
2643 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2644 initializer.
2645 * language.c (default_symbol_name_matcher): Update header comment,
2646 make static.
2647 (language_defn::get_symbol_name_matcher): New definition.
2648 (language_defn::get_symbol_name_matcher_inner): Likewise.
2649 (get_symbol_name_matcher): Delete.
2650 (unknown_language_data): Delete la_get_symbol_name_matcher
2651 initializer.
2652 (auto_language_data): Likewise.
2653 * language.h (language_data): Delete la_get_symbol_name_matcher
2654 field.
2655 (language_defn::get_symbol_name_matcher): New member function.
2656 (language_defn::get_symbol_name_matcher_inner): Likewise.
2657 (default_symbol_name_matcher): Delete declaration.
2658 * linespec.c (find_methods): Update call to
2659 get_symbol_name_matcher.
2660 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2661 initializer.
2662 * minsyms.c (lookup_minimal_symbol): Update call to
2663 get_symbol_name_matcher.
2664 (iterate_over_minimal_symbols): Likewise.
2665 * objc-lang.c (objc_language_data): Delete
2666 la_get_symbol_name_matcher initializer.
2667 * opencl-lang.c (opencl_language_data): Likewise.
2668 * p-lang.c (pascal_language_data): Likewise.
2669 * psymtab.c (psymbol_name_matches): Update call to
2670 get_symbol_name_matcher.
2671 * rust-lang.c (rust_language_data): Delete
2672 la_get_symbol_name_matcher initializer.
2673 * symtab.c (symbol_matches_search_name): Update call to
2674 get_symbol_name_matcher.
2675 (compare_symbol_name): Likewise.
2676
2677 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2678
2679 * ada-lang.c (ada_language_data): Delete la_compute_program
2680 initializer.
2681 * c-lang.c (c_language_data): Likewise.
2682 (c_language::compute_program): New member function.
2683 (cplus_language_data): Delete la_compute_program initializer.
2684 (cplus_language::compute_program): New member function.
2685 (asm_language_data): Delete la_compute_program initializer.
2686 (minimal_language_data): Likewise.
2687 * c-lang.h (c_compute_program): Update comment.
2688 (cplus_compute_program): Likewise.
2689 * compile/compile-c-support.c (c_compute_program): Likewise.
2690 (cplus_compute_program): Likewise.
2691 * compile/compile.c (compile_to_object): Update call to
2692 la_compute_program.
2693 * d-lang.c (d_language_data): Delete la_compute_program
2694 initializer.
2695 * f-lang.c (f_language_data): Likewise.
2696 * go-lang.c (go_language_data): Likewise.
2697 * language.c (unknown_language_data): Likewise.
2698 (auto_language_data): Likewise.
2699 * language.h (language_data): Delete la_compute_program field.
2700 (language_defn::compute_program): New member function.
2701 * m2-lang.c (m2_language_data): Delete la_compute_program
2702 initializer.
2703 * objc-lang.c (objc_language_data): Likewise.
2704 * opencl-lang.c (opencl_language_data): Likewise.
2705 * p-lang.c (pascal_language_data): Likewise.
2706 * rust-lang.c (rust_language_data): Likewise.
2707
2708 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2709
2710 * ada-lang.c (ada_language_data) Delete
2711 la_class_name_from_physname initializer.
2712 * c-lang.c (c_language_data): Likewise.
2713 (cplus_language_data): Likewise.
2714 (cplus_language::class_name_from_physname): New member function.
2715 (asm_language_data): Delete la_class_name_from_physname
2716 initializer.
2717 (minimal_language_data): Likewise.
2718 * d-lang.c (d_language_data): Likewise.
2719 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2720 method on language_defn class.
2721 (guess_full_die_structure_name): Likewise.
2722 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2723 initializer.
2724 * go-lang.c (go_language_data): Likewise.
2725 * language.c (language_class_name_from_physname): Delete.
2726 (unk_lang_class_name): Delete.
2727 (unknown_language_data): Delete la_class_name_from_physname
2728 initializer.
2729 (auto_language_data): Likewise.
2730 * language.h (language_data): Delete la_class_name_from_physname
2731 field.
2732 (language_defn::class_name_from_physname): New function.
2733 (language_class_name_from_physname): Delete declaration.
2734 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2735 initializer.
2736 * objc-lang.c (objc_language_data): Likewise.
2737 * opencl-lang.c (opencl_language_data): Likewise.
2738 * p-lang.c (pascal_language_data): Likewise.
2739 * rust-lang.c (rust_language_data): Likewise.
2740
2741 2020-06-16 Tom Tromey <tom@tromey.com>
2742
2743 * tui/tui-data.h (STATUS_NAME): New macro.
2744 * tui/tui-layout.c (tui_remove_some_windows)
2745 (initialize_known_windows, tui_register_window)
2746 (tui_layout_split::remove_windows, initialize_layouts)
2747 (tui_new_layout_command): Don't use hard-coded window names.
2748
2749 2020-06-16 Tom Tromey <tom@tromey.com>
2750
2751 PR tui/25348:
2752 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2753 tui_initialize_readline. Only run once. Call rl_initialize.
2754 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2755 tui_initialize_readline.
2756 * tui/tui-io.c (tui_setup_io): Call
2757 tui_ensure_readline_initialized.
2758 * tui/tui-interp.c (tui_interp::init): Update.
2759
2760 2020-06-16 Tom Tromey <tom@tromey.com>
2761
2762 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2763 Also preserve the status window.
2764
2765 2020-06-16 Tom Tromey <tom@tromey.com>
2766
2767 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2768 where m_window==nullptr.
2769
2770 2020-06-15 Tom Tromey <tromey@adacore.com>
2771
2772 * windows-nat.c (windows_nat::handle_output_debug_string):
2773 Update.
2774 (windows_nat::handle_ms_vc_exception): Update.
2775 * target.h (target_read_string): Change API.
2776 * target.c (target_read_string): Change API.
2777 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2778 Update.
2779 * solib-frv.c (frv_current_sos): Update.
2780 * solib-dsbt.c (dsbt_current_sos): Update.
2781 * solib-darwin.c (darwin_current_sos): Update.
2782 * linux-thread-db.c (inferior_has_bug): Update.
2783 * expprint.c (print_subexp_standard): Update.
2784 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2785 (ada_exception_message_1): Update.
2786
2787 2020-06-15 Tom Tromey <tromey@adacore.com>
2788
2789 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2790
2791 2020-06-15 Tom Tromey <tromey@adacore.com>
2792
2793 * valprint.c (read_string): Update comment.
2794 * target.c (MIN): Remove.
2795 (target_read_string): Rewrite.
2796
2797 2020-06-15 Tom Tromey <tromey@adacore.com>
2798
2799 * corefile.c (read_memory_string): Remove.
2800 * ada-valprint.c (ada_value_print_ptr): Update.
2801 * ada-lang.h (ada_tag_name): Change return type.
2802 * ada-lang.c (type_from_tag): Update.
2803 (ada_tag_name_from_tsd): Change return type. Use
2804 target_read_string.
2805 (ada_tag_name): Likewise.
2806 * gdbcore.h (read_memory_string): Don't declare.
2807
2808 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2809
2810 * symtab.c (rbreak_command): Ignore Windows drive colon.
2811
2812 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2813
2814 * NEWS: Mention removed GDBserver host support.
2815
2816 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2817
2818 * features/riscv/rebuild-csr-xml.sh: Updated.
2819
2820 2020-06-11 Tom Tromey <tom@tromey.com>
2821
2822 PR gdb/18318:
2823 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2824
2825 2020-06-09 Jonny Grant <jg@jguk.org>
2826 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2827
2828 * main.c (captured_main_1): Don't print new line after help.
2829 (print_gdb_help): add mailing list and IRC channel information
2830 to --help. Add new lines between items in the footer. Remove
2831 quotes around bug url.
2832
2833 2020-06-11 Keith Seitz <keiths@redhat.com>
2834
2835 PR gdb/21356
2836 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2837 Resolve typedefs for type length calculations.
2838
2839 2020-06-10 Tom de Vries <tdevries@suse.de>
2840
2841 PR ada/24713
2842 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2843 (write_psymbols): Enable .gdb_index for ada.
2844 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2845 ada.
2846
2847 2020-06-10 Tom de Vries <tdevries@suse.de>
2848
2849 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2850 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2851 namei" instead of "const char *name" argument.
2852 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2853 dw2_symtab_iter_init.
2854
2855 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2856
2857 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2858 to use type::field and field::type instead.
2859
2860 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2861
2862 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2863 to use field::type instead.
2864
2865 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2866
2867 * gdbtypes.h (struct field) <type, set_type>: New methods.
2868 Rename `type` field to...
2869 <m_type>: ... this. Change references throughout to use type or
2870 set_type methods.
2871 (FIELD_TYPE): Use field::type. Change call sites that modify
2872 the field's type to use field::set_type instead.
2873
2874 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2875
2876 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2877 to use type::index_type instead.
2878
2879 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2880
2881 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2882 methods.
2883 (TYPE_INDEX_TYPE): Use type::index_type.
2884 * gdbtypes.c (create_array_type_with_stride): Likewise.
2885
2886 2020-06-07 Tom Tromey <tom@tromey.com>
2887
2888 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2889 parameter.
2890 (generic_value_print): Update.
2891
2892 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2893
2894 Revert commit 982a38f60b0.
2895 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2896
2897 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2898
2899 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2900 avoid use after free.
2901
2902 2020-06-05 Tom de Vries <tdevries@suse.de>
2903
2904 * NEWS: Fix typos.
2905
2906 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2907
2908 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2909 the per_bfd object.
2910 (dwarf2_read_debug_names): Likewise.
2911 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2912 object when re-using a per_bfd object with an index.
2913
2914 2020-06-03 Tom de Vries <tdevries@suse.de>
2915
2916 PR symtab/26046
2917 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2918 children for C++.
2919 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2920 DW_TAG_subprogram.
2921
2922 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2923
2924 * ada-lang.c (ada_language_data): Delete skip_trampoline
2925 initializer.
2926 * c-lang.c (c_language_data): Likewise.
2927 (cplus_language_data): Likewise.
2928 (cplus_language::skip_trampoline): New member function.
2929 (asm_language_data): Delete skip_trampoline initializer.
2930 (minimal_language_data): Likewise.
2931 * d-lang.c (d_language_data): Likewise.
2932 * f-lang.c (f_language_data): Likewise.
2933 * go-lang.c (go_language_data): Likewise.
2934 * language.c (unk_lang_trampoline): Delete function.
2935 (skip_language_trampoline): Update.
2936 (unknown_language_data): Delete skip_trampoline initializer.
2937 (auto_language_data): Likewise.
2938 * language.h (language_data): Delete skip_trampoline field.
2939 (language_defn::skip_trampoline): New function.
2940 * m2-lang.c (m2_language_data): Delete skip_trampoline
2941 initializer.
2942 * objc-lang.c (objc_skip_trampoline): Delete function, move
2943 implementation to objc_language::skip_trampoline.
2944 (objc_language_data): Delete skip_trampoline initializer.
2945 (objc_language::skip_trampoline): New member function with
2946 implementation from objc_skip_trampoline.
2947 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2948 initializer.
2949 * p-lang.c (pascal_language_data): Likewise.
2950 * rust-lang.c (rust_language_data): Likewise.
2951
2952 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2953
2954 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2955 (ada_language::demangle): New member function.
2956 * c-lang.c (c_language_data): Delete la_demangle initializer.
2957 (cplus_language_data): Delete la_demangle initializer.
2958 (cplus_language::demangle): New member function.
2959 (asm_language_data): Delete la_demangle initializer.
2960 (minimal_language_data): Delete la_demangle initializer.
2961 * d-lang.c (d_language_data): Delete la_demangle initializer.
2962 (d_language::demangle): New member function.
2963 * f-lang.c (f_language_data): Delete la_demangle initializer.
2964 (f_language::demangle): New member function.
2965 * go-lang.c (go_language_data): Delete la_demangle initializer.
2966 (go_language::demangle): New member function.
2967 * language.c (language_demangle): Update.
2968 (unk_lang_demangle): Delete.
2969 (unknown_language_data): Delete la_demangle initializer.
2970 (unknown_language::demangle): New member function.
2971 (auto_language_data): Delete la_demangle initializer.
2972 (auto_language::demangle): New member function.
2973 * language.h (language_data): Delete la_demangle field.
2974 (language_defn::demangle): New function.
2975 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2976 * objc-lang.c (objc_language_data): Delete la_demangle
2977 initializer.
2978 (objc_language::demangle): New member function.
2979 * opencl-lang.c (opencl_language_data): Delete la_demangle
2980 initializer.
2981 * p-lang.c (pascal_language_data): Likewise.
2982 * rust-lang.c (rust_language_data): Likewise.
2983 (rust_language::demangle): New member function.
2984
2985 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2986
2987 * ada-lang.c (ada_language_data): Delete la_print_type
2988 initializer.
2989 (ada_language::print_type): New member function.
2990 * c-lang.c (c_language_data): Delete la_print_type initializer.
2991 (c_language::print_type): New member function.
2992 (cplus_language_data): Delete la_print_type initializer.
2993 (cplus_language::print_type): New member function.
2994 (asm_language_data): Delete la_print_type initializer.
2995 (asm_language::print_type): New member function.
2996 (minimal_language_data): Delete la_print_type initializer.
2997 (minimal_language::print_type): New member function.
2998 * d-lang.c (d_language_data): Delete la_print_type initializer.
2999 (d_language::print_type): New member function.
3000 * f-lang.c (f_language_data): Delete la_print_type initializer.
3001 (f_language::print_type): New member function.
3002 * go-lang.c (go_language_data): Delete la_print_type initializer.
3003 (go_language::print_type): New member function.
3004 * language.c (unk_lang_print_type): Delete.
3005 (unknown_language_data): Delete la_print_type initializer.
3006 (unknown_language::print_type): New member function.
3007 (auto_language_data): Delete la_print_type initializer.
3008 (auto_language::print_type): New member function.
3009 * language.h (language_data): Delete la_print_type field.
3010 (language_defn::print_type): New function.
3011 (LA_PRINT_TYPE): Update.
3012 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3013 (m2_language::print_type): New member function.
3014 * objc-lang.c (objc_language_data): Delete la_print_type
3015 initializer.
3016 (objc_language::print_type): New member function.
3017 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3018 to opencl_language::print_type.
3019 (opencl_language_data): Delete la_print_type initializer.
3020 (opencl_language::print_type): New member function, implementation
3021 from opencl_print_type.
3022 * p-lang.c (pascal_language_data): Delete la_print_type
3023 initializer.
3024 (pascal_language::print_type): New member function.
3025 * rust-lang.c (rust_print_type): Delete, implementation moved to
3026 rust_language::print_type.
3027 (rust_language_data): Delete la_print_type initializer.
3028 (rust_language::print_type): New member function, implementation
3029 from rust_print_type.
3030
3031 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3032
3033 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3034 implementation moves to...
3035 (ada_language::sniff_from_mangled_name): ...here. Update return
3036 type.
3037 (ada_language_data): Delete la_sniff_from_mangled_name
3038 initializer.
3039 * c-lang.c (c_language_data): Likewise.
3040 (cplus_language_data): Likewise.
3041 (cplus_language::sniff_from_mangled_name): New member function,
3042 implementation taken from gdb_sniff_from_mangled_name.
3043 (asm_language_data): Delete la_sniff_from_mangled_name
3044 initializer.
3045 (minimal_language_data): Likewise.
3046 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3047 implementation moves to cplus_language::sniff_from_mangled_name.
3048 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3049 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3050 moves to...
3051 (d_language::sniff_from_mangled_name): ...here.
3052 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3053 * f-lang.c (f_language_data): Likewise.
3054 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3055 moves to...
3056 (go_language::sniff_from_mangled_name): ...here.
3057 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3058 * language.c (language_sniff_from_mangled_name): Delete.
3059 (unknown_language_data): Delete la_sniff_from_mangled_name
3060 initializer.
3061 (auto_language_data): Likewise.
3062 * language.h (language_data): Delete la_sniff_from_mangled_name
3063 field.
3064 (language_defn::sniff_from_mangled_name): New function.
3065 (language_sniff_from_mangled_name): Delete declaration.
3066 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3067 field.
3068 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3069 implementation moves to...
3070 (objc_language::sniff_from_mangled_name): ...here.
3071 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3072 * opencl-lang.c (opencl_language_data): Likewise.
3073 * p-lang.c (pascal_language_data): Likewise.
3074 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3075 implementation moves to...
3076 (rust_language::sniff_from_mangled_name): ...here.
3077 (rust_language_data): Delete la_sniff_from_mangled_name
3078 initializer.
3079 * symtab.c (symbol_find_demangled_name): Call
3080 sniff_from_mangled_name member function.
3081
3082 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3083
3084 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3085 initializer.
3086 * c-lang.c (c_language_data): Likewise.
3087 (cplus_language_data): Likewise.
3088 (cplus_language::search_name_hash): New member function.
3089 (asm_language_data): Delete la_search_name_hash initializer.
3090 (minimal_language_data): Likewise.
3091 * d-lang.c (d_language_data): Likewise.
3092 * dictionary.c (default_search_name_hash): Rename to...
3093 (language_defn::search_name_hash): ...this.
3094 * f-lang.c (f_language_data): Likewise.
3095 (f_language::search_name_hash): New member function.
3096 * go-lang.c (go_language_data): Delete la_search_name_hash
3097 initializer.
3098 * language.c (unknown_language_data): Likewise.
3099 (auto_language_data): Likewise.
3100 * language.h (struct language_data): Delete la_search_name_hash
3101 field.
3102 (language_defn::search_name_hash): Declare new member function.
3103 (default_search_name_hash): Delete declaration.
3104 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3105 initializer.
3106 * objc-lang.c (objc_language_data): Likewise.
3107 * opencl-lang.c (opencl_language_data): Likewise.
3108 * p-lang.c (pascal_language_data): Likewise.
3109 * rust-lang.c (rust_language_data): Likewise.
3110 * symtab.c (search_name_hash): Update call.
3111
3112 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3113
3114 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3115 initializer.
3116 * c-lang.c (class compile_instance): Declare.
3117 (c_language_data): Delete la_get_compile_instance initializer.
3118 (c_language::get_compile_instance): New member function.
3119 (cplus_language_data): Delete la_get_compile_instance initializer.
3120 (cplus_language::get_compile_instance): New member function.
3121 (asm_language_data): Delete la_get_compile_instance initializer.
3122 (minimal_language_data): Likewise.
3123 * c-lang.h (c_get_compile_context): Update comment.
3124 (cplus_get_compile_context): Update comment.
3125 * compile/compile.c (compile_to_object): Update calls, don't rely
3126 on function pointer being NULL.
3127 * d-lang.c (d_language_data): Delete la_get_compile_instance
3128 initializer.
3129 * f-lang.c (f_language_data): Likewise.
3130 * go-lang.c (go_language_data): Likewise.
3131 * language.c (unknown_language_data): Likewise.
3132 (auto_language_data): Likewise.
3133 * language.h (language_data): Delete la_get_compile_instance field.
3134 (language_defn::get_compile_instance): New member function.
3135 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3136 initializer.
3137 * objc-lang.c (objc_language_data): Likewise.
3138 * opencl-lang.c (opencl_language_data): Likewise.
3139 * p-lang.c (pascal_language_data): Likewise.
3140 * rust-lang.c (rust_language_data): Likewise.
3141
3142 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3143
3144 * ada-lang.c (ada_add_all_symbols): Update comment.
3145 (ada_iterate_over_symbols): Delete, move implementation to...
3146 (ada_language::iterate_over_symbols): ...here, a new member
3147 function, rewrite to use range based for loop.
3148 (ada_language_data): Delete la_iterate_over_symbols initializer.
3149 * c-lang.c (c_language_data): Likewise.
3150 (cplus_language_data): Likewise.
3151 (asm_language_data): Likewise.
3152 (minimal_language_data): Likewise.
3153 * d-lang.c (d_language_data): Likewise.
3154 * f-lang.c (f_language_data): Likewise.
3155 * go-lang.c (go_language_data): Likewise.
3156 * language.c (unknown_language_data): Likewise.
3157 (auto_language_data): Likewise.
3158 * language.h (language_data): Delete la_iterate_over_symbols field.
3159 (language_defn::iterate_over_symbols): New member function.
3160 (LA_ITERATE_OVER_SYMBOLS): Update.
3161 * linespec.c (iterate_over_all_matching_symtabs): Update.
3162 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3163 initializer.
3164 * objc-lang.c (objc_language_data): Likewise.
3165 * opencl-lang.c (opencl_language_data): Likewise.
3166 * p-lang.c (pascal_language_data): Likewise.
3167 * rust-lang.c (rust_language_data): Likewise.
3168
3169 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3170
3171 * ada-lang.c (ada_language_data): Delete
3172 la_lookup_transparent_type initializer.
3173 * c-lang.c (c_language_data): Likewise.
3174 (cplus_language_data): Likewise.
3175 (cplus_language::lookup_transparent_type): New member function.
3176 (asm_language_data): Delete la_lookup_transparent_type
3177 initializer.
3178 (minimal_language_data): Likewise.
3179 * d-lang.c (d_language_data): Likewise.
3180 * f-lang.c (f_language_data): Likewise.
3181 * go-lang.c (go_language_data): Likewise.
3182 * language.c (unknown_language_data): Likewise.
3183 (auto_language_data): Likewise.
3184 * language.h (struct language_data): Delete
3185 la_lookup_transparent_type field.
3186 (language_defn::lookup_transparent_type): New member function.
3187 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3188 initializer.
3189 * objc-lang.c (objc_language_data): Likewise.
3190 * opencl-lang.c (opencl_language_data): Likewise.
3191 * p-lang.c (pascal_language_data): Likewise.
3192 * rust-lang.c (rust_language_data): Likewise.
3193 * symtab.c (symbol_matches_domain): Update call.
3194
3195 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3196
3197 * ada-lang.c (ada_language_arch_info): Delete function, move
3198 implementation to...
3199 (ada_language::language_arch_info): ...here, a new member
3200 function.
3201 (ada_language_data): Delete la_language_arch_info.
3202 * c-lang.c (c_language_data): Likewise.
3203 (c_language::language_arch_info): New member function.
3204 (cplus_language_arch_info): Delete function, move
3205 implementation to...
3206 (cplus_language::language_arch_info): ...here, a new member
3207 function.
3208 (cplus_language_data): Delete la_language_arch_info.
3209 (asm_language_data): Likewise.
3210 (asm_language::language_arch_info): New member function.
3211 (minimal_language_data): Delete la_language_arch_info.
3212 (minimal_language::language_arch_info): New member function.
3213 * d-lang.c (d_language_arch_info): Delete function, move
3214 implementation to...
3215 (d_language::language_arch_info): ...here, a new member
3216 function.
3217 (d_language_data): Delete la_language_arch_info.
3218 * f-lang.c (f_language_arch_info): Delete function, move
3219 implementation to...
3220 (f_language::language_arch_info): ...here, a new member
3221 function.
3222 (f_language_data): Delete la_language_arch_info.
3223 * go-lang.c (go_language_arch_info): Delete function, move
3224 implementation to...
3225 (go_language::language_arch_info): ...here, a new member
3226 function.
3227 (go_language_data): Delete la_language_arch_info.
3228 * language.c (unknown_language_data): Likewise.
3229 (unknown_language::language_arch_info): New member function.
3230 (auto_language_data): Delete la_language_arch_info.
3231 (auto_language::language_arch_info): New member function.
3232 (language_gdbarch_post_init): Update call to
3233 la_language_arch_info.
3234 * language.h (language_data): Delete la_language_arch_info
3235 function pointer.
3236 (language_defn::language_arch_info): New function.
3237 * m2-lang.c (m2_language_arch_info): Delete function, move
3238 implementation to...
3239 (m2_language::language_arch_info): ...here, a new member
3240 function.
3241 (m2_language_data): Delete la_language_arch_info.
3242 * objc-lang.c (objc_language_arch_info): Delete function, move
3243 implementation to...
3244 (objc_language::language_arch_info): ...here, a new member
3245 function.
3246 (objc_language_data): Delete la_language_arch_info.
3247 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3248 implementation to...
3249 (opencl_language::language_arch_info): ...here, a new member
3250 function.
3251 (opencl_language_data): Delete la_language_arch_info.
3252 * p-lang.c (pascal_language_arch_info): Delete function, move
3253 implementation to...
3254 (pascal_language::language_arch_info): ...here, a new member
3255 function.
3256 (pascal_language_data): Delete la_language_arch_info.
3257 * rust-lang.c (rust_language_arch_info): Delete function, move
3258 implementation to...
3259 (rust_language::language_arch_info): ...here, a new member
3260 function.
3261 (rust_language_data): Delete la_language_arch_info.
3262
3263 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3264
3265 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3266 initializer.
3267 * c-lang.c (c_language_data): Likewise.
3268 (cplus_language_data): Likewise.
3269 (cplus_language::pass_by_reference_info): New method.
3270 (asm_language_data): Delete la_pass_by_reference initializer.
3271 (minimal_language_data): Likewise.
3272 * cp-abi.c (cp_pass_by_reference): Remove use of
3273 default_pass_by_reference.
3274 * d-lang.c (d_language_data): Likewise.
3275 * f-lang.c (f_language_data): Likewise.
3276 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3277 default_pass_by_reference.
3278 * go-lang.c (go_language_data): Likewise.
3279 * language.c (language_pass_by_reference): Update.
3280 (default_pass_by_reference): Delete.
3281 (unknown_language_data): Delete la_pass_by_reference
3282 initializer.
3283 (auto_language_data): Likewise.
3284 * language.h (struct language_data): Delete la_pass_by_reference
3285 field.
3286 (language_defn::pass_by_reference_info): New member function.
3287 (default_pass_by_reference): Delete declaration.
3288 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3289 initializer.
3290 * objc-lang.c (objc_language_data): Likewise.
3291 * opencl-lang.c (opencl_language_data): Likewise.
3292 * p-lang.c (pascal_language_data): Likewise.
3293 * rust-lang.c (rust_language_data): Likewise.
3294
3295 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3296
3297 * ada-lang.c (ada_read_var_value): Delete function, move
3298 implementation to...
3299 (ada_language::read_var_value): ...here.
3300 (ada_language_data): Delete la_read_var_value initializer.
3301 * c-lang.c (c_language_data): Likewise.
3302 (cplus_language_data): Likewise.
3303 (minimal_language_data): Likewise.
3304 * d-lang.c (d_language_data): Likewise.
3305 * f-lang.c (f_language_data): Likewise.
3306 * findvar.c (default_read_var_value): Rename to...
3307 (language_defn::read_var_value): ...this.
3308 * findvar.c (read_var_value): Update header comment, and change to
3309 call member function instead of function pointer.
3310 * go-lang.c (go_language_data): Likewise.
3311 * language.c (unknown_language_data): Delete la_read_var_value
3312 initializer.
3313 (auto_language_data): Likewise.
3314 * language.h (struct language_data): Delete la_read_var_value
3315 field.
3316 (language_defn::read_var_value): New member function.
3317 (default_read_var_value): Delete declaration.
3318 * m2-lang.c (m2_language_data): Delete la_read_var_value
3319 initializer.
3320 * objc-lang.c (objc_language_data): Likewise.
3321 * opencl-lang.c (opencl_language_data): Likewise.
3322 * p-lang.c (pascal_language_data): Likewise.
3323 * rust-lang.c (rust_language_data): Likewise.
3324 * value.h (default_read_var_value): Delete declaration.
3325
3326 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3327
3328 * ada-lang.c (ada_print_array_index): Delete function, move
3329 implementation to...
3330 (ada_language::print_array_index): ...here.
3331 (ada_language_data): Delete la_print_array_index initializer.
3332 * c-lang.c (c_language_data): Likewise.
3333 (cplus_language_data): Likewise.
3334 (minimal_language_data): Likewise.
3335 * d-lang.c (d_language_data): Likewise.
3336 * f-lang.c (f_language_data): Likewise.
3337 * go-lang.c (go_language_data): Likewise.
3338 * language.c (default_print_array_index): Delete function, move
3339 implementation to...
3340 (language_defn::print_array_index): ...here.
3341 (unknown_language_data): Delete la_print_array_index initializer.
3342 (auto_language_data): Likewise.
3343 * language.h (struct language_data): Delete la_print_array_index
3344 field.
3345 (language_defn::print_array_index): New member function.
3346 (LA_PRINT_ARRAY_INDEX): Update.
3347 (default_print_array_index): Delete declaration.
3348 * m2-lang.c (m2_language_data): Delete la_print_array_index
3349 initializer.
3350 * objc-lang.c (objc_language_data): Likewise.
3351 * opencl-lang.c (opencl_language_data): Likewise.
3352 * p-lang.c (pascal_language_data): Likewise.
3353 * rust-lang.c (rust_language_data): Likewise.
3354
3355 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3356
3357 * gdb/ada-lang.c (ada_language_defn): Convert to...
3358 (ada_language_data): ...this.
3359 (class ada_language): New class.
3360 (ada_language_defn): New static global.
3361 * gdb/c-lang.c (c_language_defn): Convert to...
3362 (c_language_data): ...this.
3363 (class c_language): New class.
3364 (c_language_defn): New static global.
3365 (cplus_language_defn): Convert to...
3366 (cplus_language_data): ...this.
3367 (class cplus_language): New class.
3368 (cplus_language_defn): New static global.
3369 (asm_language_defn): Convert to...
3370 (asm_language_data): ...this.
3371 (class asm_language): New class.
3372 (asm_language_defn): New static global.
3373 (minimal_language_defn): Convert to...
3374 (minimal_language_data): ...this.
3375 (class minimal_language): New class.
3376 (minimal_language_defn): New static global.
3377 * gdb/d-lang.c (d_language_defn): Convert to...
3378 (d_language_data): ...this.
3379 (class d_language): New class.
3380 (d_language_defn): New static global.
3381 * gdb/f-lang.c (f_language_defn): Convert to...
3382 (f_language_data): ...this.
3383 (class f_language): New class.
3384 (f_language_defn): New static global.
3385 * gdb/go-lang.c (go_language_defn): Convert to...
3386 (go_language_data): ...this.
3387 (class go_language): New class.
3388 (go_language_defn): New static global.
3389 * gdb/language.c (unknown_language_defn): Remove declaration.
3390 (current_language): Initialize to nullptr, real initialization is
3391 moved to _initialize_language.
3392 (languages): Delete global.
3393 (language_defn::languages): Define.
3394 (set_language_command): Use language_defn::languages.
3395 (set_language): Likewise.
3396 (range_error): Likewise.
3397 (language_enum): Likewise.
3398 (language_def): Likewise.
3399 (add_set_language_command): Use language_def::languages for the
3400 language list, and language_def to lookup language pointers.
3401 (skip_language_trampoline): Use language_defn::languages.
3402 (unknown_language_defn): Convert to...
3403 (unknown_language_data): ...this.
3404 (class unknown_language): New class.
3405 (unknown_language_defn): New static global.
3406 (auto_language_defn): Convert to...
3407 (auto_language_data): ...this.
3408 (class auto_language): New class.
3409 (auto_language_defn): New static global.
3410 (language_gdbarch_post_init): Use language_defn::languages.
3411 (_initialize_language): Initialize current_language.
3412 * gdb/language.h (struct language_defn): Rename to...
3413 (struct language_data): ...this.
3414 (struct language_defn): New.
3415 (auto_language_defn): Delete.
3416 (unknown_language_defn): Delete.
3417 (minimal_language_defn): Delete.
3418 (ada_language_defn): Delete.
3419 (asm_language_defn): Delete.
3420 (c_language_defn): Delete.
3421 (cplus_language_defn): Delete.
3422 (d_language_defn): Delete.
3423 (f_language_defn): Delete.
3424 (go_language_defn): Delete.
3425 (m2_language_defn): Delete.
3426 (objc_language_defn): Delete.
3427 (opencl_language_defn): Delete.
3428 (pascal_language_defn): Delete.
3429 (rust_language_defn): Delete.
3430 * gdb/m2-lang.c (m2_language_defn): Convert to...
3431 (m2_language_data): ...this.
3432 (class m2_language): New class.
3433 (m2_language_defn): New static global.
3434 * gdb/objc-lang.c (objc_language_defn): Convert to...
3435 (objc_language_data): ...this.
3436 (class objc_language): New class.
3437 (objc_language_defn): New static global.
3438 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3439 (opencl_language_data): ...this.
3440 (class opencl_language): New class.
3441 (opencl_language_defn): New static global.
3442 * gdb/p-lang.c (pascal_language_defn): Convert to...
3443 (pascal_language_data): ...this.
3444 (class pascal_language): New class.
3445 (pascal_language_defn): New static global.
3446 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3447 language pointer, update comment format.
3448 * gdb/rust-lang.c (rust_language_defn): Convert to...
3449 (rust_language_data): ...this.
3450 (class rust_language): New class.
3451 (rust_language_defn): New static global.
3452
3453 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3454
3455 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3456 member variable.
3457 <m_stmt_at_address>: New member variable.
3458 (lnp_state_machine::record_line): Don't record some lines, update
3459 tracking of is_stmt at the same address.
3460 (lnp_state_machine::lnp_state_machine): Initialise new member
3461 variables.
3462
3463 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3464
3465 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3466 "-include gnu-nat-mig.h".
3467 * gnu-nat-mig.h: New file.
3468 * gnu-nat.c: Include "gnu-nat-mig.h".
3469 (exc_server, msg_reply_server, notify_server,
3470 process_reply_server): Remove declarations.
3471
3472 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3473
3474 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3475 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3476 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3477 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3478 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3479 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3480 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3481 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3482 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3483 to gnu_nat_target class.
3484 * gnu-nat.c: Likewise.
3485 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3486 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3487 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3488 object.
3489 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3490 instead of `gnu_target'.
3491
3492 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3493
3494 * i386-gnu-tdep.c: Include "gdbcore.h"
3495 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3496 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3497 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3498 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3499 i386_gnu_sigcontext_addr): New functions
3500 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3501 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3502 tdep.
3503
3504 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3505
3506 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3507 before fork_inferior call. Avoid calling it if target_is_pushed returns
3508 true.
3509
3510 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3511
3512 * gnu-nat.h (gnu_target): New variable declaration.
3513 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3514 gnu_target.
3515 * gnu-nat.c (gnu_target): New variable.
3516 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3517 add_thread_silent, and add_thread calls.
3518 (gnu_nat_target::create_inferior): Pass gnu_target to
3519 add_thread_silent, thread_change_ptid call.
3520 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3521 call.
3522
3523 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3524
3525 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3526 (gnu_nat_target::find_memory_regions): Remove unused
3527 `old_address' variable.
3528
3529 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3530
3531 * gnu-nat.c: Include "gdbarch.h".
3532
3533 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3534
3535 * reply_mig_hack.awk (Error return): Cast function through
3536 void *, to bypass compiler function call check.
3537
3538 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3539
3540 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3541 $(srcdir)/reply_mig_hack.awk.
3542
3543 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3544
3545 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3546
3547 2020-05-30 Jonny Grant <jg@jguk.org>
3548
3549 * configure.ac (ACX_BUGURL): change bug URL to https.
3550
3551 2020-05-30 Pedro Alves <palves@redhat.com>
3552
3553 * cp-support.c (replace_typedefs_template): New.
3554 (replace_typedefs_qualified_name): Handle
3555 DEMANGLE_COMPONENT_TEMPLATE.
3556
3557 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3558
3559 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3560 dwarf2/index-cache.h, dwarf2/index-write.c,
3561 dwarf2/index-write.h, dwarf2/line-header.c,
3562 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3563 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3564 variables and fields from `dwarf2_per_objfile` to just
3565 `per_objfile` throughout.
3566
3567 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3568
3569 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3570 <push_dwarf_reg_entry_value>: Add comment.
3571
3572 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3573 Keith Seitz <keiths@redhat.com>
3574
3575 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3576 instead of PyEval_ReleaseLock.
3577 (class gdbpy_gil): Move to earlier in file.
3578 (finalize_python): Set gdb_python_initialized.
3579 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3580 when not initialized.
3581
3582 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3583
3584 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3585 <push_dwarf_reg_entry_value>: Remove assert. Override
3586 per_objfile with caller_per_objfile.
3587
3588 2020-05-28 Tom de Vries <tdevries@suse.de>
3589
3590 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3591 PR gold/15646 workaround to symbol kind "type".
3592
3593 2020-05-27 Tom Tromey <tromey@adacore.com>
3594
3595 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3596
3597 2020-05-27 Tom Tromey <tromey@adacore.com>
3598
3599 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3600 Use htab_find_with_hash.
3601 <add_abbrev>: Remove "abbrev_number" parameter.
3602 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3603 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3604 (hash_abbrev): Add comment.
3605 (abbrev_table::lookup_abbrev): Move to header file.
3606 (abbrev_table::read): Update.
3607
3608 2020-05-27 Tom Tromey <tromey@adacore.com>
3609
3610 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3611 method.
3612 <canonical_name>: New member.
3613 <raw_name>: Rename from "name".
3614 (partial_die_info): Initialize canonical_name.
3615 (scan_partial_symbols): Check raw_name.
3616 (partial_die_parent_scope, partial_die_full_name)
3617 (add_partial_symbol, add_partial_subprogram)
3618 (add_partial_enumeration, load_partial_dies): Use "name" method.
3619 (partial_die_info::name): New method.
3620 (partial_die_info::read, guess_partial_die_structure_name)
3621 (partial_die_info::fixup): Update.
3622
3623 2020-05-27 Tom Tromey <tromey@adacore.com>
3624
3625 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3626 <get_ref_die_offset>: Inline.
3627 <get_ref_die_offset_complaint>: New method.
3628 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3629 (attribute::get_ref_die_offset_complaint): Rename from
3630 get_ref_die_offset. Just issue complaint.
3631
3632 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3633
3634 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3635
3636 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3637
3638 * exec.c (exec_file_attach): Use errno value of first openp failure.
3639
3640 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3641
3642 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3643 Don't close thread handle.
3644
3645 2020-05-27 Tom Tromey <tom@tromey.com>
3646 Simon Marchi <simon.marchi@efficios.com>
3647
3648 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3649 shared_ptr.
3650 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3651 member.
3652 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3653 dwarf2_per_bfd_objfile_data_key>: New globals.
3654 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3655 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3656 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3657 shared.
3658 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3659 short-circuit when sharing.
3660 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3661 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3662
3663 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3664
3665 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3666 to...
3667 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3668 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3669
3670 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3671
3672 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3673 build_name_components, find_name_components_bounds>:
3674 Add per_objfile parameter.
3675 (struct mapped_index) <symbol_name_at>: Likewise.
3676 (struct mapped_debug_names): Remove constructor.
3677 <dwarf2_per_objfile>: Remove field.
3678 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3679 (mapped_index_base::find_name_components_bounds,
3680 mapped_index_base::build_name_components,
3681 dw2_expand_symtabs_matching_symbol): Likewise.
3682 (class mock_mapped_index) <symbol_name_at>: Likewise.
3683 (check_match): Likewise.
3684 (check_find_bounds_finds): Likewise.
3685 (test_mapped_index_find_name_component_bounds): Update.
3686 (CHECK_MATCH): Update.
3687 (dw2_expand_symtabs_matching): Update.
3688 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3689 per_objfile parameter.
3690 <find_vec_in_debug_names>: Likewise.
3691 <m_per_objfile>: New field.
3692 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3693 parameter.
3694 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3695 (dw2_debug_names_iterator::next): Update.
3696 (dw2_debug_names_lookup_symbol): Update.
3697 (dw2_debug_names_expand_symtabs_for_function): Update.
3698 (dw2_debug_names_map_matching_symbols): Update.
3699 (dw2_debug_names_expand_symtabs_matching): Update.
3700 (dwarf2_read_debug_names): Update.
3701
3702 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3703
3704 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3705 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3706 move to dwarf2_per_objfile.
3707 <read_in_chain>: Remove.
3708 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3709 remove_all_cus, age_comp_units>: New methods.
3710 <m_dwarf2_cus>: New member.
3711 (struct dwarf2_per_cu_data) <cu>: Remove.
3712 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3713 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3714 moved to methods of dwarf2_per_objfile.
3715 (dwarf2_clear_marks): Remove.
3716 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3717 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3718 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3719 (dwarf2_per_objfile::remove_all_cus): New.
3720 (class free_cached_comp_units) <~free_cached_comp_units>:
3721 Update.
3722 (load_cu): Update.
3723 (dw2_do_instantiate_symtab): Adjust.
3724 (fill_in_sig_entry_from_dwo_entry): Adjust.
3725 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3726 (cutu_reader::cutu_reader): Likewise.
3727 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3728 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3729 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3730 and dwarf2_per_objfile::age_comp_units.
3731 (load_partial_comp_unit): Update.
3732 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3733 (process_queue): Likewise.
3734 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3735 backlink.
3736 (dwarf2_read_addr_index): Likewise.
3737 (follow_die_offset): Likewise.
3738 (dwarf2_fetch_die_loc_sect_off): Likewise.
3739 (dwarf2_fetch_constant_bytes): Likewise.
3740 (dwarf2_fetch_die_type_sect_off): Likewise.
3741 (follow_die_sig_1): Likewise.
3742 (load_full_type_unit): Likewise.
3743 (read_signatured_type): Likewise.
3744 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3745 (dwarf2_cu::~dwarf2_cu): Remove.
3746 (dwarf2_per_objfile::get_cu): New.
3747 (dwarf2_per_objfile::set_cu): New.
3748 (age_cached_comp_units): Rename to...
3749 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3750 to std::unordered_map.
3751 (free_one_cached_comp_unit): Rename to...
3752 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3753 to std::unordered_map.
3754 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3755 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3756 a dwarf2_per_objfile in data.
3757 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3758 (dwarf2_clear_marks): Remove.
3759
3760 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3761
3762 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3763 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3764 (init_tu_and_read_dwo_dies): Likewise.
3765 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3766 (cutu_reader::cutu_reader): Likewise.
3767 (load_partial_comp_unit): Likewise.
3768 (process_psymtab_comp_unit): Update.
3769 (build_type_psymtabs_1): Update.
3770 (process_skeletonless_type_unit): Update.
3771 (load_full_comp_unit): Update.
3772 (find_partial_die): Update.
3773 (dwarf2_read_addr_index): Update.
3774 (read_signatured_type): Update.
3775
3776 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3777
3778 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3779 m_header_read_in>: New fields.
3780 <get_header>: New method.
3781 * dwarf2/read.c (per_cu_header_read_in): Remove.
3782 (dwarf2_per_cu_data::get_header): New.
3783 (dwarf2_per_cu_data::addr_size): Update.
3784 (dwarf2_per_cu_data::offset_size): Update.
3785 (dwarf2_per_cu_data::ref_addr_size): Update.
3786
3787 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3788
3789 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3790 (dw2_do_instantiate_symtab): Update.
3791 (queue_and_load_all_dwo_tus): Change parameter from
3792 dwarf2_per_cu_data to dwarf2_cu.
3793 (dwarf2_fetch_die_loc_sect_off): Update.
3794 (dwarf2_fetch_constant_bytes): Update.
3795 (dwarf2_fetch_die_type_sect_off): Update.
3796
3797 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3798
3799 * dwarf2/read.c (process_full_comp_unit,
3800 process_full_type_unit): Remove per_cu, per_objfile paramters.
3801 Add dwarf2_cu parameter.
3802 (process_queue): Update.
3803
3804 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3805
3806 * dwarf2/read.c (create_cu_from_index_list): Replace
3807 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3808 (create_cus_from_index_list): Likewise.
3809 (create_cus_from_index): Likewise.
3810 (create_signatured_type_table_from_index): Likewise.
3811 (create_cus_from_debug_names_list): Likewise.
3812 (create_cus_from_debug_names): Likewise.
3813 (dwarf2_read_gdb_index): Update.
3814 (dwarf2_read_debug_names): Update.
3815
3816 2020-05-27 Tom Tromey <tom@tromey.com>
3817 Simon Marchi <simon.marchi@efficios.com>
3818
3819 * dwarf2/read.h (struct dwarf2_per_objfile)
3820 <get_type_for_signatured_type, set_type_for_signatured_type>:
3821 New methods.
3822 <m_type_map>: New member.
3823 (struct signatured_type) <type>: Remove.
3824 * dwarf2/read.c
3825 (dwarf2_per_objfile::get_type_for_signatured_type,
3826 dwarf2_per_objfile::set_type_for_signatured_type): New.
3827 (get_signatured_type): Use new methods.
3828
3829 2020-05-27 Tom Tromey <tom@tromey.com>
3830 Simon Marchi <simon.marchi@efficios.com>
3831
3832 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3833 (struct dwarf2_per_objfile) <type_units>: New member.
3834 <get_type_unit_group_unshareable>: New method.
3835 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3836 num_symtabs, symtabs>: Remove; move to
3837 type_unit_group_unshareable.
3838 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3839 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3840 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3841
3842 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3843
3844 * dwarf2/read.h (struct dwarf2_per_cu_data):
3845 <dwarf2_per_objfile>: Remove.
3846 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3847 dwarf2_per_objfile.
3848 (create_signatured_type_table_from_index): Likewise.
3849 (create_signatured_type_table_from_debug_names): Likewise.
3850 (create_debug_type_hash_table): Likewise.
3851 (fill_in_sig_entry_from_dwo_entry): Likewise.
3852 (create_type_unit_group): Likewise.
3853 (read_comp_units_from_section): Likewise.
3854 (create_cus_hash_table): Likewise.
3855
3856 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3857
3858 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3859 dwarf2_per_cu_data::dwarf2_per_objfile.
3860 (compute_compunit_symtab_includes): Likewise.
3861 (dwarf2_cu::start_symtab): Likewise.
3862
3863 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3864
3865 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3866 parameter.
3867 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3868 (read_namespace_alias): Update.
3869 (lookup_die_type): Update.
3870 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3871 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3872 Update.
3873 (disassemble_dwarf_expression): Update.
3874
3875 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3876
3877 * dwarf2/read.h (struct dwarf2_queue_item): Add
3878 dwarf2_per_objfile parameter, assign new parameter.
3879 <per_objfile>: New field.
3880 * dwarf2/read.c (free_one_cached_comp_unit): Add
3881 dwarf2_per_objfile parameter.
3882 (queue_comp_unit): Likewise.
3883 (dw2_do_instantiate_symtab): Update.
3884 (process_psymtab_comp_unit): Update.
3885 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3886 (process_imported_unit_die): Update.
3887 (queue_and_load_dwo_tu): Update.
3888 (follow_die_offset): Update.
3889 (follow_die_sig_1): Update.
3890
3891 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3892
3893 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3894 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3895 (read_call_site_scope): Assign per_objfile.
3896 (dwarf2_per_cu_data::objfile): Remove.
3897 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3898 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3899 dwarf2_per_objfile parameter.
3900 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3901 dwarf2_per_objfile parameter.
3902 (dwarf_expr_reg_to_entry_parameter): Add output
3903 dwarf2_per_objfile parameter.
3904 (locexpr_get_frame_base): Update.
3905 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3906 <push_dwarf_reg_entry_value>: Update.
3907 <call_site_to_target_addr>: Update.
3908 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3909 parameter.
3910 (value_of_dwarf_reg_entry): Update.
3911 (rw_pieced_value): Update.
3912 (indirect_synthetic_pointer): Update.
3913 (dwarf2_evaluate_property): Update.
3914 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3915 parameter.
3916 (locexpr_read_variable): Update.
3917 (locexpr_get_symbol_read_needs): Update.
3918 (loclist_read_variable): Update.
3919
3920 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3921
3922 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3923 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3924 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3925 parameter.
3926 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3927 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3928 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3929 parameter.
3930 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3931 sect_variable_value): Add dwarf2_per_objfile parameter.
3932 (class dwarf_evaluate_loc_desc) <dwarf_call,
3933 dwarf_variable_value>: Update.
3934 (fetch_const_value_from_synthetic_pointer): Add
3935 dwarf2_per_objfile parameter.
3936 (fetch_const_value_from_synthetic_pointer): Update.
3937 (coerced_pieced_ref): Update.
3938 (class symbol_needs_eval_context) <dwarf_call,
3939 dwarf_variable_value>: Update.
3940 (dwarf2_compile_expr_to_ax): Update.
3941
3942 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3943
3944 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3945 parameter.
3946 (dwarf2_evaluate_loc_desc_full): Update.
3947
3948 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3949
3950 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3951 parameter.
3952 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3953 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3954 dwarf2_per_objfile parameter.
3955 (decode_debug_loc_dwo_addresses): Likewise.
3956 (dwarf2_find_location_expression): Update.
3957 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3958 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3959 parameter.
3960 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3961 parameter.
3962 (locexpr_describe_location_1): Likewise.
3963 (locexpr_describe_location): Update.
3964
3965 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3966
3967 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3968 Remove.
3969 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3970 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3971 (dwarf2_compile_property_to_c): Update.
3972 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3973 use text offset from objfile.
3974 (locexpr_tracepoint_var_ref): Update.
3975 (locexpr_generate_c_location): Update.
3976 (loclist_describe_location): Update.
3977 (loclist_tracepoint_var_ref): Update.
3978 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3979 dwarf2_per_objfile parameter.
3980 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3981 use text offset from objfile.
3982 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3983
3984 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3985
3986 * dwarf2/expr.h (struct dwarf_expr_context)
3987 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3988 <offset>: Remove.
3989 <per_objfile>: New member.
3990 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3991 dwarf2_per_objfile parameter. Don't set offset, set
3992 per_objfile.
3993 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3994 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3995 a dwarf2_per_objfile object instead of an offset.
3996 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3997 constructor.
3998 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3999 to dwarf2_expr_executor constructor. Don't set offset.
4000 (dwarf2_fetch_cfa_info): Update.
4001 (struct dwarf2_frame_cache) <text_offset>: Remove.
4002 <per_objfile>: New field.
4003 (dwarf2_frame_cache): Update.
4004 (dwarf2_frame_prev_register): Update.
4005 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4006 <dwarf_evaluate_loc_desc>: Add constructor.
4007 (dwarf2_evaluate_loc_desc_full): Update.
4008 (dwarf2_locexpr_baton_eval): Update.
4009 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4010 Add constructor.
4011 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4012
4013 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4014
4015 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4016 addr_sized_int_type>: Move to dwarf2_cu.
4017 <int_type>: Move to dwarf2_per_objfile.
4018 (struct dwarf2_per_objfile) <int_type>: Move here.
4019 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4020 addr_sized_int_type>: Move here.
4021 (read_func_scope): Update.
4022 (read_array_type): Update.
4023 (read_tag_string_type): Update.
4024 (attr_to_dynamic_prop): Update.
4025 (dwarf2_per_cu_data::int_type): Rename to...
4026 (dwarf2_per_objfile::int_type): ... this.
4027 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4028 (dwarf2_cu::addr_sized_int_type): ... this.
4029 (read_subrange_type): Update.
4030 (dwarf2_per_cu_data::addr_type): Rename to...
4031 (dwarf2_cu::addr_type): ... this.
4032 (set_die_type): Update.
4033
4034 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4035
4036 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4037 data through per_cu->cu.
4038
4039 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4040
4041 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4042 dwarf2_per_cu_data parameter fo dwarf2_cu.
4043 (lookup_dwo_type_unit): Likewise.
4044 (read_cutu_die_from_dwo): Likewise.
4045 (lookup_dwo_unit): Likewise.
4046 (open_and_init_dwo_file): Likewise.
4047 (lookup_dwo_cutu): Likewise.
4048 (lookup_dwo_comp_unit): Likewise.
4049 (lookup_dwo_type_unit): Likewise.
4050 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4051 (cutu_reader::cutu_reader): Update.
4052
4053 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4054
4055 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4056 parameter.
4057 (process_full_type_unit): Likewise.
4058 (process_queue): Update.
4059
4060 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4061
4062 * dwarf2/read.c (recursively_compute_inclusions): Add
4063 dwarf2_per_objfile parameter.
4064 (compute_compunit_symtab_includes): Likewise.
4065 (process_cu_includes): Update.
4066
4067 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4068
4069 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4070 parameter.
4071 (create_type_unit_group): Update.
4072 (process_psymtab_comp_unit_reader): Update.
4073 (build_type_psymtabs_reader): Update.
4074
4075 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4076
4077 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4078 object through m_this_cu->cu.
4079
4080 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4081
4082 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4083 the info parameter.
4084 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4085
4086 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4087
4088 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4089 per_objfile parameter.
4090 (load_full_type_unit): Add per_objfile parameter.
4091 (read_signatured_type): Likewise.
4092 (load_full_comp_unit): Likewise.
4093 (load_cu): Likewise.
4094 (dw2_do_instantiate_symtab): Likewise.
4095 (dw2_get_file_names): Likewise.
4096 (dw2_map_symtabs_matching_filename): Update.
4097 (dw_expand_symtabs_matching_file_matcher): Update.
4098 (dw2_map_symbol_filenames): Update.
4099 (process_psymtab_comp_unit): Add per_objfile parameter.
4100 (build_type_psymtabs_1): Update.
4101 (process_skeletonless_type_unit): Update.
4102 (dwarf2_build_psymtabs_hard): Update.
4103 (load_partial_comp_unit): Add per_objfile parameter.
4104 (scan_partial_symbols): Update.
4105 (load_full_comp_unit): Add per_objfile parameter.
4106 (process_imported_unit_die): Update.
4107 (create_cus_hash_table): Update.
4108 (find_partial_die): Update.
4109 (dwarf2_read_addr_index): Update.
4110 (follow_die_offset): Update.
4111 (dwarf2_fetch_die_loc_sect_off): Update.
4112 (dwarf2_fetch_constant_bytes): Update.
4113 (dwarf2_fetch_die_type_sect_off): Update.
4114 (follow_die_sig_1): Update.
4115 (load_full_type_unit): Add per_objfile parameter.
4116 (read_signatured_type): Likewise.
4117
4118 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4119
4120 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4121 of objfile_name.
4122
4123 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4124
4125 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4126 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4127 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4128 field.
4129 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4130 (create_cus_from_index): Update.
4131 (dwarf2_read_gdb_index): Update.
4132 (create_cus_from_debug_names): Update.
4133 (dwarf2_read_debug_names): Update.
4134 (get_abbrev_section_for_cu): Update.
4135 (create_all_comp_units): Update.
4136 (read_attribute_value): Update.
4137 (get_debug_line_section): Update.
4138 * dwarf2/index-cache.c (index_cache::store): Update.
4139 * dwarf2/index-write.c (save_gdb_index_command): Update.
4140 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4141
4142 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4143
4144 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4145 member.
4146 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4147 dwarf2_per_cu_data::per_bfd.
4148 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4149 (create_type_unit_group): Likewise.
4150 (queue_comp_unit): Remove reference to
4151 per_cu->dwarf2_per_objfile.
4152 (maybe_queue_comp_unit): Likewise.
4153 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4154 (create_cus_hash_table): Assign new field.
4155
4156 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4157
4158 * dwarf2/read.c: Replace
4159 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4160 dwarf2_cu->per_objfile throughout.
4161
4162 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4163
4164 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4165 parameter, don't use per_cu->dwarf2_per_objfile.
4166 (dw2_instantiate_symtab): Likewise.
4167 (dw2_find_last_source_symtab): Update.
4168 (dw2_map_expand_apply): Update.
4169 (dw2_lookup_symbol): Update.
4170 (dw2_expand_symtabs_for_function): Update.
4171 (dw2_expand_all_symtabs): Update.
4172 (dw2_expand_symtabs_with_fullname): Update.
4173 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4174 don't use per_cu->dwarf2_per_objfile.
4175 (dw2_expand_marked_cus): Update.
4176 (dw2_find_pc_sect_compunit_symtab): Update.
4177 (dw2_debug_names_lookup_symbol): Update.
4178 (dw2_debug_names_expand_symtabs_for_function): Update.
4179 (dw2_debug_names_map_matching_symbols): Update.
4180 (dwarf2_psymtab::expand_psymtab): Update.
4181
4182 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4183
4184 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4185 <per_objfile>: New member.
4186 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4187 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4188 call to dwarf2_cu.
4189 (cutu_reader::cutu_reader): Update.
4190 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4191
4192 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4193
4194 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4195 struct dwarf2_per_objfile.
4196 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4197 dwarf2_per_bfd.
4198 * dwarf2/read.c (set_die_type): Update.
4199 (get_die_type_at_offset): Update.
4200
4201 2020-05-27 Tom Tromey <tom@tromey.com>
4202 Simon Marchi <simon.marchi@efficios.com>
4203
4204 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4205 method.
4206 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4207 get_symtab, set_symtab>: New methods.
4208 <m_symtabs>: New field.
4209 (struct dwarf2_psymtab): Derive from partial_symtab.
4210 <readin_p, get_compunit_symtab>: Declare methods.
4211 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4212 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4213 New methods.
4214 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4215 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4216 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4217 (dw2_symtab_iter_next, dw2_print_stats)
4218 (dw2_expand_symtabs_with_fullname)
4219 (dw2_expand_symtabs_matching_one)
4220 (dw_expand_symtabs_matching_file_matcher)
4221 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4222 (dw2_debug_names_iterator::next)
4223 (dw2_debug_names_map_matching_symbols)
4224 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4225 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4226 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4227 New methods.
4228 (get_compunit_symtab, process_full_comp_unit)
4229 (process_full_type_unit): Update.
4230 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4231
4232 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4233
4234 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4235 then introduce a new dwarf2_per_objfile type.
4236 <read_line_string>: Move to the new dwarf2_per_objfile type.
4237 <objfile>: Likewise.
4238 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4239 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4240 dwarf2_per_objfile->per_bfd.
4241 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4242 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4243 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4244 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4245 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4246 (dwarf2_per_objfile::locate_sections): Rename to...
4247 (dwarf2_per_bfd::locate_sections): ... this.
4248 (dwarf2_per_objfile::get_cutu): Rename to...
4249 (dwarf2_per_bfd::get_cutu): ... this.
4250 (dwarf2_per_objfile::get_cu): Rename to...
4251 (dwarf2_per_bfd::get_cu): ... this.
4252 (dwarf2_per_objfile::get_tu): Rename to...
4253 (dwarf2_per_bfd::get_tu): ... this.
4254 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4255 (dwarf2_per_bfd::allocate_per_cu): ... this.
4256 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4257 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4258 (get_gdb_index_contents_ftype): Change parameter from
4259 dwarf2_per_objfile to dwarf2_per_bfd.
4260 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4261 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4262
4263 2020-05-27 Tom Tromey <tom@tromey.com>
4264 Simon Marchi <simon.marchi@efficios.com>
4265
4266 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4267 (allocate_piece_closure): Set "per_objfile" member.
4268 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4269 (locexpr_describe_location, loclist_describe_location): Use new
4270 member.
4271 * dwarf2/read.c (read_call_site_scope)
4272 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4273 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4274 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4275 handle_data_member_location): Set per_objfile member.
4276 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4277 member.
4278 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4279
4280 2020-05-27 Tom Tromey <tom@tromey.com>
4281
4282 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4283 allocate_signatured_type>: Declare new methods.
4284 <m_num_psymtabs>: New member.
4285 (struct dwarf2_per_cu_data) <index>: New member.
4286 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4287 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4288 (create_cu_from_index_list): Use allocate_per_cu.
4289 (create_signatured_type_table_from_index)
4290 (create_signatured_type_table_from_debug_names)
4291 (create_debug_type_hash_table, add_type_unit)
4292 (read_comp_units_from_section): Use allocate_signatured_type.
4293
4294 2020-05-27 Tom Tromey <tom@tromey.com>
4295
4296 * psymtab.c (partial_map_expand_apply)
4297 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4298 (psym_lookup_global_symbol_language)
4299 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4300 (psym_print_stats, psym_expand_symtabs_for_function)
4301 (psym_map_symbol_filenames, psym_map_matching_symbols)
4302 (psym_expand_symtabs_matching)
4303 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4304 (maintenance_check_psymtabs): Update.
4305 * psympriv.h (struct partial_symtab) <readin_p,
4306 get_compunit_symtab>: Add objfile parameter.
4307 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4308 Likewise.
4309 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4310 get_compunit_symtab>: Likewise.
4311 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4312
4313 2020-05-27 Tom Tromey <tom@tromey.com>
4314
4315 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4316 member.
4317 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4318 (create_cu_from_index_list)
4319 (create_signatured_type_table_from_index)
4320 (create_signatured_type_table_from_debug_names)
4321 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4322 (dwarf2_create_include_psymtab)
4323 (create_debug_type_hash_table, add_type_unit)
4324 (create_type_unit_group, read_comp_units_from_section)
4325 (dwarf2_compute_name, create_cus_hash_table)
4326 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4327 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4328 obstack.
4329 (dw2_get_real_path): Likewise. Change argument to
4330 dwarf2_per_objfile.
4331
4332 2020-05-27 Luis Machado <luis.machado@linaro.org>
4333
4334 PR tdep/26000
4335 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4336 for ldrd (immediate).
4337
4338 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4339
4340 * command.h: Add comment giving the name of class_tui.
4341 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4342 create the fake command for the help for class_tui.
4343
4344 2020-05-26 Tom Tromey <tromey@adacore.com>
4345
4346 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4347 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4348 (val_atr): New function.
4349 (value_val_atr): Use it.
4350 * ada-valprint.c (print_optional_low_bound): Change low bound
4351 handling for enums.
4352 (val_print_packed_array_elements): Don't call discrete_position.
4353 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4354 discrete_position for enum types.
4355 * language.c (default_print_array_index): Change type.
4356 * language.h (struct language_defn) <la_print_array_index>: Add
4357 index_type parameter, change type of index_value.
4358 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4359 (default_print_array_index): Update.
4360 * valprint.c (maybe_print_array_index): Don't call
4361 value_from_longest. Update.
4362 (value_print_array_elements): Don't call discrete_position.
4363
4364 2020-05-26 Tom Tromey <tromey@adacore.com>
4365
4366 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4367 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4368
4369 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4370
4371 PR gdb/13519
4372 * avr-tdep.c (avr_integer_to_address): Return data or code
4373 address accordingly to the second 'type' argument of the
4374 function.
4375
4376 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4377
4378 * infcmd.c, inferior.h: (construct_inferior_arguments):
4379 Moved function from here to gdbsupport/common-inferior.{h,cc}
4380
4381 2020-05-23 Tom Tromey <tom@tromey.com>
4382
4383 Revert commit eca1f90c:
4384 * NEWS: Remove entry for completion styling.
4385 * completer.c (_rl_completion_prefix_display_length): Move
4386 declaration later.
4387 (gdb_fnprint): Revert.
4388 (gdb_display_match_list_1): Likewise.
4389 * cli/cli-style.c (completion_prefix_style)
4390 (completion_difference_style, completion_suffix_style): Remove.
4391 (_initialize_cli_style): Revert.
4392 * cli/cli-style.h (completion_prefix_style)
4393 (completion_difference_style, completion_suffix_style): Don't
4394 declare.
4395
4396 2020-05-24 Pedro Alves <palves@redhat.com>
4397
4398 * symtab.c (completion_list_add_name): Return boolean indication
4399 of whether the symbol matched.
4400 (completion_list_add_symbol): Don't try to remove C++ aliases if
4401 the symbol didn't match in the first place.
4402 * symtab.h (completion_list_add_name): Return bool.
4403
4404 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4405
4406 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4407 type::field.
4408
4409 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4410
4411 GDB 9.2 released.
4412
4413 2020-05-23 Tom Tromey <tom@tromey.com>
4414
4415 * NEWS: Add entry for completion styling.
4416 * completer.c (_rl_completion_prefix_display_length): Move
4417 declaration earlier.
4418 (gdb_fnprint): Use completion_style.
4419 (gdb_display_match_list_1): Likewise.
4420 * cli/cli-style.c (completion_prefix_style)
4421 (completion_difference_style, completion_suffix_style): New
4422 globals.
4423 (_initialize_cli_style): Register new globals.
4424 * cli/cli-style.h (completion_prefix_style)
4425 (completion_difference_style, completion_suffix_style): Declare.
4426
4427 2020-05-23 Pedro Alves <palves@redhat.com>
4428
4429 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4430 (parse_escape): Use ISDIGIT instead of isdigit.
4431 (puts_debug): Use gdb_isprint instead of isprint.
4432 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4433 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4434 ISSPACE instead of isspace.
4435 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4436 instead of isspace.
4437 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4438 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4439 instead of isxdigit and ISDIGIT instead of isdigit.
4440
4441 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4442
4443 * gdbtypes.h (struct type) <field>: New method.
4444 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4445 or type::field.
4446
4447 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4448
4449 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4450 (TYPE_FIELDS): Use type::fields. Change all call sites that
4451 modify the propery to use type::set_fields instead.
4452
4453 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4454
4455 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4456 type::num_fields instead.
4457
4458 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4459
4460 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4461 methods.
4462 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4463 that modify the number of fields to use type::set_num_fields
4464 instead.
4465
4466 2020-05-22 Tom Tromey <tromey@adacore.com>
4467
4468 * compile/compile-object-load.h (munmap_list_free): Don't
4469 declare.
4470
4471 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4472
4473 * annotate.c (annotate_source_line): Update return type, add call
4474 to update current symtab and line.
4475 * annotate.h (annotate_source_line): Update return type, and
4476 extend header comment.
4477 * source.c (info_line_command): Check annotation_level before
4478 calling annotate_source_line.
4479 * stack.c (print_frame_info): If calling annotate_source_line
4480 returns true, then don't print any other source line information.
4481
4482 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4483
4484 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4485
4486 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4487
4488 * coffread.c (patch_type): Remove NULL check before xfree.
4489 * corefile.c (set_gnutarget): Likewise.
4490 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4491 * exec.c (build_section_table): Likewise.
4492 * remote.c (remote_target::pass_signals): Likewise.
4493 * utils.c (n_spaces): Likewise.
4494 * cli/cli-script.c (document_command): Likewise.
4495 * i386-windows-tdep.c (core_process_module_section): Likewise.
4496 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4497
4498 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4499
4500 * symfile.c (reread_symbols): Clear objfile's section_offsets
4501 vector and section indices, re-compute them by calling
4502 sym_offsets.
4503
4504 2020-05-20 Tom Tromey <tromey@adacore.com>
4505
4506 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4507 (desc_one_bound, desc_index_type): Compute field name.
4508
4509 2020-05-20 Tom de Vries <tdevries@suse.de>
4510
4511 PR symtab/25833
4512 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4513
4514 2020-05-20 Alan Modra <amodra@gmail.com>
4515
4516 PR 25993
4517 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4518 bfd_set_filename.
4519 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4520 passed to bfd_set_filename.
4521 * symfile-mem.c (add_vsyscall_page): Likewise for string
4522 passed to symbol_file_add_from_memory.
4523 (symbol_file_add_from_memory): Make name param a const char* and
4524 don't strdup.
4525
4526 2020-05-20 Alan Modra <amodra@gmail.com>
4527
4528 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4529 rather than accessing bfd->filename directly.
4530 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4531 and use bfd_section_name.
4532 * dwarf2/frame.c (decode_frame_entry): Likewise.
4533 * exec.c (exec_set_section_address): Likewise.
4534 * solib-aix.c (solib_aix_bfd_open): Likewise.
4535 * stap-probe.c (get_stap_base_address): Likewise.
4536 * symfile.c (reread_symbols): Likewise.
4537
4538 2020-05-19 Tom Tromey <tromey@adacore.com>
4539
4540 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4541
4542 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4543
4544 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4545
4546 2020-05-19 Pedro Alves <palves@redhat.com>
4547
4548 * NEWS (set exec-file-mismatch): Adjust entry.
4549 * exec.c: Include "build-id.h".
4550 (validate_exec_file): Try to match build IDs instead of filenames.
4551 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4552 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4553 and pass down 'warn_if_slow'.
4554 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4555 gdb_bfd_open_closure to pass it down.
4556 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4557
4558 2020-05-19 Pedro Alves <palves@redhat.com>
4559
4560 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4561 * target.c (target_fileio_open_1): Rename to target_fileio_open
4562 and make extern. Use bool.
4563 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4564 (target_fileio_read_alloc_1): Adjust.
4565 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4566 (target_fileio_open_warn_if_slow): Delete declaration.
4567
4568 2020-05-19 Pedro Alves <palves@redhat.com>
4569
4570 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4571 Adjust all callers.
4572
4573 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4574
4575 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4576 whether disp is negative.
4577
4578 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4579
4580 * symfile.h (struct symfile_segment_data)
4581 <~symfile_segment_data>: Remove.
4582 <segment_info>: Change to std::vector.
4583 * symfile.c (default_symfile_segments): Update.
4584 * elfread.c (elf_symfile_segments): Update.
4585
4586 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4587
4588 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4589 <segments>: New.
4590 <segment_bases, segment_sizes>: Remove.
4591 * symfile.c (default_symfile_segments): Update.
4592 * elfread.c (elf_symfile_segments): Update.
4593 * remote.c (remote_target::get_offsets): Update.
4594 * solib-target.c (solib_target_relocate_section_addresses):
4595 Update.
4596
4597 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4598
4599 * symfile.h (struct symfile_segment_data): Initialize fields.
4600 <~symfile_segment_data>: Add.
4601 (symfile_segment_data_up): New.
4602 (struct sym_fns) <sym_segments>: Return a
4603 symfile_segment_data_up.
4604 (default_symfile_segments): Return a symfile_segment_data_up.
4605 (free_symfile_segment_data): Remove.
4606 (get_symfile_segment_data): Return a symfile_segment_data_up.
4607 * symfile.c (default_symfile_segments): Likewise.
4608 (get_symfile_segment_data): Likewise.
4609 (free_symfile_segment_data): Remove.
4610 (symfile_find_segment_sections): Update.
4611 * elfread.c (elf_symfile_segments): Return a
4612 symfile_segment_data_up.
4613 * remote.c (remote_target::get_offsets): Update.
4614 * solib-target.c (solib_target_relocate_section_addresses):
4615 Update.
4616 * symfile-debug.c (debug_sym_segments): Return a
4617 symfile_segment_data_up.
4618
4619 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4620
4621 PR build/25981
4622 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4623 Hardcode register numbers.
4624
4625 PR build/25981
4626 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4627 procfs_find_LDT_entry): Remove.
4628 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4629 procfs_find_LDT_entry): Remove.
4630 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4631 Remove.
4632
4633 2020-05-17 Pedro Alves <palves@redhat.com>
4634 Andrew Burgess <andrew.burgess@embecosm.com>
4635 Keno Fischer <keno@juliacomputing.com>
4636
4637 PR gdb/25741
4638 * breakpoint.c (build_target_condition_list): Update comments.
4639 (build_target_command_list): Update comments and skip matching
4640 locations.
4641 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4642 a separate function. Simplify "set breakpoint auto-hw off"
4643 handling.
4644 (insert_breakpoints): Update comment.
4645 (tracepoint_locations_match): New parameter. For breakpoints,
4646 compare location types too, if the caller wants to.
4647 (handle_automatic_hardware_breakpoints): New functions.
4648 (bp_location_is_less_than): Also sort by location type and
4649 hardware breakpoint length.
4650 (update_global_location_list): Handle "set breakpoint auto-hw on"
4651 here.
4652 (update_breakpoint_locations): Ask breakpoint_locations_match to
4653 ignore location types.
4654
4655 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4656
4657 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4658 type::name instead.
4659
4660 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4661
4662 * gdbtypes.h (struct type) <name, set_name>: New methods.
4663 (TYPE_CODE): Use type::name. Change all call sites used to set
4664 the name to use type::set_name instead.
4665
4666 2020-05-16 Tom Tromey <tom@tromey.com>
4667
4668 * top.c (quit_force): Update.
4669 * infrun.c (handle_no_resumed): Update.
4670 * top.h (all_uis): New function.
4671 (ALL_UIS): Remove.
4672
4673 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4674
4675 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4676
4677 2020-05-16 Pedro Alves <palves@redhat.com>
4678
4679 * ia64-linux-nat.c
4680 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4681 Declare method.
4682 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4683
4684 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4685
4686 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4687 (sparc64_adi_info): Likewise.
4688
4689 2020-05-15 Tom Tromey <tom@tromey.com>
4690
4691 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4692 block_objfile.
4693 (lookup_objfile_from_block): Remove.
4694 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4695 (lookup_global_symbol): Use block_objfile.
4696 * symtab.h (lookup_objfile_from_block): Don't declare.
4697 * printcmd.c (clear_dangling_display_expressions): Use
4698 block_objfile.
4699 * parse.c (operator_check_standard): Use block_objfile.
4700
4701 2020-05-15 Tom Tromey <tom@tromey.com>
4702
4703 * language.c (language_alloc_type_symbol): Set
4704 SYMBOL_SECTION.
4705 * symtab.c (initialize_objfile_symbol): Remove.
4706 (allocate_symbol): Remove.
4707 (allocate_template_symbol): Remove.
4708 * dwarf2/read.c (fixup_go_packaging): Use "new".
4709 (new_symbol): Use "new".
4710 (read_variable): Don't call initialize_objfile_symbol. Use
4711 "new".
4712 (read_func_scope): Use "new".
4713 * xcoffread.c (process_xcoff_symbol): Don't call
4714 initialize_objfile_symbol.
4715 (SYMBOL_DUP): Remove.
4716 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4717 "new".
4718 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4719 (allocate_template_symbol): Don't declare.
4720 (struct symbol): Add copy constructor. Change defaults.
4721 * jit.c (finalize_symtab): Use "new".
4722 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4723 Use "new".
4724 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4725 (common_block_end): Use "new".
4726 * mdebugread.c (parse_symbol): Use "new".
4727 (new_symbol): Likewise.
4728
4729 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4730
4731 * NEWS: Mention changes to help and apropos.
4732
4733 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4734
4735 * command.h (enum command_class): Improve comments, document
4736 that class_alias is for user-defined aliases, give the class
4737 name for each class, remove unused class_xdb.
4738 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4739 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4740 by a precise class.
4741 * infcmd.c (_initialize_infcmd): Likewise.
4742 * reverse.c (_initialize_reverse): Likewise.
4743 * stack.c (_initialize_stack): Likewise.
4744 * symfile.c (_initialize_symfile): Likewise.
4745 * tracepoint.c (_initialize_tracepoint): Likewise.
4746
4747 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4748
4749 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4750 when their aliased command is traversed.
4751 (help_cmd): Add fput_command_names_styled call to
4752 output command name and aliases when command has an alias.
4753
4754 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4755
4756 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4757 * cli/cli-decode.c (help_cmd_list): Declare as static,
4758 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4759 a command together with the command.
4760 (fput_command_name_styled, fput_command_names_styled): New functions.
4761 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4762 fput_command_name_styled.
4763 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4764 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4765
4766 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4767
4768 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4769 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4770 * command.h (cmd_show_list): Likewise.
4771 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4772 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4773
4774 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4775
4776 * unittests/command-def-selftests.c (traverse_command_structure):
4777 Verify all commands of a list have the same prefix command and
4778 that only the top cmdlist commands have a null prefix.
4779
4780 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4781
4782 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4783 as prefix, not one of its aliases.
4784 (set_cmd_prefix): Remove.
4785 (do_add_cmd): Centralize the setting of the prefix of a command, when
4786 command is defined after its full chain of prefix commands.
4787 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4788 (add_setshow_cmd_full): Likewise.
4789 (update_prefix_field_of_prefixed_commands): New function.
4790 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4791 update_prefix_field_of_prefixed_commands.
4792 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4793 addresses of remote_set_cmdlist and remote_show_cmdlist given
4794 as argument, not the address of an argument.
4795 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4796 * gdb/remote.c (_initialize_remote): Likewise.
4797
4798 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4799
4800 * cli/cli-cmds.c (alias_command): Check for an existing alias
4801 using lookup_cmd_composition, as valid_command_p is too strict
4802 and forbids aliases that are the prefix of an existing alias
4803 or command.
4804 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4805 command is properly recognised as a valid command.
4806
4807 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4808
4809 * unittests/help-doc-selftests.c: Rename to
4810 unittests/command-def-selftests.c
4811 * unittests/command-def-selftests.c (help_doc_tests): Update some
4812 comments.
4813 (command_structure_tests, traverse_command_structure): New namespace
4814 and function.
4815 (command_structure_invariants_tests): New function.
4816 (_initialize_command_def_selftests) Renamed from
4817 _initialize_help_doc_selftests, register command_structure_invariants
4818 selftest.
4819
4820 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4821
4822 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4823 an alias of 'show'.
4824
4825 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4826
4827 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4828 ada_is_fixed_point_type. Update all callers.
4829 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4830 all callers.
4831 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4832 Update all callers.
4833 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4834 print_fixed_point_type. Update all callers.
4835 * ada-valprint.c (ada_value_print_num): Replace call to
4836 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4837
4838 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4839
4840 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4841 processors.
4842 (cpu_supports_bts): Add CV_AMD case.
4843
4844 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4845 Simon Marchi <simon.marchi@efficios.com>
4846
4847 * infrun.c (stop_all_threads): Collect multiple wait events at
4848 each pass.
4849
4850 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4851
4852 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4853 type::code instead.
4854
4855 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4856
4857 * gdbtypes.h (struct type) <code, set_code>: New methods.
4858 (TYPE_CODE): Use type::code. Change all call sites used to set
4859 the code to use type::set_code instead.
4860
4861 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4862 Tom de Vries <tdevries@suse.de>
4863 Pedro Alves <palves@redhat.com>
4864
4865 PR threads/25478
4866 * infrun.c (stop_all_threads): Do NOT ignore
4867 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4868 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4869 received.
4870 (handle_no_resumed): Remove code handling a live inferior with no
4871 threads.
4872 * remote.c (has_single_non_exited_thread): New.
4873 (remote_target::update_thread_list): Do not delete a thread if is
4874 the last thread of the process.
4875 * thread.c (thread_select): Call delete_exited_threads instead of
4876 prune_threads.
4877
4878 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4879
4880 * infrun.c (stop_all_threads): Enable/disable thread events of all
4881 targets. Move a debug message denoting the end of the function
4882 into the SCOPED_EXIT block.
4883
4884 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4885
4886 * process-stratum-target.h: Include <set>.
4887 (all_non_exited_process_targets, switch_to_target_no_thread): New
4888 function declarations.
4889 * process-stratum-target.c (all_non_exited_process_targets)
4890 (switch_to_target_no_thread): New function implementations.
4891
4892 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4893
4894 * infrun.c (handle_inferior_event): Extract out a piece of code
4895 into...
4896 (mark_non_executing_threads): ...this new function.
4897
4898 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4899
4900 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4901 use.
4902
4903 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4904
4905 * regcache.c (regcache_read_pc_protected): New function
4906 implementation that returns 0 if the PC cannot read via
4907 'regcache_read_pc'.
4908 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4909 instead of 'regcache_read_pc'.
4910 (keep_going_pass_signal): Ditto.
4911
4912 2020-05-13 Tom Tromey <tromey@adacore.com>
4913
4914 * ada-lang.c (align_value): Remove.
4915 (ada_template_to_fixed_record_type_1): Use align_up.
4916
4917 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4918
4919 * async-event.c: Update the copyright year.
4920 * async-event.h: Update the copyright year.
4921
4922 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4923
4924 * objfiles.h (is_addr_in_objfile,
4925 shared_objfile_contains_address_p): Return bool.
4926 * objfile.c (is_addr_in_objfile,
4927 shared_objfile_contains_address_p): Return bool.
4928
4929 2020-05-11 Tom Tromey <tromey@adacore.com>
4930
4931 * cli/cli-cmds.c (info_command): Restore.
4932 (_initialize_cli_cmds): Use add_prefix_command for "info".
4933 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4934
4935 2020-05-11 Tom Tromey <tromey@adacore.com>
4936
4937 * ada-lang.c (ada_value_primitive_field): Now public.
4938 * ada-lang.h (ada_value_primitive_field): Declare.
4939 * ada-valprint.c (print_field_values): Use
4940 ada_value_primitive_field for wrapper fields.
4941
4942 2020-05-11 Tom de Vries <tdevries@suse.de>
4943
4944 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4945 MODULE_DOMAIN.
4946
4947 2020-05-11 Tom de Vries <tdevries@suse.de>
4948
4949 PR symtab/25941
4950 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4951 with length 0, if not gdb-produced.
4952 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4953
4954 2020-05-09 Tom de Vries <tdevries@suse.de>
4955
4956 PR gdb/25955
4957 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4958 calculation.
4959
4960 2020-05-09 Tom Tromey <tom@tromey.com>
4961
4962 * top.c (server_command): Now bool.
4963 * top.h (server_command): Now bool.
4964
4965 2020-05-08 Tom Tromey <tromey@adacore.com>
4966
4967 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4968 already being processed.
4969
4970 2020-05-08 Tom Tromey <tom@tromey.com>
4971
4972 * printcmd.c (struct display) <next>: Remove.
4973 <display>: New constructor.
4974 <exp_string>: Now a std::string.
4975 <enabled_p>: Now a bool.
4976 (display_number): Move definition earlier.
4977 (displays): Rename from display_chain. Now a std::vector.
4978 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4979 (display_command): Update.
4980 (do_one_display, disable_display)
4981 (enable_disable_display_command, do_enable_disable_display):
4982 Update.
4983 (free_display): Remove.
4984 (clear_displays): Rewrite.
4985 (delete_display): Update.
4986 (map_display_numbers): Use function_view. Remove "data"
4987 parameter. Update.
4988 (do_delete_display): Remove.
4989 (undisplay_command): Update.
4990 (do_one_display, do_displays, disable_display)
4991 (info_display_command): Update.
4992 (do_enable_disable_display): Remove.
4993 (enable_disable_display_command)
4994 (clear_dangling_display_expressions): Update.
4995
4996 2020-05-08 Tom Tromey <tom@tromey.com>
4997
4998 * symtab.c (set_symbol_cache_size)
4999 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5000 (maintenance_print_symbol_cache_statistics): Update.
5001 * symmisc.c (print_symbol_bcache_statistics)
5002 (print_objfile_statistics, maintenance_print_objfiles)
5003 (maintenance_info_symtabs, maintenance_check_symtabs)
5004 (maintenance_expand_symtabs, maintenance_info_line_tables):
5005 Update.
5006 * symfile-debug.c (set_debug_symfile): Update.
5007 * source.c (forget_cached_source_info): Update.
5008 * python/python.c (gdbpy_progspaces): Update.
5009 * psymtab.c (maintenance_info_psymtabs): Update.
5010 * probe.c (parse_probes): Update.
5011 * linespec.c (iterate_over_all_matching_symtabs)
5012 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5013 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5014 * exec.c (exec_target::close): Update.
5015 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5016 * breakpoint.c (print_one_breakpoint_location)
5017 (create_longjmp_master_breakpoint)
5018 (create_std_terminate_master_breakpoint): Update.
5019 * progspace.c (program_spaces): Now a std::vector.
5020 (maybe_new_address_space): Update.
5021 (add_program_space): Remove.
5022 (program_space::program_space): Update.
5023 (remove_program_space): Update.
5024 (number_of_program_spaces): Remove.
5025 (print_program_space, update_address_spaces): Update.
5026 * progspace.h (program_spaces): Change type.
5027 (ALL_PSPACES): Remove.
5028 (number_of_program_spaces): Don't declare.
5029 (struct program_space) <next>: Remove.
5030
5031 2020-05-08 Tom Tromey <tom@tromey.com>
5032
5033 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5034 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5035 (enable_break): Update.
5036 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5037 (frv_fdpic_find_canonical_descriptor): Update.
5038 (frv_fetch_objfile_link_map): Update.
5039 * progspace.c (program_space::free_all_objfiles): Update.
5040 (program_space::solibs): New method.
5041 * progspace.h (struct program_space) <solibs>: New method.
5042 * solist.h (master_so_list): Don't declare.
5043 (ALL_SO_LIBS): Remove.
5044 * solib.h (so_list_head): Remove.
5045 (update_solib_list): Update comment.
5046 * solib.c (master_so_list): Remove.
5047 (solib_used, update_solib_list, solib_add)
5048 (info_sharedlibrary_command, clear_solib)
5049 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5050
5051 2020-05-08 Tom Tromey <tom@tromey.com>
5052
5053 * extension.c (extension_languages): Now a std::array.
5054 (ALL_EXTENSION_LANGUAGES): Remove.
5055 (get_ext_lang_defn, get_ext_lang_of_file)
5056 (eval_ext_lang_from_control_command): Update.
5057 (finish_ext_lang_initialization)
5058 (auto_load_ext_lang_scripts_for_objfile)
5059 (ext_lang_type_printers::ext_lang_type_printers)
5060 (apply_ext_lang_type_printers)
5061 (ext_lang_type_printers::~ext_lang_type_printers)
5062 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5063 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5064 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5065 (get_matching_xmethod_workers, ext_lang_colorize)
5066 (ext_lang_before_prompt): Update.
5067 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5068
5069 2020-05-08 Tom Tromey <tom@tromey.com>
5070
5071 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5072 overload.
5073 <swap_string, m_string>: Remove.
5074 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5075 Update.
5076 * stabsread.c (define_symbol, read_type): Update.
5077 * linespec.c (find_linespec_symbols): Update.
5078 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5079 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5080 * dbxread.c (read_dbx_symtab): Update.
5081 * cp-support.h (cp_canonicalize_string_full)
5082 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5083 Return unique_xmalloc_ptr.
5084 * cp-support.c (inspect_type): Update.
5085 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5086 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5087 Likewise.
5088 * c-typeprint.c (print_name_maybe_canonical): Update.
5089 * break-catch-throw.c (check_status_exception_catchpoint):
5090 Update.
5091
5092 2020-05-08 Tom de Vries <tdevries@suse.de>
5093
5094 * infrun.c (follow_fork): Copy current_line and current_symtab to
5095 child thread.
5096
5097 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5098
5099 * async-event.c (struct async_signal_handler, struct
5100 async_event_handler): Reformat, remove typedef.
5101
5102 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5103
5104 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5105 access thistype->main_type->dyn_prop_list directly.
5106
5107 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5108
5109 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5110 (remove_dyn_prop): Remove. Update all users to use
5111 type::remove_dyn_prop.
5112 * gdbtypes.c (remove_dyn_prop): Rename to...
5113 (type::remove_dyn_prop): ... this.
5114
5115 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5116
5117 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5118 (add_dyn_prop): Remove. Update all users to use
5119 type::add_dyn_prop.
5120 * gdbtypes.c (add_dyn_prop): Rename to...
5121 (type::add_dyn_prop): ... this.
5122
5123 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5124
5125 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5126 (get_dyn_prop): Remove. Update all users to use
5127 type::dyn_prop.
5128 * gdbtypes.c (get_dyn_prop): Rename to...
5129 (type::dyn_prop): ... this.
5130
5131 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5132
5133 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5134
5135 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5136
5137 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5138 instruction, skip it if it's there.
5139
5140 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5141
5142 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5143
5144 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5145
5146 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5147 * gdbtypes.c (recursive_dump_type): Remove use of
5148 TYPE_INCOMPLETE.
5149
5150 2020-05-03 Tom Tromey <tom@tromey.com>
5151
5152 * breakpoint.c (catch_command, tcatch_command): Remove.
5153 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5154 add_show_prefix_cmd.
5155 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5156 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5157 Remove.
5158 (add_internal_problem_command): Use add_basic_prefix_cmd,
5159 add_show_prefix_cmd.
5160 * mips-tdep.c (set_mipsfpu_command): Remove.
5161 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5162 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5163 (_initialize_index_cache): Use add_basic_prefix_cmd.
5164 * memattr.c (dummy_cmd): Remove.
5165 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5166 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5167 (_initialize_tui_win): Use add_basic_prefix_cmd,
5168 add_show_prefix_cmd.
5169 * cli/cli-logging.c (set_logging_command): Remove.
5170 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5171 add_show_prefix_cmd.
5172 (show_logging_command): Remove.
5173 * target.c (target_command): Remove.
5174 (add_target): Use add_basic_prefix_cmd.
5175
5176 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5177
5178 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5179
5180 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5181
5182 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5183 info_command.
5184
5185 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5186
5187 * nbsd-nat.c (nbsd_enable_proc_events)
5188 (nbsd_nat_target::post_startup_inferior): Add.
5189 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5190 (nbsd_nat_target::update_thread_list): Rewrite.
5191 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5192 "PTRACE_LWP_CREATE".
5193 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5194
5195 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5196
5197 * stack.c (_initialize_stack): Remove duplicated creation
5198 of "frame" command and "f" alias.
5199
5200 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5201
5202 PR gdb/18706
5203 * gdbtypes.c (check_typedef): Calculate size of array of
5204 stubbed type.
5205
5206 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5207
5208 PR gdb/15559
5209 * i386-tdep.c (i386_push_dummy_call): Call
5210 i386_thiscall_push_dummy_call.
5211 (i386_thiscall_push_dummy_call): New function.
5212 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5213 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5214 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5215
5216 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5217
5218 * gdbarch.sh (do_read): Add shellcheck disable directive for
5219 warning SC2162.
5220
5221 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5222
5223 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5224 "referenced but not assigned" warning.
5225
5226 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5227
5228 * gdbarch.sh: Remove code that sets fallbackdefault.
5229
5230 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5231
5232 * gdbarch.sh: Use shell operators && and || instead of
5233 -a and -o.
5234
5235 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5236
5237 * gdbarch.sh: Use $(...) instead of `...`.
5238
5239 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5240
5241 * gdbarch.sh: Use double quotes around variables.
5242
5243 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5244
5245 * gdbarch.sh: Use %s with printf, instead of variables in the
5246 format string.
5247
5248 2020-04-29 Tom Tromey <tromey@adacore.com>
5249
5250 PR ada/25875:
5251 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5252 type fields here.
5253 (read_enumeration_type): Call
5254 update_enumeration_type_from_children later. Update comments.
5255 (process_enumeration_scope): Don't create type fields.
5256
5257 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5258
5259 * nbsd-tdep.c: Include "xml-syscall.h".
5260 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5261
5262 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5263
5264 * nbsd-nat.c: Include "sys/wait.h".
5265 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5266 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5267 (nbsd_nat_target::remove_exec_catchpoint)
5268 (nbsd_nat_target::set_syscall_catchpoint): Add.
5269 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5270 (nbsd_nat_target::insert_exec_catchpoint)
5271 (nbsd_nat_target::remove_exec_catchpoint)
5272 (nbsd_nat_target::set_syscall_catchpoint): Add.
5273 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5274 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5275 `nbsd_get_syscall_number'.
5276
5277 2020-04-29 Tom Tromey <tom@tromey.com>
5278
5279 * stack.c (print_block_frame_labels): Remove.
5280
5281 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5282
5283 PR gdb/17320
5284 * ada-valprint.c (val_print_packed_array_elements): Move array
5285 end bracket to new line.
5286 (ada_val_print_string): Remove extra spaces before first array
5287 element.
5288 * c-valprint.c (c_value_print_array): Likewise.
5289 * m2-valprint.c (m2_print_array_contents): Likewise.
5290 (m2_value_print_inner): Likewise.
5291 * p-valprint.c (pascal_value_print_inner): Likewise.
5292 * valprint.c (generic_val_print_array): Likewise.
5293 (value_print_array_elements): Move first array element and array
5294 end bracket to new line.
5295
5296 2020-04-29 Tom de Vries <tdevries@suse.de>
5297
5298 PR symtab/25889
5299 * linespec.c (find_method): Fix ix calculation.
5300
5301 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5302
5303 * syscalls/update-netbsd.sh: New file.
5304 * syscalls/netbsd.xml: Regenerate.
5305 * data-directory/Makefile.in: Register `netbsd.xml' in
5306 `SYSCALLS_FILES'.
5307
5308 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5309
5310 * syscalls/update-freebsd.sh: Add double quotes.
5311
5312 2020-04-28 Tom Tromey <tom@tromey.com>
5313
5314 * NEWS: Update.
5315 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5316 (cmdpy_init): Allow class_tui.
5317
5318 2020-04-28 Mark Williams <mark@myosotissp.com>
5319
5320 PR gdb/24480
5321 * dwarf2read.c: Add missing assingments to list_in_scope when
5322 start_symtab was already called.
5323
5324 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5325
5326 PR gdb/25881
5327 * dwarf2/read.c (offset_map_type): Use
5328 gdb:hash_enum<sect_offset> as hash function.
5329
5330 2020-04-28 Tom de Vries <tdevries@suse.de>
5331
5332 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5333 with DW_AT_signature.
5334
5335 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5336
5337 * configure.ac: Remove check for fs_base/gs_base in
5338 user_regs_struct.
5339 * configure: Re-generate.
5340 * config.in: Re-generate.
5341 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5342 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5343 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5344
5345 2020-04-27 Luis Machado <luis.machado@linaro.org>
5346
5347 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5348 problematic inline frame unwinding situation.
5349 * frame.c (frame_id_computed_p): New function.
5350 * frame.h (frame_id_computed_p): New prototype.
5351
5352 2020-04-26 Tom Tromey <tom@tromey.com>
5353
5354 * command.h (enum command_class) <class_pseudo>: Remove.
5355
5356 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5357
5358 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5359 and whitespace.
5360
5361 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5362
5363 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5364 `PT_GET_PROCESS_STATE' block.
5365
5366 2020-04-24 Tom Tromey <tom@tromey.com>
5367
5368 * symtab.h (symbol_get_demangled_name): Don't declare.
5369 * symtab.c (symbol_get_demangled_name): Remove.
5370 (general_symbol_info::natural_name)
5371 (general_symbol_info::demangled_name): Update.
5372
5373 2020-04-24 Tom Tromey <tom@tromey.com>
5374
5375 PR rust/25025:
5376 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5377
5378 2020-04-24 Tom Tromey <tom@tromey.com>
5379
5380 PR symtab/12707:
5381 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5382 exists.
5383 (new_symbol): Likewise.
5384 * compile/compile-object-load.c (get_out_value_type): Use
5385 symbol_matches_search_name.
5386
5387 2020-04-24 Tom Tromey <tom@tromey.com>
5388
5389 * dwarf2/read.c (add_partial_symbol): Do not call
5390 compute_and_set_names.
5391
5392 2020-04-24 Tom Tromey <tom@tromey.com>
5393
5394 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5395 overload.
5396
5397 2020-04-24 Tom Tromey <tom@tromey.com>
5398
5399 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5400 (add_psymbol_to_list): New overload. Make old overload call new
5401 one.
5402 * psympriv.h (add_psymbol_to_list): New overload.
5403
5404 2020-04-24 Tom Tromey <tom@tromey.com>
5405
5406 * dwarf2/read.c (partial_die_info::read) <case
5407 DW_AT_linkage_name>: Use value_as_string.
5408 (dwarf2_string_attr): Use value_as_string.
5409 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5410 method.
5411 * dwarf2/attribute.c (attribute::value_as_string): New method.
5412
5413 2020-04-24 Tom Tromey <tom@tromey.com>
5414
5415 * symtab.c (general_symbol_info::natural_name)
5416 (general_symbol_info::demangled_name): Check for language_rust.
5417
5418 2020-04-24 Tom Tromey <tom@tromey.com>
5419
5420 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5421 (dwarf2_physname): ... from here.
5422 (partial_die_info::read): Add Rust "{" hack.
5423
5424 2020-04-24 Tom Tromey <tom@tromey.com>
5425
5426 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5427 method.
5428 (symbol_set_demangled_name): Don't declare.
5429 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5430 symbol_set_demangled_name.
5431 (general_symbol_info::set_language)
5432 (general_symbol_info::compute_and_set_names): Update.
5433 * minsyms.c (minimal_symbol_reader::install): Update.
5434 * dwarf2/read.c (new_symbol): Update.
5435
5436 2020-04-24 Tom Tromey <tromey@adacore.com>
5437
5438 PR python/23662:
5439 * python/py-type.c (convert_field): Handle
5440 FIELD_LOC_KIND_DWARF_BLOCK.
5441 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5442 (typy_get_dynamic): Nw function.
5443 (type_object_getset): Add "dynamic".
5444 * NEWS: Add entry.
5445
5446 2020-04-24 Tom Tromey <tromey@adacore.com>
5447
5448 * ada-typeprint.c (print_choices, print_variant_part)
5449 (print_record_field_types_dynamic): New functions.
5450 (print_record_field_types): Use print_record_field_types_dynamic.
5451
5452 2020-04-24 Tom Tromey <tromey@adacore.com>
5453
5454 * dwarf2/read.c (handle_data_member_location): New overload.
5455 (dwarf2_add_field): Use it.
5456 (decode_locdesc): Add "computed" parameter. Update comment.
5457 * gdbtypes.c (is_dynamic_type_internal): Also look for
5458 FIELD_LOC_KIND_DWARF_BLOCK.
5459 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5460 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5461 virtual base classes.
5462 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5463 FIELD_LOC_KIND_DWARF_BLOCK.
5464
5465 2020-04-24 Tom Tromey <tromey@adacore.com>
5466
5467 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5468 * gdbtypes.c (is_dynamic_type_internal): Check
5469 TYPE_HAS_DYNAMIC_LENGTH.
5470 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5471 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5472 New macros.
5473 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5474 constant.
5475
5476 2020-04-24 Tom Tromey <tromey@adacore.com>
5477
5478 * dwarf2/read.c (struct variant_field): Rewrite.
5479 (struct variant_part_builder): New.
5480 (struct nextfield): Remove "variant" field. Add "offset".
5481 (struct field_info): Add "current_variant_part" and
5482 "variant_parts".
5483 (alloc_discriminant_info): Remove.
5484 (alloc_rust_variant): New function.
5485 (quirk_rust_enum): Update.
5486 (dwarf2_add_field): Set "offset" member. Don't handle
5487 DW_TAG_variant_part.
5488 (offset_map_type): New typedef.
5489 (convert_variant_range, create_one_variant)
5490 (create_one_variant_part, create_variant_parts)
5491 (add_variant_property): New functions.
5492 (dwarf2_attach_fields_to_type): Call add_variant_property.
5493 (read_structure_type): Don't handle DW_TAG_variant_part.
5494 (handle_variant_part, handle_variant): New functions.
5495 (handle_struct_member_die): Use them.
5496 (process_structure_scope): Don't handle variant parts.
5497 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5498 (struct discriminant_info): Remove.
5499 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5500 (struct main_type) <flag_discriminated_union>: Remove.
5501 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5502 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5503 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5504 Update.
5505 * valops.c (value_union_variant): Remove.
5506 * value.h (value_union_variant): Don't declare.
5507
5508 2020-04-24 Tom Tromey <tromey@adacore.com>
5509
5510 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5511 (ada_value_primitive_packed_val): Update.
5512 * ada-valprint.c (ada_value_print_1): Update.
5513 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5514 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5515 just an address. Use evaluate_for_locexpr_baton.
5516 (dwarf2_evaluate_property): Update.
5517 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5518 array_view.
5519 * findvar.c (default_read_var_value): Update.
5520 * gdbtypes.c (compute_variant_fields_inner)
5521 (resolve_dynamic_type_internal): Update.
5522 (resolve_dynamic_type): Change type of valaddr parameter.
5523 * gdbtypes.h (resolve_dynamic_type): Update.
5524 * valarith.c (value_subscripted_rvalue): Update.
5525 * value.c (value_from_contents_and_address): Update.
5526
5527 2020-04-24 Tom Tromey <tromey@adacore.com>
5528
5529 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5530 "push_initial_value" parameter.
5531 (dwarf2_evaluate_property): Likewise.
5532 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5533
5534 2020-04-24 Tom Tromey <tromey@adacore.com>
5535
5536 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5537 (variant::matches, compute_variant_fields_recurse)
5538 (compute_variant_fields_inner, compute_variant_fields): New
5539 functions.
5540 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5541 Use resolved_type after type is made.
5542 (operator==): Add new cases.
5543 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5544 (struct discriminant_range, struct variant, struct variant_part):
5545 New.
5546 (union dynamic_prop_data) <variant_parts, original_type>: New
5547 members.
5548 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5549 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5550 constants.
5551 * value.c (unpack_bits_as_long): Now public.
5552 * value.h (unpack_bits_as_long): Declare.
5553
5554 2020-04-24 Tom Tromey <tromey@adacore.com>
5555
5556 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5557 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5558
5559 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5560
5561 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5562
5563 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5564
5565 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5566 (remove_fork_catchpoint, post_startup_inferior)
5567 (post_attach): Move...
5568 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5569 (remove_fork_catchpoint, post_startup_inferior)
5570 (post_attach): ...here.
5571 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5572 (remove_fork_catchpoint, post_startup_inferior)
5573 (post_attach): Move...
5574 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5575 (remove_fork_catchpoint, post_startup_inferior)
5576 (post_attach): ...here.
5577
5578 2020-04-24 Tom Tromey <tromey@adacore.com>
5579
5580 * nat/windows-nat.h (struct windows_thread_info)
5581 <pc_adjusted>: New member.
5582 * windows-nat.c (windows_fetch_one_register): Check
5583 pc_adjusted.
5584 (windows_nat_target::get_windows_debug_event)
5585 (windows_nat_target::wait): Set pc_adjusted.
5586
5587 2020-04-24 Tom de Vries <tdevries@suse.de>
5588
5589 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5590 Run gdb-add-index inside temp dir.
5591
5592 2020-04-23 Tom Tromey <tromey@adacore.com>
5593
5594 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5595 in loop.
5596
5597 2020-04-23 Luis Machado <luis.machado@linaro.org>
5598
5599 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5600 get_frame_register instead of gdbarch_unwind_pc.
5601
5602 2020-04-23 Tom de Vries <tdevries@suse.de>
5603
5604 * symtab.c (lookup_global_symbol): Prefer def over decl.
5605
5606 2020-04-23 Tom de Vries <tdevries@suse.de>
5607
5608 PR symtab/25807
5609 * block.c (best_symbol, better_symbol): Promote to external.
5610 * block.h (best_symbol, better_symbol): Declare.
5611 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5612 decl.
5613
5614 2020-04-23 Tom Tromey <tromey@adacore.com>
5615
5616 PR ada/25837:
5617 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5618 "const char *", not a "const std::string &".
5619 <name_and_matcher::operator==>: Update.
5620 * unittests/lookup_name_info-selftests.c: Change type of
5621 "result".
5622
5623 2020-04-23 Tom Tromey <tom@tromey.com>
5624
5625 * inferior.h (iterate_over_inferiors): Don't declare.
5626 * inferior.c (iterate_over_inferiors): Remove.
5627 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5628 Remove.
5629 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5630 use iterate_over_inferiors.
5631 (darwin_resume_inferior_it)
5632 (struct resume_inferior_threads_param)
5633 (darwin_resume_inferior_threads_it): Remove.
5634 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5635
5636 2020-04-23 Tom de Vries <tdevries@suse.de>
5637
5638 * blockframe.c (find_pc_partial_function): Use
5639 find_pc_sect_compunit_symtab rather than
5640 objfile->sf->qf->find_pc_sect_compunit_symtab.
5641
5642 2020-04-22 Tom de Vries <tdevries@suse.de>
5643
5644 PR symtab/25764
5645 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5646 in psymtabs.
5647
5648 2020-04-22 Tom de Vries <tdevries@suse.de>
5649
5650 PR symtab/25801
5651 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5652 symtabs.
5653
5654 2020-04-22 Tom de Vries <tdevries@suse.de>
5655
5656 PR symtab/25700
5657 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5658 CU if already created.
5659
5660 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5661
5662 * infrun.c (displaced_step_fixup): Switch to the event_thread
5663 before calling displaced_step_restore, not after.
5664
5665 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5666
5667 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5668 its inferior is not recorded by us.
5669 (record_btrace_target_open): Replace call to
5670 all_non_exited_threads () with call to current_inferior
5671 ()->non_exited_threads ().
5672 (record_btrace_target::stop_recording): Likewise.
5673 (record_btrace_target::close): Likewise.
5674 (record_btrace_target::wait): Likewise.
5675 (record_btrace_target::record_stop_replaying): Likewise.
5676
5677 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5678
5679 * btrace.c (btrace_enable): Throw an error on double enables and
5680 when enabling recording fails.
5681 (btrace_disable): Throw an error if the thread is not recorded.
5682
5683 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5684
5685 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5686 request if we do not have a thread_info.
5687
5688 2020-04-21 Tom de Vries <tdevries@suse.de>
5689
5690 PR gdb/25471
5691 * thread.c
5692 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5693 exception in get_frame_id.
5694
5695 2020-04-20 Tom Tromey <tromey@adacore.com>
5696
5697 * python/python.c (struct gdbpy_event): Mark move constructor as
5698 noexcept.
5699 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5700 constructor as noexcept.
5701 * completer.h (struct completion_result): Mark move constructor as
5702 noexcept.
5703 * completer.c (completion_result::completion_result): Use
5704 initialization style. Don't call reset_match_list.
5705
5706 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5707
5708 * MAINTAINERS (Write After Approval): Add myself.
5709
5710 2020-04-18 Tom Tromey <tom@tromey.com>
5711
5712 * windows-tdep.c (init_w32_command_list)
5713 (w32_prefix_command_valid): Restore.
5714 (_initialize_windows_tdep): Call init_w32_command_list.
5715
5716 2020-04-18 Tom Tromey <tom@tromey.com>
5717
5718 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5719 * value.c (value_fn_field): Update.
5720 * valops.c (find_function_in_inferior)
5721 (value_allocate_space_in_inferior): Update.
5722 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5723 Update.
5724 * tui/tui-source.c (tui_source_window::set_contents): Update.
5725 * symtab.c (lookup_global_or_static_symbol)
5726 (find_function_start_sal_1, skip_prologue_sal)
5727 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5728 * symmisc.c (dump_msymbols, dump_symtab_1)
5729 (maintenance_print_one_line_table): Update.
5730 * symfile.c (init_entry_point_info, section_is_mapped)
5731 (list_overlays_command, simple_read_overlay_table)
5732 (simple_overlay_update_1): Update.
5733 * stap-probe.c (handle_stap_probe): Update.
5734 * stabsread.c (dbx_init_float_type, define_symbol)
5735 (read_one_struct_field, read_enum_type, read_range_type): Update.
5736 * source.c (info_line_command): Update.
5737 * python/python.c (gdbpy_source_objfile_script)
5738 (gdbpy_execute_objfile_script): Update.
5739 * python/py-type.c (save_objfile_types): Update.
5740 * python/py-objfile.c (py_free_objfile): Update.
5741 * python/py-inferior.c (python_new_objfile): Update.
5742 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5743 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5744 (maintenance_check_psymtabs): Update.
5745 * printcmd.c (info_address_command): Update.
5746 * objfiles.h (struct objfile) <arch>: New method, from
5747 get_objfile_arch.
5748 (get_objfile_arch): Don't declare.
5749 * objfiles.c (get_objfile_arch): Remove.
5750 (filter_overlapping_sections): Update.
5751 * minsyms.c (msymbol_is_function): Update.
5752 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5753 (output_nondebug_symbol): Update.
5754 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5755 (mdebug_expand_psymtab): Update.
5756 * machoread.c (macho_add_oso_symfile): Update.
5757 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5758 Update.
5759 * linux-fork.c (checkpoint_command): Update.
5760 * linespec.c (convert_linespec_to_sals): Update.
5761 * jit.c (finalize_symtab): Update.
5762 * infrun.c (insert_exception_resume_from_probe): Update.
5763 * ia64-tdep.c (ia64_find_unwind_table): Update.
5764 * hppa-tdep.c (internalize_unwinds): Update.
5765 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5766 Update.
5767 * gcore.c (call_target_sbrk): Update.
5768 * elfread.c (record_minimal_symbol, elf_symtab_read)
5769 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5770 (elf_gnu_ifunc_resolve_by_got): Update.
5771 * dwarf2/read.c (create_addrmap_from_index)
5772 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5773 (read_debug_names_from_section)
5774 (process_psymtab_comp_unit_reader, add_partial_symbol)
5775 (add_partial_subprogram, process_full_comp_unit)
5776 (read_file_scope, read_func_scope, read_lexical_block_scope)
5777 (read_call_site_scope, dwarf2_ranges_read)
5778 (dwarf2_record_block_ranges, dwarf2_add_field)
5779 (mark_common_block_symbol_computed, read_tag_pointer_type)
5780 (read_tag_string_type, dwarf2_init_float_type)
5781 (dwarf2_init_complex_target_type, read_base_type)
5782 (partial_die_info::read, partial_die_info::read)
5783 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5784 (dwarf2_fetch_die_loc_sect_off): Update.
5785 * dwarf2/loc.c (dwarf2_find_location_expression)
5786 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5787 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5788 (dwarf2_loc_desc_get_symbol_read_needs)
5789 (locexpr_describe_location_piece, locexpr_describe_location_1)
5790 (loclist_describe_location): Update.
5791 * dwarf2/index-write.c (write_debug_names): Update.
5792 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5793 * dtrace-probe.c (dtrace_process_dof): Update.
5794 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5795 (process_one_symbol): Update.
5796 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5797 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5798 (coff_read_enum_type): Update.
5799 * cli/cli-cmds.c (edit_command, list_command): Update.
5800 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5801 * breakpoint.c (create_overlay_event_breakpoint)
5802 (create_longjmp_master_breakpoint)
5803 (create_std_terminate_master_breakpoint)
5804 (create_exception_master_breakpoint, get_sal_arch): Update.
5805 * block.c (block_gdbarch): Update.
5806 * annotate.c (annotate_source_line): Update.
5807
5808 2020-04-17 Tom Tromey <tromey@adacore.com>
5809
5810 * auto-load.c (show_auto_load_cmd): Remove.
5811 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5812 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5813 (maintenance_print_arc_command): Remove.
5814 * tui/tui-win.c (tui_command): Remove.
5815 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5816 * tui/tui-layout.c (tui_layout_command): Remove.
5817 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5818 * python/python.c (user_set_python, user_show_python): Remove.
5819 (_initialize_python): Use add_basic_prefix_cmd,
5820 add_show_prefix_cmd.
5821 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5822 (install_gdb_commands): Use add_basic_prefix_cmd,
5823 add_show_prefix_cmd.
5824 (info_guile_command): Remove.
5825 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5826 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5827 add_show_prefix_cmd.
5828 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5829 Remove do_set and do_show parameters.
5830 * cli/cli-style.c (set_style, show_style): Remove.
5831 (_initialize_cli_style): Use add_basic_prefix_cmd,
5832 add_show_prefix_cmd.
5833 (cli_style_option::add_setshow_commands): Remove do_set and
5834 do_show parameters.
5835 (cli_style_option::add_setshow_commands): Use
5836 add_basic_prefix_cmd, add_show_prefix_cmd.
5837 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5838 (set_style_name): Remove.
5839 * cli/cli-dump.c (dump_command, append_command): Remove.
5840 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5841 (tekhex_dump_command, binary_dump_command)
5842 (binary_append_command): Remove.
5843 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5844 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5845 (init_w32_command_list): Remove; move into ...
5846 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5847 * valprint.c (set_print, show_print, set_print_raw)
5848 (show_print_raw): Remove.
5849 (_initialize_valprint): Use add_basic_prefix_cmd,
5850 add_show_prefix_cmd.
5851 * typeprint.c (set_print_type, show_print_type): Remove.
5852 (_initialize_typeprint): Use add_basic_prefix_cmd,
5853 add_show_prefix_cmd.
5854 * record.c (set_record_command, show_record_command): Remove.
5855 (_initialize_record): Use add_basic_prefix_cmd,
5856 add_show_prefix_cmd.
5857 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5858 add_show_prefix_cmd.
5859 (info_command, show_command, set_debug, show_debug): Remove.
5860 * top.h (set_history, show_history): Don't declare.
5861 * top.c (set_history, show_history): Remove.
5862 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5863 (unset_tdesc_cmd): Remove.
5864 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5865 add_show_prefix_cmd.
5866 * symtab.c (info_module_command): Remove.
5867 (_initialize_symtab): Use add_basic_prefix_cmd.
5868 * symfile.c (overlay_command): Remove.
5869 (_initialize_symfile): Use add_basic_prefix_cmd.
5870 * sparc64-tdep.c (info_adi_command): Remove.
5871 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5872 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5873 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5874 add_show_prefix_cmd.
5875 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5876 (_initialize_serial): Use add_basic_prefix_cmd,
5877 add_show_prefix_cmd.
5878 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5879 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5880 add_show_prefix_cmd.
5881 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5882 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5883 add_show_prefix_cmd.
5884 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5885 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5886 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5887 add_show_prefix_cmd.
5888 * remote.c (remote_command, set_remote_cmd): Remove.
5889 (_initialize_remote): Use add_basic_prefix_cmd.
5890 * record-full.c (set_record_full_command)
5891 (show_record_full_command): Remove.
5892 (_initialize_record_full): Use add_basic_prefix_cmd,
5893 add_show_prefix_cmd.
5894 * record-btrace.c (cmd_set_record_btrace)
5895 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5896 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5897 (cmd_show_record_btrace_pt): Remove.
5898 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5899 add_show_prefix_cmd.
5900 * ravenscar-thread.c (set_ravenscar_command)
5901 (show_ravenscar_command): Remove.
5902 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5903 add_show_prefix_cmd.
5904 * mips-tdep.c (show_mips_command, set_mips_command)
5905 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5906 add_show_prefix_cmd.
5907 * maint.c (maintenance_command, maintenance_info_command)
5908 (maintenance_check_command, maintenance_print_command)
5909 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5910 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5911 add_show_prefix_cmd.
5912 (show_per_command_cmd): Remove.
5913 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5914 Remove.
5915 (maintenance_show_test_settings_cmd): Remove.
5916 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5917 add_show_prefix_cmd.
5918 * maint-test-options.c (maintenance_test_options_command):
5919 Remove.
5920 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5921 * macrocmd.c (macro_command): Remove
5922 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5923 * language.c (set_check, show_check): Remove.
5924 (_initialize_language): Use add_basic_prefix_cmd,
5925 add_show_prefix_cmd.
5926 * infcmd.c (unset_command): Remove.
5927 (_initialize_infcmd): Use add_basic_prefix_cmd.
5928 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5929 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5930 add_show_prefix_cmd.
5931 * go32-nat.c (go32_info_dos_command): Remove.
5932 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5933 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5934 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5935 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5936 (_initialize_frame): Use add_basic_prefix_cmd,
5937 add_show_prefix_cmd.
5938 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5939 (_initialize_dcache): Use add_basic_prefix_cmd,
5940 add_show_prefix_cmd.
5941 * cp-support.c (maint_cplus_command): Remove.
5942 (_initialize_cp_support): Use add_basic_prefix_cmd.
5943 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5944 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5945 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5946 add_basic_prefix_cmd, add_show_prefix_cmd.
5947 * breakpoint.c (save_command): Remove.
5948 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5949 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5950 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5951 add_show_prefix_cmd.
5952 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5953 (set_ada_command, show_ada_command): Remove.
5954 (_initialize_ada_language): Use add_basic_prefix_cmd,
5955 add_show_prefix_cmd.
5956 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5957
5958 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5959
5960 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5961 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5962
5963 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5964
5965 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5966 warning messages.
5967
5968 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5969
5970 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5971 import table is not at beginning of .idata section.
5972
5973 2020-04-16 Pedro Alves <palves@redhat.com>
5974
5975 * inferior.c (delete_inferior): Use delete operator directly
5976 instead of delete_program_space.
5977 * progspace.c (add_program_space): New, factored out from
5978 program_space::program_space.
5979 (remove_program_space): New, factored out from
5980 delete_program_space.
5981 (program_space::program_space): Remove intro comment. Rewrite.
5982 (program_space::~program_space): Remove intro comment. Call
5983 remove_program_space.
5984 (delete_program_space): Delete.
5985 * progspace.h (program_space::program_space): Make explicit. Move
5986 intro comment here, adjusted.
5987 (program_space::~program_space): Move intro comment here,
5988 adjusted.
5989 (delete_program_space): Remove.
5990
5991 2020-04-16 Tom Tromey <tromey@adacore.com>
5992
5993 * windows-nat.c (windows_nat::handle_access_violation): New
5994 function.
5995 * nat/windows-nat.h (handle_access_violation): Declare.
5996 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5997 windows-nat.c. Call handle_access_violation.
5998
5999 2020-04-16 Tom de Vries <tdevries@suse.de>
6000
6001 PR symtab/25791
6002 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6003 CUs without psymtab.
6004
6005 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6006
6007 * python/python.c (do_start_initialization): Don't call
6008 PyEval_InitThreads for Python 3.9 and beyond.
6009
6010 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6011
6012 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6013 thread functions.
6014 (obsd_nat_target::wait): Likewise.
6015
6016 2020-04-15 Tom Tromey <tromey@adacore.com>
6017
6018 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6019 (DEBUG_EXCEPT): Use debug_printf.
6020
6021 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6022
6023 * completer.c (class completion_tracker::completion_hash_entry)
6024 <hash_name>: New member function.
6025 (completion_tracker::discard_completions): New callback to hash a
6026 completion_hash_entry, pass this to htab_create_alloc.
6027
6028 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6029
6030 * windows-nat.c (windows_make_so): Warn rather than stopping with
6031 an error if realpath() fails.
6032
6033 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6034
6035 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6036 (nbsd_nat_target::info_proc): Add do_status.
6037
6038 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6039 Tom de Vries <tdevries@suse.de>
6040
6041 PR symtab/25718
6042 * psympriv.h (struct partial_symtab::read_symtab)
6043 (struct partial_symtab::expand_psymtab)
6044 (struct partial_symtab::read_dependencies): Update comments.
6045 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6046 read_symtab for includer.
6047 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6048 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6049 (struct dwarf2_include_psymtab::m_readin): Remove.
6050 (struct dwarf2_include_psymtab::includer): New member function.
6051 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6052
6053 2020-04-14 Tom de Vries <tdevries@suse.de>
6054
6055 PR symtab/25720
6056 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6057 with NULL symbol_matcher and lookup_name.
6058 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6059 and lookup_name.
6060 * dwarf2/read.c (dw2_expand_symtabs_matching)
6061 (dw2_debug_names_expand_symtabs_matching): Same.
6062 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6063 Make lookup_name a pointer. Update comment.
6064 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6065 lookup_name being a pointer.
6066 * symfile.c (expand_symtabs_matching): Same.
6067 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6068 * linespec.c (iterate_over_all_matching_symtabs): Same.
6069
6070 2020-04-13 Tom Tromey <tom@tromey.com>
6071
6072 * run-on-main-thread.c: Update include.
6073 * unittests/main-thread-selftests.c: Update include.
6074 * tui/tui-win.c: Update include.
6075 * tui/tui-io.c: Update include.
6076 * tui/tui-interp.c: Update include.
6077 * tui/tui-hooks.c: Update include.
6078 * top.h: Update include.
6079 * top.c: Update include.
6080 * ser-base.c: Update include.
6081 * remote.c: Update include.
6082 * remote-notif.c: Update include.
6083 * remote-fileio.c: Update include.
6084 * record-full.c: Update include.
6085 * record-btrace.c: Update include.
6086 * python/python.c: Update include.
6087 * posix-hdep.c: Update include.
6088 * mingw-hdep.c: Update include.
6089 * mi/mi-main.c: Update include.
6090 * mi/mi-interp.c: Update include.
6091 * main.c: Update include.
6092 * linux-nat.c: Update include.
6093 * interps.c: Update include.
6094 * infrun.c: Update include.
6095 * inf-loop.c: Update include.
6096 * event-top.c: Update include.
6097 * event-loop.c: Move to ../gdbsupport/.
6098 * event-loop.h: Move to ../gdbsupport/.
6099 * async-event.h: Update include.
6100 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6101
6102 2020-04-13 Tom Tromey <tom@tromey.com>
6103
6104 * tui/tui-win.c: Include async-event.h.
6105 * remote.c: Include async-event.h.
6106 * remote-notif.c: Include async-event.h.
6107 * record-full.c: Include async-event.h.
6108 * record-btrace.c: Include async-event.h.
6109 * infrun.c: Include async-event.h.
6110 * event-top.c: Include async-event.h.
6111 * event-loop.h: Move some declarations to async-event.h.
6112 * event-loop.c: Don't include ser-event.h or top.h. Move some
6113 code to async-event.c.
6114 * async-event.h: New file.
6115 * async-event.c: New file.
6116 * Makefile.in (COMMON_SFILES): Add async-event.c.
6117 (HFILES_NO_SRCDIR): Add async-event.h.
6118
6119 2020-04-13 Tom Tromey <tom@tromey.com>
6120
6121 * utils.c (flush_streams): New function.
6122 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6123
6124 2020-04-13 Tom Tromey <tom@tromey.com>
6125
6126 * event-loop.c (handle_file_event): Use warning, not
6127 printf_unfiltered.
6128
6129 2020-04-13 Tom Tromey <tom@tromey.com>
6130
6131 * event-loop.c: Include <chrono>.
6132
6133 2020-04-13 Tom Tromey <tom@tromey.com>
6134
6135 * gdb_select.h: Move to ../gdbsupport/.
6136 * event-loop.c: Update include path.
6137 * top.c: Update include path.
6138 * ser-base.c: Update include path.
6139 * ui-file.c: Update include path.
6140 * ser-tcp.c: Update include path.
6141 * guile/scm-ports.c: Update include path.
6142 * posix-hdep.c: Update include path.
6143 * ser-unix.c: Update include path.
6144 * gdb_usleep.c: Update include path.
6145 * mingw-hdep.c: Update include path.
6146 * inflow.c: Update include path.
6147 * infrun.c: Update include path.
6148 * event-top.c: Update include path.
6149
6150 2020-04-13 Tom Tromey <tom@tromey.com>
6151
6152 * configure: Rebuild.
6153 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6154
6155 2020-04-13 Tom Tromey <tom@tromey.com>
6156
6157 * event-loop.h (start_event_loop): Don't declare.
6158 * event-loop.c (start_event_loop): Move...
6159 * main.c (start_event_loop): ...here. Now static.
6160
6161 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6162
6163 * MAINTAINERS: Update my email address.
6164
6165 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6166
6167 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6168 IP_ALL.
6169
6170 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6171
6172 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6173 (nbsd_nat_target::info_proc): Add do_cmdline.
6174
6175 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6176
6177 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6178 (nbsd_nat_target::info_proc): Add do_cwd.
6179
6180 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6181
6182 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6183
6184 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6185
6186 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6187 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6188 (nbsd_nat_target::info_proc): New functions.
6189 * nbsd-nat.c (kinfo_get_vmmap): New function.
6190 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6191 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6192 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6193 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6194 functions.
6195 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6196 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6197 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6198 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6199 (KINFO_VME_FLAG_GROWS_DOWN): New.
6200
6201 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6202
6203 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6204 bit shift.
6205
6206 2020-04-10 Tom Tromey <tromey@adacore.com>
6207
6208 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6209
6210 2020-04-10 Tom Tromey <tromey@adacore.com>
6211
6212 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6213 separate debug files.
6214
6215 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6216
6217 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6218 Move to...
6219 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6220 ... here.
6221 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6222 Check for STATUS_WX86_BREAKPOINT.
6223 (windows_nat_target::wait): Same.
6224
6225 2020-04-10 Tom de Vries <tdevries@suse.de>
6226
6227 PR cli/25808
6228 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6229
6230 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6231
6232 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6233 (Write After Approval): Remove Tom de Vries.
6234
6235 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6236
6237 revert partially:
6238 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6239
6240 * buildsym.c (record_line): Fix undefined behavior and preserve
6241 lines at eof.
6242
6243 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6244
6245 * auxv.h (svr4_auxv_parse): New.
6246 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6247 and generic_auxv_parse.
6248 (svr4_auxv_parse): Add.
6249 * obsd-tdep.c: Include "auxv.h".
6250 (obsd_auxv_parse): Remove.
6251 (obsd_init_abi): Remove comment.
6252 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6253 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6254 * nbsd-tdep.c: Include "auxv.h".
6255 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6256
6257 2020-04-08 Tom Tromey <tromey@adacore.com>
6258
6259 * nat/windows-nat.h (last_wait_event): Don't declare.
6260 (wait_for_debug_event): Update comment.
6261 * nat/windows-nat.c (last_wait_event): Now static.
6262
6263 2020-04-08 Tom Tromey <tromey@adacore.com>
6264
6265 * windows-nat.c (wait_for_debug_event): Move to
6266 nat/windows-nat.c.
6267 * nat/windows-nat.h (wait_for_debug_event): Declare.
6268 * nat/windows-nat.c (wait_for_debug_event): Move from
6269 windows-nat.c. No longer static.
6270
6271 2020-04-08 Tom Tromey <tromey@adacore.com>
6272
6273 * windows-nat.c (get_windows_debug_event): Use
6274 fetch_pending_stop.
6275 * nat/windows-nat.h (fetch_pending_stop): Declare.
6276 * nat/windows-nat.c (fetch_pending_stop): New function.
6277
6278 2020-04-08 Tom Tromey <tromey@adacore.com>
6279
6280 * windows-nat.c (windows_continue): Use matching_pending_stop and
6281 continue_last_debug_event.
6282 * nat/windows-nat.h (matching_pending_stop)
6283 (continue_last_debug_event): Declare.
6284 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6285 (matching_pending_stop, continue_last_debug_event): New
6286 functions.
6287
6288 2020-04-08 Tom Tromey <tromey@adacore.com>
6289
6290 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6291 (handle_exception_result): Move to nat/windows-nat.h.
6292 (DEBUG_EXCEPTION_SIMPLE): Remove.
6293 (windows_nat::handle_ms_vc_exception): New function.
6294 (handle_exception): Move to nat/windows-nat.c.
6295 (get_windows_debug_event): Update.
6296 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6297 nat/windows-nat.c.
6298 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6299 (handle_exception_result): Move from windows-nat.c.
6300 (handle_exception): Declare.
6301 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6302 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6303 windows-nat.c.
6304
6305 2020-04-08 Tom Tromey <tromey@adacore.com>
6306
6307 * windows-nat.c (exception_count, event_count): Remove.
6308 (handle_exception, get_windows_debug_event)
6309 (do_initial_windows_stuff): Update.
6310
6311 2020-04-08 Tom Tromey <tromey@adacore.com>
6312
6313 * windows-nat.c (windows_nat::handle_load_dll)
6314 (windows_nat::handle_unload_dll): Rename. No longer static.
6315 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6316 Declare.
6317
6318 2020-04-08 Tom Tromey <tromey@adacore.com>
6319
6320 * complaints.h (stop_whining): Declare at top-level.
6321 (complaint): Don't declare stop_whining.
6322
6323 2020-04-08 Tom Tromey <tromey@adacore.com>
6324
6325 * windows-nat.c (windows_nat::handle_output_debug_string):
6326 Rename. No longer static.
6327 * nat/windows-nat.h (handle_output_debug_string): Declare.
6328
6329 2020-04-08 Tom Tromey <tromey@adacore.com>
6330
6331 * 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 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6335 (display_selectors, fake_create_process)
6336 (get_windows_debug_event): Update.
6337 * nat/windows-nat.h (current_process_handle, current_process_id)
6338 (main_thread_id, last_sig, current_event, last_wait_event)
6339 (current_windows_thread, desired_stop_thread_id, pending_stops)
6340 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6341 * nat/windows-nat.c (current_process_handle, current_process_id)
6342 (main_thread_id, last_sig, current_event, last_wait_event)
6343 (current_windows_thread, desired_stop_thread_id, pending_stops)
6344 (siginfo_er): New globals. Move from windows-nat.c.
6345
6346 2020-04-08 Tom Tromey <tromey@adacore.com>
6347
6348 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6349 (handle_load_dll): Update.
6350 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6351
6352 2020-04-08 Tom Tromey <tromey@adacore.com>
6353
6354 * windows-nat.c (enum thread_disposition_type): Move to
6355 nat/windows-nat.h.
6356 (windows_nat::thread_rec): Rename from thread_rec. No longer
6357 static.
6358 (windows_add_thread, windows_nat_target::fetch_registers)
6359 (windows_nat_target::store_registers, handle_exception)
6360 (windows_nat_target::resume, get_windows_debug_event)
6361 (windows_nat_target::get_tib_address)
6362 (windows_nat_target::thread_name)
6363 (windows_nat_target::thread_alive): Update.
6364 * nat/windows-nat.h (enum thread_disposition_type): Move from
6365 windows-nat.c.
6366 (thread_rec): Declare.
6367
6368 2020-04-08 Tom Tromey <tromey@adacore.com>
6369
6370 * windows-nat.c: Add "using namespace".
6371 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6372 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6373
6374 2020-04-08 Tom Tromey <tromey@adacore.com>
6375
6376 * nat/windows-nat.h (struct windows_thread_info): Declare
6377 destructor.
6378 * nat/windows-nat.c (~windows_thread_info): New.
6379
6380 2020-04-08 Tom Tromey <tromey@adacore.com>
6381
6382 PR gdb/22992
6383 * windows-nat.c (current_event): Update comment.
6384 (last_wait_event, desired_stop_thread_id): New globals.
6385 (struct pending_stop): New.
6386 (pending_stops): New global.
6387 (windows_nat_target) <stopped_by_sw_breakpoint>
6388 <supports_stopped_by_sw_breakpoint>: New methods.
6389 (windows_fetch_one_register): Add assertions. Adjust PC.
6390 (windows_continue): Handle pending stops. Suspend other threads
6391 when stepping. Use last_wait_event
6392 (wait_for_debug_event): New function.
6393 (get_windows_debug_event): Use wait_for_debug_event. Handle
6394 pending stops. Queue spurious stops.
6395 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6396 (windows_nat_target::kill): Use wait_for_debug_event.
6397 * nat/windows-nat.h (struct windows_thread_info)
6398 <stopped_at_software_breakpoint>: New field.
6399 * nat/windows-nat.c (windows_thread_info::resume): Clear
6400 stopped_at_software_breakpoint.
6401
6402 2020-04-08 Tom Tromey <tromey@adacore.com>
6403
6404 * windows-nat.c (enum thread_disposition_type): New.
6405 (thread_rec): Replace "get_context" parameter with "disposition";
6406 change type.
6407 (windows_add_thread, windows_nat_target::fetch_registers)
6408 (windows_nat_target::store_registers, handle_exception)
6409 (windows_nat_target::resume, get_windows_debug_event)
6410 (windows_nat_target::get_tib_address)
6411 (windows_nat_target::thread_name)
6412 (windows_nat_target::thread_alive): Update.
6413
6414 2020-04-08 Tom Tromey <tromey@adacore.com>
6415
6416 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6417 (windows_continue): Use windows_continue::resume.
6418 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6419 resume>: Declare new methods.
6420 * nat/windows-nat.c: New file.
6421 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6422
6423 2020-04-08 Tom Tromey <tromey@adacore.com>
6424
6425 * windows-nat.c (windows_add_thread, windows_delete_thread)
6426 (windows_nat_target::fetch_registers)
6427 (windows_nat_target::store_registers, fake_create_process)
6428 (windows_nat_target::resume, windows_nat_target::resume)
6429 (get_windows_debug_event, windows_nat_target::wait)
6430 (windows_nat_target::pid_to_str)
6431 (windows_nat_target::get_tib_address)
6432 (windows_nat_target::get_ada_task_ptid)
6433 (windows_nat_target::thread_name)
6434 (windows_nat_target::thread_alive): Use lwp, not tid.
6435
6436 2020-04-08 Tom Tromey <tromey@adacore.com>
6437
6438 * windows-nat.c (handle_exception)
6439 (windows_nat_target::thread_name): Update.
6440 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6441 <name>: Now unique_xmalloc_ptr.
6442
6443 2020-04-08 Tom Tromey <tromey@adacore.com>
6444
6445 * windows-nat.c (thread_rec)
6446 (windows_nat_target::fetch_registers): Update.
6447 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6448 Update comment.
6449 <debug_registers_changed, reload_context>: Now bool.
6450
6451 2020-04-08 Tom Tromey <tromey@adacore.com>
6452
6453 * windows-nat.c (windows_add_thread): Use new.
6454 (windows_init_thread_list, windows_delete_thread): Use delete.
6455 (get_windows_debug_event): Update.
6456 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6457 destructor, and initializers.
6458
6459 2020-04-08 Tom Tromey <tromey@adacore.com>
6460
6461 * windows-nat.c (struct windows_thread_info): Remove.
6462 * nat/windows-nat.h: New file.
6463
6464 2020-04-08 Tom Tromey <tromey@adacore.com>
6465
6466 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6467 (thread_rec, windows_add_thread, windows_delete_thread)
6468 (windows_continue): Update.
6469
6470 2020-04-08 Tom Tromey <tromey@adacore.com>
6471
6472 * windows-nat.c (struct windows_thread_info): Remove typedef.
6473 (thread_head): Remove.
6474 (thread_list): New global.
6475 (thread_rec, windows_add_thread, windows_init_thread_list)
6476 (windows_delete_thread, windows_continue): Update.
6477
6478 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6479
6480 * windows-tdep.h (windows_init_abi): Add comment.
6481 (cygwin_init_abi): New declaration.
6482 * windows-tdep.c: Split signal enumeration in two, one for
6483 Windows and one for Cygwin.
6484 (windows_gdb_signal_to_target): Only deal with signal of the
6485 Windows OS ABI.
6486 (cygwin_gdb_signal_to_target): New function.
6487 (windows_init_abi): Rename to windows_init_abi_common, don't set
6488 gdb_signal_to_target gdbarch method. Add new new function with
6489 this name.
6490 (cygwin_init_abi): New function.
6491 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6492 comment. Don't call windows_init_abi.
6493 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6494 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6495 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6496 i386_windows_init_abi_common, don't call windows_init_abi. Add
6497 a new function of this name.
6498 (i386_cygwin_init_abi): New function.
6499 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6500 OS ABI Cygwin.
6501
6502 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6503
6504 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6505 parameter.c.
6506 (dwarf2_read_gdb_index): Update.
6507
6508 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6509
6510 * nbsd-tdep.c: Include "objfiles.h".
6511 (nbsd_skip_solib_resolver): New.
6512 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6513
6514 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6515
6516 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6517 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6518 with DW_LLE_base_addressx are being emitted in DWARFv5.
6519 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6520 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6521 unsigned integer.
6522
6523 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6524
6525 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6526 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6527 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6528 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6529 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6530 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6531 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6532
6533
6534 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6535
6536 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6537 (read_loclist_index): New function definition.
6538 (lookup_loclist_base): New function definition.
6539 (read_loclist_header): New function definition.
6540 (dwarf2_cu): Add loclist_base and loclist_header field.
6541 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6542 (read_full_die_1): Read the value of DW_AT_loclists_base.
6543 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6544 (read_attribute_value): Handle DW_FORM_loclistx.
6545 (skip_one_die): Handle DW_FORM_loclistx.
6546 (loclist_header): New structure declaration.
6547 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6548
6549 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6550
6551 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6552 constructor. Remove `addr` parameter from other constructor and
6553 add `per_cu` parameter.
6554 * dwarf2/read.c (create_partial_symtab): Update.
6555
6556 2020-04-07 Tom de Vries <tdevries@suse.de>
6557
6558 PR symtab/25796
6559 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6560 (partial_die_info::fixup): Inherit has_const_value.
6561
6562 2020-04-07 Tom de Vries <tdevries@suse.de>
6563
6564 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6565 symbols without address.
6566
6567 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6568
6569 * nbsd-nat.h (struct thread_info): Add forward declaration.
6570 (nbsd_nat_target::thread_alive): Add.
6571 (nbsd_nat_target::thread_name): Likewise.
6572 (nbsd_nat_target::update_thread_list): Likewise.
6573 (update_thread_list::post_attach): Likewise.
6574 (post_attach::pid_to_str): Likewise.
6575 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6576 (nbsd_thread_lister): Add.
6577 (nbsd_nat_target::thread_alive): Likewise.
6578 (nbsd_nat_target::thread_name): Likewise.
6579 (nbsd_add_threads): Likewise.
6580 (update_thread_list::post_attach): Likewise.
6581 (nbsd_nat_target::update_thread_list): Likewise.
6582 (post_attach::pid_to_str): Likewise.
6583
6584 2020-04-06 Tom Tromey <tromey@adacore.com>
6585
6586 * ada-valprint.c (print_variant_part): Extract the variant field.
6587 (print_field_values): Use the field as the outer value when
6588 recursing.
6589
6590 2020-04-06 Tom Tromey <tromey@adacore.com>
6591
6592 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6593 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6594 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6595 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6596 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6597
6598 2020-04-06 Tom Tromey <tromey@adacore.com>
6599
6600 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6601 TYPE_CODE_ERROR.
6602
6603 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6604
6605 * nbsd-tdep.c: Include "gdbarch.h".
6606 Define enum with NetBSD signal numbers.
6607 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6608 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6609 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6610 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6611 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6612 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6613 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6614 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6615 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6616 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6617 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6618 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6619
6620 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6621
6622 PR gdb/25325
6623 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6624
6625 2020-04-03 Tom Tromey <tromey@adacore.com>
6626
6627 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6628 Read constant block.
6629
6630 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6631
6632 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6633 (gdb_bfd_get_full_section_contents): New declaration.
6634 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6635 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6636 gdb_bfd_get_full_section_contents.
6637
6638 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6639
6640 * exec.c (build_section_table): Replace internal_error with
6641 gdb_assert.
6642 (section_table_xfer_memory_partial): Likewise.
6643 * mdebugread.c (parse_partial_symbols): Likewise.
6644 * psymtab.c (lookup_partial_symbol): Likewise.
6645 * utils.c (wrap_here): Likewise.
6646
6647 2020-04-02 Tom Tromey <tromey@adacore.com>
6648
6649 * f-lang.c (build_fortran_types): Use arch_type to initialize
6650 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6651
6652 2020-04-02 Tom Tromey <tromey@adacore.com>
6653
6654 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6655 of attributes.
6656
6657 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6658 Bernd Edlinger <bernd.edlinger@hotmail.de>
6659 Tom Tromey <tromey@adacore.com>
6660
6661 * buildsym.c (buildsym_compunit::record_line): Remove
6662 deduplication code.
6663
6664 2020-04-02 Tom de Vries <tdevries@suse.de>
6665
6666 PR ada/24671
6667 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6668
6669 2020-04-02 Tom de Vries <tdevries@suse.de>
6670
6671 * dwarf2/read.c (dwarf2_gdb_index_functions,
6672 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6673 NULL.
6674 * psymtab.c (psym_lookup_global_symbol_language): New function.
6675 (psym_functions): Init psym_lookup_global_symbol_language with
6676 psym_lookup_global_symbol_language.
6677 * symfile-debug.c (debug_sym_quick_functions): Init
6678 lookup_global_symbol_language with NULL.
6679 * symfile.c (set_initial_language): Remove fixme comment.
6680 * symfile.h (struct quick_symbol_functions): Add
6681 lookup_global_symbol_language.
6682 * symtab.c (find_quick_global_symbol_language): New function.
6683 (find_main_name): Use find_quick_global_symbol_language.
6684
6685 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6686
6687 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6688
6689 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6690
6691 * buildsym.c (record_line): Fix undefined behavior and preserve
6692 lines at eof.
6693
6694 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6695
6696 * buildsym.c (record_line): Fix the resizing condition.
6697
6698 2020-04-01 Tom Tromey <tom@tromey.com>
6699
6700 * value.h (value_literal_complex): Add comment.
6701 * valops.c (value_literal_complex): Refer to value.h.
6702
6703 2020-04-01 Tom Tromey <tom@tromey.com>
6704
6705 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6706 (scalar_type): New rule, from typebase.
6707 (typebase): Use scalar_type. Recognize complex types.
6708 (field_name): Handle FLOAT_KEYWORD.
6709 (ident_tokens): Add _Complex and __complex__.
6710
6711 2020-04-01 Tom Tromey <tom@tromey.com>
6712
6713 PR exp/25299:
6714 * valarith.c (promotion_type, complex_binop): New functions.
6715 (scalar_binop): Handle complex numbers. Use promotion_type.
6716 (value_pos, value_neg, value_complement): Handle complex numbers.
6717
6718 2020-04-01 Tom Tromey <tom@tromey.com>
6719
6720 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6721 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6722 (parse_number): Handle complex numbers.
6723
6724 2020-04-01 Tom Tromey <tom@tromey.com>
6725
6726 * c-valprint.c (c_decorations): Change complex suffix to "i".
6727
6728 2020-04-01 Tom Tromey <tom@tromey.com>
6729
6730 * valprint.c (generic_value_print_complex): Use accessors.
6731 * value.h (value_real_part, value_imaginary_part): Declare.
6732 * valops.c (value_real_part, value_imaginary_part): New
6733 functions.
6734 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6735
6736 2020-04-01 Tom Tromey <tom@tromey.com>
6737
6738 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6739 (read_range_type): Update.
6740 * mdebugread.c (basic_type): Update.
6741 * go-lang.c (build_go_types): Use init_complex_type.
6742 * gdbtypes.h (struct main_type) <complex_type>: New member.
6743 (init_complex_type): Update.
6744 (arch_complex_type): Don't declare.
6745 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6746 Make name if none given. Use alloc_type_copy. Look for cached
6747 complex type.
6748 (arch_complex_type): Remove.
6749 (gdbtypes_post_init): Use init_complex_type.
6750 * f-lang.c (build_fortran_types): Use init_complex_type.
6751 * dwarf2/read.c (read_base_type): Update.
6752 * d-lang.c (build_d_types): Use init_complex_type.
6753 * ctfread.c (read_base_type): Update.
6754
6755 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6756
6757 * infrun.c (stop_all_threads): Update assertion, plus when
6758 stopping threads, take into account that we might be trying
6759 to stop an all-stop target.
6760 (stop_waiting): Call 'stop_all_threads' if there exists a
6761 non-stop target.
6762
6763 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6764
6765 * target.h (exists_non_stop_target): New function declaration.
6766 * target.c (exists_non_stop_target): New function.
6767
6768 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6769
6770 PR gdb/24789
6771 * eval.c (is_integral_or_integral_reference): New function.
6772 (evaluate_subexp_standard): Allow integer references in
6773 pointer arithmetic.
6774
6775 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6776
6777 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6778 check for no ptid in the stop reply when the target is non-stop.
6779
6780 2020-04-01 Tom Tromey <tromey@adacore.com>
6781
6782 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6783 "name" parameter to rvalue reference. Initialize m_name_holder.
6784 <lookup_name_info>: New overloads.
6785 <name>: Return gdb::string_view.
6786 <c_str>: New method.
6787 <make_ignore_params>: Update.
6788 <search_name_hash>: Update.
6789 <language_lookup_name>: Return const char *.
6790 <m_name>: Change type.
6791 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6792 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6793 (lookup_name_info::match_any): Update.
6794 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6795 Update.
6796 * minsyms.c (linkage_name_str): Update.
6797 * language.c (default_symbol_name_matcher): Update.
6798 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6799 Update.
6800 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6801 (ada_lookup_name_info::ada_lookup_name_info): Update.
6802 (literal_symbol_name_matcher): Update.
6803
6804 2020-04-01 Tom Tromey <tromey@adacore.com>
6805
6806 * psymtab.c (psymtab_search_name): Remove function.
6807 (psym_lookup_symbol): Create search name and lookup name here.
6808 (lookup_partial_symbol): Remove "name" parameter; add
6809 lookup_name.
6810 (psym_expand_symtabs_for_function): Update.
6811
6812 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6813
6814 PR tui/25597:
6815 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6816
6817 2020-03-31 Tom Tromey <tromey@adacore.com>
6818
6819 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6820 memcpy.
6821
6822 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6823
6824 * features/riscv/32bit-csr.xml: Regenerated.
6825 * features/riscv/64bit-csr.xml: Regenerated.
6826
6827 2020-03-30 Tom Tromey <tromey@adacore.com>
6828
6829 * ada-valprint.c (print_variant_part): Update.
6830 * ada-lang.h (ada_which_variant_applies): Update.
6831 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6832 outer_valaddr parameters; replace with "outer" value parameter.
6833 (to_fixed_variant_branch_type): Update.
6834
6835 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6836
6837 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6838 <list>. Remove inclusion of observable.h.
6839 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6840 (struct arch_lwp_info): New struct.
6841 (class ppc_linux_dreg_interface): New class.
6842 (struct ppc_linux_process_info): New struct.
6843 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6844 <low_new_clone, low_forget_process, low_prepare_to_resume>
6845 <copy_thread_dreg_state, mark_thread_stale>
6846 <mark_debug_registers_changed, register_hw_breakpoint>
6847 <clear_hw_breakpoint, register_wp, clear_wp>
6848 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6849 <num_memory_accesses, get_trigger_type>
6850 <create_watchpoint_request, hwdebug_point_cmp>
6851 <init_arch_lwp_info, get_arch_lwp_info>
6852 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6853 methods.
6854 <struct ptid_hash>: New inner struct.
6855 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6856 members.
6857 (saved_dabr_value, hwdebug_info, max_slots_number)
6858 (struct hw_break_tuple, struct thread_points, ppc_threads)
6859 (have_ptrace_hwdebug_interface)
6860 (hwdebug_find_thread_points_by_tid)
6861 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6862 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6863 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6864 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6865 use m_dreg_interface.
6866 (hwdebug_point_cmp): Change to...
6867 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6868 reference arguments instead of pointers.
6869 (ppc_linux_nat_target::ranged_break_num_registers): Use
6870 m_dreg_interface.
6871 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6872 m_dreg_interface. Call register_hw_breakpoint.
6873 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6874 m_dreg_interface. Call clear_hw_breakpoint.
6875 (get_trigger_type): Change to...
6876 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6877 comment.
6878 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6879 use m_dreg_interface. Call register_hw_breakpoint.
6880 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6881 use m_dreg_interface. Call clear_hw_breakpoint.
6882 (can_use_watchpoint_cond_accel): Change to...
6883 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6884 method. Update comment, use m_dreg_interface and
6885 m_process_info.
6886 (calculate_dvc): Change to...
6887 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6888 m_dreg_interface.
6889 (num_memory_accesses): Change to...
6890 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6891 (check_condition): Change to...
6892 (ppc_linux_nat_target::check_condition): ...this method.
6893 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6894 comment, use m_dreg_interface.
6895 (create_watchpoint_request): Change to...
6896 (ppc_linux_nat_target::create_watchpoint_request): ...this
6897 method. Use m_dreg_interface.
6898 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6899 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6900 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6901 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6902 (ppc_linux_nat_target::low_forget_process)
6903 (ppc_linux_nat_target::low_new_fork)
6904 (ppc_linux_nat_target::low_new_clone)
6905 (ppc_linux_nat_target::low_delete_thread)
6906 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6907 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6908 only call mark_thread_stale.
6909 (ppc_linux_thread_exit): Remove.
6910 (ppc_linux_nat_target::stopped_data_address): Change to...
6911 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6912 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6913 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6914 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6915 comment. Call low_stopped_data_address.
6916 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6917 m_dreg_interface.
6918 (ppc_linux_nat_target::masked_watch_num_registers): Use
6919 m_dreg_interface.
6920 (ppc_linux_nat_target::copy_thread_dreg_state)
6921 (ppc_linux_nat_target::mark_thread_stale)
6922 (ppc_linux_nat_target::mark_debug_registers_changed)
6923 (ppc_linux_nat_target::register_hw_breakpoint)
6924 (ppc_linux_nat_target::clear_hw_breakpoint)
6925 (ppc_linux_nat_target::register_wp)
6926 (ppc_linux_nat_target::clear_wp)
6927 (ppc_linux_nat_target::init_arch_lwp_info)
6928 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6929 (_initialize_ppc_linux_nat): Remove observer callback.
6930
6931 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6932
6933 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6934 (ppc_linux_nat_target::auxv_parse)
6935 (ppc_linux_nat_target::read_description)
6936 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6937 Move up.
6938
6939 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6940
6941 * linux-nat.h (low_new_clone): New method.
6942 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6943
6944 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6945
6946 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6947 (dbx_expand_psymtab): ... this.
6948 (start_psymtab): Update.
6949 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6950 (mdebug_expand_psymtab): ... this.
6951 (parse_partial_symbols): Update.
6952 (new_psymtab): Update.
6953 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6954 (xcoff_expand_psymtab): ... this.
6955 (xcoff_start_psymtab): Update.
6956
6957 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6958
6959 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6960 <expand_dependencies>: ... this.
6961 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6962 (partial_symtab::expand_dependencies): ... this.
6963 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6964 Update.
6965 (dwarf2_psymtab::expand_psymtab): Update.
6966 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6967 * mdebugread.c (psymtab_to_symtab_1): Update.
6968 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6969
6970 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6971
6972 * psympriv.h (discard_psymtab): Remove.
6973 * dbxread.c (dbx_end_psymtab): Update.
6974 * xcoffread.c (xcoff_end_psymtab): Update.
6975
6976 2020-03-28 Tom Tromey <tom@tromey.com>
6977
6978 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6979 comment.
6980
6981 2020-03-28 Tom Tromey <tom@tromey.com>
6982
6983 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6984
6985 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
6986
6987 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6988
6989 2020-03-26 John Baldwin <jhb@FreeBSD.org>
6990
6991 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6992
6993 2020-03-26 Tom Tromey <tom@tromey.com>
6994
6995 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6996 (mark_common_block_symbol_computed, read_tag_string_type)
6997 (attr_to_dynamic_prop, read_subrange_type): Update.
6998 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6999 to be methods on struct attribute.
7000 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7001 (read_call_site_scope, partial_die_info::read)
7002 (partial_die_info::read, lookup_die_type, follow_die_ref):
7003 Update.
7004 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7005 from dwarf2_get_ref_die_offset.
7006 (attribute::constant_value): New method, from
7007 dwarf2_get_attr_constant_value.
7008 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7009 Declare method.
7010 <constant_value>: New method.
7011
7012 2020-03-26 Tom Tromey <tom@tromey.com>
7013
7014 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7015 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7016 (dwarf_type_encoding_name): Move to stringify.c.
7017 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7018 * dwarf2/stringify.c: New file.
7019 * dwarf2/stringify.h: New file.
7020
7021 2020-03-26 Tom Tromey <tom@tromey.com>
7022
7023 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7024 Rewrite.
7025
7026 2020-03-26 Tom Tromey <tom@tromey.com>
7027
7028 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7029 methods.
7030 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7031 (lookup_ranges_base): Likewise.
7032 (read_cutu_die_from_dwo, read_full_die_1): Update.
7033
7034 2020-03-26 Tom Tromey <tom@tromey.com>
7035
7036 * dwarf2/read.c (read_import_statement, read_file_scope)
7037 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7038 (read_lexical_block_scope, read_call_site_scope)
7039 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7040 (handle_struct_member_die, process_structure_scope)
7041 (update_enumeration_type_from_children)
7042 (process_enumeration_scope, read_array_type, read_common_block)
7043 (read_namespace, read_module, read_subroutine_type): Update.
7044 (sibling_die): Remove.
7045
7046 2020-03-26 Tom Tromey <tom@tromey.com>
7047
7048 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7049 (build_type_psymtabs_reader, read_structure_type)
7050 (read_enumeration_type, read_full_die_1): Update.
7051 (dwarf2_attr_no_follow): Move to die.h.
7052 * dwarf2/die.h (struct die_info) <attr>: New method.
7053
7054 2020-03-26 Tom Tromey <tom@tromey.com>
7055
7056 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7057 <base_address>: Now an optional.
7058 (dwarf2_find_base_address, dwarf2_rnglists_process)
7059 (dwarf2_ranges_process, fill_in_loclist_baton)
7060 (dwarf2_symbol_mark_computed): Update.
7061
7062 2020-03-26 Tom Tromey <tom@tromey.com>
7063
7064 * dwarf2/read.c (struct die_info): Move to die.h.
7065 * dwarf2/die.h: New file.
7066
7067 2020-03-26 Tom Tromey <tom@tromey.com>
7068
7069 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7070 * dwarf2/read.c
7071 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7072 Move to line-header.c.
7073 (read_checked_initial_length_and_offset, read_formatted_entries):
7074 Likewise.
7075 (dwarf_decode_line_header): Split into two.
7076 * dwarf2/line-header.c
7077 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7078 Move from read.c.
7079 (read_checked_initial_length_and_offset, read_formatted_entries):
7080 Likewise.
7081 (dwarf_decode_line_header): New function, split from read.c.
7082
7083 2020-03-26 Tom Tromey <tom@tromey.com>
7084
7085 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7086 Declare method.
7087 * dwarf2/read.c (read_attribute_value): Update.
7088 (dwarf2_per_objfile::read_line_string): Rename from
7089 read_indirect_line_string.
7090 (read_formatted_entries): Update.
7091
7092 2020-03-26 Tom Tromey <tom@tromey.com>
7093
7094 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7095 variable.
7096
7097 2020-03-26 Tom Tromey <tom@tromey.com>
7098
7099 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7100 const.
7101 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7102 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7103 parameter const.
7104
7105 2020-03-26 Tom Tromey <tom@tromey.com>
7106
7107 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7108 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7109 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7110 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7111
7112 2020-03-26 Tom Tromey <tom@tromey.com>
7113
7114 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7115 file_names_size, file_full_name, file_file_name>: Use const.
7116 <file_name_at, file_names>: Add const overload.
7117 * dwarf2/line-header.c (line_header::file_file_name)
7118 (line_header::file_full_name): Update.
7119
7120 2020-03-26 Tom Tromey <tom@tromey.com>
7121
7122 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7123 (macro_start_file, consume_improper_spaces)
7124 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7125 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7126 (dwarf_decode_macros): Move to macro.c.
7127 * dwarf2/macro.c: New file.
7128 * dwarf2/macro.h: New file.
7129 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7130
7131 2020-03-26 Tom Tromey <tom@tromey.com>
7132
7133 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7134 method.
7135 * dwarf2/section.c: New method. From
7136 read_indirect_string_at_offset_from.
7137 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7138 (read_indirect_string_at_offset_from): Move to section.c.
7139 (read_indirect_string_at_offset): Rewrite.
7140 (read_indirect_line_string_at_offset): Remove.
7141 (read_indirect_string, read_indirect_line_string)
7142 (dwarf_decode_macro_bytes): Update.
7143
7144 2020-03-26 Tom Tromey <tom@tromey.com>
7145
7146 * dwarf2/section.h (struct dwarf2_section_info)
7147 <overload_complaint>: Declare.
7148 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7149 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7150 Rename from dwarf2_section_buffer_overflow_complaint.
7151 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7152 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7153
7154 2020-03-26 Tom Tromey <tom@tromey.com>
7155
7156 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7157 Declare.
7158 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7159 Move from read.c.
7160 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7161 to section.c.
7162
7163 2020-03-26 Tom Tromey <tom@tromey.com>
7164
7165 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7166
7167 2020-03-26 Tom Tromey <tom@tromey.com>
7168
7169 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7170 "builder".
7171 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7172 parameter.
7173 (dwarf_decode_macros): Update.
7174
7175 2020-03-26 Tom Tromey <tom@tromey.com>
7176
7177 * dwarf2/read.c (read_attribute_value): Update.
7178 (read_indirect_string_from_dwz): Move to dwz.c; change into
7179 method.
7180 (dwarf_decode_macro_bytes): Update.
7181 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7182 * dwarf2/dwz.c: New file.
7183 * Makefile.in (COMMON_SFILES): Add dwz.c.
7184
7185 2020-03-26 Tom Tromey <tom@tromey.com>
7186
7187 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7188 * dwarf2/read.c: Add include.
7189 * dwarf2/index-write.c: Add include.
7190 * dwarf2/index-cache.c: Add include.
7191 * dwarf2/dwz.h: New file.
7192
7193 2020-03-25 Tom Tromey <tom@tromey.com>
7194
7195 * compile/compile-object-load.c (get_out_value_type): Mention
7196 correct symbol name in error message.
7197
7198 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7199
7200 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7201
7202 2020-03-25 Tom de Vries <tdevries@suse.de>
7203
7204 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7205 * symmisc.c (dump_symtab_1): Print user and includes fields.
7206 (maintenance_info_symtabs): Same.
7207
7208 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7209
7210 PR gdb/25534
7211 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7212 (riscv_regcache_cooked_write): New function.
7213 (riscv_push_dummy_call): Use new function.
7214 (riscv_return_value): Likewise.
7215
7216 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7217
7218 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7219 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7220 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7221 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7222 * infrun.c (follow_fork): Likewise.
7223 (follow_fork_inferior): Likewise.
7224 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7225 * linux-nat.h (class linux_nat_target): Likewise.
7226 * remote.c (class remote_target) <follow_fork>: Likewise.
7227 (remote_target::follow_fork): Likewise.
7228 * target-delegates.c: Re-generate.
7229 * target.c (default_follow_fork): Likewise.
7230 (target_follow_fork): Likewise.
7231 * target.h (struct target_ops) <follow_fork>: Likewise.
7232 (target_follow_fork): Likewise.
7233
7234 2020-03-24 Tom de Vries <tdevries@suse.de>
7235
7236 * psymtab.c (maintenance_info_psymtabs): Print user field.
7237
7238 2020-03-20 Tom Tromey <tromey@adacore.com>
7239
7240 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7241 const.
7242 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7243 const.
7244
7245 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7246
7247 * ptrace.m4: Don't check for ptrace declaration.
7248 * config.in: Re-generate.
7249 * configure: Re-generate.
7250 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7251 not defined.
7252
7253 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7254
7255 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7256 `PTRACE_TYPE_RET'.
7257 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7258 * sparc-nat.c (gdb_ptrace): Likewise.
7259 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7260
7261 2020-03-20 Tom Tromey <tromey@adacore.com>
7262
7263 * c-exp.y (lex_one_token): Fix assert.
7264
7265 2020-03-20 Tom Tromey <tromey@adacore.com>
7266
7267 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7268 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7269 strncpy call.
7270
7271 2020-03-20 Tom Tromey <tromey@adacore.com>
7272
7273 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7274
7275 2020-03-20 Tom Tromey <tromey@adacore.com>
7276
7277 * ada-valprint.c (print_variant_part): Remove parameters; switch
7278 to value-based API.
7279 (print_field_values): Likewise.
7280 (ada_val_print_struct_union): Likewise.
7281 (ada_value_print_1): Update.
7282
7283 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7284
7285 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7286 nbsd_nat_target instead of inf_ptrace_target.
7287 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7288 nbsd_nat_target.
7289
7290 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7291
7292 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7293 it to the ptrace call.
7294 * (store_registers): Likewise.
7295
7296 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7297
7298 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7299 it to the ptrace call.
7300 * (store_registers): Likewise.
7301
7302 2020-03-19 Luis Machado <luis.machado@linaro.org>
7303
7304 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7305 valid, fetch vg value from ptrace.
7306
7307 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7308 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7309 * inf-ptrace.c: Likewise.
7310 * (gdb_ptrace): Add.
7311 * (inf_ptrace_target::resume): Update.
7312 * (inf_ptrace_target::xfer_partial): Likewise.
7313 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7314 * (inf_ptrace_peek_poke): Update.
7315
7316 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7317
7318 * x86-bsd-nat.c (gdb_ptrace): New.
7319 * (x86bsd_dr_set): Add new argument `ptid'.
7320 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7321 x86bsd_dr_set_addr): Update.
7322
7323 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7324
7325 * remote.c (remote_target::process_stop_reply): Handle events for
7326 all threads differently.
7327
7328 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7329
7330 * completer.c (completion_tracker::remove_completion): Define new
7331 function.
7332 * completer.h (completion_tracker::remove_completion): Declare new
7333 function.
7334 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7335 when adding a C++ function symbol.
7336
7337 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7338
7339 * completer.c (completion_tracker::completion_hash_entry): Define
7340 new class.
7341 (advance_to_filename_complete_word_point): Call
7342 recompute_lowest_common_denominator.
7343 (completion_tracker::completion_tracker): Call discard_completions
7344 to setup the hash table.
7345 (completion_tracker::discard_completions): Allow for being called
7346 from the constructor, pass new equal function, and element deleter
7347 when constructing the hash table. Initialise new class member
7348 variables.
7349 (completion_tracker::maybe_add_completion): Remove use of
7350 m_entries_vec, and store more information into m_entries_hash.
7351 (completion_tracker::recompute_lcd_visitor): New function, most
7352 content taken from...
7353 (completion_tracker::recompute_lowest_common_denominator):
7354 ...here, this now just visits each item in the hash calling the
7355 above visitor.
7356 (completion_tracker::build_completion_result): Remove use of
7357 m_entries_vec, call recompute_lowest_common_denominator.
7358 * completer.h (completion_tracker::have_completions): Remove use
7359 of m_entries_vec.
7360 (completion_tracker::completion_hash_entry): Declare new class.
7361 (completion_tracker::recompute_lowest_common_denominator): Change
7362 function signature.
7363 (completion_tracker::recompute_lcd_visitor): Declare new function.
7364 (completion_tracker::m_entries_vec): Delete.
7365 (completion_tracker::m_entries_hash): Initialize to NULL.
7366 (completion_tracker::m_lowest_common_denominator_valid): New
7367 member variable.
7368 (completion_tracker::m_lowest_common_denominator_max_length): New
7369 member variable.
7370
7371 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7372
7373 * regformats/regdef.h: Put reg in gdb namespace.
7374
7375 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7376
7377 * i386-bsd-nat.c (gdb_ptrace): New.
7378 * (i386bsd_fetch_inferior_registers,
7379 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7380 * (i386bsd_fetch_inferior_registers,
7381 i386bsd_store_inferior_registers) Use gdb_ptrace.
7382
7383 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7384
7385 * amd64-bsd-nat.c (gdb_ptrace): New.
7386 * (amd64bsd_fetch_inferior_registers,
7387 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7388 * (amd64bsd_fetch_inferior_registers,
7389 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7390
7391 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7392
7393 * user-regs.c (user_reg::read): Rename to...
7394 (user_reg::xread): ...this.
7395 * (append_user_reg): Rename argument `read' to `xread'.
7396 * (user_reg_add_builtin): Likewise.
7397 * (user_reg_add): Likewise.
7398 * (value_of_user_reg): Likewise.
7399
7400 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7401
7402 * sparc-nat.c (gdb_ptrace): New.
7403 * sparc-nat.c (sparc_fetch_inferior_registers)
7404 (sparc_store_inferior_registers) Remove obsolete comment.
7405 * sparc-nat.c (sparc_fetch_inferior_registers)
7406 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7407 * sparc-nat.c (sparc_fetch_inferior_registers)
7408 (sparc_store_inferior_registers) Use gdb_ptrace.
7409
7410 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7411
7412 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7413 it to the ptrace call.
7414 * sh-nbsd-nat.c (store_registers): Likewise.
7415
7416 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7417
7418 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7419 nbsd_nat_target instead of inf_ptrace_target.
7420 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7421 nbsd_nat_target.
7422
7423 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7424
7425 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7426
7427 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7428
7429 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7430 <sys/sysctl.h>.
7431 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7432
7433 2020-03-17 Tom de Vries <tdevries@suse.de>
7434
7435 PR gdb/23710
7436 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7437 fields.
7438 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7439 fields.
7440 (process_imported_unit_die): Skip import of c++ CUs.
7441
7442 2020-03-16 Tom Tromey <tom@tromey.com>
7443
7444 * p-valprint.c (pascal_object_print_value): Initialize
7445 base_value.
7446
7447 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7448 Shahab Vahedi <shahab@synopsys.com>
7449
7450 * Makefile.in: Add arch/arc.o
7451 * configure.tgt: Likewise.
7452 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7453 (_initialize_arc_tdep): Don't initialize old target descriptions.
7454 (arc_read_description): New function to cache target descriptions.
7455 * arc-tdep.h (arc_read_description): Add proto type.
7456 * arch/arc.c: New file.
7457 * arch/arc.h: Likewise.
7458 * features/Makefile: Replace old target descriptions with new.
7459 * features/arc-arcompact.c: Remove.
7460 * features/arc-arcompact.xml: Likewise.
7461 * features/arc-v2.c: Likewise
7462 * features/arc-v2.xml: Likewise
7463 * features/arc/aux-arcompact.xml: New file.
7464 * features/arc/aux-v2.xml: Likewise.
7465 * features/arc/core-arcompact.xml: Likewise.
7466 * features/arc/core-v2.xml: Likewise.
7467 * features/arc/aux-arcompact.c: Generate.
7468 * features/arc/aux-v2.c: Likewise.
7469 * features/arc/core-arcompact.c: Likewise.
7470 * features/arc/core-v2.c: Likewise.
7471 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7472
7473 2020-03-16 Tom Tromey <tromey@adacore.com>
7474
7475 PR gdb/25663:
7476 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7477 putting value into bcache.
7478
7479 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7480
7481 PR gdb/21500
7482 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7483 to...
7484 (amd64_windows_init_abi_common): ... this. Don't set size of
7485 long type.
7486 (amd64_windows_init_abi): New function.
7487 (amd64_cygwin_init_abi): New function.
7488 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7489 the Cygwin OS ABI.
7490 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7491 comment.
7492
7493 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7494
7495 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7496 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7497 (pe_import_directory_entry): New struct type.
7498 (is_linked_with_cygwin_dll): New function.
7499 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7500 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7501 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7502
7503 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7504
7505 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7506 i386_cygwin_core_osabi_sniffer.
7507
7508 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7509
7510 * i386-cygwin-tdep.c: Rename to...
7511 * i386-windows-tdep.c: ... this.
7512 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7513 i386-windows-tdep.c.
7514 * configure.tgt: Likewise.
7515
7516 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7517
7518 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7519 * osabi.c (gdb_osabi_names): Add "Windows".
7520 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7521 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7522 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7523 i386_cygwin_osabi_sniffer.
7524 (_initialize_i386_cygwin_tdep): Register OS ABI
7525 GDB_OSABI_WINDOWS for i386.
7526 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7527 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7528 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7529 for x86-64.
7530 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7531 when the target matches '*-*-mingw*'.
7532
7533 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7534
7535 * defs.h (enum gdb_osabi): Move to...
7536 * osabi.h (enum gdb_osabi): ... here.
7537 * gdbarch.sh: Include osabi.h in gdbarch.h.
7538 * gdbarch.h: Re-generate.
7539
7540 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7541
7542 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7543 function.
7544 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7545
7546 2020-03-14 Tom Tromey <tom@tromey.com>
7547
7548 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7549 for C++.
7550 (c_type_print_modifier): Likewise. Add "language" parameter.
7551 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7552 (c_type_print_base_1): Update.
7553 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7554 constants.
7555 * type-stack.c (type_stack::insert): Handle tp_atomic and
7556 tp_restrict.
7557 (type_stack::follow_type_instance_flags): Likewise.
7558 (type_stack::follow_types): Likewise. Merge type-following code.
7559 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7560 (space_identifier, cv_with_space_id)
7561 (const_or_volatile_or_space_identifier_noopt)
7562 (const_or_volatile_or_space_identifier): Remove.
7563 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7564 rules.
7565 (ptr_operator, typebase): Update.
7566 (enum token_flag) <FLAG_C>: New constant.
7567 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7568 "_Atomic".
7569 (lex_one_token): Handle FLAG_C.
7570
7571 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7572
7573 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7574 it to the ptrace call.
7575 * m68k-bsd-nat.c (store_registers): Likewise.
7576
7577 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7578
7579 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7580 gdb_byte *.
7581 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7582 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7583 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7584
7585 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7586
7587 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7588 nbsd_nat_target instead of inf_ptrace_target.
7589 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7590 nbsd_nat_target.
7591
7592 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7593
7594 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7595 register_t.
7596
7597 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7598
7599 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7600 it to the ptrace call.
7601 * alpha-bsd-nat.c (store_registers): Likewise.
7602
7603 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7604
7605 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7606 includes.
7607 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7608 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7609 fill_fpregset): Likewise.
7610
7611 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7612
7613 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7614 nbsd_nat_target instead of inf_ptrace_target.
7615 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7616 nbsd_nat_target.
7617
7618 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7619
7620 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7621 register_t.
7622
7623 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7624
7625 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7626 it to the ptrace call.
7627 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7628 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7629 * arm-nbsd-nat.c (store_register): Likewise.
7630 * arm-nbsd-nat.c (store_regs): Likewise.
7631 * arm-nbsd-nat.c (store_fp_register): Likewise.
7632 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7633
7634 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7635
7636 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7637 nbsd_nat_target instead of inf_ptrace_target.
7638 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7639 nbsd_nat_target.
7640
7641 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7642
7643 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7644 it to the ptrace call.
7645 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7646
7647 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7648
7649 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7650 it to the ptrace call.
7651 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7652
7653 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7654
7655 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7656 gdb_byte *.
7657 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7658
7659 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7660
7661 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7662 instead of inf_ptrace_target.
7663 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7664 nbsd_nat_target.
7665
7666 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7667
7668 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7669 register_t.
7670
7671 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7672
7673 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7674 register_t.
7675
7676 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7677
7678 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7679 register_t.
7680
7681 2020-03-13 Tom Tromey <tom@tromey.com>
7682
7683 * value.h (val_print): Don't declare.
7684 * valprint.h (val_print_array_elements)
7685 (val_print_scalar_formatted, generic_val_print): Don't declare.
7686 * valprint.c (generic_val_print_array): Take a struct value.
7687 (generic_val_print_ptr, generic_val_print_memberptr)
7688 (generic_val_print_bool, generic_val_print_int)
7689 (generic_val_print_char, generic_val_print_complex)
7690 (generic_val_print): Remove.
7691 (generic_value_print): Update.
7692 (do_val_print): Remove unused parameters. Don't call
7693 la_val_print.
7694 (val_print): Remove.
7695 (common_val_print): Update. Don't call value_check_printable.
7696 (val_print_scalar_formatted, val_print_array_elements): Remove.
7697 * rust-lang.c (rust_val_print): Remove.
7698 (rust_language_defn): Update.
7699 * p-valprint.c (pascal_val_print): Remove.
7700 (pascal_value_print_inner): Update.
7701 (pascal_object_print_val_fields, pascal_object_print_val):
7702 Remove.
7703 (pascal_object_print_static_field): Update.
7704 * p-lang.h (pascal_val_print): Don't declare.
7705 * p-lang.c (pascal_language_defn): Update.
7706 * opencl-lang.c (opencl_language_defn): Update.
7707 * objc-lang.c (objc_language_defn): Update.
7708 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7709 * m2-lang.h (m2_val_print): Don't declare.
7710 * m2-lang.c (m2_language_defn): Update.
7711 * language.h (struct language_defn) <la_val_print>: Remove.
7712 * language.c (unk_lang_value_print_inner): Rename. Change
7713 argument types.
7714 (unknown_language_defn, auto_language_defn): Update.
7715 * go-valprint.c (go_val_print): Remove.
7716 * go-lang.h (go_val_print): Don't declare.
7717 * go-lang.c (go_language_defn): Update.
7718 * f-valprint.c (f_val_print): Remove.
7719 * f-lang.h (f_value_print): Don't declare.
7720 * f-lang.c (f_language_defn): Update.
7721 * d-valprint.c (d_val_print): Remove.
7722 * d-lang.h (d_value_print): Don't declare.
7723 * d-lang.c (d_language_defn): Update.
7724 * cp-valprint.c (cp_print_value_fields)
7725 (cp_print_value_fields_rtti, cp_print_value): Remove.
7726 (cp_print_static_field): Update.
7727 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7728 (c_val_print_struct, c_val_print_union, c_val_print_int)
7729 (c_val_print_memberptr, c_val_print): Remove.
7730 * c-lang.h (c_val_print_array, cp_print_value_fields)
7731 (cp_print_value_fields_rtti): Don't declare.
7732 * c-lang.c (c_language_defn, cplus_language_defn)
7733 (asm_language_defn, minimal_language_defn): Update.
7734 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7735 (ada_val_print_enum): Take a struct value.
7736 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7737 (ada_val_print): Remove.
7738 (ada_value_print_1): Update.
7739 (printable_val_type): Remove.
7740 * ada-lang.h (ada_val_print): Don't declare.
7741 * ada-lang.c (ada_language_defn): Update.
7742
7743 2020-03-13 Tom Tromey <tom@tromey.com>
7744
7745 * valprint.c (do_val_print): Update.
7746 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7747 a struct value.
7748 (value_to_value_object_no_release): Declare.
7749 * python/py-value.c (value_to_value_object_no_release): New
7750 function.
7751 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7752 struct value.
7753 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7754 function.
7755 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7756 a struct value.
7757 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7758 Declare.
7759 (gdbscm_apply_val_pretty_printer): Take a struct value.
7760 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7761 value.
7762 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7763 value.
7764 * extension-priv.h (struct extension_language_ops)
7765 <apply_val_pretty_printer>: Take a struct value.
7766 * cp-valprint.c (cp_print_value): Create a struct value.
7767 (cp_print_value): Update.
7768
7769 2020-03-13 Tom Tromey <tom@tromey.com>
7770
7771 * ada-valprint.c (print_field_values): Call common_val_print.
7772
7773 2020-03-13 Tom Tromey <tom@tromey.com>
7774
7775 * ada-valprint.c (val_print_packed_array_elements): Remove
7776 bitoffset and val parameters. Call common_val_print.
7777 (ada_val_print_string): Remove offset, address, and original_value
7778 parameters.
7779 (ada_val_print_array): Update.
7780 (ada_value_print_array): New function.
7781 (ada_value_print_1): Call it.
7782
7783 2020-03-13 Tom Tromey <tom@tromey.com>
7784
7785 * ada-valprint.c (ada_value_print): Use common_val_print.
7786
7787 2020-03-13 Tom Tromey <tom@tromey.com>
7788
7789 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7790
7791 2020-03-13 Tom Tromey <tom@tromey.com>
7792
7793 * ada-valprint.c (ada_value_print_num): New function.
7794 (ada_value_print_1): Use it.
7795
7796 2020-03-13 Tom Tromey <tom@tromey.com>
7797
7798 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7799
7800 2020-03-13 Tom Tromey <tom@tromey.com>
7801
7802 * ada-valprint.c (ada_value_print_ptr): New function.
7803 (ada_value_print_1): Use it.
7804
7805 2020-03-13 Tom Tromey <tom@tromey.com>
7806
7807 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7808 call common_val_print.
7809 (ada_val_print_1): Update.
7810 (ada_value_print_1): New function.
7811 (ada_value_print_inner): Rewrite.
7812
7813 2020-03-13 Tom Tromey <tom@tromey.com>
7814
7815 * cp-valprint.c (cp_print_value_fields): Update.
7816 (cp_print_value): New function.
7817
7818 2020-03-13 Tom Tromey <tom@tromey.com>
7819
7820 * m2-valprint.c (m2_value_print_inner): Use
7821 cp_print_value_fields.
7822 * cp-valprint.c (cp_print_value_fields): New function.
7823 * c-valprint.c (c_value_print_struct): New function.
7824 (c_value_print_inner): Use c_value_print_struct.
7825 * c-lang.h (cp_print_value_fields): Declare.
7826
7827 2020-03-13 Tom Tromey <tom@tromey.com>
7828
7829 * c-valprint.c (c_value_print_array): 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_memberptr): 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_int): New function.
7840 (c_value_print_inner): Use it.
7841
7842 2020-03-13 Tom Tromey <tom@tromey.com>
7843
7844 * c-valprint.c (c_value_print_ptr): New function.
7845 (c_value_print_inner): Use it.
7846
7847 2020-03-13 Tom Tromey <tom@tromey.com>
7848
7849 * c-valprint.c (c_value_print_inner): Rewrite.
7850
7851 2020-03-13 Tom Tromey <tom@tromey.com>
7852
7853 * valprint.c (generic_value_print_complex): New function.
7854 (generic_value_print): Use it.
7855
7856 2020-03-13 Tom Tromey <tom@tromey.com>
7857
7858 * valprint.c (generic_val_print_float): Don't call
7859 val_print_scalar_formatted.
7860 (generic_val_print, generic_value_print): Update.
7861
7862 2020-03-13 Tom Tromey <tom@tromey.com>
7863
7864 * valprint.c (generic_value_print_char): New function
7865 (generic_value_print): Use it.
7866
7867 2020-03-13 Tom Tromey <tom@tromey.com>
7868
7869 * valprint.c (generic_value_print_int): New function.
7870 (generic_value_print): Use it.
7871
7872 2020-03-13 Tom Tromey <tom@tromey.com>
7873
7874 * valprint.c (generic_value_print_bool): New function.
7875 (generic_value_print): Use it.
7876
7877 2020-03-13 Tom Tromey <tom@tromey.com>
7878
7879 * valprint.c (generic_val_print_func): Simplify.
7880 (generic_val_print, generic_value_print): Update.
7881
7882 2020-03-13 Tom Tromey <tom@tromey.com>
7883
7884 * valprint.c (generic_val_print_flags): Remove.
7885 (generic_val_print, generic_value_print): Update.
7886 (val_print_type_code_flags): Add original_value parameter.
7887
7888 2020-03-13 Tom Tromey <tom@tromey.com>
7889
7890 * valprint.c (generic_val_print): Update.
7891 (generic_value_print): Update.
7892 * valprint.c (generic_val_print_enum): Don't call
7893 val_print_scalar_formatted.
7894
7895 2020-03-13 Tom Tromey <tom@tromey.com>
7896
7897 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7898 * valprint.c (generic_value_print_ptr): New function.
7899
7900 2020-03-13 Tom Tromey <tom@tromey.com>
7901
7902 * valprint.c (generic_value_print): Rewrite.
7903
7904 2020-03-13 Tom Tromey <tom@tromey.com>
7905
7906 * p-valprint.c (pascal_object_print_value_fields)
7907 (pascal_object_print_value): New functions.
7908
7909 2020-03-13 Tom Tromey <tom@tromey.com>
7910
7911 * p-valprint.c (pascal_value_print_inner): Rewrite.
7912
7913 2020-03-13 Tom Tromey <tom@tromey.com>
7914
7915 * f-valprint.c (f_value_print_innner): Rewrite.
7916
7917 2020-03-13 Tom Tromey <tom@tromey.com>
7918
7919 * m2-valprint.c (m2_print_unbounded_array): New overload.
7920 (m2_print_unbounded_array): Update.
7921 (m2_print_array_contents): Take a struct value.
7922 (m2_value_print_inner): Rewrite.
7923
7924 2020-03-13 Tom Tromey <tom@tromey.com>
7925
7926 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7927 (d_value_print_inner): New function.
7928 * d-lang.h (d_value_print_inner): Declare.
7929 * d-lang.c (d_language_defn): Use d_value_print_inner.
7930
7931 2020-03-13 Tom Tromey <tom@tromey.com>
7932
7933 * go-valprint.c (go_value_print_inner): New function.
7934 * go-lang.h (go_value_print_inner): Declare.
7935 * go-lang.c (go_language_defn): Use go_value_print_inner.
7936
7937 2020-03-13 Tom Tromey <tom@tromey.com>
7938
7939 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7940 API.
7941 (rust_val_print): Rewrite.
7942 (rust_value_print_inner): New function, from rust_val_print.
7943 (rust_language_defn): Use rust_value_print_inner.
7944
7945 2020-03-13 Tom Tromey <tom@tromey.com>
7946
7947 * ada-valprint.c (ada_value_print_inner): New function.
7948 * ada-lang.h (ada_value_print_inner): Declare.
7949 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7950
7951 2020-03-13 Tom Tromey <tom@tromey.com>
7952
7953 * f-valprint.c (f_value_print_innner): New function.
7954 * f-lang.h (f_value_print_innner): Declare.
7955 * f-lang.c (f_language_defn): Use f_value_print_innner.
7956
7957 2020-03-13 Tom Tromey <tom@tromey.com>
7958
7959 * p-valprint.c (pascal_value_print_inner): New function.
7960 * p-lang.h (pascal_value_print_inner): Declare.
7961 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7962
7963 2020-03-13 Tom Tromey <tom@tromey.com>
7964
7965 * m2-valprint.c (m2_value_print_inner): New function.
7966 * m2-lang.h (m2_value_print_inner): Declare.
7967 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7968
7969 2020-03-13 Tom Tromey <tom@tromey.com>
7970
7971 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7972 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7973 * c-valprint.c (c_value_print_inner): New function.
7974 * c-lang.h (c_value_print_inner): Declare.
7975 * c-lang.c (c_language_defn, cplus_language_defn)
7976 (asm_language_defn, minimal_language_defn): Use
7977 c_value_print_inner.
7978
7979 2020-03-13 Tom Tromey <tom@tromey.com>
7980
7981 * p-valprint.c (pascal_object_print_value_fields): Now static.
7982 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7983
7984 2020-03-13 Tom Tromey <tom@tromey.com>
7985
7986 * c-valprint.c (c_val_print_array): Simplify.
7987
7988 2020-03-13 Tom Tromey <tom@tromey.com>
7989
7990 * valprint.c (value_print_array_elements): New function.
7991 * valprint.h (value_print_array_elements): Declare.
7992
7993 2020-03-13 Tom Tromey <tom@tromey.com>
7994
7995 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7996 * mips-tdep.c (mips_print_register): Use
7997 value_print_scalar_formatted.
7998
7999 2020-03-13 Tom Tromey <tom@tromey.com>
8000
8001 * valprint.h (value_print_scalar_formatted): Declare.
8002 * valprint.c (value_print_scalar_formatted): New function.
8003
8004 2020-03-13 Tom Tromey <tom@tromey.com>
8005
8006 * valprint.h (generic_value_print): Declare.
8007 * valprint.c (generic_value_print): New function.
8008
8009 2020-03-13 Tom Tromey <tom@tromey.com>
8010
8011 * valprint.c (do_val_print): Call la_value_print_inner, if
8012 available.
8013 * rust-lang.c (rust_language_defn): Update.
8014 * p-lang.c (pascal_language_defn): Update.
8015 * opencl-lang.c (opencl_language_defn): Update.
8016 * objc-lang.c (objc_language_defn): Update.
8017 * m2-lang.c (m2_language_defn): Update.
8018 * language.h (struct language_defn) <la_value_print_inner>: New
8019 member.
8020 * language.c (unknown_language_defn, auto_language_defn): Update.
8021 * go-lang.c (go_language_defn): Update.
8022 * f-lang.c (f_language_defn): Update.
8023 * d-lang.c (d_language_defn): Update.
8024 * c-lang.c (c_language_defn, cplus_language_defn)
8025 (asm_language_defn, minimal_language_defn): Update.
8026 * ada-lang.c (ada_language_defn): Update.
8027
8028 2020-03-13 Tom Tromey <tom@tromey.com>
8029
8030 * c-valprint.c (c_value_print): Use common_val_print.
8031
8032 2020-03-13 Tom Tromey <tom@tromey.com>
8033
8034 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8035
8036 2020-03-13 Tom Tromey <tom@tromey.com>
8037
8038 * f-valprint.c (f77_print_array_1, f_val_print): Use
8039 common_val_print.
8040
8041 2020-03-13 Tom Tromey <tom@tromey.com>
8042
8043 * riscv-tdep.c (riscv_print_one_register_info): Use
8044 common_val_print.
8045
8046 2020-03-13 Tom Tromey <tom@tromey.com>
8047
8048 * mi/mi-main.c (output_register): Use common_val_print.
8049
8050 2020-03-13 Tom Tromey <tom@tromey.com>
8051
8052 * infcmd.c (default_print_one_register_info): Use
8053 common_val_print.
8054
8055 2020-03-13 Tom Tromey <tom@tromey.com>
8056
8057 * valprint.h (common_val_print_checked): Declare.
8058 * valprint.c (common_val_print_checked): New function.
8059 * stack.c (print_frame_arg): Use common_val_print_checked.
8060
8061 2020-03-13 Tom Tromey <tom@tromey.com>
8062
8063 * valprint.c (do_val_print): New function, from val_print.
8064 (val_print): Use do_val_print.
8065 (common_val_print): Use do_val_print.
8066
8067 2020-03-13 Tom Tromey <tom@tromey.com>
8068
8069 * valprint.c (value_print): Use scoped_value_mark.
8070
8071 2020-03-13 Tom de Vries <tdevries@suse.de>
8072
8073 PR symtab/25646
8074 * psymtab.c (partial_symtab::partial_symtab): Don't set
8075 globals_offset and statics_offset. Push element onto
8076 current_global_psymbols and current_static_psymbols stacks.
8077 (concat): New function.
8078 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8079 element from current_global_psymbols and current_static_psymbols
8080 stacks. Concat popped elements to global_psymbols and
8081 static_symbols.
8082 (add_psymbol_to_list): Use current_global_psymbols and
8083 current_static_psymbols stacks.
8084 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8085 current_static_psymbols fields.
8086
8087 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8088
8089 * corelow.c (sniff_core_bfd): Remove.
8090 (class core_target) <m_core_vec>: Remove.
8091 (core_target::core_target): Update.
8092 (core_file_fns): Remove.
8093 (deprecated_add_core_fns): Remove.
8094 (default_core_sniffer): Remove.
8095 (sniff_core_bfd): Remove.
8096 (default_check_format): Remove.
8097 (gdb_check_format): Remove.
8098 (core_target_open): Update.
8099 (core_target::get_core_register_section): Update.
8100 (get_core_registers_cb): Update.
8101 (core_target::fetch_registers): Update.
8102 * gdbcore.h (struct core_fns): Remove.
8103 (deprecated_add_core_fns): Remove.
8104 (default_core_sniffer): Remove.
8105 (default_check_format): Remove.
8106
8107 2020-03-12 Tom Tromey <tom@tromey.com>
8108
8109 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8110 CORE_ADDR.
8111 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8112
8113 2020-03-12 Tom Tromey <tom@tromey.com>
8114
8115 * remote.c (remote_target::download_tracepoint)
8116 (remote_target::enable_tracepoint)
8117 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8118 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8119 sprintf_vma.
8120
8121 2020-03-12 Tom Tromey <tom@tromey.com>
8122
8123 * symfile-mem.c: Update CORE_ADDR size assert.
8124
8125 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8126
8127 * selftest.m4: Move to gdbsupport/.
8128 * acinclude.m4: Update path to selftest.m4.
8129
8130 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8131
8132 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8133 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8134 gdbarch-selfselftests.c and selftest-arch.c.
8135 (SUBDIR_UNITTESTS_OBS): Rename to...
8136 (SELFTESTS_OBS): ... this.
8137 (COMMON_SFILES): Remove disasm-selftests.c and
8138 gdbarch-selftests.c.
8139 * configure.ac: Don't add selftest-arch.{c,o} to
8140 CONFIG_{SRCS,OBS}.
8141 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8142 preprocessor conditions.
8143
8144 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8145
8146 * configure.ac: Don't source bfd/development.sh.
8147 * selftest.m4: Modify comment.
8148 * configure: Re-generate.
8149
8150 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8151
8152 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8153 not "true" or "false".
8154 * configure: Re-generate.
8155
8156 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8157
8158 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8159 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8160 renamed to arm_nbsd_supply_gregset.
8161 (fetch_register): Update to call arm_nbsd_supply_gregset.
8162 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8163 (arm_netbsd_nat_target::fetch_registers): Update.
8164 (fetch_elfcore_registers): Removed.
8165 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8166 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8167 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8168 not require NetBSD system headers.
8169 (arm_nbsd_regset): New struct.
8170 (arm_nbsd_iterate_over_regset_sections): New function.
8171 (arm_netbsd_init_abi_common): Updated to call
8172 set_gdbarch_iterate_over_regset_sections.
8173 * arm-nbsd-tdep.h: New file.
8174
8175 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8176
8177 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8178 recursion.
8179
8180 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8181
8182 * configure: Re-generate.
8183
8184 2020-03-11 Tom Tromey <tromey@adacore.com>
8185
8186 * ada-typeprint.c (print_choices): Fix comment.
8187
8188 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8189
8190 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8191 previous item in the list, when the list has no items.
8192
8193 2020-03-11 Tom de Vries <tdevries@suse.de>
8194
8195 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8196 PROP_LOCLIST handling code.
8197
8198 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8199
8200 * buildsym-legacy.c (record_line): Pass extra parameter to
8201 record_line.
8202 * buildsym.c (buildsym_compunit::record_line): Take an extra
8203 parameter, reduce duplication in the line table, and record the
8204 is_stmt flag in the line table.
8205 * buildsym.h (buildsym_compunit::record_line): Add extra
8206 parameter.
8207 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8208 non-statement lines.
8209 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8210 this to the symtab builder.
8211 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8212 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8213 through to dwarf_record_line_1.
8214 * infrun.c (process_event_stop_test): When stepping, don't stop at
8215 a non-statement instruction, and only refresh the step info when
8216 we land in the middle of a line's range. Also add an extra
8217 comment.
8218 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8219 field.
8220 * record-btrace.c (btrace_find_line_range): Only record lines
8221 marked as is-statement.
8222 * stack.c (frame_show_address): Show the frame address if we are
8223 in a non-statement sal.
8224 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8225 (maintenance_print_one_line_table): Print a header for the is_stmt
8226 column, and include is_stmt information in the output.
8227 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8228 preference to non-statements.
8229 (find_pcs_for_symtab_line): Prefer is-statement entries.
8230 (find_line_common): Likewise.
8231 * symtab.h (struct linetable_entry): Add is_stmt field.
8232 (struct symtab_and_line): Likewise.
8233 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8234 arranging the line table.
8235
8236 2020-03-07 Tom de Vries <tdevries@suse.de>
8237
8238 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8239 DIE.
8240
8241 2020-03-07 Tom Tromey <tom@tromey.com>
8242
8243 * valops.c (value_literal_complex): Remove obsolete comment.
8244 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8245 comment.
8246
8247 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8248
8249 * infrun.h: Forward-declare thread_info.
8250 (set_step_info): Add thread_info parameter, add doc.
8251 * infrun.c (set_step_info): Add thread_info parameter, move doc
8252 to header.
8253 * infrun.c (process_event_stop_test): Pass thread to
8254 set_step_info call.
8255 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8256 set_step_info.
8257 (prepare_one_step): Add thread_info parameter, pass it to
8258 set_step_frame and prepare_one_step (recursive) call.
8259 (step_1): Pass thread to prepare_one_step call.
8260 (step_command_fsm::should_stop): Pass thread to
8261 prepare_one_step.
8262 (until_next_fsm): Pass thread to set_step_frame call.
8263 (finish_command): Pass thread to set_step_info call.
8264
8265 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8266
8267 * windows-tdep.c (windows_solib_create_inferior_hook):
8268 Check if inferior is running.
8269
8270 2020-03-06 Tom de Vries <tdevries@suse.de>
8271
8272 * NEWS: Fix "the the".
8273 * ctfread.c: Same.
8274
8275 2020-03-06 Tom de Vries <tdevries@suse.de>
8276
8277 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8278
8279 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8280
8281 * .dir-locals.el: Add a comment referencing the other copies of
8282 this file.
8283
8284 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8285
8286 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8287 psargs.
8288
8289 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8290
8291 * .gitattributes: New file.
8292
8293 2020-03-04 Tom Tromey <tom@tromey.com>
8294
8295 * symmisc.c (print_symbol_bcache_statistics)
8296 (print_objfile_statistics): Update.
8297 * symfile.c (allocate_symtab): Use intern.
8298 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8299 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8300 macro_cache>: Remove.
8301 <string_cache>: New member.
8302 (struct objfile) <intern>: New methods.
8303 * elfread.c (elf_symtab_read): Use intern.
8304 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8305 (dwarf2_compute_name, dwarf2_physname)
8306 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8307 names.
8308 (guess_partial_die_structure_name): Update.
8309 (partial_die_info::fixup): Intern name.
8310 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8311 name.
8312 (dwarf2_name): Intern name. Update.
8313 * buildsym.c (buildsym_compunit::get_macro_table): Use
8314 string_cache.
8315
8316 2020-03-04 Tom Tromey <tom@tromey.com>
8317
8318 * jit.c (bfd_open_from_target_memory): Make "target" const.
8319 * corefile.c (gnutarget): Now const.
8320 * gdbcore.h (gnutarget): Now const.
8321
8322 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8323
8324 * NEWS: Mention support for WOW64 processes.
8325 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8326 (amd64_windows_segment_register_p): Remove static.
8327 (_initialize_amd64_windows_nat): Update.
8328 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8329 * i386-windows-nat.c (context_offset): Update.
8330 (i386_mappings): Rename and remove static.
8331 (i386_windows_segment_register_p): Remove static.
8332 (_initialize_i386_windows_nat): Update.
8333 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8334 (STATUS_WX86_SINGLE_STEP): New macro.
8335 (EnumProcessModulesEx): New macro.
8336 (Wow64SuspendThread): New macro.
8337 (Wow64GetThreadContext): New macro.
8338 (Wow64SetThreadContext): New macro.
8339 (Wow64GetThreadSelectorEntry): New macro.
8340 (windows_set_context_register_offsets): Add static.
8341 (windows_set_segment_register_p): Likewise.
8342 (windows_add_thread): Adapt for WOW64 processes.
8343 (windows_fetch_one_register): Likewise.
8344 (windows_nat_target::fetch_registers): Likewise.
8345 (windows_store_one_register): Likewise.
8346 (display_selector): Likewise.
8347 (display_selectors): Likewise.
8348 (handle_exception): Likewise.
8349 (windows_continue): Likewise.
8350 (windows_nat_target::resume): Likewise.
8351 (windows_add_all_dlls): Likewise.
8352 (do_initial_windows_stuff): Likewise.
8353 (windows_nat_target::attach): Likewise.
8354 (windows_get_exec_module_filename): Likewise.
8355 (windows_nat_target::create_inferior): Likewise.
8356 (windows_xfer_siginfo): Likewise.
8357 (_initialize_loadable): Initialize Wow64SuspendThread,
8358 Wow64GetThreadContext, Wow64SetThreadContext,
8359 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8360 * windows-nat.h (windows_set_context_register_offsets):
8361 Remove declaration.
8362 (windows_set_segment_register_p): Likewise.
8363 (i386_windows_segment_register_p): Add declaration.
8364 (amd64_windows_segment_register_p): Likewise.
8365
8366 2020-03-04 Luis Machado <luis.machado@linaro.org>
8367
8368 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8369 in "info registers" for AArch64/ARM.
8370
8371 The change caused "info registers" to not print GPR's.
8372
8373 gdb/ChangeLog:
8374
8375 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8376
8377 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8378 when reg->group is empty and reggroup is not.
8379
8380 2020-03-03 Tom Tromey <tromey@adacore.com>
8381
8382 * dwarf2/frame.c (struct dwarf2_frame_cache)
8383 <checked_tailcall_bottom, entry_cfa_sp_offset,
8384 entry_cfa_sp_offset_p>: Remove members.
8385 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8386 (dwarf2_frame_prev_register): Don't call
8387 dwarf2_tailcall_sniffer_first.
8388 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8389 * frame-unwind.c (add_unwinder): New fuction.
8390 (frame_unwind_init): Use it. Add tailcall unwinder.
8391
8392 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8393 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8394
8395 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8396 value should be printed as true.
8397
8398 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8399
8400 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8401 (windows_init_abi): Set and use windows_so_ops.
8402
8403 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8404
8405 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8406 when verifying if dealing with a convenience variable.
8407
8408 2020-03-03 Luis Machado <luis.machado@linaro.org>
8409
8410 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8411
8412 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8413
8414 * infrun.c (gdbarch_supports_displaced_stepping): New.
8415 (use_displaced_stepping): Break up conditions in smaller pieces.
8416 Use gdbarch_supports_displaced_stepping.
8417 (displaced_step_prepare_throw): Use
8418 gdbarch_supports_displaced_stepping.
8419
8420 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8421
8422 * NEWS: Mention new behaviour of the history filename.
8423 * top.c (write_history_p): Add comment.
8424 (show_write_history_p): Add header comment, give a different
8425 message when history writing is on, but the history filename is
8426 empty.
8427 (history_filename): Add comment.
8428 (history_filename_empty): New function.
8429 (show_history_filename): Add header comment, give a different
8430 message when the filename is empty.
8431 (init_history): Compare history_filename against nullptr, and only
8432 read history if the filename is not empty.
8433 (set_history_filename): Add header comment, and only make
8434 non-empty filenames absolute.
8435 (init_main): Make the filename argument to 'set history filename'
8436 optional.
8437
8438 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8439
8440 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8441 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8442 (fetch_fp_register): Update.
8443 (fetch_fp_regs): Update.
8444 (store_fp_register): Update.
8445 (store_fp_regs): Update.
8446 (arm_netbsd_nat_target::read_description): New function.
8447 (fetch_elfcore_registers): Update.
8448
8449 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8450
8451 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8452 general_thread if the stop reply is missing a thread-id.
8453 (remote_target::process_stop_reply): Use the first non-exited
8454 thread if the target didn't pass a thread-id.
8455 * infrun.c (do_target_wait): Move call to
8456 switch_to_inferior_no_thread to ....
8457 (do_target_wait_1): ... here.
8458
8459 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8460
8461 * debuginfod-support.c: Include defs.h first.
8462
8463 2020-02-28 Tom de Vries <tdevries@suse.de>
8464
8465 * symfile.c (set_initial_language): Use default language for lookup.
8466
8467 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8468
8469 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8470 reader variable, pass `this` to read_cutu_die_from_dwo.
8471
8472 2020-02-27 Aaron Merey <amerey@redhat.com>
8473
8474 * source.c (open_source_file): Check for nullptr when computing
8475 srcpath.
8476
8477 2020-02-27 Tom Tromey <tromey@adacore.com>
8478
8479 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8480 member.
8481 (dwarf2_add_field): Don't update nfields.
8482 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8483
8484 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8485
8486 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8487 abs.
8488
8489 2020-02-26 Tom Tromey <tom@tromey.com>
8490
8491 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8492 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8493 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8494 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8495 per_cu_data.
8496
8497 2020-02-26 Tom Tromey <tom@tromey.com>
8498
8499 * dwarf2/index-write.c (psym_index_map): Change type.
8500 (add_address_entry_worker, write_one_signatured_type)
8501 (recursively_count_psymbols, recursively_write_psymbols)
8502 (class debug_names, psyms_seen_size, write_gdbindex)
8503 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8504
8505 2020-02-26 Aaron Merey <amerey@redhat.com>
8506
8507 * Makefile.in: Handle optional debuginfod support.
8508 * NEWS: Update.
8509 * README: Add --with-debuginfod summary.
8510 * config.in: Regenerate.
8511 * configure: Regenerate.
8512 * configure.ac: Handle optional debuginfod support.
8513 * debuginfod-support.c: debuginfod helper functions.
8514 * debuginfod-support.h: Ditto.
8515 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8516 summary.
8517 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8518 when a dwz file cannot be found.
8519 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8520 debuginfo file cannot be found.
8521 * source.c (open_source_file): Query debuginfod servers when a
8522 source file cannot be found.
8523 * top.c (print_gdb_configuration): Include
8524 --{with,without}-debuginfod in the output.
8525
8526 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8527
8528 * thread.c (thr_try_catch_cmd): Print thread name.
8529
8530 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8531
8532 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8533 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8534 dwarf2_fetch_die_type_sect_off): Move to...
8535 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8536 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8537 dwarf2_fetch_die_type_sect_off): ... here.
8538 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8539 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8540 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8541
8542 2020-02-26 Tom de Vries <tdevries@suse.de>
8543
8544 PR gdb/25603
8545 * symfile.c (set_initial_language): Exit-early if
8546 language_mode == language_mode_manual.
8547
8548 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8549
8550 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8551 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8552 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8553
8554 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8555
8556 * gdbtypes.c (create_array_type_with_stride): Handle negative
8557 array strides.
8558 * valarith.c (value_subscripted_rvalue): Likewise.
8559
8560 2020-02-25 Luis Machado <luis.machado@linaro.org>
8561
8562 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8563
8564 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8565
8566 * loc.h (dwarf2_get_die_type): Move to...
8567 * read.h (dwarf2_get_die_type): ... here.
8568 * read.c (dwarf2_get_die_type): Move doc to header.
8569
8570 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8571
8572 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8573 'gnulib/Makefile.in' to the list.
8574
8575 2020-02-24 Tom Tromey <tom@tromey.com>
8576
8577 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8578 Remove.
8579 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8580 XOBNEWVEC.
8581
8582 2020-02-24 Tom Tromey <tom@tromey.com>
8583
8584 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8585 New method.
8586 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8587 (dw2_do_instantiate_symtab, dw2_get_file_names)
8588 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8589
8590 2020-02-24 Tom Tromey <tom@tromey.com>
8591
8592 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8593 make_scoped_restore.
8594 (dwarf2_psymtab::read_symtab): Don't clear
8595 reading_partial_symbols.
8596
8597 2020-02-24 Tom de Vries <tdevries@suse.de>
8598
8599 PR gdb/25592
8600 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8601
8602 2020-02-24 Tom de Vries <tdevries@suse.de>
8603
8604 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8605 commands layout next/prev/regs.
8606
8607 2020-02-22 Tom Tromey <tom@tromey.com>
8608
8609 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8610 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8611
8612 2020-02-22 Tom Tromey <tom@tromey.com>
8613
8614 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8615
8616 2020-02-22 Tom Tromey <tom@tromey.com>
8617
8618 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8619 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8620 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8621 * tui/tui.c (_initialize_tui): Add usage text.
8622
8623 2020-02-22 Tom Tromey <tom@tromey.com>
8624
8625 * tui/tui-win.c (tui_set_focus_command)
8626 (tui_set_win_height_command): Use error_no_arg.
8627 (_initialize_tui_win): Update help text.
8628 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8629
8630 2020-02-22 Tom Tromey <tom@tromey.com>
8631
8632 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8633 * tui/tui-disasm.h (struct tui_disasm_window)
8634 <display_start_addr>: Declare.
8635 * tui/tui-source.h (struct tui_source_window)
8636 <display_start_addr>: Declare.
8637 * tui/tui-winsource.h (struct tui_source_window_base)
8638 <show_source_line, display_start_addr>: New methods.
8639 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8640 Rename and move to protected section.
8641 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8642 (tui_source_window_base::do_erase_source_content): Update.
8643 (tui_source_window_base::show_source_line): Now a method.
8644 (tui_source_window_base::show_source_content)
8645 (tui_source_window_base::tui_source_window_base)
8646 (tui_source_window_base::rerender)
8647 (tui_source_window_base::refill)
8648 (tui_source_window_base::do_scroll_horizontal)
8649 (tui_source_window_base::set_is_exec_point_at)
8650 (tui_source_window_base::update_breakpoint_info)
8651 (tui_source_window_base::update_exec_info): Update.
8652 * tui/tui-source.c (tui_source_window::set_contents)
8653 (tui_source_window::showing_source_p)
8654 (tui_source_window::do_scroll_vertical)
8655 (tui_source_window::location_matches_p)
8656 (tui_source_window::line_is_displayed): Update.
8657 (tui_source_window::display_start_addr): New method.
8658 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8659 (tui_disasm_window::do_scroll_vertical)
8660 (tui_disasm_window::location_matches_p): Update.
8661 (tui_disasm_window::display_start_addr): New method.
8662
8663 2020-02-22 Tom Tromey <tom@tromey.com>
8664
8665 * NEWS: Add entry for gdb.register_window_type.
8666 * tui/tui-layout.h (window_factory): New typedef.
8667 (tui_register_window): Declare.
8668 * tui/tui-layout.c (saved_tui_windows): New global.
8669 (tui_apply_current_layout): Use it.
8670 (tui_register_window): New function.
8671 * python/python.c (do_start_initialization): Call
8672 gdbpy_initialize_tui.
8673 (python_GdbMethods): Add "register_window_type" function.
8674 * python/python-internal.h (gdbpy_register_tui_window)
8675 (gdbpy_initialize_tui): Declare.
8676 * python/py-tui.c: New file.
8677 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8678
8679 2020-02-22 Tom Tromey <tom@tromey.com>
8680
8681 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8682
8683 2020-02-22 Tom Tromey <tom@tromey.com>
8684
8685 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8686 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8687 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8688 (tui_set_win_focus_to): Move from tui-win.c.
8689
8690 2020-02-22 Tom Tromey <tom@tromey.com>
8691
8692 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8693 functions.
8694 (known_window_types): New global.
8695 (tui_get_window_by_name): Reimplement.
8696 (initialize_known_windows): New function.
8697 (validate_window_name): Rewrite.
8698 (_initialize_tui_layout): Call initialize_known_windows.
8699
8700 2020-02-22 Tom Tromey <tom@tromey.com>
8701
8702 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8703 Remove constants.
8704 * tui/tui-winsource.h (struct tui_source_window_base)
8705 <tui_source_window_base>: Remove parameter.
8706 * tui/tui-winsource.c
8707 (tui_source_window_base::tui_source_window_base): Remove
8708 parameter.
8709 (tui_source_window_base::refill): Update.
8710 * tui/tui-stack.h (struct tui_locator_window)
8711 <tui_locator_window>: Update.
8712 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8713 Default the constructor.
8714 * tui/tui-regs.h (struct tui_data_item_window)
8715 <tui_data_item_window>: Default the constructor.
8716 (struct tui_data_window) <tui_data_window>: Likewise.
8717 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8718 Default the constructor.
8719 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8720 Default the constructor.
8721 <type>: Remove.
8722 (struct tui_win_info) <tui_win_info>: Default the constructor.
8723 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8724 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8725 Default the constructor.
8726
8727 2020-02-22 Tom Tromey <tom@tromey.com>
8728
8729 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8730 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8731 * tui/tui-win.c (tui_resize_all): Don't call
8732 tui_delete_invisible_windows.
8733 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8734 done.
8735 (tui_set_layout): Update.
8736 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8737 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8738 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8739
8740 2020-02-22 Tom Tromey <tom@tromey.com>
8741
8742 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8743 correctly.
8744
8745 2020-02-22 Tom Tromey <tom@tromey.com>
8746
8747 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8748
8749 2020-02-22 Tom Tromey <tom@tromey.com>
8750
8751 * tui/tui-winsource.h (struct tui_source_window_iterator)
8752 <inner_iterator>: New etytypedef.
8753 <tui_source_window_iterator>: Take "end" parameter.
8754 <tui_source_window_iterator>: Take iterator.
8755 <operator*, advance>: Update.
8756 <m_iter>: Change type.
8757 <m_end>: New field.
8758 (struct tui_source_windows) <begin, end>: Update.
8759 * tui/tui-layout.c (tui_windows): New global.
8760 (tui_apply_current_layout): Clear tui_windows.
8761 (tui_layout_window::apply): Update tui_windows.
8762 * tui/tui-data.h (tui_windows): Declare.
8763 (all_tui_windows): Now inline function.
8764 (class tui_window_iterator, struct all_tui_windows): Remove.
8765
8766 2020-02-22 Tom Tromey <tom@tromey.com>
8767
8768 PR tui/17850:
8769 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8770 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8771 "height" argument.
8772 (class tui_layout_window) <get_sizes>: Likewise.
8773 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8774 argument.
8775 <get_sizes>: Add "height" argument.
8776 <m_vertical>: New field.
8777 * tui/tui-layout.c (tui_layout_split::clone): Update.
8778 (tui_layout_split::get_sizes): Add "height" argument.
8779 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8780 (tui_new_layout_command): Parse "-horizontal".
8781 (_initialize_tui_layout): Update help string.
8782 (tui_layout_split::specification): Add "-horizontal" when needed.
8783 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8784 argument.
8785 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8786 New methods.
8787
8788 2020-02-22 Tom Tromey <tom@tromey.com>
8789
8790 * tui/tui-layout.h (enum tui_adjust_result): New.
8791 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8792 (class tui_layout_window) <adjust_size>: Return
8793 tui_adjust_result. Rewrite.
8794 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8795 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8796
8797 2020-02-22 Tom Tromey <tom@tromey.com>
8798
8799 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8800 parameter and return types.
8801 (class tui_layout_base) <specification>: Add "depth".
8802 (class tui_layout_window) <specification>: Add "depth".
8803 (class tui_layout_split) <specification>: Add "depth".
8804 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8805 and return types.
8806 (tui_new_layout_command): Parse sub-layouts.
8807 (_initialize_tui_layout): Update help string.
8808 (tui_layout_window::specification): Add "depth".
8809 (add_layout_command): Update.
8810
8811 2020-02-22 Tom Tromey <tom@tromey.com>
8812
8813 * NEWS: Add "tui new-layout" item.
8814 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8815 Add new-layout command to help text.
8816 (validate_window_name): New function.
8817 (tui_new_layout_command): New function.
8818 (_initialize_tui_layout): Register "new-layout".
8819 (tui_layout_window::specification): New method.
8820 (tui_layout_window::specification): New method.
8821 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8822 method.
8823 (class tui_layout_window) <specification>: New method.
8824 (class tui_layout_split) <specification>: New method.
8825
8826 2020-02-22 Tom Tromey <tom@tromey.com>
8827
8828 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8829 * tui/tui-win.c (window_name_completer): Update comment.
8830 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8831 Declare method.
8832 (class tui_layout_window) <replace_window>: Likewise.
8833 (class tui_layout_split) <replace_window>: Likewise.
8834 (tui_set_layout): Don't declare.
8835 (tui_set_initial_layout): Declare function.
8836 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8837 (asm_regs_layout): New globals.
8838 (tui_current_layout, show_layout): Remove.
8839 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8840 (find_layout, tui_apply_layout): New function.
8841 (layout_completer): Remove.
8842 (tui_next_layout): Reimplement.
8843 (tui_next_layout_command): New function.
8844 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8845 (tui_regs_layout): Reimplement.
8846 (tui_regs_layout_command): New function.
8847 (extract_display_start_addr): Rewrite.
8848 (next_layout, prev_layout): Remove.
8849 (tui_layout_window::replace_window): New method.
8850 (tui_layout_split::replace_window): New method.
8851 (destroy_layout): New function.
8852 (layout_list): New global.
8853 (add_layout_command): New function.
8854 (initialize_layouts): Update.
8855 (tui_layout_command): New function.
8856 (_initialize_tui_layout): Install "layout" commands.
8857 * tui/tui-data.h (enum tui_layout_type): Remove.
8858 (tui_current_layout): Don't declare.
8859
8860 2020-02-22 Tom Tromey <tom@tromey.com>
8861
8862 * tui/tui-regs.c (tui_reg_layout): Remove.
8863 (tui_reg_command): Use tui_regs_layout.
8864 * tui/tui-layout.h (tui_reg_command): Declare.
8865 * tui/tui-layout.c (tui_reg_command): New function.
8866
8867 2020-02-22 Tom Tromey <tom@tromey.com>
8868
8869 * tui/tui.c (tui_rl_delete_other_windows): Call
8870 tui_remove_some_windows.
8871 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8872 Declare method.
8873 (class tui_layout_window) <remove_windows>: New method.
8874 (class tui_layout_split) <remove_windows>: Declare.
8875 (tui_remove_some_windows): Declare.
8876 * tui/tui-layout.c (tui_remove_some_windows): New function.
8877 (tui_layout_split::remove_windows): New method.
8878
8879 2020-02-22 Tom Tromey <tom@tromey.com>
8880
8881 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8882 * tui/tui-layout.h (tui_next_layout): Declare.
8883 * tui/tui-layout.c (tui_next_layout): New function.
8884
8885 2020-02-22 Tom Tromey <tom@tromey.com>
8886
8887 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8888 correct coordinates.
8889
8890 2020-02-22 Tom Tromey <tom@tromey.com>
8891
8892 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8893 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8894 DATA_WIN case.
8895
8896 2020-02-22 Tom Tromey <tom@tromey.com>
8897
8898 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8899 TUI_DISASM_WIN, not tui_win_list.
8900
8901 2020-02-22 Tom Tromey <tom@tromey.com>
8902
8903 * valprint.c (generic_val_print_enum_1)
8904 (val_print_type_code_flags): Style member names.
8905 * rust-lang.c (val_print_struct, rust_print_enum)
8906 (rust_print_struct_def, rust_internal_print_type): Style member
8907 names.
8908 * p-valprint.c (pascal_object_print_value_fields): Style member
8909 names. Only call fprintf_symbol_filtered for static members.
8910 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8911 * f-valprint.c (f_val_print): Style member names.
8912 * f-typeprint.c (f_type_print_base): Style member names.
8913 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8914 call fprintf_symbol_filtered for static members.
8915 (cp_print_class_member): Style member names.
8916 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8917 member names.
8918 * ada-valprint.c (ada_print_scalar): Style enum names.
8919 (ada_val_print_enum): Likewise.
8920 * ada-typeprint.c (print_enum_type): Style enum names.
8921
8922 2020-02-21 Tom Tromey <tom@tromey.com>
8923
8924 * psympriv.h (struct partial_symtab): Update comment.
8925
8926 2020-02-21 Tom Tromey <tromey@adacore.com>
8927
8928 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8929 type is CORE_ADDR.
8930
8931 2020-02-21 Tom de Vries <tdevries@suse.de>
8932
8933 PR gdb/25534
8934 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8935 if dependencies[i]->user != NULL.
8936
8937 2020-02-21 Ali Tamur <tamur@google.com>
8938
8939 * dwarf2/read.c (dwarf2_name): Add null check.
8940
8941 2020-02-20 Tom Tromey <tom@tromey.com>
8942
8943 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8944 ">=", in binary search.
8945 (dwarf2_find_containing_comp_unit): New overload.
8946 (run_test): New self-test.
8947 (_initialize_dwarf2_read): Register new test.
8948
8949 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8950
8951 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8952 * riscv-tdep.h: Likewise.
8953 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8954 rv32-only CSR.
8955 * features/riscv/64bit-csr.xml: Regenerated.
8956
8957 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8958 Tom Tromey <tom@tromey.com>
8959
8960 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8961 of 'fputc_unfiltered'.
8962 (putchar_unfiltered): Call 'fputc_unfiltered'.
8963 (fputc_unfiltered): Call 'fputs_unfiltered'.
8964
8965 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8966
8967 * config.in: Regenerate.
8968 * configure: Regenerate.
8969 * configure.ac: Add --with-python-libdir option.
8970 * main.c: Use WITH_PYTHON_LIBDIR.
8971
8972 2020-02-19 Tom Tromey <tom@tromey.com>
8973
8974 * symtab.c (general_symbol_info::compute_and_set_names): Use
8975 obstack_strndup. Simplify call to symbol_set_demangled_name.
8976
8977 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
8978
8979 * dwarf2/read.c (allocate_signatured_type_table,
8980 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8981 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8982 Remove objfile parameter, update all callers.
8983
8984 2020-02-19 Doug Evans <dje@google.com>
8985
8986 PR rust/25535
8987 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8988 rust_enum_variant calculation.
8989
8990 2020-02-19 Tom Tromey <tromey@adacore.com>
8991
8992 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8993
8994 2020-02-19 Tom Tromey <tromey@adacore.com>
8995
8996 * ada-lang.c (cache_symbol): Use obstack_strdup.
8997
8998 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8999
9000 * configure: Regenerate.
9001
9002 2020-02-19 Tom Tromey <tromey@adacore.com>
9003
9004 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9005 NULL check.
9006
9007 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9008
9009 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9010
9011 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9012
9013 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9014 if GDBSERVER is not defined.
9015 (riscv_tdesc_cache): Likewise, also store const target_desc.
9016 (STATIC_IN_GDB): Define.
9017 (riscv_create_target_description): Update declaration with
9018 STATIC_IN_GDB.
9019 (riscv_lookup_target_description): New function, only define if
9020 GDBSERVER is not defined.
9021 * arch/riscv.h (riscv_create_target_description): Declare only
9022 when GDBSERVER is defined.
9023 (riscv_lookup_target_description): New declaration when GDBSERVER
9024 is not defined.
9025 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9026 (riscv_linux_read_features): ...this, and return
9027 riscv_gdbarch_features instead of target_desc.
9028 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9029 (riscv_linux_read_description): Rename to...
9030 (riscv_linux_read_features): ...this.
9031 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9032 Update to use riscv_gdbarch_features and
9033 riscv_lookup_target_description.
9034 * riscv-tdep.c (riscv_find_default_target_description): Use
9035 riscv_lookup_target_description instead of
9036 riscv_create_target_description.
9037
9038 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9039
9040 * valprint.c (generic_val_print_enum_1): When printing a flag
9041 enum with value 0 and there is no enumerator with value 0, print
9042 just "0" instead of "(unknown: 0x0)".
9043
9044 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9045
9046 * valprint.c (generic_val_print_enum_1): Print unknown part of
9047 flag enum in hex.
9048
9049 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9050
9051 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9052 flag enums to contain duplicate enumerators.
9053 * valprint.c (generic_val_print_enum_1): Update comment.
9054
9055 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9056
9057 * dwarf2/read.c: Include "count-one-bits.h".
9058 (update_enumeration_type_from_children): If an enumerator has
9059 multiple bits set, don't treat the enumeration as a "flag enum".
9060 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9061 of flag enums have 0 or 1 bit set.
9062
9063 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9064
9065 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9066 conversion.
9067 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9068 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9069 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9070 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9071 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9072
9073 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9074
9075 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9076
9077 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9078
9079 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9080 displaced_step_closure_up.
9081 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9082 (struct displaced_step_closure_up):
9083 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9084 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9085 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9086 Likewise.
9087 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9088 * gdbarch.c, gdbarch.h: Re-generate.
9089 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9090 displaced_step_closure_up.
9091 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9092 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9093 * infrun.h (displaced_step_closure_up): New type alias.
9094 (struct displaced_step_inferior_state) <step_closure>: Change
9095 type to displaced_step_closure_up.
9096 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9097 displaced_step_closure_up.
9098 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9099
9100 2020-02-14 Tom Tromey <tom@tromey.com>
9101
9102 * minidebug.c (gnu_debug_key): New global.
9103 (find_separate_debug_file_in_section): Use it.
9104
9105 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9106
9107 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9108 std::unique_ptr.
9109 * gdbarch.c: Re-generate.
9110 * gdbarch.h: Re-generate.
9111 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9112 change.
9113 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9114 type to std::unique_ptr.
9115 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9116 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9117 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9118 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9119 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9120 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9121 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9122 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9123 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9124
9125 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9126
9127 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9128 std::unique_ptr.
9129 (displaced_step_clear): Rename to...
9130 (displaced_step_reset): ... this. Just call displaced->reset ().
9131 (displaced_step_clear_cleanup): Rename to...
9132 (displaced_step_reset_cleanup): ... this.
9133 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9134 (displaced_step_fixup): Likewise.
9135 (resume_1): Likewise.
9136 (handle_inferior_event): Restore child's memory before calling
9137 displaced_step_fixup on the parent.
9138 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9139 to std::unique_ptr.
9140 <step_closure>: Change type to std::unique_ptr.
9141
9142 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9143
9144 * arm-tdep.c: Include count-one-bits.h.
9145 (cleanup_block_store_pc): Use count_one_bits.
9146 (cleanup_block_load_pc): Use count_one_bits.
9147 (arm_copy_block_xfer): Use count_one_bits.
9148 (thumb2_copy_block_xfer): Use count_one_bits.
9149 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9150 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9151 (thumb_get_next_pcs_raw): Use count_one_bits.
9152 (arm_get_next_pcs_raw): Use count_one_bits_l.
9153 * arch/arm.c (bitcount): Remove.
9154 * arch/arm.h (bitcount): Remove.
9155
9156 2020-02-14 Tom Tromey <tromey@adacore.com>
9157
9158 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9159 Update.
9160 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9161 * dwarf2/loc.c (call_site_find_chain_1): Return
9162 unique_xmalloc_ptr.
9163 (call_site_find_chain): Likewise.
9164
9165 2020-02-14 Richard Biener <rguenther@suse.de>
9166
9167 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9168 on expression with division operators.
9169
9170 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9171
9172 * MAINTAINERS (Write After Approval): Adding myself.
9173
9174 2020-02-12 Tom Tromey <tom@tromey.com>
9175
9176 * event-loop.c (event_data, gdb_event, event_handler_func):
9177 Remove.
9178
9179 2020-02-12 Tom Tromey <tom@tromey.com>
9180
9181 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9182 (dwarf2_frame_objfile_data): Add comment.
9183 (find_comp_unit, set_comp_unit): New functions.
9184 (dwarf2_frame_find_fde): Use find_comp_unit.
9185 (dwarf2_build_frame_info): Use set_comp_unit.
9186
9187 2020-02-12 Tom Tromey <tom@tromey.com>
9188
9189 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9190 (comp_unit): Don't initialize objfile.
9191 (execute_cfa_program): Add text_offset parameter.
9192 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9193 (dwarf2_frame_cache): Update.
9194 (dwarf2_build_frame_info): Don't set "objfile" member.
9195
9196 2020-02-12 Tom Tromey <tom@tromey.com>
9197
9198 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9199 (decode_frame_entry): Likewise.
9200 (dwarf2_build_frame_info): Update.
9201
9202 2020-02-12 Tom Tromey <tom@tromey.com>
9203
9204 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9205 (decode_frame_entry_1): Use the comp_unit obstack.
9206
9207 2020-02-12 Tom Tromey <tom@tromey.com>
9208
9209 * dwarf2/frame.c (struct comp_unit): Add initializers and
9210 constructor.
9211 (dwarf2_frame_objfile_data): Store a comp_unit.
9212 (dwarf2_frame_find_fde): Update.
9213 (dwarf2_build_frame_info): Use "new".
9214
9215 2020-02-12 Tom Tromey <tom@tromey.com>
9216
9217 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9218 (dwarf2_fde_table): Typedef for std::vector.
9219 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9220 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9221 (decode_frame_entry): Update.
9222 (dwarf2_build_frame_info): Use "new".
9223
9224 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9225
9226 * arm-tdep.c (arm_gdbarch_init): Update.
9227 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9228 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9229 have_neon, is_m>: Change to bool.
9230
9231 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9232
9233 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9234
9235 2020-02-12 Tom Tromey <tom@tromey.com>
9236
9237 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9238
9239 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9240
9241 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9242 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9243
9244 2020-02-11 Tom Tromey <tom@tromey.com>
9245
9246 * psymtab.h: Update comment.
9247
9248 2020-02-11 Tom Tromey <tom@tromey.com>
9249
9250 * gdb_obstack.h (struct auto_obstack): Use
9251 DISABLE_COPY_AND_ASSIGN.
9252
9253 2020-02-11 Tom Tromey <tom@tromey.com>
9254
9255 * dwarf2/frame.h (struct objfile): Don't forward declare.
9256
9257 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9258
9259 * cris-tdep.c (cris_supply_gregset): Change signature to match
9260 what struct regset expects.
9261 (cris_regset): New struct.
9262 (fetch_core_registers): Remove.
9263 (cris_iterate_over_regset_sections): New function.
9264 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9265 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9266
9267 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9268
9269 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9270 registers.
9271
9272 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9273
9274 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9275
9276 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9277
9278 * configure: Re-generate.
9279
9280 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9281
9282 * configure: Re-generate.
9283
9284 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9285
9286 * acinclude: Update warning.m4 path.
9287 * warning.m4: Move to gdbsupport.
9288
9289 2020-02-11 Tom Tromey <tromey@adacore.com>
9290
9291 * remote.c (remote_console_output): Update.
9292 * printcmd.c (printf_command): Update.
9293 * event-loop.c (gdb_wait_for_event): Update.
9294 * linux-nat.c (sigchld_handler): Update.
9295 * remote-sim.c (gdb_os_write_stdout): Update.
9296 (gdb_os_flush_stdout): Update.
9297 (gdb_os_flush_stderr): Update.
9298 (gdb_os_write_stderr): Update.
9299 * exceptions.c (print_exception): Update.
9300 * remote-fileio.c (remote_fileio_func_read): Update.
9301 (remote_fileio_func_write): Update.
9302 * tui/tui.c (tui_enable): Update.
9303 * tui/tui-interp.c (tui_interp::init): Update.
9304 * utils.c (init_page_info): Update.
9305 (putchar_unfiltered, fputc_unfiltered): Update.
9306 (gdb_flush): Update.
9307 (emit_style_escape): Update.
9308 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9309 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9310 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9311 (stderr_file::write): Update.
9312 (stderr_file::puts): Update.
9313 * ui-file.h (ui_file_isatty, ui_file_write)
9314 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9315 (ui_file_puts): Don't declare.
9316
9317 2020-02-10 Tom de Vries <tdevries@suse.de>
9318
9319 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9320 sentinel to char *.
9321
9322 2020-02-09 Tom de Vries <tdevries@suse.de>
9323
9324 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9325 filename if it matches "<artificial>".
9326
9327 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9328
9329 * windows-tdep.c (struct enum_value_name): New struct.
9330 (create_enum): New function.
9331 (windows_get_siginfo_type): Create and use enum types.
9332
9333 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9334
9335 * NEWS: Mention $_siginfo support for Windows.
9336 * windows-nat.c (handle_exception): Set siginfo_er.
9337 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9338 (windows_xfer_siginfo): New function.
9339 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9340 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9341 (init_windows_gdbarch_data): New function.
9342 (get_windows_gdbarch_data): New function.
9343 (windows_get_siginfo_type): New function.
9344 (windows_init_abi): Register windows_get_siginfo_type.
9345 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9346
9347 2020-02-08 Tom Tromey <tom@tromey.com>
9348
9349 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9350 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9351 <keep>: Declare method.
9352 <m_keep>: Remove member.
9353 <~cutu_reader>: Remove.
9354 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9355 (cutu_reader::cutu_reader): Update.
9356 (cutu_reader::keep): Rename from ~cutu_reader.
9357 (process_psymtab_comp_unit, build_type_psymtabs_1)
9358 (process_skeletonless_type_unit, load_partial_comp_unit)
9359 (load_full_comp_unit, dwarf2_read_addr_index)
9360 (read_signatured_type): Update.
9361
9362 2020-02-08 Tom Tromey <tom@tromey.com>
9363
9364 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9365 "want_partial_unit" parameter.
9366 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9367 Inline check for DW_TAG_partial_unit.
9368 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9369
9370 2020-02-08 Tom Tromey <tom@tromey.com>
9371
9372 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9373 read.c.
9374 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9375 read.c.
9376
9377 2020-02-08 Tom Tromey <tom@tromey.com>
9378
9379 * dwarf2/read.c (read_address): Move to comp-unit.c.
9380 (dwarf2_rnglists_process, dwarf2_ranges_process)
9381 (read_attribute_value, dwarf_decode_lines_1)
9382 (var_decode_location, decode_locdesc): Update.
9383 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9384 read.c. Remove "cu" parameter.
9385 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9386 method.
9387
9388 2020-02-08 Tom Tromey <tom@tromey.com>
9389
9390 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9391 (read_indirect_line_string): Update.
9392 * dwarf2/comp-unit.c (read_offset): Remove.
9393 (read_comp_unit_head): Update.
9394 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9395 method.
9396 (read_offset): Don't declare.
9397
9398 2020-02-08 Tom Tromey <tom@tromey.com>
9399
9400 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9401 * dwarf2/read.c (struct comp_unit_head): Move to
9402 dwarf2/comp-unit.h.
9403 (enum class rcuh_kind): Move to comp-unit.h.
9404 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9405 (read_comp_unit_head, error_check_comp_unit_head)
9406 (read_and_check_comp_unit_head): Move to comp-unit.c.
9407 (read_offset, dwarf_unit_type_name): Likewise.
9408 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9409 (cutu_reader::cutu_reader, read_call_site_scope)
9410 (find_partial_die, follow_die_offset): Update.
9411 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9412
9413 2020-02-08 Tom Tromey <tom@tromey.com>
9414
9415 * dwarf2/read.c (read_offset_1): Move to leb.c.
9416 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9417 (dwarf_decode_macro_bytes): Update.
9418 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9419 * dwarf2/leb.h (read_offset): Declare.
9420
9421 2020-02-08 Tom Tromey <tom@tromey.com>
9422
9423 * dwarf2/read.c (dwarf2_section_size): Remove.
9424 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9425 Update.
9426 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9427
9428 2020-02-08 Tom Tromey <tom@tromey.com>
9429
9430 * dwarf2/read.c (read_initial_length): Move to leb.c.
9431 * dwarf2/leb.h (read_initial_length): Declare.
9432 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9433 handle_nonstd parameter.
9434 * dwarf2/frame.c (read_initial_length): Remove.
9435 (decode_frame_entry_1): Update.
9436
9437 2020-02-08 Tom Tromey <tom@tromey.com>
9438
9439 * dwarf2/loc.c (dwarf2_find_location_expression)
9440 (dwarf_evaluate_loc_desc::get_tls_address)
9441 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9442 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9443 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9444 (dwarf2_compile_property_to_c)
9445 (dwarf2_loc_desc_get_symbol_read_needs)
9446 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9447 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9448 (loclist_describe_location, loclist_tracepoint_var_ref)
9449 (loclist_generate_c_location): Update.
9450 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9451 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9452 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9453 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9454 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9455 (dwarf2_per_cu_data::addr_size)
9456 (dwarf2_per_cu_data::ref_addr_size)
9457 (dwarf2_per_cu_data::text_offset)
9458 (dwarf2_per_cu_data::addr_type): Now methods.
9459 (per_cu_header_read_in): Make per_cu "const".
9460 (dwarf2_version): Remove.
9461 (dwarf2_per_cu_data::int_type): Now a method.
9462 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9463 (set_die_type, read_array_type, read_subrange_index_type)
9464 (read_tag_string_type, read_subrange_type): Update.
9465 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9466 offset_size, ref_addr_size, text_offset, addr_type, version,
9467 objfile, int_type, addr_sized_int_type>: Declare methods.
9468
9469 2020-02-08 Tom Tromey <tom@tromey.com>
9470
9471 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9472 Move earlier.
9473
9474 2020-02-08 Tom Tromey <tom@tromey.com>
9475
9476 * dwarf2/read.h (dwarf_line_debug): Declare.
9477 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9478 * dwarf2/read.c: Move line_header code to new files.
9479 (dwarf_line_debug): No longer static.
9480 * dwarf2/line-header.c: New file.
9481 * dwarf2/line-header.h: New file.
9482
9483 2020-02-08 Tom Tromey <tom@tromey.com>
9484
9485 * dwarf2/read.c (struct line_header) <file_full_name,
9486 file_file_name>: Return unique_xmalloc_ptr.
9487 (line_header::file_file_name): Update.
9488 (line_header::file_full_name): Update.
9489 (dw2_get_file_names_reader): Update.
9490 (macro_start_file): Update.
9491
9492 2020-02-08 Tom Tromey <tom@tromey.com>
9493
9494 * dwarf2/read.c (struct line_header) <file_full_name,
9495 file_file_name>: Declare methods.
9496 (dw2_get_file_names_reader): Update.
9497 (file_file_name): Now a method.
9498 (file_full_name): Likewise.
9499 (macro_start_file): Update.
9500
9501 2020-02-08 Tom Tromey <tom@tromey.com>
9502
9503 * dwarf2/read.c (dwarf_always_disassemble)
9504 (show_dwarf_always_disassemble): Move to loc.c.
9505 (_initialize_dwarf2_read): Move "always-disassemble" registration
9506 to loc.c.
9507 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9508 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9509 static.
9510 (show_dwarf_always_disassemble): Move from read.c.
9511 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9512
9513 2020-02-08 Tom Tromey <tom@tromey.com>
9514
9515 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9516 (create_quick_file_names_table): Return htab_up.
9517 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9518 Update.
9519 * dwarf2/read.h (struct dwarf2_per_objfile)
9520 <quick_file_names_table>: Now htab_up.
9521
9522 2020-02-08 Tom Tromey <tom@tromey.com>
9523
9524 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9525
9526 2020-02-08 Tom Tromey <tom@tromey.com>
9527
9528 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9529 Rewrite.
9530 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9531 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9532 (abbrev_table::abbrev_table): No longer inline.
9533 (ABBREV_HASH_SIZE): Remove.
9534 (abbrev_table::m_abbrevs): Now an htab_up.
9535
9536 2020-02-08 Tom Tromey <tom@tromey.com>
9537
9538 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9539 (cutu_reader): Update.
9540 (build_type_psymtabs_1): Update.
9541 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9542 (abbrev_table::alloc_abbrev): Update.
9543 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9544 (abbrev_table::read): New static method, renamed from
9545 abbrev_table_read_table.
9546 (abbrev_table::alloc_abbrev)
9547 (abbrev_table::add_abbrev): Now private.
9548 (abbrev_table::abbrev_table): Now private.
9549 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9550
9551 2020-02-08 Tom Tromey <tom@tromey.com>
9552
9553 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9554 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9555 htab_up.
9556
9557 2020-02-08 Tom Tromey <tom@tromey.com>
9558
9559 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9560 htab_up.
9561 (lookup_dwo_unit_in_dwp): Update.
9562 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9563 on obstack.
9564
9565 2020-02-08 Tom Tromey <tom@tromey.com>
9566
9567 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9568 obstack.
9569
9570 2020-02-08 Tom Tromey <tom@tromey.com>
9571
9572 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9573 line_header_hash.
9574 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9575 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9576 Change type to htab_up.
9577
9578 2020-02-08 Tom Tromey <tom@tromey.com>
9579
9580 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9581 htab_up. Don't allocate on obstack.
9582 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9583 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9584 Change type to htab_up.
9585
9586 2020-02-08 Tom Tromey <tom@tromey.com>
9587
9588 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9589 Change type to htab_up.
9590 * dwarf2/read.c (create_signatured_type_table_from_index)
9591 (create_signatured_type_table_from_debug_names)
9592 (create_all_type_units, add_type_unit)
9593 (lookup_dwo_signatured_type, lookup_signatured_type)
9594 (process_skeletonless_type_unit): Update.
9595 (create_debug_type_hash_table, create_debug_types_hash_table):
9596 Change type of types_htab.
9597 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9598 htab_up. Don't allocate on obstack.
9599 (create_cus_hash_table): Change type of cus_htab parameter.
9600 (struct dwo_file) <cus, tus>: Now htab_up.
9601 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9602 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9603 (queue_and_load_all_dwo_tus): Update.
9604 * dwarf2/index-write.c (write_gdbindex): Update.
9605 (write_debug_names): Update.
9606
9607 2020-02-08 Tom Tromey <tom@tromey.com>
9608
9609 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9610 dwarf2/read.c. Remove "next" member. Add constructor ntad
9611 destructor.
9612 (struct dwarf2_per_objfile) <queue>: New member.
9613 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9614 dwarf2/read.h.
9615 (dwarf2_queue, dwarf2_queue_tail): Remove.
9616 (class dwarf2_queue_guard): Add parameter to constructor. Use
9617 DISABLE_COPY_AND_ASSIGN.
9618 <m_per_objfile>: New member.
9619 <~dwarf2_queue_guard>: Rewrite.
9620 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9621 Update.
9622 (~dwarf2_queue_item): New.
9623
9624 2020-02-08 Tom Tromey <tom@tromey.com>
9625
9626 * dwarf2/read.c (struct die_info) <has_children>: New member.
9627 (dw2_get_file_names_reader): Remove has_children.
9628 (dw2_get_file_names): Update.
9629 (read_cutu_die_from_dwo): Remove has_children.
9630 (cutu_reader::init_tu_and_read_dwo_dies)
9631 (cutu_reader::cutu_reader): Update.
9632 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9633 Remove has_children.
9634 (build_type_psymtabs_1, process_skeletonless_type_unit)
9635 (load_partial_comp_unit, load_full_comp_unit): Update.
9636 (create_dwo_cu_reader): Remove has_children.
9637 (create_cus_hash_table, read_die_and_children): Update.
9638 (read_full_die_1,read_full_die): Remove has_children.
9639 (read_signatured_type): Update.
9640 (class cutu_reader) <has_children>: Remove.
9641
9642 2020-02-08 Tom Tromey <tom@tromey.com>
9643
9644 * dwarf2/expr.c: Rename from dwarf2expr.c.
9645 * dwarf2/expr.h: Rename from dwarf2expr.h.
9646 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9647 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9648 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9649 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9650 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9651 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9652 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9653 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9654 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9655 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9656 * dwarf2/loc.c: Rename from dwarf2loc.c.
9657 * dwarf2/loc.h: Rename from dwarf2loc.h.
9658 * dwarf2/read.c: Rename from dwarf2read.c.
9659 * dwarf2/read.h: Rename from dwarf2read.h.
9660 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9661 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9662 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9663 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9664 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9665 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9666 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9667 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9668 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9669 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9670 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9671 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9672 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9673 Update.
9674 * Makefile.in (COMMON_SFILES): Update.
9675 (HFILES_NO_SRCDIR): Update.
9676
9677 2020-02-08 Tom Tromey <tom@tromey.com>
9678
9679 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9680 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9681
9682 2020-02-08 Tom Tromey <tom@tromey.com>
9683
9684 * dwarf2read.h (struct die_info): Don't declare.
9685
9686 2020-02-08 Tom Tromey <tom@tromey.com>
9687
9688 * dwarf2read.h (die_info_ptr): Remove typedef.
9689
9690 2020-02-08 Tom Tromey <tom@tromey.com>
9691
9692 * dwarf2read.c (read_call_site_scope)
9693 (handle_data_member_location, dwarf2_add_member_fn)
9694 (mark_common_block_symbol_computed, read_common_block)
9695 (attr_to_dynamic_prop, partial_die_info::read)
9696 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9697 (dwarf2_symbol_mark_computed, set_die_type): Update.
9698 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9699 method.
9700 (attr_form_is_block): Don't declare.
9701 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9702
9703 2020-02-08 Tom Tromey <tom@tromey.com>
9704
9705 * dwarf2read.c (dwarf2_find_base_address, )
9706 (read_call_site_scope, rust_containing_type)
9707 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9708 (handle_data_member_location, dwarf2_add_member_fn)
9709 (get_alignment, read_structure_type, process_structure_scope)
9710 (mark_common_block_symbol_computed, read_common_block)
9711 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9712 (partial_die_info::read, read_attribute_value, new_symbol)
9713 (lookup_die_type, dwarf2_get_ref_die_offset)
9714 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9715 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9716 (dwarf2_symbol_mark_computed): Update.
9717 * dwarf2/attribute.h (struct attribute) <value_as_address,
9718 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9719 methods.
9720 (value_as_address, attr_form_is_section_offset)
9721 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9722 * dwarf2/attribute.c (attribute::value_as_address)
9723 (attribute::form_is_section_offset, attribute::form_is_constant)
9724 (attribute::form_is_ref): Now methods.
9725
9726 2020-02-08 Tom Tromey <tom@tromey.com>
9727
9728 * dwarf2read.c (struct attribute, DW_STRING)
9729 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9730 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9731 (attr_form_is_block, attr_form_is_section_offset)
9732 (attr_form_is_constant, attr_form_is_ref): Move.
9733 * dwarf2/attribute.h: New file.
9734 * dwarf2/attribute.c: New file, from dwarf2read.c.
9735 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9736
9737 2020-02-08 Tom Tromey <tom@tromey.com>
9738
9739 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9740 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9741 Move.
9742 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9743 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9744 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9745 abbrev.c.
9746 * dwarf2/abbrev.h: New file.
9747 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9748 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9749
9750 2020-02-08 Tom Tromey <tom@tromey.com>
9751
9752 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9753 (dwarf2_section_size, dwarf2_get_section_info)
9754 (create_signatured_type_table_from_debug_names)
9755 (create_addrmap_from_aranges, read_debug_names_from_section)
9756 (get_gdb_index_contents_from_section, read_comp_unit_head)
9757 (error_check_comp_unit_head, read_abbrev_offset)
9758 (create_debug_type_hash_table, init_cu_die_reader)
9759 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9760 (read_comp_units_from_section, create_cus_hash_table)
9761 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9762 (create_dwp_v2_section, dwarf2_rnglists_process)
9763 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9764 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9765 (read_indirect_string_from_dwz, read_addr_index_1)
9766 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9767 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9768 (fill_in_loclist_baton): Update.
9769 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9770 get_containing_section, get_bfd_owner, get_bfd_section,
9771 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9772 (dwarf2_read_section, get_section_name, get_section_file_name)
9773 (get_containing_section, get_section_bfd_owner)
9774 (get_section_bfd_section, get_section_name, get_section_file_name)
9775 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9776 declare.
9777 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9778 (dwarf2_section_info::get_bfd_owner)
9779 (dwarf2_section_info::get_bfd_section)
9780 (dwarf2_section_info::get_name)
9781 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9782 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9783 (dwarf2_section_info::read): Now methods.
9784 * dwarf-index-write.c (class debug_names): Update.
9785
9786 2020-02-08 Tom Tromey <tom@tromey.com>
9787
9788 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9789 Move to dwarf2/section.h.
9790 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9791 (get_section_bfd_section, get_section_name)
9792 (get_section_file_name, get_section_id, get_section_flags)
9793 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9794 dwarf2/section.c.
9795 * dwarf2/section.h: New file.
9796 * dwarf2/section.c: New file, from dwarf2read.c.
9797 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9798
9799 2020-02-08 Tom Tromey <tom@tromey.com>
9800
9801 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9802 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9803 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9804 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9805 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9806 * dwarf2/leb.h: New file, from dwarf2read.c.
9807 * dwarf2/leb.c: New file, from dwarf2read.c.
9808 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9809 Remove.
9810 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9811 (COMMON_SFILES): Add dwarf2/leb.c.
9812
9813 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9814
9815 GDB 9.1 released.
9816
9817 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9818
9819 PR gdb/25190:
9820 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9821 * gdb/remote.c (remote_console_output): Update.
9822 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9823 (ui_file_puts): ...this.
9824 * gdb/ui-file.h (ui_file_puts): Add declaration.
9825 * gdb/utils.c (emit_style_escape): Update.
9826 (flush_wrap_buffer): Update.
9827 (fputs_maybe_filtered): Update.
9828 (fputs_unfiltered): Add function.
9829
9830 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9831
9832 * gdb/event-loop.c (gdb_wait_for_event): Update.
9833 * gdb/printcmd.c (printf_command): Update.
9834 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9835 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9836 (gdb_os_flush_stderr): Update.
9837 * gdb/remote.c (remote_console_output): Update.
9838 * gdb/ui-file.c (gdb_flush): Rename to...
9839 (ui_file_flush): ...this.
9840 (stderr_file::write): Update.
9841 (stderr_file::puts): Update.
9842 * gdb/ui-file.h (gdb_flush): Rename to...
9843 (ui_file_flush): ...this.
9844 * gdb/utils.c (gdb_flush): Add function.
9845 * gdb/utils.h (gdb_flush): Add declaration.
9846
9847 2020-02-07 Tom Tromey <tromey@adacore.com>
9848
9849 PR breakpoints/24915:
9850 * source.c (find_and_open_source): Do not check basenames_may_differ.
9851
9852 2020-02-07 Tom Tromey <tom@tromey.com>
9853
9854 * README: Update gdbserver documentation.
9855 * gdbserver: Move to top level.
9856 * configure.tgt (build_gdbserver): Remove.
9857 * configure.ac: Remove --enable-gdbserver.
9858 * configure: Rebuild.
9859 * Makefile.in (distclean): Don't mention gdbserver.
9860
9861 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9862
9863 * source-cache.c (source_cache::ensure): Surround
9864 get_plain_source_lines with a try/catch.
9865 (source_cache::get_line_charpos): Get rid of try/catch
9866 and only check for the return value of "ensure".
9867 * tui/tui-source.c (tui_source_window::set_contents):
9868 Simplify "nlines" calculation.
9869
9870 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9871
9872 * MAINTAINERS (Write After Approval): Add myself.
9873
9874 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9875
9876 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9877 function call.
9878
9879 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9880
9881 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9882
9883 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9884
9885 * nat/riscv-linux-tdesc.h: New file.
9886 * nat/riscv-linux-tdesc.c: New file, taking code from...
9887 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9888 ... here.
9889 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9890 NATDEPFILES.
9891
9892 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9893
9894 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9895 we don't set the fake simulator ptid to the null_ptid.
9896
9897 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9898
9899 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9900 * gdbthread.h (class thread_info) <resumed>: Likewise.
9901 * infrun.c (resume_1): Likewise.
9902 (proceed): Likewise.
9903 (infrun_thread_stop_requested): Likewise.
9904 (stop_all_threads): Likewise.
9905 (handle_inferior_event): Likewise.
9906 (restart_threads): Likewise.
9907 (finish_step_over): Likewise.
9908 (keep_going_stepped_thread): Likewise.
9909 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9910 (linux_handle_extended_wait): Likewise.
9911 * record-btrace.c (get_thread_current_frame_id): Likewise.
9912 * record-full.c (record_full_wait_1): Likewise.
9913 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9914 * target.c (target_resume): Likewise.
9915 * thread.c (set_running_thread): Likewise.
9916
9917 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9918
9919 * f-valprint.c (f77_print_array_1): Changed datatype of index
9920 variable to LONGEST from int to enable it to contain bound
9921 values correctly.
9922
9923 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9924
9925 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9926 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9927 offsets according to FLEN determined.
9928 (riscv_linux_nat_target::read_description): Determine FLEN
9929 dynamically.
9930 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9931 according to FLEN determined.
9932 (riscv_linux_nat_target::store_registers): Likewise.
9933
9934 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9935
9936 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9937 when reg->group is empty and reggroup is not.
9938
9939 2020-01-31 Tom Tromey <tromey@adacore.com>
9940
9941 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9942 Call beneath target's mourn_inferior after unpushing.
9943
9944 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9945
9946 PR tui/9765
9947 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9948 have enough lines to fill the screen, still return the lowest
9949 address we found.
9950
9951 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9952
9953 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9954 '-', '<', and '>' commands.
9955
9956 2020-01-29 Pedro Alves <palves@redhat.com>
9957 Sergio Durigan Junior <sergiodj@redhat.com>
9958
9959 * infcmd.c (construct_inferior_arguments): Assert that
9960 'argc' is greater than 0.
9961
9962 2020-01-29 Luis Machado <luis.machado@linaro.org>
9963
9964 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9965 (BRK_INSN_MASK): Define to 0xd4200000.
9966 (aarch64_program_breakpoint_here_p): New function.
9967 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9968 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9969 breakpoint.c.
9970 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9971 breakpoint.h
9972 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9973 call gdbarch_program_breakpoint_here_p.
9974 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9975 default_program_breakpoint_here_p, changed return type to bool and
9976 simplified.
9977 * breakpoint.h (program_breakpoint_here): Moved prototype to
9978 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9979 return type to bool.
9980 * gdbarch.c: Regenerate.
9981 * gdbarch.h: Regenerate.
9982 * gdbarch.sh (program_breakpoint_here_p): New method.
9983 * infrun.c (handle_signal_stop): Call
9984 gdbarch_program_breakpoint_here_p.
9985
9986 2020-01-26 Tom Tromey <tom@tromey.com>
9987
9988 * ctfread.c (struct ctf_fp_info): Reindent.
9989 (_initialize_ctfread): Remove.
9990
9991 2020-01-26 Tom Tromey <tom@tromey.com>
9992
9993 * psymtab.c (partial_map_expand_apply)
9994 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9995 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9996 (psym_print_stats, psym_expand_symtabs_for_function)
9997 (psym_map_symbol_filenames, psym_map_matching_symbols)
9998 (psym_expand_symtabs_matching)
9999 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10000 (maintenance_check_psymtabs): Use new methods.
10001 * psympriv.h (struct partial_symtab) <readin_p,
10002 get_compunit_symtab>: New methods.
10003 <readin, compunit_symtab>: Remove members.
10004 (struct standard_psymtab): New.
10005 (struct legacy_psymtab): Derive from standard_psymtab.
10006 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10007 standard_psymtab.
10008 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10009
10010 2020-01-26 Tom Tromey <tom@tromey.com>
10011
10012 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10013 read_dependencies. Add assert.
10014 * psymtab.c (partial_symtab::read_dependencies): New method.
10015 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10016 method.
10017 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10018 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10019 read_dependencies.
10020 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10021 Add assert.
10022
10023 2020-01-26 Tom Tromey <tom@tromey.com>
10024
10025 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10026 Call expand_psymtab.
10027 (xcoff_read_symtab): Call expand_psymtab.
10028 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10029 legacy_expand_psymtab.
10030 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10031 method.
10032 (struct legacy_psymtab) <expand_psymtab>: Implement.
10033 <legacy_expand_psymtab>: New member.
10034 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10035 (parse_partial_symbols): Set legacy_expand_psymtab.
10036 (psymtab_to_symtab_1): Change argument order. Call
10037 expand_psymtab.
10038 (new_psymtab): Set legacy_expand_psymtab.
10039 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10040 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10041 expand_psymtab.
10042 (dwarf2_psymtab::expand_psymtab): Rename from
10043 psymtab_to_symtab_1. Call expand_psymtab.
10044 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10045 (dbx_end_psymtab): Likewise.
10046 (dbx_psymtab_to_symtab_1): Change argument order. Call
10047 expand_psymtab.
10048 (dbx_read_symtab): Call expand_psymtab.
10049 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10050 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10051 (ctf_psymtab::read_symtab): Call expand_psymtab.
10052
10053 2020-01-26 Tom Tromey <tom@tromey.com>
10054
10055 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10056 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10057 messages.
10058 * mdebugread.c (mdebug_read_symtab): Remove prints.
10059 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10060 assert.
10061 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10062
10063 2020-01-26 Tom Tromey <tom@tromey.com>
10064
10065 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10066 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10067 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10068 legacy_symtab.
10069 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10070 * psymtab.c (psymtab_to_symtab): Call method.
10071 (dump_psymtab): Update.
10072 * psympriv.h (struct partial_symtab): Add virtual destructor.
10073 <read_symtab>: New method.
10074 (struct legacy_symtab): New.
10075 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10076 (struct pst_map) <pst>: Now a legacy_psymtab.
10077 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10078 (new_psymtab): Use legacy_psymtab.
10079 * dwarf2read.h (struct dwarf2_psymtab): New.
10080 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10081 * dwarf2read.c (dwarf2_create_include_psymtab)
10082 (dwarf2_build_include_psymtabs, create_type_unit_group)
10083 (create_partial_symtab, process_psymtab_comp_unit_reader)
10084 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10085 (set_partial_user): Use dwarf2_psymtab.
10086 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10087 (psymtab_to_symtab_1, process_full_comp_unit)
10088 (process_full_type_unit, dwarf2_ranges_read)
10089 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10090 (dwarf_decode_lines): Use dwarf2_psymtab.
10091 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10092 (add_address_entry_worker, write_one_signatured_type)
10093 (recursively_count_psymbols, recursively_write_psymbols)
10094 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10095 (write_debug_names): Likewise.
10096 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10097 <pst>: Now a legacy_psymtab.
10098 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10099 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10100 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10101 * ctfread.c (struct ctf_psymtab): New.
10102 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10103 ctf_psymtab.
10104 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10105 (create_partial_symtab): Return a ctf_psymtab.
10106 (scan_partial_symbols): Update.
10107
10108 2020-01-26 Tom Tromey <tom@tromey.com>
10109
10110 * xcoffread.c (xcoff_start_psymtab): Use new.
10111 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10112 renamed from start_psymtab_common.
10113 * psympriv.h (struct partial_symtab): Add new constructor.
10114 (start_psymtab_common): Don't declare.
10115 * mdebugread.c (parse_partial_symbols): Use new.
10116 * dwarf2read.c (create_partial_symtab): Use new.
10117 * dbxread.c (start_psymtab): Use new.
10118 * ctfread.c (create_partial_symtab): Use new.
10119
10120 2020-01-26 Tom Tromey <tom@tromey.com>
10121
10122 * xcoffread.c (xcoff_end_psymtab): Use new.
10123 * psymtab.c (start_psymtab_common): Use new.
10124 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10125 Update.
10126 * psympriv.h (struct partial_symtab): Add parameters to
10127 constructor. Don't inline.
10128 (allocate_psymtab): Don't declare.
10129 * mdebugread.c (new_psymtab): Use new.
10130 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10131 * dbxread.c (dbx_end_psymtab): Use new.
10132
10133 2020-01-26 Tom Tromey <tom@tromey.com>
10134
10135 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10136 allocate_psymtab. Update documentation.
10137 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10138 allocate_psymtab. Do not use new.
10139 (allocate_psymtab): Use new. Update.
10140
10141 2020-01-26 Tom Tromey <tom@tromey.com>
10142
10143 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10144 * psymtab.c (psym_print_stats): Update.
10145 * psympriv.h (struct partial_symtab) <readin,
10146 psymtabs_addrmap_supported, anonymous>: Now bool.
10147 * mdebugread.c (psymtab_to_symtab_1): Update.
10148 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10149 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10150 (process_full_comp_unit, process_full_type_unit): Update.
10151 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10152 * ctfread.c (psymtab_to_symtab): Update.
10153
10154 2020-01-26 Tom Tromey <tom@tromey.com>
10155
10156 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10157 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10158 * psymtab.c (psymtab_storage): Delete psymtabs.
10159 (psymtab_storage::allocate_psymtab): Use new.
10160 (psymtab_storage::discard_psymtab): Use delete.
10161 * psympriv.h (struct partial_symtab): Add constructor and
10162 initializers.
10163
10164 2020-01-26 Tom Tromey <tom@tromey.com>
10165
10166 * machoread.c: Do not include psympriv.h.
10167
10168 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10169
10170 * NEWS: Mention the new option and the set/show commands.
10171
10172 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10173
10174 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10175 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10176 (validate_exec_file): New variables, enums, functions.
10177 (exec_file_locate_attach, print_section_info): Style the filenames.
10178 (_initialize_exec): Install show_exec_file_mismatch_command and
10179 set_exec_file_mismatch_command.
10180 * gdbcore.h (validate_exec_file): Declare.
10181 * infcmd.c (attach_command): Call validate_exec_file.
10182 * remote.c ( remote_target::remote_add_inferior): Likewise.
10183
10184 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10185
10186 * frame.c (find_frame_sal): Move call to get_next_frame into more
10187 inner scope.
10188 * inline-frame.c (inilne_state) <inline_state>: Update argument
10189 types.
10190 (inilne_state) <skipped_symbol>: Rename to...
10191 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10192 (skip_inline_frames): Build vector of skipped symbols and use this
10193 to reate the inline_state.
10194 (inline_skipped_symbol): Add a comment and some assertions, fetch
10195 skipped symbol from the list.
10196
10197 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10198
10199 * buildsym.c (lte_is_less_than): Delete.
10200 (buildsym_compunit::end_symtab_with_blockvector): Create local
10201 lambda function to sort line table entries, and use
10202 std::stable_sort instead of std::sort.
10203 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10204 markers when looking for a previous line.
10205
10206 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10207
10208 * dwarf2read.c (lnp_state_machine::record_line): Include
10209 end_sequence parameter in debug print out. Record the line if we
10210 are at an end_sequence marker even if it's not the start of a
10211 statement.
10212 * symmisc.c (maintenance_print_one_line_table): Print end of
10213 sequence markers with 'END' not '0'.
10214
10215 2020-01-24 Pedro Alves <palves@redhat.com>
10216
10217 PR gdb/25410
10218 * thread.c (scoped_restore_current_thread::restore): Use
10219 switch_to_inferior_no_thread.
10220 * exec.c: Include "progspace-and-thread.h".
10221 (add_target_sections, remove_target_sections):
10222 scoped_restore_current_pspace_and_thread instead of
10223 scoped_restore_current_thread.
10224 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10225 and aspace to the inferior before calling clone_program_space.
10226 Remove stale comment.
10227
10228 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10229
10230 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10231 (arm_netbsd_nat_target::fetch_registers): ...this.
10232 (arm_nbsd_nat_target::store_registers): Rename to...
10233 (arm_netbsd_nat_target::store_registers): ...this.
10234
10235 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10236
10237 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10238 register_t.
10239
10240 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10241
10242 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10243 Update comment.
10244 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10245 Likewise.
10246 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10247 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10248 the correct replacement (iterate_over_regset_sections).
10249 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10250 Update comment.
10251
10252 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10253
10254 PR gdb/23718
10255 * gdb/python/python.c (execute_gdb_command): Call
10256 async_enable_stdin in catch block.
10257
10258 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10259
10260 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10261 SWITCH_THRU_ALL_UIS.
10262
10263 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10264
10265 PR tui/9765
10266 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10267 comment, add extra parameter, and update to store previous symbol
10268 when appropriate.
10269 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10270 add extra parameter.
10271 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10272 remove unneeded parameter, add try/catch around gdb_print_insn,
10273 rewrite to add items to asm_lines vector.
10274 (tui_find_backward_disassembly_start_address): New function.
10275 (tui_find_disassembly_address): Updated throughout.
10276 (tui_disasm_window::set_contents): Update for changes to
10277 tui_disassemble.
10278 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10279 number of lines to scroll.
10280
10281 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10282
10283 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10284 (SECT_OFF_DATA): Likewise.
10285 (SECT_OFF_RODATA): Likewise.
10286 (SECT_OFF_TEXT): Likewise.
10287 (SECT_OFF_BSS): Likewise.
10288 (struct objfile) <text_section_offset, data_section_offset>: New
10289 methods.
10290 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10291 objfile::text_section_offset.
10292 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10293 * coffread.c (coff_symtab_read): Likewise.
10294 (enter_linenos): Likewise.
10295 (process_coff_symbol): Likewise.
10296 * ctfread.c (get_objfile_text_range): Likewise.
10297 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10298 Use objfile::data_section_offset.
10299 * dwarf2-frame.c (execute_cfa_program): Use
10300 objfile::text_section_offset.
10301 (dwarf2_frame_find_fde): Likewise.
10302 * dwarf2read.c (create_addrmap_from_index): Likewise.
10303 (create_addrmap_from_aranges): Likewise.
10304 (dw2_find_pc_sect_compunit_symtab): Likewise.
10305 (process_psymtab_comp_unit_reader): Likewise.
10306 (add_partial_symbol): Likewise.
10307 (add_partial_subprogram): Likewise.
10308 (process_full_comp_unit): Likewise.
10309 (read_file_scope): Likewise.
10310 (read_func_scope): Likewise.
10311 (read_lexical_block_scope): Likewise.
10312 (read_call_site_scope): Likewise.
10313 (dwarf2_rnglists_process): Likewise.
10314 (dwarf2_ranges_process): Likewise.
10315 (dwarf2_ranges_read): Likewise.
10316 (dwarf_decode_lines_1): Likewise.
10317 (new_symbol): Likewise.
10318 (dwarf2_fetch_die_loc_sect_off): Likewise.
10319 (dwarf2_per_cu_text_offset): Likewise.
10320 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10321 * hppa-tdep.c (read_unwind_info): Likewise.
10322 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10323 * psympriv.h (struct partial_symtab): Likewise.
10324 * psymtab.c (find_pc_sect_psymtab): Likewise.
10325 * solib-svr4.c (enable_break): Likewise.
10326 * stap-probe.c (relocate_address): Use
10327 objfile::data_section_offset.
10328 * xcoffread.c (enter_line_range): Use
10329 objfile::text_section_offset.
10330 (read_xcoff_symtab): Likewise.
10331
10332 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10333
10334 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10335 declaration to narrower scopes.
10336
10337 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10338
10339 * darwin-nat.h (struct darwin_exception_msg, enum
10340 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10341 Move up.
10342 (class darwin_nat_target) <wait_1, check_new_threads,
10343 decode_exception_message, decode_message, stop_inferior,
10344 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10345 * darwin-nat.c (darwin_check_new_threads): Rename to...
10346 (darwin_nat_target::check_new_threads): ... this.
10347 (darwin_suspend_inferior_it): Remove.
10348 (darwin_decode_exception_message): Rename to...
10349 (darwin_nat_target::decode_exception_message): ... this.
10350 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10351 (darwin_decode_message): Rename to...
10352 (darwin_nat_target::decode_message): ... this.
10353 (cancel_breakpoint): Rename to...
10354 (darwin_nat_target::cancel_breakpoint): ... this.
10355 (darwin_wait): Rename to...
10356 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10357 instead of iterate_over_inferiors.
10358 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10359 (darwin_stop_inferior): Rename to...
10360 (darwin_nat_target::stop_inferior): ... this.
10361 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10362 (darwin_init_thread_list): Rename to...
10363 (darwin_nat_target::init_thread_list): ... this.
10364 (darwin_ptrace_him): Rename to...
10365 (darwin_nat_target::ptrace_him): ... this.
10366 (darwin_nat_target::create_inferior): Pass lambda function to
10367 fork_inferior.
10368 (darwin_nat_target::detach): Call stop_inferior instead of
10369 darwin_stop_inferior.
10370 * fork-inferior.h (fork_inferior): Change init_trace_fun
10371 parameter to gdb::function_view.
10372 * fork-inferior.c (fork_inferior): Likewise.
10373
10374 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10375
10376 * i386-cygwin-tdep.c (core_process_module_section): Update.
10377 * windows-nat.c (struct lm_info_windows): Add text_offset.
10378 (windows_xfer_shared_libraries): Update.
10379 * windows-tdep.c (windows_xfer_shared_library):
10380 Add text_offset_cached argument.
10381 * windows-tdep.h (windows_xfer_shared_library): Update.
10382
10383 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10384
10385 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10386
10387 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10388
10389 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10390 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10391 replace with range-based for.
10392 (gdbsim_interrupt_inferior): Remove.
10393 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10394 with a range-based for. Inline code from
10395 gdbsim_interrupt_inferior.
10396
10397 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10398
10399 * infrun.c (proceed): Fix indentation.
10400
10401 2020-01-21 Tom Tromey <tromey@adacore.com>
10402
10403 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10404 * python/python.c (python_extension_ops): Update.
10405 (gdbpy_colorize): New function.
10406 * python/lib/gdb/__init__.py (colorize): New function.
10407 * extension.h (ext_lang_colorize): Declare.
10408 * extension.c (ext_lang_colorize): New function.
10409 * extension-priv.h (struct extension_language_ops) <colorize>: New
10410 member.
10411 * cli/cli-style.c (_initialize_cli_style): Update help text.
10412
10413 2020-01-21 Luis Machado <luis.machado@linaro.org>
10414
10415 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10416 <cond>: Change type to bool.
10417 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10418 (aarch64_displaced_step_cb): Likewise.
10419 (aarch64_displaced_step_tb): Likewise.
10420
10421 2020-01-21 Luis Machado <luis.machado@linaro.org>
10422
10423 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10424 output.
10425
10426 2020-01-21 Luis Machado <luis.machado@linaro.org>
10427
10428 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10429 <pc_adjust>: Adjust the documentation.
10430 (aarch64_displaced_step_fixup): Check if PC really moved before
10431 adjusting it.
10432
10433 2020-01-19 Tom Tromey <tom@tromey.com>
10434
10435 * disasm.c (~gdb_disassembler): New destructor.
10436 (gdb_buffered_insn_length): Call disassemble_free_target.
10437 * disasm.h (class gdb_disassembler): Declare destructor. Use
10438 DISABLE_COPY_AND_ASSIGN.
10439
10440 2020-01-19 Tom Tromey <tom@tromey.com>
10441
10442 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10443 (die_reader_func_ftype): Remove.
10444 (cutu_reader): New class.
10445 (dw2_get_file_names_reader): Remove "data" parameter.
10446 (dw2_get_file_names): Use cutu_reader.
10447 (create_debug_type_hash_table): Update.
10448 (read_cutu_die_from_dwo): Update comment.
10449 (lookup_dwo_unit): Add dwo_name parameter.
10450 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10451 die_reader_func_ftype and data parameters.
10452 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10453 Remove die_reader_func_ftype and data parameters.
10454 (~cutu_reader): New; from init_cutu_and_read_dies.
10455 (cutu_reader::cutu_reader): Rename from
10456 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10457 and data parameters.
10458 (init_cutu_and_read_dies_simple): Remove.
10459 (struct process_psymtab_comp_unit_data): Remove.
10460 (process_psymtab_comp_unit_reader): Remove data parameter; add
10461 want_partial_unit and pretend_language parameters.
10462 (process_psymtab_comp_unit): Use cutu_reader.
10463 (build_type_psymtabs_reader): Remove data parameter.
10464 (build_type_psymtabs_1): Use cutu_reader.
10465 (process_skeletonless_type_unit): Likewise.
10466 (load_partial_comp_unit_reader): Remove.
10467 (load_partial_comp_unit): Use cutu_reader.
10468 (load_full_comp_unit_reader): Remove.
10469 (load_full_comp_unit): Use cutu_reader.
10470 (struct create_dwo_cu_data): Remove.
10471 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10472 dwo_unit parameters.
10473 (create_cus_hash_table): Use cutu_reader.
10474 (struct dwarf2_read_addr_index_data): Remove.
10475 (dwarf2_read_addr_index_reader): Remove.
10476 (dwarf2_read_addr_index): Use cutu_reader.
10477 (read_signatured_type_reader): Remove.
10478 (read_signatured_type): Use cutu_reader.
10479
10480 2020-01-19 Tom Tromey <tom@tromey.com>
10481
10482 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10483 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10484 (tui_wrefresh): Declare.
10485 * tui/tui-wingeneral.c (suppress_output): New global.
10486 (tui_suppress_output, ~tui_suppress_output): New constructor and
10487 destructor.
10488 (tui_wrefresh): New function.
10489 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10490 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10491 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10492 method.
10493 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10494 tui_wrefresh.
10495 (tui_data_window::no_refresh): New method.
10496 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10497 (tui_reg_command): Use tui_suppress_output
10498 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10499 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10500 method.
10501 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10502
10503 2020-01-19 Tom Tromey <tom@tromey.com>
10504
10505 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10506 Handle case where symtab is null.
10507
10508 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10509
10510 * linux-fork.c (one_fork_p): Simplify.
10511
10512 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10513
10514 * top.c (struct qt_args): Remove.
10515 (kill_or_detach): Change return type to void, replace `void *`
10516 parameter with a proper one.
10517 (print_inferior_quit_action): Likewise.
10518 (quit_confirm): Use range-based for loop to iterate over inferiors.
10519 (quit_force): Likewise.
10520
10521 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10522
10523 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10524 `void *` parameter with proper parameters.
10525 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10526 (print_one_inferior): Change return type to void, replace `void *`
10527 parameter with proper parameters.
10528 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10529 inferiors.
10530 (get_other_inferior): Remove.
10531 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10532 inferiors.
10533
10534 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10535
10536 * mi/mi-interp.c (report_initial_inferior): Remove.
10537 (mi_interp::init): Use range-based for to iterate over inferiors.
10538
10539 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10540
10541 * python/py-inferior.c (build_inferior_list): Remove.
10542 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10543
10544 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10545
10546 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10547 (btrace_stitch_trace): Likewise.
10548 * charset.c (intermediate_encoding): Likewise (vaild).
10549 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10550 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10551 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10552
10553 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10554
10555 * windows-tdep.c (windows_get_tlb_type):
10556 Add rtl_user_process_parameters type.
10557
10558 2020-01-16 Pedro Alves <palves@redhat.com>
10559 Norbert Lange <nolange79@gmail.com>
10560
10561 PR build/24805
10562 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10563 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10564 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10565 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10566 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10567 (ps_plog): Redeclare exported functions with default visibility.
10568
10569 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10570
10571 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10572 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10573
10574 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10575
10576 * infcmd.c (post_create_inferior): Use get_thread_regcache
10577 instead of get_current_regcache.
10578
10579 2020-01-14 Tom Tromey <tom@tromey.com>
10580
10581 PR symtab/12535:
10582 * python/python.c (gdbpy_decode_line): Treat empty string the same
10583 as no argument.
10584
10585 2020-01-14 Tom Tromey <tom@tromey.com>
10586
10587 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10588
10589 2020-01-14 Tom Tromey <tom@tromey.com>
10590
10591 * nat/linux-btrace.c: Don't include <config.h>.
10592 * nat/linux-ptrace.c: Don't include <config.h>.
10593 * nat/x86-linux-dregs.c: Don't include <config.h>.
10594
10595 2020-01-14 Tom Tromey <tom@tromey.com>
10596
10597 * configure: Rebuild.
10598 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10599
10600 2020-01-14 Tom Tromey <tom@tromey.com>
10601
10602 * nat/x86-linux-dregs.c: Include configh.h.
10603 * nat/linux-ptrace.c: Include configh.h.
10604 * nat/linux-btrace.c: Include configh.h.
10605 * defs.h: Include config.h, bfd.h.
10606 * configure.ac: Don't source common.host.
10607 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10608 * configure: Rebuild.
10609 * acinclude.m4: Update path.
10610 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10611 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10612 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10613 (CLIBS): Add LIBSUPPORT.
10614 (CDEPS): Likewise.
10615 (COMMON_SFILES): Remove gdbsupport files.
10616 (HFILES_NO_SRCDIR): Likewise.
10617 (stamp-version): Update path to create-version.sh.
10618 (ALLDEPFILES): Remove gdbsupport files.
10619
10620 2020-01-14 Tom Tromey <tom@tromey.com>
10621
10622 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10623 USE_WIN32API when needed.
10624 * configure.ac (USE_WIN32API): Don't define.
10625 (WIN32LIBS): Use WIN32APILIBS.
10626 * configure: Rebuild.
10627
10628 2020-01-14 Tom Tromey <tom@tromey.com>
10629
10630 * configure: Rebuild.
10631 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10632
10633 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10634
10635 * skip.c (skip_function_command): Make skip w/o arguments use the
10636 name of the inlined function if pc is inside any inlined function.
10637
10638 2020-01-14 Luis Machado <luis.machado@linaro.org>
10639
10640 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10641 * infrun.c (resume_1): Likewise.
10642 (handle_inferior_event): Remove stale comment.
10643 * linux-nat.c (linux_nat_target::resume): Update comments.
10644 (save_stop_reason): Likewise.
10645 (linux_nat_filter_event): Likewise.
10646 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10647
10648 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10649
10650 * elfread.c (record_minimal_symbol): Set section index to 0 for
10651 non-allocatable sections.
10652
10653
10654 2020-01-13 Ali Tamur <tamur@google.com>
10655
10656 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10657 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10658 to gdb::optional. Update comments.
10659 (dwo_file): Update comments.
10660 (read_attribute): Update API to take an additional out parameter,
10661 need_reprocess. This is used to mark attributes that need other
10662 attributes (e.g. str_offsets_base) for correct computation which may not
10663 have been read yet.
10664 (read_attribute_reprocess): New function declaration.
10665 (read_addr_index): Likewise.
10666 (read_dwo_str_index): Likewise.
10667 (read_stub_str_index): Likewise.
10668 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10669 (lookup_addr_base): New function definition.
10670 (lookup_ranges_base): Likewise.
10671 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10672 lookup_ranges_base.
10673 (init_cutu_and_read_dies): Update comments.
10674 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10675 unit. This is used to inherit parent's str_offsets_base and addr_base.
10676 Update comments.
10677 (init_cutu_and_read_dies_simple): Reflect API changes.
10678 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10679 (create_cus_hash_table): Change API to take parent compile unit.
10680 Reflect API changes.
10681 (open_and_init_dwo_file): Reflect API changes.
10682 (dwarf2_get_pc_bounds): Update comments.
10683 (dwarf2_record_block_ranges): Likewise.
10684 (read_full_die_1): Change implementation to reprocess attributes that
10685 need str_offsets_base and addr_base.
10686 (partial_die_info::read): Likewise.
10687 (read_attribute_reprocess): New function definition.
10688 (read_attribute_value): Change API to take an additional out parameter,
10689 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10690 when a non-dwo compile unit has index based attributes.
10691 (read_attribute): Reflect API changes.
10692 (read_addr_index_1): Reflect API changes. Update comments.
10693 (dwarf2_read_addr_index_data): Reflect API changes.
10694 (dwarf2_read_addr_index): Likewise.
10695 (read_str_index): Change API and implementation. This becomes a helper
10696 to be used by the new string index related methods. Update error
10697 message and comments.
10698 (read_dwo_str_index): New function definition.
10699 (read_stub_str_index): Likewise.
10700 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10701 * symfile.h (dwarf2_debug_sections): Likewise.
10702 * xcoffread.c (dwarf2_debug_sections): Likewise.
10703
10704 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10705
10706 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10707 core_reg_sect type to gdb_byte *.
10708 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10709 * cris-tdep.c (fetch_core_registers): Likewise.
10710 * corelow.c (core_target::get_core_register_section): Change
10711 type of `contents` to gdb::byte_vector.
10712
10713 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10714
10715 * tui/tui-wingeneral.c (box_win): Position the title in the center
10716 of the border.
10717
10718 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10719
10720 * corelow.c (core_target::get_core_register_section): Use
10721 std::vector instead of alloca.
10722
10723 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10724
10725 * warning.m4: Add -Wmissing-declarations to build_warnings.
10726 * configure: Re-generate.
10727
10728 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10729
10730 * python/python.c (init__gdb_module): Add declaration.
10731
10732 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10733
10734 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10735 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10736 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10737 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10738 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10739 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10740 * ada-exp.y (_initialize_ada_exp): Add declaration.
10741 * ada-lang.c (_initialize_ada_language): Add declaration.
10742 * ada-tasks.c (_initialize_tasks): Add declaration.
10743 * agent.c (_initialize_agent): Add declaration.
10744 * aix-thread.c (_initialize_aix_thread): Add declaration.
10745 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10746 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10747 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10748 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10749 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10750 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10751 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10752 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10753 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10754 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10755 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10756 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10757 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10758 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10759 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10760 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10761 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10762 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10763 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10764 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10765 * annotate.c (_initialize_annotate): Add declaration.
10766 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10767 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10768 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10769 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10770 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10771 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10772 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10773 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10774 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10775 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10776 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10777 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10778 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10779 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10780 * auto-load.c (_initialize_auto_load): Add declaration.
10781 * auxv.c (_initialize_auxv): Add declaration.
10782 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10783 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10784 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10785 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10786 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10787 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10788 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10789 * breakpoint.c (_initialize_breakpoint): Add declaration.
10790 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10791 * btrace.c (_initialize_btrace): Add declaration.
10792 * charset.c (_initialize_charset): Add declaration.
10793 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10794 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10795 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10796 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10797 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10798 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10799 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10800 * coffread.c (_initialize_coffread): Add declaration.
10801 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10802 * compile/compile.c (_initialize_compile): Add declaration.
10803 * complaints.c (_initialize_complaints): Add declaration.
10804 * completer.c (_initialize_completer): Add declaration.
10805 * copying.c (_initialize_copying): Add declaration.
10806 * corefile.c (_initialize_core): Add declaration.
10807 * corelow.c (_initialize_corelow): Add declaration.
10808 * cp-abi.c (_initialize_cp_abi): Add declaration.
10809 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10810 * cp-support.c (_initialize_cp_support): Add declaration.
10811 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10812 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10813 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10814 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10815 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10816 * ctfread.c (_initialize_ctfread): Add declaration.
10817 * d-lang.c (_initialize_d_language): Add declaration.
10818 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10819 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10820 * dbxread.c (_initialize_dbxread): Add declaration.
10821 * dcache.c (_initialize_dcache): Add declaration.
10822 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10823 * disasm.c (_initialize_disasm): Add declaration.
10824 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10825 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10826 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10827 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10828 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10829 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10830 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10831 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10832 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10833 * elfread.c (_initialize_elfread): Add declaration.
10834 * exec.c (_initialize_exec): Add declaration.
10835 * extension.c (_initialize_extension): Add declaration.
10836 * f-lang.c (_initialize_f_language): Add declaration.
10837 * f-valprint.c (_initialize_f_valprint): Add declaration.
10838 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10839 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10840 * filesystem.c (_initialize_filesystem): Add declaration.
10841 * findcmd.c (_initialize_mem_search): Add declaration.
10842 * findvar.c (_initialize_findvar): Add declaration.
10843 * fork-child.c (_initialize_fork_child): Add declaration.
10844 * frame-base.c (_initialize_frame_base): Add declaration.
10845 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10846 * frame.c (_initialize_frame): Add declaration.
10847 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10848 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10849 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10850 * gcore.c (_initialize_gcore): Add declaration.
10851 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10852 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10853 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10854 * gdbarch.c (_initialize_gdbarch): Add declaration.
10855 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10856 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10857 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10858 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10859 * go-lang.c (_initialize_go_language): Add declaration.
10860 * go32-nat.c (_initialize_go32_nat): Add declaration.
10861 * guile/guile.c (_initialize_guile): Add declaration.
10862 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10863 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10864 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10865 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10866 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10867 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10868 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10869 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10870 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10871 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10872 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10873 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10874 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10875 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10876 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10877 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10878 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10879 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10880 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10881 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10882 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10883 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10884 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10885 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10886 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10887 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10888 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10889 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10890 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10891 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10892 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10893 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10894 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10895 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10896 * infcall.c (_initialize_infcall): Add declaration.
10897 * infcmd.c (_initialize_infcmd): Add declaration.
10898 * inflow.c (_initialize_inflow): Add declaration.
10899 * infrun.c (_initialize_infrun): Add declaration.
10900 * interps.c (_initialize_interpreter): Add declaration.
10901 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10902 * jit.c (_initialize_jit): Add declaration.
10903 * language.c (_initialize_language): Add declaration.
10904 * linux-fork.c (_initialize_linux_fork): Add declaration.
10905 * linux-nat.c (_initialize_linux_nat): Add declaration.
10906 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10907 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10908 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10909 * m2-lang.c (_initialize_m2_language): Add declaration.
10910 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10911 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10912 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10913 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10914 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10915 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10916 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10917 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10918 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10919 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10920 * machoread.c (_initialize_machoread): Add declaration.
10921 * macrocmd.c (_initialize_macrocmd): Add declaration.
10922 * macroscope.c (_initialize_macroscope): Add declaration.
10923 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10924 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10925 * maint.c (_initialize_maint_cmds): Add declaration.
10926 * mdebugread.c (_initialize_mdebugread): Add declaration.
10927 * memattr.c (_initialize_mem): Add declaration.
10928 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10929 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10930 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10931 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10932 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10933 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10934 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10935 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10936 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10937 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10938 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10939 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10940 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10941 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10942 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10943 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10944 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10945 * mipsread.c (_initialize_mipsread): Add declaration.
10946 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10947 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10948 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10949 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10950 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10951 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10952 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10953 * nto-procfs.c (_initialize_procfs): Add declaration.
10954 * objc-lang.c (_initialize_objc_language): Add declaration.
10955 * observable.c (_initialize_observer): Add declaration.
10956 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10957 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10958 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10959 * osabi.c (_initialize_gdb_osabi): Add declaration.
10960 * osdata.c (_initialize_osdata): Add declaration.
10961 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10962 * parse.c (_initialize_parse): Add declaration.
10963 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10964 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10965 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10966 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10967 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10968 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10969 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10970 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10971 * printcmd.c (_initialize_printcmd): Add declaration.
10972 * probe.c (_initialize_probe): Add declaration.
10973 * proc-api.c (_initialize_proc_api): Add declaration.
10974 * proc-events.c (_initialize_proc_events): Add declaration.
10975 * proc-service.c (_initialize_proc_service): Add declaration.
10976 * procfs.c (_initialize_procfs): Add declaration.
10977 * producer.c (_initialize_producer): Add declaration.
10978 * psymtab.c (_initialize_psymtab): Add declaration.
10979 * python/python.c (_initialize_python): Add declaration.
10980 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10981 * record-btrace.c (_initialize_record_btrace): Add declaration.
10982 * record-full.c (_initialize_record_full): Add declaration.
10983 * record.c (_initialize_record): Add declaration.
10984 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10985 * regcache.c (_initialize_regcache): Add declaration.
10986 * reggroups.c (_initialize_reggroup): Add declaration.
10987 * remote-notif.c (_initialize_notif): Add declaration.
10988 * remote-sim.c (_initialize_remote_sim): Add declaration.
10989 * remote.c (_initialize_remote): Add declaration.
10990 * reverse.c (_initialize_reverse): Add declaration.
10991 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10992 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10993 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10994 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10995 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10996 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10997 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10998 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10999 Add declaration.
11000 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11001 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11002 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11003 * rust-exp.y (_initialize_rust_exp): Add declaration.
11004 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11005 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11006 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11007 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11008 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11009 * score-tdep.c (_initialize_score_tdep): Add declaration.
11010 * ser-go32.c (_initialize_ser_dos): Add declaration.
11011 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11012 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11013 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11014 * ser-uds.c (_initialize_ser_socket): Add declaration.
11015 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11016 * serial.c (_initialize_serial): Add declaration.
11017 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11018 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11019 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11020 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11021 * skip.c (_initialize_step_skip): Add declaration.
11022 * sol-thread.c (_initialize_sol_thread): Add declaration.
11023 * solib-aix.c (_initialize_solib_aix): Add declaration.
11024 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11025 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11026 * solib-frv.c (_initialize_frv_solib): Add declaration.
11027 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11028 * solib-target.c (_initialize_solib_target): Add declaration.
11029 * solib.c (_initialize_solib): Add declaration.
11030 * source-cache.c (_initialize_source_cache): Add declaration.
11031 * source.c (_initialize_source): Add declaration.
11032 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11033 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11034 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11035 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11036 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11037 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11038 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11039 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11040 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11041 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11042 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11043 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11044 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11045 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11046 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11047 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11048 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11049 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11050 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11051 * stabsread.c (_initialize_stabsread): Add declaration.
11052 * stack.c (_initialize_stack): Add declaration.
11053 * stap-probe.c (_initialize_stap_probe): Add declaration.
11054 * std-regs.c (_initialize_frame_reg): Add declaration.
11055 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11056 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11057 * symfile.c (_initialize_symfile): Add declaration.
11058 * symmisc.c (_initialize_symmisc): Add declaration.
11059 * symtab.c (_initialize_symtab): Add declaration.
11060 * target.c (_initialize_target): Add declaration.
11061 * target-connection.c (_initialize_target_connection): Add
11062 declaration.
11063 * target-dcache.c (_initialize_target_dcache): Add declaration.
11064 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11065 * thread.c (_initialize_thread): Add declaration.
11066 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11067 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11068 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11069 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11070 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11071 * tracectf.c (_initialize_ctf): Add declaration.
11072 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11073 * tracefile.c (_initialize_tracefile): Add declaration.
11074 * tracepoint.c (_initialize_tracepoint): Add declaration.
11075 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11076 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11077 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11078 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11079 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11080 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11081 * tui/tui.c (_initialize_tui): Add declaration.
11082 * typeprint.c (_initialize_typeprint): Add declaration.
11083 * ui-style.c (_initialize_ui_style): Add declaration.
11084 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11085 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11086 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11087 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11088 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11089 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11090 * unittests/filtered_iterator-selftests.c
11091 (_initialize_filtered_iterator_selftests): Add declaration.
11092 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11093 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11094 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11095 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11096 * unittests/main-thread-selftests.c
11097 (_initialize_main_thread_selftests): Add declaration.
11098 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11099 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11100 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11101 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11102 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11103 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11104 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11105 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11106 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11107 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11108 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11109 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11110 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11111 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11112 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11113 declaration.
11114 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11115 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11116 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11117 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11118 * user-regs.c (_initialize_user_regs): Add declaration.
11119 * utils.c (_initialize_utils): Add declaration.
11120 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11121 * valops.c (_initialize_valops): Add declaration.
11122 * valprint.c (_initialize_valprint): Add declaration.
11123 * value.c (_initialize_values): Add declaration.
11124 * varobj.c (_initialize_varobj): Add declaration.
11125 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11126 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11127 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11128 * windows-nat.c (_initialize_windows_nat): Add declaration.
11129 (_initialize_check_for_gdb_ini): Add declaration.
11130 (_initialize_loadable): Add declaration.
11131 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11132 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11133 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11134 * xcoffread.c (_initialize_xcoffread): Add declaration.
11135 * xml-support.c (_initialize_xml_support): Add declaration.
11136 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11137 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11138 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11139 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11140
11141 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11142
11143 * regformats/regdat.sh: Generate declaration for init function.
11144
11145 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11146
11147 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11148 up.
11149 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11150 close_one_inferior>: New methods.
11151 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11152 pass down target to find_inferior_pid.
11153 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11154 Pass down target to find_inferior_ptid.
11155 (gdbsim_target::create_inferior): Pass down target to
11156 add_thread_silent.
11157 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11158 target down to find_inferior_ptid and switch_to_thread.
11159 (gdbsim_target::close): Update to call close_one_inferior.
11160 (struct resume_data): Remove.
11161 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11162 directly, rather than through a void pointer.
11163 (gdbsim_target::resume): Update to call resume_one_inferior.
11164
11165 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11166
11167 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11168
11169 2020-01-12 Pedro Alves <palves@redhat.com>
11170
11171 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11172 directly for the current inferior instead of
11173 discard_all_inferiors.
11174 (discard_all_inferiors): Delete.
11175
11176 2020-01-11 Tom Tromey <tom@tromey.com>
11177
11178 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11179 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11180 deprecated_safe_get_selected_frame.
11181
11182 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11183
11184 * inferior.c (print_inferior): Switch inferior before printing it.
11185
11186 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11187 Pedro Alves <palves@redhat.com>
11188
11189 * progspace-and-thread.c (switch_to_program_space_and_thread):
11190 Assert there's an inferior for PSPACE. Use
11191 switch_to_inferior_no_thread to switch the inferior too.
11192 * progspace.c (program_space::~program_space): Call
11193 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11194 (program_space::free_all_objfiles): Don't call clear_symtab_users
11195 here.
11196 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11197
11198 2020-01-10 Pedro Alves <palves@redhat.com>
11199
11200 * NEWS: Mention multi-target debugging, "info connections", and
11201 "add-inferior -no-connection".
11202
11203 2020-01-10 Pedro Alves <palves@redhat.com>
11204
11205 * infrun.c: Include "target-connection.h".
11206 (check_multi_target_resumption): New.
11207 (proceed): Call it.
11208 * target-connection.c (make_target_connection_string): Make
11209 extern.
11210 * target-connection.h (make_target_connection_string): Declare.
11211
11212 2020-01-10 Pedro Alves <palves@redhat.com>
11213
11214 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11215 * inferior.c (uiout_field_connection): New function.
11216 (print_inferior): Add new "connection-id" column.
11217 (add_inferior_command): Show connection number/string of added
11218 inferior.
11219 * process-stratum-target.h
11220 (process_stratum_target::connection_string): New virtual method.
11221 (process_stratum_target::connection_number): New field.
11222 * remote.c (remote_target::connection_string): New override.
11223 * target-connection.c: New file.
11224 * target-connection.h: New file.
11225 * target.c (decref_target): Remove process_stratum targets from
11226 the connection list.
11227 (target_stack::push): Add process_stratum targets to the
11228 connection list.
11229
11230 2020-01-10 Pedro Alves <palves@redhat.com>
11231
11232 Revert:
11233 2016-04-12 Pedro Alves <palves@redhat.com>
11234 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11235 Remove references to name.
11236 * serial.h (struct serial) <name>: Delete.
11237
11238 2020-01-10 Pedro Alves <palves@redhat.com>
11239
11240 * gdbarch-selftests.c (register_to_value_test): Remove "target
11241 already pushed" check.
11242
11243 2020-01-10 Pedro Alves <palves@redhat.com>
11244 John Baldwin <jhb@FreeBSD.org>
11245
11246 * aarch64-linux-nat.c
11247 (aarch64_linux_nat_target::thread_architecture): Adjust.
11248 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11249 (task_command_1): Likewise.
11250 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11251 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11252 (aix_thread_target::store_registers)
11253 (aix_thread_target::thread_alive): Adjust.
11254 * amd64-fbsd-tdep.c: Include "inferior.h".
11255 (amd64fbsd_get_thread_local_address): Pass down target.
11256 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11257 thread's gdbarch instead of target_gdbarch.
11258 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11259 get_last_target_status.
11260 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11261 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11262 inferiors.
11263 (update_inserted_breakpoint_locations): Skip if inferiors with no
11264 execution.
11265 (update_global_location_list): When handling moribund locations,
11266 find representative inferior for location's pspace, and use thread
11267 count of its process_stratum target.
11268 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11269 * bsd-uthread.c (bsd_uthread_target::wait): Use
11270 as_process_stratum_target and adjust thread_change_ptid and
11271 add_thread calls.
11272 (bsd_uthread_target::update_thread_list): Use
11273 as_process_stratum_target and adjust find_thread_ptid,
11274 thread_change_ptid and add_thread calls.
11275 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11276 find_thread_ptid call.
11277 * corelow.c (add_to_thread_list): Adjust add_thread call.
11278 (core_target_open): Adjust add_thread_silent and thread_count
11279 calls.
11280 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11281 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11282 * event-top.c (async_disconnect): Pop targets from all inferiors.
11283 * exec.c (add_target_sections): Push exec target on all inferiors
11284 sharing the program space.
11285 (remove_target_sections): Remove the exec target from all
11286 inferiors sharing the program space.
11287 (exec_on_vfork): New.
11288 * exec.h (exec_on_vfork): Declare.
11289 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11290 Pass it down.
11291 (fbsd_nat_target::update_thread_list): Adjust.
11292 (fbsd_nat_target::resume): Adjust.
11293 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11294 down.
11295 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11296 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11297 get_thread_arch_regcache call.
11298 * fork-child.c (gdb_startup_inferior): Pass target down to
11299 startup_inferior and set_executing.
11300 * gdbthread.h (struct process_stratum_target): Forward declare.
11301 (add_thread, add_thread_silent, add_thread_with_info)
11302 (in_thread_list): Add process_stratum_target parameter.
11303 (find_thread_ptid(inferior*, ptid_t)): New overload.
11304 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11305 parameter.
11306 (all_threads()): Delete overload.
11307 (all_threads, all_non_exited_threads): Add process_stratum_target
11308 parameter.
11309 (all_threads_safe): Use brace initialization.
11310 (thread_count): Add process_stratum_target parameter.
11311 (set_resumed, set_running, set_stop_requested, set_executing)
11312 (threads_are_executing, finish_thread_state): Add
11313 process_stratum_target parameter.
11314 (switch_to_thread): Use is_current_thread.
11315 * i386-fbsd-tdep.c: Include "inferior.h".
11316 (i386fbsd_get_thread_local_address): Pass down target.
11317 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11318 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11319 have_inferiors check.
11320 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11321 (inf_ptrace_target::attach): Adjust.
11322 * infcall.c (run_inferior_call): Adjust.
11323 * infcmd.c (run_command_1): Pass target to
11324 scoped_finish_thread_state.
11325 (proceed_thread_callback): Skip inferiors with no execution.
11326 (continue_command): Rename 'all_threads' local to avoid hiding
11327 'all_threads' function. Adjust get_last_target_status call.
11328 (prepare_one_step): Adjust set_running call.
11329 (signal_command): Use user_visible_resume_target. Compare thread
11330 pointers instead of inferior_ptid.
11331 (info_program_command): Adjust to pass down target.
11332 (attach_command): Mark target's 'thread_executing' flag.
11333 (stop_current_target_threads_ns): New, factored out from ...
11334 (interrupt_target_1): ... this. Switch inferior before making
11335 target calls.
11336 * inferior-iter.h
11337 (struct all_inferiors_iterator, struct all_inferiors_range)
11338 (struct all_inferiors_safe_range)
11339 (struct all_non_exited_inferiors_range): Filter on
11340 process_stratum_target too. Remove explicit.
11341 * inferior.c (inferior::inferior): Push dummy target on target
11342 stack.
11343 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11344 Add process_stratum_target parameter, and pass it down.
11345 (have_live_inferiors): Adjust.
11346 (switch_to_inferior_and_push_target): New.
11347 (add_inferior_command, clone_inferior_command): Handle
11348 "-no-connection" parameter. Use
11349 switch_to_inferior_and_push_target.
11350 (_initialize_inferior): Mention "-no-connection" option in
11351 the help of "add-inferior" and "clone-inferior" commands.
11352 * inferior.h: Include "process-stratum-target.h".
11353 (interrupt_target_1): Use bool.
11354 (struct inferior) <push_target, unpush_target, target_is_pushed,
11355 find_target_beneath, top_target, process_target, target_at,
11356 m_stack>: New.
11357 (discard_all_inferiors): Delete.
11358 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11359 (all_inferiors, all_non_exited_inferiors): Add
11360 process_stratum_target parameter.
11361 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11362 (target_last_proc_target): New global.
11363 (follow_fork_inferior): Push target on new inferior. Pass target
11364 to add_thread_silent. Call exec_on_vfork. Handle target's
11365 reference count.
11366 (follow_fork): Adjust get_last_target_status call. Also consider
11367 target.
11368 (follow_exec): Push target on new inferior.
11369 (struct execution_control_state) <target>: New field.
11370 (user_visible_resume_target): New.
11371 (do_target_resume): Call target_async.
11372 (resume_1): Set target's threads_executing flag. Consider resume
11373 target.
11374 (commit_resume_all_targets): New.
11375 (proceed): Also consider resume target. Skip threads of inferiors
11376 with no execution. Commit resumtion in all targets.
11377 (start_remote): Pass current inferior to wait_for_inferior.
11378 (infrun_thread_stop_requested): Consider target as well. Pass
11379 thread_info pointer to clear_inline_frame_state instead of ptid.
11380 (infrun_thread_thread_exit): Consider target as well.
11381 (random_pending_event_thread): New inferior parameter. Use it.
11382 (do_target_wait): Rename to ...
11383 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11384 down.
11385 (threads_are_resumed_pending_p, do_target_wait): New.
11386 (prepare_for_detach): Adjust calls.
11387 (wait_for_inferior): New inferior parameter. Handle it. Use
11388 do_target_wait_1 instead of do_target_wait.
11389 (fetch_inferior_event): Adjust. Switch to representative
11390 inferior. Pass target down.
11391 (set_last_target_status): Add process_stratum_target parameter.
11392 Save target in global.
11393 (get_last_target_status): Add process_stratum_target parameter and
11394 handle it.
11395 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11396 (context_switch): Check inferior_ptid == null_ptid before calling
11397 inferior_thread().
11398 (get_inferior_stop_soon): Pass down target.
11399 (wait_one): Rename to ...
11400 (poll_one_curr_target): ... this.
11401 (struct wait_one_event): New.
11402 (wait_one): New.
11403 (stop_all_threads): Adjust.
11404 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11405 event's target.
11406 (switch_back_to_stepped_thread): Also consider target.
11407 (print_stop_event): Update.
11408 (normal_stop): Update. Also consider the resume target.
11409 * infrun.h (wait_for_inferior): Remove declaration.
11410 (user_visible_resume_target): New declaration.
11411 (get_last_target_status, set_last_target_status): New
11412 process_stratum_target parameter.
11413 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11414 process_stratum_target parameter, and use it.
11415 (clear_inline_frame_state (thread_info*)): New.
11416 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11417 process_stratum_target parameter.
11418 (clear_inline_frame_state (thread_info*)): Declare.
11419 * linux-fork.c (delete_checkpoint_command): Pass target down to
11420 find_thread_ptid.
11421 (checkpoint_command): Adjust.
11422 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11423 instead of just tweaking inferior_ptid.
11424 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11425 (exit_lwp): Pass target down to find_thread_ptid.
11426 (attach_proc_task_lwp_callback): Pass target down to
11427 add_thread/set_running/set_executing.
11428 (linux_nat_target::attach): Pass target down to
11429 thread_change_ptid.
11430 (get_detach_signal): Pass target down to find_thread_ptid.
11431 Consider last target status's target.
11432 (linux_resume_one_lwp_throw, resume_lwp)
11433 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11434 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11435 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11436 (linux_nat_target::async_wait_fd): New.
11437 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11438 target down.
11439 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11440 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11441 * linux-thread-db.c (struct thread_db_info::process_target): New
11442 field.
11443 (add_thread_db_info): Save target.
11444 (get_thread_db_info): New process_stratum_target parameter. Also
11445 match target.
11446 (delete_thread_db_info): New process_stratum_target parameter.
11447 Also match target.
11448 (thread_from_lwp): Adjust to pass down target.
11449 (thread_db_notice_clone): Pass down target.
11450 (check_thread_db_callback): Pass down target.
11451 (try_thread_db_load_1): Always push the thread_db target.
11452 (try_thread_db_load, record_thread): Pass target down.
11453 (thread_db_target::detach): Pass target down. Always unpush the
11454 thread_db target.
11455 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11456 target down. Always unpush the thread_db target.
11457 (find_new_threads_callback, thread_db_find_new_threads_2)
11458 (thread_db_target::update_thread_list): Pass target down.
11459 (thread_db_target::pid_to_str): Pass current inferior down.
11460 (thread_db_target::get_thread_local_address): Pass target down.
11461 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11462 target down.
11463 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11464 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11465 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11466 (procfs_init_inferior): Rename to ...
11467 (procfs_target::procfs_init_inferior): ... this and adjust.
11468 (procfs_target::create_inferior, procfs_notice_thread)
11469 (procfs_do_thread_registers): Adjust.
11470 * ppc-fbsd-tdep.c: Include "inferior.h".
11471 (ppcfbsd_get_thread_local_address): Pass down target.
11472 * proc-service.c (ps_xfer_memory): Switch current inferior and
11473 program space as well.
11474 (get_ps_regcache): Pass target down.
11475 * process-stratum-target.c
11476 (process_stratum_target::thread_address_space)
11477 (process_stratum_target::thread_architecture): Pass target down.
11478 * process-stratum-target.h
11479 (process_stratum_target::threads_executing): New field.
11480 (as_process_stratum_target): New.
11481 * ravenscar-thread.c
11482 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11483 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11484 down.
11485 * record-btrace.c (record_btrace_target::info_record): Adjust.
11486 (record_btrace_target::record_method)
11487 (record_btrace_target::record_is_replaying)
11488 (record_btrace_target::fetch_registers)
11489 (get_thread_current_frame_id, record_btrace_target::resume)
11490 (record_btrace_target::wait, record_btrace_target::stop): Pass
11491 target down.
11492 * record-full.c (record_full_wait_1): Switch to event thread.
11493 Pass target down.
11494 * regcache.c (regcache::regcache)
11495 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11496 process_stratum_target parameter and handle it.
11497 (current_thread_target): New global.
11498 (get_thread_regcache): Add process_stratum_target parameter and
11499 handle it. Switch inferior before calling target method.
11500 (get_thread_regcache): Pass target down.
11501 (get_thread_regcache_for_ptid): Pass target down.
11502 (registers_changed_ptid): Add process_stratum_target parameter and
11503 handle it.
11504 (registers_changed_thread, registers_changed): Pass target down.
11505 (test_get_thread_arch_aspace_regcache): New.
11506 (current_regcache_test): Define a couple local test_target_ops
11507 instances and use them for testing.
11508 (readwrite_regcache): Pass process_stratum_target parameter.
11509 (cooked_read_test, cooked_write_test): Pass mock_target down.
11510 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11511 (get_thread_arch_aspace_regcache): Add process_stratum_target
11512 parameter.
11513 (regcache::target): New method.
11514 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11515 (regcache::registers_changed_ptid): Add process_stratum_target
11516 parameter.
11517 (regcache::m_target): New field.
11518 (registers_changed_ptid): Add process_stratum_target parameter.
11519 * remote.c (remote_state::supports_vCont_probed): New field.
11520 (remote_target::async_wait_fd): New method.
11521 (remote_unpush_and_throw): Add remote_target parameter.
11522 (get_current_remote_target): Adjust.
11523 (remote_target::remote_add_inferior): Push target.
11524 (remote_target::remote_add_thread)
11525 (remote_target::remote_notice_new_inferior)
11526 (get_remote_thread_info): Pass target down.
11527 (remote_target::update_thread_list): Skip threads of inferiors
11528 bound to other targets. (remote_target::close): Don't discard
11529 inferiors. (remote_target::add_current_inferior_and_thread)
11530 (remote_target::process_initial_stop_replies)
11531 (remote_target::start_remote)
11532 (remote_target::remote_serial_quit_handler): Pass down target.
11533 (remote_target::remote_unpush_target): New remote_target
11534 parameter. Unpush the target from all inferiors.
11535 (remote_target::remote_unpush_and_throw): New remote_target
11536 parameter. Pass it down.
11537 (remote_target::open_1): Check whether the current inferior has
11538 execution instead of checking whether any inferior is live. Pass
11539 target down.
11540 (remote_target::remote_detach_1): Pass down target. Use
11541 remote_unpush_target.
11542 (extended_remote_target::attach): Pass down target.
11543 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11544 (remote_target::append_resumption): Pass down target.
11545 (remote_target::append_pending_thread_resumptions)
11546 (remote_target::remote_resume_with_hc, remote_target::resume)
11547 (remote_target::commit_resume): Pass down target.
11548 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11549 (remote_target::interrupt_query)
11550 (remote_target::remove_new_fork_children)
11551 (remote_target::check_pending_events_prevent_wildcard_vcont)
11552 (remote_target::remote_parse_stop_reply)
11553 (remote_target::process_stop_reply): Pass down target.
11554 (first_remote_resumed_thread): New remote_target parameter. Pass
11555 it down.
11556 (remote_target::wait_as): Pass down target.
11557 (unpush_and_perror): New remote_target parameter. Pass it down.
11558 (remote_target::readchar, remote_target::remote_serial_write)
11559 (remote_target::getpkt_or_notif_sane_1)
11560 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11561 down target.
11562 (remote_target::mourn_inferior): Pass down target. Use
11563 remote_unpush_target.
11564 (remote_target::core_of_thread)
11565 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11566 (remote_target::pid_to_exec_file)
11567 (remote_target::thread_handle_to_thread_info): Pass down target.
11568 (remote_target::async_wait_fd): New.
11569 * riscv-fbsd-tdep.c: Include "inferior.h".
11570 (riscv_fbsd_get_thread_local_address): Pass down target.
11571 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11572 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11573 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11574 Adjust.
11575 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11576 * solib-svr4.c (enable_break): Pass down target.
11577 * spu-multiarch.c (parse_spufs_run): Pass down target.
11578 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11579 * target-delegates.c: Regenerate.
11580 * target.c (g_target_stack): Delete.
11581 (current_top_target): Return the current inferior's top target.
11582 (target_has_execution_1): Refer to the passed-in inferior's top
11583 target.
11584 (target_supports_terminal_ours): Check whether the initial
11585 inferior was already created.
11586 (decref_target): New.
11587 (target_stack::push): Incref/decref the target.
11588 (push_target, push_target, unpush_target): Adjust.
11589 (target_stack::unpush): Defref target.
11590 (target_is_pushed): Return bool. Adjust to refer to the current
11591 inferior's target stack.
11592 (dispose_inferior): Delete, and inline parts ...
11593 (target_preopen): ... here. Only dispose of the current inferior.
11594 (target_detach): Hold strong target reference while detaching.
11595 Pass target down.
11596 (target_thread_name): Add assertion.
11597 (target_resume): Pass down target.
11598 (target_ops::beneath, find_target_at): Adjust to refer to the
11599 current inferior's target stack.
11600 (get_dummy_target): New.
11601 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11602 has a thread running.
11603 (initialize_targets): Rename to ...
11604 (_initialize_target): ... this.
11605 * target.h: Include "gdbsupport/refcounted-object.h".
11606 (struct target_ops): Inherit refcounted_object.
11607 (target_ops::shortname, target_ops::longname): Make const.
11608 (target_ops::async_wait_fd): New method.
11609 (decref_target): Declare.
11610 (struct target_ops_ref_policy): New.
11611 (target_ops_ref): New typedef.
11612 (get_dummy_target): Declare function.
11613 (target_is_pushed): Return bool.
11614 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11615 (all_matching_threads_iterator::all_matching_threads_iterator):
11616 Handle filter target.
11617 * thread-iter.h (struct all_matching_threads_iterator, struct
11618 all_matching_threads_range, class all_non_exited_threads_range):
11619 Filter by target too. Remove explicit.
11620 * thread.c (threads_executing): Delete.
11621 (inferior_thread): Pass down current inferior.
11622 (clear_thread_inferior_resources): Pass down thread pointer
11623 instead of ptid_t.
11624 (add_thread_silent, add_thread_with_info, add_thread): Add
11625 process_stratum_target parameter. Use it for thread and inferior
11626 searches.
11627 (is_current_thread): New.
11628 (thread_info::deletable): Use it.
11629 (find_thread_ptid, thread_count, in_thread_list)
11630 (thread_change_ptid, set_resumed, set_running): New
11631 process_stratum_target parameter. Pass it down.
11632 (set_executing): New process_stratum_target parameter. Pass it
11633 down. Adjust reference to 'threads_executing'.
11634 (threads_are_executing): New process_stratum_target parameter.
11635 Adjust reference to 'threads_executing'.
11636 (set_stop_requested, finish_thread_state): New
11637 process_stratum_target parameter. Pass it down.
11638 (switch_to_thread): Also match inferior.
11639 (switch_to_thread): New process_stratum_target parameter. Pass it
11640 down.
11641 (update_threads_executing): Reimplement.
11642 * top.c (quit_force): Pop targets from all inferior.
11643 (gdb_init): Don't call initialize_targets.
11644 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11645 Declare.
11646 (windows_add_thread, windows_delete_thread): Adjust.
11647 (get_windows_debug_event): Rename to ...
11648 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11649 * tracefile-tfile.c (tfile_target_open): Pass down target.
11650 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11651 Forward declare.
11652 (switch_to_thread): Add process_stratum_target parameter.
11653 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11654 parameter. Use it.
11655 (mi_on_resume): Pass target down.
11656 * nat/fork-inferior.c (startup_inferior): Add
11657 process_stratum_target parameter. Pass it down.
11658 * nat/fork-inferior.h (startup_inferior): Add
11659 process_stratum_target parameter.
11660 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11661
11662 2020-01-10 Pedro Alves <palves@redhat.com>
11663
11664 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11665 directly. Instead find the first thread in the thread list and
11666 use switch_to_thread.
11667
11668 2020-01-10 Pedro Alves <palves@redhat.com>
11669
11670 * remote.c (remote_target::remote_add_inferior): Don't bind a
11671 process to the current inferior if the current inferior is already
11672 bound to a process.
11673
11674 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11675 Pedro Alves <palves@redhat.com>
11676
11677 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11678 If no process is specified, return null_ptid instead of
11679 inferior_ptid.
11680 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11681 TARGET_WAITKIND_SIGNALLED with no pid.
11682
11683 2020-01-10 Pedro Alves <palves@redhat.com>
11684
11685 * remote.c (first_remote_resumed_thread): New.
11686 (remote_target::wait_as): Use it as default event_ptid instead of
11687 inferior_ptid.
11688
11689 2020-01-10 Pedro Alves <palves@redhat.com>
11690
11691 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11692
11693 2020-01-10 Pedro Alves <palves@redhat.com>
11694
11695 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11696 not -1.
11697
11698 2020-01-10 Pedro Alves <palves@redhat.com>
11699
11700 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11701 ptid to get_last_target_status.
11702 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11703 ptid to get_last_target_status.
11704 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11705 get_last_target_status.
11706 (info_program_command): Don't pass a target_waitstatus to
11707 get_last_target_status.
11708 * infrun.c (init_wait_for_inferior): Use
11709 nullify_last_target_wait_ptid.
11710 (get_last_target_status): Handle nullptr arguments.
11711 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11712 (print_stop_event): Don't pass a ptid to get_last_target_status.
11713 (normal_stop): Don't pass a ptid to get_last_target_status.
11714 * infrun.h (get_last_target_status, set_last_target_status): Move
11715 comments here and update.
11716 (nullify_last_target_wait_ptid): Declare.
11717 * linux-fork.c (fork_load_infrun_state): Remove local extern
11718 declaration of nullify_last_target_wait_ptid.
11719 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11720 to get_last_target_status.
11721
11722 2020-01-10 Pedro Alves <palves@redhat.com>
11723
11724 * gdbthread.h (scoped_restore_current_thread)
11725 <dont_restore, restore, m_dont_restore>: Declare.
11726 * thread.c (thread_alive): Add assertion. Return bool.
11727 (switch_to_thread_if_alive): New.
11728 (prune_threads): Switch inferior/thread.
11729 (print_thread_info_1): Switch thread before calling target methods.
11730 (scoped_restore_current_thread::restore): New, factored out from
11731 ...
11732 (scoped_restore_current_thread::~scoped_restore_current_thread):
11733 ... this.
11734 (scoped_restore_current_thread::scoped_restore_current_thread):
11735 Add assertion.
11736 (thread_apply_all_command, thread_select): Use
11737 switch_to_thread_if_alive.
11738 * infrun.c (proceed, restart_threads, handle_signal_stop)
11739 (switch_back_to_stepped_thread): Switch current thread before
11740 calling target methods.
11741
11742 2020-01-10 Pedro Alves <palves@redhat.com>
11743
11744 * inferior.c (switch_to_inferior_no_thread): New function,
11745 factored out from ...
11746 (inferior_command): ... here.
11747 * inferior.h (switch_to_inferior_no_thread): Declare.
11748 * mi/mi-main.c (run_one_inferior): Use
11749 switch_to_inferior_no_thread.
11750
11751 2020-01-10 Pedro Alves <palves@redhat.com>
11752
11753 * infcmd.c (kill_command): Remove dead code.
11754
11755 2020-01-10 Pedro Alves <palves@redhat.com>
11756
11757 * remote.c (remote_target::mourn_inferior): No longer check
11758 whether the target is running.
11759
11760 2020-01-10 Pedro Alves <palves@redhat.com>
11761
11762 * corelow.c (core_target::has_execution): Change parameter type to
11763 inferior pointer.
11764 * inferior.c (number_of_live_inferiors): Use
11765 inferior::has_execution instead of target_has_execution_1.
11766 * inferior.h (inferior::has_execution): New.
11767 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11768 inferior::has_execution instead of target_has_execution_1.
11769 * process-stratum-target.c
11770 (process_stratum_target::has_execution): Change parameter type to
11771 inferior pointer. Check the inferior's PID instead of
11772 inferior_ptid.
11773 * process-stratum-target.h
11774 (process_stratum_target::has_execution): Change parameter type to
11775 inferior pointer.
11776 * record-full.c (record_full_core_target::has_execution): Change
11777 parameter type to inferior pointer.
11778 * target.c (target_has_execution_1): Change parameter type to
11779 inferior pointer.
11780 (target_has_execution_current): Adjust.
11781 * target.h (target_ops::has_execution): Change parameter type to
11782 inferior pointer.
11783 (target_has_execution_1): Change parameter type to inferior
11784 pointer. Change return type to bool.
11785 * tracefile.h (tracefile_target::has_execution): Change parameter
11786 type to inferior pointer.
11787
11788 2020-01-10 Pedro Alves <palves@redhat.com>
11789
11790 * exceptions.c (print_flush): Remove current_top_target() check.
11791
11792 2020-01-10 Pedro Alves <palves@redhat.com>
11793
11794 * remote.c (show_remote_exec_file): Show the current inferior's
11795 exec-file instead of the command variable's value.
11796
11797 2020-01-10 Pedro Alves <palves@redhat.com>
11798
11799 * record-full.c (record_full_resume_ptid): New global.
11800 (record_full_target::resume): Set it.
11801 (record_full_wait_1): Use record_full_resume_ptid instead of
11802 inferior_ptid.
11803
11804 2020-01-10 Pedro Alves <palves@redhat.com>
11805
11806 * gdbthread.h (scoped_restore_current_thread)
11807 <dont_restore, restore, m_dont_restore>: Declare.
11808 * thread.c (thread_alive): Add assertion. Return bool.
11809 (switch_to_thread_if_alive): New.
11810 (prune_threads): Switch inferior/thread.
11811 (print_thread_info_1): Switch thread before calling target methods.
11812 (scoped_restore_current_thread::restore): New, factored out from
11813 ...
11814 (scoped_restore_current_thread::~scoped_restore_current_thread):
11815 ... this.
11816 (scoped_restore_current_thread::scoped_restore_current_thread):
11817 Add assertion.
11818 (thread_apply_all_command, thread_select): Use
11819 switch_to_thread_if_alive.
11820
11821 2020-01-10 George Barrett <bob@bob131.so>
11822
11823 * stap-probe.c (stap_modify_semaphore): Don't check for null
11824 semaphores.
11825 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11826 for null semaphores.
11827
11828 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11829
11830 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11831 all source windows, and maintain horizontal scroll status while
11832 doing so.
11833
11834 2020-01-09 Tom Tromey <tom@tromey.com>
11835
11836 PR tui/18932:
11837 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11838 update_source_window, not print_source_lines.
11839
11840 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11841
11842 * tui/tui.c (tui_enable): Register tui hooks after calling
11843 tui_display_main.
11844
11845 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11846
11847 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11848
11849 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11850
11851 * thread.c (print_thread_info_1): Fix indentation.
11852
11853 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11854
11855 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11856 unique_xmalloc_ptr outside the if to always free the demangled name.
11857
11858 2020-01-08 Tom Tromey <tromey@adacore.com>
11859
11860 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11861 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11862 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11863 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11864 Remove.
11865 (section_offsets): New typedef.
11866 * symtab.c (fixup_section, get_msymbol_address): Update.
11867 * symmisc.c (dump_msymbols): Update.
11868 * symfile.h (relative_addr_info_to_section_offsets)
11869 (symfile_map_offsets_to_segments): Update.
11870 * symfile.c (build_section_addr_info_from_objfile)
11871 (init_objfile_sect_indices): Update.
11872 (struct place_section_arg): Change type of "offsets".
11873 (place_section): Update.
11874 (relative_addr_info_to_section_offsets): Change type of
11875 "section_offsets". Remove "num_sections" parameter.
11876 (default_symfile_offsets, syms_from_objfile_1)
11877 (set_objfile_default_section_offset): Update.
11878 (reread_symbols): No need to preserve section offsets by hand.
11879 (symfile_map_offsets_to_segments): Change type of "offsets".
11880 * stap-probe.c (relocate_address): Update.
11881 * stabsread.h (process_one_symbol): Update.
11882 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11883 (solib_target_relocate_section_addresses): Update.
11884 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11885 Update.
11886 * solib-frv.c (frv_relocate_main_executable): Update.
11887 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11888 * solib-aix.c (solib_aix_get_section_offsets): Change return
11889 type.
11890 (solib_aix_solib_create_inferior_hook): Update.
11891 * remote.c (remote_target::get_offsets): Update.
11892 * psymtab.c (find_pc_sect_psymtab): Update.
11893 * psympriv.h (struct partial_symbol) <address, text_low,
11894 text_high>: Update.
11895 * objfiles.h (obj_section_offset): Update.
11896 (struct objfile) <section_offsets>: Change type.
11897 <num_sections>: Remove.
11898 (objfile_relocate): Update.
11899 * objfiles.c (entry_point_address_query): Update
11900 (relocate_one_symbol): Change type of "section_offsets".
11901 (objfile_relocate1, objfile_relocate1): Change type of
11902 "new_offsets".
11903 (objfile_rebase1): Update.
11904 * mipsread.c (mipscoff_symfile_read): Update.
11905 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11906 parameter.
11907 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11908 (parse_external, psymtab_to_symtab_1): Update.
11909 * machoread.c (macho_symfile_offsets): Update.
11910 * ia64-tdep.c (ia64_find_unwind_table): Update.
11911 * hppa-tdep.c (read_unwind_info): Update.
11912 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11913 * dwarf2read.c (create_addrmap_from_index)
11914 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11915 (process_psymtab_comp_unit_reader, add_partial_symbol)
11916 (add_partial_subprogram, process_full_comp_unit)
11917 (read_file_scope, read_func_scope, read_lexical_block_scope)
11918 (read_call_site_scope, dwarf2_rnglists_process)
11919 (dwarf2_ranges_process, dwarf2_ranges_read)
11920 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11921 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11922 Update.
11923 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11924 Update.
11925 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11926 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11927 (process_one_symbol): Change type of "section_offsets".
11928 * ctfread.c (get_objfile_text_range): Update.
11929 * coffread.c (coff_symtab_read, enter_linenos)
11930 (process_coff_symbol): Update.
11931 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11932 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11933
11934 2020-01-08 Tom Tromey <tromey@adacore.com>
11935
11936 * dwarf2read.c (parse_macro_definition): Use std::string.
11937 (parse_macro_definition): Likewise.
11938
11939 2020-01-08 Tom Tromey <tromey@adacore.com>
11940
11941 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11942 (ATTR_ALLOC_CHUNK): Remove.
11943
11944 2020-01-08 Tom Tromey <tromey@adacore.com>
11945
11946 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11947
11948 2020-01-08 Tom Tromey <tromey@adacore.com>
11949
11950 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11951 (dwarf2_compute_name, open_dwo_file): Likewise.
11952 (process_enumeration_scope): Use std::vector.
11953 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11954 (partial_die_info::fixup, dwarf2_start_subfile)
11955 (guess_full_die_structure_name, dwarf2_name): Likewise.
11956 (determine_prefix): Update.
11957 (guess_full_die_structure_name): Make return type const.
11958 (partial_die_full_name): Return unique_xmalloc_ptr.
11959 (DW_FIELD_ALLOC_CHUNK): Remove.
11960
11961 2020-01-07 Tom Tromey <tromey@adacore.com>
11962
11963 PR build/24937:
11964 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11965
11966 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11967
11968 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11969
11970 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11971
11972 * stack.c (print_frame_info): Move disassemble_next_line code
11973 inside source_print block.
11974
11975 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11976
11977 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11978 gdb/signals.h, as we are now using native signal symbols.
11979
11980 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11981
11982 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11983 overflow by an early check of content vs threshold.
11984 * tui/tui-source.c (tui_source_window::line_is_displayed):
11985 Likewise.
11986
11987 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11988
11989 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11990
11991 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11992
11993 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11994 export table if no section contains it's RVA.
11995
11996 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11997
11998 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11999
12000 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12001
12002 * source.c (print_source_lines_base): Set last_line_listed.
12003
12004 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12005
12006 * tui/tui-disasm.c: Remove trailing spaces.
12007
12008 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12009 Pedro Alves <palves@redhat.com>
12010
12011 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12012 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12013 (windows_gdb_signal_to_target): New function, uses the above
12014 enumeration to convert GDB internal signal codes to equivalent
12015 Windows codes.
12016 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12017 * windows-nat.c: Include "gdb_wait.h".
12018 (get_windows_debug_event): Extract the fatal exception from the
12019 exit status and convert to the equivalent Posix signal number.
12020 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12021 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12022 * gdbsupport/gdb_wait.c: New file, implements
12023 windows_status_to_termsig.
12024 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12025 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12026
12027 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12028
12029 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12030 show_layout.
12031
12032 2020-01-05 Luis Machado <luis.machado@linaro.org>
12033
12034 * aarch64-linux-nat.c
12035 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12036 and bfd_mach_aarch64.
12037
12038 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12039
12040 * ui-file.c (stdio_file::can_emit_style_escape)
12041 (tee_file::can_emit_style_escape): Ensure style is used also on
12042 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12043 to gdb_stdout.
12044 * main.c (set_gdb_data_directory): Use file style to output the
12045 warning that the given pathname is not a directory.
12046 * top.c (show_history_filename, gdb_safe_append_history)
12047 (show_gdb_datadir): Use file style.
12048
12049 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12050
12051 * solib-target.c (struct lm_info_target):
12052 Change offsets to be a unique_xmalloc_ptr.
12053 (solib_target_relocate_section_addresses): Update.
12054
12055 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12056
12057 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12058
12059 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12060
12061 * MAINTAINERS (Write After Approval): Add myself.
12062
12063 2020-01-02 Luis Machado <luis.machado@linaro.org>
12064
12065 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12066 Cell BE architecture.
12067 * target.h (struct target_ops) <thread_architecture>: Likewise.
12068
12069 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12070
12071 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12072
12073 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12074
12075 * MAINTAINERS (Write After Approval): Add myself.
12076
12077 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12078
12079 * gdbarch.sh: Update copyright year range of generated files.
12080
12081 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12082
12083 Update copyright year range in all GDB files.
12084
12085 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12086
12087 * copyright.py: Convert to Python 3.
12088
12089 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12090
12091 * copyright.py: Adapt after move of gnulib directory from gdb
12092 directory to toplevel directory.
12093
12094 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12095
12096 * copyright.py (main): Exit if run from the wrong directory.
12097
12098 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12099
12100 * top.c (print_gdb_version): Change copyright year to 2020.
12101
12102 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12103
12104 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12105
12106 For older changes see ChangeLog-2019.
12107 \f
12108 Local Variables:
12109 mode: change-log
12110 left-margin: 8
12111 fill-column: 74
12112 version-control: never
12113 coding: utf-8
12114 End: