]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
[gdb] Fix printing of unresolved dynamic type
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-08-17 Tom de Vries <tdevries@suse.de>
2
3 PR gdb/26393
4 * gdbtypes.c (dump_dynamic_prop): New function.
5 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6
7 2020-08-15 Tom de Vries <tdevries@suse.de>
8
9 PR backtrace/26390
10 * stack.c (print_frame_args): Temporarily set the selected
11 frame to FRAME while printing the frame's arguments.
12
13 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14
15 PR breakpoints/26385
16 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
17 Always clear watchpoint with PTRACE_SET_DEBUGREG.
18
19 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
20
21 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
22 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
23 and >= to check return value instead of == -1 and != -1.
24
25 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
26
27 * utils.h (class gdb_argv) <as_array_view>: New method.
28 * utils.c (gdb_argv_as_array_view_test): New.
29 (_initialize_utils): Register selftest.
30 * maint.c (maintenance_selftest): Use the new method.
31
32 2020-08-13 Kamil Rytarowski <n54@gmx.com>
33
34 * target.h (supports_dumpcore, dumpcore): New
35 function declarations.
36 * target.c (supports_dumpcore, dumpcore): New
37 functions.
38 * target-delegates.c: Rebuild.
39 * gcore.c (gcore_command): Use target_supports_dumpcore ()
40 and target_dumpcore ().
41
42 2020-08-13 Aaron Merey <amerey@redhat.com>
43
44 * debuginfod-support.c: Replace global variables with user_data.
45
46 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
47
48 * maint.c (maintenance_selftest): Split args and pass array_view
49 to run_tests.
50
51 2020-08-12 Luis Machado <luis.machado@linaro.org>
52
53 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
54 type's length.
55 Use %s and pulongest to print the length.
56
57 2020-08-12 Pedro Alves <palves@redhat.com>
58
59 * NEWS: Move "Multi-target debugging support" item to the
60 "Changes since GDB 9" section.
61
62 2020-08-12 Pedro Alves <palves@redhat.com>
63
64 PR gdb/26336
65 * progspace.c (program_space::remove_objfile): Invalidate the
66 frame cache.
67
68 2020-08-11 Tom de Vries <tdevries@suse.de>
69
70 * MAINTAINERS: Mark ms1 as deleted.
71
72 2020-08-10 Luis Machado <luis.machado@linaro.org>
73
74 PR gdb/26310
75
76 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
77 act accordingly.
78 (aarch64_analyze_prologue_test): Add more unit tests to exercise
79 movz/str/stur/stp skipping behavior.
80
81 2020-08-10 Luis Machado <luis.machado@linaro.org>
82
83 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
84 struct user_sve_header instead of struct sve_context.
85
86 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
87
88 * read.h (dwarf2_fetch_die_loc_sect_off,
89 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
90 `void *` parameter with function_view.
91 * read.c (dwarf2_fetch_die_loc_sect_off,
92 dwarf2_fetch_die_loc_cu_off): Likewise.
93 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
94 (per_cu_dwarf_call): Adjust.
95 (get_frame_address_in_block_wrapper): Remove.
96 (indirect_synthetic_pointer): Adjust.
97 (get_ax_pc): Remove.
98 (dwarf2_compile_expr_to_ax): Adjust.
99
100 2020-08-08 Tom de Vries <tdevries@suse.de>
101
102 PR build/26344
103 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
104 constructor.
105 * regcache.c (get_thread_arch_aspace_regcache): Same.
106
107 2020-08-07 Tom Tromey <tromey@adacore.com>
108
109 * ravenscar-thread.c
110 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
111 New method.
112 (ravenscar_thread_target::wait): Check
113 runtime_initialized.
114 (ravenscar_thread_target::prepare_to_store)
115 (ravenscar_thread_target::stopped_by_sw_breakpoint)
116 (ravenscar_thread_target::stopped_by_hw_breakpoint)
117 (ravenscar_thread_target::stopped_by_watchpoint)
118 (ravenscar_thread_target::stopped_data_address)
119 (ravenscar_thread_target::core_of_thread): Use
120 scoped_restore_current_thread and
121 set_base_thread_from_ravenscar_task.
122
123 2020-08-07 Tom Tromey <tromey@adacore.com>
124
125 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
126
127 2020-08-07 Tom Tromey <tromey@adacore.com>
128
129 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
130 update_inferior_ptid before update_thread_list.
131 (temporarily_change_regcache_ptid): New class.
132 (ravenscar_thread_target::fetch_registers)
133 (ravenscar_thread_target::store_registers)
134 (ravenscar_thread_target::prepare_to_store): Use base thread when
135 forwarding operation.
136
137 2020-08-07 Tom Tromey <tromey@adacore.com>
138
139 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
140 "is_pid" case.
141
142 2020-08-07 Tom Tromey <tromey@adacore.com>
143
144 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
145 New methods.
146 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
147 first.
148 (ravenscar_thread_target::add_thread): Rename from
149 ravenscar_add_thread.
150 (ravenscar_thread_target::update_thread_list): Use a lambda.
151 (ravenscar_thread_target::xfer_partial): New method.
152
153 2020-08-07 Tom Tromey <tromey@adacore.com>
154
155 * ada-lang.h (ada_task_list_iterator_ftype): Now a
156 gdb::function_view.
157 (iterate_over_live_ada_tasks): Change type of argument.
158 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
159 of argument.
160
161 2020-08-07 Tom Tromey <tromey@adacore.com>
162
163 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
164 Remove.
165 (ravenscar_thread_target::extra_thread_info): Remove.
166 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
167 defer to target beneath for non-Ravenscar threads.
168
169 2020-08-07 Tom Tromey <tromey@adacore.com>
170
171 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
172 get_base_thread_from_ravenscar_task>: Now methods.
173 <m_cpu_map>: New member.
174 (ravenscar_thread_target::get_thread_base_cpu): Rename from
175 ravenscar_get_thread_base_cpu. Check m_cpu_map.
176 (ravenscar_thread_target::task_is_currently_active): Update.
177 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
178 Now a method.
179 (ravenscar_thread_target::add_active_thread): Put initial thread
180 into the m_cpu_map.
181
182 2020-08-07 Tom Tromey <tromey@adacore.com>
183
184 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
185 event_ptid.
186
187 2020-08-07 Tom Tromey <tromey@adacore.com>
188
189 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
190 runtime_initialized.
191
192 2020-08-07 Tom Tromey <tromey@adacore.com>
193
194 * ravenscar-thread.c (ravenscar_thread_target): Don't call
195 add_active_thread.
196 (ravenscar_thread_target::add_active_thread): Now public.
197 (ravenscar_inferior_created): Call add_active_thread after pushing
198 the target.
199
200 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
201
202 * regcache.c (ptid_regcache_map): New type.
203 (target_ptid_regcache_map): New type.
204 (regcaches): Change type to target_ptid_regcache_map.
205 (get_thread_arch_aspace_regcache): Update to regcaches' new
206 type.
207 (regcache_thread_ptid_changed): Likewise.
208 (registers_changed_ptid): Likewise.
209 (regcaches_size): Likewise.
210 (regcaches_test): Update.
211 (regcache_thread_ptid_changed): Update.
212 * regcache.h (regcache_up): New type.
213 * gdbsupport/ptid.h (hash_ptid): New struct.
214
215 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
216
217 * observable.h (thread_ptid_changed): Add parameter
218 `process_stratum_target *`.
219 * infrun.c (infrun_thread_ptid_changed): Add parameter
220 `process_stratum_target *` and use it.
221 (selftests): New namespace.
222 (infrun_thread_ptid_changed): New function.
223 (_initialize_infrun): Register selftest.
224 * regcache.c (regcache_thread_ptid_changed): Add parameter
225 `process_stratum_target *` and use it.
226 (regcache_thread_ptid_changed): New function.
227 (_initialize_regcache): Register selftest.
228 * thread.c (thread_change_ptid): Pass target to
229 thread_ptid_changed observable.
230
231 2020-08-06 Caroline Tice <cmtice@google.com>
232
233 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
234 (struct dwp_sections): Update field comments. Add loclists and
235 rnglists fields.
236 (struct virtual_v2_dwo_sections): Rename struct to
237 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
238 size & offset fields for loclists and rnglists.
239 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
240 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
241 skipping dummy type units.
242 (create_dwp_hash_table): Update the large comment above the function to
243 discuss Version 5 DWP files as well, with references. Update all the
244 version checks in the function to check for version 5 as well. Add new
245 section at the end to create dwp hash table for version 5.
246 (create_dwp_v2_section): Rename function to
247 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
248 Add V5 to error message text.
249 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
250 into calls to create_dwp_v2_or_v5_section.
251 (create_dwo_unit_in_dwp_v5): New function.
252 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
253 check for version2; add else clause to handle version 5.
254 (open_and_init_dwo_file): Add code to check dwarf version & only call
255 create_debug_types_hash_table (with sections.types) if version is not 5;
256 else call create_debug_type_hash_table, with sections.info.
257 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
258 version 5.
259 (dwarf2_locate_v5_dwp_sections): New function.
260 (open_and_init_dwp_file): Add else-if clause for version 5 to call
261 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
262
263 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
264
265 * regcache.h (class regcache): Remove friend
266 registers_changed_ptid.
267 <regcache_thread_ptid_changed>: Remove.
268 <regcaches>: Remove.
269 * regcache.c (regcache::regcaches): Rename to...
270 (regcaches): ... this. Make static.
271 (get_thread_arch_aspace_regcache): Update.
272 (regcache::regcache_thread_ptid_changed): Rename to...
273 (regcache_thread_ptid_changed): ... this. Update.
274 (class regcache_access): Remove.
275 (regcaches_test): Update.
276 (_initialize_regcache): Update.
277 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
278 <forward_list>.
279
280 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
281
282 * regcache.h (class regcache) <current_regcache>: Rename to...
283 <regcaches>: ... this. Move doc here.
284 * regcache.c (regcache::current_regcache) Rename to...
285 (regcache::regcaches): ... this. Move doc to header.
286 (get_thread_arch_aspace_regcache): Update.
287 (regcache::regcache_thread_ptid_changed): Update.
288 (registers_changed_ptid): Update.
289 (class regcache_access) <current_regcache_size>: Rename to...
290 <regcaches_size>: ... this.
291 (current_regcache_test): Rename to...
292 (regcaches_test): ... this.
293 (_initialize_regcache): Update.
294
295 2020-08-06 Victor Collod <vcollod@nvidia.com>
296
297 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
298
299 2020-08-05 Kevin Buettner <kevinb@redhat.com>
300
301 * corelow.c (core_target::build_file_mappings): Don't output
302 null pathname in warning.
303
304 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
305
306 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
307 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
308 gdb.dwarf2/dw2-single-line-discriminators.exp,
309 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
310
311 2020-08-05 Tom Tromey <tromey@adacore.com>
312
313 PR rust/26197:
314 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
315 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
316 Fix off-by-one and type size errors in ordinary case.
317
318 2020-08-05 Tom de Vries <tdevries@suse.de>
319
320 * gdbtypes.c (type_not_allocated, type_not_associated): Use
321 "prop->const_val () == 0" instead of "prop->const_val () != 0".
322
323 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
324
325 * frame.h (frame_id_p): Return bool.
326 (frame_id_artificial_p): Return bool.
327 (frame_id_eq): Return bool.
328 (has_stack_frames): Return bool.
329 (get_selected_frame): Fix typo in comment.
330 (get_frame_pc_if_available): Return bool.
331 (get_frame_address_in_block_if_available): Return bool.
332 (get_frame_func_if_available): Return bool.
333 (read_frame_register_unsigned): Return bool.
334 (get_frame_register_bytes): Return bool.
335 (safe_frame_unwind_memory): Return bool.
336 (deprecated_frame_register_read): Return bool.
337 (frame_unwinder_is): Return bool.
338 * frame.c (struct frame_info) <prev_arch::p>: Change type to
339 bool.
340 <this_id::p>: Likewise.
341 <prev_p>: Likewise.
342 (frame_stash_add): Return bool.
343 (get_frame_id): Use bool.
344 (frame_id_build_special) Use bool.
345 (frame_id_build_unavailable_stack): Use bool.
346 (frame_id_build): Use bool.
347 (frame_id_p): Return bool, use true/false instead of 1/0.
348 (frame_id_artificial_p): Likewise.
349 (frame_id_eq): Likewise.
350 (frame_id_inner): Likewise.
351 (get_frame_func_if_available): Likewise.
352 (read_frame_register_unsigned): Likewise.
353 (deprecated_frame_register_read): Likewise.
354 (get_frame_register_bytes): Likewise.
355 (has_stack_frames): Likewise.
356 (inside_main_func): Likewise.
357 (inside_entry_func): Likewise.
358 (get_frame_pc_if_available): Likewise.
359 (get_frame_address_in_block_if_available): Likewise.
360 (frame_unwinder_is): Likewise.
361 (safe_frame_unwind_memory): Likewise.
362 (frame_unwind_arch): Likewise.
363
364 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
365
366 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
367 type to cached_copy_status.
368 (fprintf_frame): Adjust.
369 (get_frame_func_if_available): Adjust.
370 (frame_cleanup_after_sniffer): Adjust.
371
372 2020-08-04 Mark Wielaard <mark@klomp.org>
373
374 * MAINTAINERS (Write After Approval): Update email address.
375
376 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
377
378 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
379 dynamic_prop::const_val.
380
381 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
382
383 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
384 dynamic_prop::kind.
385
386 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
387
388 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
389
390 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
391
392 * configure.tgt: Set gdb_sim for bpf-*-* targets.
393
394 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
395 Jose E. Marchesi <jose.marchesi@oracle.com>
396
397 * configure.tgt: Add entry for bpf-*-*.
398 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
399 (ALLDEPFILES): Add bpf-tdep.c.
400 * bpf-tdep.c: New file.
401 * MAINTAINERS: Add bpf target and maintainer.
402 * NEWS: Mention the support for the new target.
403
404 2020-08-04 Tom de Vries <tdevries@suse.de>
405
406 PR symtab/23270
407 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
408 Error.
409
410 2020-08-03 John Baldwin <jhb@FreeBSD.org>
411
412 * syscalls/freebsd.xml: Regenerate.
413
414 2020-08-03 John Baldwin <jhb@FreeBSD.org>
415
416 * syscalls/update-freebsd.sh: Fix usage and year range.
417
418 2020-08-03 Tom de Vries <tdevries@suse.de>
419
420 PR symtab/26333
421 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
422 DW_LNE_lo_user/DW_LNE_hi_user range.
423
424 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
425
426 PR ada/26318
427 * ada-lang.c (ada_modulus): Return 0 if property is not of const
428 kind.
429
430 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
431
432 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
433
434 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
435
436 * breakpoint.c (set_breakpoint_condition): Update the condition
437 expressions after checking that the input condition string parses
438 successfully and does not contain junk at the end.
439
440 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
441
442 * breakpoint.c (set_breakpoint_condition): Update the
443 condition string after parsing the new condition successfully.
444
445 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
446
447 * proc-api.c (_STRUCTURED_PROC): Don't define.
448 * proc-events.c: Likewise.
449 * proc-flags.c: Likewise.
450 * proc-why.c: Likewise.
451 * procfs.c: Likewise.
452
453 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
454 * configure, config.in: Regenerate.
455
456 2020-07-30 Tom de Vries <tdevries@suse.de>
457
458 PR build/26320
459 * ui-style.h (struct ui_file_style::color): Wrap m_value and
460 m_red/m_green/m_blue in a union.
461
462 2020-07-29 Tom de Vries <tdevries@suse.de>
463
464 PR tdep/26280
465 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
466
467 2020-07-28 Tom Tromey <tromey@adacore.com>
468
469 PR symtab/26270:
470 * symtab.h (find_pc_partial_function_sym): Declare.
471 * cli/cli-cmds.c (disassemble_command): Use
472 find_pc_partial_function_sym. Check asm_demangle.
473 * blockframe.c (cache_pc_function_sym): New global.
474 (cache_pc_function_name): Remove.
475 (clear_pc_function_cache): Update.
476 (find_pc_partial_function_sym): New function, from
477 find_pc_partial_function.
478 (find_pc_partial_function): Rewrite using
479 find_pc_partial_function_sym.
480
481 2020-07-28 Tom Tromey <tromey@adacore.com>
482
483 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
484 help. Add usage.
485
486 2020-07-28 Tom Tromey <tromey@adacore.com>
487
488 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
489 <DW_OP_GNU_variable_value>: Cast to address type.
490
491 2020-07-28 Kamil Rytarowski <n54@gmx.com>
492
493 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
494 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
495 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
496 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
497 (nbsd_get_siginfo_type): New.
498 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
499 (_initialize_nbsd_tdep): New.
500
501 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
502
503 PR binutils/26301
504 * configure: Regenerated.
505
506 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
507
508 PR binutils/26301
509 * configure: Regenerated.
510
511 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
512
513 * python/py-frame.c: Remove 'user-regs.h' include.
514 (frapy_read_register): Rewrite to make use of
515 gdbpy_parse_register_id.
516 * python/py-registers.c (gdbpy_parse_register_id): New function,
517 moved here from python/py-unwind.c. Updated the return type, and
518 also accepts register descriptor objects.
519 * python/py-unwind.c: Remove 'user-regs.h' include.
520 (pyuw_parse_register_id): Moved to python/py-registers.c.
521 (unwind_infopy_add_saved_register): Update to use
522 gdbpy_parse_register_id.
523 (pending_framepy_read_register): Likewise.
524 * python/python-internal.h (gdbpy_parse_register_id): Declare.
525
526 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
527
528 * python/py-registers.c: Add 'user-regs.h' include.
529 (register_descriptor_iter_find): New function.
530 (register_descriptor_iterator_object_methods): New static global
531 methods array.
532 (register_descriptor_iterator_object_type): Add pointer to methods
533 array.
534
535 2020-07-27 John Baldwin <jhb@FreeBSD.org>
536
537 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
538 for all architectures on FreeBSD 11.3 and later.
539
540 2020-07-27 Tom Tromey <tromey@adacore.com>
541
542 * gcore.h (load_corefile): Don't declare.
543
544 2020-07-27 Tom de Vries <tdevries@suse.de>
545
546 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
547 * config.in: Regenerate.
548 * configure: Regenerate.
549
550 2020-07-26 Eli Zaretskii <eliz@gnu.org>
551
552 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
553 ws2tcpip.h. When checking whether socklen_t type is defined, use
554 ws2tcpip.h if it is available and sys/socket.h isn't.
555 * configure: Regenerate.
556 * config.in: Regenerate.
557
558 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
559
560 PR fortran/23051
561 PR fortran/26139
562 * valops.c (value_ind): Pass address to
563 readjust_indirect_value_type.
564 * value.c (readjust_indirect_value_type): Make parameter
565 non-const, and add extra address parameter. Resolve original type
566 before using it.
567 * value.h (readjust_indirect_value_type): Update function
568 signature and comment.
569
570 2020-07-25 Tom de Vries <tdevries@suse.de>
571
572 PR symtab/26243
573 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
574 entries.
575
576 2020-07-24 Aaron Merey <amerey@redhat.com>
577
578 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
579 * configure: Rebuild.
580
581 2020-07-23 Kevin Buettner <kevinb@redhat.com>
582
583 PR corefiles/26294
584 * corelow.c (_initialize_corelow): Add period to help text
585 for "maintenance print core-file-backed-mappings".
586
587 2020-07-23 Pedro Alves <pedro@palves.net>
588
589 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
590 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
591 meanwhile.
592 * frame.c (frame_cache_generation, get_frame_cache_generation):
593 New.
594 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
595 (get_prev_frame_if_no_cycle): On exception, don't touch
596 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
597 * frame.h (get_frame_cache_generation): Declare.
598
599 2020-07-23 Tom de Vries <tdevries@suse.de>
600
601 PR tui/26282
602 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
603 New default constructor.
604
605 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
606
607 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
608 exclude non-statement entries.
609
610 2020-07-22 Kevin Buettner <kevinb@redhat.com>
611
612 * NEWS (New commands): Mention new command
613 "maintenance print core-file-backed-mappings".
614
615 2020-07-22 Kevin Buettner <kevinb@redhat.com>
616
617 * corelow.c (gdbcmd.h): Include.
618 (core_target::info_proc_mappings): New method.
619 (get_current_core_target): New function.
620 (maintenance_print_core_file_backed_mappings): New function.
621 (_initialize_corelow): Add core-file-backed-mappings to
622 "maint print" commands.
623
624 2020-07-22 Kevin Buettner <kevinb@redhat.com>
625
626 * linux-tdep.c (dump_note_entry_p): New function.
627 (linux_dump_mapping_p_ftype): New typedef.
628 (linux_find_memory_regions_full): Add new parameter,
629 should_dump_mapping_p.
630 (linux_find_memory_regions): Adjust call to
631 linux_find_memory_regions_full.
632 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
633 call to linux_find_memory_regions_full.
634
635 2020-07-22 Kevin Buettner <kevinb@redhat.com>
636
637 * corelow.c (solist.h, unordered_map): Include.
638 (class core_target): Add field m_core_file_mappings and
639 method build_file_mappings.
640 (core_target::core_target): Call build_file_mappings.
641 (core_target::~core_target): Free memory associated with
642 m_core_file_mappings.
643 (core_target::build_file_mappings): New method.
644 (core_target::xfer_partial): Use m_core_file_mappings
645 for memory transfers.
646 * linux-tdep.c (linux_read_core_file_mappings): New
647 function.
648 (linux_core_info_proc_mappings): Rewrite to use
649 linux_read_core_file_mappings.
650 (linux_init_abi): Register linux_read_core_file_mappings.
651
652 2020-07-22 Kevin Buettner <kevinb@redhat.com>
653
654 * arch-utils.c (default_read_core_file_mappings): New function.
655 * arch-utils.c (default_read_core_file_mappings): Declare.
656 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
657 * gdbarch.h, gdbarch.c: Regenerate.
658
659 2020-07-22 Kevin Buettner <kevinb@redhat.com>
660
661 PR corefiles/25631
662 * corelow.c (core_target:xfer_partial): Revise
663 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
664 case after first checking the stratum beneath the core
665 target.
666 (has_all_memory): Return true.
667 * target.c (raw_memory_xfer_partial): Revise comment
668 regarding use of has_all_memory.
669
670 2020-07-22 Kevin Buettner <kevinb@redhat.com>
671
672 * exec.h (section_table_xfer_memory): Revise declaration,
673 replacing section name parameter with an optional callback
674 predicate.
675 * exec.c (section_table_xfer_memory): Likewise.
676 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
677 of section_table_xfer_memory.
678
679 2020-07-22 Tom Tromey <tromey@adacore.com>
680
681 * mi/mi-cmd-stack.c (list_args_or_locals): Use
682 lookup_symbol_search_name.
683
684 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
685
686 * python/py-registers.c (gdbpy_register_object_data_init): Remove
687 redundant local variable.
688 (gdbpy_get_register_descriptor): Extract descriptor vector as a
689 reference, not pointer, update code accordingly.
690
691 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
692 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
693
694 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
695 * jit.c (jit_breakpoint_re_set_internal): Use the
696 `skip_jit_symbol_lookup` field.
697
698 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
699 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
700
701 * jit.c (jit_read_descriptor): Define the descriptor address once,
702 use twice.
703 (jit_breakpoint_deleted): Move the declaration of the loop variable
704 `iter` into the loop header.
705 (jit_breakpoint_re_set_internal): Move the declaration of the local
706 variable `objf_data` to the first point of definition.
707 (jit_event_handler): Move the declaration of local variables
708 `code_entry`, `entry_addr`, and `objf` to their first point of use.
709 Rename `objf` to `jited`.
710
711 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
712
713 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
714 Remove.
715 * jit.c (get_jiter_objfile_data): Update.
716
717 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
718 Simon Marchi <simon.marchi@polymtl.ca>
719
720 * jit.c (struct jit_program_space_data): Remove.
721 (jit_program_space_key): Remove.
722 (jiter_objfile_data::~jiter_objfile_data): Remove program space
723 stuff.
724 (get_jit_program_space_data): Remove.
725 (jit_breakpoint_deleted): Iterate on all of the program space's
726 objfiles.
727 (jit_inferior_init): Likewise.
728 (jit_breakpoint_re_set_internal): Likewise. Also change return
729 type to void.
730 (jit_breakpoint_re_set): Pass current_program_space to
731 jit_breakpoint_re_set_internal.
732
733 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
734
735 * jit.h (struct jiter_objfile_data) <cached_code_address,
736 jit_breakpoint>: Move to here from ...
737 * jit.c (jit_program_space_data): ... here.
738 (jiter_objfile_data::~jiter_objfile_data): Update.
739 (jit_breakpoint_deleted): Update.
740 (jit_breakpoint_re_set_internal): Update.
741
742 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
743
744 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
745 checks.
746 (jit_read_descriptor): Remove NULL check.
747 (jit_event_handler): Add an assertion.
748
749 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
750
751 * jit.h (struct jit_objfile_data): Split into...
752 (struct jiter_objfile_data): ... this ...
753 (struct jited_objfile_data): ... and this.
754 * objfiles.h (struct objfile) <jit_data>: Remove.
755 <jiter_data, jited_data>: New fields.
756 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
757 (jiter_objfile_data::~jiter_objfile_data): ... this.
758 (get_jit_objfile_data): Rename to ...
759 (get_jiter_objfile_data): ... this.
760 (add_objfile_entry): Update.
761 (jit_read_descriptor): Use get_jiter_objfile_data.
762 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
763 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
764 (jit_inferior_exit_hook): Use objfile's jited_data field.
765
766 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
767
768 * jit.h: Forward-declare `struct minimal_symbol`.
769 (struct jit_objfile_data): Migrate to here from jit.c; also add a
770 constructor, destructor, and an objfile* field.
771 * jit.c (jit_objfile_data): Remove.
772 (struct jit_objfile_data): Migrate from here to jit.h.
773 (jit_objfile_data::~jit_objfile_data): New destructor
774 implementation with code moved from free_objfile_data.
775 (free_objfile_data): Delete.
776 (get_jit_objfile_data): Update to use the jit_data field of objfile.
777 (jit_find_objf_with_entry_addr): Ditto.
778 (jit_inferior_exit_hook): Ditto.
779 (_initialize_jit): Remove the call to
780 register_objfile_data_with_cleanup.
781 * objfiles.h (struct objfile) <jit_data>: New field.
782
783 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
784
785 * jit.h: Forward-declare `struct objfile`.
786 (jit_event_handler): Add a second parameter, the JITer objfile.
787 * jit.c (jit_read_descriptor): Change the signature to take the
788 JITer objfile as an argument instead of the jit_program_space_data.
789 (jit_inferior_init): Update the call to jit_read_descriptor.
790 (jit_event_handler): Use the new JITer objfile argument when calling
791 jit_read_descriptor.
792 * breakpoint.c (handle_jit_event): Update the call to
793 jit_event_handler to pass the JITer objfile.
794
795 2020-07-21 John Baldwin <jhb@FreeBSD.org>
796
797 * gdbarch.c: Regenerate.
798 * gdbarch.h: Regenerate.
799 * gdbarch.sh (handle_segmentation_fault): Remove method.
800 * infrun.c (handle_segmentation_fault): Remove.
801 (print_signal_received_reason): Remove call to
802 handle_segmentation_fault.
803
804 2020-07-21 John Baldwin <jhb@FreeBSD.org>
805
806 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
807 Rename to sparc64_linux_report_signal_info and add siggnal
808 argument.
809 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
810 instead of sparc64_linux_handle_segmentation_fault.
811
812 2020-07-21 John Baldwin <jhb@FreeBSD.org>
813
814 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
815 i386_linux_report_signal_info instead of
816 i386_linux_handle_segmentation_fault.
817 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
818 to i386_linux_report_signal_info and add siggnal argument.
819 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
820 of i386_linux_handle_segmentation_fault.
821 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
822 to i386_linux_report_signal_info and add siggnal argument.
823
824 2020-07-21 John Baldwin <jhb@FreeBSD.org>
825
826 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
827 hook if present.
828
829 2020-07-21 John Baldwin <jhb@FreeBSD.org>
830
831 * gdbarch.c: Regenerate.
832 * gdbarch.h: Regenerate.
833 * gdbarch.sh (report_signal_info): New method.
834 * infrun.c (print_signal_received_reason): Invoke gdbarch
835 report_signal_info hook if present.
836
837 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
838
839 * python/py-registers.c : Add 'unordered_map' include.
840 (gdbpy_new_reggroup): Renamed to...
841 (gdbpy_get_reggroup): ...this. Update to only create register
842 group descriptors when needed.
843 (gdbpy_reggroup_iter_next): Update.
844
845 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
846
847 * python/py-registers.c (gdbpy_register_object_data): New static
848 global.
849 (gdbpy_register_object_data_init): New function.
850 (gdbpy_new_register_descriptor): Renamed to...
851 (gdbpy_get_register_descriptor): ...this, and update to reuse
852 existing register descriptors where possible.
853 (gdbpy_register_descriptor_iter_next): Update.
854 (gdbpy_initialize_registers): Register new gdbarch data.
855
856 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
857
858 * linux-nat.c (stopped_pids): Make static.
859
860 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
861
862 PR ada/26235
863 * gdbtypes.c (ada_discrete_type_low_bound,
864 ada_discrete_type_high_bound): Handle undefined bounds.
865
866 2020-07-21 Kamil Rytarowski <n54@gmx.com>
867
868 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
869 declaration.
870 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
871 function.
872
873 2020-07-20 John Baldwin <jhb@FreeBSD.org>
874
875 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
876 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
877 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
878 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
879 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
880 method.
881
882 2020-07-20 Ludovic Courtès <ludo@gnu.org>
883
884 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
885 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
886 which are deprecated in Guile 3.0.
887 * configure.ac (try_guile_versions): Add "guile-3.0".
888 * configure (try_guile_versions): Regenerate.
889 * NEWS: Update entry.
890
891 2020-07-20 Ludovic Courtès <ludo@gnu.org>
892 Doug Evans <dje@google.com>
893
894 PR gdb/21104
895 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
896 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
897 USING_GUILE_BEFORE_2_2.
898 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
899 Change type to 'scm_t_port_type *'.
900 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
901 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
902 parameter and honor it. Update callers.
903 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
904 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
905 functions.
906 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
907 USING_GUILE_BEFORE_2_2.
908 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
909 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
910 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
911 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
912 and 'SCM_PORT_TYPE'.
913 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
914 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
915 (gdbscm_memory_port_read, gdbscm_memory_port_write)
916 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
917 [!USING_GUILE_BEFORE_2_2]: New functions.
918 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
919 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
920 'gdbscm_memory_port_read'.
921 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
922 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
923 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
924 function.
925 (ioscm_init_memory_port): Remove.
926 (ioscm_init_memory_port_stream): New function
927 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
928 function.
929 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
930 Return scm_from_uint (0).
931 (gdbscm_set_memory_port_read_buffer_size_x)
932 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
933 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
934 Return scm_from_uint (0).
935 (gdbscm_set_memory_port_write_buffer_size_x)
936 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
937 * configure.ac (try_guile_versions): Add "guile-2.2".
938 * configure: Regenerate.
939 * NEWS: Add entry.
940
941 2020-07-18 Tom Tromey <tom@tromey.com>
942
943 * linux-nat.c (linux_multi_process): Remove.
944 (linux_nat_target::supports_multi_process): Return true.
945
946 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
947
948 * arch/riscv.c (riscv_tdesc_cache): Change map type.
949 (riscv_lookup_target_description): Return pointer out of
950 unique_ptr.
951 * target-descriptions.c (allocate_target_description): Add
952 comment.
953 (target_desc_deleter::operator()): Likewise.
954 * target-descriptions.h (struct target_desc_deleter): Moved to
955 gdbsupport/tdesc.h.
956 (target_desc_up): Likewise.
957
958 2020-07-17 Tom Tromey <tromey@adacore.com>
959
960 * linux-nat.c (linux_nat_target::supports_non_stop)
961 (linux_nat_target::always_non_stop_p): Use "true".
962 (linux_nat_target::supports_disable_randomization): Use "true" and
963 "false".
964
965 2020-07-16 Caroline Tice <cmtice@google.com>
966
967 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
968 (RNGLIST_HEADER_SIZE64): New constant definition.
969 (struct dwop_section_names): Add rnglists_dwo.
970 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
971 (struct loclist_header): Rename to 'loclists_rnglists_header'.
972 (struct dwo_sections): Add rnglists field.
973 (read_attribut_reprocess): Add tag parameter.
974 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
975 (cu_debug_rnglists_section): New function (decl & definition).
976 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
977 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
978 die whose range is being checked; get rnglist section from
979 cu_debug_rnglists_section, to get from either objfile or dwo file as
980 appropriate. Add cases for DW_RLE_base_addressx,
981 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
982 the base address to DW_RLE_offset_pairs (not to all ranges), moving
983 test inside if-condition and updating complaint message.
984 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
985 dwarf2_rnglists_process.
986 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
987 dwarf2_ranges_process.
988 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
989 need_ranges_base and update comment appropriately. Also pass die tag
990 to dwarf2_ranges_read.
991 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
992 need_ranges_base and update comment appropriately. Also pass die tag
993 to dwarf2_ranges_process.
994 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
995 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
996 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
997 need_ranges_base and update comment appropriately. Also pass die tag
998 to read_attribute_reprocess and dwarf2_ranges_read.
999 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1000 and update function comment appropriately.
1001 (read_loclist_index): Call read_loclists_rnglists_header instead of
1002 read_loclist_header.
1003 (read_rnglist_index): New function.
1004 (read_attribute_reprocess): Add tag parameter. Add code for
1005 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1006 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1007
1008 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1009
1010 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1011 being resolved.
1012
1013 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1014
1015 * arch-utils.c (show_architecture): Update formatting of messages.
1016
1017 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1018
1019 * gdbtypes.h (struct type) <bounds>: Handle array and string
1020 types.
1021 * ada-lang.c (assign_aggregate): Use type::bounds on
1022 array/string type.
1023 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1024 * c-varobj.c (c_number_of_children): Likewise.
1025 (c_describe_child): Likewise.
1026 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1027 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1028 (f_type_print_base): Likewise.
1029 * f-valprint.c (f77_array_offset_tbl): Likewise.
1030 (f77_get_upperbound): Likewise.
1031 (f77_print_array_1): Likewise.
1032 * guile/scm-type.c (gdbscm_type_range): Likewise.
1033 * m2-typeprint.c (m2_array): Likewise.
1034 (m2_is_long_set_of_type): Likewise.
1035 * m2-valprint.c (get_long_set_bounds): Likewise.
1036 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1037 * python/py-type.c (typy_range): Likewise.
1038 * rust-lang.c (rust_internal_print_type): Likewise.
1039 * type-stack.c (type_stack::follow_types): Likewise.
1040 * valarith.c (value_subscripted_rvalue): Likewise.
1041 * valops.c (value_cast): Likewise.
1042
1043 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1044
1045 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1046 callers to use the equivalent accessor methods.
1047
1048 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1049
1050 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1051 (struct type) <bit_stride>: New method.
1052 (TYPE_BIT_STRIDE): Remove.
1053 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1054
1055 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1056
1057 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1058 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1059 callers to use the equivalent accessor methods instead.
1060
1061 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1062
1063 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1064 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1065 callers to use the equivalent accessor methods instead.
1066
1067 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1068
1069 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1070 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1071 to use dynamic_prop::kind.
1072
1073 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1074
1075 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1076 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1077 to get the bound property's kind and check against
1078 PROP_UNDEFINED.
1079
1080 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1081
1082 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1083 all callers to use type::range_bounds followed by
1084 dynamic_prop::{low,high}.
1085
1086 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1087
1088 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1089 const_val, set_const_val, baton, set_locexpr, set_loclist,
1090 set_addr_offset, variant_parts, set_variant_parts,
1091 original_type, set_original_type>: New methods.
1092 <kind>: Rename to...
1093 <m_kind>: ... this. Update all users to use the new methods
1094 instead.
1095 <data>: Rename to...
1096 <m_data>: ... this. Update all users to use the new methods
1097 instead.
1098
1099 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1100
1101 * gdbtypes.c (get_discrete_bounds): Return failure if
1102 the range type's bounds are not both defined and constant
1103 values.
1104 (get_array_bounds): Update comment. Remove undefined bound check.
1105
1106 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1107
1108 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1109 the type::bounds method directly.
1110
1111 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1112
1113 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1114 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1115 are used to set the range type's bounds to use set_bounds.
1116
1117 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1118
1119 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1120
1121 2020-07-10 Pedro Alves <pedro@palves.net>
1122
1123 * gdbthread.h (inferior_ref): Define.
1124 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1125 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1126 * thread.c
1127 (scoped_restore_current_thread::restore):
1128 Adjust to gdb::ref_ptr.
1129 (scoped_restore_current_thread::~scoped_restore_current_thread):
1130 Remove manual decref handling.
1131 (scoped_restore_current_thread::scoped_restore_current_thread):
1132 Adjust to use
1133 inferior_ref::new_reference/thread_info_ref::new_reference.
1134 Incref the thread before calling get_frame_id instead of after.
1135 Let TARGET_CLOSE_ERROR propagate.
1136
1137 2020-07-10 Pedro Alves <pedro@palves.net>
1138
1139 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1140 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1141 NOT_AVAILABLE_ERROR.
1142 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1143 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1144
1145 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1146 Pedro Alves <pedro@palves.net>
1147
1148 PR gdb/26199
1149 * infrun.c (threads_are_resumed_pending_p): Delete.
1150 (do_target_wait): Remove threads_are_executing and
1151 threads_are_resumed_pending_p checks from the inferior_matches
1152 lambda. Update comments.
1153
1154 2020-07-10 Pedro Alves <pedro@palves.net>
1155
1156 PR gdb/26199
1157 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1158 executing threads.
1159
1160 2020-07-10 Pedro Alves <pedro@palves.net>
1161
1162 PR gdb/26199
1163 * infrun.c (handle_no_resumed): Handle multiple targets.
1164
1165 2020-07-10 Pedro Alves <pedro@palves.net>
1166
1167 PR gdb/26199
1168 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1169 target_is_async_p.
1170
1171 2020-07-10 Pedro Alves <pedro@palves.net>
1172
1173 PR gdb/26199
1174 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1175 threads, not all threads.
1176
1177 2020-07-10 Pedro Alves <pedro@palves.net>
1178
1179 PR gdb/26199
1180 * remote.c (remote_target::open_1): Pass remote target pointer as
1181 data to create_async_event_handler.
1182 (remote_async_inferior_event_handler): Mark async event handler
1183 before returning if the remote target still has either pending
1184 events or unacknowledged notifications.
1185
1186 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1187
1188 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1189 declaration.
1190 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1191 function.
1192
1193 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1194
1195 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1196 inferior_ptid.
1197
1198 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1199
1200 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1201 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1202 AT_FREEBSD_PS_STRINGS.
1203
1204 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1205
1206 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1207 of debugfile path on Windows.
1208
1209 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1210
1211 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1212 argument to 'data'.
1213
1214 2020-07-08 Tom Tromey <tromey@adacore.com>
1215
1216 * ada-lang.c (ada_exception_message_1): Use read_memory.
1217
1218 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1219
1220 PR python/22748
1221 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1222 special handling for inline frames.
1223 * findvar.c (value_of_register_lazy): Skip inline frames when
1224 creating lazy register values.
1225 * frame.c (frame_id_computed_p): Delete definition.
1226 * frame.h (frame_id_computed_p): Delete declaration.
1227
1228 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1229
1230 * NEWS: Mention additions to Python API.
1231 * python/py-arch.c (archpy_register_groups): New function.
1232 (arch_object_methods): Add 'register_groups' method.
1233 * python/py-registers.c (reggroup_iterator_object): New struct.
1234 (reggroup_object): New struct.
1235 (gdbpy_new_reggroup): New function.
1236 (gdbpy_reggroup_to_string): New function.
1237 (gdbpy_reggroup_name): New function.
1238 (gdbpy_reggroup_iter): New function.
1239 (gdbpy_reggroup_iter_next): New function.
1240 (gdbpy_new_reggroup_iterator): New function
1241 (gdbpy_initialize_registers): Register new types.
1242 (reggroup_iterator_object_type): Define new Python type.
1243 (gdbpy_reggroup_getset): New static global.
1244 (reggroup_object_type): Define new Python type.
1245 * python/python-internal.h
1246
1247 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1248
1249 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1250 * python/py-arch.c (archpy_registers): New function.
1251 (arch_object_methods): Add 'registers' method.
1252 * python/py-registers.c: New file.
1253 * python/python-internal.h
1254 (gdbpy_new_register_descriptor_iterator): Declare.
1255 (gdbpy_initialize_registers): Declare.
1256 * python/python.c (do_start_initialization): Call
1257 gdbpy_initialize_registers.
1258 * NEWS: Mention additions to the Python API.
1259
1260 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1261
1262 * NEWS: Mention new Python API method.
1263 * python/py-unwind.c (pending_framepy_architecture): New function.
1264 (pending_frame_object_methods): Add architecture method.
1265
1266 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1267
1268 * gdbarch.c: Regenerate.
1269 * gdbarch.h: Regenerate.
1270 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1271 (gdbarch_data): Use internal_error for the case where
1272 deprecated_set_gdbarch_data was originally needed.
1273 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1274 and use passed in obstack.
1275 (libunwind_frame_set_descr): Should no longer get back NULL from
1276 gdbarch_data.
1277 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1278 type.
1279 * user-regs.c (user_regs_init): Update parameters, and use passed
1280 in obstack.
1281 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1282 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1283
1284 2020-07-06 Tom de Vries <tdevries@suse.de>
1285
1286 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1287 End-Of-Sequence in lte_is_less_than.
1288 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1289 "gdb: Don't reorder line table entries too much when sorting".
1290
1291 2020-07-06 Tom de Vries <tdevries@suse.de>
1292
1293 PR tui/26205
1294 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1295
1296 2020-07-05 Tom de Vries <tdevries@suse.de>
1297
1298 PR build/26187
1299 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1300 std::uncaught_exceptions instead of deprecated
1301 std::uncaught_exception.
1302
1303 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1304
1305 * macroexp.h (macro_stringify): Return
1306 gdb::unique_xmalloc_ptr<char>.
1307 * macroexp.c (macro_stringify): Likewise.
1308 * macrotab.c (fixup_definition): Update.
1309
1310 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1311
1312 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1313 (lex_one_token): Update.
1314 * macroexp.c (struct macro_buffer) <release>: Return
1315 gdb::unique_xmalloc_ptr<char>.
1316 (macro_stringify): Update.
1317 (macro_expand): Update.
1318 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1319 * macroexp.h (macro_expand_next): Likewise.
1320
1321 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1322
1323 * macroexp.h (macro_lookup_ftype): Remove.
1324 (macro_expand, macro_expand_once, macro_expand_next): Remove
1325 lookup function parameters, add scope parameter.
1326 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1327 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1328 * macroscope.h (standard_macro_lookup): Change parameter type
1329 to macro_scope.
1330 * macroscope.c (standard_macro_lookup): Likewise.
1331 * c-exp.y (lex_one_token): Update.
1332 * macrocmd.c (macro_expand_command): Likewise.
1333 (macro_expand_once_command): Likewise.
1334
1335 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1336
1337 * inf-loop.c (inferior_event_handler): Remove client_data param.
1338 * inf-loop.h (inferior_event_handler): Likewise.
1339 * infcmd.c (step_1): Adjust.
1340 * infrun.c (proceed): Adjust.
1341 (fetch_inferior_event): Remove client_data param.
1342 (infrun_async_inferior_event_handler): Adjust.
1343 * infrun.h (fetch_inferior_event): Remove `void *` param.
1344 * linux-nat.c (handle_target_event): Adjust.
1345 * record-btrace.c (record_btrace_handle_async_inferior_event):
1346 Adjust.
1347 * record-full.c (record_full_async_inferior_event_handler):
1348 Adjust.
1349 * remote.c (remote_async_inferior_event_handler): Adjust.
1350
1351 2020-07-01 Tom Tromey <tom@tromey.com>
1352
1353 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1354 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1355
1356 2020-07-01 Tom Tromey <tom@tromey.com>
1357
1358 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1359 tui_gen_win_info.
1360 (tui_win_info::make_window): Merge with
1361 tui_gen_win_info::make_window.
1362 (tui_win_info::make_visible): Move from tui_gen_win_info.
1363 * tui/tui-win.c (tui_win_info::max_width): Move from
1364 tui_gen_win_info.
1365 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1366 type.
1367 <window_factory>: Likewise.
1368 * tui/tui-layout.c (tui_win_info::resize): Move from
1369 tui_gen_win_info.
1370 (make_standard_window): Change return type.
1371 (get_locator_window, tui_get_window_by_name): Likewise.
1372 (tui_layout_window::apply): Remove a cast.
1373 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1374 (struct tui_win_info): Merge with tui_gen_win_info.
1375 (struct tui_gen_win_info): Remove.
1376
1377 2020-07-01 Tom Tromey <tom@tromey.com>
1378
1379 * tui/tui-stack.h (struct tui_locator_window): Derive from
1380 tui_win_info.
1381 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1382 <can_box>: New method.
1383
1384 2020-07-01 Tom Tromey <tom@tromey.com>
1385
1386 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1387
1388 2020-07-01 Tom Tromey <tom@tromey.com>
1389
1390 * tui/tui-regs.c (tui_data_window::display_registers_from)
1391 (tui_data_window::display_registers_from)
1392 (tui_data_window::first_data_item_displayed)
1393 (tui_data_window::delete_data_content_windows): Update.
1394 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1395 Remove.
1396 (tui_data_window::check_register_values): Update.
1397 (tui_data_item_window::rerender): Add parameters. Update.
1398 (tui_data_item_window::refresh_window): Remove.
1399 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1400 virtual.
1401 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1402 tui_gen_win_info.
1403 <refresh_window, max_height, min_height>: Remove.
1404 <rerender>: Add parameters.
1405 <x, y, visible>: New members.
1406 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1407 <m_item_width>: New member.
1408
1409 2020-07-01 Tom Tromey <tom@tromey.com>
1410
1411 * tui/tui-regs.c (tui_data_window::show_register_group)
1412 (tui_data_window::check_register_values): Update.
1413 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1414 from item_no.
1415
1416 2020-07-01 Tom Tromey <tom@tromey.com>
1417
1418 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1419 useless "if".
1420
1421 2020-07-01 Tom Tromey <tom@tromey.com>
1422
1423 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1424 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1425
1426 2020-07-01 Tom Tromey <tom@tromey.com>
1427
1428 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1429 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1430 (struct tui_line_or_address): Move from tui-data.h.
1431 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1432 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1433 (tui_cmd_window, tui_source_window_base, tui_source_window)
1434 (tui_disasm_window): Don't declare.
1435 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1436 to tui-winsource.h.
1437 (SINGLE_KEY): Move to tui-stack.c.
1438
1439 2020-07-01 Tom Tromey <tom@tromey.com>
1440
1441 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1442 std::string.
1443 * tui/tui-regs.c (class tab_expansion_file): New.
1444 (tab_expansion_file::write): New method.
1445 (tui_register_format): Change return type. Use
1446 tab_expansion_file.
1447 (tui_get_register, tui_data_window::display_registers_from)
1448 (tui_data_item_window::rerender): Update.
1449 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1450 * tui/tui-io.c (tui_expand_tabs): Remove.
1451
1452 2020-07-01 Tom Tromey <tom@tromey.com>
1453
1454 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1455
1456 2020-07-01 Fangrui Song <maskray@google.com>
1457
1458 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1459
1460 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1461
1462 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1463 forms for DW_AT_associated and DW_AT_allocated attributes,
1464 which is already checked in function attr_to_dynamic_prop.
1465
1466 2020-06-30 Tom Tromey <tromey@adacore.com>
1467
1468 * dwarf2/read.c (quirk_rust_enum): Correctly call
1469 alloc_rust_variant for default-less enum.
1470
1471 2020-06-30 Tom Tromey <tromey@adacore.com>
1472
1473 PR build/26183:
1474 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1475 gdb::to_string.
1476
1477 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1478
1479 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1480 * gdbarch.h: Re-generate.
1481
1482 2020-06-28 Tom Tromey <tom@tromey.com>
1483
1484 * command.h (cmd_types): Remove.
1485 (cmd_type): Don't declare.
1486 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1487 typedef.
1488 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1489 * cli/cli-decode.c (cmd_type): Remove.
1490
1491 2020-06-27 Pedro Alves <palves@redhat.com>
1492
1493 * fork-child.c (prefork_hook): Adjust.
1494 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1495 Delete.
1496 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1497 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1498 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1499 Remove declarations.
1500 (struct inferior) <set_tty, tty>: New methods.
1501 (struct inferior) <terminal>: Rename to ...
1502 (struct inferior) <m_terminal>: ... this and make private.
1503 * main.c (captured_main_1): Adjust.
1504 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1505 (mi_cmd_inferior_tty_show): Adjust.
1506 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1507 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1508
1509 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1510
1511 * configure.ac: Add --enable-libctf: handle --disable-static
1512 properly.
1513 * acinclude.m4: sinclude ../config/enable.m4.
1514 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1515 (LIBCTF): Substitute in.
1516 (CTF_DEPS): New, likewise.
1517 (CLIBS): libctf needs symbols from libbfd: move earlier.
1518 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1519 flags.
1520 * ctfread.c: Surround in ENABLE_LIBCTF.
1521 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1522 * configure: Regenerate.
1523 * config.in: Likewise.
1524
1525 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1526
1527 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1528
1529 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1530
1531 * inferior.h (struct inferior) <terminal>: Change type to
1532 gdb::unique_xmalloc_ptr<char>.
1533 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1534 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1535 field, adjust to unique pointer.
1536 (get_inferior_io_terminal): Adjust to unique pointer.
1537
1538 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1539
1540 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1541 registers, not just the known core set of registers.
1542
1543 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1544
1545 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1546 fflags, frm, and fcsr registers.
1547 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1548 restore groups.
1549 (riscv_tdesc_unknown_reg): New function.
1550 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1551 tdesc_use_registers.
1552 * riscv-tdep.h (struct gdbarch_tdep): Add
1553 unknown_csrs_first_regnum, unknown_csrs_count,
1554 duplicate_fflags_regnum, duplicate_frm_regnum, and
1555 duplicate_fcsr_regnum fields.
1556
1557 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1558
1559 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1560 callback, use the callback (when not null) to help number unknown
1561 registers.
1562 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1563 (tdesc_use_registers): Add extra parameter to declaration.
1564
1565 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1566
1567 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1568 in the file.
1569 (class riscv_pending_register_alias): Likewise.
1570 (riscv_register_feature::register_info): Change 'required_p' field
1571 to 'required', and change its type. Add 'check' member function.
1572 (riscv_register_feature::register_info::check): Define new member
1573 function.
1574 (riscv_xreg_feature): Change initialisation of 'required' field.
1575 (riscv_freg_feature): Likewise.
1576 (riscv_virtual_feature): Likewise.
1577 (riscv_csr_feature): Likewise.
1578 (riscv_check_tdesc_feature): Take extra parameter, the csr
1579 tdesc_feature, rewrite the function to use the new
1580 riscv_register_feature::register_info::check function.
1581 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1582
1583 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1584
1585 * features/Makefile: Remove all references to the deleted files
1586 below.
1587 * features/riscv/32bit-csr.c: Deleted.
1588 * features/riscv/32bit-csr.xml: Deleted.
1589 * features/riscv/64bit-csr.c: Deleted.
1590 * features/riscv/64bit-csr.xml: Deleted.
1591 * features/riscv/rebuild-csr-xml.sh: Deleted.
1592
1593 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1594
1595 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1596 whitespace error for declaration of names member variable.
1597 (struct riscv_register_feature): Add new prefer_first_name member
1598 variable, and fix whitespace error in declaration of registers.
1599 (riscv_xreg_feature): Initialize prefer_first_name field.
1600 (riscv_freg_feature): Likewise.
1601 (riscv_virtual_feature): Likewise.
1602 (riscv_csr_feature): Likewise.
1603 (riscv_register_name): Expand on comments. Remove register name
1604 modifications for CSR and virtual registers.
1605
1606 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1607
1608 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1609 errors.
1610
1611 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1612
1613 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1614 riscv-opc.h.
1615 (class riscv_pending_register_alias): New class.
1616 (riscv_check_tdesc_feature): Take vector of pending aliases and
1617 populate it as appropriate.
1618 (riscv_setup_register_aliases): Delete.
1619 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1620 to riscv_check_tdesc_feature in all cases. Use the vector to
1621 create the register aliases.
1622
1623 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1624
1625 * sol2-tdep.c (sol2_static_transform_name): Remove.
1626 (sol2_init_abi): Don't register it.
1627 * gdbarch.sh (static_transform_name): Remove.
1628 * gdbarch.c, gdbarch.h: Regenerate.
1629
1630 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1631 gdbarch_static_transform_name.
1632 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1633 * stabsread.c (define_symbol) <'X'>: Remove.
1634 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1635 handling.
1636 <'V'>: Likewise.
1637 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1638 <'S'>: Remove call to gdbarch_static_transform_name.
1639
1640 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1641
1642 * procfs.c (procfs_pre_trace): New function.
1643 (procfs_target::create_inferior): Pass it to fork_inferior.
1644
1645 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1646
1647 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1648 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1649 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1650 sol2-tdep.o, sparc-sol2-tdep.o.
1651 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1652 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1653 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1654 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1655
1656 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1657
1658 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1659 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1660 Call sol2_init_abi.
1661 Remove calls to set_gdbarch_skip_solib_resolver,
1662 set_gdbarch_core_pid_to_str.
1663 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1664 (i386_sol2_static_transform_name): Remove.
1665 (i386_sol2_init_abi): Call sol2_init_abi.
1666 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1667 set_gdbarch_static_transform_name,
1668 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1669 Use sol2_sigtramp_p.
1670 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1671 (sol2_sigtramp_p): New function.
1672 (sol2_static_transform_name): New function.
1673 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1674 (sol2_init_abi): New function.
1675 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1676 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1677 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1678 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1679 (sparc_sol2_static_transform_name): Remove.
1680 (sparc32_sol2_init_abi): Call sol2_init_abi.
1681 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1682 set_gdbarch_static_transform_name,
1683 set_gdbarch_skip_solib_resolver,
1684 set_gdbarch_core_pid_to_str.
1685 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1686 (sparc_sol2_static_transform_name): Remove
1687 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1688 call sol2_sigtramp_p.
1689 (sparc64_sol2_init_abi): Call sol2_init_abi.
1690 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1691 set_gdbarch_static_transform_name,
1692 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1693
1694 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1695
1696 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1697 * exec.c (validate_exec_file): If from_tty, set both
1698 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1699 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1700 and from_tty, unconditionally ask a confirmation.
1701
1702 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1703
1704 * target-descriptions.c (tdesc_architecture_name): Protect against
1705 NULL pointer dereference.
1706 (maint_print_xml_tdesc_cmd): New function.
1707 (_initialize_target_descriptions): Register new 'maint print
1708 xml-tdesc' command and give it the filename completer.
1709 * NEWS: Mention new 'maint print xml-tdesc' command.
1710
1711 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1712
1713 * target-descriptions.c (class tdesc_compatible_info): New class.
1714 (struct target_desc): Change type of compatible vector.
1715 (tdesc_compatible_p): Update for change in type of
1716 target_desc::compatible.
1717 (tdesc_compatible_info_list): New function.
1718 (tdesc_compatible_info_arch_name): New function.
1719 (tdesc_add_compatible): Update for change in type of
1720 target_desc::compatible.
1721 (print_c_tdesc::visit_pre): Likewise.
1722
1723 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1724
1725 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1726 whitespace to underscore.
1727 (maint_print_c_tdesc_cmd): Use fake filename for target
1728 descriptions that came from the target.
1729 (_initialize_target_descriptions): Add filename command completion
1730 for 'maint print c-tdesc'.
1731
1732 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1733
1734 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1735 lines.
1736
1737 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1738
1739 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1740 lines.
1741 (dwarf2_find_location_expression): Likewise.
1742 (call_site_parameter_matches): Likewise.
1743 (dwarf2_compile_expr_to_ax): Likewise.
1744 (disassemble_dwarf_expression): Likewise.
1745 (loclist_describe_location): Likewise.
1746
1747 2020-06-23 Pedro Alves <palves@redhat.com>
1748
1749 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1750 progspace-and-thread.h. Include scoped-mock-context.h instead.
1751 (register_to_value_test): Use scoped_mock_context.
1752 * regcache.c: Include "scoped-mock-context.h".
1753 (cooked_read_test): Don't error out if a target is already pushed.
1754 Use scoped_mock_context. Adjust.
1755 * scoped-mock-context.h: New file.
1756
1757 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1758
1759 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1760 initializer.
1761 (ada_language::is_string_type_p): New member function.
1762 * c-lang.c (c_language_data): Delete la_is_string_type_p
1763 initializer.
1764 (cplus_language_data): Likewise.
1765 (asm_language_data): Likewise.
1766 (minimal_language_data): Likewise.
1767 * d-lang.c (d_language_data): Likewise.
1768 * f-lang.c (f_is_string_type_p): Delete function, implementation
1769 moved to f_language::is_string_type_p.
1770 (f_language_data): Delete la_is_string_type_p initializer.
1771 (f_language::is_string_type_p): New member function,
1772 implementation from f_is_string_type_p.
1773 * go-lang.c (go_is_string_type_p): Delete function, implementation
1774 moved to go_language::is_string_type_p.
1775 (go_language_data): Delete la_is_string_type_p initializer.
1776 (go_language::is_string_type_p): New member function,
1777 implementation from go_is_string_type_p.
1778 * language.c (language_defn::is_string_type_p): Define new member
1779 function.
1780 (default_is_string_type_p): Make static, add comment copied from
1781 header file.
1782 (unknown_language_data): Delete la_is_string_type_p initializer.
1783 (unknown_language::is_string_type_p): New member function.
1784 (auto_language_data): Delete la_is_string_type_p initializer.
1785 (auto_language::is_string_type_p): New member function.
1786 * language.h (language_data): Delete la_is_string_type_p field.
1787 (language_defn::is_string_type_p): Declare new function.
1788 (default_is_string_type_p): Delete desclaration, move comment to
1789 definition.
1790 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1791 moved to m2_language::is_string_type_p.
1792 (m2_language_data): Delete la_is_string_type_p initializer.
1793 (m2_language::is_string_type_p): New member function,
1794 implementation from m2_is_string_type_p.
1795 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1796 initializer.
1797 * opencl-lang.c (opencl_language_data): Likewise.
1798 * p-lang.c (pascal_is_string_type_p): Delete function,
1799 implementation moved to pascal_language::is_string_type_p.
1800 (pascal_language_data): Delete la_is_string_type_p initializer.
1801 (pascal_language::is_string_type_p): New member function,
1802 implementation from pascal_is_string_type_p.
1803 * rust-lang.c (rust_is_string_type_p): Delete function,
1804 implementation moved to rust_language::is_string_type_p.
1805 (rust_language_data): Delete la_is_string_type_p initializer.
1806 (rust_language::is_string_type_p): New member function,
1807 implementation from rust_is_string_type_p.
1808 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1809 is_string_type_p.
1810
1811 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1812
1813 * ada-lang.c (ada_language_data): Delete la_print_typedef
1814 initializer.
1815 (ada_language::print_typedef): New member function.
1816 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1817 (cplus_language_data): Likewise.
1818 (asm_language_data): Likewise.
1819 (minimal_language_data): Likewise.
1820 * d-lang.c (d_language_data): Likewise.
1821 * f-lang.c (f_language_data): Likewise.
1822 (f_language::print_typedef): New member function.
1823 * go-lang.c (go_language_data): Delete la_print_typedef
1824 initializer.
1825 * language.c (language_defn::print_typedef): Define member
1826 function.
1827 (unknown_language_data): Delete la_print_typedef initializer.
1828 (unknown_language::print_typedef): New member function.
1829 (auto_language_data): Delete la_print_typedef initializer.
1830 (auto_language::print_typedef): New member function.
1831 * language.h (language_data): Delete la_print_typedef field.
1832 (language_defn::print_typedef): Declare new member function.
1833 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1834 (default_print_typedef): Delete declaration.
1835 * m2-lang.c (m2_language_data): Delete la_print_typedef
1836 initializer.
1837 (m2_language::print_typedef): New member function.
1838 * objc-lang.c (objc_language_data): Delete la_print_typedef
1839 initializer.
1840 * opencl-lang.c (opencl_language_data): Likewise.
1841 * p-lang.c (pascal_language_data): Likewise.
1842 (pascal_language::print_typedef): New member function.
1843 * rust-lang.c (rust_print_typedef): Delete function,
1844 implementation moved to rust_language::print_typedef.
1845 (rust_language): Delete la_print_typedef initializer.
1846 (rust_language::print_typedef): New member function,
1847 implementation from rust_print_typedef.
1848 * typeprint.c (default_print_typedef): Delete.
1849
1850 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1851
1852 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1853 (ada_language::printstr): New member function.
1854 * c-lang.c (c_language_data): Delete la_printstr initializer.
1855 (cplus_language_data): Likewise.
1856 (asm_language_data): Likewise.
1857 (minimal_language_data): Likewise.
1858 * d-lang.c (d_language_data): Likewise.
1859 * f-lang.c (f_printstr): Rename to f_language::printstr.
1860 (f_language_data): Delete la_printstr initializer.
1861 (f_language::printstr): New member function, implementation from
1862 f_printstr.
1863 * go-lang.c (go_language_data): Delete la_printstr initializer.
1864 * language.c (language_defn::printstr): Define new member
1865 function.
1866 (unk_lang_printstr): Delete.
1867 (unknown_language_data): Delete la_printstr initializer.
1868 (unknown_language::printstr): New member function.
1869 (auto_language_data): Delete la_printstr initializer.
1870 (auto_language::printstr): New member function.
1871 * language.h (language_data): Delete la_printstr field.
1872 (language_defn::printstr): Declare new member function.
1873 (LA_PRINT_STRING): Update call to printstr.
1874 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1875 (m2_language_data): Delete la_printstr initializer.
1876 (m2_language::printstr): New member function, implementation from
1877 m2_printstr.
1878 * objc-lang.c (objc_language_data): Delete la_printstr
1879 initializer.
1880 * opencl-lang.c (opencl_language_data): Likewise.
1881 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1882 (pascal_language_data): Delete la_printstr initializer.
1883 (pascal_language::printstr): New member function, implementation
1884 from pascal_printstr.
1885 * p-lang.h (pascal_printstr): Delete declaration.
1886 * rust-lang.c (rust_printstr): Update header comment.
1887 (rust_language_data): Delete la_printstr initializer.
1888 (rust_language::printstr): New member function.
1889
1890 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1891
1892 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1893 (ada_language::printchar): New member function.
1894 * c-lang.c (c_language_data): Delete la_printchar initializer.
1895 (cplus_language_data): Likewise.
1896 (asm_language_data): Likewise.
1897 (minimal_language_data): Likewise.
1898 * d-lang.c (d_language_data): Likewise.
1899 * f-lang.c (f_printchar): Rename to f_language::printchar.
1900 (f_language_data): Delete la_printchar initializer.
1901 (f_language::printchar): New member function, implementation from
1902 f_printchar.
1903 * go-lang.c (go_language_data): Delete la_printchar initializer.
1904 * language.c (unk_lang_printchar): Delete.
1905 (language_defn::printchar): Define new member function.
1906 (unknown_language_data): Delete la_printchar initializer.
1907 (unknown_language::printchar): New member function.
1908 (auto_language_data): Delete la_printchar initializer.
1909 (auto_language::printchar): New member function.
1910 * language.h (language_data): Delete la_printchar field.
1911 (language_defn::printchar): Declare new member function.
1912 (LA_PRINT_CHAR): Update call to printchar.
1913 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1914 (m2_language::printchar): New member function.
1915 * objc-lang.c (objc_language_data): Delete la_printchar
1916 initializer.
1917 * opencl-lang.c (opencl_language_data): Likewise.
1918 * p-lang.c (pascal_language_data): Delete la_printchar
1919 initializer.
1920 (pascal_language::printchar): New member function.
1921 * rust-lang.c (rust_printchar): Rename to
1922 rust_language::printchar.
1923 (rust_language_data): Delete la_printchar initializer.
1924 (rust_language::printchar): New member function, implementation
1925 from rust_printchar.
1926
1927 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1928
1929 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1930 (ada_language_data): Delete la_emitchar initializer.
1931 (ada_language::emitchar): New member function, implementation from
1932 emit_char.
1933 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1934 (cplus_language_data): Likewise.
1935 (asm_language_data): Likewise.
1936 (minimal_language_data): Likewise.
1937 * d-lang.c (d_language_data): Likewise.
1938 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1939 (f_language_data): Delete la_emitchar initializer.
1940 (f_language::emitchar): New member function, implementation from
1941 f_emit_char.
1942 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1943 * language.c (unk_lang_emit_char): Delete.
1944 (language_defn::emitchar): New member function definition.
1945 (unknown_language_data): Delete la_emitchar initializer.
1946 (unknown_language::emitchar): New member function.
1947 (auto_language_data): Delete la_emitchar initializer.
1948 (auto_language::emitchar): New member function.
1949 * language.h (language_data): Delete la_emitchar field.
1950 (language_defn::emitchar): New member field declaration.
1951 (LA_EMIT_CHAR): Update call to emitchar.
1952 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1953 (m2_language_data): Delete la_emitchar initializer.
1954 (m2_language::emitchar): New member function, implementation from
1955 m2_emit_char.
1956 * objc-lang.c (objc_language_data): Delete la_emitchar
1957 initializer.
1958 * opencl-lang.c (opencl_language_data): Likewise.
1959 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1960 (pascal_language_data): Delete la_emitchar initializer.
1961 (pascal_language::emitchar): New member function, implementation
1962 from pascal_emit_char.
1963 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1964 (rust_language_data): Delete la_emitchar initializer.
1965 (rust_language::emitchar): New member function, implementation
1966 from rust_emitchar.
1967
1968 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1969
1970 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1971 (ada_language_data): Delete la_post_parser initializer.
1972 (ada_language::post_parser): New member function.
1973 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1974 (cplus_language_data): Likewise.
1975 (asm_language_data): Likewise.
1976 (minimal_language_data): Likewise.
1977 * d-lang.c (d_language_data): Likewise.
1978 * f-lang.c (f_language_data): Likewise.
1979 * go-lang.c (go_language_data): Likewise.
1980 * language.c (unknown_language_data): Likewise.
1981 (auto_language_data): Likewise.
1982 * language.h (language_data): Delete la_post_parser field.
1983 (language_defn::post_parser): New member function.
1984 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1985 * objc-lang.c (objc_language_data): Likewise.
1986 * opencl-lang.c (opencl_language_data): Likewise.
1987 * p-lang.c (pascal_language_data): Likewise.
1988 * parse.c (parse_exp_in_context): Update call to post_parser.
1989 (null_post_parser): Delete definition.
1990 * parser-defs.h (null_post_parser): Delete declaration.
1991 * rust-lang.c (rust_language_data): Delete la_post_parser
1992 initializer.
1993
1994 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1995
1996 * ada-lang.c (parse): Rename to ada_language::parser.
1997 (ada_language_data): Delete la_parser initializer.
1998 (ada_language::parser): New member function, implementation from
1999 parse.
2000 * c-lang.c (c_language_data): Delete la_parser initializer.
2001 (cplus_language_data): Likewise.
2002 (asm_language_data): Likewise.
2003 (minimal_language_data): Likewise.
2004 * d-lang.c (d_language_data): Likewise.
2005 (d_language::parser): New member function.
2006 * f-lang.c (f_language_data): Delete la_parser initializer.
2007 (f_language::parser): New member function.
2008 * go-lang.c (go_language_data): Delete la_parser initializer.
2009 (go_language::parser): New member function.
2010 * language.c (unk_lang_parser): Delete.
2011 (language_defn::parser): Define new member function.
2012 (unknown_language_data): Delete la_parser initializer.
2013 (unknown_language::parser): New member function.
2014 (auto_language_data): Delete la_parser initializer.
2015 (auto_language::parser): New member function.
2016 * language.h (language_data): Delete la_parser field.
2017 (language_defn::parser): Declare new member function.
2018 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2019 (m2_language::parser): New member function.
2020 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2021 * opencl-lang.c (opencl_language_data): Likewise.
2022 * p-lang.c (pascal_language_data): Likewise.
2023 (pascal_language::parser): New member function.
2024 * parse.c (parse_exp_in_context): Update call to parser.
2025 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2026 (rust_language::parser): New member function.
2027
2028 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2029
2030 * top.c (print_gdb_configuration): Print --with-python-libdir
2031 configuration value.
2032
2033 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2034
2035 * NEWS: Mention change to the alias command.
2036
2037 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2038
2039 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2040 (alias_command_completer)
2041 (make_alias_options_def_group): New functions.
2042 (alias_opts, alias_option_defs): New struct and array.
2043 (alias_usage_error): Update usage.
2044 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2045 Use option framework.
2046 (_initialize_cli_cmds): Update alias command help.
2047 Update aliases command help.
2048 (show_user):
2049 Add NULL for new default_args lookup_cmd argument.
2050 (valid_command_p): Rename to validate_aliased_command.
2051 Add NULL for new default_args lookup_cmd argument. Verify that the
2052 aliased_command has no default args.
2053 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2054 (lookup_cmd_1, lookup_cmd): New argument default_args.
2055 (add_alias_cmd):
2056 Add NULL for new default_args lookup_cmd argument.
2057 (print_help_for_command): Show default args under the layout
2058 alias some_alias = some_aliased_cmd some_alias_default_arg.
2059 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2060 xfree default_args in destructor.
2061 * cli/cli-script.c (process_next_line, do_define_command):
2062 Add NULL for new default_args lookup_cmd argument.
2063 * command.h: Declare new default_args argument in lookup_cmd
2064 and lookup_cmd_1.
2065 * completer.c (complete_line_internal_1):
2066 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2067 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2068 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2069 Likewise.
2070 * infcmd.c (_initialize_infcmd): Likewise.
2071 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2072 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2073 * python/py-param.c (add_setshow_generic): Likewise.
2074 * remote.c (_initialize_remote): Likewise.
2075 * top.c (execute_command): Prepend default_args if command has some.
2076 (set_verbose):
2077 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2078 * tracepoint.c (validate_actionline, encode_actions_1):
2079 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2080
2081 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2082
2083 * jit.c (jit_read_descriptor): Use bool as the return type.
2084 (jit_breakpoint_re_set_internal): Use bool as the return type.
2085 Invert the return value logic; return true if the jit breakpoint
2086 has been successfully initialized.
2087 (jit_inferior_init): Update the call to
2088 jit_breakpoint_re_set_internal.
2089
2090 2020-06-22 Pedro Alves <palves@redhat.com>
2091
2092 PR gdb/25939
2093 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2094 Use the current inferior instead. Don't return
2095 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2096 wait again.
2097 * sol-thread.c (sol_thread_target::wait): Don't reference
2098 inferior_ptid.
2099 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2100 (sol_update_thread_list_callback): Use the current inferior's pid
2101 instead of inferior_ptid.
2102
2103 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2104
2105 * procfs.c: Cleanup many comments.
2106
2107 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2108 (AFTER_WATCHFLAG): Replace by value.
2109
2110 (MAIN_PROC_NAME_FORMAT): Inline ...
2111 (create_procinfo): ... here.
2112
2113 (procfs_debug_inferior): Remove SYS_exec handling.
2114 (syscall_is_exec): Likewise.
2115 (procfs_set_exec_trap): Likewise.
2116
2117 (syscall_is_lwp_exit): Inline in callers.
2118 (syscall_is_exit): Likewise.
2119 (syscall_is_exec): Likewise.
2120 (syscall_is_lwp_create): Likewise.
2121
2122 (invalidate_cache): Remove #if 0 code.
2123
2124 (make_signal_thread_runnable): Remove.
2125 (procfs_target::resume): Remove #if 0 code.
2126
2127 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2128
2129 PR gdb/25939
2130 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2131 call ...
2132 (procfs_target::create_inferior): ... here.
2133
2134 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2135
2136 * exec.c (validate_exec_file): Ensure the build-id is up to
2137 date by calling reopen_exec_file (that checks file timestamp
2138 to decide to re-read the file).
2139
2140 2020-06-18 Pedro Alves <palves@redhat.com>
2141
2142 PR gdb/25412
2143 * gdbthread.h (delete_thread, delete_thread_silent)
2144 (find_thread_ptid): Update comments.
2145 * thread.c (current_thread_): New global.
2146 (is_current_thread): Move higher, and reimplement.
2147 (inferior_thread): Reimplement.
2148 (set_thread_exited): Use bool. Add assertions.
2149 (add_thread_silent): Simplify thread-reuse handling by always
2150 calling delete_thread.
2151 (delete_thread): Remove intro comment.
2152 (find_thread_ptid): Skip exited threads.
2153 (switch_to_thread_no_regs): Write to current_thread_.
2154 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2155 INFERIOR_PTID. Clear current_thread_.
2156
2157 2020-06-18 Pedro Alves <palves@redhat.com>
2158
2159 * aix-thread.c (pd_update): Use switch_to_thread.
2160
2161 2020-06-18 Pedro Alves <palves@redhat.com>
2162
2163 * ravenscar-thread.c (ravenscar_thread_target): Update.
2164 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2165 (ravenscar_thread_target::add_active_thread): ... this. Don't
2166 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2167 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2168
2169 2020-06-18 Pedro Alves <palves@redhat.com>
2170
2171 * nat/windows-nat.c (current_windows_thread): Remove.
2172 * nat/windows-nat.h (current_windows_thread): Remove.
2173 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2174 Adjust.
2175 (display_selectors): Adjust to fetch the current
2176 windows_thread_info based on inferior_ptid.
2177 (fake_create_process): No longer write to current_windows_thread.
2178 (windows_nat_target::get_windows_debug_event):
2179 Don't set inferior_ptid or current_windows_thread.
2180 (windows_nat_target::wait): Adjust to not rely on
2181 current_windows_thread.
2182 (do_initial_windows_stuff): Now a method of windows_nat_target.
2183 Switch to the last_ptid thread.
2184 (windows_nat_target::attach): Adjust.
2185 (windows_nat_target::detach): Use switch_to_no_thread instead of
2186 writing to inferior_ptid directly.
2187 (windows_nat_target::create_inferior): Adjust.
2188
2189 2020-06-18 Pedro Alves <palves@redhat.com>
2190
2191 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2192
2193 2020-06-18 Pedro Alves <palves@redhat.com>
2194
2195 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2196 after creating it, instead of writing to inferior_ptid. Don't
2197 write to inferior_ptid.
2198
2199 2020-06-18 Pedro Alves <palves@redhat.com>
2200
2201 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2202
2203 2020-06-18 Pedro Alves <palves@redhat.com>
2204
2205 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2206 it, instead of writing to inferior_ptid.
2207
2208 2020-06-18 Pedro Alves <palves@redhat.com>
2209
2210 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2211 to inferior_ptid.
2212
2213 2020-06-18 Pedro Alves <palves@redhat.com>
2214
2215 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2216 instead of writing to inferior_ptid directly.
2217
2218 2020-06-18 Pedro Alves <palves@redhat.com>
2219
2220 * corelow.c (core_target::close): Use switch_to_no_thread instead
2221 of writing to inferior_ptid directly.
2222 (add_to_thread_list, core_target_open): Use switch_to_thread
2223 instead of writing to inferior_ptid directly.
2224
2225 2020-06-18 Pedro Alves <palves@redhat.com>
2226
2227 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2228 inferior_ptid.
2229 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2230 inferior_ptid.
2231 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2232 inferior_ptid directly.
2233 (darwin_nat_target::init_thread_list): Switch to thread, instead
2234 of writing to inferior_ptid.
2235 (darwin_nat_target::attach): Don't write to inferior_ptid.
2236 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2237
2238 2020-06-18 Pedro Alves <palves@redhat.com>
2239
2240 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2241 thread.
2242 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2243 Instead use switch_to_thread.
2244 (gnu_nat_target::detach): Use switch_to_no_thread
2245 instead of writing to inferior_ptid directly. Used passed-in
2246 inferior instead of looking up the inferior by pid.
2247
2248 2020-06-18 Pedro Alves <palves@redhat.com>
2249
2250 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2251 inferior_ptid.
2252
2253 2020-06-18 Pedro Alves <palves@redhat.com>
2254
2255 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2256 inferior_ptid.
2257 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2258 thread.
2259 (nto_procfs_target::detach): Avoid referencing
2260 inferior_ptid. Use switch_to_no_thread instead of writing to
2261 inferior_ptid directly.
2262 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2263 instead of writing to inferior_ptid directly.
2264 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2265 to thread.
2266
2267 2020-06-18 Pedro Alves <palves@redhat.com>
2268
2269 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2270 after creating it, instead of writing to inferior_ptid.
2271 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2272 to inferior_ptid directly.
2273 (gdbsim_target::wait): Don't write to inferior_ptid.
2274
2275 2020-06-18 Pedro Alves <palves@redhat.com>
2276
2277 * remote.c (remote_target::remote_notice_new_inferior): Use
2278 switch_to_thread instead of writing to inferior_ptid directly.
2279 (remote_target::add_current_inferior_and_thread): Use
2280 switch_to_no_thread instead of writing to inferior_ptid directly.
2281 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2282 and switch_to_thread instead of using set_current_inferior or
2283 writing to inferior_ptid directly.
2284
2285 2020-06-18 Pedro Alves <palves@redhat.com>
2286
2287 * tracectf.c (ctf_target_open): Switch to added thread instead of
2288 writing to inferior_ptid directly.
2289 (ctf_target::close): Use switch_to_no_thread instead of writing to
2290 inferior_ptid directly.
2291
2292 2020-06-18 Pedro Alves <palves@redhat.com>
2293
2294 * tracefile-tfile.c (tfile_target_open): Don't write to
2295 inferior_ptid directly, instead switch to added thread.
2296 (tfile_target::close): Use switch_to_no_thread instead of writing
2297 to inferior_ptid directly.
2298
2299 2020-06-18 Pedro Alves <palves@redhat.com>
2300
2301 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2302 (procfs_target::detach): Use switch_to_no_thread
2303 instead of writing to inferior_ptid directly.
2304 (do_attach): Change return type to void. Switch to the added
2305 thread.
2306 (procfs_target::create_inferior): Switch to the added thread.
2307 (procfs_do_thread_registers): Don't write to inferior_ptid.
2308
2309 2020-06-18 Pedro Alves <palves@redhat.com>
2310
2311 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2312 of writing to inferior_ptid.
2313 (scoped_restore_exited_inferior): Delete.
2314 (handle_vfork_child_exec_or_exit): Simplify using
2315 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2316 instead of writing to inferior_ptid.
2317 (THREAD_STOPPED_BY): Delete.
2318 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2319 (thread_stopped_by_hw_breakpoint): Delete.
2320 (save_waitstatus): Use
2321 scoped_restore_current_thread+switch_to_thread, and call
2322 target_stopped_by_watchpoint instead of
2323 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2324 instead of thread_stopped_by_sw_breakpoint, and
2325 target_stopped_by_hw_breakpoint instead of
2326 thread_stopped_by_hw_breakpoint.
2327 (handle_inferior_event)
2328 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2329 inferior_ptid directly, nor
2330 set_current_inferior/set_current_program_space. Use
2331 switch_to_thread / switch_to_inferior_no_thread instead.
2332
2333 2020-06-18 Pedro Alves <palves@redhat.com>
2334
2335 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2336 instead of writing to inferior_ptid.
2337
2338 2020-06-18 Pedro Alves <palves@redhat.com>
2339
2340 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2341 added thread.
2342 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2343 to the added thread.
2344 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2345 instead of writing to inferior_ptid.
2346
2347 2020-06-18 Pedro Alves <palves@redhat.com>
2348
2349 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2350 (register_to_value_test): Mock a program_space too. Heap-allocate
2351 the address space. Don't write to inferior_ptid. Use
2352 switch_to_thread instead.
2353
2354 2020-06-18 Pedro Alves <palves@redhat.com>
2355
2356 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2357 Delete.
2358 (find_signalled_thread()): New, factored out from
2359 linux_make_corefile_notes and adjusted to handle exited threads.
2360 (linux_make_corefile_notes): Adjust to use the new
2361 find_signalled_thread.
2362
2363 2020-06-18 Pedro Alves <palves@redhat.com>
2364
2365 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2366 of saving/restoring inferior_ptid.
2367
2368 2020-06-17 Tom Tromey <tom@tromey.com>
2369
2370 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2371 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2372 declare.
2373 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2374
2375 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2376
2377 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2378 of partial symtabs.
2379
2380 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2381
2382 * regformats/reg-arm.dat: Remove.
2383 * regformats/reg-bfin.dat: Remove.
2384 * regformats/reg-cris.dat: Remove.
2385 * regformats/reg-crisv32.dat: Remove.
2386 * regformats/reg-m32r.dat: Remove.
2387 * regformats/reg-tilegx.dat: Remove.
2388 * regformats/reg-tilegx32.dat: Remove.
2389
2390 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2391
2392 * features/Makefile (WHICH): Remove arm files.
2393 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2394 * regformats/arm/arm-with-neon.dat: Remove.
2395 * regformats/arm/arm-with-vfpv2.dat: Remove.
2396 * regformats/arm/arm-with-vfpv3.dat: Remove.
2397
2398 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2399
2400 * features/Makefile (XMLTOC): Remove rx.xml.
2401
2402 2020-06-17 Pedro Alves <palves@redhat.com>
2403
2404 * gdbthread.h (thread_control_state) <trap_expected> Update
2405 comments.
2406
2407 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2408
2409 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2410 ada_language::lookup_symbol_nonlocal.
2411 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2412 (ada_language::lookup_symbol_nonlocal): New member function,
2413 implementation from ada_lookup_symbol_nonlocal.
2414 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2415 initializer.
2416 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2417 initializer.
2418 (cplus_language::lookup_symbol_nonlocal): New member function.
2419 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2420 (minimal_language_data) Likewise.
2421 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2422 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2423 initializer.
2424 (d_language::lookup_symbol_nonlocal): New member function.
2425 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2426 initializer.
2427 (f_language::lookup_symbol_nonlocal): New member function.
2428 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2429 initializer.
2430 * language.c (unknown_language_data): Likewise.
2431 (auto_language_data): Likewise.
2432 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2433 field.
2434 (language_defn::lookup_symbol_nonlocal): New member function.
2435 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2436 initializer.
2437 * objc-lang.c (objc_language_data): Likewise.
2438 * opencl-lang.c (opencl_language_data): Likewise.
2439 * p-lang.c (pascal_language_data): Likewise.
2440 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2441 rust_language::lookup_symbol_nonlocal.
2442 (rust_language_data): Delete la_lookup_symbol_nonlocal
2443 initializer.
2444 (rust_language::lookup_symbol_nonlocal): New member function,
2445 implementation from rust_lookup_symbol_nonlocal.
2446 * symtab.c (lookup_symbol_aux): Update call to
2447 lookup_symbol_nonlocal.
2448 (basic_lookup_symbol_nonlocal): Rename to...
2449 (language_defn::lookup_symbol_nonlocal): ...this, and update
2450 header comment. Remove language_defn parameter, and replace with
2451 uses of `this'.
2452 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2453
2454 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2455
2456 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2457 initializer.
2458 (ada_language::value_print_inner): New member function.
2459 * c-lang.c (c_language_data): Delete la_value_print_inner
2460 initializer.
2461 (cplus_language_data): Likewise.
2462 (asm_language_data): Likewise.
2463 (minimal_language_data): Likewise.
2464 * d-lang.c (d_language_data): Likewise.
2465 (d_language::value_print_inner): New member function.
2466 * f-lang.c (f_language_data): Delete la_value_print_inner
2467 initializer.
2468 (f_language::value_print_inner): New member function.
2469 * f-lang.h (f_value_print_innner): Rename to...
2470 (f_value_print_inner): ...this (note spelling of 'inner').
2471 * f-valprint.c (f_value_print_innner): Rename to...
2472 (f_value_print_inner): ...this (note spelling of 'inner').
2473 * go-lang.c (go_language_data): Delete la_value_print_inner
2474 initializer.
2475 (go_language::value_print_inner): New member function.
2476 * language.c (language_defn::value_print_inner): Define new member
2477 function.
2478 (unk_lang_value_print_inner): Delete.
2479 (unknown_language_data): Delete la_value_print_inner initializer.
2480 (unknown_language::value_print_inner): New member function.
2481 (auto_language_data): Delete la_value_print_inner initializer.
2482 (auto_language::value_print_inner): New member function.
2483 * language.h (language_data): Delete la_value_print_inner field.
2484 (language_defn::value_print_inner): Delcare new member function.
2485 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2486 initializer.
2487 (m2_language::value_print_inner): New member function.
2488 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2489 initializer.
2490 * opencl-lang.c (opencl_language_data): Likewise.
2491 * p-lang.c (pascal_language_data): Likewise.
2492 (pascal_language::value_print_inner): New member function.
2493 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2494 initializer.
2495 (rust_language::value_print_inner): New member function.
2496 * valprint.c (do_val_print): Update call to value_print_inner.
2497
2498 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2499
2500 * ada-lang.c (ada_language_data): Delete la_value_print
2501 initializer.
2502 (ada_language::value_print): New member function.
2503 * c-lang.c (c_language_data): Delete la_value_print initializer.
2504 (cplus_language_data): Likewise.
2505 (asm_language_data): Likewise.
2506 (minimal_language_data): Likewise.
2507 * d-lang.c (d_language_data): Likewise.
2508 * f-lang.c (f_language_data): Likewise.
2509 * go-lang.c (go_language_data): Likewise.
2510 * language.c (unk_lang_value_print): Delete.
2511 (language_defn::value_print): Define new member function.
2512 (unknown_language_data): Delete la_value_print initializer.
2513 (unknown_language::value_print): New member function.
2514 (auto_language_data): Delete la_value_print initializer.
2515 (auto_language::value_print): New member function.
2516 * language.h (language_data): Delete la_value_print field.
2517 (language_defn::value_print): Declare new member function.
2518 (LA_VALUE_PRINT): Update call to value_print.
2519 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2520 * objc-lang.c (objc_language_data): Likewise.
2521 * opencl-lang.c (opencl_language_data): Likewise.
2522 * p-lang.c (pascal_language_data): Likewise.
2523 (pascal_language::value_print): New member function.
2524 * rust-lang.c (rust_language_data): Delete la_value_print
2525 initializer.
2526
2527 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2528
2529 * ada-lang.c (ada_watch_location_expression): Rename to
2530 ada_language::watch_location_expression.
2531 (ada_language_data): Delete la_watch_location_expression
2532 initializer.
2533 (ada_language::watch_location_expression): New member function,
2534 implementation from ada_watch_location_expression.
2535 * breakpoint.c (watch_command_1): Update call to
2536 watch_location_expression.
2537 * c-lang.c (c_watch_location_expression): Rename to
2538 language_defn::watch_location_expression.
2539 (c_language_data): Delete la_watch_location_expression
2540 initializer.
2541 (cplus_language_data): Likewise.
2542 (asm_language_data): Likewise.
2543 (minimal_language_data): Likewise.
2544 * c-lang.h (c_watch_location_expression): Delete declaration.
2545 * d-lang.c (d_language_data): Delete la_watch_location_expression
2546 initializer.
2547 * f-lang.c (f_language_data): Likewise.
2548 * go-lang.c (go_language_data): Likewise.
2549 * language.c (language_defn::watch_location_expression): Member
2550 function implementation from c_watch_location_expression.
2551 (unknown_language_data): Delete la_watch_location_expression
2552 initializer.
2553 (auto_language_data): Likewise.
2554 * language.h (language_data): Delete la_watch_location_expression
2555 field.
2556 (language_defn::watch_location_expression): Declare new member
2557 function.
2558 * m2-lang.c (m2_language_data): Delete
2559 la_watch_location_expression initializer.
2560 * objc-lang.c (objc_language_data): Likewise.
2561 * opencl-lang.c (opencl_language_data): Likewise.
2562 * p-lang.c (pascal_language_data): Likewise.
2563 * rust-lang.c (rust_watch_location_expression): Rename to
2564 rust_language::watch_location_expression.
2565 (rust_language_data): Delete la_watch_location_expression
2566 initializer.
2567 (rust_language::watch_location_expression): New member function,
2568 implementation from rust_watch_location_expression.
2569
2570 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2571
2572 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2573 ada_language::collect_symbol_completion_matches.
2574 (ada_language_data): Delete la_collect_symbol_completion_matches
2575 initializer.
2576 (ada_language::collect_symbol_completion_matches): New member
2577 function, implementation from
2578 ada_collect_symbol_completion_matches.
2579 * c-lang.c (c_language_data): Delete
2580 la_collect_symbol_completion_matches initializer.
2581 (cplus_language_data): Likewise.
2582 (asm_language_data): Likewise.
2583 (minimal_language_data): Likewise.
2584 * d-lang.c (d_language_data): Likewise.
2585 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2586 f_language::collect_symbol_completion_matches.
2587 (f_language_data): Delete la_collect_symbol_completion_matches
2588 initializer.
2589 (f_language::collect_symbol_completion_matches) New member
2590 function, implementation from f_collect_symbol_completion_matches.
2591 * go-lang.c (go_language_data): Delete
2592 la_collect_symbol_completion_matches initializer.
2593 * language.c (unknown_language_data): Likewise.
2594 (auto_language_data): Likewise.
2595 * language.h (language_data): Delete
2596 la_collect_symbol_completion_matches field.
2597 (language_defn::collect_symbol_completion_matches): New member
2598 function.
2599 * m2-lang.c (m2_language_data): Delete
2600 la_collect_symbol_completion_matches initializer.
2601 * objc-lang.c (objc_language_data): Likewise.
2602 * opencl-lang.c (opencl_language_data): Likewise.
2603 * p-lang.c (pascal_language_data): Likewise.
2604 * rust-lang.c (rust_language_data): Likewise.
2605 * symtab.c (default_collect_symbol_completion_matches): Delete.
2606 (collect_symbol_completion_matches): Update call to
2607 collect_symbol_completion_matches.
2608 (collect_symbol_completion_matches_type): Likewise.
2609 * symtab.h (default_collect_symbol_completion_matches): Delete
2610 declaration.
2611
2612 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2613
2614 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2615 (ada_language_data): Delete la_word_break_characters initializer.
2616 (ada_language::word_break_characters): New member function.
2617 * c-lang.c (c_language_data): Delete la_word_break_characters
2618 initializer.
2619 (cplus_language_data): Likewise.
2620 (asm_language_data): Likewise.
2621 (minimal_language_data): Likewise.
2622 * completer.c: Update global comment.
2623 (advance_to_expression_complete_word_point): Update call to
2624 word_break_characters.
2625 (complete_files_symbols): Likewise.
2626 (complete_line_internal_1): Likewise.
2627 (default_completer_handle_brkchars): Likewise.
2628 (skip_quoted_chars): Likewise.
2629 * d-lang.c (d_language_data): Delete la_word_break_characters
2630 initializer.
2631 * f-lang.c (f_word_break_characters): Delete.
2632 (f_language_data): Delete la_word_break_characters initializer.
2633 (f_language::word_break_characters): New member function.
2634 * go-lang.c (go_language_data): Delete la_word_break_characters
2635 initializer.
2636 * language.c (unknown_language_data): Likewise.
2637 (auto_language_data): Likewise.
2638 * language.h (default_word_break_characters): Move declaration to
2639 earlier in the file.
2640 (language_data): Delete la_word_break_characters field.
2641 (language_defn::word_break_characters): New member function.
2642 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2643 initializer.
2644 * objc-lang.c (objc_language_data): Likewise.
2645 * opencl-lang.c (opencl_language_data): Likewise.
2646 * p-lang.c (pascal_language_data): Likewise.
2647 * rust-lang.c (rust_language_data): Likewise.
2648
2649 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2650
2651 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2652 (ada_language_data): Delete la_get_symbol_name_matcher
2653 initializer.
2654 (language_defn::get_symbol_name_matcher_inner): New member
2655 function.
2656 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2657 initializer.
2658 (cplus_language_data): Likewise.
2659 (cplus_language::get_symbol_name_matcher_inner): New member
2660 function.
2661 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2662 (minimal_language_data): Likewise.
2663 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2664 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2665 initializer.
2666 * dictionary.c (iter_match_first_hashed): Update call to
2667 get_symbol_name_matcher.
2668 (iter_match_next_hashed): Likewise.
2669 (iter_match_next_linear): Likewise.
2670 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2671 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2672 initializer.
2673 (f_language::get_symbol_name_matcher_inner): New member function.
2674 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2675 initializer.
2676 * language.c (default_symbol_name_matcher): Update header comment,
2677 make static.
2678 (language_defn::get_symbol_name_matcher): New definition.
2679 (language_defn::get_symbol_name_matcher_inner): Likewise.
2680 (get_symbol_name_matcher): Delete.
2681 (unknown_language_data): Delete la_get_symbol_name_matcher
2682 initializer.
2683 (auto_language_data): Likewise.
2684 * language.h (language_data): Delete la_get_symbol_name_matcher
2685 field.
2686 (language_defn::get_symbol_name_matcher): New member function.
2687 (language_defn::get_symbol_name_matcher_inner): Likewise.
2688 (default_symbol_name_matcher): Delete declaration.
2689 * linespec.c (find_methods): Update call to
2690 get_symbol_name_matcher.
2691 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2692 initializer.
2693 * minsyms.c (lookup_minimal_symbol): Update call to
2694 get_symbol_name_matcher.
2695 (iterate_over_minimal_symbols): Likewise.
2696 * objc-lang.c (objc_language_data): Delete
2697 la_get_symbol_name_matcher initializer.
2698 * opencl-lang.c (opencl_language_data): Likewise.
2699 * p-lang.c (pascal_language_data): Likewise.
2700 * psymtab.c (psymbol_name_matches): Update call to
2701 get_symbol_name_matcher.
2702 * rust-lang.c (rust_language_data): Delete
2703 la_get_symbol_name_matcher initializer.
2704 * symtab.c (symbol_matches_search_name): Update call to
2705 get_symbol_name_matcher.
2706 (compare_symbol_name): Likewise.
2707
2708 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2709
2710 * ada-lang.c (ada_language_data): Delete la_compute_program
2711 initializer.
2712 * c-lang.c (c_language_data): Likewise.
2713 (c_language::compute_program): New member function.
2714 (cplus_language_data): Delete la_compute_program initializer.
2715 (cplus_language::compute_program): New member function.
2716 (asm_language_data): Delete la_compute_program initializer.
2717 (minimal_language_data): Likewise.
2718 * c-lang.h (c_compute_program): Update comment.
2719 (cplus_compute_program): Likewise.
2720 * compile/compile-c-support.c (c_compute_program): Likewise.
2721 (cplus_compute_program): Likewise.
2722 * compile/compile.c (compile_to_object): Update call to
2723 la_compute_program.
2724 * d-lang.c (d_language_data): Delete la_compute_program
2725 initializer.
2726 * f-lang.c (f_language_data): Likewise.
2727 * go-lang.c (go_language_data): Likewise.
2728 * language.c (unknown_language_data): Likewise.
2729 (auto_language_data): Likewise.
2730 * language.h (language_data): Delete la_compute_program field.
2731 (language_defn::compute_program): New member function.
2732 * m2-lang.c (m2_language_data): Delete la_compute_program
2733 initializer.
2734 * objc-lang.c (objc_language_data): Likewise.
2735 * opencl-lang.c (opencl_language_data): Likewise.
2736 * p-lang.c (pascal_language_data): Likewise.
2737 * rust-lang.c (rust_language_data): Likewise.
2738
2739 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2740
2741 * ada-lang.c (ada_language_data) Delete
2742 la_class_name_from_physname initializer.
2743 * c-lang.c (c_language_data): Likewise.
2744 (cplus_language_data): Likewise.
2745 (cplus_language::class_name_from_physname): New member function.
2746 (asm_language_data): Delete la_class_name_from_physname
2747 initializer.
2748 (minimal_language_data): Likewise.
2749 * d-lang.c (d_language_data): Likewise.
2750 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2751 method on language_defn class.
2752 (guess_full_die_structure_name): Likewise.
2753 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2754 initializer.
2755 * go-lang.c (go_language_data): Likewise.
2756 * language.c (language_class_name_from_physname): Delete.
2757 (unk_lang_class_name): Delete.
2758 (unknown_language_data): Delete la_class_name_from_physname
2759 initializer.
2760 (auto_language_data): Likewise.
2761 * language.h (language_data): Delete la_class_name_from_physname
2762 field.
2763 (language_defn::class_name_from_physname): New function.
2764 (language_class_name_from_physname): Delete declaration.
2765 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2766 initializer.
2767 * objc-lang.c (objc_language_data): Likewise.
2768 * opencl-lang.c (opencl_language_data): Likewise.
2769 * p-lang.c (pascal_language_data): Likewise.
2770 * rust-lang.c (rust_language_data): Likewise.
2771
2772 2020-06-16 Tom Tromey <tom@tromey.com>
2773
2774 * tui/tui-data.h (STATUS_NAME): New macro.
2775 * tui/tui-layout.c (tui_remove_some_windows)
2776 (initialize_known_windows, tui_register_window)
2777 (tui_layout_split::remove_windows, initialize_layouts)
2778 (tui_new_layout_command): Don't use hard-coded window names.
2779
2780 2020-06-16 Tom Tromey <tom@tromey.com>
2781
2782 PR tui/25348:
2783 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2784 tui_initialize_readline. Only run once. Call rl_initialize.
2785 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2786 tui_initialize_readline.
2787 * tui/tui-io.c (tui_setup_io): Call
2788 tui_ensure_readline_initialized.
2789 * tui/tui-interp.c (tui_interp::init): Update.
2790
2791 2020-06-16 Tom Tromey <tom@tromey.com>
2792
2793 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2794 Also preserve the status window.
2795
2796 2020-06-16 Tom Tromey <tom@tromey.com>
2797
2798 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2799 where m_window==nullptr.
2800
2801 2020-06-15 Tom Tromey <tromey@adacore.com>
2802
2803 * windows-nat.c (windows_nat::handle_output_debug_string):
2804 Update.
2805 (windows_nat::handle_ms_vc_exception): Update.
2806 * target.h (target_read_string): Change API.
2807 * target.c (target_read_string): Change API.
2808 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2809 Update.
2810 * solib-frv.c (frv_current_sos): Update.
2811 * solib-dsbt.c (dsbt_current_sos): Update.
2812 * solib-darwin.c (darwin_current_sos): Update.
2813 * linux-thread-db.c (inferior_has_bug): Update.
2814 * expprint.c (print_subexp_standard): Update.
2815 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2816 (ada_exception_message_1): Update.
2817
2818 2020-06-15 Tom Tromey <tromey@adacore.com>
2819
2820 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2821
2822 2020-06-15 Tom Tromey <tromey@adacore.com>
2823
2824 * valprint.c (read_string): Update comment.
2825 * target.c (MIN): Remove.
2826 (target_read_string): Rewrite.
2827
2828 2020-06-15 Tom Tromey <tromey@adacore.com>
2829
2830 * corefile.c (read_memory_string): Remove.
2831 * ada-valprint.c (ada_value_print_ptr): Update.
2832 * ada-lang.h (ada_tag_name): Change return type.
2833 * ada-lang.c (type_from_tag): Update.
2834 (ada_tag_name_from_tsd): Change return type. Use
2835 target_read_string.
2836 (ada_tag_name): Likewise.
2837 * gdbcore.h (read_memory_string): Don't declare.
2838
2839 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2840
2841 * symtab.c (rbreak_command): Ignore Windows drive colon.
2842
2843 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2844
2845 * NEWS: Mention removed GDBserver host support.
2846
2847 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2848
2849 * features/riscv/rebuild-csr-xml.sh: Updated.
2850
2851 2020-06-11 Tom Tromey <tom@tromey.com>
2852
2853 PR gdb/18318:
2854 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2855
2856 2020-06-09 Jonny Grant <jg@jguk.org>
2857 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2858
2859 * main.c (captured_main_1): Don't print new line after help.
2860 (print_gdb_help): add mailing list and IRC channel information
2861 to --help. Add new lines between items in the footer. Remove
2862 quotes around bug url.
2863
2864 2020-06-11 Keith Seitz <keiths@redhat.com>
2865
2866 PR gdb/21356
2867 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2868 Resolve typedefs for type length calculations.
2869
2870 2020-06-10 Tom de Vries <tdevries@suse.de>
2871
2872 PR ada/24713
2873 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2874 (write_psymbols): Enable .gdb_index for ada.
2875 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2876 ada.
2877
2878 2020-06-10 Tom de Vries <tdevries@suse.de>
2879
2880 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2881 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2882 namei" instead of "const char *name" argument.
2883 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2884 dw2_symtab_iter_init.
2885
2886 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2887
2888 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2889 to use type::field and field::type instead.
2890
2891 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2892
2893 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2894 to use field::type instead.
2895
2896 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2897
2898 * gdbtypes.h (struct field) <type, set_type>: New methods.
2899 Rename `type` field to...
2900 <m_type>: ... this. Change references throughout to use type or
2901 set_type methods.
2902 (FIELD_TYPE): Use field::type. Change call sites that modify
2903 the field's type to use field::set_type instead.
2904
2905 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2906
2907 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2908 to use type::index_type instead.
2909
2910 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2911
2912 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2913 methods.
2914 (TYPE_INDEX_TYPE): Use type::index_type.
2915 * gdbtypes.c (create_array_type_with_stride): Likewise.
2916
2917 2020-06-07 Tom Tromey <tom@tromey.com>
2918
2919 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2920 parameter.
2921 (generic_value_print): Update.
2922
2923 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2924
2925 Revert commit 982a38f60b0.
2926 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2927
2928 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2929
2930 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2931 avoid use after free.
2932
2933 2020-06-05 Tom de Vries <tdevries@suse.de>
2934
2935 * NEWS: Fix typos.
2936
2937 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2938
2939 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2940 the per_bfd object.
2941 (dwarf2_read_debug_names): Likewise.
2942 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2943 object when re-using a per_bfd object with an index.
2944
2945 2020-06-03 Tom de Vries <tdevries@suse.de>
2946
2947 PR symtab/26046
2948 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2949 children for C++.
2950 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2951 DW_TAG_subprogram.
2952
2953 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2954
2955 * ada-lang.c (ada_language_data): Delete skip_trampoline
2956 initializer.
2957 * c-lang.c (c_language_data): Likewise.
2958 (cplus_language_data): Likewise.
2959 (cplus_language::skip_trampoline): New member function.
2960 (asm_language_data): Delete skip_trampoline initializer.
2961 (minimal_language_data): Likewise.
2962 * d-lang.c (d_language_data): Likewise.
2963 * f-lang.c (f_language_data): Likewise.
2964 * go-lang.c (go_language_data): Likewise.
2965 * language.c (unk_lang_trampoline): Delete function.
2966 (skip_language_trampoline): Update.
2967 (unknown_language_data): Delete skip_trampoline initializer.
2968 (auto_language_data): Likewise.
2969 * language.h (language_data): Delete skip_trampoline field.
2970 (language_defn::skip_trampoline): New function.
2971 * m2-lang.c (m2_language_data): Delete skip_trampoline
2972 initializer.
2973 * objc-lang.c (objc_skip_trampoline): Delete function, move
2974 implementation to objc_language::skip_trampoline.
2975 (objc_language_data): Delete skip_trampoline initializer.
2976 (objc_language::skip_trampoline): New member function with
2977 implementation from objc_skip_trampoline.
2978 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2979 initializer.
2980 * p-lang.c (pascal_language_data): Likewise.
2981 * rust-lang.c (rust_language_data): Likewise.
2982
2983 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2984
2985 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2986 (ada_language::demangle): New member function.
2987 * c-lang.c (c_language_data): Delete la_demangle initializer.
2988 (cplus_language_data): Delete la_demangle initializer.
2989 (cplus_language::demangle): New member function.
2990 (asm_language_data): Delete la_demangle initializer.
2991 (minimal_language_data): Delete la_demangle initializer.
2992 * d-lang.c (d_language_data): Delete la_demangle initializer.
2993 (d_language::demangle): New member function.
2994 * f-lang.c (f_language_data): Delete la_demangle initializer.
2995 (f_language::demangle): New member function.
2996 * go-lang.c (go_language_data): Delete la_demangle initializer.
2997 (go_language::demangle): New member function.
2998 * language.c (language_demangle): Update.
2999 (unk_lang_demangle): Delete.
3000 (unknown_language_data): Delete la_demangle initializer.
3001 (unknown_language::demangle): New member function.
3002 (auto_language_data): Delete la_demangle initializer.
3003 (auto_language::demangle): New member function.
3004 * language.h (language_data): Delete la_demangle field.
3005 (language_defn::demangle): New function.
3006 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3007 * objc-lang.c (objc_language_data): Delete la_demangle
3008 initializer.
3009 (objc_language::demangle): New member function.
3010 * opencl-lang.c (opencl_language_data): Delete la_demangle
3011 initializer.
3012 * p-lang.c (pascal_language_data): Likewise.
3013 * rust-lang.c (rust_language_data): Likewise.
3014 (rust_language::demangle): New member function.
3015
3016 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3017
3018 * ada-lang.c (ada_language_data): Delete la_print_type
3019 initializer.
3020 (ada_language::print_type): New member function.
3021 * c-lang.c (c_language_data): Delete la_print_type initializer.
3022 (c_language::print_type): New member function.
3023 (cplus_language_data): Delete la_print_type initializer.
3024 (cplus_language::print_type): New member function.
3025 (asm_language_data): Delete la_print_type initializer.
3026 (asm_language::print_type): New member function.
3027 (minimal_language_data): Delete la_print_type initializer.
3028 (minimal_language::print_type): New member function.
3029 * d-lang.c (d_language_data): Delete la_print_type initializer.
3030 (d_language::print_type): New member function.
3031 * f-lang.c (f_language_data): Delete la_print_type initializer.
3032 (f_language::print_type): New member function.
3033 * go-lang.c (go_language_data): Delete la_print_type initializer.
3034 (go_language::print_type): New member function.
3035 * language.c (unk_lang_print_type): Delete.
3036 (unknown_language_data): Delete la_print_type initializer.
3037 (unknown_language::print_type): New member function.
3038 (auto_language_data): Delete la_print_type initializer.
3039 (auto_language::print_type): New member function.
3040 * language.h (language_data): Delete la_print_type field.
3041 (language_defn::print_type): New function.
3042 (LA_PRINT_TYPE): Update.
3043 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3044 (m2_language::print_type): New member function.
3045 * objc-lang.c (objc_language_data): Delete la_print_type
3046 initializer.
3047 (objc_language::print_type): New member function.
3048 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3049 to opencl_language::print_type.
3050 (opencl_language_data): Delete la_print_type initializer.
3051 (opencl_language::print_type): New member function, implementation
3052 from opencl_print_type.
3053 * p-lang.c (pascal_language_data): Delete la_print_type
3054 initializer.
3055 (pascal_language::print_type): New member function.
3056 * rust-lang.c (rust_print_type): Delete, implementation moved to
3057 rust_language::print_type.
3058 (rust_language_data): Delete la_print_type initializer.
3059 (rust_language::print_type): New member function, implementation
3060 from rust_print_type.
3061
3062 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3063
3064 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3065 implementation moves to...
3066 (ada_language::sniff_from_mangled_name): ...here. Update return
3067 type.
3068 (ada_language_data): Delete la_sniff_from_mangled_name
3069 initializer.
3070 * c-lang.c (c_language_data): Likewise.
3071 (cplus_language_data): Likewise.
3072 (cplus_language::sniff_from_mangled_name): New member function,
3073 implementation taken from gdb_sniff_from_mangled_name.
3074 (asm_language_data): Delete la_sniff_from_mangled_name
3075 initializer.
3076 (minimal_language_data): Likewise.
3077 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3078 implementation moves to cplus_language::sniff_from_mangled_name.
3079 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3080 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3081 moves to...
3082 (d_language::sniff_from_mangled_name): ...here.
3083 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3084 * f-lang.c (f_language_data): Likewise.
3085 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3086 moves to...
3087 (go_language::sniff_from_mangled_name): ...here.
3088 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3089 * language.c (language_sniff_from_mangled_name): Delete.
3090 (unknown_language_data): Delete la_sniff_from_mangled_name
3091 initializer.
3092 (auto_language_data): Likewise.
3093 * language.h (language_data): Delete la_sniff_from_mangled_name
3094 field.
3095 (language_defn::sniff_from_mangled_name): New function.
3096 (language_sniff_from_mangled_name): Delete declaration.
3097 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3098 field.
3099 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3100 implementation moves to...
3101 (objc_language::sniff_from_mangled_name): ...here.
3102 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3103 * opencl-lang.c (opencl_language_data): Likewise.
3104 * p-lang.c (pascal_language_data): Likewise.
3105 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3106 implementation moves to...
3107 (rust_language::sniff_from_mangled_name): ...here.
3108 (rust_language_data): Delete la_sniff_from_mangled_name
3109 initializer.
3110 * symtab.c (symbol_find_demangled_name): Call
3111 sniff_from_mangled_name member function.
3112
3113 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3114
3115 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3116 initializer.
3117 * c-lang.c (c_language_data): Likewise.
3118 (cplus_language_data): Likewise.
3119 (cplus_language::search_name_hash): New member function.
3120 (asm_language_data): Delete la_search_name_hash initializer.
3121 (minimal_language_data): Likewise.
3122 * d-lang.c (d_language_data): Likewise.
3123 * dictionary.c (default_search_name_hash): Rename to...
3124 (language_defn::search_name_hash): ...this.
3125 * f-lang.c (f_language_data): Likewise.
3126 (f_language::search_name_hash): New member function.
3127 * go-lang.c (go_language_data): Delete la_search_name_hash
3128 initializer.
3129 * language.c (unknown_language_data): Likewise.
3130 (auto_language_data): Likewise.
3131 * language.h (struct language_data): Delete la_search_name_hash
3132 field.
3133 (language_defn::search_name_hash): Declare new member function.
3134 (default_search_name_hash): Delete declaration.
3135 * m2-lang.c (m2_language_data): Delete la_search_name_hash
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 * symtab.c (search_name_hash): Update call.
3142
3143 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3144
3145 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3146 initializer.
3147 * c-lang.c (class compile_instance): Declare.
3148 (c_language_data): Delete la_get_compile_instance initializer.
3149 (c_language::get_compile_instance): New member function.
3150 (cplus_language_data): Delete la_get_compile_instance initializer.
3151 (cplus_language::get_compile_instance): New member function.
3152 (asm_language_data): Delete la_get_compile_instance initializer.
3153 (minimal_language_data): Likewise.
3154 * c-lang.h (c_get_compile_context): Update comment.
3155 (cplus_get_compile_context): Update comment.
3156 * compile/compile.c (compile_to_object): Update calls, don't rely
3157 on function pointer being NULL.
3158 * d-lang.c (d_language_data): Delete la_get_compile_instance
3159 initializer.
3160 * f-lang.c (f_language_data): Likewise.
3161 * go-lang.c (go_language_data): Likewise.
3162 * language.c (unknown_language_data): Likewise.
3163 (auto_language_data): Likewise.
3164 * language.h (language_data): Delete la_get_compile_instance field.
3165 (language_defn::get_compile_instance): New member function.
3166 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3167 initializer.
3168 * objc-lang.c (objc_language_data): Likewise.
3169 * opencl-lang.c (opencl_language_data): Likewise.
3170 * p-lang.c (pascal_language_data): Likewise.
3171 * rust-lang.c (rust_language_data): Likewise.
3172
3173 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3174
3175 * ada-lang.c (ada_add_all_symbols): Update comment.
3176 (ada_iterate_over_symbols): Delete, move implementation to...
3177 (ada_language::iterate_over_symbols): ...here, a new member
3178 function, rewrite to use range based for loop.
3179 (ada_language_data): Delete la_iterate_over_symbols initializer.
3180 * c-lang.c (c_language_data): Likewise.
3181 (cplus_language_data): Likewise.
3182 (asm_language_data): Likewise.
3183 (minimal_language_data): Likewise.
3184 * d-lang.c (d_language_data): Likewise.
3185 * f-lang.c (f_language_data): Likewise.
3186 * go-lang.c (go_language_data): Likewise.
3187 * language.c (unknown_language_data): Likewise.
3188 (auto_language_data): Likewise.
3189 * language.h (language_data): Delete la_iterate_over_symbols field.
3190 (language_defn::iterate_over_symbols): New member function.
3191 (LA_ITERATE_OVER_SYMBOLS): Update.
3192 * linespec.c (iterate_over_all_matching_symtabs): Update.
3193 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3194 initializer.
3195 * objc-lang.c (objc_language_data): Likewise.
3196 * opencl-lang.c (opencl_language_data): Likewise.
3197 * p-lang.c (pascal_language_data): Likewise.
3198 * rust-lang.c (rust_language_data): Likewise.
3199
3200 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3201
3202 * ada-lang.c (ada_language_data): Delete
3203 la_lookup_transparent_type initializer.
3204 * c-lang.c (c_language_data): Likewise.
3205 (cplus_language_data): Likewise.
3206 (cplus_language::lookup_transparent_type): New member function.
3207 (asm_language_data): Delete la_lookup_transparent_type
3208 initializer.
3209 (minimal_language_data): Likewise.
3210 * d-lang.c (d_language_data): Likewise.
3211 * f-lang.c (f_language_data): Likewise.
3212 * go-lang.c (go_language_data): Likewise.
3213 * language.c (unknown_language_data): Likewise.
3214 (auto_language_data): Likewise.
3215 * language.h (struct language_data): Delete
3216 la_lookup_transparent_type field.
3217 (language_defn::lookup_transparent_type): New member function.
3218 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3219 initializer.
3220 * objc-lang.c (objc_language_data): Likewise.
3221 * opencl-lang.c (opencl_language_data): Likewise.
3222 * p-lang.c (pascal_language_data): Likewise.
3223 * rust-lang.c (rust_language_data): Likewise.
3224 * symtab.c (symbol_matches_domain): Update call.
3225
3226 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3227
3228 * ada-lang.c (ada_language_arch_info): Delete function, move
3229 implementation to...
3230 (ada_language::language_arch_info): ...here, a new member
3231 function.
3232 (ada_language_data): Delete la_language_arch_info.
3233 * c-lang.c (c_language_data): Likewise.
3234 (c_language::language_arch_info): New member function.
3235 (cplus_language_arch_info): Delete function, move
3236 implementation to...
3237 (cplus_language::language_arch_info): ...here, a new member
3238 function.
3239 (cplus_language_data): Delete la_language_arch_info.
3240 (asm_language_data): Likewise.
3241 (asm_language::language_arch_info): New member function.
3242 (minimal_language_data): Delete la_language_arch_info.
3243 (minimal_language::language_arch_info): New member function.
3244 * d-lang.c (d_language_arch_info): Delete function, move
3245 implementation to...
3246 (d_language::language_arch_info): ...here, a new member
3247 function.
3248 (d_language_data): Delete la_language_arch_info.
3249 * f-lang.c (f_language_arch_info): Delete function, move
3250 implementation to...
3251 (f_language::language_arch_info): ...here, a new member
3252 function.
3253 (f_language_data): Delete la_language_arch_info.
3254 * go-lang.c (go_language_arch_info): Delete function, move
3255 implementation to...
3256 (go_language::language_arch_info): ...here, a new member
3257 function.
3258 (go_language_data): Delete la_language_arch_info.
3259 * language.c (unknown_language_data): Likewise.
3260 (unknown_language::language_arch_info): New member function.
3261 (auto_language_data): Delete la_language_arch_info.
3262 (auto_language::language_arch_info): New member function.
3263 (language_gdbarch_post_init): Update call to
3264 la_language_arch_info.
3265 * language.h (language_data): Delete la_language_arch_info
3266 function pointer.
3267 (language_defn::language_arch_info): New function.
3268 * m2-lang.c (m2_language_arch_info): Delete function, move
3269 implementation to...
3270 (m2_language::language_arch_info): ...here, a new member
3271 function.
3272 (m2_language_data): Delete la_language_arch_info.
3273 * objc-lang.c (objc_language_arch_info): Delete function, move
3274 implementation to...
3275 (objc_language::language_arch_info): ...here, a new member
3276 function.
3277 (objc_language_data): Delete la_language_arch_info.
3278 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3279 implementation to...
3280 (opencl_language::language_arch_info): ...here, a new member
3281 function.
3282 (opencl_language_data): Delete la_language_arch_info.
3283 * p-lang.c (pascal_language_arch_info): Delete function, move
3284 implementation to...
3285 (pascal_language::language_arch_info): ...here, a new member
3286 function.
3287 (pascal_language_data): Delete la_language_arch_info.
3288 * rust-lang.c (rust_language_arch_info): Delete function, move
3289 implementation to...
3290 (rust_language::language_arch_info): ...here, a new member
3291 function.
3292 (rust_language_data): Delete la_language_arch_info.
3293
3294 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3295
3296 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3297 initializer.
3298 * c-lang.c (c_language_data): Likewise.
3299 (cplus_language_data): Likewise.
3300 (cplus_language::pass_by_reference_info): New method.
3301 (asm_language_data): Delete la_pass_by_reference initializer.
3302 (minimal_language_data): Likewise.
3303 * cp-abi.c (cp_pass_by_reference): Remove use of
3304 default_pass_by_reference.
3305 * d-lang.c (d_language_data): Likewise.
3306 * f-lang.c (f_language_data): Likewise.
3307 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3308 default_pass_by_reference.
3309 * go-lang.c (go_language_data): Likewise.
3310 * language.c (language_pass_by_reference): Update.
3311 (default_pass_by_reference): Delete.
3312 (unknown_language_data): Delete la_pass_by_reference
3313 initializer.
3314 (auto_language_data): Likewise.
3315 * language.h (struct language_data): Delete la_pass_by_reference
3316 field.
3317 (language_defn::pass_by_reference_info): New member function.
3318 (default_pass_by_reference): Delete declaration.
3319 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3320 initializer.
3321 * objc-lang.c (objc_language_data): Likewise.
3322 * opencl-lang.c (opencl_language_data): Likewise.
3323 * p-lang.c (pascal_language_data): Likewise.
3324 * rust-lang.c (rust_language_data): Likewise.
3325
3326 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3327
3328 * ada-lang.c (ada_read_var_value): Delete function, move
3329 implementation to...
3330 (ada_language::read_var_value): ...here.
3331 (ada_language_data): Delete la_read_var_value 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 * findvar.c (default_read_var_value): Rename to...
3338 (language_defn::read_var_value): ...this.
3339 * findvar.c (read_var_value): Update header comment, and change to
3340 call member function instead of function pointer.
3341 * go-lang.c (go_language_data): Likewise.
3342 * language.c (unknown_language_data): Delete la_read_var_value
3343 initializer.
3344 (auto_language_data): Likewise.
3345 * language.h (struct language_data): Delete la_read_var_value
3346 field.
3347 (language_defn::read_var_value): New member function.
3348 (default_read_var_value): Delete declaration.
3349 * m2-lang.c (m2_language_data): Delete la_read_var_value
3350 initializer.
3351 * objc-lang.c (objc_language_data): Likewise.
3352 * opencl-lang.c (opencl_language_data): Likewise.
3353 * p-lang.c (pascal_language_data): Likewise.
3354 * rust-lang.c (rust_language_data): Likewise.
3355 * value.h (default_read_var_value): Delete declaration.
3356
3357 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3358
3359 * ada-lang.c (ada_print_array_index): Delete function, move
3360 implementation to...
3361 (ada_language::print_array_index): ...here.
3362 (ada_language_data): Delete la_print_array_index initializer.
3363 * c-lang.c (c_language_data): Likewise.
3364 (cplus_language_data): Likewise.
3365 (minimal_language_data): Likewise.
3366 * d-lang.c (d_language_data): Likewise.
3367 * f-lang.c (f_language_data): Likewise.
3368 * go-lang.c (go_language_data): Likewise.
3369 * language.c (default_print_array_index): Delete function, move
3370 implementation to...
3371 (language_defn::print_array_index): ...here.
3372 (unknown_language_data): Delete la_print_array_index initializer.
3373 (auto_language_data): Likewise.
3374 * language.h (struct language_data): Delete la_print_array_index
3375 field.
3376 (language_defn::print_array_index): New member function.
3377 (LA_PRINT_ARRAY_INDEX): Update.
3378 (default_print_array_index): Delete declaration.
3379 * m2-lang.c (m2_language_data): Delete la_print_array_index
3380 initializer.
3381 * objc-lang.c (objc_language_data): Likewise.
3382 * opencl-lang.c (opencl_language_data): Likewise.
3383 * p-lang.c (pascal_language_data): Likewise.
3384 * rust-lang.c (rust_language_data): Likewise.
3385
3386 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3387
3388 * gdb/ada-lang.c (ada_language_defn): Convert to...
3389 (ada_language_data): ...this.
3390 (class ada_language): New class.
3391 (ada_language_defn): New static global.
3392 * gdb/c-lang.c (c_language_defn): Convert to...
3393 (c_language_data): ...this.
3394 (class c_language): New class.
3395 (c_language_defn): New static global.
3396 (cplus_language_defn): Convert to...
3397 (cplus_language_data): ...this.
3398 (class cplus_language): New class.
3399 (cplus_language_defn): New static global.
3400 (asm_language_defn): Convert to...
3401 (asm_language_data): ...this.
3402 (class asm_language): New class.
3403 (asm_language_defn): New static global.
3404 (minimal_language_defn): Convert to...
3405 (minimal_language_data): ...this.
3406 (class minimal_language): New class.
3407 (minimal_language_defn): New static global.
3408 * gdb/d-lang.c (d_language_defn): Convert to...
3409 (d_language_data): ...this.
3410 (class d_language): New class.
3411 (d_language_defn): New static global.
3412 * gdb/f-lang.c (f_language_defn): Convert to...
3413 (f_language_data): ...this.
3414 (class f_language): New class.
3415 (f_language_defn): New static global.
3416 * gdb/go-lang.c (go_language_defn): Convert to...
3417 (go_language_data): ...this.
3418 (class go_language): New class.
3419 (go_language_defn): New static global.
3420 * gdb/language.c (unknown_language_defn): Remove declaration.
3421 (current_language): Initialize to nullptr, real initialization is
3422 moved to _initialize_language.
3423 (languages): Delete global.
3424 (language_defn::languages): Define.
3425 (set_language_command): Use language_defn::languages.
3426 (set_language): Likewise.
3427 (range_error): Likewise.
3428 (language_enum): Likewise.
3429 (language_def): Likewise.
3430 (add_set_language_command): Use language_def::languages for the
3431 language list, and language_def to lookup language pointers.
3432 (skip_language_trampoline): Use language_defn::languages.
3433 (unknown_language_defn): Convert to...
3434 (unknown_language_data): ...this.
3435 (class unknown_language): New class.
3436 (unknown_language_defn): New static global.
3437 (auto_language_defn): Convert to...
3438 (auto_language_data): ...this.
3439 (class auto_language): New class.
3440 (auto_language_defn): New static global.
3441 (language_gdbarch_post_init): Use language_defn::languages.
3442 (_initialize_language): Initialize current_language.
3443 * gdb/language.h (struct language_defn): Rename to...
3444 (struct language_data): ...this.
3445 (struct language_defn): New.
3446 (auto_language_defn): Delete.
3447 (unknown_language_defn): Delete.
3448 (minimal_language_defn): Delete.
3449 (ada_language_defn): Delete.
3450 (asm_language_defn): Delete.
3451 (c_language_defn): Delete.
3452 (cplus_language_defn): Delete.
3453 (d_language_defn): Delete.
3454 (f_language_defn): Delete.
3455 (go_language_defn): Delete.
3456 (m2_language_defn): Delete.
3457 (objc_language_defn): Delete.
3458 (opencl_language_defn): Delete.
3459 (pascal_language_defn): Delete.
3460 (rust_language_defn): Delete.
3461 * gdb/m2-lang.c (m2_language_defn): Convert to...
3462 (m2_language_data): ...this.
3463 (class m2_language): New class.
3464 (m2_language_defn): New static global.
3465 * gdb/objc-lang.c (objc_language_defn): Convert to...
3466 (objc_language_data): ...this.
3467 (class objc_language): New class.
3468 (objc_language_defn): New static global.
3469 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3470 (opencl_language_data): ...this.
3471 (class opencl_language): New class.
3472 (opencl_language_defn): New static global.
3473 * gdb/p-lang.c (pascal_language_defn): Convert to...
3474 (pascal_language_data): ...this.
3475 (class pascal_language): New class.
3476 (pascal_language_defn): New static global.
3477 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3478 language pointer, update comment format.
3479 * gdb/rust-lang.c (rust_language_defn): Convert to...
3480 (rust_language_data): ...this.
3481 (class rust_language): New class.
3482 (rust_language_defn): New static global.
3483
3484 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3485
3486 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3487 member variable.
3488 <m_stmt_at_address>: New member variable.
3489 (lnp_state_machine::record_line): Don't record some lines, update
3490 tracking of is_stmt at the same address.
3491 (lnp_state_machine::lnp_state_machine): Initialise new member
3492 variables.
3493
3494 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3495
3496 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3497 "-include gnu-nat-mig.h".
3498 * gnu-nat-mig.h: New file.
3499 * gnu-nat.c: Include "gnu-nat-mig.h".
3500 (exc_server, msg_reply_server, notify_server,
3501 process_reply_server): Remove declarations.
3502
3503 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3504
3505 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3506 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3507 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3508 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3509 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3510 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3511 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3512 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3513 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3514 to gnu_nat_target class.
3515 * gnu-nat.c: Likewise.
3516 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3517 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3518 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3519 object.
3520 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3521 instead of `gnu_target'.
3522
3523 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3524
3525 * i386-gnu-tdep.c: Include "gdbcore.h"
3526 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3527 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3528 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3529 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3530 i386_gnu_sigcontext_addr): New functions
3531 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3532 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3533 tdep.
3534
3535 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3536
3537 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3538 before fork_inferior call. Avoid calling it if target_is_pushed returns
3539 true.
3540
3541 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3542
3543 * gnu-nat.h (gnu_target): New variable declaration.
3544 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3545 gnu_target.
3546 * gnu-nat.c (gnu_target): New variable.
3547 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3548 add_thread_silent, and add_thread calls.
3549 (gnu_nat_target::create_inferior): Pass gnu_target to
3550 add_thread_silent, thread_change_ptid call.
3551 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3552 call.
3553
3554 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3555
3556 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3557 (gnu_nat_target::find_memory_regions): Remove unused
3558 `old_address' variable.
3559
3560 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3561
3562 * gnu-nat.c: Include "gdbarch.h".
3563
3564 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3565
3566 * reply_mig_hack.awk (Error return): Cast function through
3567 void *, to bypass compiler function call check.
3568
3569 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3570
3571 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3572 $(srcdir)/reply_mig_hack.awk.
3573
3574 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3575
3576 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3577
3578 2020-05-30 Jonny Grant <jg@jguk.org>
3579
3580 * configure.ac (ACX_BUGURL): change bug URL to https.
3581
3582 2020-05-30 Pedro Alves <palves@redhat.com>
3583
3584 * cp-support.c (replace_typedefs_template): New.
3585 (replace_typedefs_qualified_name): Handle
3586 DEMANGLE_COMPONENT_TEMPLATE.
3587
3588 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3589
3590 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3591 dwarf2/index-cache.h, dwarf2/index-write.c,
3592 dwarf2/index-write.h, dwarf2/line-header.c,
3593 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3594 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3595 variables and fields from `dwarf2_per_objfile` to just
3596 `per_objfile` throughout.
3597
3598 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3599
3600 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3601 <push_dwarf_reg_entry_value>: Add comment.
3602
3603 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3604 Keith Seitz <keiths@redhat.com>
3605
3606 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3607 instead of PyEval_ReleaseLock.
3608 (class gdbpy_gil): Move to earlier in file.
3609 (finalize_python): Set gdb_python_initialized.
3610 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3611 when not initialized.
3612
3613 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3614
3615 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3616 <push_dwarf_reg_entry_value>: Remove assert. Override
3617 per_objfile with caller_per_objfile.
3618
3619 2020-05-28 Tom de Vries <tdevries@suse.de>
3620
3621 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3622 PR gold/15646 workaround to symbol kind "type".
3623
3624 2020-05-27 Tom Tromey <tromey@adacore.com>
3625
3626 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3627
3628 2020-05-27 Tom Tromey <tromey@adacore.com>
3629
3630 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3631 Use htab_find_with_hash.
3632 <add_abbrev>: Remove "abbrev_number" parameter.
3633 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3634 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3635 (hash_abbrev): Add comment.
3636 (abbrev_table::lookup_abbrev): Move to header file.
3637 (abbrev_table::read): Update.
3638
3639 2020-05-27 Tom Tromey <tromey@adacore.com>
3640
3641 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3642 method.
3643 <canonical_name>: New member.
3644 <raw_name>: Rename from "name".
3645 (partial_die_info): Initialize canonical_name.
3646 (scan_partial_symbols): Check raw_name.
3647 (partial_die_parent_scope, partial_die_full_name)
3648 (add_partial_symbol, add_partial_subprogram)
3649 (add_partial_enumeration, load_partial_dies): Use "name" method.
3650 (partial_die_info::name): New method.
3651 (partial_die_info::read, guess_partial_die_structure_name)
3652 (partial_die_info::fixup): Update.
3653
3654 2020-05-27 Tom Tromey <tromey@adacore.com>
3655
3656 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3657 <get_ref_die_offset>: Inline.
3658 <get_ref_die_offset_complaint>: New method.
3659 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3660 (attribute::get_ref_die_offset_complaint): Rename from
3661 get_ref_die_offset. Just issue complaint.
3662
3663 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3664
3665 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3666
3667 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3668
3669 * exec.c (exec_file_attach): Use errno value of first openp failure.
3670
3671 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3672
3673 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3674 Don't close thread handle.
3675
3676 2020-05-27 Tom Tromey <tom@tromey.com>
3677 Simon Marchi <simon.marchi@efficios.com>
3678
3679 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3680 shared_ptr.
3681 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3682 member.
3683 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3684 dwarf2_per_bfd_objfile_data_key>: New globals.
3685 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3686 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3687 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3688 shared.
3689 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3690 short-circuit when sharing.
3691 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3692 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3693
3694 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3695
3696 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3697 to...
3698 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3699 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3700
3701 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3702
3703 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3704 build_name_components, find_name_components_bounds>:
3705 Add per_objfile parameter.
3706 (struct mapped_index) <symbol_name_at>: Likewise.
3707 (struct mapped_debug_names): Remove constructor.
3708 <dwarf2_per_objfile>: Remove field.
3709 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3710 (mapped_index_base::find_name_components_bounds,
3711 mapped_index_base::build_name_components,
3712 dw2_expand_symtabs_matching_symbol): Likewise.
3713 (class mock_mapped_index) <symbol_name_at>: Likewise.
3714 (check_match): Likewise.
3715 (check_find_bounds_finds): Likewise.
3716 (test_mapped_index_find_name_component_bounds): Update.
3717 (CHECK_MATCH): Update.
3718 (dw2_expand_symtabs_matching): Update.
3719 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3720 per_objfile parameter.
3721 <find_vec_in_debug_names>: Likewise.
3722 <m_per_objfile>: New field.
3723 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3724 parameter.
3725 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3726 (dw2_debug_names_iterator::next): Update.
3727 (dw2_debug_names_lookup_symbol): Update.
3728 (dw2_debug_names_expand_symtabs_for_function): Update.
3729 (dw2_debug_names_map_matching_symbols): Update.
3730 (dw2_debug_names_expand_symtabs_matching): Update.
3731 (dwarf2_read_debug_names): Update.
3732
3733 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3734
3735 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3736 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3737 move to dwarf2_per_objfile.
3738 <read_in_chain>: Remove.
3739 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3740 remove_all_cus, age_comp_units>: New methods.
3741 <m_dwarf2_cus>: New member.
3742 (struct dwarf2_per_cu_data) <cu>: Remove.
3743 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3744 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3745 moved to methods of dwarf2_per_objfile.
3746 (dwarf2_clear_marks): Remove.
3747 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3748 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3749 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3750 (dwarf2_per_objfile::remove_all_cus): New.
3751 (class free_cached_comp_units) <~free_cached_comp_units>:
3752 Update.
3753 (load_cu): Update.
3754 (dw2_do_instantiate_symtab): Adjust.
3755 (fill_in_sig_entry_from_dwo_entry): Adjust.
3756 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3757 (cutu_reader::cutu_reader): Likewise.
3758 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3759 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3760 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3761 and dwarf2_per_objfile::age_comp_units.
3762 (load_partial_comp_unit): Update.
3763 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3764 (process_queue): Likewise.
3765 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3766 backlink.
3767 (dwarf2_read_addr_index): Likewise.
3768 (follow_die_offset): Likewise.
3769 (dwarf2_fetch_die_loc_sect_off): Likewise.
3770 (dwarf2_fetch_constant_bytes): Likewise.
3771 (dwarf2_fetch_die_type_sect_off): Likewise.
3772 (follow_die_sig_1): Likewise.
3773 (load_full_type_unit): Likewise.
3774 (read_signatured_type): Likewise.
3775 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3776 (dwarf2_cu::~dwarf2_cu): Remove.
3777 (dwarf2_per_objfile::get_cu): New.
3778 (dwarf2_per_objfile::set_cu): New.
3779 (age_cached_comp_units): Rename to...
3780 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3781 to std::unordered_map.
3782 (free_one_cached_comp_unit): Rename to...
3783 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3784 to std::unordered_map.
3785 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3786 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3787 a dwarf2_per_objfile in data.
3788 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3789 (dwarf2_clear_marks): Remove.
3790
3791 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3792
3793 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3794 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3795 (init_tu_and_read_dwo_dies): Likewise.
3796 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3797 (cutu_reader::cutu_reader): Likewise.
3798 (load_partial_comp_unit): Likewise.
3799 (process_psymtab_comp_unit): Update.
3800 (build_type_psymtabs_1): Update.
3801 (process_skeletonless_type_unit): Update.
3802 (load_full_comp_unit): Update.
3803 (find_partial_die): Update.
3804 (dwarf2_read_addr_index): Update.
3805 (read_signatured_type): Update.
3806
3807 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3808
3809 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3810 m_header_read_in>: New fields.
3811 <get_header>: New method.
3812 * dwarf2/read.c (per_cu_header_read_in): Remove.
3813 (dwarf2_per_cu_data::get_header): New.
3814 (dwarf2_per_cu_data::addr_size): Update.
3815 (dwarf2_per_cu_data::offset_size): Update.
3816 (dwarf2_per_cu_data::ref_addr_size): Update.
3817
3818 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3819
3820 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3821 (dw2_do_instantiate_symtab): Update.
3822 (queue_and_load_all_dwo_tus): Change parameter from
3823 dwarf2_per_cu_data to dwarf2_cu.
3824 (dwarf2_fetch_die_loc_sect_off): Update.
3825 (dwarf2_fetch_constant_bytes): Update.
3826 (dwarf2_fetch_die_type_sect_off): Update.
3827
3828 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3829
3830 * dwarf2/read.c (process_full_comp_unit,
3831 process_full_type_unit): Remove per_cu, per_objfile paramters.
3832 Add dwarf2_cu parameter.
3833 (process_queue): Update.
3834
3835 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3836
3837 * dwarf2/read.c (create_cu_from_index_list): Replace
3838 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3839 (create_cus_from_index_list): Likewise.
3840 (create_cus_from_index): Likewise.
3841 (create_signatured_type_table_from_index): Likewise.
3842 (create_cus_from_debug_names_list): Likewise.
3843 (create_cus_from_debug_names): Likewise.
3844 (dwarf2_read_gdb_index): Update.
3845 (dwarf2_read_debug_names): Update.
3846
3847 2020-05-27 Tom Tromey <tom@tromey.com>
3848 Simon Marchi <simon.marchi@efficios.com>
3849
3850 * dwarf2/read.h (struct dwarf2_per_objfile)
3851 <get_type_for_signatured_type, set_type_for_signatured_type>:
3852 New methods.
3853 <m_type_map>: New member.
3854 (struct signatured_type) <type>: Remove.
3855 * dwarf2/read.c
3856 (dwarf2_per_objfile::get_type_for_signatured_type,
3857 dwarf2_per_objfile::set_type_for_signatured_type): New.
3858 (get_signatured_type): Use new methods.
3859
3860 2020-05-27 Tom Tromey <tom@tromey.com>
3861 Simon Marchi <simon.marchi@efficios.com>
3862
3863 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3864 (struct dwarf2_per_objfile) <type_units>: New member.
3865 <get_type_unit_group_unshareable>: New method.
3866 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3867 num_symtabs, symtabs>: Remove; move to
3868 type_unit_group_unshareable.
3869 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3870 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3871 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3872
3873 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3874
3875 * dwarf2/read.h (struct dwarf2_per_cu_data):
3876 <dwarf2_per_objfile>: Remove.
3877 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3878 dwarf2_per_objfile.
3879 (create_signatured_type_table_from_index): Likewise.
3880 (create_signatured_type_table_from_debug_names): Likewise.
3881 (create_debug_type_hash_table): Likewise.
3882 (fill_in_sig_entry_from_dwo_entry): Likewise.
3883 (create_type_unit_group): Likewise.
3884 (read_comp_units_from_section): Likewise.
3885 (create_cus_hash_table): Likewise.
3886
3887 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3888
3889 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3890 dwarf2_per_cu_data::dwarf2_per_objfile.
3891 (compute_compunit_symtab_includes): Likewise.
3892 (dwarf2_cu::start_symtab): Likewise.
3893
3894 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3895
3896 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3897 parameter.
3898 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3899 (read_namespace_alias): Update.
3900 (lookup_die_type): Update.
3901 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3902 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3903 Update.
3904 (disassemble_dwarf_expression): Update.
3905
3906 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3907
3908 * dwarf2/read.h (struct dwarf2_queue_item): Add
3909 dwarf2_per_objfile parameter, assign new parameter.
3910 <per_objfile>: New field.
3911 * dwarf2/read.c (free_one_cached_comp_unit): Add
3912 dwarf2_per_objfile parameter.
3913 (queue_comp_unit): Likewise.
3914 (dw2_do_instantiate_symtab): Update.
3915 (process_psymtab_comp_unit): Update.
3916 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3917 (process_imported_unit_die): Update.
3918 (queue_and_load_dwo_tu): Update.
3919 (follow_die_offset): Update.
3920 (follow_die_sig_1): Update.
3921
3922 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3923
3924 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3925 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3926 (read_call_site_scope): Assign per_objfile.
3927 (dwarf2_per_cu_data::objfile): Remove.
3928 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3929 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3930 dwarf2_per_objfile parameter.
3931 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3932 dwarf2_per_objfile parameter.
3933 (dwarf_expr_reg_to_entry_parameter): Add output
3934 dwarf2_per_objfile parameter.
3935 (locexpr_get_frame_base): Update.
3936 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3937 <push_dwarf_reg_entry_value>: Update.
3938 <call_site_to_target_addr>: Update.
3939 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3940 parameter.
3941 (value_of_dwarf_reg_entry): Update.
3942 (rw_pieced_value): Update.
3943 (indirect_synthetic_pointer): Update.
3944 (dwarf2_evaluate_property): Update.
3945 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3946 parameter.
3947 (locexpr_read_variable): Update.
3948 (locexpr_get_symbol_read_needs): Update.
3949 (loclist_read_variable): Update.
3950
3951 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3952
3953 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3954 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3955 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3956 parameter.
3957 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3958 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3959 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3960 parameter.
3961 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3962 sect_variable_value): Add dwarf2_per_objfile parameter.
3963 (class dwarf_evaluate_loc_desc) <dwarf_call,
3964 dwarf_variable_value>: Update.
3965 (fetch_const_value_from_synthetic_pointer): Add
3966 dwarf2_per_objfile parameter.
3967 (fetch_const_value_from_synthetic_pointer): Update.
3968 (coerced_pieced_ref): Update.
3969 (class symbol_needs_eval_context) <dwarf_call,
3970 dwarf_variable_value>: Update.
3971 (dwarf2_compile_expr_to_ax): Update.
3972
3973 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3974
3975 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3976 parameter.
3977 (dwarf2_evaluate_loc_desc_full): Update.
3978
3979 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3980
3981 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3982 parameter.
3983 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3984 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3985 dwarf2_per_objfile parameter.
3986 (decode_debug_loc_dwo_addresses): Likewise.
3987 (dwarf2_find_location_expression): Update.
3988 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3989 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3990 parameter.
3991 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3992 parameter.
3993 (locexpr_describe_location_1): Likewise.
3994 (locexpr_describe_location): Update.
3995
3996 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3997
3998 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3999 Remove.
4000 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4001 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4002 (dwarf2_compile_property_to_c): Update.
4003 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4004 use text offset from objfile.
4005 (locexpr_tracepoint_var_ref): Update.
4006 (locexpr_generate_c_location): Update.
4007 (loclist_describe_location): Update.
4008 (loclist_tracepoint_var_ref): Update.
4009 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4010 dwarf2_per_objfile parameter.
4011 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4012 use text offset from objfile.
4013 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4014
4015 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4016
4017 * dwarf2/expr.h (struct dwarf_expr_context)
4018 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4019 <offset>: Remove.
4020 <per_objfile>: New member.
4021 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4022 dwarf2_per_objfile parameter. Don't set offset, set
4023 per_objfile.
4024 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4025 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4026 a dwarf2_per_objfile object instead of an offset.
4027 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4028 constructor.
4029 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4030 to dwarf2_expr_executor constructor. Don't set offset.
4031 (dwarf2_fetch_cfa_info): Update.
4032 (struct dwarf2_frame_cache) <text_offset>: Remove.
4033 <per_objfile>: New field.
4034 (dwarf2_frame_cache): Update.
4035 (dwarf2_frame_prev_register): Update.
4036 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4037 <dwarf_evaluate_loc_desc>: Add constructor.
4038 (dwarf2_evaluate_loc_desc_full): Update.
4039 (dwarf2_locexpr_baton_eval): Update.
4040 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4041 Add constructor.
4042 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4043
4044 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4045
4046 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4047 addr_sized_int_type>: Move to dwarf2_cu.
4048 <int_type>: Move to dwarf2_per_objfile.
4049 (struct dwarf2_per_objfile) <int_type>: Move here.
4050 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4051 addr_sized_int_type>: Move here.
4052 (read_func_scope): Update.
4053 (read_array_type): Update.
4054 (read_tag_string_type): Update.
4055 (attr_to_dynamic_prop): Update.
4056 (dwarf2_per_cu_data::int_type): Rename to...
4057 (dwarf2_per_objfile::int_type): ... this.
4058 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4059 (dwarf2_cu::addr_sized_int_type): ... this.
4060 (read_subrange_type): Update.
4061 (dwarf2_per_cu_data::addr_type): Rename to...
4062 (dwarf2_cu::addr_type): ... this.
4063 (set_die_type): Update.
4064
4065 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4066
4067 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4068 data through per_cu->cu.
4069
4070 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4071
4072 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4073 dwarf2_per_cu_data parameter fo dwarf2_cu.
4074 (lookup_dwo_type_unit): Likewise.
4075 (read_cutu_die_from_dwo): Likewise.
4076 (lookup_dwo_unit): Likewise.
4077 (open_and_init_dwo_file): Likewise.
4078 (lookup_dwo_cutu): Likewise.
4079 (lookup_dwo_comp_unit): Likewise.
4080 (lookup_dwo_type_unit): Likewise.
4081 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4082 (cutu_reader::cutu_reader): Update.
4083
4084 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4085
4086 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4087 parameter.
4088 (process_full_type_unit): Likewise.
4089 (process_queue): Update.
4090
4091 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4092
4093 * dwarf2/read.c (recursively_compute_inclusions): Add
4094 dwarf2_per_objfile parameter.
4095 (compute_compunit_symtab_includes): Likewise.
4096 (process_cu_includes): Update.
4097
4098 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4099
4100 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4101 parameter.
4102 (create_type_unit_group): Update.
4103 (process_psymtab_comp_unit_reader): Update.
4104 (build_type_psymtabs_reader): Update.
4105
4106 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4107
4108 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4109 object through m_this_cu->cu.
4110
4111 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4112
4113 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4114 the info parameter.
4115 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4116
4117 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4118
4119 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4120 per_objfile parameter.
4121 (load_full_type_unit): Add per_objfile parameter.
4122 (read_signatured_type): Likewise.
4123 (load_full_comp_unit): Likewise.
4124 (load_cu): Likewise.
4125 (dw2_do_instantiate_symtab): Likewise.
4126 (dw2_get_file_names): Likewise.
4127 (dw2_map_symtabs_matching_filename): Update.
4128 (dw_expand_symtabs_matching_file_matcher): Update.
4129 (dw2_map_symbol_filenames): Update.
4130 (process_psymtab_comp_unit): Add per_objfile parameter.
4131 (build_type_psymtabs_1): Update.
4132 (process_skeletonless_type_unit): Update.
4133 (dwarf2_build_psymtabs_hard): Update.
4134 (load_partial_comp_unit): Add per_objfile parameter.
4135 (scan_partial_symbols): Update.
4136 (load_full_comp_unit): Add per_objfile parameter.
4137 (process_imported_unit_die): Update.
4138 (create_cus_hash_table): Update.
4139 (find_partial_die): Update.
4140 (dwarf2_read_addr_index): Update.
4141 (follow_die_offset): Update.
4142 (dwarf2_fetch_die_loc_sect_off): Update.
4143 (dwarf2_fetch_constant_bytes): Update.
4144 (dwarf2_fetch_die_type_sect_off): Update.
4145 (follow_die_sig_1): Update.
4146 (load_full_type_unit): Add per_objfile parameter.
4147 (read_signatured_type): Likewise.
4148
4149 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4150
4151 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4152 of objfile_name.
4153
4154 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4155
4156 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4157 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4158 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4159 field.
4160 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4161 (create_cus_from_index): Update.
4162 (dwarf2_read_gdb_index): Update.
4163 (create_cus_from_debug_names): Update.
4164 (dwarf2_read_debug_names): Update.
4165 (get_abbrev_section_for_cu): Update.
4166 (create_all_comp_units): Update.
4167 (read_attribute_value): Update.
4168 (get_debug_line_section): Update.
4169 * dwarf2/index-cache.c (index_cache::store): Update.
4170 * dwarf2/index-write.c (save_gdb_index_command): Update.
4171 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4172
4173 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4174
4175 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4176 member.
4177 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4178 dwarf2_per_cu_data::per_bfd.
4179 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4180 (create_type_unit_group): Likewise.
4181 (queue_comp_unit): Remove reference to
4182 per_cu->dwarf2_per_objfile.
4183 (maybe_queue_comp_unit): Likewise.
4184 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4185 (create_cus_hash_table): Assign new field.
4186
4187 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4188
4189 * dwarf2/read.c: Replace
4190 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4191 dwarf2_cu->per_objfile throughout.
4192
4193 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4194
4195 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4196 parameter, don't use per_cu->dwarf2_per_objfile.
4197 (dw2_instantiate_symtab): Likewise.
4198 (dw2_find_last_source_symtab): Update.
4199 (dw2_map_expand_apply): Update.
4200 (dw2_lookup_symbol): Update.
4201 (dw2_expand_symtabs_for_function): Update.
4202 (dw2_expand_all_symtabs): Update.
4203 (dw2_expand_symtabs_with_fullname): Update.
4204 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4205 don't use per_cu->dwarf2_per_objfile.
4206 (dw2_expand_marked_cus): Update.
4207 (dw2_find_pc_sect_compunit_symtab): Update.
4208 (dw2_debug_names_lookup_symbol): Update.
4209 (dw2_debug_names_expand_symtabs_for_function): Update.
4210 (dw2_debug_names_map_matching_symbols): Update.
4211 (dwarf2_psymtab::expand_psymtab): Update.
4212
4213 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4214
4215 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4216 <per_objfile>: New member.
4217 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4218 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4219 call to dwarf2_cu.
4220 (cutu_reader::cutu_reader): Update.
4221 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4222
4223 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4224
4225 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4226 struct dwarf2_per_objfile.
4227 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4228 dwarf2_per_bfd.
4229 * dwarf2/read.c (set_die_type): Update.
4230 (get_die_type_at_offset): Update.
4231
4232 2020-05-27 Tom Tromey <tom@tromey.com>
4233 Simon Marchi <simon.marchi@efficios.com>
4234
4235 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4236 method.
4237 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4238 get_symtab, set_symtab>: New methods.
4239 <m_symtabs>: New field.
4240 (struct dwarf2_psymtab): Derive from partial_symtab.
4241 <readin_p, get_compunit_symtab>: Declare methods.
4242 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4243 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4244 New methods.
4245 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4246 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4247 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4248 (dw2_symtab_iter_next, dw2_print_stats)
4249 (dw2_expand_symtabs_with_fullname)
4250 (dw2_expand_symtabs_matching_one)
4251 (dw_expand_symtabs_matching_file_matcher)
4252 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4253 (dw2_debug_names_iterator::next)
4254 (dw2_debug_names_map_matching_symbols)
4255 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4256 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4257 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4258 New methods.
4259 (get_compunit_symtab, process_full_comp_unit)
4260 (process_full_type_unit): Update.
4261 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4262
4263 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4264
4265 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4266 then introduce a new dwarf2_per_objfile type.
4267 <read_line_string>: Move to the new dwarf2_per_objfile type.
4268 <objfile>: Likewise.
4269 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4270 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4271 dwarf2_per_objfile->per_bfd.
4272 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4273 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4274 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4275 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4276 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4277 (dwarf2_per_objfile::locate_sections): Rename to...
4278 (dwarf2_per_bfd::locate_sections): ... this.
4279 (dwarf2_per_objfile::get_cutu): Rename to...
4280 (dwarf2_per_bfd::get_cutu): ... this.
4281 (dwarf2_per_objfile::get_cu): Rename to...
4282 (dwarf2_per_bfd::get_cu): ... this.
4283 (dwarf2_per_objfile::get_tu): Rename to...
4284 (dwarf2_per_bfd::get_tu): ... this.
4285 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4286 (dwarf2_per_bfd::allocate_per_cu): ... this.
4287 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4288 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4289 (get_gdb_index_contents_ftype): Change parameter from
4290 dwarf2_per_objfile to dwarf2_per_bfd.
4291 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4292 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4293
4294 2020-05-27 Tom Tromey <tom@tromey.com>
4295 Simon Marchi <simon.marchi@efficios.com>
4296
4297 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4298 (allocate_piece_closure): Set "per_objfile" member.
4299 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4300 (locexpr_describe_location, loclist_describe_location): Use new
4301 member.
4302 * dwarf2/read.c (read_call_site_scope)
4303 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4304 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4305 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4306 handle_data_member_location): Set per_objfile member.
4307 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4308 member.
4309 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4310
4311 2020-05-27 Tom Tromey <tom@tromey.com>
4312
4313 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4314 allocate_signatured_type>: Declare new methods.
4315 <m_num_psymtabs>: New member.
4316 (struct dwarf2_per_cu_data) <index>: New member.
4317 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4318 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4319 (create_cu_from_index_list): Use allocate_per_cu.
4320 (create_signatured_type_table_from_index)
4321 (create_signatured_type_table_from_debug_names)
4322 (create_debug_type_hash_table, add_type_unit)
4323 (read_comp_units_from_section): Use allocate_signatured_type.
4324
4325 2020-05-27 Tom Tromey <tom@tromey.com>
4326
4327 * psymtab.c (partial_map_expand_apply)
4328 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4329 (psym_lookup_global_symbol_language)
4330 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4331 (psym_print_stats, psym_expand_symtabs_for_function)
4332 (psym_map_symbol_filenames, psym_map_matching_symbols)
4333 (psym_expand_symtabs_matching)
4334 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4335 (maintenance_check_psymtabs): Update.
4336 * psympriv.h (struct partial_symtab) <readin_p,
4337 get_compunit_symtab>: Add objfile parameter.
4338 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4339 Likewise.
4340 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4341 get_compunit_symtab>: Likewise.
4342 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4343
4344 2020-05-27 Tom Tromey <tom@tromey.com>
4345
4346 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4347 member.
4348 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4349 (create_cu_from_index_list)
4350 (create_signatured_type_table_from_index)
4351 (create_signatured_type_table_from_debug_names)
4352 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4353 (dwarf2_create_include_psymtab)
4354 (create_debug_type_hash_table, add_type_unit)
4355 (create_type_unit_group, read_comp_units_from_section)
4356 (dwarf2_compute_name, create_cus_hash_table)
4357 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4358 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4359 obstack.
4360 (dw2_get_real_path): Likewise. Change argument to
4361 dwarf2_per_objfile.
4362
4363 2020-05-27 Luis Machado <luis.machado@linaro.org>
4364
4365 PR tdep/26000
4366 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4367 for ldrd (immediate).
4368
4369 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4370
4371 * command.h: Add comment giving the name of class_tui.
4372 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4373 create the fake command for the help for class_tui.
4374
4375 2020-05-26 Tom Tromey <tromey@adacore.com>
4376
4377 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4378 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4379 (val_atr): New function.
4380 (value_val_atr): Use it.
4381 * ada-valprint.c (print_optional_low_bound): Change low bound
4382 handling for enums.
4383 (val_print_packed_array_elements): Don't call discrete_position.
4384 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4385 discrete_position for enum types.
4386 * language.c (default_print_array_index): Change type.
4387 * language.h (struct language_defn) <la_print_array_index>: Add
4388 index_type parameter, change type of index_value.
4389 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4390 (default_print_array_index): Update.
4391 * valprint.c (maybe_print_array_index): Don't call
4392 value_from_longest. Update.
4393 (value_print_array_elements): Don't call discrete_position.
4394
4395 2020-05-26 Tom Tromey <tromey@adacore.com>
4396
4397 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4398 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4399
4400 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4401
4402 PR gdb/13519
4403 * avr-tdep.c (avr_integer_to_address): Return data or code
4404 address accordingly to the second 'type' argument of the
4405 function.
4406
4407 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4408
4409 * infcmd.c, inferior.h: (construct_inferior_arguments):
4410 Moved function from here to gdbsupport/common-inferior.{h,cc}
4411
4412 2020-05-23 Tom Tromey <tom@tromey.com>
4413
4414 Revert commit eca1f90c:
4415 * NEWS: Remove entry for completion styling.
4416 * completer.c (_rl_completion_prefix_display_length): Move
4417 declaration later.
4418 (gdb_fnprint): Revert.
4419 (gdb_display_match_list_1): Likewise.
4420 * cli/cli-style.c (completion_prefix_style)
4421 (completion_difference_style, completion_suffix_style): Remove.
4422 (_initialize_cli_style): Revert.
4423 * cli/cli-style.h (completion_prefix_style)
4424 (completion_difference_style, completion_suffix_style): Don't
4425 declare.
4426
4427 2020-05-24 Pedro Alves <palves@redhat.com>
4428
4429 * symtab.c (completion_list_add_name): Return boolean indication
4430 of whether the symbol matched.
4431 (completion_list_add_symbol): Don't try to remove C++ aliases if
4432 the symbol didn't match in the first place.
4433 * symtab.h (completion_list_add_name): Return bool.
4434
4435 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4436
4437 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4438 type::field.
4439
4440 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4441
4442 GDB 9.2 released.
4443
4444 2020-05-23 Tom Tromey <tom@tromey.com>
4445
4446 * NEWS: Add entry for completion styling.
4447 * completer.c (_rl_completion_prefix_display_length): Move
4448 declaration earlier.
4449 (gdb_fnprint): Use completion_style.
4450 (gdb_display_match_list_1): Likewise.
4451 * cli/cli-style.c (completion_prefix_style)
4452 (completion_difference_style, completion_suffix_style): New
4453 globals.
4454 (_initialize_cli_style): Register new globals.
4455 * cli/cli-style.h (completion_prefix_style)
4456 (completion_difference_style, completion_suffix_style): Declare.
4457
4458 2020-05-23 Pedro Alves <palves@redhat.com>
4459
4460 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4461 (parse_escape): Use ISDIGIT instead of isdigit.
4462 (puts_debug): Use gdb_isprint instead of isprint.
4463 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4464 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4465 ISSPACE instead of isspace.
4466 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4467 instead of isspace.
4468 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4469 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4470 instead of isxdigit and ISDIGIT instead of isdigit.
4471
4472 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4473
4474 * gdbtypes.h (struct type) <field>: New method.
4475 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4476 or type::field.
4477
4478 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4479
4480 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4481 (TYPE_FIELDS): Use type::fields. Change all call sites that
4482 modify the propery to use type::set_fields instead.
4483
4484 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4485
4486 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4487 type::num_fields instead.
4488
4489 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4490
4491 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4492 methods.
4493 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4494 that modify the number of fields to use type::set_num_fields
4495 instead.
4496
4497 2020-05-22 Tom Tromey <tromey@adacore.com>
4498
4499 * compile/compile-object-load.h (munmap_list_free): Don't
4500 declare.
4501
4502 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4503
4504 * annotate.c (annotate_source_line): Update return type, add call
4505 to update current symtab and line.
4506 * annotate.h (annotate_source_line): Update return type, and
4507 extend header comment.
4508 * source.c (info_line_command): Check annotation_level before
4509 calling annotate_source_line.
4510 * stack.c (print_frame_info): If calling annotate_source_line
4511 returns true, then don't print any other source line information.
4512
4513 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4514
4515 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4516
4517 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4518
4519 * coffread.c (patch_type): Remove NULL check before xfree.
4520 * corefile.c (set_gnutarget): Likewise.
4521 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4522 * exec.c (build_section_table): Likewise.
4523 * remote.c (remote_target::pass_signals): Likewise.
4524 * utils.c (n_spaces): Likewise.
4525 * cli/cli-script.c (document_command): Likewise.
4526 * i386-windows-tdep.c (core_process_module_section): Likewise.
4527 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4528
4529 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4530
4531 * symfile.c (reread_symbols): Clear objfile's section_offsets
4532 vector and section indices, re-compute them by calling
4533 sym_offsets.
4534
4535 2020-05-20 Tom Tromey <tromey@adacore.com>
4536
4537 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4538 (desc_one_bound, desc_index_type): Compute field name.
4539
4540 2020-05-20 Tom de Vries <tdevries@suse.de>
4541
4542 PR symtab/25833
4543 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4544
4545 2020-05-20 Alan Modra <amodra@gmail.com>
4546
4547 PR 25993
4548 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4549 bfd_set_filename.
4550 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4551 passed to bfd_set_filename.
4552 * symfile-mem.c (add_vsyscall_page): Likewise for string
4553 passed to symbol_file_add_from_memory.
4554 (symbol_file_add_from_memory): Make name param a const char* and
4555 don't strdup.
4556
4557 2020-05-20 Alan Modra <amodra@gmail.com>
4558
4559 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4560 rather than accessing bfd->filename directly.
4561 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4562 and use bfd_section_name.
4563 * dwarf2/frame.c (decode_frame_entry): Likewise.
4564 * exec.c (exec_set_section_address): Likewise.
4565 * solib-aix.c (solib_aix_bfd_open): Likewise.
4566 * stap-probe.c (get_stap_base_address): Likewise.
4567 * symfile.c (reread_symbols): Likewise.
4568
4569 2020-05-19 Tom Tromey <tromey@adacore.com>
4570
4571 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4572
4573 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4574
4575 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4576
4577 2020-05-19 Pedro Alves <palves@redhat.com>
4578
4579 * NEWS (set exec-file-mismatch): Adjust entry.
4580 * exec.c: Include "build-id.h".
4581 (validate_exec_file): Try to match build IDs instead of filenames.
4582 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4583 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4584 and pass down 'warn_if_slow'.
4585 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4586 gdb_bfd_open_closure to pass it down.
4587 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4588
4589 2020-05-19 Pedro Alves <palves@redhat.com>
4590
4591 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4592 * target.c (target_fileio_open_1): Rename to target_fileio_open
4593 and make extern. Use bool.
4594 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4595 (target_fileio_read_alloc_1): Adjust.
4596 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4597 (target_fileio_open_warn_if_slow): Delete declaration.
4598
4599 2020-05-19 Pedro Alves <palves@redhat.com>
4600
4601 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4602 Adjust all callers.
4603
4604 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4605
4606 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4607 whether disp is negative.
4608
4609 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4610
4611 * symfile.h (struct symfile_segment_data)
4612 <~symfile_segment_data>: Remove.
4613 <segment_info>: Change to std::vector.
4614 * symfile.c (default_symfile_segments): Update.
4615 * elfread.c (elf_symfile_segments): Update.
4616
4617 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4618
4619 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4620 <segments>: New.
4621 <segment_bases, segment_sizes>: Remove.
4622 * symfile.c (default_symfile_segments): Update.
4623 * elfread.c (elf_symfile_segments): Update.
4624 * remote.c (remote_target::get_offsets): Update.
4625 * solib-target.c (solib_target_relocate_section_addresses):
4626 Update.
4627
4628 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4629
4630 * symfile.h (struct symfile_segment_data): Initialize fields.
4631 <~symfile_segment_data>: Add.
4632 (symfile_segment_data_up): New.
4633 (struct sym_fns) <sym_segments>: Return a
4634 symfile_segment_data_up.
4635 (default_symfile_segments): Return a symfile_segment_data_up.
4636 (free_symfile_segment_data): Remove.
4637 (get_symfile_segment_data): Return a symfile_segment_data_up.
4638 * symfile.c (default_symfile_segments): Likewise.
4639 (get_symfile_segment_data): Likewise.
4640 (free_symfile_segment_data): Remove.
4641 (symfile_find_segment_sections): Update.
4642 * elfread.c (elf_symfile_segments): Return a
4643 symfile_segment_data_up.
4644 * remote.c (remote_target::get_offsets): Update.
4645 * solib-target.c (solib_target_relocate_section_addresses):
4646 Update.
4647 * symfile-debug.c (debug_sym_segments): Return a
4648 symfile_segment_data_up.
4649
4650 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4651
4652 PR build/25981
4653 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4654 Hardcode register numbers.
4655
4656 PR build/25981
4657 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4658 procfs_find_LDT_entry): Remove.
4659 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4660 procfs_find_LDT_entry): Remove.
4661 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4662 Remove.
4663
4664 2020-05-17 Pedro Alves <palves@redhat.com>
4665 Andrew Burgess <andrew.burgess@embecosm.com>
4666 Keno Fischer <keno@juliacomputing.com>
4667
4668 PR gdb/25741
4669 * breakpoint.c (build_target_condition_list): Update comments.
4670 (build_target_command_list): Update comments and skip matching
4671 locations.
4672 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4673 a separate function. Simplify "set breakpoint auto-hw off"
4674 handling.
4675 (insert_breakpoints): Update comment.
4676 (tracepoint_locations_match): New parameter. For breakpoints,
4677 compare location types too, if the caller wants to.
4678 (handle_automatic_hardware_breakpoints): New functions.
4679 (bp_location_is_less_than): Also sort by location type and
4680 hardware breakpoint length.
4681 (update_global_location_list): Handle "set breakpoint auto-hw on"
4682 here.
4683 (update_breakpoint_locations): Ask breakpoint_locations_match to
4684 ignore location types.
4685
4686 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4687
4688 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4689 type::name instead.
4690
4691 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4692
4693 * gdbtypes.h (struct type) <name, set_name>: New methods.
4694 (TYPE_CODE): Use type::name. Change all call sites used to set
4695 the name to use type::set_name instead.
4696
4697 2020-05-16 Tom Tromey <tom@tromey.com>
4698
4699 * top.c (quit_force): Update.
4700 * infrun.c (handle_no_resumed): Update.
4701 * top.h (all_uis): New function.
4702 (ALL_UIS): Remove.
4703
4704 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4705
4706 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4707
4708 2020-05-16 Pedro Alves <palves@redhat.com>
4709
4710 * ia64-linux-nat.c
4711 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4712 Declare method.
4713 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4714
4715 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4716
4717 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4718 (sparc64_adi_info): Likewise.
4719
4720 2020-05-15 Tom Tromey <tom@tromey.com>
4721
4722 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4723 block_objfile.
4724 (lookup_objfile_from_block): Remove.
4725 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4726 (lookup_global_symbol): Use block_objfile.
4727 * symtab.h (lookup_objfile_from_block): Don't declare.
4728 * printcmd.c (clear_dangling_display_expressions): Use
4729 block_objfile.
4730 * parse.c (operator_check_standard): Use block_objfile.
4731
4732 2020-05-15 Tom Tromey <tom@tromey.com>
4733
4734 * language.c (language_alloc_type_symbol): Set
4735 SYMBOL_SECTION.
4736 * symtab.c (initialize_objfile_symbol): Remove.
4737 (allocate_symbol): Remove.
4738 (allocate_template_symbol): Remove.
4739 * dwarf2/read.c (fixup_go_packaging): Use "new".
4740 (new_symbol): Use "new".
4741 (read_variable): Don't call initialize_objfile_symbol. Use
4742 "new".
4743 (read_func_scope): Use "new".
4744 * xcoffread.c (process_xcoff_symbol): Don't call
4745 initialize_objfile_symbol.
4746 (SYMBOL_DUP): Remove.
4747 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4748 "new".
4749 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4750 (allocate_template_symbol): Don't declare.
4751 (struct symbol): Add copy constructor. Change defaults.
4752 * jit.c (finalize_symtab): Use "new".
4753 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4754 Use "new".
4755 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4756 (common_block_end): Use "new".
4757 * mdebugread.c (parse_symbol): Use "new".
4758 (new_symbol): Likewise.
4759
4760 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4761
4762 * NEWS: Mention changes to help and apropos.
4763
4764 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4765
4766 * command.h (enum command_class): Improve comments, document
4767 that class_alias is for user-defined aliases, give the class
4768 name for each class, remove unused class_xdb.
4769 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4770 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4771 by a precise class.
4772 * infcmd.c (_initialize_infcmd): Likewise.
4773 * reverse.c (_initialize_reverse): Likewise.
4774 * stack.c (_initialize_stack): Likewise.
4775 * symfile.c (_initialize_symfile): Likewise.
4776 * tracepoint.c (_initialize_tracepoint): Likewise.
4777
4778 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4779
4780 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4781 when their aliased command is traversed.
4782 (help_cmd): Add fput_command_names_styled call to
4783 output command name and aliases when command has an alias.
4784
4785 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4786
4787 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4788 * cli/cli-decode.c (help_cmd_list): Declare as static,
4789 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4790 a command together with the command.
4791 (fput_command_name_styled, fput_command_names_styled): New functions.
4792 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4793 fput_command_name_styled.
4794 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4795 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4796
4797 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4798
4799 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4800 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4801 * command.h (cmd_show_list): Likewise.
4802 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4803 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4804
4805 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4806
4807 * unittests/command-def-selftests.c (traverse_command_structure):
4808 Verify all commands of a list have the same prefix command and
4809 that only the top cmdlist commands have a null prefix.
4810
4811 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4812
4813 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4814 as prefix, not one of its aliases.
4815 (set_cmd_prefix): Remove.
4816 (do_add_cmd): Centralize the setting of the prefix of a command, when
4817 command is defined after its full chain of prefix commands.
4818 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4819 (add_setshow_cmd_full): Likewise.
4820 (update_prefix_field_of_prefixed_commands): New function.
4821 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4822 update_prefix_field_of_prefixed_commands.
4823 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4824 addresses of remote_set_cmdlist and remote_show_cmdlist given
4825 as argument, not the address of an argument.
4826 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4827 * gdb/remote.c (_initialize_remote): Likewise.
4828
4829 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4830
4831 * cli/cli-cmds.c (alias_command): Check for an existing alias
4832 using lookup_cmd_composition, as valid_command_p is too strict
4833 and forbids aliases that are the prefix of an existing alias
4834 or command.
4835 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4836 command is properly recognised as a valid command.
4837
4838 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4839
4840 * unittests/help-doc-selftests.c: Rename to
4841 unittests/command-def-selftests.c
4842 * unittests/command-def-selftests.c (help_doc_tests): Update some
4843 comments.
4844 (command_structure_tests, traverse_command_structure): New namespace
4845 and function.
4846 (command_structure_invariants_tests): New function.
4847 (_initialize_command_def_selftests) Renamed from
4848 _initialize_help_doc_selftests, register command_structure_invariants
4849 selftest.
4850
4851 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4852
4853 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4854 an alias of 'show'.
4855
4856 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4857
4858 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4859 ada_is_fixed_point_type. Update all callers.
4860 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4861 all callers.
4862 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4863 Update all callers.
4864 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4865 print_fixed_point_type. Update all callers.
4866 * ada-valprint.c (ada_value_print_num): Replace call to
4867 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4868
4869 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4870
4871 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4872 processors.
4873 (cpu_supports_bts): Add CV_AMD case.
4874
4875 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4876 Simon Marchi <simon.marchi@efficios.com>
4877
4878 * infrun.c (stop_all_threads): Collect multiple wait events at
4879 each pass.
4880
4881 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4882
4883 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4884 type::code instead.
4885
4886 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4887
4888 * gdbtypes.h (struct type) <code, set_code>: New methods.
4889 (TYPE_CODE): Use type::code. Change all call sites used to set
4890 the code to use type::set_code instead.
4891
4892 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4893 Tom de Vries <tdevries@suse.de>
4894 Pedro Alves <palves@redhat.com>
4895
4896 PR threads/25478
4897 * infrun.c (stop_all_threads): Do NOT ignore
4898 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4899 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4900 received.
4901 (handle_no_resumed): Remove code handling a live inferior with no
4902 threads.
4903 * remote.c (has_single_non_exited_thread): New.
4904 (remote_target::update_thread_list): Do not delete a thread if is
4905 the last thread of the process.
4906 * thread.c (thread_select): Call delete_exited_threads instead of
4907 prune_threads.
4908
4909 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4910
4911 * infrun.c (stop_all_threads): Enable/disable thread events of all
4912 targets. Move a debug message denoting the end of the function
4913 into the SCOPED_EXIT block.
4914
4915 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4916
4917 * process-stratum-target.h: Include <set>.
4918 (all_non_exited_process_targets, switch_to_target_no_thread): New
4919 function declarations.
4920 * process-stratum-target.c (all_non_exited_process_targets)
4921 (switch_to_target_no_thread): New function implementations.
4922
4923 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4924
4925 * infrun.c (handle_inferior_event): Extract out a piece of code
4926 into...
4927 (mark_non_executing_threads): ...this new function.
4928
4929 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4930
4931 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4932 use.
4933
4934 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4935
4936 * regcache.c (regcache_read_pc_protected): New function
4937 implementation that returns 0 if the PC cannot read via
4938 'regcache_read_pc'.
4939 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4940 instead of 'regcache_read_pc'.
4941 (keep_going_pass_signal): Ditto.
4942
4943 2020-05-13 Tom Tromey <tromey@adacore.com>
4944
4945 * ada-lang.c (align_value): Remove.
4946 (ada_template_to_fixed_record_type_1): Use align_up.
4947
4948 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4949
4950 * async-event.c: Update the copyright year.
4951 * async-event.h: Update the copyright year.
4952
4953 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4954
4955 * objfiles.h (is_addr_in_objfile,
4956 shared_objfile_contains_address_p): Return bool.
4957 * objfile.c (is_addr_in_objfile,
4958 shared_objfile_contains_address_p): Return bool.
4959
4960 2020-05-11 Tom Tromey <tromey@adacore.com>
4961
4962 * cli/cli-cmds.c (info_command): Restore.
4963 (_initialize_cli_cmds): Use add_prefix_command for "info".
4964 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4965
4966 2020-05-11 Tom Tromey <tromey@adacore.com>
4967
4968 * ada-lang.c (ada_value_primitive_field): Now public.
4969 * ada-lang.h (ada_value_primitive_field): Declare.
4970 * ada-valprint.c (print_field_values): Use
4971 ada_value_primitive_field for wrapper fields.
4972
4973 2020-05-11 Tom de Vries <tdevries@suse.de>
4974
4975 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4976 MODULE_DOMAIN.
4977
4978 2020-05-11 Tom de Vries <tdevries@suse.de>
4979
4980 PR symtab/25941
4981 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4982 with length 0, if not gdb-produced.
4983 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4984
4985 2020-05-09 Tom de Vries <tdevries@suse.de>
4986
4987 PR gdb/25955
4988 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4989 calculation.
4990
4991 2020-05-09 Tom Tromey <tom@tromey.com>
4992
4993 * top.c (server_command): Now bool.
4994 * top.h (server_command): Now bool.
4995
4996 2020-05-08 Tom Tromey <tromey@adacore.com>
4997
4998 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4999 already being processed.
5000
5001 2020-05-08 Tom Tromey <tom@tromey.com>
5002
5003 * printcmd.c (struct display) <next>: Remove.
5004 <display>: New constructor.
5005 <exp_string>: Now a std::string.
5006 <enabled_p>: Now a bool.
5007 (display_number): Move definition earlier.
5008 (displays): Rename from display_chain. Now a std::vector.
5009 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5010 (display_command): Update.
5011 (do_one_display, disable_display)
5012 (enable_disable_display_command, do_enable_disable_display):
5013 Update.
5014 (free_display): Remove.
5015 (clear_displays): Rewrite.
5016 (delete_display): Update.
5017 (map_display_numbers): Use function_view. Remove "data"
5018 parameter. Update.
5019 (do_delete_display): Remove.
5020 (undisplay_command): Update.
5021 (do_one_display, do_displays, disable_display)
5022 (info_display_command): Update.
5023 (do_enable_disable_display): Remove.
5024 (enable_disable_display_command)
5025 (clear_dangling_display_expressions): Update.
5026
5027 2020-05-08 Tom Tromey <tom@tromey.com>
5028
5029 * symtab.c (set_symbol_cache_size)
5030 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5031 (maintenance_print_symbol_cache_statistics): Update.
5032 * symmisc.c (print_symbol_bcache_statistics)
5033 (print_objfile_statistics, maintenance_print_objfiles)
5034 (maintenance_info_symtabs, maintenance_check_symtabs)
5035 (maintenance_expand_symtabs, maintenance_info_line_tables):
5036 Update.
5037 * symfile-debug.c (set_debug_symfile): Update.
5038 * source.c (forget_cached_source_info): Update.
5039 * python/python.c (gdbpy_progspaces): Update.
5040 * psymtab.c (maintenance_info_psymtabs): Update.
5041 * probe.c (parse_probes): Update.
5042 * linespec.c (iterate_over_all_matching_symtabs)
5043 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5044 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5045 * exec.c (exec_target::close): Update.
5046 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5047 * breakpoint.c (print_one_breakpoint_location)
5048 (create_longjmp_master_breakpoint)
5049 (create_std_terminate_master_breakpoint): Update.
5050 * progspace.c (program_spaces): Now a std::vector.
5051 (maybe_new_address_space): Update.
5052 (add_program_space): Remove.
5053 (program_space::program_space): Update.
5054 (remove_program_space): Update.
5055 (number_of_program_spaces): Remove.
5056 (print_program_space, update_address_spaces): Update.
5057 * progspace.h (program_spaces): Change type.
5058 (ALL_PSPACES): Remove.
5059 (number_of_program_spaces): Don't declare.
5060 (struct program_space) <next>: Remove.
5061
5062 2020-05-08 Tom Tromey <tom@tromey.com>
5063
5064 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5065 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5066 (enable_break): Update.
5067 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5068 (frv_fdpic_find_canonical_descriptor): Update.
5069 (frv_fetch_objfile_link_map): Update.
5070 * progspace.c (program_space::free_all_objfiles): Update.
5071 (program_space::solibs): New method.
5072 * progspace.h (struct program_space) <solibs>: New method.
5073 * solist.h (master_so_list): Don't declare.
5074 (ALL_SO_LIBS): Remove.
5075 * solib.h (so_list_head): Remove.
5076 (update_solib_list): Update comment.
5077 * solib.c (master_so_list): Remove.
5078 (solib_used, update_solib_list, solib_add)
5079 (info_sharedlibrary_command, clear_solib)
5080 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5081
5082 2020-05-08 Tom Tromey <tom@tromey.com>
5083
5084 * extension.c (extension_languages): Now a std::array.
5085 (ALL_EXTENSION_LANGUAGES): Remove.
5086 (get_ext_lang_defn, get_ext_lang_of_file)
5087 (eval_ext_lang_from_control_command): Update.
5088 (finish_ext_lang_initialization)
5089 (auto_load_ext_lang_scripts_for_objfile)
5090 (ext_lang_type_printers::ext_lang_type_printers)
5091 (apply_ext_lang_type_printers)
5092 (ext_lang_type_printers::~ext_lang_type_printers)
5093 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5094 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5095 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5096 (get_matching_xmethod_workers, ext_lang_colorize)
5097 (ext_lang_before_prompt): Update.
5098 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5099
5100 2020-05-08 Tom Tromey <tom@tromey.com>
5101
5102 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5103 overload.
5104 <swap_string, m_string>: Remove.
5105 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5106 Update.
5107 * stabsread.c (define_symbol, read_type): Update.
5108 * linespec.c (find_linespec_symbols): Update.
5109 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5110 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5111 * dbxread.c (read_dbx_symtab): Update.
5112 * cp-support.h (cp_canonicalize_string_full)
5113 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5114 Return unique_xmalloc_ptr.
5115 * cp-support.c (inspect_type): Update.
5116 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5117 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5118 Likewise.
5119 * c-typeprint.c (print_name_maybe_canonical): Update.
5120 * break-catch-throw.c (check_status_exception_catchpoint):
5121 Update.
5122
5123 2020-05-08 Tom de Vries <tdevries@suse.de>
5124
5125 * infrun.c (follow_fork): Copy current_line and current_symtab to
5126 child thread.
5127
5128 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5129
5130 * async-event.c (struct async_signal_handler, struct
5131 async_event_handler): Reformat, remove typedef.
5132
5133 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5134
5135 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5136 access thistype->main_type->dyn_prop_list directly.
5137
5138 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5139
5140 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5141 (remove_dyn_prop): Remove. Update all users to use
5142 type::remove_dyn_prop.
5143 * gdbtypes.c (remove_dyn_prop): Rename to...
5144 (type::remove_dyn_prop): ... this.
5145
5146 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5147
5148 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5149 (add_dyn_prop): Remove. Update all users to use
5150 type::add_dyn_prop.
5151 * gdbtypes.c (add_dyn_prop): Rename to...
5152 (type::add_dyn_prop): ... this.
5153
5154 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5155
5156 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5157 (get_dyn_prop): Remove. Update all users to use
5158 type::dyn_prop.
5159 * gdbtypes.c (get_dyn_prop): Rename to...
5160 (type::dyn_prop): ... this.
5161
5162 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5163
5164 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5165
5166 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5167
5168 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5169 instruction, skip it if it's there.
5170
5171 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5172
5173 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5174
5175 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5176
5177 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5178 * gdbtypes.c (recursive_dump_type): Remove use of
5179 TYPE_INCOMPLETE.
5180
5181 2020-05-03 Tom Tromey <tom@tromey.com>
5182
5183 * breakpoint.c (catch_command, tcatch_command): Remove.
5184 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5185 add_show_prefix_cmd.
5186 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5187 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5188 Remove.
5189 (add_internal_problem_command): Use add_basic_prefix_cmd,
5190 add_show_prefix_cmd.
5191 * mips-tdep.c (set_mipsfpu_command): Remove.
5192 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5193 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5194 (_initialize_index_cache): Use add_basic_prefix_cmd.
5195 * memattr.c (dummy_cmd): Remove.
5196 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5197 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5198 (_initialize_tui_win): Use add_basic_prefix_cmd,
5199 add_show_prefix_cmd.
5200 * cli/cli-logging.c (set_logging_command): Remove.
5201 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5202 add_show_prefix_cmd.
5203 (show_logging_command): Remove.
5204 * target.c (target_command): Remove.
5205 (add_target): Use add_basic_prefix_cmd.
5206
5207 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5208
5209 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5210
5211 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5212
5213 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5214 info_command.
5215
5216 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5217
5218 * nbsd-nat.c (nbsd_enable_proc_events)
5219 (nbsd_nat_target::post_startup_inferior): Add.
5220 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5221 (nbsd_nat_target::update_thread_list): Rewrite.
5222 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5223 "PTRACE_LWP_CREATE".
5224 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5225
5226 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5227
5228 * stack.c (_initialize_stack): Remove duplicated creation
5229 of "frame" command and "f" alias.
5230
5231 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5232
5233 PR gdb/18706
5234 * gdbtypes.c (check_typedef): Calculate size of array of
5235 stubbed type.
5236
5237 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5238
5239 PR gdb/15559
5240 * i386-tdep.c (i386_push_dummy_call): Call
5241 i386_thiscall_push_dummy_call.
5242 (i386_thiscall_push_dummy_call): New function.
5243 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5244 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5245 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5246
5247 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5248
5249 * gdbarch.sh (do_read): Add shellcheck disable directive for
5250 warning SC2162.
5251
5252 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5253
5254 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5255 "referenced but not assigned" warning.
5256
5257 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5258
5259 * gdbarch.sh: Remove code that sets fallbackdefault.
5260
5261 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5262
5263 * gdbarch.sh: Use shell operators && and || instead of
5264 -a and -o.
5265
5266 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5267
5268 * gdbarch.sh: Use $(...) instead of `...`.
5269
5270 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5271
5272 * gdbarch.sh: Use double quotes around variables.
5273
5274 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5275
5276 * gdbarch.sh: Use %s with printf, instead of variables in the
5277 format string.
5278
5279 2020-04-29 Tom Tromey <tromey@adacore.com>
5280
5281 PR ada/25875:
5282 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5283 type fields here.
5284 (read_enumeration_type): Call
5285 update_enumeration_type_from_children later. Update comments.
5286 (process_enumeration_scope): Don't create type fields.
5287
5288 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5289
5290 * nbsd-tdep.c: Include "xml-syscall.h".
5291 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5292
5293 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5294
5295 * nbsd-nat.c: Include "sys/wait.h".
5296 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5297 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5298 (nbsd_nat_target::remove_exec_catchpoint)
5299 (nbsd_nat_target::set_syscall_catchpoint): Add.
5300 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5301 (nbsd_nat_target::insert_exec_catchpoint)
5302 (nbsd_nat_target::remove_exec_catchpoint)
5303 (nbsd_nat_target::set_syscall_catchpoint): Add.
5304 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5305 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5306 `nbsd_get_syscall_number'.
5307
5308 2020-04-29 Tom Tromey <tom@tromey.com>
5309
5310 * stack.c (print_block_frame_labels): Remove.
5311
5312 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5313
5314 PR gdb/17320
5315 * ada-valprint.c (val_print_packed_array_elements): Move array
5316 end bracket to new line.
5317 (ada_val_print_string): Remove extra spaces before first array
5318 element.
5319 * c-valprint.c (c_value_print_array): Likewise.
5320 * m2-valprint.c (m2_print_array_contents): Likewise.
5321 (m2_value_print_inner): Likewise.
5322 * p-valprint.c (pascal_value_print_inner): Likewise.
5323 * valprint.c (generic_val_print_array): Likewise.
5324 (value_print_array_elements): Move first array element and array
5325 end bracket to new line.
5326
5327 2020-04-29 Tom de Vries <tdevries@suse.de>
5328
5329 PR symtab/25889
5330 * linespec.c (find_method): Fix ix calculation.
5331
5332 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5333
5334 * syscalls/update-netbsd.sh: New file.
5335 * syscalls/netbsd.xml: Regenerate.
5336 * data-directory/Makefile.in: Register `netbsd.xml' in
5337 `SYSCALLS_FILES'.
5338
5339 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5340
5341 * syscalls/update-freebsd.sh: Add double quotes.
5342
5343 2020-04-28 Tom Tromey <tom@tromey.com>
5344
5345 * NEWS: Update.
5346 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5347 (cmdpy_init): Allow class_tui.
5348
5349 2020-04-28 Mark Williams <mark@myosotissp.com>
5350
5351 PR gdb/24480
5352 * dwarf2read.c: Add missing assingments to list_in_scope when
5353 start_symtab was already called.
5354
5355 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5356
5357 PR gdb/25881
5358 * dwarf2/read.c (offset_map_type): Use
5359 gdb:hash_enum<sect_offset> as hash function.
5360
5361 2020-04-28 Tom de Vries <tdevries@suse.de>
5362
5363 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5364 with DW_AT_signature.
5365
5366 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5367
5368 * configure.ac: Remove check for fs_base/gs_base in
5369 user_regs_struct.
5370 * configure: Re-generate.
5371 * config.in: Re-generate.
5372 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5373 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5374 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5375
5376 2020-04-27 Luis Machado <luis.machado@linaro.org>
5377
5378 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5379 problematic inline frame unwinding situation.
5380 * frame.c (frame_id_computed_p): New function.
5381 * frame.h (frame_id_computed_p): New prototype.
5382
5383 2020-04-26 Tom Tromey <tom@tromey.com>
5384
5385 * command.h (enum command_class) <class_pseudo>: Remove.
5386
5387 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5388
5389 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5390 and whitespace.
5391
5392 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5393
5394 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5395 `PT_GET_PROCESS_STATE' block.
5396
5397 2020-04-24 Tom Tromey <tom@tromey.com>
5398
5399 * symtab.h (symbol_get_demangled_name): Don't declare.
5400 * symtab.c (symbol_get_demangled_name): Remove.
5401 (general_symbol_info::natural_name)
5402 (general_symbol_info::demangled_name): Update.
5403
5404 2020-04-24 Tom Tromey <tom@tromey.com>
5405
5406 PR rust/25025:
5407 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5408
5409 2020-04-24 Tom Tromey <tom@tromey.com>
5410
5411 PR symtab/12707:
5412 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5413 exists.
5414 (new_symbol): Likewise.
5415 * compile/compile-object-load.c (get_out_value_type): Use
5416 symbol_matches_search_name.
5417
5418 2020-04-24 Tom Tromey <tom@tromey.com>
5419
5420 * dwarf2/read.c (add_partial_symbol): Do not call
5421 compute_and_set_names.
5422
5423 2020-04-24 Tom Tromey <tom@tromey.com>
5424
5425 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5426 overload.
5427
5428 2020-04-24 Tom Tromey <tom@tromey.com>
5429
5430 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5431 (add_psymbol_to_list): New overload. Make old overload call new
5432 one.
5433 * psympriv.h (add_psymbol_to_list): New overload.
5434
5435 2020-04-24 Tom Tromey <tom@tromey.com>
5436
5437 * dwarf2/read.c (partial_die_info::read) <case
5438 DW_AT_linkage_name>: Use value_as_string.
5439 (dwarf2_string_attr): Use value_as_string.
5440 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5441 method.
5442 * dwarf2/attribute.c (attribute::value_as_string): New method.
5443
5444 2020-04-24 Tom Tromey <tom@tromey.com>
5445
5446 * symtab.c (general_symbol_info::natural_name)
5447 (general_symbol_info::demangled_name): Check for language_rust.
5448
5449 2020-04-24 Tom Tromey <tom@tromey.com>
5450
5451 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5452 (dwarf2_physname): ... from here.
5453 (partial_die_info::read): Add Rust "{" hack.
5454
5455 2020-04-24 Tom Tromey <tom@tromey.com>
5456
5457 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5458 method.
5459 (symbol_set_demangled_name): Don't declare.
5460 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5461 symbol_set_demangled_name.
5462 (general_symbol_info::set_language)
5463 (general_symbol_info::compute_and_set_names): Update.
5464 * minsyms.c (minimal_symbol_reader::install): Update.
5465 * dwarf2/read.c (new_symbol): Update.
5466
5467 2020-04-24 Tom Tromey <tromey@adacore.com>
5468
5469 PR python/23662:
5470 * python/py-type.c (convert_field): Handle
5471 FIELD_LOC_KIND_DWARF_BLOCK.
5472 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5473 (typy_get_dynamic): Nw function.
5474 (type_object_getset): Add "dynamic".
5475 * NEWS: Add entry.
5476
5477 2020-04-24 Tom Tromey <tromey@adacore.com>
5478
5479 * ada-typeprint.c (print_choices, print_variant_part)
5480 (print_record_field_types_dynamic): New functions.
5481 (print_record_field_types): Use print_record_field_types_dynamic.
5482
5483 2020-04-24 Tom Tromey <tromey@adacore.com>
5484
5485 * dwarf2/read.c (handle_data_member_location): New overload.
5486 (dwarf2_add_field): Use it.
5487 (decode_locdesc): Add "computed" parameter. Update comment.
5488 * gdbtypes.c (is_dynamic_type_internal): Also look for
5489 FIELD_LOC_KIND_DWARF_BLOCK.
5490 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5491 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5492 virtual base classes.
5493 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5494 FIELD_LOC_KIND_DWARF_BLOCK.
5495
5496 2020-04-24 Tom Tromey <tromey@adacore.com>
5497
5498 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5499 * gdbtypes.c (is_dynamic_type_internal): Check
5500 TYPE_HAS_DYNAMIC_LENGTH.
5501 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5502 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5503 New macros.
5504 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5505 constant.
5506
5507 2020-04-24 Tom Tromey <tromey@adacore.com>
5508
5509 * dwarf2/read.c (struct variant_field): Rewrite.
5510 (struct variant_part_builder): New.
5511 (struct nextfield): Remove "variant" field. Add "offset".
5512 (struct field_info): Add "current_variant_part" and
5513 "variant_parts".
5514 (alloc_discriminant_info): Remove.
5515 (alloc_rust_variant): New function.
5516 (quirk_rust_enum): Update.
5517 (dwarf2_add_field): Set "offset" member. Don't handle
5518 DW_TAG_variant_part.
5519 (offset_map_type): New typedef.
5520 (convert_variant_range, create_one_variant)
5521 (create_one_variant_part, create_variant_parts)
5522 (add_variant_property): New functions.
5523 (dwarf2_attach_fields_to_type): Call add_variant_property.
5524 (read_structure_type): Don't handle DW_TAG_variant_part.
5525 (handle_variant_part, handle_variant): New functions.
5526 (handle_struct_member_die): Use them.
5527 (process_structure_scope): Don't handle variant parts.
5528 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5529 (struct discriminant_info): Remove.
5530 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5531 (struct main_type) <flag_discriminated_union>: Remove.
5532 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5533 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5534 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5535 Update.
5536 * valops.c (value_union_variant): Remove.
5537 * value.h (value_union_variant): Don't declare.
5538
5539 2020-04-24 Tom Tromey <tromey@adacore.com>
5540
5541 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5542 (ada_value_primitive_packed_val): Update.
5543 * ada-valprint.c (ada_value_print_1): Update.
5544 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5545 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5546 just an address. Use evaluate_for_locexpr_baton.
5547 (dwarf2_evaluate_property): Update.
5548 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5549 array_view.
5550 * findvar.c (default_read_var_value): Update.
5551 * gdbtypes.c (compute_variant_fields_inner)
5552 (resolve_dynamic_type_internal): Update.
5553 (resolve_dynamic_type): Change type of valaddr parameter.
5554 * gdbtypes.h (resolve_dynamic_type): Update.
5555 * valarith.c (value_subscripted_rvalue): Update.
5556 * value.c (value_from_contents_and_address): Update.
5557
5558 2020-04-24 Tom Tromey <tromey@adacore.com>
5559
5560 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5561 "push_initial_value" parameter.
5562 (dwarf2_evaluate_property): Likewise.
5563 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5564
5565 2020-04-24 Tom Tromey <tromey@adacore.com>
5566
5567 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5568 (variant::matches, compute_variant_fields_recurse)
5569 (compute_variant_fields_inner, compute_variant_fields): New
5570 functions.
5571 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5572 Use resolved_type after type is made.
5573 (operator==): Add new cases.
5574 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5575 (struct discriminant_range, struct variant, struct variant_part):
5576 New.
5577 (union dynamic_prop_data) <variant_parts, original_type>: New
5578 members.
5579 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5580 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5581 constants.
5582 * value.c (unpack_bits_as_long): Now public.
5583 * value.h (unpack_bits_as_long): Declare.
5584
5585 2020-04-24 Tom Tromey <tromey@adacore.com>
5586
5587 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5588 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5589
5590 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5591
5592 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5593
5594 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5595
5596 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5597 (remove_fork_catchpoint, post_startup_inferior)
5598 (post_attach): Move...
5599 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5600 (remove_fork_catchpoint, post_startup_inferior)
5601 (post_attach): ...here.
5602 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5603 (remove_fork_catchpoint, post_startup_inferior)
5604 (post_attach): Move...
5605 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5606 (remove_fork_catchpoint, post_startup_inferior)
5607 (post_attach): ...here.
5608
5609 2020-04-24 Tom Tromey <tromey@adacore.com>
5610
5611 * nat/windows-nat.h (struct windows_thread_info)
5612 <pc_adjusted>: New member.
5613 * windows-nat.c (windows_fetch_one_register): Check
5614 pc_adjusted.
5615 (windows_nat_target::get_windows_debug_event)
5616 (windows_nat_target::wait): Set pc_adjusted.
5617
5618 2020-04-24 Tom de Vries <tdevries@suse.de>
5619
5620 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5621 Run gdb-add-index inside temp dir.
5622
5623 2020-04-23 Tom Tromey <tromey@adacore.com>
5624
5625 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5626 in loop.
5627
5628 2020-04-23 Luis Machado <luis.machado@linaro.org>
5629
5630 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5631 get_frame_register instead of gdbarch_unwind_pc.
5632
5633 2020-04-23 Tom de Vries <tdevries@suse.de>
5634
5635 * symtab.c (lookup_global_symbol): Prefer def over decl.
5636
5637 2020-04-23 Tom de Vries <tdevries@suse.de>
5638
5639 PR symtab/25807
5640 * block.c (best_symbol, better_symbol): Promote to external.
5641 * block.h (best_symbol, better_symbol): Declare.
5642 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5643 decl.
5644
5645 2020-04-23 Tom Tromey <tromey@adacore.com>
5646
5647 PR ada/25837:
5648 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5649 "const char *", not a "const std::string &".
5650 <name_and_matcher::operator==>: Update.
5651 * unittests/lookup_name_info-selftests.c: Change type of
5652 "result".
5653
5654 2020-04-23 Tom Tromey <tom@tromey.com>
5655
5656 * inferior.h (iterate_over_inferiors): Don't declare.
5657 * inferior.c (iterate_over_inferiors): Remove.
5658 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5659 Remove.
5660 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5661 use iterate_over_inferiors.
5662 (darwin_resume_inferior_it)
5663 (struct resume_inferior_threads_param)
5664 (darwin_resume_inferior_threads_it): Remove.
5665 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5666
5667 2020-04-23 Tom de Vries <tdevries@suse.de>
5668
5669 * blockframe.c (find_pc_partial_function): Use
5670 find_pc_sect_compunit_symtab rather than
5671 objfile->sf->qf->find_pc_sect_compunit_symtab.
5672
5673 2020-04-22 Tom de Vries <tdevries@suse.de>
5674
5675 PR symtab/25764
5676 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5677 in psymtabs.
5678
5679 2020-04-22 Tom de Vries <tdevries@suse.de>
5680
5681 PR symtab/25801
5682 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5683 symtabs.
5684
5685 2020-04-22 Tom de Vries <tdevries@suse.de>
5686
5687 PR symtab/25700
5688 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5689 CU if already created.
5690
5691 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5692
5693 * infrun.c (displaced_step_fixup): Switch to the event_thread
5694 before calling displaced_step_restore, not after.
5695
5696 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5697
5698 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5699 its inferior is not recorded by us.
5700 (record_btrace_target_open): Replace call to
5701 all_non_exited_threads () with call to current_inferior
5702 ()->non_exited_threads ().
5703 (record_btrace_target::stop_recording): Likewise.
5704 (record_btrace_target::close): Likewise.
5705 (record_btrace_target::wait): Likewise.
5706 (record_btrace_target::record_stop_replaying): Likewise.
5707
5708 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5709
5710 * btrace.c (btrace_enable): Throw an error on double enables and
5711 when enabling recording fails.
5712 (btrace_disable): Throw an error if the thread is not recorded.
5713
5714 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5715
5716 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5717 request if we do not have a thread_info.
5718
5719 2020-04-21 Tom de Vries <tdevries@suse.de>
5720
5721 PR gdb/25471
5722 * thread.c
5723 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5724 exception in get_frame_id.
5725
5726 2020-04-20 Tom Tromey <tromey@adacore.com>
5727
5728 * python/python.c (struct gdbpy_event): Mark move constructor as
5729 noexcept.
5730 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5731 constructor as noexcept.
5732 * completer.h (struct completion_result): Mark move constructor as
5733 noexcept.
5734 * completer.c (completion_result::completion_result): Use
5735 initialization style. Don't call reset_match_list.
5736
5737 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5738
5739 * MAINTAINERS (Write After Approval): Add myself.
5740
5741 2020-04-18 Tom Tromey <tom@tromey.com>
5742
5743 * windows-tdep.c (init_w32_command_list)
5744 (w32_prefix_command_valid): Restore.
5745 (_initialize_windows_tdep): Call init_w32_command_list.
5746
5747 2020-04-18 Tom Tromey <tom@tromey.com>
5748
5749 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5750 * value.c (value_fn_field): Update.
5751 * valops.c (find_function_in_inferior)
5752 (value_allocate_space_in_inferior): Update.
5753 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5754 Update.
5755 * tui/tui-source.c (tui_source_window::set_contents): Update.
5756 * symtab.c (lookup_global_or_static_symbol)
5757 (find_function_start_sal_1, skip_prologue_sal)
5758 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5759 * symmisc.c (dump_msymbols, dump_symtab_1)
5760 (maintenance_print_one_line_table): Update.
5761 * symfile.c (init_entry_point_info, section_is_mapped)
5762 (list_overlays_command, simple_read_overlay_table)
5763 (simple_overlay_update_1): Update.
5764 * stap-probe.c (handle_stap_probe): Update.
5765 * stabsread.c (dbx_init_float_type, define_symbol)
5766 (read_one_struct_field, read_enum_type, read_range_type): Update.
5767 * source.c (info_line_command): Update.
5768 * python/python.c (gdbpy_source_objfile_script)
5769 (gdbpy_execute_objfile_script): Update.
5770 * python/py-type.c (save_objfile_types): Update.
5771 * python/py-objfile.c (py_free_objfile): Update.
5772 * python/py-inferior.c (python_new_objfile): Update.
5773 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5774 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5775 (maintenance_check_psymtabs): Update.
5776 * printcmd.c (info_address_command): Update.
5777 * objfiles.h (struct objfile) <arch>: New method, from
5778 get_objfile_arch.
5779 (get_objfile_arch): Don't declare.
5780 * objfiles.c (get_objfile_arch): Remove.
5781 (filter_overlapping_sections): Update.
5782 * minsyms.c (msymbol_is_function): Update.
5783 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5784 (output_nondebug_symbol): Update.
5785 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5786 (mdebug_expand_psymtab): Update.
5787 * machoread.c (macho_add_oso_symfile): Update.
5788 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5789 Update.
5790 * linux-fork.c (checkpoint_command): Update.
5791 * linespec.c (convert_linespec_to_sals): Update.
5792 * jit.c (finalize_symtab): Update.
5793 * infrun.c (insert_exception_resume_from_probe): Update.
5794 * ia64-tdep.c (ia64_find_unwind_table): Update.
5795 * hppa-tdep.c (internalize_unwinds): Update.
5796 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5797 Update.
5798 * gcore.c (call_target_sbrk): Update.
5799 * elfread.c (record_minimal_symbol, elf_symtab_read)
5800 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5801 (elf_gnu_ifunc_resolve_by_got): Update.
5802 * dwarf2/read.c (create_addrmap_from_index)
5803 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5804 (read_debug_names_from_section)
5805 (process_psymtab_comp_unit_reader, add_partial_symbol)
5806 (add_partial_subprogram, process_full_comp_unit)
5807 (read_file_scope, read_func_scope, read_lexical_block_scope)
5808 (read_call_site_scope, dwarf2_ranges_read)
5809 (dwarf2_record_block_ranges, dwarf2_add_field)
5810 (mark_common_block_symbol_computed, read_tag_pointer_type)
5811 (read_tag_string_type, dwarf2_init_float_type)
5812 (dwarf2_init_complex_target_type, read_base_type)
5813 (partial_die_info::read, partial_die_info::read)
5814 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5815 (dwarf2_fetch_die_loc_sect_off): Update.
5816 * dwarf2/loc.c (dwarf2_find_location_expression)
5817 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5818 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5819 (dwarf2_loc_desc_get_symbol_read_needs)
5820 (locexpr_describe_location_piece, locexpr_describe_location_1)
5821 (loclist_describe_location): Update.
5822 * dwarf2/index-write.c (write_debug_names): Update.
5823 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5824 * dtrace-probe.c (dtrace_process_dof): Update.
5825 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5826 (process_one_symbol): Update.
5827 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5828 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5829 (coff_read_enum_type): Update.
5830 * cli/cli-cmds.c (edit_command, list_command): Update.
5831 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5832 * breakpoint.c (create_overlay_event_breakpoint)
5833 (create_longjmp_master_breakpoint)
5834 (create_std_terminate_master_breakpoint)
5835 (create_exception_master_breakpoint, get_sal_arch): Update.
5836 * block.c (block_gdbarch): Update.
5837 * annotate.c (annotate_source_line): Update.
5838
5839 2020-04-17 Tom Tromey <tromey@adacore.com>
5840
5841 * auto-load.c (show_auto_load_cmd): Remove.
5842 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5843 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5844 (maintenance_print_arc_command): Remove.
5845 * tui/tui-win.c (tui_command): Remove.
5846 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5847 * tui/tui-layout.c (tui_layout_command): Remove.
5848 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5849 * python/python.c (user_set_python, user_show_python): Remove.
5850 (_initialize_python): Use add_basic_prefix_cmd,
5851 add_show_prefix_cmd.
5852 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5853 (install_gdb_commands): Use add_basic_prefix_cmd,
5854 add_show_prefix_cmd.
5855 (info_guile_command): Remove.
5856 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5857 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5858 add_show_prefix_cmd.
5859 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5860 Remove do_set and do_show parameters.
5861 * cli/cli-style.c (set_style, show_style): Remove.
5862 (_initialize_cli_style): Use add_basic_prefix_cmd,
5863 add_show_prefix_cmd.
5864 (cli_style_option::add_setshow_commands): Remove do_set and
5865 do_show parameters.
5866 (cli_style_option::add_setshow_commands): Use
5867 add_basic_prefix_cmd, add_show_prefix_cmd.
5868 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5869 (set_style_name): Remove.
5870 * cli/cli-dump.c (dump_command, append_command): Remove.
5871 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5872 (tekhex_dump_command, binary_dump_command)
5873 (binary_append_command): Remove.
5874 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5875 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5876 (init_w32_command_list): Remove; move into ...
5877 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5878 * valprint.c (set_print, show_print, set_print_raw)
5879 (show_print_raw): Remove.
5880 (_initialize_valprint): Use add_basic_prefix_cmd,
5881 add_show_prefix_cmd.
5882 * typeprint.c (set_print_type, show_print_type): Remove.
5883 (_initialize_typeprint): Use add_basic_prefix_cmd,
5884 add_show_prefix_cmd.
5885 * record.c (set_record_command, show_record_command): Remove.
5886 (_initialize_record): Use add_basic_prefix_cmd,
5887 add_show_prefix_cmd.
5888 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5889 add_show_prefix_cmd.
5890 (info_command, show_command, set_debug, show_debug): Remove.
5891 * top.h (set_history, show_history): Don't declare.
5892 * top.c (set_history, show_history): Remove.
5893 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5894 (unset_tdesc_cmd): Remove.
5895 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5896 add_show_prefix_cmd.
5897 * symtab.c (info_module_command): Remove.
5898 (_initialize_symtab): Use add_basic_prefix_cmd.
5899 * symfile.c (overlay_command): Remove.
5900 (_initialize_symfile): Use add_basic_prefix_cmd.
5901 * sparc64-tdep.c (info_adi_command): Remove.
5902 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5903 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5904 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5905 add_show_prefix_cmd.
5906 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5907 (_initialize_serial): Use add_basic_prefix_cmd,
5908 add_show_prefix_cmd.
5909 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5910 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5911 add_show_prefix_cmd.
5912 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5913 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5914 add_show_prefix_cmd.
5915 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5916 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5917 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5918 add_show_prefix_cmd.
5919 * remote.c (remote_command, set_remote_cmd): Remove.
5920 (_initialize_remote): Use add_basic_prefix_cmd.
5921 * record-full.c (set_record_full_command)
5922 (show_record_full_command): Remove.
5923 (_initialize_record_full): Use add_basic_prefix_cmd,
5924 add_show_prefix_cmd.
5925 * record-btrace.c (cmd_set_record_btrace)
5926 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5927 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5928 (cmd_show_record_btrace_pt): Remove.
5929 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5930 add_show_prefix_cmd.
5931 * ravenscar-thread.c (set_ravenscar_command)
5932 (show_ravenscar_command): Remove.
5933 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5934 add_show_prefix_cmd.
5935 * mips-tdep.c (show_mips_command, set_mips_command)
5936 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5937 add_show_prefix_cmd.
5938 * maint.c (maintenance_command, maintenance_info_command)
5939 (maintenance_check_command, maintenance_print_command)
5940 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5941 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5942 add_show_prefix_cmd.
5943 (show_per_command_cmd): Remove.
5944 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5945 Remove.
5946 (maintenance_show_test_settings_cmd): Remove.
5947 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5948 add_show_prefix_cmd.
5949 * maint-test-options.c (maintenance_test_options_command):
5950 Remove.
5951 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5952 * macrocmd.c (macro_command): Remove
5953 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5954 * language.c (set_check, show_check): Remove.
5955 (_initialize_language): Use add_basic_prefix_cmd,
5956 add_show_prefix_cmd.
5957 * infcmd.c (unset_command): Remove.
5958 (_initialize_infcmd): Use add_basic_prefix_cmd.
5959 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5960 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5961 add_show_prefix_cmd.
5962 * go32-nat.c (go32_info_dos_command): Remove.
5963 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5964 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5965 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5966 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5967 (_initialize_frame): Use add_basic_prefix_cmd,
5968 add_show_prefix_cmd.
5969 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5970 (_initialize_dcache): Use add_basic_prefix_cmd,
5971 add_show_prefix_cmd.
5972 * cp-support.c (maint_cplus_command): Remove.
5973 (_initialize_cp_support): Use add_basic_prefix_cmd.
5974 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5975 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5976 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5977 add_basic_prefix_cmd, add_show_prefix_cmd.
5978 * breakpoint.c (save_command): Remove.
5979 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5980 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5981 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5982 add_show_prefix_cmd.
5983 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5984 (set_ada_command, show_ada_command): Remove.
5985 (_initialize_ada_language): Use add_basic_prefix_cmd,
5986 add_show_prefix_cmd.
5987 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5988
5989 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5990
5991 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5992 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5993
5994 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5995
5996 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5997 warning messages.
5998
5999 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6000
6001 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6002 import table is not at beginning of .idata section.
6003
6004 2020-04-16 Pedro Alves <palves@redhat.com>
6005
6006 * inferior.c (delete_inferior): Use delete operator directly
6007 instead of delete_program_space.
6008 * progspace.c (add_program_space): New, factored out from
6009 program_space::program_space.
6010 (remove_program_space): New, factored out from
6011 delete_program_space.
6012 (program_space::program_space): Remove intro comment. Rewrite.
6013 (program_space::~program_space): Remove intro comment. Call
6014 remove_program_space.
6015 (delete_program_space): Delete.
6016 * progspace.h (program_space::program_space): Make explicit. Move
6017 intro comment here, adjusted.
6018 (program_space::~program_space): Move intro comment here,
6019 adjusted.
6020 (delete_program_space): Remove.
6021
6022 2020-04-16 Tom Tromey <tromey@adacore.com>
6023
6024 * windows-nat.c (windows_nat::handle_access_violation): New
6025 function.
6026 * nat/windows-nat.h (handle_access_violation): Declare.
6027 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6028 windows-nat.c. Call handle_access_violation.
6029
6030 2020-04-16 Tom de Vries <tdevries@suse.de>
6031
6032 PR symtab/25791
6033 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6034 CUs without psymtab.
6035
6036 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6037
6038 * python/python.c (do_start_initialization): Don't call
6039 PyEval_InitThreads for Python 3.9 and beyond.
6040
6041 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6042
6043 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6044 thread functions.
6045 (obsd_nat_target::wait): Likewise.
6046
6047 2020-04-15 Tom Tromey <tromey@adacore.com>
6048
6049 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6050 (DEBUG_EXCEPT): Use debug_printf.
6051
6052 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6053
6054 * completer.c (class completion_tracker::completion_hash_entry)
6055 <hash_name>: New member function.
6056 (completion_tracker::discard_completions): New callback to hash a
6057 completion_hash_entry, pass this to htab_create_alloc.
6058
6059 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6060
6061 * windows-nat.c (windows_make_so): Warn rather than stopping with
6062 an error if realpath() fails.
6063
6064 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6065
6066 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6067 (nbsd_nat_target::info_proc): Add do_status.
6068
6069 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6070 Tom de Vries <tdevries@suse.de>
6071
6072 PR symtab/25718
6073 * psympriv.h (struct partial_symtab::read_symtab)
6074 (struct partial_symtab::expand_psymtab)
6075 (struct partial_symtab::read_dependencies): Update comments.
6076 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6077 read_symtab for includer.
6078 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6079 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6080 (struct dwarf2_include_psymtab::m_readin): Remove.
6081 (struct dwarf2_include_psymtab::includer): New member function.
6082 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6083
6084 2020-04-14 Tom de Vries <tdevries@suse.de>
6085
6086 PR symtab/25720
6087 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6088 with NULL symbol_matcher and lookup_name.
6089 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6090 and lookup_name.
6091 * dwarf2/read.c (dw2_expand_symtabs_matching)
6092 (dw2_debug_names_expand_symtabs_matching): Same.
6093 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6094 Make lookup_name a pointer. Update comment.
6095 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6096 lookup_name being a pointer.
6097 * symfile.c (expand_symtabs_matching): Same.
6098 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6099 * linespec.c (iterate_over_all_matching_symtabs): Same.
6100
6101 2020-04-13 Tom Tromey <tom@tromey.com>
6102
6103 * run-on-main-thread.c: Update include.
6104 * unittests/main-thread-selftests.c: Update include.
6105 * tui/tui-win.c: Update include.
6106 * tui/tui-io.c: Update include.
6107 * tui/tui-interp.c: Update include.
6108 * tui/tui-hooks.c: Update include.
6109 * top.h: Update include.
6110 * top.c: Update include.
6111 * ser-base.c: Update include.
6112 * remote.c: Update include.
6113 * remote-notif.c: Update include.
6114 * remote-fileio.c: Update include.
6115 * record-full.c: Update include.
6116 * record-btrace.c: Update include.
6117 * python/python.c: Update include.
6118 * posix-hdep.c: Update include.
6119 * mingw-hdep.c: Update include.
6120 * mi/mi-main.c: Update include.
6121 * mi/mi-interp.c: Update include.
6122 * main.c: Update include.
6123 * linux-nat.c: Update include.
6124 * interps.c: Update include.
6125 * infrun.c: Update include.
6126 * inf-loop.c: Update include.
6127 * event-top.c: Update include.
6128 * event-loop.c: Move to ../gdbsupport/.
6129 * event-loop.h: Move to ../gdbsupport/.
6130 * async-event.h: Update include.
6131 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6132
6133 2020-04-13 Tom Tromey <tom@tromey.com>
6134
6135 * tui/tui-win.c: Include async-event.h.
6136 * remote.c: Include async-event.h.
6137 * remote-notif.c: Include async-event.h.
6138 * record-full.c: Include async-event.h.
6139 * record-btrace.c: Include async-event.h.
6140 * infrun.c: Include async-event.h.
6141 * event-top.c: Include async-event.h.
6142 * event-loop.h: Move some declarations to async-event.h.
6143 * event-loop.c: Don't include ser-event.h or top.h. Move some
6144 code to async-event.c.
6145 * async-event.h: New file.
6146 * async-event.c: New file.
6147 * Makefile.in (COMMON_SFILES): Add async-event.c.
6148 (HFILES_NO_SRCDIR): Add async-event.h.
6149
6150 2020-04-13 Tom Tromey <tom@tromey.com>
6151
6152 * utils.c (flush_streams): New function.
6153 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6154
6155 2020-04-13 Tom Tromey <tom@tromey.com>
6156
6157 * event-loop.c (handle_file_event): Use warning, not
6158 printf_unfiltered.
6159
6160 2020-04-13 Tom Tromey <tom@tromey.com>
6161
6162 * event-loop.c: Include <chrono>.
6163
6164 2020-04-13 Tom Tromey <tom@tromey.com>
6165
6166 * gdb_select.h: Move to ../gdbsupport/.
6167 * event-loop.c: Update include path.
6168 * top.c: Update include path.
6169 * ser-base.c: Update include path.
6170 * ui-file.c: Update include path.
6171 * ser-tcp.c: Update include path.
6172 * guile/scm-ports.c: Update include path.
6173 * posix-hdep.c: Update include path.
6174 * ser-unix.c: Update include path.
6175 * gdb_usleep.c: Update include path.
6176 * mingw-hdep.c: Update include path.
6177 * inflow.c: Update include path.
6178 * infrun.c: Update include path.
6179 * event-top.c: Update include path.
6180
6181 2020-04-13 Tom Tromey <tom@tromey.com>
6182
6183 * configure: Rebuild.
6184 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6185
6186 2020-04-13 Tom Tromey <tom@tromey.com>
6187
6188 * event-loop.h (start_event_loop): Don't declare.
6189 * event-loop.c (start_event_loop): Move...
6190 * main.c (start_event_loop): ...here. Now static.
6191
6192 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6193
6194 * MAINTAINERS: Update my email address.
6195
6196 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6197
6198 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6199 IP_ALL.
6200
6201 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6202
6203 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6204 (nbsd_nat_target::info_proc): Add do_cmdline.
6205
6206 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6207
6208 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6209 (nbsd_nat_target::info_proc): Add do_cwd.
6210
6211 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6212
6213 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6214
6215 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6216
6217 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6218 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6219 (nbsd_nat_target::info_proc): New functions.
6220 * nbsd-nat.c (kinfo_get_vmmap): New function.
6221 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6222 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6223 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6224 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6225 functions.
6226 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6227 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6228 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6229 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6230 (KINFO_VME_FLAG_GROWS_DOWN): New.
6231
6232 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6233
6234 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6235 bit shift.
6236
6237 2020-04-10 Tom Tromey <tromey@adacore.com>
6238
6239 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6240
6241 2020-04-10 Tom Tromey <tromey@adacore.com>
6242
6243 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6244 separate debug files.
6245
6246 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6247
6248 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6249 Move to...
6250 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6251 ... here.
6252 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6253 Check for STATUS_WX86_BREAKPOINT.
6254 (windows_nat_target::wait): Same.
6255
6256 2020-04-10 Tom de Vries <tdevries@suse.de>
6257
6258 PR cli/25808
6259 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6260
6261 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6262
6263 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6264 (Write After Approval): Remove Tom de Vries.
6265
6266 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6267
6268 revert partially:
6269 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6270
6271 * buildsym.c (record_line): Fix undefined behavior and preserve
6272 lines at eof.
6273
6274 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6275
6276 * auxv.h (svr4_auxv_parse): New.
6277 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6278 and generic_auxv_parse.
6279 (svr4_auxv_parse): Add.
6280 * obsd-tdep.c: Include "auxv.h".
6281 (obsd_auxv_parse): Remove.
6282 (obsd_init_abi): Remove comment.
6283 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6284 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6285 * nbsd-tdep.c: Include "auxv.h".
6286 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6287
6288 2020-04-08 Tom Tromey <tromey@adacore.com>
6289
6290 * nat/windows-nat.h (last_wait_event): Don't declare.
6291 (wait_for_debug_event): Update comment.
6292 * nat/windows-nat.c (last_wait_event): Now static.
6293
6294 2020-04-08 Tom Tromey <tromey@adacore.com>
6295
6296 * windows-nat.c (wait_for_debug_event): Move to
6297 nat/windows-nat.c.
6298 * nat/windows-nat.h (wait_for_debug_event): Declare.
6299 * nat/windows-nat.c (wait_for_debug_event): Move from
6300 windows-nat.c. No longer static.
6301
6302 2020-04-08 Tom Tromey <tromey@adacore.com>
6303
6304 * windows-nat.c (get_windows_debug_event): Use
6305 fetch_pending_stop.
6306 * nat/windows-nat.h (fetch_pending_stop): Declare.
6307 * nat/windows-nat.c (fetch_pending_stop): New function.
6308
6309 2020-04-08 Tom Tromey <tromey@adacore.com>
6310
6311 * windows-nat.c (windows_continue): Use matching_pending_stop and
6312 continue_last_debug_event.
6313 * nat/windows-nat.h (matching_pending_stop)
6314 (continue_last_debug_event): Declare.
6315 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6316 (matching_pending_stop, continue_last_debug_event): New
6317 functions.
6318
6319 2020-04-08 Tom Tromey <tromey@adacore.com>
6320
6321 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6322 (handle_exception_result): Move to nat/windows-nat.h.
6323 (DEBUG_EXCEPTION_SIMPLE): Remove.
6324 (windows_nat::handle_ms_vc_exception): New function.
6325 (handle_exception): Move to nat/windows-nat.c.
6326 (get_windows_debug_event): Update.
6327 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6328 nat/windows-nat.c.
6329 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6330 (handle_exception_result): Move from windows-nat.c.
6331 (handle_exception): Declare.
6332 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6333 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6334 windows-nat.c.
6335
6336 2020-04-08 Tom Tromey <tromey@adacore.com>
6337
6338 * windows-nat.c (exception_count, event_count): Remove.
6339 (handle_exception, get_windows_debug_event)
6340 (do_initial_windows_stuff): Update.
6341
6342 2020-04-08 Tom Tromey <tromey@adacore.com>
6343
6344 * windows-nat.c (windows_nat::handle_load_dll)
6345 (windows_nat::handle_unload_dll): Rename. No longer static.
6346 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6347 Declare.
6348
6349 2020-04-08 Tom Tromey <tromey@adacore.com>
6350
6351 * complaints.h (stop_whining): Declare at top-level.
6352 (complaint): Don't declare stop_whining.
6353
6354 2020-04-08 Tom Tromey <tromey@adacore.com>
6355
6356 * windows-nat.c (windows_nat::handle_output_debug_string):
6357 Rename. No longer static.
6358 * nat/windows-nat.h (handle_output_debug_string): Declare.
6359
6360 2020-04-08 Tom Tromey <tromey@adacore.com>
6361
6362 * windows-nat.c (current_process_handle, current_process_id)
6363 (main_thread_id, last_sig, current_event, last_wait_event)
6364 (current_windows_thread, desired_stop_thread_id, pending_stops)
6365 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6366 (display_selectors, fake_create_process)
6367 (get_windows_debug_event): Update.
6368 * nat/windows-nat.h (current_process_handle, current_process_id)
6369 (main_thread_id, last_sig, current_event, last_wait_event)
6370 (current_windows_thread, desired_stop_thread_id, pending_stops)
6371 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6372 * nat/windows-nat.c (current_process_handle, current_process_id)
6373 (main_thread_id, last_sig, current_event, last_wait_event)
6374 (current_windows_thread, desired_stop_thread_id, pending_stops)
6375 (siginfo_er): New globals. Move from windows-nat.c.
6376
6377 2020-04-08 Tom Tromey <tromey@adacore.com>
6378
6379 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6380 (handle_load_dll): Update.
6381 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6382
6383 2020-04-08 Tom Tromey <tromey@adacore.com>
6384
6385 * windows-nat.c (enum thread_disposition_type): Move to
6386 nat/windows-nat.h.
6387 (windows_nat::thread_rec): Rename from thread_rec. No longer
6388 static.
6389 (windows_add_thread, windows_nat_target::fetch_registers)
6390 (windows_nat_target::store_registers, handle_exception)
6391 (windows_nat_target::resume, get_windows_debug_event)
6392 (windows_nat_target::get_tib_address)
6393 (windows_nat_target::thread_name)
6394 (windows_nat_target::thread_alive): Update.
6395 * nat/windows-nat.h (enum thread_disposition_type): Move from
6396 windows-nat.c.
6397 (thread_rec): Declare.
6398
6399 2020-04-08 Tom Tromey <tromey@adacore.com>
6400
6401 * windows-nat.c: Add "using namespace".
6402 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6403 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6404
6405 2020-04-08 Tom Tromey <tromey@adacore.com>
6406
6407 * nat/windows-nat.h (struct windows_thread_info): Declare
6408 destructor.
6409 * nat/windows-nat.c (~windows_thread_info): New.
6410
6411 2020-04-08 Tom Tromey <tromey@adacore.com>
6412
6413 PR gdb/22992
6414 * windows-nat.c (current_event): Update comment.
6415 (last_wait_event, desired_stop_thread_id): New globals.
6416 (struct pending_stop): New.
6417 (pending_stops): New global.
6418 (windows_nat_target) <stopped_by_sw_breakpoint>
6419 <supports_stopped_by_sw_breakpoint>: New methods.
6420 (windows_fetch_one_register): Add assertions. Adjust PC.
6421 (windows_continue): Handle pending stops. Suspend other threads
6422 when stepping. Use last_wait_event
6423 (wait_for_debug_event): New function.
6424 (get_windows_debug_event): Use wait_for_debug_event. Handle
6425 pending stops. Queue spurious stops.
6426 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6427 (windows_nat_target::kill): Use wait_for_debug_event.
6428 * nat/windows-nat.h (struct windows_thread_info)
6429 <stopped_at_software_breakpoint>: New field.
6430 * nat/windows-nat.c (windows_thread_info::resume): Clear
6431 stopped_at_software_breakpoint.
6432
6433 2020-04-08 Tom Tromey <tromey@adacore.com>
6434
6435 * windows-nat.c (enum thread_disposition_type): New.
6436 (thread_rec): Replace "get_context" parameter with "disposition";
6437 change type.
6438 (windows_add_thread, windows_nat_target::fetch_registers)
6439 (windows_nat_target::store_registers, handle_exception)
6440 (windows_nat_target::resume, get_windows_debug_event)
6441 (windows_nat_target::get_tib_address)
6442 (windows_nat_target::thread_name)
6443 (windows_nat_target::thread_alive): Update.
6444
6445 2020-04-08 Tom Tromey <tromey@adacore.com>
6446
6447 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6448 (windows_continue): Use windows_continue::resume.
6449 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6450 resume>: Declare new methods.
6451 * nat/windows-nat.c: New file.
6452 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6453
6454 2020-04-08 Tom Tromey <tromey@adacore.com>
6455
6456 * windows-nat.c (windows_add_thread, windows_delete_thread)
6457 (windows_nat_target::fetch_registers)
6458 (windows_nat_target::store_registers, fake_create_process)
6459 (windows_nat_target::resume, windows_nat_target::resume)
6460 (get_windows_debug_event, windows_nat_target::wait)
6461 (windows_nat_target::pid_to_str)
6462 (windows_nat_target::get_tib_address)
6463 (windows_nat_target::get_ada_task_ptid)
6464 (windows_nat_target::thread_name)
6465 (windows_nat_target::thread_alive): Use lwp, not tid.
6466
6467 2020-04-08 Tom Tromey <tromey@adacore.com>
6468
6469 * windows-nat.c (handle_exception)
6470 (windows_nat_target::thread_name): Update.
6471 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6472 <name>: Now unique_xmalloc_ptr.
6473
6474 2020-04-08 Tom Tromey <tromey@adacore.com>
6475
6476 * windows-nat.c (thread_rec)
6477 (windows_nat_target::fetch_registers): Update.
6478 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6479 Update comment.
6480 <debug_registers_changed, reload_context>: Now bool.
6481
6482 2020-04-08 Tom Tromey <tromey@adacore.com>
6483
6484 * windows-nat.c (windows_add_thread): Use new.
6485 (windows_init_thread_list, windows_delete_thread): Use delete.
6486 (get_windows_debug_event): Update.
6487 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6488 destructor, and initializers.
6489
6490 2020-04-08 Tom Tromey <tromey@adacore.com>
6491
6492 * windows-nat.c (struct windows_thread_info): Remove.
6493 * nat/windows-nat.h: New file.
6494
6495 2020-04-08 Tom Tromey <tromey@adacore.com>
6496
6497 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6498 (thread_rec, windows_add_thread, windows_delete_thread)
6499 (windows_continue): Update.
6500
6501 2020-04-08 Tom Tromey <tromey@adacore.com>
6502
6503 * windows-nat.c (struct windows_thread_info): Remove typedef.
6504 (thread_head): Remove.
6505 (thread_list): New global.
6506 (thread_rec, windows_add_thread, windows_init_thread_list)
6507 (windows_delete_thread, windows_continue): Update.
6508
6509 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6510
6511 * windows-tdep.h (windows_init_abi): Add comment.
6512 (cygwin_init_abi): New declaration.
6513 * windows-tdep.c: Split signal enumeration in two, one for
6514 Windows and one for Cygwin.
6515 (windows_gdb_signal_to_target): Only deal with signal of the
6516 Windows OS ABI.
6517 (cygwin_gdb_signal_to_target): New function.
6518 (windows_init_abi): Rename to windows_init_abi_common, don't set
6519 gdb_signal_to_target gdbarch method. Add new new function with
6520 this name.
6521 (cygwin_init_abi): New function.
6522 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6523 comment. Don't call windows_init_abi.
6524 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6525 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6526 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6527 i386_windows_init_abi_common, don't call windows_init_abi. Add
6528 a new function of this name.
6529 (i386_cygwin_init_abi): New function.
6530 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6531 OS ABI Cygwin.
6532
6533 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6534
6535 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6536 parameter.c.
6537 (dwarf2_read_gdb_index): Update.
6538
6539 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6540
6541 * nbsd-tdep.c: Include "objfiles.h".
6542 (nbsd_skip_solib_resolver): New.
6543 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6544
6545 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6546
6547 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6548 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6549 with DW_LLE_base_addressx are being emitted in DWARFv5.
6550 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6551 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6552 unsigned integer.
6553
6554 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6555
6556 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6557 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6558 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6559 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6560 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6561 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6562 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6563
6564
6565 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6566
6567 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6568 (read_loclist_index): New function definition.
6569 (lookup_loclist_base): New function definition.
6570 (read_loclist_header): New function definition.
6571 (dwarf2_cu): Add loclist_base and loclist_header field.
6572 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6573 (read_full_die_1): Read the value of DW_AT_loclists_base.
6574 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6575 (read_attribute_value): Handle DW_FORM_loclistx.
6576 (skip_one_die): Handle DW_FORM_loclistx.
6577 (loclist_header): New structure declaration.
6578 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6579
6580 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6581
6582 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6583 constructor. Remove `addr` parameter from other constructor and
6584 add `per_cu` parameter.
6585 * dwarf2/read.c (create_partial_symtab): Update.
6586
6587 2020-04-07 Tom de Vries <tdevries@suse.de>
6588
6589 PR symtab/25796
6590 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6591 (partial_die_info::fixup): Inherit has_const_value.
6592
6593 2020-04-07 Tom de Vries <tdevries@suse.de>
6594
6595 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6596 symbols without address.
6597
6598 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6599
6600 * nbsd-nat.h (struct thread_info): Add forward declaration.
6601 (nbsd_nat_target::thread_alive): Add.
6602 (nbsd_nat_target::thread_name): Likewise.
6603 (nbsd_nat_target::update_thread_list): Likewise.
6604 (update_thread_list::post_attach): Likewise.
6605 (post_attach::pid_to_str): Likewise.
6606 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6607 (nbsd_thread_lister): Add.
6608 (nbsd_nat_target::thread_alive): Likewise.
6609 (nbsd_nat_target::thread_name): Likewise.
6610 (nbsd_add_threads): Likewise.
6611 (update_thread_list::post_attach): Likewise.
6612 (nbsd_nat_target::update_thread_list): Likewise.
6613 (post_attach::pid_to_str): Likewise.
6614
6615 2020-04-06 Tom Tromey <tromey@adacore.com>
6616
6617 * ada-valprint.c (print_variant_part): Extract the variant field.
6618 (print_field_values): Use the field as the outer value when
6619 recursing.
6620
6621 2020-04-06 Tom Tromey <tromey@adacore.com>
6622
6623 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6624 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6625 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6626 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6627 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6628
6629 2020-04-06 Tom Tromey <tromey@adacore.com>
6630
6631 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6632 TYPE_CODE_ERROR.
6633
6634 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6635
6636 * nbsd-tdep.c: Include "gdbarch.h".
6637 Define enum with NetBSD signal numbers.
6638 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6639 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6640 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6641 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6642 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6643 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6644 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6645 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6646 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6647 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6648 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6649 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6650
6651 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6652
6653 PR gdb/25325
6654 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6655
6656 2020-04-03 Tom Tromey <tromey@adacore.com>
6657
6658 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6659 Read constant block.
6660
6661 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6662
6663 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6664 (gdb_bfd_get_full_section_contents): New declaration.
6665 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6666 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6667 gdb_bfd_get_full_section_contents.
6668
6669 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6670
6671 * exec.c (build_section_table): Replace internal_error with
6672 gdb_assert.
6673 (section_table_xfer_memory_partial): Likewise.
6674 * mdebugread.c (parse_partial_symbols): Likewise.
6675 * psymtab.c (lookup_partial_symbol): Likewise.
6676 * utils.c (wrap_here): Likewise.
6677
6678 2020-04-02 Tom Tromey <tromey@adacore.com>
6679
6680 * f-lang.c (build_fortran_types): Use arch_type to initialize
6681 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6682
6683 2020-04-02 Tom Tromey <tromey@adacore.com>
6684
6685 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6686 of attributes.
6687
6688 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6689 Bernd Edlinger <bernd.edlinger@hotmail.de>
6690 Tom Tromey <tromey@adacore.com>
6691
6692 * buildsym.c (buildsym_compunit::record_line): Remove
6693 deduplication code.
6694
6695 2020-04-02 Tom de Vries <tdevries@suse.de>
6696
6697 PR ada/24671
6698 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6699
6700 2020-04-02 Tom de Vries <tdevries@suse.de>
6701
6702 * dwarf2/read.c (dwarf2_gdb_index_functions,
6703 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6704 NULL.
6705 * psymtab.c (psym_lookup_global_symbol_language): New function.
6706 (psym_functions): Init psym_lookup_global_symbol_language with
6707 psym_lookup_global_symbol_language.
6708 * symfile-debug.c (debug_sym_quick_functions): Init
6709 lookup_global_symbol_language with NULL.
6710 * symfile.c (set_initial_language): Remove fixme comment.
6711 * symfile.h (struct quick_symbol_functions): Add
6712 lookup_global_symbol_language.
6713 * symtab.c (find_quick_global_symbol_language): New function.
6714 (find_main_name): Use find_quick_global_symbol_language.
6715
6716 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6717
6718 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6719
6720 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6721
6722 * buildsym.c (record_line): Fix undefined behavior and preserve
6723 lines at eof.
6724
6725 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6726
6727 * buildsym.c (record_line): Fix the resizing condition.
6728
6729 2020-04-01 Tom Tromey <tom@tromey.com>
6730
6731 * value.h (value_literal_complex): Add comment.
6732 * valops.c (value_literal_complex): Refer to value.h.
6733
6734 2020-04-01 Tom Tromey <tom@tromey.com>
6735
6736 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6737 (scalar_type): New rule, from typebase.
6738 (typebase): Use scalar_type. Recognize complex types.
6739 (field_name): Handle FLOAT_KEYWORD.
6740 (ident_tokens): Add _Complex and __complex__.
6741
6742 2020-04-01 Tom Tromey <tom@tromey.com>
6743
6744 PR exp/25299:
6745 * valarith.c (promotion_type, complex_binop): New functions.
6746 (scalar_binop): Handle complex numbers. Use promotion_type.
6747 (value_pos, value_neg, value_complement): Handle complex numbers.
6748
6749 2020-04-01 Tom Tromey <tom@tromey.com>
6750
6751 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6752 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6753 (parse_number): Handle complex numbers.
6754
6755 2020-04-01 Tom Tromey <tom@tromey.com>
6756
6757 * c-valprint.c (c_decorations): Change complex suffix to "i".
6758
6759 2020-04-01 Tom Tromey <tom@tromey.com>
6760
6761 * valprint.c (generic_value_print_complex): Use accessors.
6762 * value.h (value_real_part, value_imaginary_part): Declare.
6763 * valops.c (value_real_part, value_imaginary_part): New
6764 functions.
6765 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6766
6767 2020-04-01 Tom Tromey <tom@tromey.com>
6768
6769 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6770 (read_range_type): Update.
6771 * mdebugread.c (basic_type): Update.
6772 * go-lang.c (build_go_types): Use init_complex_type.
6773 * gdbtypes.h (struct main_type) <complex_type>: New member.
6774 (init_complex_type): Update.
6775 (arch_complex_type): Don't declare.
6776 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6777 Make name if none given. Use alloc_type_copy. Look for cached
6778 complex type.
6779 (arch_complex_type): Remove.
6780 (gdbtypes_post_init): Use init_complex_type.
6781 * f-lang.c (build_fortran_types): Use init_complex_type.
6782 * dwarf2/read.c (read_base_type): Update.
6783 * d-lang.c (build_d_types): Use init_complex_type.
6784 * ctfread.c (read_base_type): Update.
6785
6786 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6787
6788 * infrun.c (stop_all_threads): Update assertion, plus when
6789 stopping threads, take into account that we might be trying
6790 to stop an all-stop target.
6791 (stop_waiting): Call 'stop_all_threads' if there exists a
6792 non-stop target.
6793
6794 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6795
6796 * target.h (exists_non_stop_target): New function declaration.
6797 * target.c (exists_non_stop_target): New function.
6798
6799 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6800
6801 PR gdb/24789
6802 * eval.c (is_integral_or_integral_reference): New function.
6803 (evaluate_subexp_standard): Allow integer references in
6804 pointer arithmetic.
6805
6806 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6807
6808 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6809 check for no ptid in the stop reply when the target is non-stop.
6810
6811 2020-04-01 Tom Tromey <tromey@adacore.com>
6812
6813 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6814 "name" parameter to rvalue reference. Initialize m_name_holder.
6815 <lookup_name_info>: New overloads.
6816 <name>: Return gdb::string_view.
6817 <c_str>: New method.
6818 <make_ignore_params>: Update.
6819 <search_name_hash>: Update.
6820 <language_lookup_name>: Return const char *.
6821 <m_name>: Change type.
6822 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6823 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6824 (lookup_name_info::match_any): Update.
6825 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6826 Update.
6827 * minsyms.c (linkage_name_str): Update.
6828 * language.c (default_symbol_name_matcher): Update.
6829 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6830 Update.
6831 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6832 (ada_lookup_name_info::ada_lookup_name_info): Update.
6833 (literal_symbol_name_matcher): Update.
6834
6835 2020-04-01 Tom Tromey <tromey@adacore.com>
6836
6837 * psymtab.c (psymtab_search_name): Remove function.
6838 (psym_lookup_symbol): Create search name and lookup name here.
6839 (lookup_partial_symbol): Remove "name" parameter; add
6840 lookup_name.
6841 (psym_expand_symtabs_for_function): Update.
6842
6843 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6844
6845 PR tui/25597:
6846 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6847
6848 2020-03-31 Tom Tromey <tromey@adacore.com>
6849
6850 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6851 memcpy.
6852
6853 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6854
6855 * features/riscv/32bit-csr.xml: Regenerated.
6856 * features/riscv/64bit-csr.xml: Regenerated.
6857
6858 2020-03-30 Tom Tromey <tromey@adacore.com>
6859
6860 * ada-valprint.c (print_variant_part): Update.
6861 * ada-lang.h (ada_which_variant_applies): Update.
6862 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6863 outer_valaddr parameters; replace with "outer" value parameter.
6864 (to_fixed_variant_branch_type): Update.
6865
6866 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6867
6868 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6869 <list>. Remove inclusion of observable.h.
6870 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6871 (struct arch_lwp_info): New struct.
6872 (class ppc_linux_dreg_interface): New class.
6873 (struct ppc_linux_process_info): New struct.
6874 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6875 <low_new_clone, low_forget_process, low_prepare_to_resume>
6876 <copy_thread_dreg_state, mark_thread_stale>
6877 <mark_debug_registers_changed, register_hw_breakpoint>
6878 <clear_hw_breakpoint, register_wp, clear_wp>
6879 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6880 <num_memory_accesses, get_trigger_type>
6881 <create_watchpoint_request, hwdebug_point_cmp>
6882 <init_arch_lwp_info, get_arch_lwp_info>
6883 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6884 methods.
6885 <struct ptid_hash>: New inner struct.
6886 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6887 members.
6888 (saved_dabr_value, hwdebug_info, max_slots_number)
6889 (struct hw_break_tuple, struct thread_points, ppc_threads)
6890 (have_ptrace_hwdebug_interface)
6891 (hwdebug_find_thread_points_by_tid)
6892 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6893 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6894 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6895 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6896 use m_dreg_interface.
6897 (hwdebug_point_cmp): Change to...
6898 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6899 reference arguments instead of pointers.
6900 (ppc_linux_nat_target::ranged_break_num_registers): Use
6901 m_dreg_interface.
6902 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6903 m_dreg_interface. Call register_hw_breakpoint.
6904 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6905 m_dreg_interface. Call clear_hw_breakpoint.
6906 (get_trigger_type): Change to...
6907 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6908 comment.
6909 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6910 use m_dreg_interface. Call register_hw_breakpoint.
6911 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6912 use m_dreg_interface. Call clear_hw_breakpoint.
6913 (can_use_watchpoint_cond_accel): Change to...
6914 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6915 method. Update comment, use m_dreg_interface and
6916 m_process_info.
6917 (calculate_dvc): Change to...
6918 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6919 m_dreg_interface.
6920 (num_memory_accesses): Change to...
6921 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6922 (check_condition): Change to...
6923 (ppc_linux_nat_target::check_condition): ...this method.
6924 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6925 comment, use m_dreg_interface.
6926 (create_watchpoint_request): Change to...
6927 (ppc_linux_nat_target::create_watchpoint_request): ...this
6928 method. Use m_dreg_interface.
6929 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6930 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6931 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6932 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6933 (ppc_linux_nat_target::low_forget_process)
6934 (ppc_linux_nat_target::low_new_fork)
6935 (ppc_linux_nat_target::low_new_clone)
6936 (ppc_linux_nat_target::low_delete_thread)
6937 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6938 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6939 only call mark_thread_stale.
6940 (ppc_linux_thread_exit): Remove.
6941 (ppc_linux_nat_target::stopped_data_address): Change to...
6942 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6943 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6944 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6945 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6946 comment. Call low_stopped_data_address.
6947 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6948 m_dreg_interface.
6949 (ppc_linux_nat_target::masked_watch_num_registers): Use
6950 m_dreg_interface.
6951 (ppc_linux_nat_target::copy_thread_dreg_state)
6952 (ppc_linux_nat_target::mark_thread_stale)
6953 (ppc_linux_nat_target::mark_debug_registers_changed)
6954 (ppc_linux_nat_target::register_hw_breakpoint)
6955 (ppc_linux_nat_target::clear_hw_breakpoint)
6956 (ppc_linux_nat_target::register_wp)
6957 (ppc_linux_nat_target::clear_wp)
6958 (ppc_linux_nat_target::init_arch_lwp_info)
6959 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6960 (_initialize_ppc_linux_nat): Remove observer callback.
6961
6962 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6963
6964 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6965 (ppc_linux_nat_target::auxv_parse)
6966 (ppc_linux_nat_target::read_description)
6967 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6968 Move up.
6969
6970 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6971
6972 * linux-nat.h (low_new_clone): New method.
6973 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6974
6975 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6976
6977 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6978 (dbx_expand_psymtab): ... this.
6979 (start_psymtab): Update.
6980 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6981 (mdebug_expand_psymtab): ... this.
6982 (parse_partial_symbols): Update.
6983 (new_psymtab): Update.
6984 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6985 (xcoff_expand_psymtab): ... this.
6986 (xcoff_start_psymtab): Update.
6987
6988 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6989
6990 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6991 <expand_dependencies>: ... this.
6992 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6993 (partial_symtab::expand_dependencies): ... this.
6994 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6995 Update.
6996 (dwarf2_psymtab::expand_psymtab): Update.
6997 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6998 * mdebugread.c (psymtab_to_symtab_1): Update.
6999 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7000
7001 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7002
7003 * psympriv.h (discard_psymtab): Remove.
7004 * dbxread.c (dbx_end_psymtab): Update.
7005 * xcoffread.c (xcoff_end_psymtab): Update.
7006
7007 2020-03-28 Tom Tromey <tom@tromey.com>
7008
7009 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7010 comment.
7011
7012 2020-03-28 Tom Tromey <tom@tromey.com>
7013
7014 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7015
7016 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7017
7018 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7019
7020 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7021
7022 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7023
7024 2020-03-26 Tom Tromey <tom@tromey.com>
7025
7026 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7027 (mark_common_block_symbol_computed, read_tag_string_type)
7028 (attr_to_dynamic_prop, read_subrange_type): Update.
7029 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7030 to be methods on struct attribute.
7031 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7032 (read_call_site_scope, partial_die_info::read)
7033 (partial_die_info::read, lookup_die_type, follow_die_ref):
7034 Update.
7035 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7036 from dwarf2_get_ref_die_offset.
7037 (attribute::constant_value): New method, from
7038 dwarf2_get_attr_constant_value.
7039 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7040 Declare method.
7041 <constant_value>: New method.
7042
7043 2020-03-26 Tom Tromey <tom@tromey.com>
7044
7045 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7046 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7047 (dwarf_type_encoding_name): Move to stringify.c.
7048 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7049 * dwarf2/stringify.c: New file.
7050 * dwarf2/stringify.h: New file.
7051
7052 2020-03-26 Tom Tromey <tom@tromey.com>
7053
7054 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7055 Rewrite.
7056
7057 2020-03-26 Tom Tromey <tom@tromey.com>
7058
7059 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7060 methods.
7061 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7062 (lookup_ranges_base): Likewise.
7063 (read_cutu_die_from_dwo, read_full_die_1): Update.
7064
7065 2020-03-26 Tom Tromey <tom@tromey.com>
7066
7067 * dwarf2/read.c (read_import_statement, read_file_scope)
7068 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7069 (read_lexical_block_scope, read_call_site_scope)
7070 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7071 (handle_struct_member_die, process_structure_scope)
7072 (update_enumeration_type_from_children)
7073 (process_enumeration_scope, read_array_type, read_common_block)
7074 (read_namespace, read_module, read_subroutine_type): Update.
7075 (sibling_die): Remove.
7076
7077 2020-03-26 Tom Tromey <tom@tromey.com>
7078
7079 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7080 (build_type_psymtabs_reader, read_structure_type)
7081 (read_enumeration_type, read_full_die_1): Update.
7082 (dwarf2_attr_no_follow): Move to die.h.
7083 * dwarf2/die.h (struct die_info) <attr>: New method.
7084
7085 2020-03-26 Tom Tromey <tom@tromey.com>
7086
7087 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7088 <base_address>: Now an optional.
7089 (dwarf2_find_base_address, dwarf2_rnglists_process)
7090 (dwarf2_ranges_process, fill_in_loclist_baton)
7091 (dwarf2_symbol_mark_computed): Update.
7092
7093 2020-03-26 Tom Tromey <tom@tromey.com>
7094
7095 * dwarf2/read.c (struct die_info): Move to die.h.
7096 * dwarf2/die.h: New file.
7097
7098 2020-03-26 Tom Tromey <tom@tromey.com>
7099
7100 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7101 * dwarf2/read.c
7102 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7103 Move to line-header.c.
7104 (read_checked_initial_length_and_offset, read_formatted_entries):
7105 Likewise.
7106 (dwarf_decode_line_header): Split into two.
7107 * dwarf2/line-header.c
7108 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7109 Move from read.c.
7110 (read_checked_initial_length_and_offset, read_formatted_entries):
7111 Likewise.
7112 (dwarf_decode_line_header): New function, split from read.c.
7113
7114 2020-03-26 Tom Tromey <tom@tromey.com>
7115
7116 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7117 Declare method.
7118 * dwarf2/read.c (read_attribute_value): Update.
7119 (dwarf2_per_objfile::read_line_string): Rename from
7120 read_indirect_line_string.
7121 (read_formatted_entries): Update.
7122
7123 2020-03-26 Tom Tromey <tom@tromey.com>
7124
7125 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7126 variable.
7127
7128 2020-03-26 Tom Tromey <tom@tromey.com>
7129
7130 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7131 const.
7132 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7133 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7134 parameter const.
7135
7136 2020-03-26 Tom Tromey <tom@tromey.com>
7137
7138 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7139 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7140 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7141 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7142
7143 2020-03-26 Tom Tromey <tom@tromey.com>
7144
7145 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7146 file_names_size, file_full_name, file_file_name>: Use const.
7147 <file_name_at, file_names>: Add const overload.
7148 * dwarf2/line-header.c (line_header::file_file_name)
7149 (line_header::file_full_name): Update.
7150
7151 2020-03-26 Tom Tromey <tom@tromey.com>
7152
7153 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7154 (macro_start_file, consume_improper_spaces)
7155 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7156 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7157 (dwarf_decode_macros): Move to macro.c.
7158 * dwarf2/macro.c: New file.
7159 * dwarf2/macro.h: New file.
7160 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7161
7162 2020-03-26 Tom Tromey <tom@tromey.com>
7163
7164 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7165 method.
7166 * dwarf2/section.c: New method. From
7167 read_indirect_string_at_offset_from.
7168 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7169 (read_indirect_string_at_offset_from): Move to section.c.
7170 (read_indirect_string_at_offset): Rewrite.
7171 (read_indirect_line_string_at_offset): Remove.
7172 (read_indirect_string, read_indirect_line_string)
7173 (dwarf_decode_macro_bytes): Update.
7174
7175 2020-03-26 Tom Tromey <tom@tromey.com>
7176
7177 * dwarf2/section.h (struct dwarf2_section_info)
7178 <overload_complaint>: Declare.
7179 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7180 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7181 Rename from dwarf2_section_buffer_overflow_complaint.
7182 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7183 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7184
7185 2020-03-26 Tom Tromey <tom@tromey.com>
7186
7187 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7188 Declare.
7189 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7190 Move from read.c.
7191 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7192 to section.c.
7193
7194 2020-03-26 Tom Tromey <tom@tromey.com>
7195
7196 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7197
7198 2020-03-26 Tom Tromey <tom@tromey.com>
7199
7200 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7201 "builder".
7202 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7203 parameter.
7204 (dwarf_decode_macros): Update.
7205
7206 2020-03-26 Tom Tromey <tom@tromey.com>
7207
7208 * dwarf2/read.c (read_attribute_value): Update.
7209 (read_indirect_string_from_dwz): Move to dwz.c; change into
7210 method.
7211 (dwarf_decode_macro_bytes): Update.
7212 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7213 * dwarf2/dwz.c: New file.
7214 * Makefile.in (COMMON_SFILES): Add dwz.c.
7215
7216 2020-03-26 Tom Tromey <tom@tromey.com>
7217
7218 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7219 * dwarf2/read.c: Add include.
7220 * dwarf2/index-write.c: Add include.
7221 * dwarf2/index-cache.c: Add include.
7222 * dwarf2/dwz.h: New file.
7223
7224 2020-03-25 Tom Tromey <tom@tromey.com>
7225
7226 * compile/compile-object-load.c (get_out_value_type): Mention
7227 correct symbol name in error message.
7228
7229 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7230
7231 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7232
7233 2020-03-25 Tom de Vries <tdevries@suse.de>
7234
7235 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7236 * symmisc.c (dump_symtab_1): Print user and includes fields.
7237 (maintenance_info_symtabs): Same.
7238
7239 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7240
7241 PR gdb/25534
7242 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7243 (riscv_regcache_cooked_write): New function.
7244 (riscv_push_dummy_call): Use new function.
7245 (riscv_return_value): Likewise.
7246
7247 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7248
7249 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7250 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7251 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7252 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7253 * infrun.c (follow_fork): Likewise.
7254 (follow_fork_inferior): Likewise.
7255 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7256 * linux-nat.h (class linux_nat_target): Likewise.
7257 * remote.c (class remote_target) <follow_fork>: Likewise.
7258 (remote_target::follow_fork): Likewise.
7259 * target-delegates.c: Re-generate.
7260 * target.c (default_follow_fork): Likewise.
7261 (target_follow_fork): Likewise.
7262 * target.h (struct target_ops) <follow_fork>: Likewise.
7263 (target_follow_fork): Likewise.
7264
7265 2020-03-24 Tom de Vries <tdevries@suse.de>
7266
7267 * psymtab.c (maintenance_info_psymtabs): Print user field.
7268
7269 2020-03-20 Tom Tromey <tromey@adacore.com>
7270
7271 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7272 const.
7273 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7274 const.
7275
7276 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7277
7278 * ptrace.m4: Don't check for ptrace declaration.
7279 * config.in: Re-generate.
7280 * configure: Re-generate.
7281 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7282 not defined.
7283
7284 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7285
7286 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7287 `PTRACE_TYPE_RET'.
7288 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7289 * sparc-nat.c (gdb_ptrace): Likewise.
7290 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7291
7292 2020-03-20 Tom Tromey <tromey@adacore.com>
7293
7294 * c-exp.y (lex_one_token): Fix assert.
7295
7296 2020-03-20 Tom Tromey <tromey@adacore.com>
7297
7298 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7299 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7300 strncpy call.
7301
7302 2020-03-20 Tom Tromey <tromey@adacore.com>
7303
7304 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7305
7306 2020-03-20 Tom Tromey <tromey@adacore.com>
7307
7308 * ada-valprint.c (print_variant_part): Remove parameters; switch
7309 to value-based API.
7310 (print_field_values): Likewise.
7311 (ada_val_print_struct_union): Likewise.
7312 (ada_value_print_1): Update.
7313
7314 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7315
7316 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7317 nbsd_nat_target instead of inf_ptrace_target.
7318 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7319 nbsd_nat_target.
7320
7321 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7322
7323 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7324 it to the ptrace call.
7325 * (store_registers): Likewise.
7326
7327 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7328
7329 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7330 it to the ptrace call.
7331 * (store_registers): Likewise.
7332
7333 2020-03-19 Luis Machado <luis.machado@linaro.org>
7334
7335 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7336 valid, fetch vg value from ptrace.
7337
7338 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7339 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7340 * inf-ptrace.c: Likewise.
7341 * (gdb_ptrace): Add.
7342 * (inf_ptrace_target::resume): Update.
7343 * (inf_ptrace_target::xfer_partial): Likewise.
7344 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7345 * (inf_ptrace_peek_poke): Update.
7346
7347 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7348
7349 * x86-bsd-nat.c (gdb_ptrace): New.
7350 * (x86bsd_dr_set): Add new argument `ptid'.
7351 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7352 x86bsd_dr_set_addr): Update.
7353
7354 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7355
7356 * remote.c (remote_target::process_stop_reply): Handle events for
7357 all threads differently.
7358
7359 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7360
7361 * completer.c (completion_tracker::remove_completion): Define new
7362 function.
7363 * completer.h (completion_tracker::remove_completion): Declare new
7364 function.
7365 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7366 when adding a C++ function symbol.
7367
7368 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7369
7370 * completer.c (completion_tracker::completion_hash_entry): Define
7371 new class.
7372 (advance_to_filename_complete_word_point): Call
7373 recompute_lowest_common_denominator.
7374 (completion_tracker::completion_tracker): Call discard_completions
7375 to setup the hash table.
7376 (completion_tracker::discard_completions): Allow for being called
7377 from the constructor, pass new equal function, and element deleter
7378 when constructing the hash table. Initialise new class member
7379 variables.
7380 (completion_tracker::maybe_add_completion): Remove use of
7381 m_entries_vec, and store more information into m_entries_hash.
7382 (completion_tracker::recompute_lcd_visitor): New function, most
7383 content taken from...
7384 (completion_tracker::recompute_lowest_common_denominator):
7385 ...here, this now just visits each item in the hash calling the
7386 above visitor.
7387 (completion_tracker::build_completion_result): Remove use of
7388 m_entries_vec, call recompute_lowest_common_denominator.
7389 * completer.h (completion_tracker::have_completions): Remove use
7390 of m_entries_vec.
7391 (completion_tracker::completion_hash_entry): Declare new class.
7392 (completion_tracker::recompute_lowest_common_denominator): Change
7393 function signature.
7394 (completion_tracker::recompute_lcd_visitor): Declare new function.
7395 (completion_tracker::m_entries_vec): Delete.
7396 (completion_tracker::m_entries_hash): Initialize to NULL.
7397 (completion_tracker::m_lowest_common_denominator_valid): New
7398 member variable.
7399 (completion_tracker::m_lowest_common_denominator_max_length): New
7400 member variable.
7401
7402 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7403
7404 * regformats/regdef.h: Put reg in gdb namespace.
7405
7406 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7407
7408 * i386-bsd-nat.c (gdb_ptrace): New.
7409 * (i386bsd_fetch_inferior_registers,
7410 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7411 * (i386bsd_fetch_inferior_registers,
7412 i386bsd_store_inferior_registers) Use gdb_ptrace.
7413
7414 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7415
7416 * amd64-bsd-nat.c (gdb_ptrace): New.
7417 * (amd64bsd_fetch_inferior_registers,
7418 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7419 * (amd64bsd_fetch_inferior_registers,
7420 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7421
7422 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7423
7424 * user-regs.c (user_reg::read): Rename to...
7425 (user_reg::xread): ...this.
7426 * (append_user_reg): Rename argument `read' to `xread'.
7427 * (user_reg_add_builtin): Likewise.
7428 * (user_reg_add): Likewise.
7429 * (value_of_user_reg): Likewise.
7430
7431 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7432
7433 * sparc-nat.c (gdb_ptrace): New.
7434 * sparc-nat.c (sparc_fetch_inferior_registers)
7435 (sparc_store_inferior_registers) Remove obsolete comment.
7436 * sparc-nat.c (sparc_fetch_inferior_registers)
7437 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7438 * sparc-nat.c (sparc_fetch_inferior_registers)
7439 (sparc_store_inferior_registers) Use gdb_ptrace.
7440
7441 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7442
7443 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7444 it to the ptrace call.
7445 * sh-nbsd-nat.c (store_registers): Likewise.
7446
7447 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7448
7449 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7450 nbsd_nat_target instead of inf_ptrace_target.
7451 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7452 nbsd_nat_target.
7453
7454 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7455
7456 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7457
7458 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7459
7460 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7461 <sys/sysctl.h>.
7462 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7463
7464 2020-03-17 Tom de Vries <tdevries@suse.de>
7465
7466 PR gdb/23710
7467 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7468 fields.
7469 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7470 fields.
7471 (process_imported_unit_die): Skip import of c++ CUs.
7472
7473 2020-03-16 Tom Tromey <tom@tromey.com>
7474
7475 * p-valprint.c (pascal_object_print_value): Initialize
7476 base_value.
7477
7478 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7479 Shahab Vahedi <shahab@synopsys.com>
7480
7481 * Makefile.in: Add arch/arc.o
7482 * configure.tgt: Likewise.
7483 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7484 (_initialize_arc_tdep): Don't initialize old target descriptions.
7485 (arc_read_description): New function to cache target descriptions.
7486 * arc-tdep.h (arc_read_description): Add proto type.
7487 * arch/arc.c: New file.
7488 * arch/arc.h: Likewise.
7489 * features/Makefile: Replace old target descriptions with new.
7490 * features/arc-arcompact.c: Remove.
7491 * features/arc-arcompact.xml: Likewise.
7492 * features/arc-v2.c: Likewise
7493 * features/arc-v2.xml: Likewise
7494 * features/arc/aux-arcompact.xml: New file.
7495 * features/arc/aux-v2.xml: Likewise.
7496 * features/arc/core-arcompact.xml: Likewise.
7497 * features/arc/core-v2.xml: Likewise.
7498 * features/arc/aux-arcompact.c: Generate.
7499 * features/arc/aux-v2.c: Likewise.
7500 * features/arc/core-arcompact.c: Likewise.
7501 * features/arc/core-v2.c: Likewise.
7502 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7503
7504 2020-03-16 Tom Tromey <tromey@adacore.com>
7505
7506 PR gdb/25663:
7507 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7508 putting value into bcache.
7509
7510 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7511
7512 PR gdb/21500
7513 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7514 to...
7515 (amd64_windows_init_abi_common): ... this. Don't set size of
7516 long type.
7517 (amd64_windows_init_abi): New function.
7518 (amd64_cygwin_init_abi): New function.
7519 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7520 the Cygwin OS ABI.
7521 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7522 comment.
7523
7524 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7525
7526 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7527 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7528 (pe_import_directory_entry): New struct type.
7529 (is_linked_with_cygwin_dll): New function.
7530 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7531 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7532 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7533
7534 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7535
7536 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7537 i386_cygwin_core_osabi_sniffer.
7538
7539 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7540
7541 * i386-cygwin-tdep.c: Rename to...
7542 * i386-windows-tdep.c: ... this.
7543 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7544 i386-windows-tdep.c.
7545 * configure.tgt: Likewise.
7546
7547 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7548
7549 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7550 * osabi.c (gdb_osabi_names): Add "Windows".
7551 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7552 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7553 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7554 i386_cygwin_osabi_sniffer.
7555 (_initialize_i386_cygwin_tdep): Register OS ABI
7556 GDB_OSABI_WINDOWS for i386.
7557 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7558 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7559 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7560 for x86-64.
7561 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7562 when the target matches '*-*-mingw*'.
7563
7564 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7565
7566 * defs.h (enum gdb_osabi): Move to...
7567 * osabi.h (enum gdb_osabi): ... here.
7568 * gdbarch.sh: Include osabi.h in gdbarch.h.
7569 * gdbarch.h: Re-generate.
7570
7571 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7572
7573 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7574 function.
7575 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7576
7577 2020-03-14 Tom Tromey <tom@tromey.com>
7578
7579 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7580 for C++.
7581 (c_type_print_modifier): Likewise. Add "language" parameter.
7582 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7583 (c_type_print_base_1): Update.
7584 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7585 constants.
7586 * type-stack.c (type_stack::insert): Handle tp_atomic and
7587 tp_restrict.
7588 (type_stack::follow_type_instance_flags): Likewise.
7589 (type_stack::follow_types): Likewise. Merge type-following code.
7590 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7591 (space_identifier, cv_with_space_id)
7592 (const_or_volatile_or_space_identifier_noopt)
7593 (const_or_volatile_or_space_identifier): Remove.
7594 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7595 rules.
7596 (ptr_operator, typebase): Update.
7597 (enum token_flag) <FLAG_C>: New constant.
7598 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7599 "_Atomic".
7600 (lex_one_token): Handle FLAG_C.
7601
7602 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7603
7604 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7605 it to the ptrace call.
7606 * m68k-bsd-nat.c (store_registers): Likewise.
7607
7608 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7609
7610 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7611 gdb_byte *.
7612 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7613 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7614 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7615
7616 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7617
7618 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7619 nbsd_nat_target instead of inf_ptrace_target.
7620 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7621 nbsd_nat_target.
7622
7623 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7624
7625 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7626 register_t.
7627
7628 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7629
7630 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7631 it to the ptrace call.
7632 * alpha-bsd-nat.c (store_registers): Likewise.
7633
7634 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7635
7636 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7637 includes.
7638 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7639 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7640 fill_fpregset): Likewise.
7641
7642 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7643
7644 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7645 nbsd_nat_target instead of inf_ptrace_target.
7646 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7647 nbsd_nat_target.
7648
7649 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7650
7651 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7652 register_t.
7653
7654 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7655
7656 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7657 it to the ptrace call.
7658 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7659 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7660 * arm-nbsd-nat.c (store_register): Likewise.
7661 * arm-nbsd-nat.c (store_regs): Likewise.
7662 * arm-nbsd-nat.c (store_fp_register): Likewise.
7663 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7664
7665 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7666
7667 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7668 nbsd_nat_target instead of inf_ptrace_target.
7669 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7670 nbsd_nat_target.
7671
7672 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7673
7674 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7675 it to the ptrace call.
7676 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7677
7678 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7679
7680 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7681 it to the ptrace call.
7682 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7683
7684 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7685
7686 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7687 gdb_byte *.
7688 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7689
7690 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7691
7692 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7693 instead of inf_ptrace_target.
7694 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7695 nbsd_nat_target.
7696
7697 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7698
7699 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7700 register_t.
7701
7702 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7703
7704 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7705 register_t.
7706
7707 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7708
7709 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7710 register_t.
7711
7712 2020-03-13 Tom Tromey <tom@tromey.com>
7713
7714 * value.h (val_print): Don't declare.
7715 * valprint.h (val_print_array_elements)
7716 (val_print_scalar_formatted, generic_val_print): Don't declare.
7717 * valprint.c (generic_val_print_array): Take a struct value.
7718 (generic_val_print_ptr, generic_val_print_memberptr)
7719 (generic_val_print_bool, generic_val_print_int)
7720 (generic_val_print_char, generic_val_print_complex)
7721 (generic_val_print): Remove.
7722 (generic_value_print): Update.
7723 (do_val_print): Remove unused parameters. Don't call
7724 la_val_print.
7725 (val_print): Remove.
7726 (common_val_print): Update. Don't call value_check_printable.
7727 (val_print_scalar_formatted, val_print_array_elements): Remove.
7728 * rust-lang.c (rust_val_print): Remove.
7729 (rust_language_defn): Update.
7730 * p-valprint.c (pascal_val_print): Remove.
7731 (pascal_value_print_inner): Update.
7732 (pascal_object_print_val_fields, pascal_object_print_val):
7733 Remove.
7734 (pascal_object_print_static_field): Update.
7735 * p-lang.h (pascal_val_print): Don't declare.
7736 * p-lang.c (pascal_language_defn): Update.
7737 * opencl-lang.c (opencl_language_defn): Update.
7738 * objc-lang.c (objc_language_defn): Update.
7739 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7740 * m2-lang.h (m2_val_print): Don't declare.
7741 * m2-lang.c (m2_language_defn): Update.
7742 * language.h (struct language_defn) <la_val_print>: Remove.
7743 * language.c (unk_lang_value_print_inner): Rename. Change
7744 argument types.
7745 (unknown_language_defn, auto_language_defn): Update.
7746 * go-valprint.c (go_val_print): Remove.
7747 * go-lang.h (go_val_print): Don't declare.
7748 * go-lang.c (go_language_defn): Update.
7749 * f-valprint.c (f_val_print): Remove.
7750 * f-lang.h (f_value_print): Don't declare.
7751 * f-lang.c (f_language_defn): Update.
7752 * d-valprint.c (d_val_print): Remove.
7753 * d-lang.h (d_value_print): Don't declare.
7754 * d-lang.c (d_language_defn): Update.
7755 * cp-valprint.c (cp_print_value_fields)
7756 (cp_print_value_fields_rtti, cp_print_value): Remove.
7757 (cp_print_static_field): Update.
7758 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7759 (c_val_print_struct, c_val_print_union, c_val_print_int)
7760 (c_val_print_memberptr, c_val_print): Remove.
7761 * c-lang.h (c_val_print_array, cp_print_value_fields)
7762 (cp_print_value_fields_rtti): Don't declare.
7763 * c-lang.c (c_language_defn, cplus_language_defn)
7764 (asm_language_defn, minimal_language_defn): Update.
7765 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7766 (ada_val_print_enum): Take a struct value.
7767 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7768 (ada_val_print): Remove.
7769 (ada_value_print_1): Update.
7770 (printable_val_type): Remove.
7771 * ada-lang.h (ada_val_print): Don't declare.
7772 * ada-lang.c (ada_language_defn): Update.
7773
7774 2020-03-13 Tom Tromey <tom@tromey.com>
7775
7776 * valprint.c (do_val_print): Update.
7777 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7778 a struct value.
7779 (value_to_value_object_no_release): Declare.
7780 * python/py-value.c (value_to_value_object_no_release): New
7781 function.
7782 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7783 struct value.
7784 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7785 function.
7786 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7787 a struct value.
7788 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7789 Declare.
7790 (gdbscm_apply_val_pretty_printer): Take a struct value.
7791 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7792 value.
7793 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7794 value.
7795 * extension-priv.h (struct extension_language_ops)
7796 <apply_val_pretty_printer>: Take a struct value.
7797 * cp-valprint.c (cp_print_value): Create a struct value.
7798 (cp_print_value): Update.
7799
7800 2020-03-13 Tom Tromey <tom@tromey.com>
7801
7802 * ada-valprint.c (print_field_values): Call common_val_print.
7803
7804 2020-03-13 Tom Tromey <tom@tromey.com>
7805
7806 * ada-valprint.c (val_print_packed_array_elements): Remove
7807 bitoffset and val parameters. Call common_val_print.
7808 (ada_val_print_string): Remove offset, address, and original_value
7809 parameters.
7810 (ada_val_print_array): Update.
7811 (ada_value_print_array): New function.
7812 (ada_value_print_1): Call it.
7813
7814 2020-03-13 Tom Tromey <tom@tromey.com>
7815
7816 * ada-valprint.c (ada_value_print): Use common_val_print.
7817
7818 2020-03-13 Tom Tromey <tom@tromey.com>
7819
7820 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7821
7822 2020-03-13 Tom Tromey <tom@tromey.com>
7823
7824 * ada-valprint.c (ada_value_print_num): New function.
7825 (ada_value_print_1): Use it.
7826
7827 2020-03-13 Tom Tromey <tom@tromey.com>
7828
7829 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7830
7831 2020-03-13 Tom Tromey <tom@tromey.com>
7832
7833 * ada-valprint.c (ada_value_print_ptr): New function.
7834 (ada_value_print_1): Use it.
7835
7836 2020-03-13 Tom Tromey <tom@tromey.com>
7837
7838 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7839 call common_val_print.
7840 (ada_val_print_1): Update.
7841 (ada_value_print_1): New function.
7842 (ada_value_print_inner): Rewrite.
7843
7844 2020-03-13 Tom Tromey <tom@tromey.com>
7845
7846 * cp-valprint.c (cp_print_value_fields): Update.
7847 (cp_print_value): New function.
7848
7849 2020-03-13 Tom Tromey <tom@tromey.com>
7850
7851 * m2-valprint.c (m2_value_print_inner): Use
7852 cp_print_value_fields.
7853 * cp-valprint.c (cp_print_value_fields): New function.
7854 * c-valprint.c (c_value_print_struct): New function.
7855 (c_value_print_inner): Use c_value_print_struct.
7856 * c-lang.h (cp_print_value_fields): Declare.
7857
7858 2020-03-13 Tom Tromey <tom@tromey.com>
7859
7860 * c-valprint.c (c_value_print_array): New function.
7861 (c_value_print_inner): Use it.
7862
7863 2020-03-13 Tom Tromey <tom@tromey.com>
7864
7865 * c-valprint.c (c_value_print_memberptr): New function.
7866 (c_value_print_inner): Use it.
7867
7868 2020-03-13 Tom Tromey <tom@tromey.com>
7869
7870 * c-valprint.c (c_value_print_int): New function.
7871 (c_value_print_inner): Use it.
7872
7873 2020-03-13 Tom Tromey <tom@tromey.com>
7874
7875 * c-valprint.c (c_value_print_ptr): New function.
7876 (c_value_print_inner): Use it.
7877
7878 2020-03-13 Tom Tromey <tom@tromey.com>
7879
7880 * c-valprint.c (c_value_print_inner): Rewrite.
7881
7882 2020-03-13 Tom Tromey <tom@tromey.com>
7883
7884 * valprint.c (generic_value_print_complex): New function.
7885 (generic_value_print): Use it.
7886
7887 2020-03-13 Tom Tromey <tom@tromey.com>
7888
7889 * valprint.c (generic_val_print_float): Don't call
7890 val_print_scalar_formatted.
7891 (generic_val_print, generic_value_print): Update.
7892
7893 2020-03-13 Tom Tromey <tom@tromey.com>
7894
7895 * valprint.c (generic_value_print_char): New function
7896 (generic_value_print): Use it.
7897
7898 2020-03-13 Tom Tromey <tom@tromey.com>
7899
7900 * valprint.c (generic_value_print_int): New function.
7901 (generic_value_print): Use it.
7902
7903 2020-03-13 Tom Tromey <tom@tromey.com>
7904
7905 * valprint.c (generic_value_print_bool): New function.
7906 (generic_value_print): Use it.
7907
7908 2020-03-13 Tom Tromey <tom@tromey.com>
7909
7910 * valprint.c (generic_val_print_func): Simplify.
7911 (generic_val_print, generic_value_print): Update.
7912
7913 2020-03-13 Tom Tromey <tom@tromey.com>
7914
7915 * valprint.c (generic_val_print_flags): Remove.
7916 (generic_val_print, generic_value_print): Update.
7917 (val_print_type_code_flags): Add original_value parameter.
7918
7919 2020-03-13 Tom Tromey <tom@tromey.com>
7920
7921 * valprint.c (generic_val_print): Update.
7922 (generic_value_print): Update.
7923 * valprint.c (generic_val_print_enum): Don't call
7924 val_print_scalar_formatted.
7925
7926 2020-03-13 Tom Tromey <tom@tromey.com>
7927
7928 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7929 * valprint.c (generic_value_print_ptr): New function.
7930
7931 2020-03-13 Tom Tromey <tom@tromey.com>
7932
7933 * valprint.c (generic_value_print): Rewrite.
7934
7935 2020-03-13 Tom Tromey <tom@tromey.com>
7936
7937 * p-valprint.c (pascal_object_print_value_fields)
7938 (pascal_object_print_value): New functions.
7939
7940 2020-03-13 Tom Tromey <tom@tromey.com>
7941
7942 * p-valprint.c (pascal_value_print_inner): Rewrite.
7943
7944 2020-03-13 Tom Tromey <tom@tromey.com>
7945
7946 * f-valprint.c (f_value_print_innner): Rewrite.
7947
7948 2020-03-13 Tom Tromey <tom@tromey.com>
7949
7950 * m2-valprint.c (m2_print_unbounded_array): New overload.
7951 (m2_print_unbounded_array): Update.
7952 (m2_print_array_contents): Take a struct value.
7953 (m2_value_print_inner): Rewrite.
7954
7955 2020-03-13 Tom Tromey <tom@tromey.com>
7956
7957 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7958 (d_value_print_inner): New function.
7959 * d-lang.h (d_value_print_inner): Declare.
7960 * d-lang.c (d_language_defn): Use d_value_print_inner.
7961
7962 2020-03-13 Tom Tromey <tom@tromey.com>
7963
7964 * go-valprint.c (go_value_print_inner): New function.
7965 * go-lang.h (go_value_print_inner): Declare.
7966 * go-lang.c (go_language_defn): Use go_value_print_inner.
7967
7968 2020-03-13 Tom Tromey <tom@tromey.com>
7969
7970 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7971 API.
7972 (rust_val_print): Rewrite.
7973 (rust_value_print_inner): New function, from rust_val_print.
7974 (rust_language_defn): Use rust_value_print_inner.
7975
7976 2020-03-13 Tom Tromey <tom@tromey.com>
7977
7978 * ada-valprint.c (ada_value_print_inner): New function.
7979 * ada-lang.h (ada_value_print_inner): Declare.
7980 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7981
7982 2020-03-13 Tom Tromey <tom@tromey.com>
7983
7984 * f-valprint.c (f_value_print_innner): New function.
7985 * f-lang.h (f_value_print_innner): Declare.
7986 * f-lang.c (f_language_defn): Use f_value_print_innner.
7987
7988 2020-03-13 Tom Tromey <tom@tromey.com>
7989
7990 * p-valprint.c (pascal_value_print_inner): New function.
7991 * p-lang.h (pascal_value_print_inner): Declare.
7992 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7993
7994 2020-03-13 Tom Tromey <tom@tromey.com>
7995
7996 * m2-valprint.c (m2_value_print_inner): New function.
7997 * m2-lang.h (m2_value_print_inner): Declare.
7998 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7999
8000 2020-03-13 Tom Tromey <tom@tromey.com>
8001
8002 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8003 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8004 * c-valprint.c (c_value_print_inner): New function.
8005 * c-lang.h (c_value_print_inner): Declare.
8006 * c-lang.c (c_language_defn, cplus_language_defn)
8007 (asm_language_defn, minimal_language_defn): Use
8008 c_value_print_inner.
8009
8010 2020-03-13 Tom Tromey <tom@tromey.com>
8011
8012 * p-valprint.c (pascal_object_print_value_fields): Now static.
8013 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8014
8015 2020-03-13 Tom Tromey <tom@tromey.com>
8016
8017 * c-valprint.c (c_val_print_array): Simplify.
8018
8019 2020-03-13 Tom Tromey <tom@tromey.com>
8020
8021 * valprint.c (value_print_array_elements): New function.
8022 * valprint.h (value_print_array_elements): Declare.
8023
8024 2020-03-13 Tom Tromey <tom@tromey.com>
8025
8026 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8027 * mips-tdep.c (mips_print_register): Use
8028 value_print_scalar_formatted.
8029
8030 2020-03-13 Tom Tromey <tom@tromey.com>
8031
8032 * valprint.h (value_print_scalar_formatted): Declare.
8033 * valprint.c (value_print_scalar_formatted): New function.
8034
8035 2020-03-13 Tom Tromey <tom@tromey.com>
8036
8037 * valprint.h (generic_value_print): Declare.
8038 * valprint.c (generic_value_print): New function.
8039
8040 2020-03-13 Tom Tromey <tom@tromey.com>
8041
8042 * valprint.c (do_val_print): Call la_value_print_inner, if
8043 available.
8044 * rust-lang.c (rust_language_defn): Update.
8045 * p-lang.c (pascal_language_defn): Update.
8046 * opencl-lang.c (opencl_language_defn): Update.
8047 * objc-lang.c (objc_language_defn): Update.
8048 * m2-lang.c (m2_language_defn): Update.
8049 * language.h (struct language_defn) <la_value_print_inner>: New
8050 member.
8051 * language.c (unknown_language_defn, auto_language_defn): Update.
8052 * go-lang.c (go_language_defn): Update.
8053 * f-lang.c (f_language_defn): Update.
8054 * d-lang.c (d_language_defn): Update.
8055 * c-lang.c (c_language_defn, cplus_language_defn)
8056 (asm_language_defn, minimal_language_defn): Update.
8057 * ada-lang.c (ada_language_defn): Update.
8058
8059 2020-03-13 Tom Tromey <tom@tromey.com>
8060
8061 * c-valprint.c (c_value_print): Use common_val_print.
8062
8063 2020-03-13 Tom Tromey <tom@tromey.com>
8064
8065 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8066
8067 2020-03-13 Tom Tromey <tom@tromey.com>
8068
8069 * f-valprint.c (f77_print_array_1, f_val_print): Use
8070 common_val_print.
8071
8072 2020-03-13 Tom Tromey <tom@tromey.com>
8073
8074 * riscv-tdep.c (riscv_print_one_register_info): Use
8075 common_val_print.
8076
8077 2020-03-13 Tom Tromey <tom@tromey.com>
8078
8079 * mi/mi-main.c (output_register): Use common_val_print.
8080
8081 2020-03-13 Tom Tromey <tom@tromey.com>
8082
8083 * infcmd.c (default_print_one_register_info): Use
8084 common_val_print.
8085
8086 2020-03-13 Tom Tromey <tom@tromey.com>
8087
8088 * valprint.h (common_val_print_checked): Declare.
8089 * valprint.c (common_val_print_checked): New function.
8090 * stack.c (print_frame_arg): Use common_val_print_checked.
8091
8092 2020-03-13 Tom Tromey <tom@tromey.com>
8093
8094 * valprint.c (do_val_print): New function, from val_print.
8095 (val_print): Use do_val_print.
8096 (common_val_print): Use do_val_print.
8097
8098 2020-03-13 Tom Tromey <tom@tromey.com>
8099
8100 * valprint.c (value_print): Use scoped_value_mark.
8101
8102 2020-03-13 Tom de Vries <tdevries@suse.de>
8103
8104 PR symtab/25646
8105 * psymtab.c (partial_symtab::partial_symtab): Don't set
8106 globals_offset and statics_offset. Push element onto
8107 current_global_psymbols and current_static_psymbols stacks.
8108 (concat): New function.
8109 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8110 element from current_global_psymbols and current_static_psymbols
8111 stacks. Concat popped elements to global_psymbols and
8112 static_symbols.
8113 (add_psymbol_to_list): Use current_global_psymbols and
8114 current_static_psymbols stacks.
8115 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8116 current_static_psymbols fields.
8117
8118 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8119
8120 * corelow.c (sniff_core_bfd): Remove.
8121 (class core_target) <m_core_vec>: Remove.
8122 (core_target::core_target): Update.
8123 (core_file_fns): Remove.
8124 (deprecated_add_core_fns): Remove.
8125 (default_core_sniffer): Remove.
8126 (sniff_core_bfd): Remove.
8127 (default_check_format): Remove.
8128 (gdb_check_format): Remove.
8129 (core_target_open): Update.
8130 (core_target::get_core_register_section): Update.
8131 (get_core_registers_cb): Update.
8132 (core_target::fetch_registers): Update.
8133 * gdbcore.h (struct core_fns): Remove.
8134 (deprecated_add_core_fns): Remove.
8135 (default_core_sniffer): Remove.
8136 (default_check_format): Remove.
8137
8138 2020-03-12 Tom Tromey <tom@tromey.com>
8139
8140 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8141 CORE_ADDR.
8142 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8143
8144 2020-03-12 Tom Tromey <tom@tromey.com>
8145
8146 * remote.c (remote_target::download_tracepoint)
8147 (remote_target::enable_tracepoint)
8148 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8149 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8150 sprintf_vma.
8151
8152 2020-03-12 Tom Tromey <tom@tromey.com>
8153
8154 * symfile-mem.c: Update CORE_ADDR size assert.
8155
8156 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8157
8158 * selftest.m4: Move to gdbsupport/.
8159 * acinclude.m4: Update path to selftest.m4.
8160
8161 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8162
8163 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8164 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8165 gdbarch-selfselftests.c and selftest-arch.c.
8166 (SUBDIR_UNITTESTS_OBS): Rename to...
8167 (SELFTESTS_OBS): ... this.
8168 (COMMON_SFILES): Remove disasm-selftests.c and
8169 gdbarch-selftests.c.
8170 * configure.ac: Don't add selftest-arch.{c,o} to
8171 CONFIG_{SRCS,OBS}.
8172 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8173 preprocessor conditions.
8174
8175 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8176
8177 * configure.ac: Don't source bfd/development.sh.
8178 * selftest.m4: Modify comment.
8179 * configure: Re-generate.
8180
8181 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8182
8183 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8184 not "true" or "false".
8185 * configure: Re-generate.
8186
8187 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8188
8189 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8190 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8191 renamed to arm_nbsd_supply_gregset.
8192 (fetch_register): Update to call arm_nbsd_supply_gregset.
8193 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8194 (arm_netbsd_nat_target::fetch_registers): Update.
8195 (fetch_elfcore_registers): Removed.
8196 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8197 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8198 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8199 not require NetBSD system headers.
8200 (arm_nbsd_regset): New struct.
8201 (arm_nbsd_iterate_over_regset_sections): New function.
8202 (arm_netbsd_init_abi_common): Updated to call
8203 set_gdbarch_iterate_over_regset_sections.
8204 * arm-nbsd-tdep.h: New file.
8205
8206 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8207
8208 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8209 recursion.
8210
8211 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8212
8213 * configure: Re-generate.
8214
8215 2020-03-11 Tom Tromey <tromey@adacore.com>
8216
8217 * ada-typeprint.c (print_choices): Fix comment.
8218
8219 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8220
8221 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8222 previous item in the list, when the list has no items.
8223
8224 2020-03-11 Tom de Vries <tdevries@suse.de>
8225
8226 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8227 PROP_LOCLIST handling code.
8228
8229 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8230
8231 * buildsym-legacy.c (record_line): Pass extra parameter to
8232 record_line.
8233 * buildsym.c (buildsym_compunit::record_line): Take an extra
8234 parameter, reduce duplication in the line table, and record the
8235 is_stmt flag in the line table.
8236 * buildsym.h (buildsym_compunit::record_line): Add extra
8237 parameter.
8238 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8239 non-statement lines.
8240 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8241 this to the symtab builder.
8242 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8243 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8244 through to dwarf_record_line_1.
8245 * infrun.c (process_event_stop_test): When stepping, don't stop at
8246 a non-statement instruction, and only refresh the step info when
8247 we land in the middle of a line's range. Also add an extra
8248 comment.
8249 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8250 field.
8251 * record-btrace.c (btrace_find_line_range): Only record lines
8252 marked as is-statement.
8253 * stack.c (frame_show_address): Show the frame address if we are
8254 in a non-statement sal.
8255 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8256 (maintenance_print_one_line_table): Print a header for the is_stmt
8257 column, and include is_stmt information in the output.
8258 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8259 preference to non-statements.
8260 (find_pcs_for_symtab_line): Prefer is-statement entries.
8261 (find_line_common): Likewise.
8262 * symtab.h (struct linetable_entry): Add is_stmt field.
8263 (struct symtab_and_line): Likewise.
8264 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8265 arranging the line table.
8266
8267 2020-03-07 Tom de Vries <tdevries@suse.de>
8268
8269 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8270 DIE.
8271
8272 2020-03-07 Tom Tromey <tom@tromey.com>
8273
8274 * valops.c (value_literal_complex): Remove obsolete comment.
8275 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8276 comment.
8277
8278 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8279
8280 * infrun.h: Forward-declare thread_info.
8281 (set_step_info): Add thread_info parameter, add doc.
8282 * infrun.c (set_step_info): Add thread_info parameter, move doc
8283 to header.
8284 * infrun.c (process_event_stop_test): Pass thread to
8285 set_step_info call.
8286 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8287 set_step_info.
8288 (prepare_one_step): Add thread_info parameter, pass it to
8289 set_step_frame and prepare_one_step (recursive) call.
8290 (step_1): Pass thread to prepare_one_step call.
8291 (step_command_fsm::should_stop): Pass thread to
8292 prepare_one_step.
8293 (until_next_fsm): Pass thread to set_step_frame call.
8294 (finish_command): Pass thread to set_step_info call.
8295
8296 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8297
8298 * windows-tdep.c (windows_solib_create_inferior_hook):
8299 Check if inferior is running.
8300
8301 2020-03-06 Tom de Vries <tdevries@suse.de>
8302
8303 * NEWS: Fix "the the".
8304 * ctfread.c: Same.
8305
8306 2020-03-06 Tom de Vries <tdevries@suse.de>
8307
8308 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8309
8310 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8311
8312 * .dir-locals.el: Add a comment referencing the other copies of
8313 this file.
8314
8315 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8316
8317 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8318 psargs.
8319
8320 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8321
8322 * .gitattributes: New file.
8323
8324 2020-03-04 Tom Tromey <tom@tromey.com>
8325
8326 * symmisc.c (print_symbol_bcache_statistics)
8327 (print_objfile_statistics): Update.
8328 * symfile.c (allocate_symtab): Use intern.
8329 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8330 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8331 macro_cache>: Remove.
8332 <string_cache>: New member.
8333 (struct objfile) <intern>: New methods.
8334 * elfread.c (elf_symtab_read): Use intern.
8335 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8336 (dwarf2_compute_name, dwarf2_physname)
8337 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8338 names.
8339 (guess_partial_die_structure_name): Update.
8340 (partial_die_info::fixup): Intern name.
8341 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8342 name.
8343 (dwarf2_name): Intern name. Update.
8344 * buildsym.c (buildsym_compunit::get_macro_table): Use
8345 string_cache.
8346
8347 2020-03-04 Tom Tromey <tom@tromey.com>
8348
8349 * jit.c (bfd_open_from_target_memory): Make "target" const.
8350 * corefile.c (gnutarget): Now const.
8351 * gdbcore.h (gnutarget): Now const.
8352
8353 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8354
8355 * NEWS: Mention support for WOW64 processes.
8356 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8357 (amd64_windows_segment_register_p): Remove static.
8358 (_initialize_amd64_windows_nat): Update.
8359 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8360 * i386-windows-nat.c (context_offset): Update.
8361 (i386_mappings): Rename and remove static.
8362 (i386_windows_segment_register_p): Remove static.
8363 (_initialize_i386_windows_nat): Update.
8364 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8365 (STATUS_WX86_SINGLE_STEP): New macro.
8366 (EnumProcessModulesEx): New macro.
8367 (Wow64SuspendThread): New macro.
8368 (Wow64GetThreadContext): New macro.
8369 (Wow64SetThreadContext): New macro.
8370 (Wow64GetThreadSelectorEntry): New macro.
8371 (windows_set_context_register_offsets): Add static.
8372 (windows_set_segment_register_p): Likewise.
8373 (windows_add_thread): Adapt for WOW64 processes.
8374 (windows_fetch_one_register): Likewise.
8375 (windows_nat_target::fetch_registers): Likewise.
8376 (windows_store_one_register): Likewise.
8377 (display_selector): Likewise.
8378 (display_selectors): Likewise.
8379 (handle_exception): Likewise.
8380 (windows_continue): Likewise.
8381 (windows_nat_target::resume): Likewise.
8382 (windows_add_all_dlls): Likewise.
8383 (do_initial_windows_stuff): Likewise.
8384 (windows_nat_target::attach): Likewise.
8385 (windows_get_exec_module_filename): Likewise.
8386 (windows_nat_target::create_inferior): Likewise.
8387 (windows_xfer_siginfo): Likewise.
8388 (_initialize_loadable): Initialize Wow64SuspendThread,
8389 Wow64GetThreadContext, Wow64SetThreadContext,
8390 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8391 * windows-nat.h (windows_set_context_register_offsets):
8392 Remove declaration.
8393 (windows_set_segment_register_p): Likewise.
8394 (i386_windows_segment_register_p): Add declaration.
8395 (amd64_windows_segment_register_p): Likewise.
8396
8397 2020-03-04 Luis Machado <luis.machado@linaro.org>
8398
8399 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8400 in "info registers" for AArch64/ARM.
8401
8402 The change caused "info registers" to not print GPR's.
8403
8404 gdb/ChangeLog:
8405
8406 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8407
8408 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8409 when reg->group is empty and reggroup is not.
8410
8411 2020-03-03 Tom Tromey <tromey@adacore.com>
8412
8413 * dwarf2/frame.c (struct dwarf2_frame_cache)
8414 <checked_tailcall_bottom, entry_cfa_sp_offset,
8415 entry_cfa_sp_offset_p>: Remove members.
8416 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8417 (dwarf2_frame_prev_register): Don't call
8418 dwarf2_tailcall_sniffer_first.
8419 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8420 * frame-unwind.c (add_unwinder): New fuction.
8421 (frame_unwind_init): Use it. Add tailcall unwinder.
8422
8423 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8424 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8425
8426 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8427 value should be printed as true.
8428
8429 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8430
8431 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8432 (windows_init_abi): Set and use windows_so_ops.
8433
8434 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8435
8436 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8437 when verifying if dealing with a convenience variable.
8438
8439 2020-03-03 Luis Machado <luis.machado@linaro.org>
8440
8441 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8442
8443 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8444
8445 * infrun.c (gdbarch_supports_displaced_stepping): New.
8446 (use_displaced_stepping): Break up conditions in smaller pieces.
8447 Use gdbarch_supports_displaced_stepping.
8448 (displaced_step_prepare_throw): Use
8449 gdbarch_supports_displaced_stepping.
8450
8451 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8452
8453 * NEWS: Mention new behaviour of the history filename.
8454 * top.c (write_history_p): Add comment.
8455 (show_write_history_p): Add header comment, give a different
8456 message when history writing is on, but the history filename is
8457 empty.
8458 (history_filename): Add comment.
8459 (history_filename_empty): New function.
8460 (show_history_filename): Add header comment, give a different
8461 message when the filename is empty.
8462 (init_history): Compare history_filename against nullptr, and only
8463 read history if the filename is not empty.
8464 (set_history_filename): Add header comment, and only make
8465 non-empty filenames absolute.
8466 (init_main): Make the filename argument to 'set history filename'
8467 optional.
8468
8469 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8470
8471 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8472 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8473 (fetch_fp_register): Update.
8474 (fetch_fp_regs): Update.
8475 (store_fp_register): Update.
8476 (store_fp_regs): Update.
8477 (arm_netbsd_nat_target::read_description): New function.
8478 (fetch_elfcore_registers): Update.
8479
8480 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8481
8482 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8483 general_thread if the stop reply is missing a thread-id.
8484 (remote_target::process_stop_reply): Use the first non-exited
8485 thread if the target didn't pass a thread-id.
8486 * infrun.c (do_target_wait): Move call to
8487 switch_to_inferior_no_thread to ....
8488 (do_target_wait_1): ... here.
8489
8490 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8491
8492 * debuginfod-support.c: Include defs.h first.
8493
8494 2020-02-28 Tom de Vries <tdevries@suse.de>
8495
8496 * symfile.c (set_initial_language): Use default language for lookup.
8497
8498 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8499
8500 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8501 reader variable, pass `this` to read_cutu_die_from_dwo.
8502
8503 2020-02-27 Aaron Merey <amerey@redhat.com>
8504
8505 * source.c (open_source_file): Check for nullptr when computing
8506 srcpath.
8507
8508 2020-02-27 Tom Tromey <tromey@adacore.com>
8509
8510 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8511 member.
8512 (dwarf2_add_field): Don't update nfields.
8513 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8514
8515 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8516
8517 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8518 abs.
8519
8520 2020-02-26 Tom Tromey <tom@tromey.com>
8521
8522 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8523 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8524 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8525 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8526 per_cu_data.
8527
8528 2020-02-26 Tom Tromey <tom@tromey.com>
8529
8530 * dwarf2/index-write.c (psym_index_map): Change type.
8531 (add_address_entry_worker, write_one_signatured_type)
8532 (recursively_count_psymbols, recursively_write_psymbols)
8533 (class debug_names, psyms_seen_size, write_gdbindex)
8534 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8535
8536 2020-02-26 Aaron Merey <amerey@redhat.com>
8537
8538 * Makefile.in: Handle optional debuginfod support.
8539 * NEWS: Update.
8540 * README: Add --with-debuginfod summary.
8541 * config.in: Regenerate.
8542 * configure: Regenerate.
8543 * configure.ac: Handle optional debuginfod support.
8544 * debuginfod-support.c: debuginfod helper functions.
8545 * debuginfod-support.h: Ditto.
8546 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8547 summary.
8548 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8549 when a dwz file cannot be found.
8550 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8551 debuginfo file cannot be found.
8552 * source.c (open_source_file): Query debuginfod servers when a
8553 source file cannot be found.
8554 * top.c (print_gdb_configuration): Include
8555 --{with,without}-debuginfod in the output.
8556
8557 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8558
8559 * thread.c (thr_try_catch_cmd): Print thread name.
8560
8561 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8562
8563 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8564 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8565 dwarf2_fetch_die_type_sect_off): Move to...
8566 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8567 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8568 dwarf2_fetch_die_type_sect_off): ... here.
8569 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8570 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8571 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8572
8573 2020-02-26 Tom de Vries <tdevries@suse.de>
8574
8575 PR gdb/25603
8576 * symfile.c (set_initial_language): Exit-early if
8577 language_mode == language_mode_manual.
8578
8579 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8580
8581 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8582 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8583 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8584
8585 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8586
8587 * gdbtypes.c (create_array_type_with_stride): Handle negative
8588 array strides.
8589 * valarith.c (value_subscripted_rvalue): Likewise.
8590
8591 2020-02-25 Luis Machado <luis.machado@linaro.org>
8592
8593 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8594
8595 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8596
8597 * loc.h (dwarf2_get_die_type): Move to...
8598 * read.h (dwarf2_get_die_type): ... here.
8599 * read.c (dwarf2_get_die_type): Move doc to header.
8600
8601 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8602
8603 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8604 'gnulib/Makefile.in' to the list.
8605
8606 2020-02-24 Tom Tromey <tom@tromey.com>
8607
8608 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8609 Remove.
8610 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8611 XOBNEWVEC.
8612
8613 2020-02-24 Tom Tromey <tom@tromey.com>
8614
8615 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8616 New method.
8617 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8618 (dw2_do_instantiate_symtab, dw2_get_file_names)
8619 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8620
8621 2020-02-24 Tom Tromey <tom@tromey.com>
8622
8623 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8624 make_scoped_restore.
8625 (dwarf2_psymtab::read_symtab): Don't clear
8626 reading_partial_symbols.
8627
8628 2020-02-24 Tom de Vries <tdevries@suse.de>
8629
8630 PR gdb/25592
8631 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8632
8633 2020-02-24 Tom de Vries <tdevries@suse.de>
8634
8635 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8636 commands layout next/prev/regs.
8637
8638 2020-02-22 Tom Tromey <tom@tromey.com>
8639
8640 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8641 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8642
8643 2020-02-22 Tom Tromey <tom@tromey.com>
8644
8645 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8646
8647 2020-02-22 Tom Tromey <tom@tromey.com>
8648
8649 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8650 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8651 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8652 * tui/tui.c (_initialize_tui): Add usage text.
8653
8654 2020-02-22 Tom Tromey <tom@tromey.com>
8655
8656 * tui/tui-win.c (tui_set_focus_command)
8657 (tui_set_win_height_command): Use error_no_arg.
8658 (_initialize_tui_win): Update help text.
8659 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8660
8661 2020-02-22 Tom Tromey <tom@tromey.com>
8662
8663 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8664 * tui/tui-disasm.h (struct tui_disasm_window)
8665 <display_start_addr>: Declare.
8666 * tui/tui-source.h (struct tui_source_window)
8667 <display_start_addr>: Declare.
8668 * tui/tui-winsource.h (struct tui_source_window_base)
8669 <show_source_line, display_start_addr>: New methods.
8670 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8671 Rename and move to protected section.
8672 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8673 (tui_source_window_base::do_erase_source_content): Update.
8674 (tui_source_window_base::show_source_line): Now a method.
8675 (tui_source_window_base::show_source_content)
8676 (tui_source_window_base::tui_source_window_base)
8677 (tui_source_window_base::rerender)
8678 (tui_source_window_base::refill)
8679 (tui_source_window_base::do_scroll_horizontal)
8680 (tui_source_window_base::set_is_exec_point_at)
8681 (tui_source_window_base::update_breakpoint_info)
8682 (tui_source_window_base::update_exec_info): Update.
8683 * tui/tui-source.c (tui_source_window::set_contents)
8684 (tui_source_window::showing_source_p)
8685 (tui_source_window::do_scroll_vertical)
8686 (tui_source_window::location_matches_p)
8687 (tui_source_window::line_is_displayed): Update.
8688 (tui_source_window::display_start_addr): New method.
8689 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8690 (tui_disasm_window::do_scroll_vertical)
8691 (tui_disasm_window::location_matches_p): Update.
8692 (tui_disasm_window::display_start_addr): New method.
8693
8694 2020-02-22 Tom Tromey <tom@tromey.com>
8695
8696 * NEWS: Add entry for gdb.register_window_type.
8697 * tui/tui-layout.h (window_factory): New typedef.
8698 (tui_register_window): Declare.
8699 * tui/tui-layout.c (saved_tui_windows): New global.
8700 (tui_apply_current_layout): Use it.
8701 (tui_register_window): New function.
8702 * python/python.c (do_start_initialization): Call
8703 gdbpy_initialize_tui.
8704 (python_GdbMethods): Add "register_window_type" function.
8705 * python/python-internal.h (gdbpy_register_tui_window)
8706 (gdbpy_initialize_tui): Declare.
8707 * python/py-tui.c: New file.
8708 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8709
8710 2020-02-22 Tom Tromey <tom@tromey.com>
8711
8712 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8713
8714 2020-02-22 Tom Tromey <tom@tromey.com>
8715
8716 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8717 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8718 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8719 (tui_set_win_focus_to): Move from tui-win.c.
8720
8721 2020-02-22 Tom Tromey <tom@tromey.com>
8722
8723 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8724 functions.
8725 (known_window_types): New global.
8726 (tui_get_window_by_name): Reimplement.
8727 (initialize_known_windows): New function.
8728 (validate_window_name): Rewrite.
8729 (_initialize_tui_layout): Call initialize_known_windows.
8730
8731 2020-02-22 Tom Tromey <tom@tromey.com>
8732
8733 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8734 Remove constants.
8735 * tui/tui-winsource.h (struct tui_source_window_base)
8736 <tui_source_window_base>: Remove parameter.
8737 * tui/tui-winsource.c
8738 (tui_source_window_base::tui_source_window_base): Remove
8739 parameter.
8740 (tui_source_window_base::refill): Update.
8741 * tui/tui-stack.h (struct tui_locator_window)
8742 <tui_locator_window>: Update.
8743 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8744 Default the constructor.
8745 * tui/tui-regs.h (struct tui_data_item_window)
8746 <tui_data_item_window>: Default the constructor.
8747 (struct tui_data_window) <tui_data_window>: Likewise.
8748 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8749 Default the constructor.
8750 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8751 Default the constructor.
8752 <type>: Remove.
8753 (struct tui_win_info) <tui_win_info>: Default the constructor.
8754 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8755 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8756 Default the constructor.
8757
8758 2020-02-22 Tom Tromey <tom@tromey.com>
8759
8760 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8761 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8762 * tui/tui-win.c (tui_resize_all): Don't call
8763 tui_delete_invisible_windows.
8764 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8765 done.
8766 (tui_set_layout): Update.
8767 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8768 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8769 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8770
8771 2020-02-22 Tom Tromey <tom@tromey.com>
8772
8773 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8774 correctly.
8775
8776 2020-02-22 Tom Tromey <tom@tromey.com>
8777
8778 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8779
8780 2020-02-22 Tom Tromey <tom@tromey.com>
8781
8782 * tui/tui-winsource.h (struct tui_source_window_iterator)
8783 <inner_iterator>: New etytypedef.
8784 <tui_source_window_iterator>: Take "end" parameter.
8785 <tui_source_window_iterator>: Take iterator.
8786 <operator*, advance>: Update.
8787 <m_iter>: Change type.
8788 <m_end>: New field.
8789 (struct tui_source_windows) <begin, end>: Update.
8790 * tui/tui-layout.c (tui_windows): New global.
8791 (tui_apply_current_layout): Clear tui_windows.
8792 (tui_layout_window::apply): Update tui_windows.
8793 * tui/tui-data.h (tui_windows): Declare.
8794 (all_tui_windows): Now inline function.
8795 (class tui_window_iterator, struct all_tui_windows): Remove.
8796
8797 2020-02-22 Tom Tromey <tom@tromey.com>
8798
8799 PR tui/17850:
8800 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8801 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8802 "height" argument.
8803 (class tui_layout_window) <get_sizes>: Likewise.
8804 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8805 argument.
8806 <get_sizes>: Add "height" argument.
8807 <m_vertical>: New field.
8808 * tui/tui-layout.c (tui_layout_split::clone): Update.
8809 (tui_layout_split::get_sizes): Add "height" argument.
8810 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8811 (tui_new_layout_command): Parse "-horizontal".
8812 (_initialize_tui_layout): Update help string.
8813 (tui_layout_split::specification): Add "-horizontal" when needed.
8814 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8815 argument.
8816 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8817 New methods.
8818
8819 2020-02-22 Tom Tromey <tom@tromey.com>
8820
8821 * tui/tui-layout.h (enum tui_adjust_result): New.
8822 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8823 (class tui_layout_window) <adjust_size>: Return
8824 tui_adjust_result. Rewrite.
8825 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8826 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8827
8828 2020-02-22 Tom Tromey <tom@tromey.com>
8829
8830 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8831 parameter and return types.
8832 (class tui_layout_base) <specification>: Add "depth".
8833 (class tui_layout_window) <specification>: Add "depth".
8834 (class tui_layout_split) <specification>: Add "depth".
8835 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8836 and return types.
8837 (tui_new_layout_command): Parse sub-layouts.
8838 (_initialize_tui_layout): Update help string.
8839 (tui_layout_window::specification): Add "depth".
8840 (add_layout_command): Update.
8841
8842 2020-02-22 Tom Tromey <tom@tromey.com>
8843
8844 * NEWS: Add "tui new-layout" item.
8845 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8846 Add new-layout command to help text.
8847 (validate_window_name): New function.
8848 (tui_new_layout_command): New function.
8849 (_initialize_tui_layout): Register "new-layout".
8850 (tui_layout_window::specification): New method.
8851 (tui_layout_window::specification): New method.
8852 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8853 method.
8854 (class tui_layout_window) <specification>: New method.
8855 (class tui_layout_split) <specification>: New method.
8856
8857 2020-02-22 Tom Tromey <tom@tromey.com>
8858
8859 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8860 * tui/tui-win.c (window_name_completer): Update comment.
8861 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8862 Declare method.
8863 (class tui_layout_window) <replace_window>: Likewise.
8864 (class tui_layout_split) <replace_window>: Likewise.
8865 (tui_set_layout): Don't declare.
8866 (tui_set_initial_layout): Declare function.
8867 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8868 (asm_regs_layout): New globals.
8869 (tui_current_layout, show_layout): Remove.
8870 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8871 (find_layout, tui_apply_layout): New function.
8872 (layout_completer): Remove.
8873 (tui_next_layout): Reimplement.
8874 (tui_next_layout_command): New function.
8875 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8876 (tui_regs_layout): Reimplement.
8877 (tui_regs_layout_command): New function.
8878 (extract_display_start_addr): Rewrite.
8879 (next_layout, prev_layout): Remove.
8880 (tui_layout_window::replace_window): New method.
8881 (tui_layout_split::replace_window): New method.
8882 (destroy_layout): New function.
8883 (layout_list): New global.
8884 (add_layout_command): New function.
8885 (initialize_layouts): Update.
8886 (tui_layout_command): New function.
8887 (_initialize_tui_layout): Install "layout" commands.
8888 * tui/tui-data.h (enum tui_layout_type): Remove.
8889 (tui_current_layout): Don't declare.
8890
8891 2020-02-22 Tom Tromey <tom@tromey.com>
8892
8893 * tui/tui-regs.c (tui_reg_layout): Remove.
8894 (tui_reg_command): Use tui_regs_layout.
8895 * tui/tui-layout.h (tui_reg_command): Declare.
8896 * tui/tui-layout.c (tui_reg_command): New function.
8897
8898 2020-02-22 Tom Tromey <tom@tromey.com>
8899
8900 * tui/tui.c (tui_rl_delete_other_windows): Call
8901 tui_remove_some_windows.
8902 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8903 Declare method.
8904 (class tui_layout_window) <remove_windows>: New method.
8905 (class tui_layout_split) <remove_windows>: Declare.
8906 (tui_remove_some_windows): Declare.
8907 * tui/tui-layout.c (tui_remove_some_windows): New function.
8908 (tui_layout_split::remove_windows): New method.
8909
8910 2020-02-22 Tom Tromey <tom@tromey.com>
8911
8912 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8913 * tui/tui-layout.h (tui_next_layout): Declare.
8914 * tui/tui-layout.c (tui_next_layout): New function.
8915
8916 2020-02-22 Tom Tromey <tom@tromey.com>
8917
8918 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8919 correct coordinates.
8920
8921 2020-02-22 Tom Tromey <tom@tromey.com>
8922
8923 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8924 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8925 DATA_WIN case.
8926
8927 2020-02-22 Tom Tromey <tom@tromey.com>
8928
8929 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8930 TUI_DISASM_WIN, not tui_win_list.
8931
8932 2020-02-22 Tom Tromey <tom@tromey.com>
8933
8934 * valprint.c (generic_val_print_enum_1)
8935 (val_print_type_code_flags): Style member names.
8936 * rust-lang.c (val_print_struct, rust_print_enum)
8937 (rust_print_struct_def, rust_internal_print_type): Style member
8938 names.
8939 * p-valprint.c (pascal_object_print_value_fields): Style member
8940 names. Only call fprintf_symbol_filtered for static members.
8941 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8942 * f-valprint.c (f_val_print): Style member names.
8943 * f-typeprint.c (f_type_print_base): Style member names.
8944 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8945 call fprintf_symbol_filtered for static members.
8946 (cp_print_class_member): Style member names.
8947 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8948 member names.
8949 * ada-valprint.c (ada_print_scalar): Style enum names.
8950 (ada_val_print_enum): Likewise.
8951 * ada-typeprint.c (print_enum_type): Style enum names.
8952
8953 2020-02-21 Tom Tromey <tom@tromey.com>
8954
8955 * psympriv.h (struct partial_symtab): Update comment.
8956
8957 2020-02-21 Tom Tromey <tromey@adacore.com>
8958
8959 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8960 type is CORE_ADDR.
8961
8962 2020-02-21 Tom de Vries <tdevries@suse.de>
8963
8964 PR gdb/25534
8965 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8966 if dependencies[i]->user != NULL.
8967
8968 2020-02-21 Ali Tamur <tamur@google.com>
8969
8970 * dwarf2/read.c (dwarf2_name): Add null check.
8971
8972 2020-02-20 Tom Tromey <tom@tromey.com>
8973
8974 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8975 ">=", in binary search.
8976 (dwarf2_find_containing_comp_unit): New overload.
8977 (run_test): New self-test.
8978 (_initialize_dwarf2_read): Register new test.
8979
8980 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8981
8982 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8983 * riscv-tdep.h: Likewise.
8984 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8985 rv32-only CSR.
8986 * features/riscv/64bit-csr.xml: Regenerated.
8987
8988 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8989 Tom Tromey <tom@tromey.com>
8990
8991 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8992 of 'fputc_unfiltered'.
8993 (putchar_unfiltered): Call 'fputc_unfiltered'.
8994 (fputc_unfiltered): Call 'fputs_unfiltered'.
8995
8996 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8997
8998 * config.in: Regenerate.
8999 * configure: Regenerate.
9000 * configure.ac: Add --with-python-libdir option.
9001 * main.c: Use WITH_PYTHON_LIBDIR.
9002
9003 2020-02-19 Tom Tromey <tom@tromey.com>
9004
9005 * symtab.c (general_symbol_info::compute_and_set_names): Use
9006 obstack_strndup. Simplify call to symbol_set_demangled_name.
9007
9008 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9009
9010 * dwarf2/read.c (allocate_signatured_type_table,
9011 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9012 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9013 Remove objfile parameter, update all callers.
9014
9015 2020-02-19 Doug Evans <dje@google.com>
9016
9017 PR rust/25535
9018 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9019 rust_enum_variant calculation.
9020
9021 2020-02-19 Tom Tromey <tromey@adacore.com>
9022
9023 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9024
9025 2020-02-19 Tom Tromey <tromey@adacore.com>
9026
9027 * ada-lang.c (cache_symbol): Use obstack_strdup.
9028
9029 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9030
9031 * configure: Regenerate.
9032
9033 2020-02-19 Tom Tromey <tromey@adacore.com>
9034
9035 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9036 NULL check.
9037
9038 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9039
9040 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9041
9042 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9043
9044 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9045 if GDBSERVER is not defined.
9046 (riscv_tdesc_cache): Likewise, also store const target_desc.
9047 (STATIC_IN_GDB): Define.
9048 (riscv_create_target_description): Update declaration with
9049 STATIC_IN_GDB.
9050 (riscv_lookup_target_description): New function, only define if
9051 GDBSERVER is not defined.
9052 * arch/riscv.h (riscv_create_target_description): Declare only
9053 when GDBSERVER is defined.
9054 (riscv_lookup_target_description): New declaration when GDBSERVER
9055 is not defined.
9056 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9057 (riscv_linux_read_features): ...this, and return
9058 riscv_gdbarch_features instead of target_desc.
9059 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9060 (riscv_linux_read_description): Rename to...
9061 (riscv_linux_read_features): ...this.
9062 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9063 Update to use riscv_gdbarch_features and
9064 riscv_lookup_target_description.
9065 * riscv-tdep.c (riscv_find_default_target_description): Use
9066 riscv_lookup_target_description instead of
9067 riscv_create_target_description.
9068
9069 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9070
9071 * valprint.c (generic_val_print_enum_1): When printing a flag
9072 enum with value 0 and there is no enumerator with value 0, print
9073 just "0" instead of "(unknown: 0x0)".
9074
9075 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9076
9077 * valprint.c (generic_val_print_enum_1): Print unknown part of
9078 flag enum in hex.
9079
9080 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9081
9082 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9083 flag enums to contain duplicate enumerators.
9084 * valprint.c (generic_val_print_enum_1): Update comment.
9085
9086 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9087
9088 * dwarf2/read.c: Include "count-one-bits.h".
9089 (update_enumeration_type_from_children): If an enumerator has
9090 multiple bits set, don't treat the enumeration as a "flag enum".
9091 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9092 of flag enums have 0 or 1 bit set.
9093
9094 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9095
9096 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9097 conversion.
9098 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9099 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9100 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9101 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9102 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9103
9104 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9105
9106 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9107
9108 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9109
9110 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9111 displaced_step_closure_up.
9112 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9113 (struct displaced_step_closure_up):
9114 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9115 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9116 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9117 Likewise.
9118 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9119 * gdbarch.c, gdbarch.h: Re-generate.
9120 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9121 displaced_step_closure_up.
9122 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9123 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9124 * infrun.h (displaced_step_closure_up): New type alias.
9125 (struct displaced_step_inferior_state) <step_closure>: Change
9126 type to displaced_step_closure_up.
9127 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9128 displaced_step_closure_up.
9129 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9130
9131 2020-02-14 Tom Tromey <tom@tromey.com>
9132
9133 * minidebug.c (gnu_debug_key): New global.
9134 (find_separate_debug_file_in_section): Use it.
9135
9136 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9137
9138 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9139 std::unique_ptr.
9140 * gdbarch.c: Re-generate.
9141 * gdbarch.h: Re-generate.
9142 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9143 change.
9144 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9145 type to std::unique_ptr.
9146 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9147 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9148 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9149 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9150 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9151 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9152 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9153 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9154 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9155
9156 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9157
9158 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9159 std::unique_ptr.
9160 (displaced_step_clear): Rename to...
9161 (displaced_step_reset): ... this. Just call displaced->reset ().
9162 (displaced_step_clear_cleanup): Rename to...
9163 (displaced_step_reset_cleanup): ... this.
9164 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9165 (displaced_step_fixup): Likewise.
9166 (resume_1): Likewise.
9167 (handle_inferior_event): Restore child's memory before calling
9168 displaced_step_fixup on the parent.
9169 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9170 to std::unique_ptr.
9171 <step_closure>: Change type to std::unique_ptr.
9172
9173 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9174
9175 * arm-tdep.c: Include count-one-bits.h.
9176 (cleanup_block_store_pc): Use count_one_bits.
9177 (cleanup_block_load_pc): Use count_one_bits.
9178 (arm_copy_block_xfer): Use count_one_bits.
9179 (thumb2_copy_block_xfer): Use count_one_bits.
9180 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9181 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9182 (thumb_get_next_pcs_raw): Use count_one_bits.
9183 (arm_get_next_pcs_raw): Use count_one_bits_l.
9184 * arch/arm.c (bitcount): Remove.
9185 * arch/arm.h (bitcount): Remove.
9186
9187 2020-02-14 Tom Tromey <tromey@adacore.com>
9188
9189 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9190 Update.
9191 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9192 * dwarf2/loc.c (call_site_find_chain_1): Return
9193 unique_xmalloc_ptr.
9194 (call_site_find_chain): Likewise.
9195
9196 2020-02-14 Richard Biener <rguenther@suse.de>
9197
9198 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9199 on expression with division operators.
9200
9201 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9202
9203 * MAINTAINERS (Write After Approval): Adding myself.
9204
9205 2020-02-12 Tom Tromey <tom@tromey.com>
9206
9207 * event-loop.c (event_data, gdb_event, event_handler_func):
9208 Remove.
9209
9210 2020-02-12 Tom Tromey <tom@tromey.com>
9211
9212 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9213 (dwarf2_frame_objfile_data): Add comment.
9214 (find_comp_unit, set_comp_unit): New functions.
9215 (dwarf2_frame_find_fde): Use find_comp_unit.
9216 (dwarf2_build_frame_info): Use set_comp_unit.
9217
9218 2020-02-12 Tom Tromey <tom@tromey.com>
9219
9220 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9221 (comp_unit): Don't initialize objfile.
9222 (execute_cfa_program): Add text_offset parameter.
9223 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9224 (dwarf2_frame_cache): Update.
9225 (dwarf2_build_frame_info): Don't set "objfile" member.
9226
9227 2020-02-12 Tom Tromey <tom@tromey.com>
9228
9229 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9230 (decode_frame_entry): Likewise.
9231 (dwarf2_build_frame_info): Update.
9232
9233 2020-02-12 Tom Tromey <tom@tromey.com>
9234
9235 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9236 (decode_frame_entry_1): Use the comp_unit obstack.
9237
9238 2020-02-12 Tom Tromey <tom@tromey.com>
9239
9240 * dwarf2/frame.c (struct comp_unit): Add initializers and
9241 constructor.
9242 (dwarf2_frame_objfile_data): Store a comp_unit.
9243 (dwarf2_frame_find_fde): Update.
9244 (dwarf2_build_frame_info): Use "new".
9245
9246 2020-02-12 Tom Tromey <tom@tromey.com>
9247
9248 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9249 (dwarf2_fde_table): Typedef for std::vector.
9250 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9251 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9252 (decode_frame_entry): Update.
9253 (dwarf2_build_frame_info): Use "new".
9254
9255 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9256
9257 * arm-tdep.c (arm_gdbarch_init): Update.
9258 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9259 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9260 have_neon, is_m>: Change to bool.
9261
9262 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9263
9264 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9265
9266 2020-02-12 Tom Tromey <tom@tromey.com>
9267
9268 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9269
9270 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9271
9272 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9273 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9274
9275 2020-02-11 Tom Tromey <tom@tromey.com>
9276
9277 * psymtab.h: Update comment.
9278
9279 2020-02-11 Tom Tromey <tom@tromey.com>
9280
9281 * gdb_obstack.h (struct auto_obstack): Use
9282 DISABLE_COPY_AND_ASSIGN.
9283
9284 2020-02-11 Tom Tromey <tom@tromey.com>
9285
9286 * dwarf2/frame.h (struct objfile): Don't forward declare.
9287
9288 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9289
9290 * cris-tdep.c (cris_supply_gregset): Change signature to match
9291 what struct regset expects.
9292 (cris_regset): New struct.
9293 (fetch_core_registers): Remove.
9294 (cris_iterate_over_regset_sections): New function.
9295 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9296 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9297
9298 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9299
9300 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9301 registers.
9302
9303 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9304
9305 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9306
9307 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9308
9309 * configure: Re-generate.
9310
9311 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9312
9313 * configure: Re-generate.
9314
9315 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9316
9317 * acinclude: Update warning.m4 path.
9318 * warning.m4: Move to gdbsupport.
9319
9320 2020-02-11 Tom Tromey <tromey@adacore.com>
9321
9322 * remote.c (remote_console_output): Update.
9323 * printcmd.c (printf_command): Update.
9324 * event-loop.c (gdb_wait_for_event): Update.
9325 * linux-nat.c (sigchld_handler): Update.
9326 * remote-sim.c (gdb_os_write_stdout): Update.
9327 (gdb_os_flush_stdout): Update.
9328 (gdb_os_flush_stderr): Update.
9329 (gdb_os_write_stderr): Update.
9330 * exceptions.c (print_exception): Update.
9331 * remote-fileio.c (remote_fileio_func_read): Update.
9332 (remote_fileio_func_write): Update.
9333 * tui/tui.c (tui_enable): Update.
9334 * tui/tui-interp.c (tui_interp::init): Update.
9335 * utils.c (init_page_info): Update.
9336 (putchar_unfiltered, fputc_unfiltered): Update.
9337 (gdb_flush): Update.
9338 (emit_style_escape): Update.
9339 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9340 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9341 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9342 (stderr_file::write): Update.
9343 (stderr_file::puts): Update.
9344 * ui-file.h (ui_file_isatty, ui_file_write)
9345 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9346 (ui_file_puts): Don't declare.
9347
9348 2020-02-10 Tom de Vries <tdevries@suse.de>
9349
9350 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9351 sentinel to char *.
9352
9353 2020-02-09 Tom de Vries <tdevries@suse.de>
9354
9355 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9356 filename if it matches "<artificial>".
9357
9358 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9359
9360 * windows-tdep.c (struct enum_value_name): New struct.
9361 (create_enum): New function.
9362 (windows_get_siginfo_type): Create and use enum types.
9363
9364 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9365
9366 * NEWS: Mention $_siginfo support for Windows.
9367 * windows-nat.c (handle_exception): Set siginfo_er.
9368 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9369 (windows_xfer_siginfo): New function.
9370 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9371 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9372 (init_windows_gdbarch_data): New function.
9373 (get_windows_gdbarch_data): New function.
9374 (windows_get_siginfo_type): New function.
9375 (windows_init_abi): Register windows_get_siginfo_type.
9376 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9377
9378 2020-02-08 Tom Tromey <tom@tromey.com>
9379
9380 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9381 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9382 <keep>: Declare method.
9383 <m_keep>: Remove member.
9384 <~cutu_reader>: Remove.
9385 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9386 (cutu_reader::cutu_reader): Update.
9387 (cutu_reader::keep): Rename from ~cutu_reader.
9388 (process_psymtab_comp_unit, build_type_psymtabs_1)
9389 (process_skeletonless_type_unit, load_partial_comp_unit)
9390 (load_full_comp_unit, dwarf2_read_addr_index)
9391 (read_signatured_type): Update.
9392
9393 2020-02-08 Tom Tromey <tom@tromey.com>
9394
9395 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9396 "want_partial_unit" parameter.
9397 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9398 Inline check for DW_TAG_partial_unit.
9399 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9400
9401 2020-02-08 Tom Tromey <tom@tromey.com>
9402
9403 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9404 read.c.
9405 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9406 read.c.
9407
9408 2020-02-08 Tom Tromey <tom@tromey.com>
9409
9410 * dwarf2/read.c (read_address): Move to comp-unit.c.
9411 (dwarf2_rnglists_process, dwarf2_ranges_process)
9412 (read_attribute_value, dwarf_decode_lines_1)
9413 (var_decode_location, decode_locdesc): Update.
9414 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9415 read.c. Remove "cu" parameter.
9416 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9417 method.
9418
9419 2020-02-08 Tom Tromey <tom@tromey.com>
9420
9421 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9422 (read_indirect_line_string): Update.
9423 * dwarf2/comp-unit.c (read_offset): Remove.
9424 (read_comp_unit_head): Update.
9425 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9426 method.
9427 (read_offset): Don't declare.
9428
9429 2020-02-08 Tom Tromey <tom@tromey.com>
9430
9431 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9432 * dwarf2/read.c (struct comp_unit_head): Move to
9433 dwarf2/comp-unit.h.
9434 (enum class rcuh_kind): Move to comp-unit.h.
9435 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9436 (read_comp_unit_head, error_check_comp_unit_head)
9437 (read_and_check_comp_unit_head): Move to comp-unit.c.
9438 (read_offset, dwarf_unit_type_name): Likewise.
9439 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9440 (cutu_reader::cutu_reader, read_call_site_scope)
9441 (find_partial_die, follow_die_offset): Update.
9442 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9443
9444 2020-02-08 Tom Tromey <tom@tromey.com>
9445
9446 * dwarf2/read.c (read_offset_1): Move to leb.c.
9447 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9448 (dwarf_decode_macro_bytes): Update.
9449 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9450 * dwarf2/leb.h (read_offset): Declare.
9451
9452 2020-02-08 Tom Tromey <tom@tromey.com>
9453
9454 * dwarf2/read.c (dwarf2_section_size): Remove.
9455 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9456 Update.
9457 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9458
9459 2020-02-08 Tom Tromey <tom@tromey.com>
9460
9461 * dwarf2/read.c (read_initial_length): Move to leb.c.
9462 * dwarf2/leb.h (read_initial_length): Declare.
9463 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9464 handle_nonstd parameter.
9465 * dwarf2/frame.c (read_initial_length): Remove.
9466 (decode_frame_entry_1): Update.
9467
9468 2020-02-08 Tom Tromey <tom@tromey.com>
9469
9470 * dwarf2/loc.c (dwarf2_find_location_expression)
9471 (dwarf_evaluate_loc_desc::get_tls_address)
9472 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9473 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9474 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9475 (dwarf2_compile_property_to_c)
9476 (dwarf2_loc_desc_get_symbol_read_needs)
9477 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9478 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9479 (loclist_describe_location, loclist_tracepoint_var_ref)
9480 (loclist_generate_c_location): Update.
9481 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9482 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9483 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9484 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9485 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9486 (dwarf2_per_cu_data::addr_size)
9487 (dwarf2_per_cu_data::ref_addr_size)
9488 (dwarf2_per_cu_data::text_offset)
9489 (dwarf2_per_cu_data::addr_type): Now methods.
9490 (per_cu_header_read_in): Make per_cu "const".
9491 (dwarf2_version): Remove.
9492 (dwarf2_per_cu_data::int_type): Now a method.
9493 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9494 (set_die_type, read_array_type, read_subrange_index_type)
9495 (read_tag_string_type, read_subrange_type): Update.
9496 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9497 offset_size, ref_addr_size, text_offset, addr_type, version,
9498 objfile, int_type, addr_sized_int_type>: Declare methods.
9499
9500 2020-02-08 Tom Tromey <tom@tromey.com>
9501
9502 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9503 Move earlier.
9504
9505 2020-02-08 Tom Tromey <tom@tromey.com>
9506
9507 * dwarf2/read.h (dwarf_line_debug): Declare.
9508 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9509 * dwarf2/read.c: Move line_header code to new files.
9510 (dwarf_line_debug): No longer static.
9511 * dwarf2/line-header.c: New file.
9512 * dwarf2/line-header.h: New file.
9513
9514 2020-02-08 Tom Tromey <tom@tromey.com>
9515
9516 * dwarf2/read.c (struct line_header) <file_full_name,
9517 file_file_name>: Return unique_xmalloc_ptr.
9518 (line_header::file_file_name): Update.
9519 (line_header::file_full_name): Update.
9520 (dw2_get_file_names_reader): Update.
9521 (macro_start_file): Update.
9522
9523 2020-02-08 Tom Tromey <tom@tromey.com>
9524
9525 * dwarf2/read.c (struct line_header) <file_full_name,
9526 file_file_name>: Declare methods.
9527 (dw2_get_file_names_reader): Update.
9528 (file_file_name): Now a method.
9529 (file_full_name): Likewise.
9530 (macro_start_file): Update.
9531
9532 2020-02-08 Tom Tromey <tom@tromey.com>
9533
9534 * dwarf2/read.c (dwarf_always_disassemble)
9535 (show_dwarf_always_disassemble): Move to loc.c.
9536 (_initialize_dwarf2_read): Move "always-disassemble" registration
9537 to loc.c.
9538 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9539 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9540 static.
9541 (show_dwarf_always_disassemble): Move from read.c.
9542 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9543
9544 2020-02-08 Tom Tromey <tom@tromey.com>
9545
9546 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9547 (create_quick_file_names_table): Return htab_up.
9548 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9549 Update.
9550 * dwarf2/read.h (struct dwarf2_per_objfile)
9551 <quick_file_names_table>: Now htab_up.
9552
9553 2020-02-08 Tom Tromey <tom@tromey.com>
9554
9555 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9556
9557 2020-02-08 Tom Tromey <tom@tromey.com>
9558
9559 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9560 Rewrite.
9561 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9562 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9563 (abbrev_table::abbrev_table): No longer inline.
9564 (ABBREV_HASH_SIZE): Remove.
9565 (abbrev_table::m_abbrevs): Now an htab_up.
9566
9567 2020-02-08 Tom Tromey <tom@tromey.com>
9568
9569 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9570 (cutu_reader): Update.
9571 (build_type_psymtabs_1): Update.
9572 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9573 (abbrev_table::alloc_abbrev): Update.
9574 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9575 (abbrev_table::read): New static method, renamed from
9576 abbrev_table_read_table.
9577 (abbrev_table::alloc_abbrev)
9578 (abbrev_table::add_abbrev): Now private.
9579 (abbrev_table::abbrev_table): Now private.
9580 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9581
9582 2020-02-08 Tom Tromey <tom@tromey.com>
9583
9584 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9585 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9586 htab_up.
9587
9588 2020-02-08 Tom Tromey <tom@tromey.com>
9589
9590 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9591 htab_up.
9592 (lookup_dwo_unit_in_dwp): Update.
9593 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9594 on obstack.
9595
9596 2020-02-08 Tom Tromey <tom@tromey.com>
9597
9598 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9599 obstack.
9600
9601 2020-02-08 Tom Tromey <tom@tromey.com>
9602
9603 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9604 line_header_hash.
9605 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9606 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9607 Change type to htab_up.
9608
9609 2020-02-08 Tom Tromey <tom@tromey.com>
9610
9611 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9612 htab_up. Don't allocate on obstack.
9613 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9614 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9615 Change type to htab_up.
9616
9617 2020-02-08 Tom Tromey <tom@tromey.com>
9618
9619 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9620 Change type to htab_up.
9621 * dwarf2/read.c (create_signatured_type_table_from_index)
9622 (create_signatured_type_table_from_debug_names)
9623 (create_all_type_units, add_type_unit)
9624 (lookup_dwo_signatured_type, lookup_signatured_type)
9625 (process_skeletonless_type_unit): Update.
9626 (create_debug_type_hash_table, create_debug_types_hash_table):
9627 Change type of types_htab.
9628 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9629 htab_up. Don't allocate on obstack.
9630 (create_cus_hash_table): Change type of cus_htab parameter.
9631 (struct dwo_file) <cus, tus>: Now htab_up.
9632 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9633 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9634 (queue_and_load_all_dwo_tus): Update.
9635 * dwarf2/index-write.c (write_gdbindex): Update.
9636 (write_debug_names): Update.
9637
9638 2020-02-08 Tom Tromey <tom@tromey.com>
9639
9640 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9641 dwarf2/read.c. Remove "next" member. Add constructor ntad
9642 destructor.
9643 (struct dwarf2_per_objfile) <queue>: New member.
9644 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9645 dwarf2/read.h.
9646 (dwarf2_queue, dwarf2_queue_tail): Remove.
9647 (class dwarf2_queue_guard): Add parameter to constructor. Use
9648 DISABLE_COPY_AND_ASSIGN.
9649 <m_per_objfile>: New member.
9650 <~dwarf2_queue_guard>: Rewrite.
9651 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9652 Update.
9653 (~dwarf2_queue_item): New.
9654
9655 2020-02-08 Tom Tromey <tom@tromey.com>
9656
9657 * dwarf2/read.c (struct die_info) <has_children>: New member.
9658 (dw2_get_file_names_reader): Remove has_children.
9659 (dw2_get_file_names): Update.
9660 (read_cutu_die_from_dwo): Remove has_children.
9661 (cutu_reader::init_tu_and_read_dwo_dies)
9662 (cutu_reader::cutu_reader): Update.
9663 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9664 Remove has_children.
9665 (build_type_psymtabs_1, process_skeletonless_type_unit)
9666 (load_partial_comp_unit, load_full_comp_unit): Update.
9667 (create_dwo_cu_reader): Remove has_children.
9668 (create_cus_hash_table, read_die_and_children): Update.
9669 (read_full_die_1,read_full_die): Remove has_children.
9670 (read_signatured_type): Update.
9671 (class cutu_reader) <has_children>: Remove.
9672
9673 2020-02-08 Tom Tromey <tom@tromey.com>
9674
9675 * dwarf2/expr.c: Rename from dwarf2expr.c.
9676 * dwarf2/expr.h: Rename from dwarf2expr.h.
9677 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9678 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9679 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9680 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9681 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9682 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9683 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9684 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9685 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9686 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9687 * dwarf2/loc.c: Rename from dwarf2loc.c.
9688 * dwarf2/loc.h: Rename from dwarf2loc.h.
9689 * dwarf2/read.c: Rename from dwarf2read.c.
9690 * dwarf2/read.h: Rename from dwarf2read.h.
9691 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9692 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9693 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9694 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9695 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9696 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9697 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9698 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9699 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9700 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9701 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9702 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9703 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9704 Update.
9705 * Makefile.in (COMMON_SFILES): Update.
9706 (HFILES_NO_SRCDIR): Update.
9707
9708 2020-02-08 Tom Tromey <tom@tromey.com>
9709
9710 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9711 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9712
9713 2020-02-08 Tom Tromey <tom@tromey.com>
9714
9715 * dwarf2read.h (struct die_info): Don't declare.
9716
9717 2020-02-08 Tom Tromey <tom@tromey.com>
9718
9719 * dwarf2read.h (die_info_ptr): Remove typedef.
9720
9721 2020-02-08 Tom Tromey <tom@tromey.com>
9722
9723 * dwarf2read.c (read_call_site_scope)
9724 (handle_data_member_location, dwarf2_add_member_fn)
9725 (mark_common_block_symbol_computed, read_common_block)
9726 (attr_to_dynamic_prop, partial_die_info::read)
9727 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9728 (dwarf2_symbol_mark_computed, set_die_type): Update.
9729 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9730 method.
9731 (attr_form_is_block): Don't declare.
9732 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9733
9734 2020-02-08 Tom Tromey <tom@tromey.com>
9735
9736 * dwarf2read.c (dwarf2_find_base_address, )
9737 (read_call_site_scope, rust_containing_type)
9738 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9739 (handle_data_member_location, dwarf2_add_member_fn)
9740 (get_alignment, read_structure_type, process_structure_scope)
9741 (mark_common_block_symbol_computed, read_common_block)
9742 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9743 (partial_die_info::read, read_attribute_value, new_symbol)
9744 (lookup_die_type, dwarf2_get_ref_die_offset)
9745 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9746 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9747 (dwarf2_symbol_mark_computed): Update.
9748 * dwarf2/attribute.h (struct attribute) <value_as_address,
9749 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9750 methods.
9751 (value_as_address, attr_form_is_section_offset)
9752 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9753 * dwarf2/attribute.c (attribute::value_as_address)
9754 (attribute::form_is_section_offset, attribute::form_is_constant)
9755 (attribute::form_is_ref): Now methods.
9756
9757 2020-02-08 Tom Tromey <tom@tromey.com>
9758
9759 * dwarf2read.c (struct attribute, DW_STRING)
9760 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9761 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9762 (attr_form_is_block, attr_form_is_section_offset)
9763 (attr_form_is_constant, attr_form_is_ref): Move.
9764 * dwarf2/attribute.h: New file.
9765 * dwarf2/attribute.c: New file, from dwarf2read.c.
9766 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9767
9768 2020-02-08 Tom Tromey <tom@tromey.com>
9769
9770 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9771 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9772 Move.
9773 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9774 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9775 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9776 abbrev.c.
9777 * dwarf2/abbrev.h: New file.
9778 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9779 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9780
9781 2020-02-08 Tom Tromey <tom@tromey.com>
9782
9783 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9784 (dwarf2_section_size, dwarf2_get_section_info)
9785 (create_signatured_type_table_from_debug_names)
9786 (create_addrmap_from_aranges, read_debug_names_from_section)
9787 (get_gdb_index_contents_from_section, read_comp_unit_head)
9788 (error_check_comp_unit_head, read_abbrev_offset)
9789 (create_debug_type_hash_table, init_cu_die_reader)
9790 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9791 (read_comp_units_from_section, create_cus_hash_table)
9792 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9793 (create_dwp_v2_section, dwarf2_rnglists_process)
9794 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9795 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9796 (read_indirect_string_from_dwz, read_addr_index_1)
9797 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9798 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9799 (fill_in_loclist_baton): Update.
9800 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9801 get_containing_section, get_bfd_owner, get_bfd_section,
9802 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9803 (dwarf2_read_section, get_section_name, get_section_file_name)
9804 (get_containing_section, get_section_bfd_owner)
9805 (get_section_bfd_section, get_section_name, get_section_file_name)
9806 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9807 declare.
9808 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9809 (dwarf2_section_info::get_bfd_owner)
9810 (dwarf2_section_info::get_bfd_section)
9811 (dwarf2_section_info::get_name)
9812 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9813 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9814 (dwarf2_section_info::read): Now methods.
9815 * dwarf-index-write.c (class debug_names): Update.
9816
9817 2020-02-08 Tom Tromey <tom@tromey.com>
9818
9819 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9820 Move to dwarf2/section.h.
9821 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9822 (get_section_bfd_section, get_section_name)
9823 (get_section_file_name, get_section_id, get_section_flags)
9824 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9825 dwarf2/section.c.
9826 * dwarf2/section.h: New file.
9827 * dwarf2/section.c: New file, from dwarf2read.c.
9828 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9829
9830 2020-02-08 Tom Tromey <tom@tromey.com>
9831
9832 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9833 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9834 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9835 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9836 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9837 * dwarf2/leb.h: New file, from dwarf2read.c.
9838 * dwarf2/leb.c: New file, from dwarf2read.c.
9839 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9840 Remove.
9841 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9842 (COMMON_SFILES): Add dwarf2/leb.c.
9843
9844 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9845
9846 GDB 9.1 released.
9847
9848 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9849
9850 PR gdb/25190:
9851 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9852 * gdb/remote.c (remote_console_output): Update.
9853 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9854 (ui_file_puts): ...this.
9855 * gdb/ui-file.h (ui_file_puts): Add declaration.
9856 * gdb/utils.c (emit_style_escape): Update.
9857 (flush_wrap_buffer): Update.
9858 (fputs_maybe_filtered): Update.
9859 (fputs_unfiltered): Add function.
9860
9861 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9862
9863 * gdb/event-loop.c (gdb_wait_for_event): Update.
9864 * gdb/printcmd.c (printf_command): Update.
9865 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9866 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9867 (gdb_os_flush_stderr): Update.
9868 * gdb/remote.c (remote_console_output): Update.
9869 * gdb/ui-file.c (gdb_flush): Rename to...
9870 (ui_file_flush): ...this.
9871 (stderr_file::write): Update.
9872 (stderr_file::puts): Update.
9873 * gdb/ui-file.h (gdb_flush): Rename to...
9874 (ui_file_flush): ...this.
9875 * gdb/utils.c (gdb_flush): Add function.
9876 * gdb/utils.h (gdb_flush): Add declaration.
9877
9878 2020-02-07 Tom Tromey <tromey@adacore.com>
9879
9880 PR breakpoints/24915:
9881 * source.c (find_and_open_source): Do not check basenames_may_differ.
9882
9883 2020-02-07 Tom Tromey <tom@tromey.com>
9884
9885 * README: Update gdbserver documentation.
9886 * gdbserver: Move to top level.
9887 * configure.tgt (build_gdbserver): Remove.
9888 * configure.ac: Remove --enable-gdbserver.
9889 * configure: Rebuild.
9890 * Makefile.in (distclean): Don't mention gdbserver.
9891
9892 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9893
9894 * source-cache.c (source_cache::ensure): Surround
9895 get_plain_source_lines with a try/catch.
9896 (source_cache::get_line_charpos): Get rid of try/catch
9897 and only check for the return value of "ensure".
9898 * tui/tui-source.c (tui_source_window::set_contents):
9899 Simplify "nlines" calculation.
9900
9901 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9902
9903 * MAINTAINERS (Write After Approval): Add myself.
9904
9905 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9906
9907 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9908 function call.
9909
9910 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9911
9912 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9913
9914 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9915
9916 * nat/riscv-linux-tdesc.h: New file.
9917 * nat/riscv-linux-tdesc.c: New file, taking code from...
9918 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9919 ... here.
9920 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9921 NATDEPFILES.
9922
9923 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9924
9925 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9926 we don't set the fake simulator ptid to the null_ptid.
9927
9928 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9929
9930 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9931 * gdbthread.h (class thread_info) <resumed>: Likewise.
9932 * infrun.c (resume_1): Likewise.
9933 (proceed): Likewise.
9934 (infrun_thread_stop_requested): Likewise.
9935 (stop_all_threads): Likewise.
9936 (handle_inferior_event): Likewise.
9937 (restart_threads): Likewise.
9938 (finish_step_over): Likewise.
9939 (keep_going_stepped_thread): Likewise.
9940 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9941 (linux_handle_extended_wait): Likewise.
9942 * record-btrace.c (get_thread_current_frame_id): Likewise.
9943 * record-full.c (record_full_wait_1): Likewise.
9944 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9945 * target.c (target_resume): Likewise.
9946 * thread.c (set_running_thread): Likewise.
9947
9948 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9949
9950 * f-valprint.c (f77_print_array_1): Changed datatype of index
9951 variable to LONGEST from int to enable it to contain bound
9952 values correctly.
9953
9954 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9955
9956 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9957 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9958 offsets according to FLEN determined.
9959 (riscv_linux_nat_target::read_description): Determine FLEN
9960 dynamically.
9961 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9962 according to FLEN determined.
9963 (riscv_linux_nat_target::store_registers): Likewise.
9964
9965 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9966
9967 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9968 when reg->group is empty and reggroup is not.
9969
9970 2020-01-31 Tom Tromey <tromey@adacore.com>
9971
9972 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9973 Call beneath target's mourn_inferior after unpushing.
9974
9975 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9976
9977 PR tui/9765
9978 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9979 have enough lines to fill the screen, still return the lowest
9980 address we found.
9981
9982 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9983
9984 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9985 '-', '<', and '>' commands.
9986
9987 2020-01-29 Pedro Alves <palves@redhat.com>
9988 Sergio Durigan Junior <sergiodj@redhat.com>
9989
9990 * infcmd.c (construct_inferior_arguments): Assert that
9991 'argc' is greater than 0.
9992
9993 2020-01-29 Luis Machado <luis.machado@linaro.org>
9994
9995 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9996 (BRK_INSN_MASK): Define to 0xd4200000.
9997 (aarch64_program_breakpoint_here_p): New function.
9998 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9999 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10000 breakpoint.c.
10001 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10002 breakpoint.h
10003 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10004 call gdbarch_program_breakpoint_here_p.
10005 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10006 default_program_breakpoint_here_p, changed return type to bool and
10007 simplified.
10008 * breakpoint.h (program_breakpoint_here): Moved prototype to
10009 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10010 return type to bool.
10011 * gdbarch.c: Regenerate.
10012 * gdbarch.h: Regenerate.
10013 * gdbarch.sh (program_breakpoint_here_p): New method.
10014 * infrun.c (handle_signal_stop): Call
10015 gdbarch_program_breakpoint_here_p.
10016
10017 2020-01-26 Tom Tromey <tom@tromey.com>
10018
10019 * ctfread.c (struct ctf_fp_info): Reindent.
10020 (_initialize_ctfread): Remove.
10021
10022 2020-01-26 Tom Tromey <tom@tromey.com>
10023
10024 * psymtab.c (partial_map_expand_apply)
10025 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10026 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10027 (psym_print_stats, psym_expand_symtabs_for_function)
10028 (psym_map_symbol_filenames, psym_map_matching_symbols)
10029 (psym_expand_symtabs_matching)
10030 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10031 (maintenance_check_psymtabs): Use new methods.
10032 * psympriv.h (struct partial_symtab) <readin_p,
10033 get_compunit_symtab>: New methods.
10034 <readin, compunit_symtab>: Remove members.
10035 (struct standard_psymtab): New.
10036 (struct legacy_psymtab): Derive from standard_psymtab.
10037 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10038 standard_psymtab.
10039 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10040
10041 2020-01-26 Tom Tromey <tom@tromey.com>
10042
10043 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10044 read_dependencies. Add assert.
10045 * psymtab.c (partial_symtab::read_dependencies): New method.
10046 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10047 method.
10048 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10049 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10050 read_dependencies.
10051 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10052 Add assert.
10053
10054 2020-01-26 Tom Tromey <tom@tromey.com>
10055
10056 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10057 Call expand_psymtab.
10058 (xcoff_read_symtab): Call expand_psymtab.
10059 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10060 legacy_expand_psymtab.
10061 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10062 method.
10063 (struct legacy_psymtab) <expand_psymtab>: Implement.
10064 <legacy_expand_psymtab>: New member.
10065 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10066 (parse_partial_symbols): Set legacy_expand_psymtab.
10067 (psymtab_to_symtab_1): Change argument order. Call
10068 expand_psymtab.
10069 (new_psymtab): Set legacy_expand_psymtab.
10070 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10071 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10072 expand_psymtab.
10073 (dwarf2_psymtab::expand_psymtab): Rename from
10074 psymtab_to_symtab_1. Call expand_psymtab.
10075 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10076 (dbx_end_psymtab): Likewise.
10077 (dbx_psymtab_to_symtab_1): Change argument order. Call
10078 expand_psymtab.
10079 (dbx_read_symtab): Call expand_psymtab.
10080 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10081 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10082 (ctf_psymtab::read_symtab): Call expand_psymtab.
10083
10084 2020-01-26 Tom Tromey <tom@tromey.com>
10085
10086 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10087 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10088 messages.
10089 * mdebugread.c (mdebug_read_symtab): Remove prints.
10090 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10091 assert.
10092 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10093
10094 2020-01-26 Tom Tromey <tom@tromey.com>
10095
10096 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10097 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10098 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10099 legacy_symtab.
10100 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10101 * psymtab.c (psymtab_to_symtab): Call method.
10102 (dump_psymtab): Update.
10103 * psympriv.h (struct partial_symtab): Add virtual destructor.
10104 <read_symtab>: New method.
10105 (struct legacy_symtab): New.
10106 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10107 (struct pst_map) <pst>: Now a legacy_psymtab.
10108 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10109 (new_psymtab): Use legacy_psymtab.
10110 * dwarf2read.h (struct dwarf2_psymtab): New.
10111 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10112 * dwarf2read.c (dwarf2_create_include_psymtab)
10113 (dwarf2_build_include_psymtabs, create_type_unit_group)
10114 (create_partial_symtab, process_psymtab_comp_unit_reader)
10115 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10116 (set_partial_user): Use dwarf2_psymtab.
10117 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10118 (psymtab_to_symtab_1, process_full_comp_unit)
10119 (process_full_type_unit, dwarf2_ranges_read)
10120 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10121 (dwarf_decode_lines): Use dwarf2_psymtab.
10122 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10123 (add_address_entry_worker, write_one_signatured_type)
10124 (recursively_count_psymbols, recursively_write_psymbols)
10125 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10126 (write_debug_names): Likewise.
10127 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10128 <pst>: Now a legacy_psymtab.
10129 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10130 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10131 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10132 * ctfread.c (struct ctf_psymtab): New.
10133 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10134 ctf_psymtab.
10135 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10136 (create_partial_symtab): Return a ctf_psymtab.
10137 (scan_partial_symbols): Update.
10138
10139 2020-01-26 Tom Tromey <tom@tromey.com>
10140
10141 * xcoffread.c (xcoff_start_psymtab): Use new.
10142 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10143 renamed from start_psymtab_common.
10144 * psympriv.h (struct partial_symtab): Add new constructor.
10145 (start_psymtab_common): Don't declare.
10146 * mdebugread.c (parse_partial_symbols): Use new.
10147 * dwarf2read.c (create_partial_symtab): Use new.
10148 * dbxread.c (start_psymtab): Use new.
10149 * ctfread.c (create_partial_symtab): Use new.
10150
10151 2020-01-26 Tom Tromey <tom@tromey.com>
10152
10153 * xcoffread.c (xcoff_end_psymtab): Use new.
10154 * psymtab.c (start_psymtab_common): Use new.
10155 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10156 Update.
10157 * psympriv.h (struct partial_symtab): Add parameters to
10158 constructor. Don't inline.
10159 (allocate_psymtab): Don't declare.
10160 * mdebugread.c (new_psymtab): Use new.
10161 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10162 * dbxread.c (dbx_end_psymtab): Use new.
10163
10164 2020-01-26 Tom Tromey <tom@tromey.com>
10165
10166 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10167 allocate_psymtab. Update documentation.
10168 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10169 allocate_psymtab. Do not use new.
10170 (allocate_psymtab): Use new. Update.
10171
10172 2020-01-26 Tom Tromey <tom@tromey.com>
10173
10174 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10175 * psymtab.c (psym_print_stats): Update.
10176 * psympriv.h (struct partial_symtab) <readin,
10177 psymtabs_addrmap_supported, anonymous>: Now bool.
10178 * mdebugread.c (psymtab_to_symtab_1): Update.
10179 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10180 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10181 (process_full_comp_unit, process_full_type_unit): Update.
10182 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10183 * ctfread.c (psymtab_to_symtab): Update.
10184
10185 2020-01-26 Tom Tromey <tom@tromey.com>
10186
10187 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10188 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10189 * psymtab.c (psymtab_storage): Delete psymtabs.
10190 (psymtab_storage::allocate_psymtab): Use new.
10191 (psymtab_storage::discard_psymtab): Use delete.
10192 * psympriv.h (struct partial_symtab): Add constructor and
10193 initializers.
10194
10195 2020-01-26 Tom Tromey <tom@tromey.com>
10196
10197 * machoread.c: Do not include psympriv.h.
10198
10199 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10200
10201 * NEWS: Mention the new option and the set/show commands.
10202
10203 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10204
10205 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10206 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10207 (validate_exec_file): New variables, enums, functions.
10208 (exec_file_locate_attach, print_section_info): Style the filenames.
10209 (_initialize_exec): Install show_exec_file_mismatch_command and
10210 set_exec_file_mismatch_command.
10211 * gdbcore.h (validate_exec_file): Declare.
10212 * infcmd.c (attach_command): Call validate_exec_file.
10213 * remote.c ( remote_target::remote_add_inferior): Likewise.
10214
10215 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10216
10217 * frame.c (find_frame_sal): Move call to get_next_frame into more
10218 inner scope.
10219 * inline-frame.c (inilne_state) <inline_state>: Update argument
10220 types.
10221 (inilne_state) <skipped_symbol>: Rename to...
10222 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10223 (skip_inline_frames): Build vector of skipped symbols and use this
10224 to reate the inline_state.
10225 (inline_skipped_symbol): Add a comment and some assertions, fetch
10226 skipped symbol from the list.
10227
10228 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10229
10230 * buildsym.c (lte_is_less_than): Delete.
10231 (buildsym_compunit::end_symtab_with_blockvector): Create local
10232 lambda function to sort line table entries, and use
10233 std::stable_sort instead of std::sort.
10234 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10235 markers when looking for a previous line.
10236
10237 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10238
10239 * dwarf2read.c (lnp_state_machine::record_line): Include
10240 end_sequence parameter in debug print out. Record the line if we
10241 are at an end_sequence marker even if it's not the start of a
10242 statement.
10243 * symmisc.c (maintenance_print_one_line_table): Print end of
10244 sequence markers with 'END' not '0'.
10245
10246 2020-01-24 Pedro Alves <palves@redhat.com>
10247
10248 PR gdb/25410
10249 * thread.c (scoped_restore_current_thread::restore): Use
10250 switch_to_inferior_no_thread.
10251 * exec.c: Include "progspace-and-thread.h".
10252 (add_target_sections, remove_target_sections):
10253 scoped_restore_current_pspace_and_thread instead of
10254 scoped_restore_current_thread.
10255 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10256 and aspace to the inferior before calling clone_program_space.
10257 Remove stale comment.
10258
10259 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10260
10261 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10262 (arm_netbsd_nat_target::fetch_registers): ...this.
10263 (arm_nbsd_nat_target::store_registers): Rename to...
10264 (arm_netbsd_nat_target::store_registers): ...this.
10265
10266 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10267
10268 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10269 register_t.
10270
10271 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10272
10273 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10274 Update comment.
10275 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10276 Likewise.
10277 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10278 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10279 the correct replacement (iterate_over_regset_sections).
10280 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10281 Update comment.
10282
10283 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10284
10285 PR gdb/23718
10286 * gdb/python/python.c (execute_gdb_command): Call
10287 async_enable_stdin in catch block.
10288
10289 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10290
10291 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10292 SWITCH_THRU_ALL_UIS.
10293
10294 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10295
10296 PR tui/9765
10297 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10298 comment, add extra parameter, and update to store previous symbol
10299 when appropriate.
10300 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10301 add extra parameter.
10302 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10303 remove unneeded parameter, add try/catch around gdb_print_insn,
10304 rewrite to add items to asm_lines vector.
10305 (tui_find_backward_disassembly_start_address): New function.
10306 (tui_find_disassembly_address): Updated throughout.
10307 (tui_disasm_window::set_contents): Update for changes to
10308 tui_disassemble.
10309 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10310 number of lines to scroll.
10311
10312 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10313
10314 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10315 (SECT_OFF_DATA): Likewise.
10316 (SECT_OFF_RODATA): Likewise.
10317 (SECT_OFF_TEXT): Likewise.
10318 (SECT_OFF_BSS): Likewise.
10319 (struct objfile) <text_section_offset, data_section_offset>: New
10320 methods.
10321 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10322 objfile::text_section_offset.
10323 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10324 * coffread.c (coff_symtab_read): Likewise.
10325 (enter_linenos): Likewise.
10326 (process_coff_symbol): Likewise.
10327 * ctfread.c (get_objfile_text_range): Likewise.
10328 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10329 Use objfile::data_section_offset.
10330 * dwarf2-frame.c (execute_cfa_program): Use
10331 objfile::text_section_offset.
10332 (dwarf2_frame_find_fde): Likewise.
10333 * dwarf2read.c (create_addrmap_from_index): Likewise.
10334 (create_addrmap_from_aranges): Likewise.
10335 (dw2_find_pc_sect_compunit_symtab): Likewise.
10336 (process_psymtab_comp_unit_reader): Likewise.
10337 (add_partial_symbol): Likewise.
10338 (add_partial_subprogram): Likewise.
10339 (process_full_comp_unit): Likewise.
10340 (read_file_scope): Likewise.
10341 (read_func_scope): Likewise.
10342 (read_lexical_block_scope): Likewise.
10343 (read_call_site_scope): Likewise.
10344 (dwarf2_rnglists_process): Likewise.
10345 (dwarf2_ranges_process): Likewise.
10346 (dwarf2_ranges_read): Likewise.
10347 (dwarf_decode_lines_1): Likewise.
10348 (new_symbol): Likewise.
10349 (dwarf2_fetch_die_loc_sect_off): Likewise.
10350 (dwarf2_per_cu_text_offset): Likewise.
10351 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10352 * hppa-tdep.c (read_unwind_info): Likewise.
10353 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10354 * psympriv.h (struct partial_symtab): Likewise.
10355 * psymtab.c (find_pc_sect_psymtab): Likewise.
10356 * solib-svr4.c (enable_break): Likewise.
10357 * stap-probe.c (relocate_address): Use
10358 objfile::data_section_offset.
10359 * xcoffread.c (enter_line_range): Use
10360 objfile::text_section_offset.
10361 (read_xcoff_symtab): Likewise.
10362
10363 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10364
10365 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10366 declaration to narrower scopes.
10367
10368 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10369
10370 * darwin-nat.h (struct darwin_exception_msg, enum
10371 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10372 Move up.
10373 (class darwin_nat_target) <wait_1, check_new_threads,
10374 decode_exception_message, decode_message, stop_inferior,
10375 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10376 * darwin-nat.c (darwin_check_new_threads): Rename to...
10377 (darwin_nat_target::check_new_threads): ... this.
10378 (darwin_suspend_inferior_it): Remove.
10379 (darwin_decode_exception_message): Rename to...
10380 (darwin_nat_target::decode_exception_message): ... this.
10381 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10382 (darwin_decode_message): Rename to...
10383 (darwin_nat_target::decode_message): ... this.
10384 (cancel_breakpoint): Rename to...
10385 (darwin_nat_target::cancel_breakpoint): ... this.
10386 (darwin_wait): Rename to...
10387 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10388 instead of iterate_over_inferiors.
10389 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10390 (darwin_stop_inferior): Rename to...
10391 (darwin_nat_target::stop_inferior): ... this.
10392 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10393 (darwin_init_thread_list): Rename to...
10394 (darwin_nat_target::init_thread_list): ... this.
10395 (darwin_ptrace_him): Rename to...
10396 (darwin_nat_target::ptrace_him): ... this.
10397 (darwin_nat_target::create_inferior): Pass lambda function to
10398 fork_inferior.
10399 (darwin_nat_target::detach): Call stop_inferior instead of
10400 darwin_stop_inferior.
10401 * fork-inferior.h (fork_inferior): Change init_trace_fun
10402 parameter to gdb::function_view.
10403 * fork-inferior.c (fork_inferior): Likewise.
10404
10405 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10406
10407 * i386-cygwin-tdep.c (core_process_module_section): Update.
10408 * windows-nat.c (struct lm_info_windows): Add text_offset.
10409 (windows_xfer_shared_libraries): Update.
10410 * windows-tdep.c (windows_xfer_shared_library):
10411 Add text_offset_cached argument.
10412 * windows-tdep.h (windows_xfer_shared_library): Update.
10413
10414 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10415
10416 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10417
10418 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10419
10420 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10421 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10422 replace with range-based for.
10423 (gdbsim_interrupt_inferior): Remove.
10424 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10425 with a range-based for. Inline code from
10426 gdbsim_interrupt_inferior.
10427
10428 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10429
10430 * infrun.c (proceed): Fix indentation.
10431
10432 2020-01-21 Tom Tromey <tromey@adacore.com>
10433
10434 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10435 * python/python.c (python_extension_ops): Update.
10436 (gdbpy_colorize): New function.
10437 * python/lib/gdb/__init__.py (colorize): New function.
10438 * extension.h (ext_lang_colorize): Declare.
10439 * extension.c (ext_lang_colorize): New function.
10440 * extension-priv.h (struct extension_language_ops) <colorize>: New
10441 member.
10442 * cli/cli-style.c (_initialize_cli_style): Update help text.
10443
10444 2020-01-21 Luis Machado <luis.machado@linaro.org>
10445
10446 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10447 <cond>: Change type to bool.
10448 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10449 (aarch64_displaced_step_cb): Likewise.
10450 (aarch64_displaced_step_tb): Likewise.
10451
10452 2020-01-21 Luis Machado <luis.machado@linaro.org>
10453
10454 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10455 output.
10456
10457 2020-01-21 Luis Machado <luis.machado@linaro.org>
10458
10459 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10460 <pc_adjust>: Adjust the documentation.
10461 (aarch64_displaced_step_fixup): Check if PC really moved before
10462 adjusting it.
10463
10464 2020-01-19 Tom Tromey <tom@tromey.com>
10465
10466 * disasm.c (~gdb_disassembler): New destructor.
10467 (gdb_buffered_insn_length): Call disassemble_free_target.
10468 * disasm.h (class gdb_disassembler): Declare destructor. Use
10469 DISABLE_COPY_AND_ASSIGN.
10470
10471 2020-01-19 Tom Tromey <tom@tromey.com>
10472
10473 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10474 (die_reader_func_ftype): Remove.
10475 (cutu_reader): New class.
10476 (dw2_get_file_names_reader): Remove "data" parameter.
10477 (dw2_get_file_names): Use cutu_reader.
10478 (create_debug_type_hash_table): Update.
10479 (read_cutu_die_from_dwo): Update comment.
10480 (lookup_dwo_unit): Add dwo_name parameter.
10481 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10482 die_reader_func_ftype and data parameters.
10483 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10484 Remove die_reader_func_ftype and data parameters.
10485 (~cutu_reader): New; from init_cutu_and_read_dies.
10486 (cutu_reader::cutu_reader): Rename from
10487 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10488 and data parameters.
10489 (init_cutu_and_read_dies_simple): Remove.
10490 (struct process_psymtab_comp_unit_data): Remove.
10491 (process_psymtab_comp_unit_reader): Remove data parameter; add
10492 want_partial_unit and pretend_language parameters.
10493 (process_psymtab_comp_unit): Use cutu_reader.
10494 (build_type_psymtabs_reader): Remove data parameter.
10495 (build_type_psymtabs_1): Use cutu_reader.
10496 (process_skeletonless_type_unit): Likewise.
10497 (load_partial_comp_unit_reader): Remove.
10498 (load_partial_comp_unit): Use cutu_reader.
10499 (load_full_comp_unit_reader): Remove.
10500 (load_full_comp_unit): Use cutu_reader.
10501 (struct create_dwo_cu_data): Remove.
10502 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10503 dwo_unit parameters.
10504 (create_cus_hash_table): Use cutu_reader.
10505 (struct dwarf2_read_addr_index_data): Remove.
10506 (dwarf2_read_addr_index_reader): Remove.
10507 (dwarf2_read_addr_index): Use cutu_reader.
10508 (read_signatured_type_reader): Remove.
10509 (read_signatured_type): Use cutu_reader.
10510
10511 2020-01-19 Tom Tromey <tom@tromey.com>
10512
10513 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10514 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10515 (tui_wrefresh): Declare.
10516 * tui/tui-wingeneral.c (suppress_output): New global.
10517 (tui_suppress_output, ~tui_suppress_output): New constructor and
10518 destructor.
10519 (tui_wrefresh): New function.
10520 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10521 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10522 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10523 method.
10524 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10525 tui_wrefresh.
10526 (tui_data_window::no_refresh): New method.
10527 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10528 (tui_reg_command): Use tui_suppress_output
10529 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10530 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10531 method.
10532 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10533
10534 2020-01-19 Tom Tromey <tom@tromey.com>
10535
10536 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10537 Handle case where symtab is null.
10538
10539 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10540
10541 * linux-fork.c (one_fork_p): Simplify.
10542
10543 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10544
10545 * top.c (struct qt_args): Remove.
10546 (kill_or_detach): Change return type to void, replace `void *`
10547 parameter with a proper one.
10548 (print_inferior_quit_action): Likewise.
10549 (quit_confirm): Use range-based for loop to iterate over inferiors.
10550 (quit_force): Likewise.
10551
10552 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10553
10554 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10555 `void *` parameter with proper parameters.
10556 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10557 (print_one_inferior): Change return type to void, replace `void *`
10558 parameter with proper parameters.
10559 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10560 inferiors.
10561 (get_other_inferior): Remove.
10562 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10563 inferiors.
10564
10565 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10566
10567 * mi/mi-interp.c (report_initial_inferior): Remove.
10568 (mi_interp::init): Use range-based for to iterate over inferiors.
10569
10570 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10571
10572 * python/py-inferior.c (build_inferior_list): Remove.
10573 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10574
10575 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10576
10577 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10578 (btrace_stitch_trace): Likewise.
10579 * charset.c (intermediate_encoding): Likewise (vaild).
10580 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10581 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10582 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10583
10584 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10585
10586 * windows-tdep.c (windows_get_tlb_type):
10587 Add rtl_user_process_parameters type.
10588
10589 2020-01-16 Pedro Alves <palves@redhat.com>
10590 Norbert Lange <nolange79@gmail.com>
10591
10592 PR build/24805
10593 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10594 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10595 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10596 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10597 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10598 (ps_plog): Redeclare exported functions with default visibility.
10599
10600 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10601
10602 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10603 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10604
10605 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10606
10607 * infcmd.c (post_create_inferior): Use get_thread_regcache
10608 instead of get_current_regcache.
10609
10610 2020-01-14 Tom Tromey <tom@tromey.com>
10611
10612 PR symtab/12535:
10613 * python/python.c (gdbpy_decode_line): Treat empty string the same
10614 as no argument.
10615
10616 2020-01-14 Tom Tromey <tom@tromey.com>
10617
10618 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10619
10620 2020-01-14 Tom Tromey <tom@tromey.com>
10621
10622 * nat/linux-btrace.c: Don't include <config.h>.
10623 * nat/linux-ptrace.c: Don't include <config.h>.
10624 * nat/x86-linux-dregs.c: Don't include <config.h>.
10625
10626 2020-01-14 Tom Tromey <tom@tromey.com>
10627
10628 * configure: Rebuild.
10629 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10630
10631 2020-01-14 Tom Tromey <tom@tromey.com>
10632
10633 * nat/x86-linux-dregs.c: Include configh.h.
10634 * nat/linux-ptrace.c: Include configh.h.
10635 * nat/linux-btrace.c: Include configh.h.
10636 * defs.h: Include config.h, bfd.h.
10637 * configure.ac: Don't source common.host.
10638 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10639 * configure: Rebuild.
10640 * acinclude.m4: Update path.
10641 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10642 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10643 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10644 (CLIBS): Add LIBSUPPORT.
10645 (CDEPS): Likewise.
10646 (COMMON_SFILES): Remove gdbsupport files.
10647 (HFILES_NO_SRCDIR): Likewise.
10648 (stamp-version): Update path to create-version.sh.
10649 (ALLDEPFILES): Remove gdbsupport files.
10650
10651 2020-01-14 Tom Tromey <tom@tromey.com>
10652
10653 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10654 USE_WIN32API when needed.
10655 * configure.ac (USE_WIN32API): Don't define.
10656 (WIN32LIBS): Use WIN32APILIBS.
10657 * configure: Rebuild.
10658
10659 2020-01-14 Tom Tromey <tom@tromey.com>
10660
10661 * configure: Rebuild.
10662 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10663
10664 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10665
10666 * skip.c (skip_function_command): Make skip w/o arguments use the
10667 name of the inlined function if pc is inside any inlined function.
10668
10669 2020-01-14 Luis Machado <luis.machado@linaro.org>
10670
10671 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10672 * infrun.c (resume_1): Likewise.
10673 (handle_inferior_event): Remove stale comment.
10674 * linux-nat.c (linux_nat_target::resume): Update comments.
10675 (save_stop_reason): Likewise.
10676 (linux_nat_filter_event): Likewise.
10677 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10678
10679 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10680
10681 * elfread.c (record_minimal_symbol): Set section index to 0 for
10682 non-allocatable sections.
10683
10684
10685 2020-01-13 Ali Tamur <tamur@google.com>
10686
10687 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10688 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10689 to gdb::optional. Update comments.
10690 (dwo_file): Update comments.
10691 (read_attribute): Update API to take an additional out parameter,
10692 need_reprocess. This is used to mark attributes that need other
10693 attributes (e.g. str_offsets_base) for correct computation which may not
10694 have been read yet.
10695 (read_attribute_reprocess): New function declaration.
10696 (read_addr_index): Likewise.
10697 (read_dwo_str_index): Likewise.
10698 (read_stub_str_index): Likewise.
10699 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10700 (lookup_addr_base): New function definition.
10701 (lookup_ranges_base): Likewise.
10702 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10703 lookup_ranges_base.
10704 (init_cutu_and_read_dies): Update comments.
10705 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10706 unit. This is used to inherit parent's str_offsets_base and addr_base.
10707 Update comments.
10708 (init_cutu_and_read_dies_simple): Reflect API changes.
10709 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10710 (create_cus_hash_table): Change API to take parent compile unit.
10711 Reflect API changes.
10712 (open_and_init_dwo_file): Reflect API changes.
10713 (dwarf2_get_pc_bounds): Update comments.
10714 (dwarf2_record_block_ranges): Likewise.
10715 (read_full_die_1): Change implementation to reprocess attributes that
10716 need str_offsets_base and addr_base.
10717 (partial_die_info::read): Likewise.
10718 (read_attribute_reprocess): New function definition.
10719 (read_attribute_value): Change API to take an additional out parameter,
10720 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10721 when a non-dwo compile unit has index based attributes.
10722 (read_attribute): Reflect API changes.
10723 (read_addr_index_1): Reflect API changes. Update comments.
10724 (dwarf2_read_addr_index_data): Reflect API changes.
10725 (dwarf2_read_addr_index): Likewise.
10726 (read_str_index): Change API and implementation. This becomes a helper
10727 to be used by the new string index related methods. Update error
10728 message and comments.
10729 (read_dwo_str_index): New function definition.
10730 (read_stub_str_index): Likewise.
10731 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10732 * symfile.h (dwarf2_debug_sections): Likewise.
10733 * xcoffread.c (dwarf2_debug_sections): Likewise.
10734
10735 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10736
10737 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10738 core_reg_sect type to gdb_byte *.
10739 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10740 * cris-tdep.c (fetch_core_registers): Likewise.
10741 * corelow.c (core_target::get_core_register_section): Change
10742 type of `contents` to gdb::byte_vector.
10743
10744 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10745
10746 * tui/tui-wingeneral.c (box_win): Position the title in the center
10747 of the border.
10748
10749 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10750
10751 * corelow.c (core_target::get_core_register_section): Use
10752 std::vector instead of alloca.
10753
10754 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10755
10756 * warning.m4: Add -Wmissing-declarations to build_warnings.
10757 * configure: Re-generate.
10758
10759 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10760
10761 * python/python.c (init__gdb_module): Add declaration.
10762
10763 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10764
10765 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10766 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10767 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10768 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10769 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10770 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10771 * ada-exp.y (_initialize_ada_exp): Add declaration.
10772 * ada-lang.c (_initialize_ada_language): Add declaration.
10773 * ada-tasks.c (_initialize_tasks): Add declaration.
10774 * agent.c (_initialize_agent): Add declaration.
10775 * aix-thread.c (_initialize_aix_thread): Add declaration.
10776 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10777 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10778 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10779 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10780 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10781 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10782 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10783 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10784 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10785 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10786 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10787 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10788 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10789 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10790 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10791 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10792 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10793 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10794 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10795 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10796 * annotate.c (_initialize_annotate): Add declaration.
10797 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10798 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10799 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10800 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10801 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10802 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10803 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10804 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10805 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10806 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10807 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10808 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10809 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10810 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10811 * auto-load.c (_initialize_auto_load): Add declaration.
10812 * auxv.c (_initialize_auxv): Add declaration.
10813 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10814 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10815 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10816 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10817 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10818 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10819 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10820 * breakpoint.c (_initialize_breakpoint): Add declaration.
10821 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10822 * btrace.c (_initialize_btrace): Add declaration.
10823 * charset.c (_initialize_charset): Add declaration.
10824 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10825 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10826 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10827 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10828 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10829 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10830 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10831 * coffread.c (_initialize_coffread): Add declaration.
10832 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10833 * compile/compile.c (_initialize_compile): Add declaration.
10834 * complaints.c (_initialize_complaints): Add declaration.
10835 * completer.c (_initialize_completer): Add declaration.
10836 * copying.c (_initialize_copying): Add declaration.
10837 * corefile.c (_initialize_core): Add declaration.
10838 * corelow.c (_initialize_corelow): Add declaration.
10839 * cp-abi.c (_initialize_cp_abi): Add declaration.
10840 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10841 * cp-support.c (_initialize_cp_support): Add declaration.
10842 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10843 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10844 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10845 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10846 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10847 * ctfread.c (_initialize_ctfread): Add declaration.
10848 * d-lang.c (_initialize_d_language): Add declaration.
10849 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10850 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10851 * dbxread.c (_initialize_dbxread): Add declaration.
10852 * dcache.c (_initialize_dcache): Add declaration.
10853 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10854 * disasm.c (_initialize_disasm): Add declaration.
10855 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10856 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10857 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10858 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10859 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10860 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10861 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10862 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10863 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10864 * elfread.c (_initialize_elfread): Add declaration.
10865 * exec.c (_initialize_exec): Add declaration.
10866 * extension.c (_initialize_extension): Add declaration.
10867 * f-lang.c (_initialize_f_language): Add declaration.
10868 * f-valprint.c (_initialize_f_valprint): Add declaration.
10869 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10870 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10871 * filesystem.c (_initialize_filesystem): Add declaration.
10872 * findcmd.c (_initialize_mem_search): Add declaration.
10873 * findvar.c (_initialize_findvar): Add declaration.
10874 * fork-child.c (_initialize_fork_child): Add declaration.
10875 * frame-base.c (_initialize_frame_base): Add declaration.
10876 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10877 * frame.c (_initialize_frame): Add declaration.
10878 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10879 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10880 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10881 * gcore.c (_initialize_gcore): Add declaration.
10882 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10883 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10884 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10885 * gdbarch.c (_initialize_gdbarch): Add declaration.
10886 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10887 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10888 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10889 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10890 * go-lang.c (_initialize_go_language): Add declaration.
10891 * go32-nat.c (_initialize_go32_nat): Add declaration.
10892 * guile/guile.c (_initialize_guile): Add declaration.
10893 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10894 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10895 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10896 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10897 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10898 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10899 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10900 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10901 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10902 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10903 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10904 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10905 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10906 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10907 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10908 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10909 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10910 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10911 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10912 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10913 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10914 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10915 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10916 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10917 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10918 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10919 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10920 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10921 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10922 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10923 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10924 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10925 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10926 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10927 * infcall.c (_initialize_infcall): Add declaration.
10928 * infcmd.c (_initialize_infcmd): Add declaration.
10929 * inflow.c (_initialize_inflow): Add declaration.
10930 * infrun.c (_initialize_infrun): Add declaration.
10931 * interps.c (_initialize_interpreter): Add declaration.
10932 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10933 * jit.c (_initialize_jit): Add declaration.
10934 * language.c (_initialize_language): Add declaration.
10935 * linux-fork.c (_initialize_linux_fork): Add declaration.
10936 * linux-nat.c (_initialize_linux_nat): Add declaration.
10937 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10938 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10939 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10940 * m2-lang.c (_initialize_m2_language): Add declaration.
10941 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10942 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10943 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10944 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10945 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10946 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10947 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10948 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10949 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10950 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10951 * machoread.c (_initialize_machoread): Add declaration.
10952 * macrocmd.c (_initialize_macrocmd): Add declaration.
10953 * macroscope.c (_initialize_macroscope): Add declaration.
10954 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10955 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10956 * maint.c (_initialize_maint_cmds): Add declaration.
10957 * mdebugread.c (_initialize_mdebugread): Add declaration.
10958 * memattr.c (_initialize_mem): Add declaration.
10959 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10960 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10961 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10962 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10963 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10964 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10965 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10966 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10967 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10968 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10969 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10970 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10971 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10972 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10973 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10974 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10975 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10976 * mipsread.c (_initialize_mipsread): Add declaration.
10977 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10978 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10979 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10980 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10981 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10982 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10983 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10984 * nto-procfs.c (_initialize_procfs): Add declaration.
10985 * objc-lang.c (_initialize_objc_language): Add declaration.
10986 * observable.c (_initialize_observer): Add declaration.
10987 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10988 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10989 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10990 * osabi.c (_initialize_gdb_osabi): Add declaration.
10991 * osdata.c (_initialize_osdata): Add declaration.
10992 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10993 * parse.c (_initialize_parse): Add declaration.
10994 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10995 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10996 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10997 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10998 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10999 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11000 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11001 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11002 * printcmd.c (_initialize_printcmd): Add declaration.
11003 * probe.c (_initialize_probe): Add declaration.
11004 * proc-api.c (_initialize_proc_api): Add declaration.
11005 * proc-events.c (_initialize_proc_events): Add declaration.
11006 * proc-service.c (_initialize_proc_service): Add declaration.
11007 * procfs.c (_initialize_procfs): Add declaration.
11008 * producer.c (_initialize_producer): Add declaration.
11009 * psymtab.c (_initialize_psymtab): Add declaration.
11010 * python/python.c (_initialize_python): Add declaration.
11011 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11012 * record-btrace.c (_initialize_record_btrace): Add declaration.
11013 * record-full.c (_initialize_record_full): Add declaration.
11014 * record.c (_initialize_record): Add declaration.
11015 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11016 * regcache.c (_initialize_regcache): Add declaration.
11017 * reggroups.c (_initialize_reggroup): Add declaration.
11018 * remote-notif.c (_initialize_notif): Add declaration.
11019 * remote-sim.c (_initialize_remote_sim): Add declaration.
11020 * remote.c (_initialize_remote): Add declaration.
11021 * reverse.c (_initialize_reverse): Add declaration.
11022 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11023 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11024 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11025 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11026 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11027 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11028 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11029 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11030 Add declaration.
11031 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11032 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11033 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11034 * rust-exp.y (_initialize_rust_exp): Add declaration.
11035 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11036 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11037 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11038 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11039 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11040 * score-tdep.c (_initialize_score_tdep): Add declaration.
11041 * ser-go32.c (_initialize_ser_dos): Add declaration.
11042 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11043 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11044 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11045 * ser-uds.c (_initialize_ser_socket): Add declaration.
11046 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11047 * serial.c (_initialize_serial): Add declaration.
11048 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11049 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11050 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11051 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11052 * skip.c (_initialize_step_skip): Add declaration.
11053 * sol-thread.c (_initialize_sol_thread): Add declaration.
11054 * solib-aix.c (_initialize_solib_aix): Add declaration.
11055 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11056 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11057 * solib-frv.c (_initialize_frv_solib): Add declaration.
11058 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11059 * solib-target.c (_initialize_solib_target): Add declaration.
11060 * solib.c (_initialize_solib): Add declaration.
11061 * source-cache.c (_initialize_source_cache): Add declaration.
11062 * source.c (_initialize_source): Add declaration.
11063 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11064 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11065 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11066 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11067 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11068 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11069 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11070 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11071 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11072 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11073 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11074 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11075 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11076 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11077 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11078 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11079 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11080 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11081 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11082 * stabsread.c (_initialize_stabsread): Add declaration.
11083 * stack.c (_initialize_stack): Add declaration.
11084 * stap-probe.c (_initialize_stap_probe): Add declaration.
11085 * std-regs.c (_initialize_frame_reg): Add declaration.
11086 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11087 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11088 * symfile.c (_initialize_symfile): Add declaration.
11089 * symmisc.c (_initialize_symmisc): Add declaration.
11090 * symtab.c (_initialize_symtab): Add declaration.
11091 * target.c (_initialize_target): Add declaration.
11092 * target-connection.c (_initialize_target_connection): Add
11093 declaration.
11094 * target-dcache.c (_initialize_target_dcache): Add declaration.
11095 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11096 * thread.c (_initialize_thread): Add declaration.
11097 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11098 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11099 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11100 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11101 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11102 * tracectf.c (_initialize_ctf): Add declaration.
11103 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11104 * tracefile.c (_initialize_tracefile): Add declaration.
11105 * tracepoint.c (_initialize_tracepoint): Add declaration.
11106 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11107 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11108 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11109 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11110 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11111 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11112 * tui/tui.c (_initialize_tui): Add declaration.
11113 * typeprint.c (_initialize_typeprint): Add declaration.
11114 * ui-style.c (_initialize_ui_style): Add declaration.
11115 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11116 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11117 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11118 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11119 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11120 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11121 * unittests/filtered_iterator-selftests.c
11122 (_initialize_filtered_iterator_selftests): Add declaration.
11123 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11124 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11125 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11126 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11127 * unittests/main-thread-selftests.c
11128 (_initialize_main_thread_selftests): Add declaration.
11129 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11130 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11131 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11132 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11133 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11134 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11135 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11136 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11137 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11138 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11139 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11140 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11141 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11142 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11143 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11144 declaration.
11145 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11146 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11147 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11148 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11149 * user-regs.c (_initialize_user_regs): Add declaration.
11150 * utils.c (_initialize_utils): Add declaration.
11151 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11152 * valops.c (_initialize_valops): Add declaration.
11153 * valprint.c (_initialize_valprint): Add declaration.
11154 * value.c (_initialize_values): Add declaration.
11155 * varobj.c (_initialize_varobj): Add declaration.
11156 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11157 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11158 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11159 * windows-nat.c (_initialize_windows_nat): Add declaration.
11160 (_initialize_check_for_gdb_ini): Add declaration.
11161 (_initialize_loadable): Add declaration.
11162 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11163 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11164 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11165 * xcoffread.c (_initialize_xcoffread): Add declaration.
11166 * xml-support.c (_initialize_xml_support): Add declaration.
11167 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11168 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11169 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11170 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11171
11172 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11173
11174 * regformats/regdat.sh: Generate declaration for init function.
11175
11176 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11177
11178 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11179 up.
11180 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11181 close_one_inferior>: New methods.
11182 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11183 pass down target to find_inferior_pid.
11184 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11185 Pass down target to find_inferior_ptid.
11186 (gdbsim_target::create_inferior): Pass down target to
11187 add_thread_silent.
11188 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11189 target down to find_inferior_ptid and switch_to_thread.
11190 (gdbsim_target::close): Update to call close_one_inferior.
11191 (struct resume_data): Remove.
11192 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11193 directly, rather than through a void pointer.
11194 (gdbsim_target::resume): Update to call resume_one_inferior.
11195
11196 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11197
11198 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11199
11200 2020-01-12 Pedro Alves <palves@redhat.com>
11201
11202 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11203 directly for the current inferior instead of
11204 discard_all_inferiors.
11205 (discard_all_inferiors): Delete.
11206
11207 2020-01-11 Tom Tromey <tom@tromey.com>
11208
11209 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11210 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11211 deprecated_safe_get_selected_frame.
11212
11213 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11214
11215 * inferior.c (print_inferior): Switch inferior before printing it.
11216
11217 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11218 Pedro Alves <palves@redhat.com>
11219
11220 * progspace-and-thread.c (switch_to_program_space_and_thread):
11221 Assert there's an inferior for PSPACE. Use
11222 switch_to_inferior_no_thread to switch the inferior too.
11223 * progspace.c (program_space::~program_space): Call
11224 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11225 (program_space::free_all_objfiles): Don't call clear_symtab_users
11226 here.
11227 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11228
11229 2020-01-10 Pedro Alves <palves@redhat.com>
11230
11231 * NEWS: Mention multi-target debugging, "info connections", and
11232 "add-inferior -no-connection".
11233
11234 2020-01-10 Pedro Alves <palves@redhat.com>
11235
11236 * infrun.c: Include "target-connection.h".
11237 (check_multi_target_resumption): New.
11238 (proceed): Call it.
11239 * target-connection.c (make_target_connection_string): Make
11240 extern.
11241 * target-connection.h (make_target_connection_string): Declare.
11242
11243 2020-01-10 Pedro Alves <palves@redhat.com>
11244
11245 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11246 * inferior.c (uiout_field_connection): New function.
11247 (print_inferior): Add new "connection-id" column.
11248 (add_inferior_command): Show connection number/string of added
11249 inferior.
11250 * process-stratum-target.h
11251 (process_stratum_target::connection_string): New virtual method.
11252 (process_stratum_target::connection_number): New field.
11253 * remote.c (remote_target::connection_string): New override.
11254 * target-connection.c: New file.
11255 * target-connection.h: New file.
11256 * target.c (decref_target): Remove process_stratum targets from
11257 the connection list.
11258 (target_stack::push): Add process_stratum targets to the
11259 connection list.
11260
11261 2020-01-10 Pedro Alves <palves@redhat.com>
11262
11263 Revert:
11264 2016-04-12 Pedro Alves <palves@redhat.com>
11265 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11266 Remove references to name.
11267 * serial.h (struct serial) <name>: Delete.
11268
11269 2020-01-10 Pedro Alves <palves@redhat.com>
11270
11271 * gdbarch-selftests.c (register_to_value_test): Remove "target
11272 already pushed" check.
11273
11274 2020-01-10 Pedro Alves <palves@redhat.com>
11275 John Baldwin <jhb@FreeBSD.org>
11276
11277 * aarch64-linux-nat.c
11278 (aarch64_linux_nat_target::thread_architecture): Adjust.
11279 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11280 (task_command_1): Likewise.
11281 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11282 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11283 (aix_thread_target::store_registers)
11284 (aix_thread_target::thread_alive): Adjust.
11285 * amd64-fbsd-tdep.c: Include "inferior.h".
11286 (amd64fbsd_get_thread_local_address): Pass down target.
11287 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11288 thread's gdbarch instead of target_gdbarch.
11289 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11290 get_last_target_status.
11291 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11292 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11293 inferiors.
11294 (update_inserted_breakpoint_locations): Skip if inferiors with no
11295 execution.
11296 (update_global_location_list): When handling moribund locations,
11297 find representative inferior for location's pspace, and use thread
11298 count of its process_stratum target.
11299 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11300 * bsd-uthread.c (bsd_uthread_target::wait): Use
11301 as_process_stratum_target and adjust thread_change_ptid and
11302 add_thread calls.
11303 (bsd_uthread_target::update_thread_list): Use
11304 as_process_stratum_target and adjust find_thread_ptid,
11305 thread_change_ptid and add_thread calls.
11306 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11307 find_thread_ptid call.
11308 * corelow.c (add_to_thread_list): Adjust add_thread call.
11309 (core_target_open): Adjust add_thread_silent and thread_count
11310 calls.
11311 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11312 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11313 * event-top.c (async_disconnect): Pop targets from all inferiors.
11314 * exec.c (add_target_sections): Push exec target on all inferiors
11315 sharing the program space.
11316 (remove_target_sections): Remove the exec target from all
11317 inferiors sharing the program space.
11318 (exec_on_vfork): New.
11319 * exec.h (exec_on_vfork): Declare.
11320 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11321 Pass it down.
11322 (fbsd_nat_target::update_thread_list): Adjust.
11323 (fbsd_nat_target::resume): Adjust.
11324 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11325 down.
11326 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11327 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11328 get_thread_arch_regcache call.
11329 * fork-child.c (gdb_startup_inferior): Pass target down to
11330 startup_inferior and set_executing.
11331 * gdbthread.h (struct process_stratum_target): Forward declare.
11332 (add_thread, add_thread_silent, add_thread_with_info)
11333 (in_thread_list): Add process_stratum_target parameter.
11334 (find_thread_ptid(inferior*, ptid_t)): New overload.
11335 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11336 parameter.
11337 (all_threads()): Delete overload.
11338 (all_threads, all_non_exited_threads): Add process_stratum_target
11339 parameter.
11340 (all_threads_safe): Use brace initialization.
11341 (thread_count): Add process_stratum_target parameter.
11342 (set_resumed, set_running, set_stop_requested, set_executing)
11343 (threads_are_executing, finish_thread_state): Add
11344 process_stratum_target parameter.
11345 (switch_to_thread): Use is_current_thread.
11346 * i386-fbsd-tdep.c: Include "inferior.h".
11347 (i386fbsd_get_thread_local_address): Pass down target.
11348 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11349 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11350 have_inferiors check.
11351 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11352 (inf_ptrace_target::attach): Adjust.
11353 * infcall.c (run_inferior_call): Adjust.
11354 * infcmd.c (run_command_1): Pass target to
11355 scoped_finish_thread_state.
11356 (proceed_thread_callback): Skip inferiors with no execution.
11357 (continue_command): Rename 'all_threads' local to avoid hiding
11358 'all_threads' function. Adjust get_last_target_status call.
11359 (prepare_one_step): Adjust set_running call.
11360 (signal_command): Use user_visible_resume_target. Compare thread
11361 pointers instead of inferior_ptid.
11362 (info_program_command): Adjust to pass down target.
11363 (attach_command): Mark target's 'thread_executing' flag.
11364 (stop_current_target_threads_ns): New, factored out from ...
11365 (interrupt_target_1): ... this. Switch inferior before making
11366 target calls.
11367 * inferior-iter.h
11368 (struct all_inferiors_iterator, struct all_inferiors_range)
11369 (struct all_inferiors_safe_range)
11370 (struct all_non_exited_inferiors_range): Filter on
11371 process_stratum_target too. Remove explicit.
11372 * inferior.c (inferior::inferior): Push dummy target on target
11373 stack.
11374 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11375 Add process_stratum_target parameter, and pass it down.
11376 (have_live_inferiors): Adjust.
11377 (switch_to_inferior_and_push_target): New.
11378 (add_inferior_command, clone_inferior_command): Handle
11379 "-no-connection" parameter. Use
11380 switch_to_inferior_and_push_target.
11381 (_initialize_inferior): Mention "-no-connection" option in
11382 the help of "add-inferior" and "clone-inferior" commands.
11383 * inferior.h: Include "process-stratum-target.h".
11384 (interrupt_target_1): Use bool.
11385 (struct inferior) <push_target, unpush_target, target_is_pushed,
11386 find_target_beneath, top_target, process_target, target_at,
11387 m_stack>: New.
11388 (discard_all_inferiors): Delete.
11389 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11390 (all_inferiors, all_non_exited_inferiors): Add
11391 process_stratum_target parameter.
11392 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11393 (target_last_proc_target): New global.
11394 (follow_fork_inferior): Push target on new inferior. Pass target
11395 to add_thread_silent. Call exec_on_vfork. Handle target's
11396 reference count.
11397 (follow_fork): Adjust get_last_target_status call. Also consider
11398 target.
11399 (follow_exec): Push target on new inferior.
11400 (struct execution_control_state) <target>: New field.
11401 (user_visible_resume_target): New.
11402 (do_target_resume): Call target_async.
11403 (resume_1): Set target's threads_executing flag. Consider resume
11404 target.
11405 (commit_resume_all_targets): New.
11406 (proceed): Also consider resume target. Skip threads of inferiors
11407 with no execution. Commit resumtion in all targets.
11408 (start_remote): Pass current inferior to wait_for_inferior.
11409 (infrun_thread_stop_requested): Consider target as well. Pass
11410 thread_info pointer to clear_inline_frame_state instead of ptid.
11411 (infrun_thread_thread_exit): Consider target as well.
11412 (random_pending_event_thread): New inferior parameter. Use it.
11413 (do_target_wait): Rename to ...
11414 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11415 down.
11416 (threads_are_resumed_pending_p, do_target_wait): New.
11417 (prepare_for_detach): Adjust calls.
11418 (wait_for_inferior): New inferior parameter. Handle it. Use
11419 do_target_wait_1 instead of do_target_wait.
11420 (fetch_inferior_event): Adjust. Switch to representative
11421 inferior. Pass target down.
11422 (set_last_target_status): Add process_stratum_target parameter.
11423 Save target in global.
11424 (get_last_target_status): Add process_stratum_target parameter and
11425 handle it.
11426 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11427 (context_switch): Check inferior_ptid == null_ptid before calling
11428 inferior_thread().
11429 (get_inferior_stop_soon): Pass down target.
11430 (wait_one): Rename to ...
11431 (poll_one_curr_target): ... this.
11432 (struct wait_one_event): New.
11433 (wait_one): New.
11434 (stop_all_threads): Adjust.
11435 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11436 event's target.
11437 (switch_back_to_stepped_thread): Also consider target.
11438 (print_stop_event): Update.
11439 (normal_stop): Update. Also consider the resume target.
11440 * infrun.h (wait_for_inferior): Remove declaration.
11441 (user_visible_resume_target): New declaration.
11442 (get_last_target_status, set_last_target_status): New
11443 process_stratum_target parameter.
11444 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11445 process_stratum_target parameter, and use it.
11446 (clear_inline_frame_state (thread_info*)): New.
11447 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11448 process_stratum_target parameter.
11449 (clear_inline_frame_state (thread_info*)): Declare.
11450 * linux-fork.c (delete_checkpoint_command): Pass target down to
11451 find_thread_ptid.
11452 (checkpoint_command): Adjust.
11453 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11454 instead of just tweaking inferior_ptid.
11455 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11456 (exit_lwp): Pass target down to find_thread_ptid.
11457 (attach_proc_task_lwp_callback): Pass target down to
11458 add_thread/set_running/set_executing.
11459 (linux_nat_target::attach): Pass target down to
11460 thread_change_ptid.
11461 (get_detach_signal): Pass target down to find_thread_ptid.
11462 Consider last target status's target.
11463 (linux_resume_one_lwp_throw, resume_lwp)
11464 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11465 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11466 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11467 (linux_nat_target::async_wait_fd): New.
11468 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11469 target down.
11470 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11471 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11472 * linux-thread-db.c (struct thread_db_info::process_target): New
11473 field.
11474 (add_thread_db_info): Save target.
11475 (get_thread_db_info): New process_stratum_target parameter. Also
11476 match target.
11477 (delete_thread_db_info): New process_stratum_target parameter.
11478 Also match target.
11479 (thread_from_lwp): Adjust to pass down target.
11480 (thread_db_notice_clone): Pass down target.
11481 (check_thread_db_callback): Pass down target.
11482 (try_thread_db_load_1): Always push the thread_db target.
11483 (try_thread_db_load, record_thread): Pass target down.
11484 (thread_db_target::detach): Pass target down. Always unpush the
11485 thread_db target.
11486 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11487 target down. Always unpush the thread_db target.
11488 (find_new_threads_callback, thread_db_find_new_threads_2)
11489 (thread_db_target::update_thread_list): Pass target down.
11490 (thread_db_target::pid_to_str): Pass current inferior down.
11491 (thread_db_target::get_thread_local_address): Pass target down.
11492 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11493 target down.
11494 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11495 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11496 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11497 (procfs_init_inferior): Rename to ...
11498 (procfs_target::procfs_init_inferior): ... this and adjust.
11499 (procfs_target::create_inferior, procfs_notice_thread)
11500 (procfs_do_thread_registers): Adjust.
11501 * ppc-fbsd-tdep.c: Include "inferior.h".
11502 (ppcfbsd_get_thread_local_address): Pass down target.
11503 * proc-service.c (ps_xfer_memory): Switch current inferior and
11504 program space as well.
11505 (get_ps_regcache): Pass target down.
11506 * process-stratum-target.c
11507 (process_stratum_target::thread_address_space)
11508 (process_stratum_target::thread_architecture): Pass target down.
11509 * process-stratum-target.h
11510 (process_stratum_target::threads_executing): New field.
11511 (as_process_stratum_target): New.
11512 * ravenscar-thread.c
11513 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11514 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11515 down.
11516 * record-btrace.c (record_btrace_target::info_record): Adjust.
11517 (record_btrace_target::record_method)
11518 (record_btrace_target::record_is_replaying)
11519 (record_btrace_target::fetch_registers)
11520 (get_thread_current_frame_id, record_btrace_target::resume)
11521 (record_btrace_target::wait, record_btrace_target::stop): Pass
11522 target down.
11523 * record-full.c (record_full_wait_1): Switch to event thread.
11524 Pass target down.
11525 * regcache.c (regcache::regcache)
11526 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11527 process_stratum_target parameter and handle it.
11528 (current_thread_target): New global.
11529 (get_thread_regcache): Add process_stratum_target parameter and
11530 handle it. Switch inferior before calling target method.
11531 (get_thread_regcache): Pass target down.
11532 (get_thread_regcache_for_ptid): Pass target down.
11533 (registers_changed_ptid): Add process_stratum_target parameter and
11534 handle it.
11535 (registers_changed_thread, registers_changed): Pass target down.
11536 (test_get_thread_arch_aspace_regcache): New.
11537 (current_regcache_test): Define a couple local test_target_ops
11538 instances and use them for testing.
11539 (readwrite_regcache): Pass process_stratum_target parameter.
11540 (cooked_read_test, cooked_write_test): Pass mock_target down.
11541 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11542 (get_thread_arch_aspace_regcache): Add process_stratum_target
11543 parameter.
11544 (regcache::target): New method.
11545 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11546 (regcache::registers_changed_ptid): Add process_stratum_target
11547 parameter.
11548 (regcache::m_target): New field.
11549 (registers_changed_ptid): Add process_stratum_target parameter.
11550 * remote.c (remote_state::supports_vCont_probed): New field.
11551 (remote_target::async_wait_fd): New method.
11552 (remote_unpush_and_throw): Add remote_target parameter.
11553 (get_current_remote_target): Adjust.
11554 (remote_target::remote_add_inferior): Push target.
11555 (remote_target::remote_add_thread)
11556 (remote_target::remote_notice_new_inferior)
11557 (get_remote_thread_info): Pass target down.
11558 (remote_target::update_thread_list): Skip threads of inferiors
11559 bound to other targets. (remote_target::close): Don't discard
11560 inferiors. (remote_target::add_current_inferior_and_thread)
11561 (remote_target::process_initial_stop_replies)
11562 (remote_target::start_remote)
11563 (remote_target::remote_serial_quit_handler): Pass down target.
11564 (remote_target::remote_unpush_target): New remote_target
11565 parameter. Unpush the target from all inferiors.
11566 (remote_target::remote_unpush_and_throw): New remote_target
11567 parameter. Pass it down.
11568 (remote_target::open_1): Check whether the current inferior has
11569 execution instead of checking whether any inferior is live. Pass
11570 target down.
11571 (remote_target::remote_detach_1): Pass down target. Use
11572 remote_unpush_target.
11573 (extended_remote_target::attach): Pass down target.
11574 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11575 (remote_target::append_resumption): Pass down target.
11576 (remote_target::append_pending_thread_resumptions)
11577 (remote_target::remote_resume_with_hc, remote_target::resume)
11578 (remote_target::commit_resume): Pass down target.
11579 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11580 (remote_target::interrupt_query)
11581 (remote_target::remove_new_fork_children)
11582 (remote_target::check_pending_events_prevent_wildcard_vcont)
11583 (remote_target::remote_parse_stop_reply)
11584 (remote_target::process_stop_reply): Pass down target.
11585 (first_remote_resumed_thread): New remote_target parameter. Pass
11586 it down.
11587 (remote_target::wait_as): Pass down target.
11588 (unpush_and_perror): New remote_target parameter. Pass it down.
11589 (remote_target::readchar, remote_target::remote_serial_write)
11590 (remote_target::getpkt_or_notif_sane_1)
11591 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11592 down target.
11593 (remote_target::mourn_inferior): Pass down target. Use
11594 remote_unpush_target.
11595 (remote_target::core_of_thread)
11596 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11597 (remote_target::pid_to_exec_file)
11598 (remote_target::thread_handle_to_thread_info): Pass down target.
11599 (remote_target::async_wait_fd): New.
11600 * riscv-fbsd-tdep.c: Include "inferior.h".
11601 (riscv_fbsd_get_thread_local_address): Pass down target.
11602 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11603 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11604 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11605 Adjust.
11606 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11607 * solib-svr4.c (enable_break): Pass down target.
11608 * spu-multiarch.c (parse_spufs_run): Pass down target.
11609 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11610 * target-delegates.c: Regenerate.
11611 * target.c (g_target_stack): Delete.
11612 (current_top_target): Return the current inferior's top target.
11613 (target_has_execution_1): Refer to the passed-in inferior's top
11614 target.
11615 (target_supports_terminal_ours): Check whether the initial
11616 inferior was already created.
11617 (decref_target): New.
11618 (target_stack::push): Incref/decref the target.
11619 (push_target, push_target, unpush_target): Adjust.
11620 (target_stack::unpush): Defref target.
11621 (target_is_pushed): Return bool. Adjust to refer to the current
11622 inferior's target stack.
11623 (dispose_inferior): Delete, and inline parts ...
11624 (target_preopen): ... here. Only dispose of the current inferior.
11625 (target_detach): Hold strong target reference while detaching.
11626 Pass target down.
11627 (target_thread_name): Add assertion.
11628 (target_resume): Pass down target.
11629 (target_ops::beneath, find_target_at): Adjust to refer to the
11630 current inferior's target stack.
11631 (get_dummy_target): New.
11632 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11633 has a thread running.
11634 (initialize_targets): Rename to ...
11635 (_initialize_target): ... this.
11636 * target.h: Include "gdbsupport/refcounted-object.h".
11637 (struct target_ops): Inherit refcounted_object.
11638 (target_ops::shortname, target_ops::longname): Make const.
11639 (target_ops::async_wait_fd): New method.
11640 (decref_target): Declare.
11641 (struct target_ops_ref_policy): New.
11642 (target_ops_ref): New typedef.
11643 (get_dummy_target): Declare function.
11644 (target_is_pushed): Return bool.
11645 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11646 (all_matching_threads_iterator::all_matching_threads_iterator):
11647 Handle filter target.
11648 * thread-iter.h (struct all_matching_threads_iterator, struct
11649 all_matching_threads_range, class all_non_exited_threads_range):
11650 Filter by target too. Remove explicit.
11651 * thread.c (threads_executing): Delete.
11652 (inferior_thread): Pass down current inferior.
11653 (clear_thread_inferior_resources): Pass down thread pointer
11654 instead of ptid_t.
11655 (add_thread_silent, add_thread_with_info, add_thread): Add
11656 process_stratum_target parameter. Use it for thread and inferior
11657 searches.
11658 (is_current_thread): New.
11659 (thread_info::deletable): Use it.
11660 (find_thread_ptid, thread_count, in_thread_list)
11661 (thread_change_ptid, set_resumed, set_running): New
11662 process_stratum_target parameter. Pass it down.
11663 (set_executing): New process_stratum_target parameter. Pass it
11664 down. Adjust reference to 'threads_executing'.
11665 (threads_are_executing): New process_stratum_target parameter.
11666 Adjust reference to 'threads_executing'.
11667 (set_stop_requested, finish_thread_state): New
11668 process_stratum_target parameter. Pass it down.
11669 (switch_to_thread): Also match inferior.
11670 (switch_to_thread): New process_stratum_target parameter. Pass it
11671 down.
11672 (update_threads_executing): Reimplement.
11673 * top.c (quit_force): Pop targets from all inferior.
11674 (gdb_init): Don't call initialize_targets.
11675 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11676 Declare.
11677 (windows_add_thread, windows_delete_thread): Adjust.
11678 (get_windows_debug_event): Rename to ...
11679 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11680 * tracefile-tfile.c (tfile_target_open): Pass down target.
11681 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11682 Forward declare.
11683 (switch_to_thread): Add process_stratum_target parameter.
11684 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11685 parameter. Use it.
11686 (mi_on_resume): Pass target down.
11687 * nat/fork-inferior.c (startup_inferior): Add
11688 process_stratum_target parameter. Pass it down.
11689 * nat/fork-inferior.h (startup_inferior): Add
11690 process_stratum_target parameter.
11691 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11692
11693 2020-01-10 Pedro Alves <palves@redhat.com>
11694
11695 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11696 directly. Instead find the first thread in the thread list and
11697 use switch_to_thread.
11698
11699 2020-01-10 Pedro Alves <palves@redhat.com>
11700
11701 * remote.c (remote_target::remote_add_inferior): Don't bind a
11702 process to the current inferior if the current inferior is already
11703 bound to a process.
11704
11705 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11706 Pedro Alves <palves@redhat.com>
11707
11708 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11709 If no process is specified, return null_ptid instead of
11710 inferior_ptid.
11711 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11712 TARGET_WAITKIND_SIGNALLED with no pid.
11713
11714 2020-01-10 Pedro Alves <palves@redhat.com>
11715
11716 * remote.c (first_remote_resumed_thread): New.
11717 (remote_target::wait_as): Use it as default event_ptid instead of
11718 inferior_ptid.
11719
11720 2020-01-10 Pedro Alves <palves@redhat.com>
11721
11722 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11723
11724 2020-01-10 Pedro Alves <palves@redhat.com>
11725
11726 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11727 not -1.
11728
11729 2020-01-10 Pedro Alves <palves@redhat.com>
11730
11731 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11732 ptid to get_last_target_status.
11733 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11734 ptid to get_last_target_status.
11735 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11736 get_last_target_status.
11737 (info_program_command): Don't pass a target_waitstatus to
11738 get_last_target_status.
11739 * infrun.c (init_wait_for_inferior): Use
11740 nullify_last_target_wait_ptid.
11741 (get_last_target_status): Handle nullptr arguments.
11742 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11743 (print_stop_event): Don't pass a ptid to get_last_target_status.
11744 (normal_stop): Don't pass a ptid to get_last_target_status.
11745 * infrun.h (get_last_target_status, set_last_target_status): Move
11746 comments here and update.
11747 (nullify_last_target_wait_ptid): Declare.
11748 * linux-fork.c (fork_load_infrun_state): Remove local extern
11749 declaration of nullify_last_target_wait_ptid.
11750 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11751 to get_last_target_status.
11752
11753 2020-01-10 Pedro Alves <palves@redhat.com>
11754
11755 * gdbthread.h (scoped_restore_current_thread)
11756 <dont_restore, restore, m_dont_restore>: Declare.
11757 * thread.c (thread_alive): Add assertion. Return bool.
11758 (switch_to_thread_if_alive): New.
11759 (prune_threads): Switch inferior/thread.
11760 (print_thread_info_1): Switch thread before calling target methods.
11761 (scoped_restore_current_thread::restore): New, factored out from
11762 ...
11763 (scoped_restore_current_thread::~scoped_restore_current_thread):
11764 ... this.
11765 (scoped_restore_current_thread::scoped_restore_current_thread):
11766 Add assertion.
11767 (thread_apply_all_command, thread_select): Use
11768 switch_to_thread_if_alive.
11769 * infrun.c (proceed, restart_threads, handle_signal_stop)
11770 (switch_back_to_stepped_thread): Switch current thread before
11771 calling target methods.
11772
11773 2020-01-10 Pedro Alves <palves@redhat.com>
11774
11775 * inferior.c (switch_to_inferior_no_thread): New function,
11776 factored out from ...
11777 (inferior_command): ... here.
11778 * inferior.h (switch_to_inferior_no_thread): Declare.
11779 * mi/mi-main.c (run_one_inferior): Use
11780 switch_to_inferior_no_thread.
11781
11782 2020-01-10 Pedro Alves <palves@redhat.com>
11783
11784 * infcmd.c (kill_command): Remove dead code.
11785
11786 2020-01-10 Pedro Alves <palves@redhat.com>
11787
11788 * remote.c (remote_target::mourn_inferior): No longer check
11789 whether the target is running.
11790
11791 2020-01-10 Pedro Alves <palves@redhat.com>
11792
11793 * corelow.c (core_target::has_execution): Change parameter type to
11794 inferior pointer.
11795 * inferior.c (number_of_live_inferiors): Use
11796 inferior::has_execution instead of target_has_execution_1.
11797 * inferior.h (inferior::has_execution): New.
11798 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11799 inferior::has_execution instead of target_has_execution_1.
11800 * process-stratum-target.c
11801 (process_stratum_target::has_execution): Change parameter type to
11802 inferior pointer. Check the inferior's PID instead of
11803 inferior_ptid.
11804 * process-stratum-target.h
11805 (process_stratum_target::has_execution): Change parameter type to
11806 inferior pointer.
11807 * record-full.c (record_full_core_target::has_execution): Change
11808 parameter type to inferior pointer.
11809 * target.c (target_has_execution_1): Change parameter type to
11810 inferior pointer.
11811 (target_has_execution_current): Adjust.
11812 * target.h (target_ops::has_execution): Change parameter type to
11813 inferior pointer.
11814 (target_has_execution_1): Change parameter type to inferior
11815 pointer. Change return type to bool.
11816 * tracefile.h (tracefile_target::has_execution): Change parameter
11817 type to inferior pointer.
11818
11819 2020-01-10 Pedro Alves <palves@redhat.com>
11820
11821 * exceptions.c (print_flush): Remove current_top_target() check.
11822
11823 2020-01-10 Pedro Alves <palves@redhat.com>
11824
11825 * remote.c (show_remote_exec_file): Show the current inferior's
11826 exec-file instead of the command variable's value.
11827
11828 2020-01-10 Pedro Alves <palves@redhat.com>
11829
11830 * record-full.c (record_full_resume_ptid): New global.
11831 (record_full_target::resume): Set it.
11832 (record_full_wait_1): Use record_full_resume_ptid instead of
11833 inferior_ptid.
11834
11835 2020-01-10 Pedro Alves <palves@redhat.com>
11836
11837 * gdbthread.h (scoped_restore_current_thread)
11838 <dont_restore, restore, m_dont_restore>: Declare.
11839 * thread.c (thread_alive): Add assertion. Return bool.
11840 (switch_to_thread_if_alive): New.
11841 (prune_threads): Switch inferior/thread.
11842 (print_thread_info_1): Switch thread before calling target methods.
11843 (scoped_restore_current_thread::restore): New, factored out from
11844 ...
11845 (scoped_restore_current_thread::~scoped_restore_current_thread):
11846 ... this.
11847 (scoped_restore_current_thread::scoped_restore_current_thread):
11848 Add assertion.
11849 (thread_apply_all_command, thread_select): Use
11850 switch_to_thread_if_alive.
11851
11852 2020-01-10 George Barrett <bob@bob131.so>
11853
11854 * stap-probe.c (stap_modify_semaphore): Don't check for null
11855 semaphores.
11856 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11857 for null semaphores.
11858
11859 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11860
11861 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11862 all source windows, and maintain horizontal scroll status while
11863 doing so.
11864
11865 2020-01-09 Tom Tromey <tom@tromey.com>
11866
11867 PR tui/18932:
11868 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11869 update_source_window, not print_source_lines.
11870
11871 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11872
11873 * tui/tui.c (tui_enable): Register tui hooks after calling
11874 tui_display_main.
11875
11876 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11877
11878 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11879
11880 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11881
11882 * thread.c (print_thread_info_1): Fix indentation.
11883
11884 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11885
11886 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11887 unique_xmalloc_ptr outside the if to always free the demangled name.
11888
11889 2020-01-08 Tom Tromey <tromey@adacore.com>
11890
11891 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11892 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11893 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11894 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11895 Remove.
11896 (section_offsets): New typedef.
11897 * symtab.c (fixup_section, get_msymbol_address): Update.
11898 * symmisc.c (dump_msymbols): Update.
11899 * symfile.h (relative_addr_info_to_section_offsets)
11900 (symfile_map_offsets_to_segments): Update.
11901 * symfile.c (build_section_addr_info_from_objfile)
11902 (init_objfile_sect_indices): Update.
11903 (struct place_section_arg): Change type of "offsets".
11904 (place_section): Update.
11905 (relative_addr_info_to_section_offsets): Change type of
11906 "section_offsets". Remove "num_sections" parameter.
11907 (default_symfile_offsets, syms_from_objfile_1)
11908 (set_objfile_default_section_offset): Update.
11909 (reread_symbols): No need to preserve section offsets by hand.
11910 (symfile_map_offsets_to_segments): Change type of "offsets".
11911 * stap-probe.c (relocate_address): Update.
11912 * stabsread.h (process_one_symbol): Update.
11913 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11914 (solib_target_relocate_section_addresses): Update.
11915 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11916 Update.
11917 * solib-frv.c (frv_relocate_main_executable): Update.
11918 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11919 * solib-aix.c (solib_aix_get_section_offsets): Change return
11920 type.
11921 (solib_aix_solib_create_inferior_hook): Update.
11922 * remote.c (remote_target::get_offsets): Update.
11923 * psymtab.c (find_pc_sect_psymtab): Update.
11924 * psympriv.h (struct partial_symbol) <address, text_low,
11925 text_high>: Update.
11926 * objfiles.h (obj_section_offset): Update.
11927 (struct objfile) <section_offsets>: Change type.
11928 <num_sections>: Remove.
11929 (objfile_relocate): Update.
11930 * objfiles.c (entry_point_address_query): Update
11931 (relocate_one_symbol): Change type of "section_offsets".
11932 (objfile_relocate1, objfile_relocate1): Change type of
11933 "new_offsets".
11934 (objfile_rebase1): Update.
11935 * mipsread.c (mipscoff_symfile_read): Update.
11936 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11937 parameter.
11938 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11939 (parse_external, psymtab_to_symtab_1): Update.
11940 * machoread.c (macho_symfile_offsets): Update.
11941 * ia64-tdep.c (ia64_find_unwind_table): Update.
11942 * hppa-tdep.c (read_unwind_info): Update.
11943 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11944 * dwarf2read.c (create_addrmap_from_index)
11945 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11946 (process_psymtab_comp_unit_reader, add_partial_symbol)
11947 (add_partial_subprogram, process_full_comp_unit)
11948 (read_file_scope, read_func_scope, read_lexical_block_scope)
11949 (read_call_site_scope, dwarf2_rnglists_process)
11950 (dwarf2_ranges_process, dwarf2_ranges_read)
11951 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11952 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11953 Update.
11954 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11955 Update.
11956 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11957 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11958 (process_one_symbol): Change type of "section_offsets".
11959 * ctfread.c (get_objfile_text_range): Update.
11960 * coffread.c (coff_symtab_read, enter_linenos)
11961 (process_coff_symbol): Update.
11962 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11963 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11964
11965 2020-01-08 Tom Tromey <tromey@adacore.com>
11966
11967 * dwarf2read.c (parse_macro_definition): Use std::string.
11968 (parse_macro_definition): Likewise.
11969
11970 2020-01-08 Tom Tromey <tromey@adacore.com>
11971
11972 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11973 (ATTR_ALLOC_CHUNK): Remove.
11974
11975 2020-01-08 Tom Tromey <tromey@adacore.com>
11976
11977 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11978
11979 2020-01-08 Tom Tromey <tromey@adacore.com>
11980
11981 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11982 (dwarf2_compute_name, open_dwo_file): Likewise.
11983 (process_enumeration_scope): Use std::vector.
11984 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11985 (partial_die_info::fixup, dwarf2_start_subfile)
11986 (guess_full_die_structure_name, dwarf2_name): Likewise.
11987 (determine_prefix): Update.
11988 (guess_full_die_structure_name): Make return type const.
11989 (partial_die_full_name): Return unique_xmalloc_ptr.
11990 (DW_FIELD_ALLOC_CHUNK): Remove.
11991
11992 2020-01-07 Tom Tromey <tromey@adacore.com>
11993
11994 PR build/24937:
11995 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11996
11997 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11998
11999 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12000
12001 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12002
12003 * stack.c (print_frame_info): Move disassemble_next_line code
12004 inside source_print block.
12005
12006 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12007
12008 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12009 gdb/signals.h, as we are now using native signal symbols.
12010
12011 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12012
12013 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12014 overflow by an early check of content vs threshold.
12015 * tui/tui-source.c (tui_source_window::line_is_displayed):
12016 Likewise.
12017
12018 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12019
12020 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12021
12022 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12023
12024 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12025 export table if no section contains it's RVA.
12026
12027 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12028
12029 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12030
12031 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12032
12033 * source.c (print_source_lines_base): Set last_line_listed.
12034
12035 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12036
12037 * tui/tui-disasm.c: Remove trailing spaces.
12038
12039 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12040 Pedro Alves <palves@redhat.com>
12041
12042 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12043 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12044 (windows_gdb_signal_to_target): New function, uses the above
12045 enumeration to convert GDB internal signal codes to equivalent
12046 Windows codes.
12047 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12048 * windows-nat.c: Include "gdb_wait.h".
12049 (get_windows_debug_event): Extract the fatal exception from the
12050 exit status and convert to the equivalent Posix signal number.
12051 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12052 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12053 * gdbsupport/gdb_wait.c: New file, implements
12054 windows_status_to_termsig.
12055 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12056 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12057
12058 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12059
12060 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12061 show_layout.
12062
12063 2020-01-05 Luis Machado <luis.machado@linaro.org>
12064
12065 * aarch64-linux-nat.c
12066 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12067 and bfd_mach_aarch64.
12068
12069 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12070
12071 * ui-file.c (stdio_file::can_emit_style_escape)
12072 (tee_file::can_emit_style_escape): Ensure style is used also on
12073 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12074 to gdb_stdout.
12075 * main.c (set_gdb_data_directory): Use file style to output the
12076 warning that the given pathname is not a directory.
12077 * top.c (show_history_filename, gdb_safe_append_history)
12078 (show_gdb_datadir): Use file style.
12079
12080 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12081
12082 * solib-target.c (struct lm_info_target):
12083 Change offsets to be a unique_xmalloc_ptr.
12084 (solib_target_relocate_section_addresses): Update.
12085
12086 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12087
12088 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12089
12090 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12091
12092 * MAINTAINERS (Write After Approval): Add myself.
12093
12094 2020-01-02 Luis Machado <luis.machado@linaro.org>
12095
12096 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12097 Cell BE architecture.
12098 * target.h (struct target_ops) <thread_architecture>: Likewise.
12099
12100 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12101
12102 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12103
12104 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12105
12106 * MAINTAINERS (Write After Approval): Add myself.
12107
12108 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12109
12110 * gdbarch.sh: Update copyright year range of generated files.
12111
12112 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12113
12114 Update copyright year range in all GDB files.
12115
12116 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12117
12118 * copyright.py: Convert to Python 3.
12119
12120 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12121
12122 * copyright.py: Adapt after move of gnulib directory from gdb
12123 directory to toplevel directory.
12124
12125 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12126
12127 * copyright.py (main): Exit if run from the wrong directory.
12128
12129 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12130
12131 * top.c (print_gdb_version): Change copyright year to 2020.
12132
12133 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12134
12135 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12136
12137 For older changes see ChangeLog-2019.
12138 \f
12139 Local Variables:
12140 mode: change-log
12141 left-margin: 8
12142 fill-column: 74
12143 version-control: never
12144 coding: utf-8
12145 End: