]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Fix for incorrect breakpoint set in case of flang compiled binary
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2
3 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4 to find the end of prologue for flang compiled binaries.
5 * arm-tdep.c (arm_skip_prologue): Likewise.
6 * i386-tdep.c (i386_skip_prologue): Likewise.
7 * producer.c (producer_is_llvm): New function.
8 (producer_parsing_tests): Added new tests for clang/flang.
9 * producer.h (producer_is_llvm): New declaration.
10
11 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
12
13 * linux-nat.c (linux_nat_debug_printf): New function.
14 (linux_nat_debug_printf_1): New macro. Use throughout the file.
15
16 2020-08-18 Aaron Merey <amerey@redhat.com>
17
18 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
19 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
20 (CLIBS): Add DEBUGINFOD_LIBS.
21
22 2020-08-17 Sergei Trofimovich <siarheit@google.com>
23
24 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
25 'gdbarch_num_regs'.
26
27 2020-08-17 Tom Tromey <tromey@adacore.com>
28
29 * ada-varobj.c (ada_varobj_decode_var): Handle case where
30 ada_get_decoded_value returns NULL.
31
32 2020-08-17 Tom Tromey <tromey@adacore.com>
33
34 * python/py-inferior.c (infpy_search_memory): Use
35 gdb_py_object_from_ulongest.
36 * python/py-infevents.c (create_inferior_call_event_object)
37 (create_memory_changed_event_object): Use
38 gdb_py_object_from_ulongest.
39 * python/py-linetable.c (ltpy_entry_get_pc): Use
40 gdb_py_object_from_ulongest.
41
42 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
43
44 * loc.c (class symbol_needs_eval_context): Fix indentation.
45
46 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
47
48 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
49 bool.
50
51 2020-08-17 Tom de Vries <tdevries@suse.de>
52
53 PR gdb/26393
54 * gdbtypes.c (dump_dynamic_prop): New function.
55 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
56
57 2020-08-15 Tom de Vries <tdevries@suse.de>
58
59 PR backtrace/26390
60 * stack.c (print_frame_args): Temporarily set the selected
61 frame to FRAME while printing the frame's arguments.
62
63 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
64
65 PR breakpoints/26385
66 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
67 Always clear watchpoint with PTRACE_SET_DEBUGREG.
68
69 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
70
71 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
72 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
73 and >= to check return value instead of == -1 and != -1.
74
75 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
76
77 * utils.h (class gdb_argv) <as_array_view>: New method.
78 * utils.c (gdb_argv_as_array_view_test): New.
79 (_initialize_utils): Register selftest.
80 * maint.c (maintenance_selftest): Use the new method.
81
82 2020-08-13 Kamil Rytarowski <n54@gmx.com>
83
84 * target.h (supports_dumpcore, dumpcore): New
85 function declarations.
86 * target.c (supports_dumpcore, dumpcore): New
87 functions.
88 * target-delegates.c: Rebuild.
89 * gcore.c (gcore_command): Use target_supports_dumpcore ()
90 and target_dumpcore ().
91
92 2020-08-13 Aaron Merey <amerey@redhat.com>
93
94 * debuginfod-support.c: Replace global variables with user_data.
95
96 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
97
98 * maint.c (maintenance_selftest): Split args and pass array_view
99 to run_tests.
100
101 2020-08-12 Luis Machado <luis.machado@linaro.org>
102
103 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
104 type's length.
105 Use %s and pulongest to print the length.
106
107 2020-08-12 Pedro Alves <palves@redhat.com>
108
109 * NEWS: Move "Multi-target debugging support" item to the
110 "Changes since GDB 9" section.
111
112 2020-08-12 Pedro Alves <palves@redhat.com>
113
114 PR gdb/26336
115 * progspace.c (program_space::remove_objfile): Invalidate the
116 frame cache.
117
118 2020-08-11 Tom de Vries <tdevries@suse.de>
119
120 * MAINTAINERS: Mark ms1 as deleted.
121
122 2020-08-10 Luis Machado <luis.machado@linaro.org>
123
124 PR gdb/26310
125
126 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
127 act accordingly.
128 (aarch64_analyze_prologue_test): Add more unit tests to exercise
129 movz/str/stur/stp skipping behavior.
130
131 2020-08-10 Luis Machado <luis.machado@linaro.org>
132
133 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
134 struct user_sve_header instead of struct sve_context.
135
136 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
137
138 * read.h (dwarf2_fetch_die_loc_sect_off,
139 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
140 `void *` parameter with function_view.
141 * read.c (dwarf2_fetch_die_loc_sect_off,
142 dwarf2_fetch_die_loc_cu_off): Likewise.
143 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
144 (per_cu_dwarf_call): Adjust.
145 (get_frame_address_in_block_wrapper): Remove.
146 (indirect_synthetic_pointer): Adjust.
147 (get_ax_pc): Remove.
148 (dwarf2_compile_expr_to_ax): Adjust.
149
150 2020-08-08 Tom de Vries <tdevries@suse.de>
151
152 PR build/26344
153 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
154 constructor.
155 * regcache.c (get_thread_arch_aspace_regcache): Same.
156
157 2020-08-07 Tom Tromey <tromey@adacore.com>
158
159 * ravenscar-thread.c
160 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
161 New method.
162 (ravenscar_thread_target::wait): Check
163 runtime_initialized.
164 (ravenscar_thread_target::prepare_to_store)
165 (ravenscar_thread_target::stopped_by_sw_breakpoint)
166 (ravenscar_thread_target::stopped_by_hw_breakpoint)
167 (ravenscar_thread_target::stopped_by_watchpoint)
168 (ravenscar_thread_target::stopped_data_address)
169 (ravenscar_thread_target::core_of_thread): Use
170 scoped_restore_current_thread and
171 set_base_thread_from_ravenscar_task.
172
173 2020-08-07 Tom Tromey <tromey@adacore.com>
174
175 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
176
177 2020-08-07 Tom Tromey <tromey@adacore.com>
178
179 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
180 update_inferior_ptid before update_thread_list.
181 (temporarily_change_regcache_ptid): New class.
182 (ravenscar_thread_target::fetch_registers)
183 (ravenscar_thread_target::store_registers)
184 (ravenscar_thread_target::prepare_to_store): Use base thread when
185 forwarding operation.
186
187 2020-08-07 Tom Tromey <tromey@adacore.com>
188
189 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
190 "is_pid" case.
191
192 2020-08-07 Tom Tromey <tromey@adacore.com>
193
194 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
195 New methods.
196 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
197 first.
198 (ravenscar_thread_target::add_thread): Rename from
199 ravenscar_add_thread.
200 (ravenscar_thread_target::update_thread_list): Use a lambda.
201 (ravenscar_thread_target::xfer_partial): New method.
202
203 2020-08-07 Tom Tromey <tromey@adacore.com>
204
205 * ada-lang.h (ada_task_list_iterator_ftype): Now a
206 gdb::function_view.
207 (iterate_over_live_ada_tasks): Change type of argument.
208 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
209 of argument.
210
211 2020-08-07 Tom Tromey <tromey@adacore.com>
212
213 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
214 Remove.
215 (ravenscar_thread_target::extra_thread_info): Remove.
216 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
217 defer to target beneath for non-Ravenscar threads.
218
219 2020-08-07 Tom Tromey <tromey@adacore.com>
220
221 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
222 get_base_thread_from_ravenscar_task>: Now methods.
223 <m_cpu_map>: New member.
224 (ravenscar_thread_target::get_thread_base_cpu): Rename from
225 ravenscar_get_thread_base_cpu. Check m_cpu_map.
226 (ravenscar_thread_target::task_is_currently_active): Update.
227 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
228 Now a method.
229 (ravenscar_thread_target::add_active_thread): Put initial thread
230 into the m_cpu_map.
231
232 2020-08-07 Tom Tromey <tromey@adacore.com>
233
234 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
235 event_ptid.
236
237 2020-08-07 Tom Tromey <tromey@adacore.com>
238
239 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
240 runtime_initialized.
241
242 2020-08-07 Tom Tromey <tromey@adacore.com>
243
244 * ravenscar-thread.c (ravenscar_thread_target): Don't call
245 add_active_thread.
246 (ravenscar_thread_target::add_active_thread): Now public.
247 (ravenscar_inferior_created): Call add_active_thread after pushing
248 the target.
249
250 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
251
252 * regcache.c (ptid_regcache_map): New type.
253 (target_ptid_regcache_map): New type.
254 (regcaches): Change type to target_ptid_regcache_map.
255 (get_thread_arch_aspace_regcache): Update to regcaches' new
256 type.
257 (regcache_thread_ptid_changed): Likewise.
258 (registers_changed_ptid): Likewise.
259 (regcaches_size): Likewise.
260 (regcaches_test): Update.
261 (regcache_thread_ptid_changed): Update.
262 * regcache.h (regcache_up): New type.
263 * gdbsupport/ptid.h (hash_ptid): New struct.
264
265 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
266
267 * observable.h (thread_ptid_changed): Add parameter
268 `process_stratum_target *`.
269 * infrun.c (infrun_thread_ptid_changed): Add parameter
270 `process_stratum_target *` and use it.
271 (selftests): New namespace.
272 (infrun_thread_ptid_changed): New function.
273 (_initialize_infrun): Register selftest.
274 * regcache.c (regcache_thread_ptid_changed): Add parameter
275 `process_stratum_target *` and use it.
276 (regcache_thread_ptid_changed): New function.
277 (_initialize_regcache): Register selftest.
278 * thread.c (thread_change_ptid): Pass target to
279 thread_ptid_changed observable.
280
281 2020-08-06 Caroline Tice <cmtice@google.com>
282
283 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
284 (struct dwp_sections): Update field comments. Add loclists and
285 rnglists fields.
286 (struct virtual_v2_dwo_sections): Rename struct to
287 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
288 size & offset fields for loclists and rnglists.
289 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
290 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
291 skipping dummy type units.
292 (create_dwp_hash_table): Update the large comment above the function to
293 discuss Version 5 DWP files as well, with references. Update all the
294 version checks in the function to check for version 5 as well. Add new
295 section at the end to create dwp hash table for version 5.
296 (create_dwp_v2_section): Rename function to
297 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
298 Add V5 to error message text.
299 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
300 into calls to create_dwp_v2_or_v5_section.
301 (create_dwo_unit_in_dwp_v5): New function.
302 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
303 check for version2; add else clause to handle version 5.
304 (open_and_init_dwo_file): Add code to check dwarf version & only call
305 create_debug_types_hash_table (with sections.types) if version is not 5;
306 else call create_debug_type_hash_table, with sections.info.
307 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
308 version 5.
309 (dwarf2_locate_v5_dwp_sections): New function.
310 (open_and_init_dwp_file): Add else-if clause for version 5 to call
311 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
312
313 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
314
315 * regcache.h (class regcache): Remove friend
316 registers_changed_ptid.
317 <regcache_thread_ptid_changed>: Remove.
318 <regcaches>: Remove.
319 * regcache.c (regcache::regcaches): Rename to...
320 (regcaches): ... this. Make static.
321 (get_thread_arch_aspace_regcache): Update.
322 (regcache::regcache_thread_ptid_changed): Rename to...
323 (regcache_thread_ptid_changed): ... this. Update.
324 (class regcache_access): Remove.
325 (regcaches_test): Update.
326 (_initialize_regcache): Update.
327 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
328 <forward_list>.
329
330 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
331
332 * regcache.h (class regcache) <current_regcache>: Rename to...
333 <regcaches>: ... this. Move doc here.
334 * regcache.c (regcache::current_regcache) Rename to...
335 (regcache::regcaches): ... this. Move doc to header.
336 (get_thread_arch_aspace_regcache): Update.
337 (regcache::regcache_thread_ptid_changed): Update.
338 (registers_changed_ptid): Update.
339 (class regcache_access) <current_regcache_size>: Rename to...
340 <regcaches_size>: ... this.
341 (current_regcache_test): Rename to...
342 (regcaches_test): ... this.
343 (_initialize_regcache): Update.
344
345 2020-08-06 Victor Collod <vcollod@nvidia.com>
346
347 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
348
349 2020-08-05 Kevin Buettner <kevinb@redhat.com>
350
351 * corelow.c (core_target::build_file_mappings): Don't output
352 null pathname in warning.
353
354 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
355
356 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
357 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
358 gdb.dwarf2/dw2-single-line-discriminators.exp,
359 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
360
361 2020-08-05 Tom Tromey <tromey@adacore.com>
362
363 PR rust/26197:
364 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
365 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
366 Fix off-by-one and type size errors in ordinary case.
367
368 2020-08-05 Tom de Vries <tdevries@suse.de>
369
370 * gdbtypes.c (type_not_allocated, type_not_associated): Use
371 "prop->const_val () == 0" instead of "prop->const_val () != 0".
372
373 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
374
375 * frame.h (frame_id_p): Return bool.
376 (frame_id_artificial_p): Return bool.
377 (frame_id_eq): Return bool.
378 (has_stack_frames): Return bool.
379 (get_selected_frame): Fix typo in comment.
380 (get_frame_pc_if_available): Return bool.
381 (get_frame_address_in_block_if_available): Return bool.
382 (get_frame_func_if_available): Return bool.
383 (read_frame_register_unsigned): Return bool.
384 (get_frame_register_bytes): Return bool.
385 (safe_frame_unwind_memory): Return bool.
386 (deprecated_frame_register_read): Return bool.
387 (frame_unwinder_is): Return bool.
388 * frame.c (struct frame_info) <prev_arch::p>: Change type to
389 bool.
390 <this_id::p>: Likewise.
391 <prev_p>: Likewise.
392 (frame_stash_add): Return bool.
393 (get_frame_id): Use bool.
394 (frame_id_build_special) Use bool.
395 (frame_id_build_unavailable_stack): Use bool.
396 (frame_id_build): Use bool.
397 (frame_id_p): Return bool, use true/false instead of 1/0.
398 (frame_id_artificial_p): Likewise.
399 (frame_id_eq): Likewise.
400 (frame_id_inner): Likewise.
401 (get_frame_func_if_available): Likewise.
402 (read_frame_register_unsigned): Likewise.
403 (deprecated_frame_register_read): Likewise.
404 (get_frame_register_bytes): Likewise.
405 (has_stack_frames): Likewise.
406 (inside_main_func): Likewise.
407 (inside_entry_func): Likewise.
408 (get_frame_pc_if_available): Likewise.
409 (get_frame_address_in_block_if_available): Likewise.
410 (frame_unwinder_is): Likewise.
411 (safe_frame_unwind_memory): Likewise.
412 (frame_unwind_arch): Likewise.
413
414 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
415
416 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
417 type to cached_copy_status.
418 (fprintf_frame): Adjust.
419 (get_frame_func_if_available): Adjust.
420 (frame_cleanup_after_sniffer): Adjust.
421
422 2020-08-04 Mark Wielaard <mark@klomp.org>
423
424 * MAINTAINERS (Write After Approval): Update email address.
425
426 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
427
428 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
429 dynamic_prop::const_val.
430
431 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
432
433 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
434 dynamic_prop::kind.
435
436 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
437
438 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
439
440 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
441
442 * configure.tgt: Set gdb_sim for bpf-*-* targets.
443
444 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
445 Jose E. Marchesi <jose.marchesi@oracle.com>
446
447 * configure.tgt: Add entry for bpf-*-*.
448 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
449 (ALLDEPFILES): Add bpf-tdep.c.
450 * bpf-tdep.c: New file.
451 * MAINTAINERS: Add bpf target and maintainer.
452 * NEWS: Mention the support for the new target.
453
454 2020-08-04 Tom de Vries <tdevries@suse.de>
455
456 PR symtab/23270
457 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
458 Error.
459
460 2020-08-03 John Baldwin <jhb@FreeBSD.org>
461
462 * syscalls/freebsd.xml: Regenerate.
463
464 2020-08-03 John Baldwin <jhb@FreeBSD.org>
465
466 * syscalls/update-freebsd.sh: Fix usage and year range.
467
468 2020-08-03 Tom de Vries <tdevries@suse.de>
469
470 PR symtab/26333
471 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
472 DW_LNE_lo_user/DW_LNE_hi_user range.
473
474 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
475
476 PR ada/26318
477 * ada-lang.c (ada_modulus): Return 0 if property is not of const
478 kind.
479
480 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
481
482 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
483
484 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
485
486 * breakpoint.c (set_breakpoint_condition): Update the condition
487 expressions after checking that the input condition string parses
488 successfully and does not contain junk at the end.
489
490 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
491
492 * breakpoint.c (set_breakpoint_condition): Update the
493 condition string after parsing the new condition successfully.
494
495 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
496
497 * proc-api.c (_STRUCTURED_PROC): Don't define.
498 * proc-events.c: Likewise.
499 * proc-flags.c: Likewise.
500 * proc-why.c: Likewise.
501 * procfs.c: Likewise.
502
503 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
504 * configure, config.in: Regenerate.
505
506 2020-07-30 Tom de Vries <tdevries@suse.de>
507
508 PR build/26320
509 * ui-style.h (struct ui_file_style::color): Wrap m_value and
510 m_red/m_green/m_blue in a union.
511
512 2020-07-29 Tom de Vries <tdevries@suse.de>
513
514 PR tdep/26280
515 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
516
517 2020-07-28 Tom Tromey <tromey@adacore.com>
518
519 PR symtab/26270:
520 * symtab.h (find_pc_partial_function_sym): Declare.
521 * cli/cli-cmds.c (disassemble_command): Use
522 find_pc_partial_function_sym. Check asm_demangle.
523 * blockframe.c (cache_pc_function_sym): New global.
524 (cache_pc_function_name): Remove.
525 (clear_pc_function_cache): Update.
526 (find_pc_partial_function_sym): New function, from
527 find_pc_partial_function.
528 (find_pc_partial_function): Rewrite using
529 find_pc_partial_function_sym.
530
531 2020-07-28 Tom Tromey <tromey@adacore.com>
532
533 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
534 help. Add usage.
535
536 2020-07-28 Tom Tromey <tromey@adacore.com>
537
538 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
539 <DW_OP_GNU_variable_value>: Cast to address type.
540
541 2020-07-28 Kamil Rytarowski <n54@gmx.com>
542
543 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
544 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
545 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
546 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
547 (nbsd_get_siginfo_type): New.
548 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
549 (_initialize_nbsd_tdep): New.
550
551 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
552
553 PR binutils/26301
554 * configure: Regenerated.
555
556 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
557
558 PR binutils/26301
559 * configure: Regenerated.
560
561 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
562
563 * python/py-frame.c: Remove 'user-regs.h' include.
564 (frapy_read_register): Rewrite to make use of
565 gdbpy_parse_register_id.
566 * python/py-registers.c (gdbpy_parse_register_id): New function,
567 moved here from python/py-unwind.c. Updated the return type, and
568 also accepts register descriptor objects.
569 * python/py-unwind.c: Remove 'user-regs.h' include.
570 (pyuw_parse_register_id): Moved to python/py-registers.c.
571 (unwind_infopy_add_saved_register): Update to use
572 gdbpy_parse_register_id.
573 (pending_framepy_read_register): Likewise.
574 * python/python-internal.h (gdbpy_parse_register_id): Declare.
575
576 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
577
578 * python/py-registers.c: Add 'user-regs.h' include.
579 (register_descriptor_iter_find): New function.
580 (register_descriptor_iterator_object_methods): New static global
581 methods array.
582 (register_descriptor_iterator_object_type): Add pointer to methods
583 array.
584
585 2020-07-27 John Baldwin <jhb@FreeBSD.org>
586
587 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
588 for all architectures on FreeBSD 11.3 and later.
589
590 2020-07-27 Tom Tromey <tromey@adacore.com>
591
592 * gcore.h (load_corefile): Don't declare.
593
594 2020-07-27 Tom de Vries <tdevries@suse.de>
595
596 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
597 * config.in: Regenerate.
598 * configure: Regenerate.
599
600 2020-07-26 Eli Zaretskii <eliz@gnu.org>
601
602 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
603 ws2tcpip.h. When checking whether socklen_t type is defined, use
604 ws2tcpip.h if it is available and sys/socket.h isn't.
605 * configure: Regenerate.
606 * config.in: Regenerate.
607
608 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
609
610 PR fortran/23051
611 PR fortran/26139
612 * valops.c (value_ind): Pass address to
613 readjust_indirect_value_type.
614 * value.c (readjust_indirect_value_type): Make parameter
615 non-const, and add extra address parameter. Resolve original type
616 before using it.
617 * value.h (readjust_indirect_value_type): Update function
618 signature and comment.
619
620 2020-07-25 Tom de Vries <tdevries@suse.de>
621
622 PR symtab/26243
623 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
624 entries.
625
626 2020-07-24 Aaron Merey <amerey@redhat.com>
627
628 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
629 * configure: Rebuild.
630
631 2020-07-23 Kevin Buettner <kevinb@redhat.com>
632
633 PR corefiles/26294
634 * corelow.c (_initialize_corelow): Add period to help text
635 for "maintenance print core-file-backed-mappings".
636
637 2020-07-23 Pedro Alves <pedro@palves.net>
638
639 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
640 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
641 meanwhile.
642 * frame.c (frame_cache_generation, get_frame_cache_generation):
643 New.
644 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
645 (get_prev_frame_if_no_cycle): On exception, don't touch
646 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
647 * frame.h (get_frame_cache_generation): Declare.
648
649 2020-07-23 Tom de Vries <tdevries@suse.de>
650
651 PR tui/26282
652 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
653 New default constructor.
654
655 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
656
657 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
658 exclude non-statement entries.
659
660 2020-07-22 Kevin Buettner <kevinb@redhat.com>
661
662 * NEWS (New commands): Mention new command
663 "maintenance print core-file-backed-mappings".
664
665 2020-07-22 Kevin Buettner <kevinb@redhat.com>
666
667 * corelow.c (gdbcmd.h): Include.
668 (core_target::info_proc_mappings): New method.
669 (get_current_core_target): New function.
670 (maintenance_print_core_file_backed_mappings): New function.
671 (_initialize_corelow): Add core-file-backed-mappings to
672 "maint print" commands.
673
674 2020-07-22 Kevin Buettner <kevinb@redhat.com>
675
676 * linux-tdep.c (dump_note_entry_p): New function.
677 (linux_dump_mapping_p_ftype): New typedef.
678 (linux_find_memory_regions_full): Add new parameter,
679 should_dump_mapping_p.
680 (linux_find_memory_regions): Adjust call to
681 linux_find_memory_regions_full.
682 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
683 call to linux_find_memory_regions_full.
684
685 2020-07-22 Kevin Buettner <kevinb@redhat.com>
686
687 * corelow.c (solist.h, unordered_map): Include.
688 (class core_target): Add field m_core_file_mappings and
689 method build_file_mappings.
690 (core_target::core_target): Call build_file_mappings.
691 (core_target::~core_target): Free memory associated with
692 m_core_file_mappings.
693 (core_target::build_file_mappings): New method.
694 (core_target::xfer_partial): Use m_core_file_mappings
695 for memory transfers.
696 * linux-tdep.c (linux_read_core_file_mappings): New
697 function.
698 (linux_core_info_proc_mappings): Rewrite to use
699 linux_read_core_file_mappings.
700 (linux_init_abi): Register linux_read_core_file_mappings.
701
702 2020-07-22 Kevin Buettner <kevinb@redhat.com>
703
704 * arch-utils.c (default_read_core_file_mappings): New function.
705 * arch-utils.c (default_read_core_file_mappings): Declare.
706 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
707 * gdbarch.h, gdbarch.c: Regenerate.
708
709 2020-07-22 Kevin Buettner <kevinb@redhat.com>
710
711 PR corefiles/25631
712 * corelow.c (core_target:xfer_partial): Revise
713 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
714 case after first checking the stratum beneath the core
715 target.
716 (has_all_memory): Return true.
717 * target.c (raw_memory_xfer_partial): Revise comment
718 regarding use of has_all_memory.
719
720 2020-07-22 Kevin Buettner <kevinb@redhat.com>
721
722 * exec.h (section_table_xfer_memory): Revise declaration,
723 replacing section name parameter with an optional callback
724 predicate.
725 * exec.c (section_table_xfer_memory): Likewise.
726 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
727 of section_table_xfer_memory.
728
729 2020-07-22 Tom Tromey <tromey@adacore.com>
730
731 * mi/mi-cmd-stack.c (list_args_or_locals): Use
732 lookup_symbol_search_name.
733
734 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
735
736 * python/py-registers.c (gdbpy_register_object_data_init): Remove
737 redundant local variable.
738 (gdbpy_get_register_descriptor): Extract descriptor vector as a
739 reference, not pointer, update code accordingly.
740
741 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
742 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
743
744 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
745 * jit.c (jit_breakpoint_re_set_internal): Use the
746 `skip_jit_symbol_lookup` field.
747
748 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
749 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
750
751 * jit.c (jit_read_descriptor): Define the descriptor address once,
752 use twice.
753 (jit_breakpoint_deleted): Move the declaration of the loop variable
754 `iter` into the loop header.
755 (jit_breakpoint_re_set_internal): Move the declaration of the local
756 variable `objf_data` to the first point of definition.
757 (jit_event_handler): Move the declaration of local variables
758 `code_entry`, `entry_addr`, and `objf` to their first point of use.
759 Rename `objf` to `jited`.
760
761 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
762
763 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
764 Remove.
765 * jit.c (get_jiter_objfile_data): Update.
766
767 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
768 Simon Marchi <simon.marchi@polymtl.ca>
769
770 * jit.c (struct jit_program_space_data): Remove.
771 (jit_program_space_key): Remove.
772 (jiter_objfile_data::~jiter_objfile_data): Remove program space
773 stuff.
774 (get_jit_program_space_data): Remove.
775 (jit_breakpoint_deleted): Iterate on all of the program space's
776 objfiles.
777 (jit_inferior_init): Likewise.
778 (jit_breakpoint_re_set_internal): Likewise. Also change return
779 type to void.
780 (jit_breakpoint_re_set): Pass current_program_space to
781 jit_breakpoint_re_set_internal.
782
783 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
784
785 * jit.h (struct jiter_objfile_data) <cached_code_address,
786 jit_breakpoint>: Move to here from ...
787 * jit.c (jit_program_space_data): ... here.
788 (jiter_objfile_data::~jiter_objfile_data): Update.
789 (jit_breakpoint_deleted): Update.
790 (jit_breakpoint_re_set_internal): Update.
791
792 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
793
794 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
795 checks.
796 (jit_read_descriptor): Remove NULL check.
797 (jit_event_handler): Add an assertion.
798
799 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
800
801 * jit.h (struct jit_objfile_data): Split into...
802 (struct jiter_objfile_data): ... this ...
803 (struct jited_objfile_data): ... and this.
804 * objfiles.h (struct objfile) <jit_data>: Remove.
805 <jiter_data, jited_data>: New fields.
806 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
807 (jiter_objfile_data::~jiter_objfile_data): ... this.
808 (get_jit_objfile_data): Rename to ...
809 (get_jiter_objfile_data): ... this.
810 (add_objfile_entry): Update.
811 (jit_read_descriptor): Use get_jiter_objfile_data.
812 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
813 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
814 (jit_inferior_exit_hook): Use objfile's jited_data field.
815
816 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
817
818 * jit.h: Forward-declare `struct minimal_symbol`.
819 (struct jit_objfile_data): Migrate to here from jit.c; also add a
820 constructor, destructor, and an objfile* field.
821 * jit.c (jit_objfile_data): Remove.
822 (struct jit_objfile_data): Migrate from here to jit.h.
823 (jit_objfile_data::~jit_objfile_data): New destructor
824 implementation with code moved from free_objfile_data.
825 (free_objfile_data): Delete.
826 (get_jit_objfile_data): Update to use the jit_data field of objfile.
827 (jit_find_objf_with_entry_addr): Ditto.
828 (jit_inferior_exit_hook): Ditto.
829 (_initialize_jit): Remove the call to
830 register_objfile_data_with_cleanup.
831 * objfiles.h (struct objfile) <jit_data>: New field.
832
833 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
834
835 * jit.h: Forward-declare `struct objfile`.
836 (jit_event_handler): Add a second parameter, the JITer objfile.
837 * jit.c (jit_read_descriptor): Change the signature to take the
838 JITer objfile as an argument instead of the jit_program_space_data.
839 (jit_inferior_init): Update the call to jit_read_descriptor.
840 (jit_event_handler): Use the new JITer objfile argument when calling
841 jit_read_descriptor.
842 * breakpoint.c (handle_jit_event): Update the call to
843 jit_event_handler to pass the JITer objfile.
844
845 2020-07-21 John Baldwin <jhb@FreeBSD.org>
846
847 * gdbarch.c: Regenerate.
848 * gdbarch.h: Regenerate.
849 * gdbarch.sh (handle_segmentation_fault): Remove method.
850 * infrun.c (handle_segmentation_fault): Remove.
851 (print_signal_received_reason): Remove call to
852 handle_segmentation_fault.
853
854 2020-07-21 John Baldwin <jhb@FreeBSD.org>
855
856 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
857 Rename to sparc64_linux_report_signal_info and add siggnal
858 argument.
859 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
860 instead of sparc64_linux_handle_segmentation_fault.
861
862 2020-07-21 John Baldwin <jhb@FreeBSD.org>
863
864 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
865 i386_linux_report_signal_info instead of
866 i386_linux_handle_segmentation_fault.
867 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
868 to i386_linux_report_signal_info and add siggnal argument.
869 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
870 of i386_linux_handle_segmentation_fault.
871 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
872 to i386_linux_report_signal_info and add siggnal argument.
873
874 2020-07-21 John Baldwin <jhb@FreeBSD.org>
875
876 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
877 hook if present.
878
879 2020-07-21 John Baldwin <jhb@FreeBSD.org>
880
881 * gdbarch.c: Regenerate.
882 * gdbarch.h: Regenerate.
883 * gdbarch.sh (report_signal_info): New method.
884 * infrun.c (print_signal_received_reason): Invoke gdbarch
885 report_signal_info hook if present.
886
887 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
888
889 * python/py-registers.c : Add 'unordered_map' include.
890 (gdbpy_new_reggroup): Renamed to...
891 (gdbpy_get_reggroup): ...this. Update to only create register
892 group descriptors when needed.
893 (gdbpy_reggroup_iter_next): Update.
894
895 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
896
897 * python/py-registers.c (gdbpy_register_object_data): New static
898 global.
899 (gdbpy_register_object_data_init): New function.
900 (gdbpy_new_register_descriptor): Renamed to...
901 (gdbpy_get_register_descriptor): ...this, and update to reuse
902 existing register descriptors where possible.
903 (gdbpy_register_descriptor_iter_next): Update.
904 (gdbpy_initialize_registers): Register new gdbarch data.
905
906 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
907
908 * linux-nat.c (stopped_pids): Make static.
909
910 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
911
912 PR ada/26235
913 * gdbtypes.c (ada_discrete_type_low_bound,
914 ada_discrete_type_high_bound): Handle undefined bounds.
915
916 2020-07-21 Kamil Rytarowski <n54@gmx.com>
917
918 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
919 declaration.
920 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
921 function.
922
923 2020-07-20 John Baldwin <jhb@FreeBSD.org>
924
925 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
926 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
927 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
928 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
929 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
930 method.
931
932 2020-07-20 Ludovic Courtès <ludo@gnu.org>
933
934 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
935 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
936 which are deprecated in Guile 3.0.
937 * configure.ac (try_guile_versions): Add "guile-3.0".
938 * configure (try_guile_versions): Regenerate.
939 * NEWS: Update entry.
940
941 2020-07-20 Ludovic Courtès <ludo@gnu.org>
942 Doug Evans <dje@google.com>
943
944 PR gdb/21104
945 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
946 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
947 USING_GUILE_BEFORE_2_2.
948 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
949 Change type to 'scm_t_port_type *'.
950 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
951 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
952 parameter and honor it. Update callers.
953 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
954 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
955 functions.
956 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
957 USING_GUILE_BEFORE_2_2.
958 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
959 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
960 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
961 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
962 and 'SCM_PORT_TYPE'.
963 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
964 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
965 (gdbscm_memory_port_read, gdbscm_memory_port_write)
966 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
967 [!USING_GUILE_BEFORE_2_2]: New functions.
968 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
969 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
970 'gdbscm_memory_port_read'.
971 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
972 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
973 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
974 function.
975 (ioscm_init_memory_port): Remove.
976 (ioscm_init_memory_port_stream): New function
977 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
978 function.
979 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
980 Return scm_from_uint (0).
981 (gdbscm_set_memory_port_read_buffer_size_x)
982 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
983 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
984 Return scm_from_uint (0).
985 (gdbscm_set_memory_port_write_buffer_size_x)
986 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
987 * configure.ac (try_guile_versions): Add "guile-2.2".
988 * configure: Regenerate.
989 * NEWS: Add entry.
990
991 2020-07-18 Tom Tromey <tom@tromey.com>
992
993 * linux-nat.c (linux_multi_process): Remove.
994 (linux_nat_target::supports_multi_process): Return true.
995
996 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
997
998 * arch/riscv.c (riscv_tdesc_cache): Change map type.
999 (riscv_lookup_target_description): Return pointer out of
1000 unique_ptr.
1001 * target-descriptions.c (allocate_target_description): Add
1002 comment.
1003 (target_desc_deleter::operator()): Likewise.
1004 * target-descriptions.h (struct target_desc_deleter): Moved to
1005 gdbsupport/tdesc.h.
1006 (target_desc_up): Likewise.
1007
1008 2020-07-17 Tom Tromey <tromey@adacore.com>
1009
1010 * linux-nat.c (linux_nat_target::supports_non_stop)
1011 (linux_nat_target::always_non_stop_p): Use "true".
1012 (linux_nat_target::supports_disable_randomization): Use "true" and
1013 "false".
1014
1015 2020-07-16 Caroline Tice <cmtice@google.com>
1016
1017 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1018 (RNGLIST_HEADER_SIZE64): New constant definition.
1019 (struct dwop_section_names): Add rnglists_dwo.
1020 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1021 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1022 (struct dwo_sections): Add rnglists field.
1023 (read_attribut_reprocess): Add tag parameter.
1024 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1025 (cu_debug_rnglists_section): New function (decl & definition).
1026 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1027 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1028 die whose range is being checked; get rnglist section from
1029 cu_debug_rnglists_section, to get from either objfile or dwo file as
1030 appropriate. Add cases for DW_RLE_base_addressx,
1031 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1032 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1033 test inside if-condition and updating complaint message.
1034 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1035 dwarf2_rnglists_process.
1036 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1037 dwarf2_ranges_process.
1038 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1039 need_ranges_base and update comment appropriately. Also pass die tag
1040 to dwarf2_ranges_read.
1041 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1042 need_ranges_base and update comment appropriately. Also pass die tag
1043 to dwarf2_ranges_process.
1044 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1045 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1046 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1047 need_ranges_base and update comment appropriately. Also pass die tag
1048 to read_attribute_reprocess and dwarf2_ranges_read.
1049 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1050 and update function comment appropriately.
1051 (read_loclist_index): Call read_loclists_rnglists_header instead of
1052 read_loclist_header.
1053 (read_rnglist_index): New function.
1054 (read_attribute_reprocess): Add tag parameter. Add code for
1055 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1056 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1057
1058 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1059
1060 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1061 being resolved.
1062
1063 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1064
1065 * arch-utils.c (show_architecture): Update formatting of messages.
1066
1067 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1068
1069 * gdbtypes.h (struct type) <bounds>: Handle array and string
1070 types.
1071 * ada-lang.c (assign_aggregate): Use type::bounds on
1072 array/string type.
1073 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1074 * c-varobj.c (c_number_of_children): Likewise.
1075 (c_describe_child): Likewise.
1076 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1077 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1078 (f_type_print_base): Likewise.
1079 * f-valprint.c (f77_array_offset_tbl): Likewise.
1080 (f77_get_upperbound): Likewise.
1081 (f77_print_array_1): Likewise.
1082 * guile/scm-type.c (gdbscm_type_range): Likewise.
1083 * m2-typeprint.c (m2_array): Likewise.
1084 (m2_is_long_set_of_type): Likewise.
1085 * m2-valprint.c (get_long_set_bounds): Likewise.
1086 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1087 * python/py-type.c (typy_range): Likewise.
1088 * rust-lang.c (rust_internal_print_type): Likewise.
1089 * type-stack.c (type_stack::follow_types): Likewise.
1090 * valarith.c (value_subscripted_rvalue): Likewise.
1091 * valops.c (value_cast): Likewise.
1092
1093 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1094
1095 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1096 callers to use the equivalent accessor methods.
1097
1098 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1099
1100 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1101 (struct type) <bit_stride>: New method.
1102 (TYPE_BIT_STRIDE): Remove.
1103 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1104
1105 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1106
1107 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1108 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1109 callers to use the equivalent accessor methods instead.
1110
1111 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1112
1113 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1114 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1115 callers to use the equivalent accessor methods instead.
1116
1117 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1118
1119 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1120 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1121 to use dynamic_prop::kind.
1122
1123 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1124
1125 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1126 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1127 to get the bound property's kind and check against
1128 PROP_UNDEFINED.
1129
1130 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1131
1132 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1133 all callers to use type::range_bounds followed by
1134 dynamic_prop::{low,high}.
1135
1136 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1137
1138 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1139 const_val, set_const_val, baton, set_locexpr, set_loclist,
1140 set_addr_offset, variant_parts, set_variant_parts,
1141 original_type, set_original_type>: New methods.
1142 <kind>: Rename to...
1143 <m_kind>: ... this. Update all users to use the new methods
1144 instead.
1145 <data>: Rename to...
1146 <m_data>: ... this. Update all users to use the new methods
1147 instead.
1148
1149 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1150
1151 * gdbtypes.c (get_discrete_bounds): Return failure if
1152 the range type's bounds are not both defined and constant
1153 values.
1154 (get_array_bounds): Update comment. Remove undefined bound check.
1155
1156 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1157
1158 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1159 the type::bounds method directly.
1160
1161 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1162
1163 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1164 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1165 are used to set the range type's bounds to use set_bounds.
1166
1167 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1168
1169 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1170
1171 2020-07-10 Pedro Alves <pedro@palves.net>
1172
1173 * gdbthread.h (inferior_ref): Define.
1174 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1175 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1176 * thread.c
1177 (scoped_restore_current_thread::restore):
1178 Adjust to gdb::ref_ptr.
1179 (scoped_restore_current_thread::~scoped_restore_current_thread):
1180 Remove manual decref handling.
1181 (scoped_restore_current_thread::scoped_restore_current_thread):
1182 Adjust to use
1183 inferior_ref::new_reference/thread_info_ref::new_reference.
1184 Incref the thread before calling get_frame_id instead of after.
1185 Let TARGET_CLOSE_ERROR propagate.
1186
1187 2020-07-10 Pedro Alves <pedro@palves.net>
1188
1189 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1190 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1191 NOT_AVAILABLE_ERROR.
1192 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1193 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1194
1195 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1196 Pedro Alves <pedro@palves.net>
1197
1198 PR gdb/26199
1199 * infrun.c (threads_are_resumed_pending_p): Delete.
1200 (do_target_wait): Remove threads_are_executing and
1201 threads_are_resumed_pending_p checks from the inferior_matches
1202 lambda. Update comments.
1203
1204 2020-07-10 Pedro Alves <pedro@palves.net>
1205
1206 PR gdb/26199
1207 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1208 executing threads.
1209
1210 2020-07-10 Pedro Alves <pedro@palves.net>
1211
1212 PR gdb/26199
1213 * infrun.c (handle_no_resumed): Handle multiple targets.
1214
1215 2020-07-10 Pedro Alves <pedro@palves.net>
1216
1217 PR gdb/26199
1218 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1219 target_is_async_p.
1220
1221 2020-07-10 Pedro Alves <pedro@palves.net>
1222
1223 PR gdb/26199
1224 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1225 threads, not all threads.
1226
1227 2020-07-10 Pedro Alves <pedro@palves.net>
1228
1229 PR gdb/26199
1230 * remote.c (remote_target::open_1): Pass remote target pointer as
1231 data to create_async_event_handler.
1232 (remote_async_inferior_event_handler): Mark async event handler
1233 before returning if the remote target still has either pending
1234 events or unacknowledged notifications.
1235
1236 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1237
1238 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1239 declaration.
1240 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1241 function.
1242
1243 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1244
1245 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1246 inferior_ptid.
1247
1248 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1249
1250 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1251 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1252 AT_FREEBSD_PS_STRINGS.
1253
1254 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1255
1256 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1257 of debugfile path on Windows.
1258
1259 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1260
1261 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1262 argument to 'data'.
1263
1264 2020-07-08 Tom Tromey <tromey@adacore.com>
1265
1266 * ada-lang.c (ada_exception_message_1): Use read_memory.
1267
1268 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1269
1270 PR python/22748
1271 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1272 special handling for inline frames.
1273 * findvar.c (value_of_register_lazy): Skip inline frames when
1274 creating lazy register values.
1275 * frame.c (frame_id_computed_p): Delete definition.
1276 * frame.h (frame_id_computed_p): Delete declaration.
1277
1278 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1279
1280 * NEWS: Mention additions to Python API.
1281 * python/py-arch.c (archpy_register_groups): New function.
1282 (arch_object_methods): Add 'register_groups' method.
1283 * python/py-registers.c (reggroup_iterator_object): New struct.
1284 (reggroup_object): New struct.
1285 (gdbpy_new_reggroup): New function.
1286 (gdbpy_reggroup_to_string): New function.
1287 (gdbpy_reggroup_name): New function.
1288 (gdbpy_reggroup_iter): New function.
1289 (gdbpy_reggroup_iter_next): New function.
1290 (gdbpy_new_reggroup_iterator): New function
1291 (gdbpy_initialize_registers): Register new types.
1292 (reggroup_iterator_object_type): Define new Python type.
1293 (gdbpy_reggroup_getset): New static global.
1294 (reggroup_object_type): Define new Python type.
1295 * python/python-internal.h
1296
1297 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1298
1299 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1300 * python/py-arch.c (archpy_registers): New function.
1301 (arch_object_methods): Add 'registers' method.
1302 * python/py-registers.c: New file.
1303 * python/python-internal.h
1304 (gdbpy_new_register_descriptor_iterator): Declare.
1305 (gdbpy_initialize_registers): Declare.
1306 * python/python.c (do_start_initialization): Call
1307 gdbpy_initialize_registers.
1308 * NEWS: Mention additions to the Python API.
1309
1310 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1311
1312 * NEWS: Mention new Python API method.
1313 * python/py-unwind.c (pending_framepy_architecture): New function.
1314 (pending_frame_object_methods): Add architecture method.
1315
1316 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1317
1318 * gdbarch.c: Regenerate.
1319 * gdbarch.h: Regenerate.
1320 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1321 (gdbarch_data): Use internal_error for the case where
1322 deprecated_set_gdbarch_data was originally needed.
1323 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1324 and use passed in obstack.
1325 (libunwind_frame_set_descr): Should no longer get back NULL from
1326 gdbarch_data.
1327 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1328 type.
1329 * user-regs.c (user_regs_init): Update parameters, and use passed
1330 in obstack.
1331 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1332 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1333
1334 2020-07-06 Tom de Vries <tdevries@suse.de>
1335
1336 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1337 End-Of-Sequence in lte_is_less_than.
1338 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1339 "gdb: Don't reorder line table entries too much when sorting".
1340
1341 2020-07-06 Tom de Vries <tdevries@suse.de>
1342
1343 PR tui/26205
1344 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1345
1346 2020-07-05 Tom de Vries <tdevries@suse.de>
1347
1348 PR build/26187
1349 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1350 std::uncaught_exceptions instead of deprecated
1351 std::uncaught_exception.
1352
1353 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1354
1355 * macroexp.h (macro_stringify): Return
1356 gdb::unique_xmalloc_ptr<char>.
1357 * macroexp.c (macro_stringify): Likewise.
1358 * macrotab.c (fixup_definition): Update.
1359
1360 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1361
1362 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1363 (lex_one_token): Update.
1364 * macroexp.c (struct macro_buffer) <release>: Return
1365 gdb::unique_xmalloc_ptr<char>.
1366 (macro_stringify): Update.
1367 (macro_expand): Update.
1368 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1369 * macroexp.h (macro_expand_next): Likewise.
1370
1371 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1372
1373 * macroexp.h (macro_lookup_ftype): Remove.
1374 (macro_expand, macro_expand_once, macro_expand_next): Remove
1375 lookup function parameters, add scope parameter.
1376 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1377 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1378 * macroscope.h (standard_macro_lookup): Change parameter type
1379 to macro_scope.
1380 * macroscope.c (standard_macro_lookup): Likewise.
1381 * c-exp.y (lex_one_token): Update.
1382 * macrocmd.c (macro_expand_command): Likewise.
1383 (macro_expand_once_command): Likewise.
1384
1385 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1386
1387 * inf-loop.c (inferior_event_handler): Remove client_data param.
1388 * inf-loop.h (inferior_event_handler): Likewise.
1389 * infcmd.c (step_1): Adjust.
1390 * infrun.c (proceed): Adjust.
1391 (fetch_inferior_event): Remove client_data param.
1392 (infrun_async_inferior_event_handler): Adjust.
1393 * infrun.h (fetch_inferior_event): Remove `void *` param.
1394 * linux-nat.c (handle_target_event): Adjust.
1395 * record-btrace.c (record_btrace_handle_async_inferior_event):
1396 Adjust.
1397 * record-full.c (record_full_async_inferior_event_handler):
1398 Adjust.
1399 * remote.c (remote_async_inferior_event_handler): Adjust.
1400
1401 2020-07-01 Tom Tromey <tom@tromey.com>
1402
1403 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1404 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1405
1406 2020-07-01 Tom Tromey <tom@tromey.com>
1407
1408 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1409 tui_gen_win_info.
1410 (tui_win_info::make_window): Merge with
1411 tui_gen_win_info::make_window.
1412 (tui_win_info::make_visible): Move from tui_gen_win_info.
1413 * tui/tui-win.c (tui_win_info::max_width): Move from
1414 tui_gen_win_info.
1415 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1416 type.
1417 <window_factory>: Likewise.
1418 * tui/tui-layout.c (tui_win_info::resize): Move from
1419 tui_gen_win_info.
1420 (make_standard_window): Change return type.
1421 (get_locator_window, tui_get_window_by_name): Likewise.
1422 (tui_layout_window::apply): Remove a cast.
1423 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1424 (struct tui_win_info): Merge with tui_gen_win_info.
1425 (struct tui_gen_win_info): Remove.
1426
1427 2020-07-01 Tom Tromey <tom@tromey.com>
1428
1429 * tui/tui-stack.h (struct tui_locator_window): Derive from
1430 tui_win_info.
1431 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1432 <can_box>: New method.
1433
1434 2020-07-01 Tom Tromey <tom@tromey.com>
1435
1436 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1437
1438 2020-07-01 Tom Tromey <tom@tromey.com>
1439
1440 * tui/tui-regs.c (tui_data_window::display_registers_from)
1441 (tui_data_window::display_registers_from)
1442 (tui_data_window::first_data_item_displayed)
1443 (tui_data_window::delete_data_content_windows): Update.
1444 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1445 Remove.
1446 (tui_data_window::check_register_values): Update.
1447 (tui_data_item_window::rerender): Add parameters. Update.
1448 (tui_data_item_window::refresh_window): Remove.
1449 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1450 virtual.
1451 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1452 tui_gen_win_info.
1453 <refresh_window, max_height, min_height>: Remove.
1454 <rerender>: Add parameters.
1455 <x, y, visible>: New members.
1456 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1457 <m_item_width>: New member.
1458
1459 2020-07-01 Tom Tromey <tom@tromey.com>
1460
1461 * tui/tui-regs.c (tui_data_window::show_register_group)
1462 (tui_data_window::check_register_values): Update.
1463 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1464 from item_no.
1465
1466 2020-07-01 Tom Tromey <tom@tromey.com>
1467
1468 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1469 useless "if".
1470
1471 2020-07-01 Tom Tromey <tom@tromey.com>
1472
1473 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1474 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1475
1476 2020-07-01 Tom Tromey <tom@tromey.com>
1477
1478 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1479 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1480 (struct tui_line_or_address): Move from tui-data.h.
1481 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1482 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1483 (tui_cmd_window, tui_source_window_base, tui_source_window)
1484 (tui_disasm_window): Don't declare.
1485 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1486 to tui-winsource.h.
1487 (SINGLE_KEY): Move to tui-stack.c.
1488
1489 2020-07-01 Tom Tromey <tom@tromey.com>
1490
1491 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1492 std::string.
1493 * tui/tui-regs.c (class tab_expansion_file): New.
1494 (tab_expansion_file::write): New method.
1495 (tui_register_format): Change return type. Use
1496 tab_expansion_file.
1497 (tui_get_register, tui_data_window::display_registers_from)
1498 (tui_data_item_window::rerender): Update.
1499 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1500 * tui/tui-io.c (tui_expand_tabs): Remove.
1501
1502 2020-07-01 Tom Tromey <tom@tromey.com>
1503
1504 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1505
1506 2020-07-01 Fangrui Song <maskray@google.com>
1507
1508 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1509
1510 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1511
1512 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1513 forms for DW_AT_associated and DW_AT_allocated attributes,
1514 which is already checked in function attr_to_dynamic_prop.
1515
1516 2020-06-30 Tom Tromey <tromey@adacore.com>
1517
1518 * dwarf2/read.c (quirk_rust_enum): Correctly call
1519 alloc_rust_variant for default-less enum.
1520
1521 2020-06-30 Tom Tromey <tromey@adacore.com>
1522
1523 PR build/26183:
1524 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1525 gdb::to_string.
1526
1527 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1528
1529 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1530 * gdbarch.h: Re-generate.
1531
1532 2020-06-28 Tom Tromey <tom@tromey.com>
1533
1534 * command.h (cmd_types): Remove.
1535 (cmd_type): Don't declare.
1536 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1537 typedef.
1538 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1539 * cli/cli-decode.c (cmd_type): Remove.
1540
1541 2020-06-27 Pedro Alves <palves@redhat.com>
1542
1543 * fork-child.c (prefork_hook): Adjust.
1544 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1545 Delete.
1546 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1547 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1548 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1549 Remove declarations.
1550 (struct inferior) <set_tty, tty>: New methods.
1551 (struct inferior) <terminal>: Rename to ...
1552 (struct inferior) <m_terminal>: ... this and make private.
1553 * main.c (captured_main_1): Adjust.
1554 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1555 (mi_cmd_inferior_tty_show): Adjust.
1556 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1557 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1558
1559 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1560
1561 * configure.ac: Add --enable-libctf: handle --disable-static
1562 properly.
1563 * acinclude.m4: sinclude ../config/enable.m4.
1564 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1565 (LIBCTF): Substitute in.
1566 (CTF_DEPS): New, likewise.
1567 (CLIBS): libctf needs symbols from libbfd: move earlier.
1568 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1569 flags.
1570 * ctfread.c: Surround in ENABLE_LIBCTF.
1571 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1572 * configure: Regenerate.
1573 * config.in: Likewise.
1574
1575 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1576
1577 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1578
1579 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1580
1581 * inferior.h (struct inferior) <terminal>: Change type to
1582 gdb::unique_xmalloc_ptr<char>.
1583 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1584 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1585 field, adjust to unique pointer.
1586 (get_inferior_io_terminal): Adjust to unique pointer.
1587
1588 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1589
1590 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1591 registers, not just the known core set of registers.
1592
1593 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1594
1595 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1596 fflags, frm, and fcsr registers.
1597 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1598 restore groups.
1599 (riscv_tdesc_unknown_reg): New function.
1600 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1601 tdesc_use_registers.
1602 * riscv-tdep.h (struct gdbarch_tdep): Add
1603 unknown_csrs_first_regnum, unknown_csrs_count,
1604 duplicate_fflags_regnum, duplicate_frm_regnum, and
1605 duplicate_fcsr_regnum fields.
1606
1607 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1608
1609 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1610 callback, use the callback (when not null) to help number unknown
1611 registers.
1612 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1613 (tdesc_use_registers): Add extra parameter to declaration.
1614
1615 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1616
1617 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1618 in the file.
1619 (class riscv_pending_register_alias): Likewise.
1620 (riscv_register_feature::register_info): Change 'required_p' field
1621 to 'required', and change its type. Add 'check' member function.
1622 (riscv_register_feature::register_info::check): Define new member
1623 function.
1624 (riscv_xreg_feature): Change initialisation of 'required' field.
1625 (riscv_freg_feature): Likewise.
1626 (riscv_virtual_feature): Likewise.
1627 (riscv_csr_feature): Likewise.
1628 (riscv_check_tdesc_feature): Take extra parameter, the csr
1629 tdesc_feature, rewrite the function to use the new
1630 riscv_register_feature::register_info::check function.
1631 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1632
1633 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1634
1635 * features/Makefile: Remove all references to the deleted files
1636 below.
1637 * features/riscv/32bit-csr.c: Deleted.
1638 * features/riscv/32bit-csr.xml: Deleted.
1639 * features/riscv/64bit-csr.c: Deleted.
1640 * features/riscv/64bit-csr.xml: Deleted.
1641 * features/riscv/rebuild-csr-xml.sh: Deleted.
1642
1643 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1644
1645 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1646 whitespace error for declaration of names member variable.
1647 (struct riscv_register_feature): Add new prefer_first_name member
1648 variable, and fix whitespace error in declaration of registers.
1649 (riscv_xreg_feature): Initialize prefer_first_name field.
1650 (riscv_freg_feature): Likewise.
1651 (riscv_virtual_feature): Likewise.
1652 (riscv_csr_feature): Likewise.
1653 (riscv_register_name): Expand on comments. Remove register name
1654 modifications for CSR and virtual registers.
1655
1656 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1657
1658 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1659 errors.
1660
1661 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1662
1663 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1664 riscv-opc.h.
1665 (class riscv_pending_register_alias): New class.
1666 (riscv_check_tdesc_feature): Take vector of pending aliases and
1667 populate it as appropriate.
1668 (riscv_setup_register_aliases): Delete.
1669 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1670 to riscv_check_tdesc_feature in all cases. Use the vector to
1671 create the register aliases.
1672
1673 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1674
1675 * sol2-tdep.c (sol2_static_transform_name): Remove.
1676 (sol2_init_abi): Don't register it.
1677 * gdbarch.sh (static_transform_name): Remove.
1678 * gdbarch.c, gdbarch.h: Regenerate.
1679
1680 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1681 gdbarch_static_transform_name.
1682 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1683 * stabsread.c (define_symbol) <'X'>: Remove.
1684 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1685 handling.
1686 <'V'>: Likewise.
1687 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1688 <'S'>: Remove call to gdbarch_static_transform_name.
1689
1690 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1691
1692 * procfs.c (procfs_pre_trace): New function.
1693 (procfs_target::create_inferior): Pass it to fork_inferior.
1694
1695 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1696
1697 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1698 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1699 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1700 sol2-tdep.o, sparc-sol2-tdep.o.
1701 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1702 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1703 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1704 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1705
1706 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1707
1708 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1709 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1710 Call sol2_init_abi.
1711 Remove calls to set_gdbarch_skip_solib_resolver,
1712 set_gdbarch_core_pid_to_str.
1713 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1714 (i386_sol2_static_transform_name): Remove.
1715 (i386_sol2_init_abi): Call sol2_init_abi.
1716 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1717 set_gdbarch_static_transform_name,
1718 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1719 Use sol2_sigtramp_p.
1720 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1721 (sol2_sigtramp_p): New function.
1722 (sol2_static_transform_name): New function.
1723 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1724 (sol2_init_abi): New function.
1725 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1726 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1727 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1728 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1729 (sparc_sol2_static_transform_name): Remove.
1730 (sparc32_sol2_init_abi): Call sol2_init_abi.
1731 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1732 set_gdbarch_static_transform_name,
1733 set_gdbarch_skip_solib_resolver,
1734 set_gdbarch_core_pid_to_str.
1735 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1736 (sparc_sol2_static_transform_name): Remove
1737 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1738 call sol2_sigtramp_p.
1739 (sparc64_sol2_init_abi): Call sol2_init_abi.
1740 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1741 set_gdbarch_static_transform_name,
1742 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1743
1744 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1745
1746 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1747 * exec.c (validate_exec_file): If from_tty, set both
1748 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1749 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1750 and from_tty, unconditionally ask a confirmation.
1751
1752 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1753
1754 * target-descriptions.c (tdesc_architecture_name): Protect against
1755 NULL pointer dereference.
1756 (maint_print_xml_tdesc_cmd): New function.
1757 (_initialize_target_descriptions): Register new 'maint print
1758 xml-tdesc' command and give it the filename completer.
1759 * NEWS: Mention new 'maint print xml-tdesc' command.
1760
1761 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1762
1763 * target-descriptions.c (class tdesc_compatible_info): New class.
1764 (struct target_desc): Change type of compatible vector.
1765 (tdesc_compatible_p): Update for change in type of
1766 target_desc::compatible.
1767 (tdesc_compatible_info_list): New function.
1768 (tdesc_compatible_info_arch_name): New function.
1769 (tdesc_add_compatible): Update for change in type of
1770 target_desc::compatible.
1771 (print_c_tdesc::visit_pre): Likewise.
1772
1773 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1774
1775 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1776 whitespace to underscore.
1777 (maint_print_c_tdesc_cmd): Use fake filename for target
1778 descriptions that came from the target.
1779 (_initialize_target_descriptions): Add filename command completion
1780 for 'maint print c-tdesc'.
1781
1782 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1783
1784 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1785 lines.
1786
1787 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1788
1789 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1790 lines.
1791 (dwarf2_find_location_expression): Likewise.
1792 (call_site_parameter_matches): Likewise.
1793 (dwarf2_compile_expr_to_ax): Likewise.
1794 (disassemble_dwarf_expression): Likewise.
1795 (loclist_describe_location): Likewise.
1796
1797 2020-06-23 Pedro Alves <palves@redhat.com>
1798
1799 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1800 progspace-and-thread.h. Include scoped-mock-context.h instead.
1801 (register_to_value_test): Use scoped_mock_context.
1802 * regcache.c: Include "scoped-mock-context.h".
1803 (cooked_read_test): Don't error out if a target is already pushed.
1804 Use scoped_mock_context. Adjust.
1805 * scoped-mock-context.h: New file.
1806
1807 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1808
1809 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1810 initializer.
1811 (ada_language::is_string_type_p): New member function.
1812 * c-lang.c (c_language_data): Delete la_is_string_type_p
1813 initializer.
1814 (cplus_language_data): Likewise.
1815 (asm_language_data): Likewise.
1816 (minimal_language_data): Likewise.
1817 * d-lang.c (d_language_data): Likewise.
1818 * f-lang.c (f_is_string_type_p): Delete function, implementation
1819 moved to f_language::is_string_type_p.
1820 (f_language_data): Delete la_is_string_type_p initializer.
1821 (f_language::is_string_type_p): New member function,
1822 implementation from f_is_string_type_p.
1823 * go-lang.c (go_is_string_type_p): Delete function, implementation
1824 moved to go_language::is_string_type_p.
1825 (go_language_data): Delete la_is_string_type_p initializer.
1826 (go_language::is_string_type_p): New member function,
1827 implementation from go_is_string_type_p.
1828 * language.c (language_defn::is_string_type_p): Define new member
1829 function.
1830 (default_is_string_type_p): Make static, add comment copied from
1831 header file.
1832 (unknown_language_data): Delete la_is_string_type_p initializer.
1833 (unknown_language::is_string_type_p): New member function.
1834 (auto_language_data): Delete la_is_string_type_p initializer.
1835 (auto_language::is_string_type_p): New member function.
1836 * language.h (language_data): Delete la_is_string_type_p field.
1837 (language_defn::is_string_type_p): Declare new function.
1838 (default_is_string_type_p): Delete desclaration, move comment to
1839 definition.
1840 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1841 moved to m2_language::is_string_type_p.
1842 (m2_language_data): Delete la_is_string_type_p initializer.
1843 (m2_language::is_string_type_p): New member function,
1844 implementation from m2_is_string_type_p.
1845 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1846 initializer.
1847 * opencl-lang.c (opencl_language_data): Likewise.
1848 * p-lang.c (pascal_is_string_type_p): Delete function,
1849 implementation moved to pascal_language::is_string_type_p.
1850 (pascal_language_data): Delete la_is_string_type_p initializer.
1851 (pascal_language::is_string_type_p): New member function,
1852 implementation from pascal_is_string_type_p.
1853 * rust-lang.c (rust_is_string_type_p): Delete function,
1854 implementation moved to rust_language::is_string_type_p.
1855 (rust_language_data): Delete la_is_string_type_p initializer.
1856 (rust_language::is_string_type_p): New member function,
1857 implementation from rust_is_string_type_p.
1858 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1859 is_string_type_p.
1860
1861 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1862
1863 * ada-lang.c (ada_language_data): Delete la_print_typedef
1864 initializer.
1865 (ada_language::print_typedef): New member function.
1866 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1867 (cplus_language_data): Likewise.
1868 (asm_language_data): Likewise.
1869 (minimal_language_data): Likewise.
1870 * d-lang.c (d_language_data): Likewise.
1871 * f-lang.c (f_language_data): Likewise.
1872 (f_language::print_typedef): New member function.
1873 * go-lang.c (go_language_data): Delete la_print_typedef
1874 initializer.
1875 * language.c (language_defn::print_typedef): Define member
1876 function.
1877 (unknown_language_data): Delete la_print_typedef initializer.
1878 (unknown_language::print_typedef): New member function.
1879 (auto_language_data): Delete la_print_typedef initializer.
1880 (auto_language::print_typedef): New member function.
1881 * language.h (language_data): Delete la_print_typedef field.
1882 (language_defn::print_typedef): Declare new member function.
1883 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1884 (default_print_typedef): Delete declaration.
1885 * m2-lang.c (m2_language_data): Delete la_print_typedef
1886 initializer.
1887 (m2_language::print_typedef): New member function.
1888 * objc-lang.c (objc_language_data): Delete la_print_typedef
1889 initializer.
1890 * opencl-lang.c (opencl_language_data): Likewise.
1891 * p-lang.c (pascal_language_data): Likewise.
1892 (pascal_language::print_typedef): New member function.
1893 * rust-lang.c (rust_print_typedef): Delete function,
1894 implementation moved to rust_language::print_typedef.
1895 (rust_language): Delete la_print_typedef initializer.
1896 (rust_language::print_typedef): New member function,
1897 implementation from rust_print_typedef.
1898 * typeprint.c (default_print_typedef): Delete.
1899
1900 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1901
1902 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1903 (ada_language::printstr): New member function.
1904 * c-lang.c (c_language_data): Delete la_printstr initializer.
1905 (cplus_language_data): Likewise.
1906 (asm_language_data): Likewise.
1907 (minimal_language_data): Likewise.
1908 * d-lang.c (d_language_data): Likewise.
1909 * f-lang.c (f_printstr): Rename to f_language::printstr.
1910 (f_language_data): Delete la_printstr initializer.
1911 (f_language::printstr): New member function, implementation from
1912 f_printstr.
1913 * go-lang.c (go_language_data): Delete la_printstr initializer.
1914 * language.c (language_defn::printstr): Define new member
1915 function.
1916 (unk_lang_printstr): Delete.
1917 (unknown_language_data): Delete la_printstr initializer.
1918 (unknown_language::printstr): New member function.
1919 (auto_language_data): Delete la_printstr initializer.
1920 (auto_language::printstr): New member function.
1921 * language.h (language_data): Delete la_printstr field.
1922 (language_defn::printstr): Declare new member function.
1923 (LA_PRINT_STRING): Update call to printstr.
1924 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1925 (m2_language_data): Delete la_printstr initializer.
1926 (m2_language::printstr): New member function, implementation from
1927 m2_printstr.
1928 * objc-lang.c (objc_language_data): Delete la_printstr
1929 initializer.
1930 * opencl-lang.c (opencl_language_data): Likewise.
1931 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1932 (pascal_language_data): Delete la_printstr initializer.
1933 (pascal_language::printstr): New member function, implementation
1934 from pascal_printstr.
1935 * p-lang.h (pascal_printstr): Delete declaration.
1936 * rust-lang.c (rust_printstr): Update header comment.
1937 (rust_language_data): Delete la_printstr initializer.
1938 (rust_language::printstr): New member function.
1939
1940 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1941
1942 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1943 (ada_language::printchar): New member function.
1944 * c-lang.c (c_language_data): Delete la_printchar initializer.
1945 (cplus_language_data): Likewise.
1946 (asm_language_data): Likewise.
1947 (minimal_language_data): Likewise.
1948 * d-lang.c (d_language_data): Likewise.
1949 * f-lang.c (f_printchar): Rename to f_language::printchar.
1950 (f_language_data): Delete la_printchar initializer.
1951 (f_language::printchar): New member function, implementation from
1952 f_printchar.
1953 * go-lang.c (go_language_data): Delete la_printchar initializer.
1954 * language.c (unk_lang_printchar): Delete.
1955 (language_defn::printchar): Define new member function.
1956 (unknown_language_data): Delete la_printchar initializer.
1957 (unknown_language::printchar): New member function.
1958 (auto_language_data): Delete la_printchar initializer.
1959 (auto_language::printchar): New member function.
1960 * language.h (language_data): Delete la_printchar field.
1961 (language_defn::printchar): Declare new member function.
1962 (LA_PRINT_CHAR): Update call to printchar.
1963 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1964 (m2_language::printchar): New member function.
1965 * objc-lang.c (objc_language_data): Delete la_printchar
1966 initializer.
1967 * opencl-lang.c (opencl_language_data): Likewise.
1968 * p-lang.c (pascal_language_data): Delete la_printchar
1969 initializer.
1970 (pascal_language::printchar): New member function.
1971 * rust-lang.c (rust_printchar): Rename to
1972 rust_language::printchar.
1973 (rust_language_data): Delete la_printchar initializer.
1974 (rust_language::printchar): New member function, implementation
1975 from rust_printchar.
1976
1977 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1978
1979 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1980 (ada_language_data): Delete la_emitchar initializer.
1981 (ada_language::emitchar): New member function, implementation from
1982 emit_char.
1983 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1984 (cplus_language_data): Likewise.
1985 (asm_language_data): Likewise.
1986 (minimal_language_data): Likewise.
1987 * d-lang.c (d_language_data): Likewise.
1988 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1989 (f_language_data): Delete la_emitchar initializer.
1990 (f_language::emitchar): New member function, implementation from
1991 f_emit_char.
1992 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1993 * language.c (unk_lang_emit_char): Delete.
1994 (language_defn::emitchar): New member function definition.
1995 (unknown_language_data): Delete la_emitchar initializer.
1996 (unknown_language::emitchar): New member function.
1997 (auto_language_data): Delete la_emitchar initializer.
1998 (auto_language::emitchar): New member function.
1999 * language.h (language_data): Delete la_emitchar field.
2000 (language_defn::emitchar): New member field declaration.
2001 (LA_EMIT_CHAR): Update call to emitchar.
2002 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2003 (m2_language_data): Delete la_emitchar initializer.
2004 (m2_language::emitchar): New member function, implementation from
2005 m2_emit_char.
2006 * objc-lang.c (objc_language_data): Delete la_emitchar
2007 initializer.
2008 * opencl-lang.c (opencl_language_data): Likewise.
2009 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2010 (pascal_language_data): Delete la_emitchar initializer.
2011 (pascal_language::emitchar): New member function, implementation
2012 from pascal_emit_char.
2013 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2014 (rust_language_data): Delete la_emitchar initializer.
2015 (rust_language::emitchar): New member function, implementation
2016 from rust_emitchar.
2017
2018 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2019
2020 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2021 (ada_language_data): Delete la_post_parser initializer.
2022 (ada_language::post_parser): New member function.
2023 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2024 (cplus_language_data): Likewise.
2025 (asm_language_data): Likewise.
2026 (minimal_language_data): Likewise.
2027 * d-lang.c (d_language_data): Likewise.
2028 * f-lang.c (f_language_data): Likewise.
2029 * go-lang.c (go_language_data): Likewise.
2030 * language.c (unknown_language_data): Likewise.
2031 (auto_language_data): Likewise.
2032 * language.h (language_data): Delete la_post_parser field.
2033 (language_defn::post_parser): New member function.
2034 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2035 * objc-lang.c (objc_language_data): Likewise.
2036 * opencl-lang.c (opencl_language_data): Likewise.
2037 * p-lang.c (pascal_language_data): Likewise.
2038 * parse.c (parse_exp_in_context): Update call to post_parser.
2039 (null_post_parser): Delete definition.
2040 * parser-defs.h (null_post_parser): Delete declaration.
2041 * rust-lang.c (rust_language_data): Delete la_post_parser
2042 initializer.
2043
2044 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2045
2046 * ada-lang.c (parse): Rename to ada_language::parser.
2047 (ada_language_data): Delete la_parser initializer.
2048 (ada_language::parser): New member function, implementation from
2049 parse.
2050 * c-lang.c (c_language_data): Delete la_parser initializer.
2051 (cplus_language_data): Likewise.
2052 (asm_language_data): Likewise.
2053 (minimal_language_data): Likewise.
2054 * d-lang.c (d_language_data): Likewise.
2055 (d_language::parser): New member function.
2056 * f-lang.c (f_language_data): Delete la_parser initializer.
2057 (f_language::parser): New member function.
2058 * go-lang.c (go_language_data): Delete la_parser initializer.
2059 (go_language::parser): New member function.
2060 * language.c (unk_lang_parser): Delete.
2061 (language_defn::parser): Define new member function.
2062 (unknown_language_data): Delete la_parser initializer.
2063 (unknown_language::parser): New member function.
2064 (auto_language_data): Delete la_parser initializer.
2065 (auto_language::parser): New member function.
2066 * language.h (language_data): Delete la_parser field.
2067 (language_defn::parser): Declare new member function.
2068 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2069 (m2_language::parser): New member function.
2070 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2071 * opencl-lang.c (opencl_language_data): Likewise.
2072 * p-lang.c (pascal_language_data): Likewise.
2073 (pascal_language::parser): New member function.
2074 * parse.c (parse_exp_in_context): Update call to parser.
2075 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2076 (rust_language::parser): New member function.
2077
2078 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2079
2080 * top.c (print_gdb_configuration): Print --with-python-libdir
2081 configuration value.
2082
2083 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2084
2085 * NEWS: Mention change to the alias command.
2086
2087 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2088
2089 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2090 (alias_command_completer)
2091 (make_alias_options_def_group): New functions.
2092 (alias_opts, alias_option_defs): New struct and array.
2093 (alias_usage_error): Update usage.
2094 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2095 Use option framework.
2096 (_initialize_cli_cmds): Update alias command help.
2097 Update aliases command help.
2098 (show_user):
2099 Add NULL for new default_args lookup_cmd argument.
2100 (valid_command_p): Rename to validate_aliased_command.
2101 Add NULL for new default_args lookup_cmd argument. Verify that the
2102 aliased_command has no default args.
2103 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2104 (lookup_cmd_1, lookup_cmd): New argument default_args.
2105 (add_alias_cmd):
2106 Add NULL for new default_args lookup_cmd argument.
2107 (print_help_for_command): Show default args under the layout
2108 alias some_alias = some_aliased_cmd some_alias_default_arg.
2109 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2110 xfree default_args in destructor.
2111 * cli/cli-script.c (process_next_line, do_define_command):
2112 Add NULL for new default_args lookup_cmd argument.
2113 * command.h: Declare new default_args argument in lookup_cmd
2114 and lookup_cmd_1.
2115 * completer.c (complete_line_internal_1):
2116 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2117 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2118 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2119 Likewise.
2120 * infcmd.c (_initialize_infcmd): Likewise.
2121 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2122 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2123 * python/py-param.c (add_setshow_generic): Likewise.
2124 * remote.c (_initialize_remote): Likewise.
2125 * top.c (execute_command): Prepend default_args if command has some.
2126 (set_verbose):
2127 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2128 * tracepoint.c (validate_actionline, encode_actions_1):
2129 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2130
2131 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2132
2133 * jit.c (jit_read_descriptor): Use bool as the return type.
2134 (jit_breakpoint_re_set_internal): Use bool as the return type.
2135 Invert the return value logic; return true if the jit breakpoint
2136 has been successfully initialized.
2137 (jit_inferior_init): Update the call to
2138 jit_breakpoint_re_set_internal.
2139
2140 2020-06-22 Pedro Alves <palves@redhat.com>
2141
2142 PR gdb/25939
2143 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2144 Use the current inferior instead. Don't return
2145 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2146 wait again.
2147 * sol-thread.c (sol_thread_target::wait): Don't reference
2148 inferior_ptid.
2149 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2150 (sol_update_thread_list_callback): Use the current inferior's pid
2151 instead of inferior_ptid.
2152
2153 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2154
2155 * procfs.c: Cleanup many comments.
2156
2157 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2158 (AFTER_WATCHFLAG): Replace by value.
2159
2160 (MAIN_PROC_NAME_FORMAT): Inline ...
2161 (create_procinfo): ... here.
2162
2163 (procfs_debug_inferior): Remove SYS_exec handling.
2164 (syscall_is_exec): Likewise.
2165 (procfs_set_exec_trap): Likewise.
2166
2167 (syscall_is_lwp_exit): Inline in callers.
2168 (syscall_is_exit): Likewise.
2169 (syscall_is_exec): Likewise.
2170 (syscall_is_lwp_create): Likewise.
2171
2172 (invalidate_cache): Remove #if 0 code.
2173
2174 (make_signal_thread_runnable): Remove.
2175 (procfs_target::resume): Remove #if 0 code.
2176
2177 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2178
2179 PR gdb/25939
2180 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2181 call ...
2182 (procfs_target::create_inferior): ... here.
2183
2184 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2185
2186 * exec.c (validate_exec_file): Ensure the build-id is up to
2187 date by calling reopen_exec_file (that checks file timestamp
2188 to decide to re-read the file).
2189
2190 2020-06-18 Pedro Alves <palves@redhat.com>
2191
2192 PR gdb/25412
2193 * gdbthread.h (delete_thread, delete_thread_silent)
2194 (find_thread_ptid): Update comments.
2195 * thread.c (current_thread_): New global.
2196 (is_current_thread): Move higher, and reimplement.
2197 (inferior_thread): Reimplement.
2198 (set_thread_exited): Use bool. Add assertions.
2199 (add_thread_silent): Simplify thread-reuse handling by always
2200 calling delete_thread.
2201 (delete_thread): Remove intro comment.
2202 (find_thread_ptid): Skip exited threads.
2203 (switch_to_thread_no_regs): Write to current_thread_.
2204 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2205 INFERIOR_PTID. Clear current_thread_.
2206
2207 2020-06-18 Pedro Alves <palves@redhat.com>
2208
2209 * aix-thread.c (pd_update): Use switch_to_thread.
2210
2211 2020-06-18 Pedro Alves <palves@redhat.com>
2212
2213 * ravenscar-thread.c (ravenscar_thread_target): Update.
2214 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2215 (ravenscar_thread_target::add_active_thread): ... this. Don't
2216 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2217 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2218
2219 2020-06-18 Pedro Alves <palves@redhat.com>
2220
2221 * nat/windows-nat.c (current_windows_thread): Remove.
2222 * nat/windows-nat.h (current_windows_thread): Remove.
2223 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2224 Adjust.
2225 (display_selectors): Adjust to fetch the current
2226 windows_thread_info based on inferior_ptid.
2227 (fake_create_process): No longer write to current_windows_thread.
2228 (windows_nat_target::get_windows_debug_event):
2229 Don't set inferior_ptid or current_windows_thread.
2230 (windows_nat_target::wait): Adjust to not rely on
2231 current_windows_thread.
2232 (do_initial_windows_stuff): Now a method of windows_nat_target.
2233 Switch to the last_ptid thread.
2234 (windows_nat_target::attach): Adjust.
2235 (windows_nat_target::detach): Use switch_to_no_thread instead of
2236 writing to inferior_ptid directly.
2237 (windows_nat_target::create_inferior): Adjust.
2238
2239 2020-06-18 Pedro Alves <palves@redhat.com>
2240
2241 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2242
2243 2020-06-18 Pedro Alves <palves@redhat.com>
2244
2245 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2246 after creating it, instead of writing to inferior_ptid. Don't
2247 write to inferior_ptid.
2248
2249 2020-06-18 Pedro Alves <palves@redhat.com>
2250
2251 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2252
2253 2020-06-18 Pedro Alves <palves@redhat.com>
2254
2255 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2256 it, instead of writing to inferior_ptid.
2257
2258 2020-06-18 Pedro Alves <palves@redhat.com>
2259
2260 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2261 to inferior_ptid.
2262
2263 2020-06-18 Pedro Alves <palves@redhat.com>
2264
2265 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2266 instead of writing to inferior_ptid directly.
2267
2268 2020-06-18 Pedro Alves <palves@redhat.com>
2269
2270 * corelow.c (core_target::close): Use switch_to_no_thread instead
2271 of writing to inferior_ptid directly.
2272 (add_to_thread_list, core_target_open): Use switch_to_thread
2273 instead of writing to inferior_ptid directly.
2274
2275 2020-06-18 Pedro Alves <palves@redhat.com>
2276
2277 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2278 inferior_ptid.
2279 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2280 inferior_ptid.
2281 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2282 inferior_ptid directly.
2283 (darwin_nat_target::init_thread_list): Switch to thread, instead
2284 of writing to inferior_ptid.
2285 (darwin_nat_target::attach): Don't write to inferior_ptid.
2286 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2287
2288 2020-06-18 Pedro Alves <palves@redhat.com>
2289
2290 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2291 thread.
2292 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2293 Instead use switch_to_thread.
2294 (gnu_nat_target::detach): Use switch_to_no_thread
2295 instead of writing to inferior_ptid directly. Used passed-in
2296 inferior instead of looking up the inferior by pid.
2297
2298 2020-06-18 Pedro Alves <palves@redhat.com>
2299
2300 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2301 inferior_ptid.
2302
2303 2020-06-18 Pedro Alves <palves@redhat.com>
2304
2305 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2306 inferior_ptid.
2307 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2308 thread.
2309 (nto_procfs_target::detach): Avoid referencing
2310 inferior_ptid. Use switch_to_no_thread instead of writing to
2311 inferior_ptid directly.
2312 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2313 instead of writing to inferior_ptid directly.
2314 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2315 to thread.
2316
2317 2020-06-18 Pedro Alves <palves@redhat.com>
2318
2319 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2320 after creating it, instead of writing to inferior_ptid.
2321 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2322 to inferior_ptid directly.
2323 (gdbsim_target::wait): Don't write to inferior_ptid.
2324
2325 2020-06-18 Pedro Alves <palves@redhat.com>
2326
2327 * remote.c (remote_target::remote_notice_new_inferior): Use
2328 switch_to_thread instead of writing to inferior_ptid directly.
2329 (remote_target::add_current_inferior_and_thread): Use
2330 switch_to_no_thread instead of writing to inferior_ptid directly.
2331 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2332 and switch_to_thread instead of using set_current_inferior or
2333 writing to inferior_ptid directly.
2334
2335 2020-06-18 Pedro Alves <palves@redhat.com>
2336
2337 * tracectf.c (ctf_target_open): Switch to added thread instead of
2338 writing to inferior_ptid directly.
2339 (ctf_target::close): Use switch_to_no_thread instead of writing to
2340 inferior_ptid directly.
2341
2342 2020-06-18 Pedro Alves <palves@redhat.com>
2343
2344 * tracefile-tfile.c (tfile_target_open): Don't write to
2345 inferior_ptid directly, instead switch to added thread.
2346 (tfile_target::close): Use switch_to_no_thread instead of writing
2347 to inferior_ptid directly.
2348
2349 2020-06-18 Pedro Alves <palves@redhat.com>
2350
2351 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2352 (procfs_target::detach): Use switch_to_no_thread
2353 instead of writing to inferior_ptid directly.
2354 (do_attach): Change return type to void. Switch to the added
2355 thread.
2356 (procfs_target::create_inferior): Switch to the added thread.
2357 (procfs_do_thread_registers): Don't write to inferior_ptid.
2358
2359 2020-06-18 Pedro Alves <palves@redhat.com>
2360
2361 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2362 of writing to inferior_ptid.
2363 (scoped_restore_exited_inferior): Delete.
2364 (handle_vfork_child_exec_or_exit): Simplify using
2365 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2366 instead of writing to inferior_ptid.
2367 (THREAD_STOPPED_BY): Delete.
2368 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2369 (thread_stopped_by_hw_breakpoint): Delete.
2370 (save_waitstatus): Use
2371 scoped_restore_current_thread+switch_to_thread, and call
2372 target_stopped_by_watchpoint instead of
2373 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2374 instead of thread_stopped_by_sw_breakpoint, and
2375 target_stopped_by_hw_breakpoint instead of
2376 thread_stopped_by_hw_breakpoint.
2377 (handle_inferior_event)
2378 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2379 inferior_ptid directly, nor
2380 set_current_inferior/set_current_program_space. Use
2381 switch_to_thread / switch_to_inferior_no_thread instead.
2382
2383 2020-06-18 Pedro Alves <palves@redhat.com>
2384
2385 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2386 instead of writing to inferior_ptid.
2387
2388 2020-06-18 Pedro Alves <palves@redhat.com>
2389
2390 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2391 added thread.
2392 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2393 to the added thread.
2394 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2395 instead of writing to inferior_ptid.
2396
2397 2020-06-18 Pedro Alves <palves@redhat.com>
2398
2399 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2400 (register_to_value_test): Mock a program_space too. Heap-allocate
2401 the address space. Don't write to inferior_ptid. Use
2402 switch_to_thread instead.
2403
2404 2020-06-18 Pedro Alves <palves@redhat.com>
2405
2406 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2407 Delete.
2408 (find_signalled_thread()): New, factored out from
2409 linux_make_corefile_notes and adjusted to handle exited threads.
2410 (linux_make_corefile_notes): Adjust to use the new
2411 find_signalled_thread.
2412
2413 2020-06-18 Pedro Alves <palves@redhat.com>
2414
2415 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2416 of saving/restoring inferior_ptid.
2417
2418 2020-06-17 Tom Tromey <tom@tromey.com>
2419
2420 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2421 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2422 declare.
2423 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2424
2425 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2426
2427 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2428 of partial symtabs.
2429
2430 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2431
2432 * regformats/reg-arm.dat: Remove.
2433 * regformats/reg-bfin.dat: Remove.
2434 * regformats/reg-cris.dat: Remove.
2435 * regformats/reg-crisv32.dat: Remove.
2436 * regformats/reg-m32r.dat: Remove.
2437 * regformats/reg-tilegx.dat: Remove.
2438 * regformats/reg-tilegx32.dat: Remove.
2439
2440 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2441
2442 * features/Makefile (WHICH): Remove arm files.
2443 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2444 * regformats/arm/arm-with-neon.dat: Remove.
2445 * regformats/arm/arm-with-vfpv2.dat: Remove.
2446 * regformats/arm/arm-with-vfpv3.dat: Remove.
2447
2448 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2449
2450 * features/Makefile (XMLTOC): Remove rx.xml.
2451
2452 2020-06-17 Pedro Alves <palves@redhat.com>
2453
2454 * gdbthread.h (thread_control_state) <trap_expected> Update
2455 comments.
2456
2457 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2458
2459 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2460 ada_language::lookup_symbol_nonlocal.
2461 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2462 (ada_language::lookup_symbol_nonlocal): New member function,
2463 implementation from ada_lookup_symbol_nonlocal.
2464 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2465 initializer.
2466 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2467 initializer.
2468 (cplus_language::lookup_symbol_nonlocal): New member function.
2469 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2470 (minimal_language_data) Likewise.
2471 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2472 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2473 initializer.
2474 (d_language::lookup_symbol_nonlocal): New member function.
2475 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2476 initializer.
2477 (f_language::lookup_symbol_nonlocal): New member function.
2478 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2479 initializer.
2480 * language.c (unknown_language_data): Likewise.
2481 (auto_language_data): Likewise.
2482 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2483 field.
2484 (language_defn::lookup_symbol_nonlocal): New member function.
2485 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2486 initializer.
2487 * objc-lang.c (objc_language_data): Likewise.
2488 * opencl-lang.c (opencl_language_data): Likewise.
2489 * p-lang.c (pascal_language_data): Likewise.
2490 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2491 rust_language::lookup_symbol_nonlocal.
2492 (rust_language_data): Delete la_lookup_symbol_nonlocal
2493 initializer.
2494 (rust_language::lookup_symbol_nonlocal): New member function,
2495 implementation from rust_lookup_symbol_nonlocal.
2496 * symtab.c (lookup_symbol_aux): Update call to
2497 lookup_symbol_nonlocal.
2498 (basic_lookup_symbol_nonlocal): Rename to...
2499 (language_defn::lookup_symbol_nonlocal): ...this, and update
2500 header comment. Remove language_defn parameter, and replace with
2501 uses of `this'.
2502 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2503
2504 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2505
2506 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2507 initializer.
2508 (ada_language::value_print_inner): New member function.
2509 * c-lang.c (c_language_data): Delete la_value_print_inner
2510 initializer.
2511 (cplus_language_data): Likewise.
2512 (asm_language_data): Likewise.
2513 (minimal_language_data): Likewise.
2514 * d-lang.c (d_language_data): Likewise.
2515 (d_language::value_print_inner): New member function.
2516 * f-lang.c (f_language_data): Delete la_value_print_inner
2517 initializer.
2518 (f_language::value_print_inner): New member function.
2519 * f-lang.h (f_value_print_innner): Rename to...
2520 (f_value_print_inner): ...this (note spelling of 'inner').
2521 * f-valprint.c (f_value_print_innner): Rename to...
2522 (f_value_print_inner): ...this (note spelling of 'inner').
2523 * go-lang.c (go_language_data): Delete la_value_print_inner
2524 initializer.
2525 (go_language::value_print_inner): New member function.
2526 * language.c (language_defn::value_print_inner): Define new member
2527 function.
2528 (unk_lang_value_print_inner): Delete.
2529 (unknown_language_data): Delete la_value_print_inner initializer.
2530 (unknown_language::value_print_inner): New member function.
2531 (auto_language_data): Delete la_value_print_inner initializer.
2532 (auto_language::value_print_inner): New member function.
2533 * language.h (language_data): Delete la_value_print_inner field.
2534 (language_defn::value_print_inner): Delcare new member function.
2535 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2536 initializer.
2537 (m2_language::value_print_inner): New member function.
2538 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2539 initializer.
2540 * opencl-lang.c (opencl_language_data): Likewise.
2541 * p-lang.c (pascal_language_data): Likewise.
2542 (pascal_language::value_print_inner): New member function.
2543 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2544 initializer.
2545 (rust_language::value_print_inner): New member function.
2546 * valprint.c (do_val_print): Update call to value_print_inner.
2547
2548 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2549
2550 * ada-lang.c (ada_language_data): Delete la_value_print
2551 initializer.
2552 (ada_language::value_print): New member function.
2553 * c-lang.c (c_language_data): Delete la_value_print initializer.
2554 (cplus_language_data): Likewise.
2555 (asm_language_data): Likewise.
2556 (minimal_language_data): Likewise.
2557 * d-lang.c (d_language_data): Likewise.
2558 * f-lang.c (f_language_data): Likewise.
2559 * go-lang.c (go_language_data): Likewise.
2560 * language.c (unk_lang_value_print): Delete.
2561 (language_defn::value_print): Define new member function.
2562 (unknown_language_data): Delete la_value_print initializer.
2563 (unknown_language::value_print): New member function.
2564 (auto_language_data): Delete la_value_print initializer.
2565 (auto_language::value_print): New member function.
2566 * language.h (language_data): Delete la_value_print field.
2567 (language_defn::value_print): Declare new member function.
2568 (LA_VALUE_PRINT): Update call to value_print.
2569 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2570 * objc-lang.c (objc_language_data): Likewise.
2571 * opencl-lang.c (opencl_language_data): Likewise.
2572 * p-lang.c (pascal_language_data): Likewise.
2573 (pascal_language::value_print): New member function.
2574 * rust-lang.c (rust_language_data): Delete la_value_print
2575 initializer.
2576
2577 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2578
2579 * ada-lang.c (ada_watch_location_expression): Rename to
2580 ada_language::watch_location_expression.
2581 (ada_language_data): Delete la_watch_location_expression
2582 initializer.
2583 (ada_language::watch_location_expression): New member function,
2584 implementation from ada_watch_location_expression.
2585 * breakpoint.c (watch_command_1): Update call to
2586 watch_location_expression.
2587 * c-lang.c (c_watch_location_expression): Rename to
2588 language_defn::watch_location_expression.
2589 (c_language_data): Delete la_watch_location_expression
2590 initializer.
2591 (cplus_language_data): Likewise.
2592 (asm_language_data): Likewise.
2593 (minimal_language_data): Likewise.
2594 * c-lang.h (c_watch_location_expression): Delete declaration.
2595 * d-lang.c (d_language_data): Delete la_watch_location_expression
2596 initializer.
2597 * f-lang.c (f_language_data): Likewise.
2598 * go-lang.c (go_language_data): Likewise.
2599 * language.c (language_defn::watch_location_expression): Member
2600 function implementation from c_watch_location_expression.
2601 (unknown_language_data): Delete la_watch_location_expression
2602 initializer.
2603 (auto_language_data): Likewise.
2604 * language.h (language_data): Delete la_watch_location_expression
2605 field.
2606 (language_defn::watch_location_expression): Declare new member
2607 function.
2608 * m2-lang.c (m2_language_data): Delete
2609 la_watch_location_expression initializer.
2610 * objc-lang.c (objc_language_data): Likewise.
2611 * opencl-lang.c (opencl_language_data): Likewise.
2612 * p-lang.c (pascal_language_data): Likewise.
2613 * rust-lang.c (rust_watch_location_expression): Rename to
2614 rust_language::watch_location_expression.
2615 (rust_language_data): Delete la_watch_location_expression
2616 initializer.
2617 (rust_language::watch_location_expression): New member function,
2618 implementation from rust_watch_location_expression.
2619
2620 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2621
2622 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2623 ada_language::collect_symbol_completion_matches.
2624 (ada_language_data): Delete la_collect_symbol_completion_matches
2625 initializer.
2626 (ada_language::collect_symbol_completion_matches): New member
2627 function, implementation from
2628 ada_collect_symbol_completion_matches.
2629 * c-lang.c (c_language_data): Delete
2630 la_collect_symbol_completion_matches initializer.
2631 (cplus_language_data): Likewise.
2632 (asm_language_data): Likewise.
2633 (minimal_language_data): Likewise.
2634 * d-lang.c (d_language_data): Likewise.
2635 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2636 f_language::collect_symbol_completion_matches.
2637 (f_language_data): Delete la_collect_symbol_completion_matches
2638 initializer.
2639 (f_language::collect_symbol_completion_matches) New member
2640 function, implementation from f_collect_symbol_completion_matches.
2641 * go-lang.c (go_language_data): Delete
2642 la_collect_symbol_completion_matches initializer.
2643 * language.c (unknown_language_data): Likewise.
2644 (auto_language_data): Likewise.
2645 * language.h (language_data): Delete
2646 la_collect_symbol_completion_matches field.
2647 (language_defn::collect_symbol_completion_matches): New member
2648 function.
2649 * m2-lang.c (m2_language_data): Delete
2650 la_collect_symbol_completion_matches initializer.
2651 * objc-lang.c (objc_language_data): Likewise.
2652 * opencl-lang.c (opencl_language_data): Likewise.
2653 * p-lang.c (pascal_language_data): Likewise.
2654 * rust-lang.c (rust_language_data): Likewise.
2655 * symtab.c (default_collect_symbol_completion_matches): Delete.
2656 (collect_symbol_completion_matches): Update call to
2657 collect_symbol_completion_matches.
2658 (collect_symbol_completion_matches_type): Likewise.
2659 * symtab.h (default_collect_symbol_completion_matches): Delete
2660 declaration.
2661
2662 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2663
2664 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2665 (ada_language_data): Delete la_word_break_characters initializer.
2666 (ada_language::word_break_characters): New member function.
2667 * c-lang.c (c_language_data): Delete la_word_break_characters
2668 initializer.
2669 (cplus_language_data): Likewise.
2670 (asm_language_data): Likewise.
2671 (minimal_language_data): Likewise.
2672 * completer.c: Update global comment.
2673 (advance_to_expression_complete_word_point): Update call to
2674 word_break_characters.
2675 (complete_files_symbols): Likewise.
2676 (complete_line_internal_1): Likewise.
2677 (default_completer_handle_brkchars): Likewise.
2678 (skip_quoted_chars): Likewise.
2679 * d-lang.c (d_language_data): Delete la_word_break_characters
2680 initializer.
2681 * f-lang.c (f_word_break_characters): Delete.
2682 (f_language_data): Delete la_word_break_characters initializer.
2683 (f_language::word_break_characters): New member function.
2684 * go-lang.c (go_language_data): Delete la_word_break_characters
2685 initializer.
2686 * language.c (unknown_language_data): Likewise.
2687 (auto_language_data): Likewise.
2688 * language.h (default_word_break_characters): Move declaration to
2689 earlier in the file.
2690 (language_data): Delete la_word_break_characters field.
2691 (language_defn::word_break_characters): New member function.
2692 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2693 initializer.
2694 * objc-lang.c (objc_language_data): Likewise.
2695 * opencl-lang.c (opencl_language_data): Likewise.
2696 * p-lang.c (pascal_language_data): Likewise.
2697 * rust-lang.c (rust_language_data): Likewise.
2698
2699 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2700
2701 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2702 (ada_language_data): Delete la_get_symbol_name_matcher
2703 initializer.
2704 (language_defn::get_symbol_name_matcher_inner): New member
2705 function.
2706 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2707 initializer.
2708 (cplus_language_data): Likewise.
2709 (cplus_language::get_symbol_name_matcher_inner): New member
2710 function.
2711 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2712 (minimal_language_data): Likewise.
2713 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2714 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2715 initializer.
2716 * dictionary.c (iter_match_first_hashed): Update call to
2717 get_symbol_name_matcher.
2718 (iter_match_next_hashed): Likewise.
2719 (iter_match_next_linear): Likewise.
2720 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2721 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2722 initializer.
2723 (f_language::get_symbol_name_matcher_inner): New member function.
2724 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2725 initializer.
2726 * language.c (default_symbol_name_matcher): Update header comment,
2727 make static.
2728 (language_defn::get_symbol_name_matcher): New definition.
2729 (language_defn::get_symbol_name_matcher_inner): Likewise.
2730 (get_symbol_name_matcher): Delete.
2731 (unknown_language_data): Delete la_get_symbol_name_matcher
2732 initializer.
2733 (auto_language_data): Likewise.
2734 * language.h (language_data): Delete la_get_symbol_name_matcher
2735 field.
2736 (language_defn::get_symbol_name_matcher): New member function.
2737 (language_defn::get_symbol_name_matcher_inner): Likewise.
2738 (default_symbol_name_matcher): Delete declaration.
2739 * linespec.c (find_methods): Update call to
2740 get_symbol_name_matcher.
2741 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2742 initializer.
2743 * minsyms.c (lookup_minimal_symbol): Update call to
2744 get_symbol_name_matcher.
2745 (iterate_over_minimal_symbols): Likewise.
2746 * objc-lang.c (objc_language_data): Delete
2747 la_get_symbol_name_matcher initializer.
2748 * opencl-lang.c (opencl_language_data): Likewise.
2749 * p-lang.c (pascal_language_data): Likewise.
2750 * psymtab.c (psymbol_name_matches): Update call to
2751 get_symbol_name_matcher.
2752 * rust-lang.c (rust_language_data): Delete
2753 la_get_symbol_name_matcher initializer.
2754 * symtab.c (symbol_matches_search_name): Update call to
2755 get_symbol_name_matcher.
2756 (compare_symbol_name): Likewise.
2757
2758 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2759
2760 * ada-lang.c (ada_language_data): Delete la_compute_program
2761 initializer.
2762 * c-lang.c (c_language_data): Likewise.
2763 (c_language::compute_program): New member function.
2764 (cplus_language_data): Delete la_compute_program initializer.
2765 (cplus_language::compute_program): New member function.
2766 (asm_language_data): Delete la_compute_program initializer.
2767 (minimal_language_data): Likewise.
2768 * c-lang.h (c_compute_program): Update comment.
2769 (cplus_compute_program): Likewise.
2770 * compile/compile-c-support.c (c_compute_program): Likewise.
2771 (cplus_compute_program): Likewise.
2772 * compile/compile.c (compile_to_object): Update call to
2773 la_compute_program.
2774 * d-lang.c (d_language_data): Delete la_compute_program
2775 initializer.
2776 * f-lang.c (f_language_data): Likewise.
2777 * go-lang.c (go_language_data): Likewise.
2778 * language.c (unknown_language_data): Likewise.
2779 (auto_language_data): Likewise.
2780 * language.h (language_data): Delete la_compute_program field.
2781 (language_defn::compute_program): New member function.
2782 * m2-lang.c (m2_language_data): Delete la_compute_program
2783 initializer.
2784 * objc-lang.c (objc_language_data): Likewise.
2785 * opencl-lang.c (opencl_language_data): Likewise.
2786 * p-lang.c (pascal_language_data): Likewise.
2787 * rust-lang.c (rust_language_data): Likewise.
2788
2789 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2790
2791 * ada-lang.c (ada_language_data) Delete
2792 la_class_name_from_physname initializer.
2793 * c-lang.c (c_language_data): Likewise.
2794 (cplus_language_data): Likewise.
2795 (cplus_language::class_name_from_physname): New member function.
2796 (asm_language_data): Delete la_class_name_from_physname
2797 initializer.
2798 (minimal_language_data): Likewise.
2799 * d-lang.c (d_language_data): Likewise.
2800 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2801 method on language_defn class.
2802 (guess_full_die_structure_name): Likewise.
2803 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2804 initializer.
2805 * go-lang.c (go_language_data): Likewise.
2806 * language.c (language_class_name_from_physname): Delete.
2807 (unk_lang_class_name): Delete.
2808 (unknown_language_data): Delete la_class_name_from_physname
2809 initializer.
2810 (auto_language_data): Likewise.
2811 * language.h (language_data): Delete la_class_name_from_physname
2812 field.
2813 (language_defn::class_name_from_physname): New function.
2814 (language_class_name_from_physname): Delete declaration.
2815 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2816 initializer.
2817 * objc-lang.c (objc_language_data): Likewise.
2818 * opencl-lang.c (opencl_language_data): Likewise.
2819 * p-lang.c (pascal_language_data): Likewise.
2820 * rust-lang.c (rust_language_data): Likewise.
2821
2822 2020-06-16 Tom Tromey <tom@tromey.com>
2823
2824 * tui/tui-data.h (STATUS_NAME): New macro.
2825 * tui/tui-layout.c (tui_remove_some_windows)
2826 (initialize_known_windows, tui_register_window)
2827 (tui_layout_split::remove_windows, initialize_layouts)
2828 (tui_new_layout_command): Don't use hard-coded window names.
2829
2830 2020-06-16 Tom Tromey <tom@tromey.com>
2831
2832 PR tui/25348:
2833 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2834 tui_initialize_readline. Only run once. Call rl_initialize.
2835 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2836 tui_initialize_readline.
2837 * tui/tui-io.c (tui_setup_io): Call
2838 tui_ensure_readline_initialized.
2839 * tui/tui-interp.c (tui_interp::init): Update.
2840
2841 2020-06-16 Tom Tromey <tom@tromey.com>
2842
2843 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2844 Also preserve the status window.
2845
2846 2020-06-16 Tom Tromey <tom@tromey.com>
2847
2848 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2849 where m_window==nullptr.
2850
2851 2020-06-15 Tom Tromey <tromey@adacore.com>
2852
2853 * windows-nat.c (windows_nat::handle_output_debug_string):
2854 Update.
2855 (windows_nat::handle_ms_vc_exception): Update.
2856 * target.h (target_read_string): Change API.
2857 * target.c (target_read_string): Change API.
2858 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2859 Update.
2860 * solib-frv.c (frv_current_sos): Update.
2861 * solib-dsbt.c (dsbt_current_sos): Update.
2862 * solib-darwin.c (darwin_current_sos): Update.
2863 * linux-thread-db.c (inferior_has_bug): Update.
2864 * expprint.c (print_subexp_standard): Update.
2865 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2866 (ada_exception_message_1): Update.
2867
2868 2020-06-15 Tom Tromey <tromey@adacore.com>
2869
2870 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2871
2872 2020-06-15 Tom Tromey <tromey@adacore.com>
2873
2874 * valprint.c (read_string): Update comment.
2875 * target.c (MIN): Remove.
2876 (target_read_string): Rewrite.
2877
2878 2020-06-15 Tom Tromey <tromey@adacore.com>
2879
2880 * corefile.c (read_memory_string): Remove.
2881 * ada-valprint.c (ada_value_print_ptr): Update.
2882 * ada-lang.h (ada_tag_name): Change return type.
2883 * ada-lang.c (type_from_tag): Update.
2884 (ada_tag_name_from_tsd): Change return type. Use
2885 target_read_string.
2886 (ada_tag_name): Likewise.
2887 * gdbcore.h (read_memory_string): Don't declare.
2888
2889 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2890
2891 * symtab.c (rbreak_command): Ignore Windows drive colon.
2892
2893 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2894
2895 * NEWS: Mention removed GDBserver host support.
2896
2897 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2898
2899 * features/riscv/rebuild-csr-xml.sh: Updated.
2900
2901 2020-06-11 Tom Tromey <tom@tromey.com>
2902
2903 PR gdb/18318:
2904 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2905
2906 2020-06-09 Jonny Grant <jg@jguk.org>
2907 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2908
2909 * main.c (captured_main_1): Don't print new line after help.
2910 (print_gdb_help): add mailing list and IRC channel information
2911 to --help. Add new lines between items in the footer. Remove
2912 quotes around bug url.
2913
2914 2020-06-11 Keith Seitz <keiths@redhat.com>
2915
2916 PR gdb/21356
2917 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2918 Resolve typedefs for type length calculations.
2919
2920 2020-06-10 Tom de Vries <tdevries@suse.de>
2921
2922 PR ada/24713
2923 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2924 (write_psymbols): Enable .gdb_index for ada.
2925 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2926 ada.
2927
2928 2020-06-10 Tom de Vries <tdevries@suse.de>
2929
2930 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2931 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2932 namei" instead of "const char *name" argument.
2933 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2934 dw2_symtab_iter_init.
2935
2936 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2937
2938 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2939 to use type::field and field::type instead.
2940
2941 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2942
2943 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2944 to use field::type instead.
2945
2946 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2947
2948 * gdbtypes.h (struct field) <type, set_type>: New methods.
2949 Rename `type` field to...
2950 <m_type>: ... this. Change references throughout to use type or
2951 set_type methods.
2952 (FIELD_TYPE): Use field::type. Change call sites that modify
2953 the field's type to use field::set_type instead.
2954
2955 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2956
2957 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2958 to use type::index_type instead.
2959
2960 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2961
2962 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2963 methods.
2964 (TYPE_INDEX_TYPE): Use type::index_type.
2965 * gdbtypes.c (create_array_type_with_stride): Likewise.
2966
2967 2020-06-07 Tom Tromey <tom@tromey.com>
2968
2969 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2970 parameter.
2971 (generic_value_print): Update.
2972
2973 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2974
2975 Revert commit 982a38f60b0.
2976 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2977
2978 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2979
2980 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2981 avoid use after free.
2982
2983 2020-06-05 Tom de Vries <tdevries@suse.de>
2984
2985 * NEWS: Fix typos.
2986
2987 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2988
2989 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2990 the per_bfd object.
2991 (dwarf2_read_debug_names): Likewise.
2992 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2993 object when re-using a per_bfd object with an index.
2994
2995 2020-06-03 Tom de Vries <tdevries@suse.de>
2996
2997 PR symtab/26046
2998 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2999 children for C++.
3000 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3001 DW_TAG_subprogram.
3002
3003 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3004
3005 * ada-lang.c (ada_language_data): Delete skip_trampoline
3006 initializer.
3007 * c-lang.c (c_language_data): Likewise.
3008 (cplus_language_data): Likewise.
3009 (cplus_language::skip_trampoline): New member function.
3010 (asm_language_data): Delete skip_trampoline initializer.
3011 (minimal_language_data): Likewise.
3012 * d-lang.c (d_language_data): Likewise.
3013 * f-lang.c (f_language_data): Likewise.
3014 * go-lang.c (go_language_data): Likewise.
3015 * language.c (unk_lang_trampoline): Delete function.
3016 (skip_language_trampoline): Update.
3017 (unknown_language_data): Delete skip_trampoline initializer.
3018 (auto_language_data): Likewise.
3019 * language.h (language_data): Delete skip_trampoline field.
3020 (language_defn::skip_trampoline): New function.
3021 * m2-lang.c (m2_language_data): Delete skip_trampoline
3022 initializer.
3023 * objc-lang.c (objc_skip_trampoline): Delete function, move
3024 implementation to objc_language::skip_trampoline.
3025 (objc_language_data): Delete skip_trampoline initializer.
3026 (objc_language::skip_trampoline): New member function with
3027 implementation from objc_skip_trampoline.
3028 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3029 initializer.
3030 * p-lang.c (pascal_language_data): Likewise.
3031 * rust-lang.c (rust_language_data): Likewise.
3032
3033 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3034
3035 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3036 (ada_language::demangle): New member function.
3037 * c-lang.c (c_language_data): Delete la_demangle initializer.
3038 (cplus_language_data): Delete la_demangle initializer.
3039 (cplus_language::demangle): New member function.
3040 (asm_language_data): Delete la_demangle initializer.
3041 (minimal_language_data): Delete la_demangle initializer.
3042 * d-lang.c (d_language_data): Delete la_demangle initializer.
3043 (d_language::demangle): New member function.
3044 * f-lang.c (f_language_data): Delete la_demangle initializer.
3045 (f_language::demangle): New member function.
3046 * go-lang.c (go_language_data): Delete la_demangle initializer.
3047 (go_language::demangle): New member function.
3048 * language.c (language_demangle): Update.
3049 (unk_lang_demangle): Delete.
3050 (unknown_language_data): Delete la_demangle initializer.
3051 (unknown_language::demangle): New member function.
3052 (auto_language_data): Delete la_demangle initializer.
3053 (auto_language::demangle): New member function.
3054 * language.h (language_data): Delete la_demangle field.
3055 (language_defn::demangle): New function.
3056 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3057 * objc-lang.c (objc_language_data): Delete la_demangle
3058 initializer.
3059 (objc_language::demangle): New member function.
3060 * opencl-lang.c (opencl_language_data): Delete la_demangle
3061 initializer.
3062 * p-lang.c (pascal_language_data): Likewise.
3063 * rust-lang.c (rust_language_data): Likewise.
3064 (rust_language::demangle): New member function.
3065
3066 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3067
3068 * ada-lang.c (ada_language_data): Delete la_print_type
3069 initializer.
3070 (ada_language::print_type): New member function.
3071 * c-lang.c (c_language_data): Delete la_print_type initializer.
3072 (c_language::print_type): New member function.
3073 (cplus_language_data): Delete la_print_type initializer.
3074 (cplus_language::print_type): New member function.
3075 (asm_language_data): Delete la_print_type initializer.
3076 (asm_language::print_type): New member function.
3077 (minimal_language_data): Delete la_print_type initializer.
3078 (minimal_language::print_type): New member function.
3079 * d-lang.c (d_language_data): Delete la_print_type initializer.
3080 (d_language::print_type): New member function.
3081 * f-lang.c (f_language_data): Delete la_print_type initializer.
3082 (f_language::print_type): New member function.
3083 * go-lang.c (go_language_data): Delete la_print_type initializer.
3084 (go_language::print_type): New member function.
3085 * language.c (unk_lang_print_type): Delete.
3086 (unknown_language_data): Delete la_print_type initializer.
3087 (unknown_language::print_type): New member function.
3088 (auto_language_data): Delete la_print_type initializer.
3089 (auto_language::print_type): New member function.
3090 * language.h (language_data): Delete la_print_type field.
3091 (language_defn::print_type): New function.
3092 (LA_PRINT_TYPE): Update.
3093 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3094 (m2_language::print_type): New member function.
3095 * objc-lang.c (objc_language_data): Delete la_print_type
3096 initializer.
3097 (objc_language::print_type): New member function.
3098 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3099 to opencl_language::print_type.
3100 (opencl_language_data): Delete la_print_type initializer.
3101 (opencl_language::print_type): New member function, implementation
3102 from opencl_print_type.
3103 * p-lang.c (pascal_language_data): Delete la_print_type
3104 initializer.
3105 (pascal_language::print_type): New member function.
3106 * rust-lang.c (rust_print_type): Delete, implementation moved to
3107 rust_language::print_type.
3108 (rust_language_data): Delete la_print_type initializer.
3109 (rust_language::print_type): New member function, implementation
3110 from rust_print_type.
3111
3112 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3113
3114 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3115 implementation moves to...
3116 (ada_language::sniff_from_mangled_name): ...here. Update return
3117 type.
3118 (ada_language_data): Delete la_sniff_from_mangled_name
3119 initializer.
3120 * c-lang.c (c_language_data): Likewise.
3121 (cplus_language_data): Likewise.
3122 (cplus_language::sniff_from_mangled_name): New member function,
3123 implementation taken from gdb_sniff_from_mangled_name.
3124 (asm_language_data): Delete la_sniff_from_mangled_name
3125 initializer.
3126 (minimal_language_data): Likewise.
3127 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3128 implementation moves to cplus_language::sniff_from_mangled_name.
3129 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3130 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3131 moves to...
3132 (d_language::sniff_from_mangled_name): ...here.
3133 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3134 * f-lang.c (f_language_data): Likewise.
3135 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3136 moves to...
3137 (go_language::sniff_from_mangled_name): ...here.
3138 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3139 * language.c (language_sniff_from_mangled_name): Delete.
3140 (unknown_language_data): Delete la_sniff_from_mangled_name
3141 initializer.
3142 (auto_language_data): Likewise.
3143 * language.h (language_data): Delete la_sniff_from_mangled_name
3144 field.
3145 (language_defn::sniff_from_mangled_name): New function.
3146 (language_sniff_from_mangled_name): Delete declaration.
3147 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3148 field.
3149 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3150 implementation moves to...
3151 (objc_language::sniff_from_mangled_name): ...here.
3152 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3153 * opencl-lang.c (opencl_language_data): Likewise.
3154 * p-lang.c (pascal_language_data): Likewise.
3155 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3156 implementation moves to...
3157 (rust_language::sniff_from_mangled_name): ...here.
3158 (rust_language_data): Delete la_sniff_from_mangled_name
3159 initializer.
3160 * symtab.c (symbol_find_demangled_name): Call
3161 sniff_from_mangled_name member function.
3162
3163 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3164
3165 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3166 initializer.
3167 * c-lang.c (c_language_data): Likewise.
3168 (cplus_language_data): Likewise.
3169 (cplus_language::search_name_hash): New member function.
3170 (asm_language_data): Delete la_search_name_hash initializer.
3171 (minimal_language_data): Likewise.
3172 * d-lang.c (d_language_data): Likewise.
3173 * dictionary.c (default_search_name_hash): Rename to...
3174 (language_defn::search_name_hash): ...this.
3175 * f-lang.c (f_language_data): Likewise.
3176 (f_language::search_name_hash): New member function.
3177 * go-lang.c (go_language_data): Delete la_search_name_hash
3178 initializer.
3179 * language.c (unknown_language_data): Likewise.
3180 (auto_language_data): Likewise.
3181 * language.h (struct language_data): Delete la_search_name_hash
3182 field.
3183 (language_defn::search_name_hash): Declare new member function.
3184 (default_search_name_hash): Delete declaration.
3185 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3186 initializer.
3187 * objc-lang.c (objc_language_data): Likewise.
3188 * opencl-lang.c (opencl_language_data): Likewise.
3189 * p-lang.c (pascal_language_data): Likewise.
3190 * rust-lang.c (rust_language_data): Likewise.
3191 * symtab.c (search_name_hash): Update call.
3192
3193 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3194
3195 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3196 initializer.
3197 * c-lang.c (class compile_instance): Declare.
3198 (c_language_data): Delete la_get_compile_instance initializer.
3199 (c_language::get_compile_instance): New member function.
3200 (cplus_language_data): Delete la_get_compile_instance initializer.
3201 (cplus_language::get_compile_instance): New member function.
3202 (asm_language_data): Delete la_get_compile_instance initializer.
3203 (minimal_language_data): Likewise.
3204 * c-lang.h (c_get_compile_context): Update comment.
3205 (cplus_get_compile_context): Update comment.
3206 * compile/compile.c (compile_to_object): Update calls, don't rely
3207 on function pointer being NULL.
3208 * d-lang.c (d_language_data): Delete la_get_compile_instance
3209 initializer.
3210 * f-lang.c (f_language_data): Likewise.
3211 * go-lang.c (go_language_data): Likewise.
3212 * language.c (unknown_language_data): Likewise.
3213 (auto_language_data): Likewise.
3214 * language.h (language_data): Delete la_get_compile_instance field.
3215 (language_defn::get_compile_instance): New member function.
3216 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3217 initializer.
3218 * objc-lang.c (objc_language_data): Likewise.
3219 * opencl-lang.c (opencl_language_data): Likewise.
3220 * p-lang.c (pascal_language_data): Likewise.
3221 * rust-lang.c (rust_language_data): Likewise.
3222
3223 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3224
3225 * ada-lang.c (ada_add_all_symbols): Update comment.
3226 (ada_iterate_over_symbols): Delete, move implementation to...
3227 (ada_language::iterate_over_symbols): ...here, a new member
3228 function, rewrite to use range based for loop.
3229 (ada_language_data): Delete la_iterate_over_symbols initializer.
3230 * c-lang.c (c_language_data): Likewise.
3231 (cplus_language_data): Likewise.
3232 (asm_language_data): Likewise.
3233 (minimal_language_data): Likewise.
3234 * d-lang.c (d_language_data): Likewise.
3235 * f-lang.c (f_language_data): Likewise.
3236 * go-lang.c (go_language_data): Likewise.
3237 * language.c (unknown_language_data): Likewise.
3238 (auto_language_data): Likewise.
3239 * language.h (language_data): Delete la_iterate_over_symbols field.
3240 (language_defn::iterate_over_symbols): New member function.
3241 (LA_ITERATE_OVER_SYMBOLS): Update.
3242 * linespec.c (iterate_over_all_matching_symtabs): Update.
3243 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3244 initializer.
3245 * objc-lang.c (objc_language_data): Likewise.
3246 * opencl-lang.c (opencl_language_data): Likewise.
3247 * p-lang.c (pascal_language_data): Likewise.
3248 * rust-lang.c (rust_language_data): Likewise.
3249
3250 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3251
3252 * ada-lang.c (ada_language_data): Delete
3253 la_lookup_transparent_type initializer.
3254 * c-lang.c (c_language_data): Likewise.
3255 (cplus_language_data): Likewise.
3256 (cplus_language::lookup_transparent_type): New member function.
3257 (asm_language_data): Delete la_lookup_transparent_type
3258 initializer.
3259 (minimal_language_data): Likewise.
3260 * d-lang.c (d_language_data): Likewise.
3261 * f-lang.c (f_language_data): Likewise.
3262 * go-lang.c (go_language_data): Likewise.
3263 * language.c (unknown_language_data): Likewise.
3264 (auto_language_data): Likewise.
3265 * language.h (struct language_data): Delete
3266 la_lookup_transparent_type field.
3267 (language_defn::lookup_transparent_type): New member function.
3268 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3269 initializer.
3270 * objc-lang.c (objc_language_data): Likewise.
3271 * opencl-lang.c (opencl_language_data): Likewise.
3272 * p-lang.c (pascal_language_data): Likewise.
3273 * rust-lang.c (rust_language_data): Likewise.
3274 * symtab.c (symbol_matches_domain): Update call.
3275
3276 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3277
3278 * ada-lang.c (ada_language_arch_info): Delete function, move
3279 implementation to...
3280 (ada_language::language_arch_info): ...here, a new member
3281 function.
3282 (ada_language_data): Delete la_language_arch_info.
3283 * c-lang.c (c_language_data): Likewise.
3284 (c_language::language_arch_info): New member function.
3285 (cplus_language_arch_info): Delete function, move
3286 implementation to...
3287 (cplus_language::language_arch_info): ...here, a new member
3288 function.
3289 (cplus_language_data): Delete la_language_arch_info.
3290 (asm_language_data): Likewise.
3291 (asm_language::language_arch_info): New member function.
3292 (minimal_language_data): Delete la_language_arch_info.
3293 (minimal_language::language_arch_info): New member function.
3294 * d-lang.c (d_language_arch_info): Delete function, move
3295 implementation to...
3296 (d_language::language_arch_info): ...here, a new member
3297 function.
3298 (d_language_data): Delete la_language_arch_info.
3299 * f-lang.c (f_language_arch_info): Delete function, move
3300 implementation to...
3301 (f_language::language_arch_info): ...here, a new member
3302 function.
3303 (f_language_data): Delete la_language_arch_info.
3304 * go-lang.c (go_language_arch_info): Delete function, move
3305 implementation to...
3306 (go_language::language_arch_info): ...here, a new member
3307 function.
3308 (go_language_data): Delete la_language_arch_info.
3309 * language.c (unknown_language_data): Likewise.
3310 (unknown_language::language_arch_info): New member function.
3311 (auto_language_data): Delete la_language_arch_info.
3312 (auto_language::language_arch_info): New member function.
3313 (language_gdbarch_post_init): Update call to
3314 la_language_arch_info.
3315 * language.h (language_data): Delete la_language_arch_info
3316 function pointer.
3317 (language_defn::language_arch_info): New function.
3318 * m2-lang.c (m2_language_arch_info): Delete function, move
3319 implementation to...
3320 (m2_language::language_arch_info): ...here, a new member
3321 function.
3322 (m2_language_data): Delete la_language_arch_info.
3323 * objc-lang.c (objc_language_arch_info): Delete function, move
3324 implementation to...
3325 (objc_language::language_arch_info): ...here, a new member
3326 function.
3327 (objc_language_data): Delete la_language_arch_info.
3328 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3329 implementation to...
3330 (opencl_language::language_arch_info): ...here, a new member
3331 function.
3332 (opencl_language_data): Delete la_language_arch_info.
3333 * p-lang.c (pascal_language_arch_info): Delete function, move
3334 implementation to...
3335 (pascal_language::language_arch_info): ...here, a new member
3336 function.
3337 (pascal_language_data): Delete la_language_arch_info.
3338 * rust-lang.c (rust_language_arch_info): Delete function, move
3339 implementation to...
3340 (rust_language::language_arch_info): ...here, a new member
3341 function.
3342 (rust_language_data): Delete la_language_arch_info.
3343
3344 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3345
3346 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3347 initializer.
3348 * c-lang.c (c_language_data): Likewise.
3349 (cplus_language_data): Likewise.
3350 (cplus_language::pass_by_reference_info): New method.
3351 (asm_language_data): Delete la_pass_by_reference initializer.
3352 (minimal_language_data): Likewise.
3353 * cp-abi.c (cp_pass_by_reference): Remove use of
3354 default_pass_by_reference.
3355 * d-lang.c (d_language_data): Likewise.
3356 * f-lang.c (f_language_data): Likewise.
3357 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3358 default_pass_by_reference.
3359 * go-lang.c (go_language_data): Likewise.
3360 * language.c (language_pass_by_reference): Update.
3361 (default_pass_by_reference): Delete.
3362 (unknown_language_data): Delete la_pass_by_reference
3363 initializer.
3364 (auto_language_data): Likewise.
3365 * language.h (struct language_data): Delete la_pass_by_reference
3366 field.
3367 (language_defn::pass_by_reference_info): New member function.
3368 (default_pass_by_reference): Delete declaration.
3369 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3370 initializer.
3371 * objc-lang.c (objc_language_data): Likewise.
3372 * opencl-lang.c (opencl_language_data): Likewise.
3373 * p-lang.c (pascal_language_data): Likewise.
3374 * rust-lang.c (rust_language_data): Likewise.
3375
3376 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3377
3378 * ada-lang.c (ada_read_var_value): Delete function, move
3379 implementation to...
3380 (ada_language::read_var_value): ...here.
3381 (ada_language_data): Delete la_read_var_value initializer.
3382 * c-lang.c (c_language_data): Likewise.
3383 (cplus_language_data): Likewise.
3384 (minimal_language_data): Likewise.
3385 * d-lang.c (d_language_data): Likewise.
3386 * f-lang.c (f_language_data): Likewise.
3387 * findvar.c (default_read_var_value): Rename to...
3388 (language_defn::read_var_value): ...this.
3389 * findvar.c (read_var_value): Update header comment, and change to
3390 call member function instead of function pointer.
3391 * go-lang.c (go_language_data): Likewise.
3392 * language.c (unknown_language_data): Delete la_read_var_value
3393 initializer.
3394 (auto_language_data): Likewise.
3395 * language.h (struct language_data): Delete la_read_var_value
3396 field.
3397 (language_defn::read_var_value): New member function.
3398 (default_read_var_value): Delete declaration.
3399 * m2-lang.c (m2_language_data): Delete la_read_var_value
3400 initializer.
3401 * objc-lang.c (objc_language_data): Likewise.
3402 * opencl-lang.c (opencl_language_data): Likewise.
3403 * p-lang.c (pascal_language_data): Likewise.
3404 * rust-lang.c (rust_language_data): Likewise.
3405 * value.h (default_read_var_value): Delete declaration.
3406
3407 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3408
3409 * ada-lang.c (ada_print_array_index): Delete function, move
3410 implementation to...
3411 (ada_language::print_array_index): ...here.
3412 (ada_language_data): Delete la_print_array_index initializer.
3413 * c-lang.c (c_language_data): Likewise.
3414 (cplus_language_data): Likewise.
3415 (minimal_language_data): Likewise.
3416 * d-lang.c (d_language_data): Likewise.
3417 * f-lang.c (f_language_data): Likewise.
3418 * go-lang.c (go_language_data): Likewise.
3419 * language.c (default_print_array_index): Delete function, move
3420 implementation to...
3421 (language_defn::print_array_index): ...here.
3422 (unknown_language_data): Delete la_print_array_index initializer.
3423 (auto_language_data): Likewise.
3424 * language.h (struct language_data): Delete la_print_array_index
3425 field.
3426 (language_defn::print_array_index): New member function.
3427 (LA_PRINT_ARRAY_INDEX): Update.
3428 (default_print_array_index): Delete declaration.
3429 * m2-lang.c (m2_language_data): Delete la_print_array_index
3430 initializer.
3431 * objc-lang.c (objc_language_data): Likewise.
3432 * opencl-lang.c (opencl_language_data): Likewise.
3433 * p-lang.c (pascal_language_data): Likewise.
3434 * rust-lang.c (rust_language_data): Likewise.
3435
3436 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3437
3438 * gdb/ada-lang.c (ada_language_defn): Convert to...
3439 (ada_language_data): ...this.
3440 (class ada_language): New class.
3441 (ada_language_defn): New static global.
3442 * gdb/c-lang.c (c_language_defn): Convert to...
3443 (c_language_data): ...this.
3444 (class c_language): New class.
3445 (c_language_defn): New static global.
3446 (cplus_language_defn): Convert to...
3447 (cplus_language_data): ...this.
3448 (class cplus_language): New class.
3449 (cplus_language_defn): New static global.
3450 (asm_language_defn): Convert to...
3451 (asm_language_data): ...this.
3452 (class asm_language): New class.
3453 (asm_language_defn): New static global.
3454 (minimal_language_defn): Convert to...
3455 (minimal_language_data): ...this.
3456 (class minimal_language): New class.
3457 (minimal_language_defn): New static global.
3458 * gdb/d-lang.c (d_language_defn): Convert to...
3459 (d_language_data): ...this.
3460 (class d_language): New class.
3461 (d_language_defn): New static global.
3462 * gdb/f-lang.c (f_language_defn): Convert to...
3463 (f_language_data): ...this.
3464 (class f_language): New class.
3465 (f_language_defn): New static global.
3466 * gdb/go-lang.c (go_language_defn): Convert to...
3467 (go_language_data): ...this.
3468 (class go_language): New class.
3469 (go_language_defn): New static global.
3470 * gdb/language.c (unknown_language_defn): Remove declaration.
3471 (current_language): Initialize to nullptr, real initialization is
3472 moved to _initialize_language.
3473 (languages): Delete global.
3474 (language_defn::languages): Define.
3475 (set_language_command): Use language_defn::languages.
3476 (set_language): Likewise.
3477 (range_error): Likewise.
3478 (language_enum): Likewise.
3479 (language_def): Likewise.
3480 (add_set_language_command): Use language_def::languages for the
3481 language list, and language_def to lookup language pointers.
3482 (skip_language_trampoline): Use language_defn::languages.
3483 (unknown_language_defn): Convert to...
3484 (unknown_language_data): ...this.
3485 (class unknown_language): New class.
3486 (unknown_language_defn): New static global.
3487 (auto_language_defn): Convert to...
3488 (auto_language_data): ...this.
3489 (class auto_language): New class.
3490 (auto_language_defn): New static global.
3491 (language_gdbarch_post_init): Use language_defn::languages.
3492 (_initialize_language): Initialize current_language.
3493 * gdb/language.h (struct language_defn): Rename to...
3494 (struct language_data): ...this.
3495 (struct language_defn): New.
3496 (auto_language_defn): Delete.
3497 (unknown_language_defn): Delete.
3498 (minimal_language_defn): Delete.
3499 (ada_language_defn): Delete.
3500 (asm_language_defn): Delete.
3501 (c_language_defn): Delete.
3502 (cplus_language_defn): Delete.
3503 (d_language_defn): Delete.
3504 (f_language_defn): Delete.
3505 (go_language_defn): Delete.
3506 (m2_language_defn): Delete.
3507 (objc_language_defn): Delete.
3508 (opencl_language_defn): Delete.
3509 (pascal_language_defn): Delete.
3510 (rust_language_defn): Delete.
3511 * gdb/m2-lang.c (m2_language_defn): Convert to...
3512 (m2_language_data): ...this.
3513 (class m2_language): New class.
3514 (m2_language_defn): New static global.
3515 * gdb/objc-lang.c (objc_language_defn): Convert to...
3516 (objc_language_data): ...this.
3517 (class objc_language): New class.
3518 (objc_language_defn): New static global.
3519 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3520 (opencl_language_data): ...this.
3521 (class opencl_language): New class.
3522 (opencl_language_defn): New static global.
3523 * gdb/p-lang.c (pascal_language_defn): Convert to...
3524 (pascal_language_data): ...this.
3525 (class pascal_language): New class.
3526 (pascal_language_defn): New static global.
3527 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3528 language pointer, update comment format.
3529 * gdb/rust-lang.c (rust_language_defn): Convert to...
3530 (rust_language_data): ...this.
3531 (class rust_language): New class.
3532 (rust_language_defn): New static global.
3533
3534 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3535
3536 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3537 member variable.
3538 <m_stmt_at_address>: New member variable.
3539 (lnp_state_machine::record_line): Don't record some lines, update
3540 tracking of is_stmt at the same address.
3541 (lnp_state_machine::lnp_state_machine): Initialise new member
3542 variables.
3543
3544 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3545
3546 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3547 "-include gnu-nat-mig.h".
3548 * gnu-nat-mig.h: New file.
3549 * gnu-nat.c: Include "gnu-nat-mig.h".
3550 (exc_server, msg_reply_server, notify_server,
3551 process_reply_server): Remove declarations.
3552
3553 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3554
3555 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3556 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3557 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3558 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3559 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3560 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3561 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3562 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3563 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3564 to gnu_nat_target class.
3565 * gnu-nat.c: Likewise.
3566 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3567 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3568 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3569 object.
3570 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3571 instead of `gnu_target'.
3572
3573 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3574
3575 * i386-gnu-tdep.c: Include "gdbcore.h"
3576 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3577 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3578 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3579 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3580 i386_gnu_sigcontext_addr): New functions
3581 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3582 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3583 tdep.
3584
3585 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3586
3587 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3588 before fork_inferior call. Avoid calling it if target_is_pushed returns
3589 true.
3590
3591 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3592
3593 * gnu-nat.h (gnu_target): New variable declaration.
3594 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3595 gnu_target.
3596 * gnu-nat.c (gnu_target): New variable.
3597 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3598 add_thread_silent, and add_thread calls.
3599 (gnu_nat_target::create_inferior): Pass gnu_target to
3600 add_thread_silent, thread_change_ptid call.
3601 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3602 call.
3603
3604 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3605
3606 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3607 (gnu_nat_target::find_memory_regions): Remove unused
3608 `old_address' variable.
3609
3610 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3611
3612 * gnu-nat.c: Include "gdbarch.h".
3613
3614 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3615
3616 * reply_mig_hack.awk (Error return): Cast function through
3617 void *, to bypass compiler function call check.
3618
3619 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3620
3621 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3622 $(srcdir)/reply_mig_hack.awk.
3623
3624 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3625
3626 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3627
3628 2020-05-30 Jonny Grant <jg@jguk.org>
3629
3630 * configure.ac (ACX_BUGURL): change bug URL to https.
3631
3632 2020-05-30 Pedro Alves <palves@redhat.com>
3633
3634 * cp-support.c (replace_typedefs_template): New.
3635 (replace_typedefs_qualified_name): Handle
3636 DEMANGLE_COMPONENT_TEMPLATE.
3637
3638 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3639
3640 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3641 dwarf2/index-cache.h, dwarf2/index-write.c,
3642 dwarf2/index-write.h, dwarf2/line-header.c,
3643 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3644 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3645 variables and fields from `dwarf2_per_objfile` to just
3646 `per_objfile` throughout.
3647
3648 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3649
3650 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3651 <push_dwarf_reg_entry_value>: Add comment.
3652
3653 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3654 Keith Seitz <keiths@redhat.com>
3655
3656 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3657 instead of PyEval_ReleaseLock.
3658 (class gdbpy_gil): Move to earlier in file.
3659 (finalize_python): Set gdb_python_initialized.
3660 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3661 when not initialized.
3662
3663 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3664
3665 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3666 <push_dwarf_reg_entry_value>: Remove assert. Override
3667 per_objfile with caller_per_objfile.
3668
3669 2020-05-28 Tom de Vries <tdevries@suse.de>
3670
3671 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3672 PR gold/15646 workaround to symbol kind "type".
3673
3674 2020-05-27 Tom Tromey <tromey@adacore.com>
3675
3676 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3677
3678 2020-05-27 Tom Tromey <tromey@adacore.com>
3679
3680 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3681 Use htab_find_with_hash.
3682 <add_abbrev>: Remove "abbrev_number" parameter.
3683 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3684 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3685 (hash_abbrev): Add comment.
3686 (abbrev_table::lookup_abbrev): Move to header file.
3687 (abbrev_table::read): Update.
3688
3689 2020-05-27 Tom Tromey <tromey@adacore.com>
3690
3691 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3692 method.
3693 <canonical_name>: New member.
3694 <raw_name>: Rename from "name".
3695 (partial_die_info): Initialize canonical_name.
3696 (scan_partial_symbols): Check raw_name.
3697 (partial_die_parent_scope, partial_die_full_name)
3698 (add_partial_symbol, add_partial_subprogram)
3699 (add_partial_enumeration, load_partial_dies): Use "name" method.
3700 (partial_die_info::name): New method.
3701 (partial_die_info::read, guess_partial_die_structure_name)
3702 (partial_die_info::fixup): Update.
3703
3704 2020-05-27 Tom Tromey <tromey@adacore.com>
3705
3706 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3707 <get_ref_die_offset>: Inline.
3708 <get_ref_die_offset_complaint>: New method.
3709 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3710 (attribute::get_ref_die_offset_complaint): Rename from
3711 get_ref_die_offset. Just issue complaint.
3712
3713 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3714
3715 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3716
3717 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3718
3719 * exec.c (exec_file_attach): Use errno value of first openp failure.
3720
3721 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3722
3723 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3724 Don't close thread handle.
3725
3726 2020-05-27 Tom Tromey <tom@tromey.com>
3727 Simon Marchi <simon.marchi@efficios.com>
3728
3729 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3730 shared_ptr.
3731 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3732 member.
3733 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3734 dwarf2_per_bfd_objfile_data_key>: New globals.
3735 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3736 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3737 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3738 shared.
3739 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3740 short-circuit when sharing.
3741 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3742 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3743
3744 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3745
3746 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3747 to...
3748 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3749 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3750
3751 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3752
3753 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3754 build_name_components, find_name_components_bounds>:
3755 Add per_objfile parameter.
3756 (struct mapped_index) <symbol_name_at>: Likewise.
3757 (struct mapped_debug_names): Remove constructor.
3758 <dwarf2_per_objfile>: Remove field.
3759 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3760 (mapped_index_base::find_name_components_bounds,
3761 mapped_index_base::build_name_components,
3762 dw2_expand_symtabs_matching_symbol): Likewise.
3763 (class mock_mapped_index) <symbol_name_at>: Likewise.
3764 (check_match): Likewise.
3765 (check_find_bounds_finds): Likewise.
3766 (test_mapped_index_find_name_component_bounds): Update.
3767 (CHECK_MATCH): Update.
3768 (dw2_expand_symtabs_matching): Update.
3769 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3770 per_objfile parameter.
3771 <find_vec_in_debug_names>: Likewise.
3772 <m_per_objfile>: New field.
3773 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3774 parameter.
3775 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3776 (dw2_debug_names_iterator::next): Update.
3777 (dw2_debug_names_lookup_symbol): Update.
3778 (dw2_debug_names_expand_symtabs_for_function): Update.
3779 (dw2_debug_names_map_matching_symbols): Update.
3780 (dw2_debug_names_expand_symtabs_matching): Update.
3781 (dwarf2_read_debug_names): Update.
3782
3783 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3784
3785 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3786 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3787 move to dwarf2_per_objfile.
3788 <read_in_chain>: Remove.
3789 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3790 remove_all_cus, age_comp_units>: New methods.
3791 <m_dwarf2_cus>: New member.
3792 (struct dwarf2_per_cu_data) <cu>: Remove.
3793 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3794 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3795 moved to methods of dwarf2_per_objfile.
3796 (dwarf2_clear_marks): Remove.
3797 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3798 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3799 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3800 (dwarf2_per_objfile::remove_all_cus): New.
3801 (class free_cached_comp_units) <~free_cached_comp_units>:
3802 Update.
3803 (load_cu): Update.
3804 (dw2_do_instantiate_symtab): Adjust.
3805 (fill_in_sig_entry_from_dwo_entry): Adjust.
3806 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3807 (cutu_reader::cutu_reader): Likewise.
3808 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3809 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3810 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3811 and dwarf2_per_objfile::age_comp_units.
3812 (load_partial_comp_unit): Update.
3813 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3814 (process_queue): Likewise.
3815 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3816 backlink.
3817 (dwarf2_read_addr_index): Likewise.
3818 (follow_die_offset): Likewise.
3819 (dwarf2_fetch_die_loc_sect_off): Likewise.
3820 (dwarf2_fetch_constant_bytes): Likewise.
3821 (dwarf2_fetch_die_type_sect_off): Likewise.
3822 (follow_die_sig_1): Likewise.
3823 (load_full_type_unit): Likewise.
3824 (read_signatured_type): Likewise.
3825 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3826 (dwarf2_cu::~dwarf2_cu): Remove.
3827 (dwarf2_per_objfile::get_cu): New.
3828 (dwarf2_per_objfile::set_cu): New.
3829 (age_cached_comp_units): Rename to...
3830 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3831 to std::unordered_map.
3832 (free_one_cached_comp_unit): Rename to...
3833 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3834 to std::unordered_map.
3835 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3836 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3837 a dwarf2_per_objfile in data.
3838 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3839 (dwarf2_clear_marks): Remove.
3840
3841 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3842
3843 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3844 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3845 (init_tu_and_read_dwo_dies): Likewise.
3846 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3847 (cutu_reader::cutu_reader): Likewise.
3848 (load_partial_comp_unit): Likewise.
3849 (process_psymtab_comp_unit): Update.
3850 (build_type_psymtabs_1): Update.
3851 (process_skeletonless_type_unit): Update.
3852 (load_full_comp_unit): Update.
3853 (find_partial_die): Update.
3854 (dwarf2_read_addr_index): Update.
3855 (read_signatured_type): Update.
3856
3857 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3858
3859 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3860 m_header_read_in>: New fields.
3861 <get_header>: New method.
3862 * dwarf2/read.c (per_cu_header_read_in): Remove.
3863 (dwarf2_per_cu_data::get_header): New.
3864 (dwarf2_per_cu_data::addr_size): Update.
3865 (dwarf2_per_cu_data::offset_size): Update.
3866 (dwarf2_per_cu_data::ref_addr_size): Update.
3867
3868 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3869
3870 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3871 (dw2_do_instantiate_symtab): Update.
3872 (queue_and_load_all_dwo_tus): Change parameter from
3873 dwarf2_per_cu_data to dwarf2_cu.
3874 (dwarf2_fetch_die_loc_sect_off): Update.
3875 (dwarf2_fetch_constant_bytes): Update.
3876 (dwarf2_fetch_die_type_sect_off): Update.
3877
3878 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3879
3880 * dwarf2/read.c (process_full_comp_unit,
3881 process_full_type_unit): Remove per_cu, per_objfile paramters.
3882 Add dwarf2_cu parameter.
3883 (process_queue): Update.
3884
3885 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3886
3887 * dwarf2/read.c (create_cu_from_index_list): Replace
3888 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3889 (create_cus_from_index_list): Likewise.
3890 (create_cus_from_index): Likewise.
3891 (create_signatured_type_table_from_index): Likewise.
3892 (create_cus_from_debug_names_list): Likewise.
3893 (create_cus_from_debug_names): Likewise.
3894 (dwarf2_read_gdb_index): Update.
3895 (dwarf2_read_debug_names): Update.
3896
3897 2020-05-27 Tom Tromey <tom@tromey.com>
3898 Simon Marchi <simon.marchi@efficios.com>
3899
3900 * dwarf2/read.h (struct dwarf2_per_objfile)
3901 <get_type_for_signatured_type, set_type_for_signatured_type>:
3902 New methods.
3903 <m_type_map>: New member.
3904 (struct signatured_type) <type>: Remove.
3905 * dwarf2/read.c
3906 (dwarf2_per_objfile::get_type_for_signatured_type,
3907 dwarf2_per_objfile::set_type_for_signatured_type): New.
3908 (get_signatured_type): Use new methods.
3909
3910 2020-05-27 Tom Tromey <tom@tromey.com>
3911 Simon Marchi <simon.marchi@efficios.com>
3912
3913 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3914 (struct dwarf2_per_objfile) <type_units>: New member.
3915 <get_type_unit_group_unshareable>: New method.
3916 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3917 num_symtabs, symtabs>: Remove; move to
3918 type_unit_group_unshareable.
3919 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3920 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3921 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3922
3923 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3924
3925 * dwarf2/read.h (struct dwarf2_per_cu_data):
3926 <dwarf2_per_objfile>: Remove.
3927 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3928 dwarf2_per_objfile.
3929 (create_signatured_type_table_from_index): Likewise.
3930 (create_signatured_type_table_from_debug_names): Likewise.
3931 (create_debug_type_hash_table): Likewise.
3932 (fill_in_sig_entry_from_dwo_entry): Likewise.
3933 (create_type_unit_group): Likewise.
3934 (read_comp_units_from_section): Likewise.
3935 (create_cus_hash_table): Likewise.
3936
3937 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3938
3939 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3940 dwarf2_per_cu_data::dwarf2_per_objfile.
3941 (compute_compunit_symtab_includes): Likewise.
3942 (dwarf2_cu::start_symtab): Likewise.
3943
3944 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3945
3946 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3947 parameter.
3948 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3949 (read_namespace_alias): Update.
3950 (lookup_die_type): Update.
3951 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3952 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3953 Update.
3954 (disassemble_dwarf_expression): Update.
3955
3956 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3957
3958 * dwarf2/read.h (struct dwarf2_queue_item): Add
3959 dwarf2_per_objfile parameter, assign new parameter.
3960 <per_objfile>: New field.
3961 * dwarf2/read.c (free_one_cached_comp_unit): Add
3962 dwarf2_per_objfile parameter.
3963 (queue_comp_unit): Likewise.
3964 (dw2_do_instantiate_symtab): Update.
3965 (process_psymtab_comp_unit): Update.
3966 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3967 (process_imported_unit_die): Update.
3968 (queue_and_load_dwo_tu): Update.
3969 (follow_die_offset): Update.
3970 (follow_die_sig_1): Update.
3971
3972 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3973
3974 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3975 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3976 (read_call_site_scope): Assign per_objfile.
3977 (dwarf2_per_cu_data::objfile): Remove.
3978 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3979 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3980 dwarf2_per_objfile parameter.
3981 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3982 dwarf2_per_objfile parameter.
3983 (dwarf_expr_reg_to_entry_parameter): Add output
3984 dwarf2_per_objfile parameter.
3985 (locexpr_get_frame_base): Update.
3986 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3987 <push_dwarf_reg_entry_value>: Update.
3988 <call_site_to_target_addr>: Update.
3989 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3990 parameter.
3991 (value_of_dwarf_reg_entry): Update.
3992 (rw_pieced_value): Update.
3993 (indirect_synthetic_pointer): Update.
3994 (dwarf2_evaluate_property): Update.
3995 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3996 parameter.
3997 (locexpr_read_variable): Update.
3998 (locexpr_get_symbol_read_needs): Update.
3999 (loclist_read_variable): Update.
4000
4001 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4002
4003 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4004 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4005 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4006 parameter.
4007 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4008 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4009 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4010 parameter.
4011 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4012 sect_variable_value): Add dwarf2_per_objfile parameter.
4013 (class dwarf_evaluate_loc_desc) <dwarf_call,
4014 dwarf_variable_value>: Update.
4015 (fetch_const_value_from_synthetic_pointer): Add
4016 dwarf2_per_objfile parameter.
4017 (fetch_const_value_from_synthetic_pointer): Update.
4018 (coerced_pieced_ref): Update.
4019 (class symbol_needs_eval_context) <dwarf_call,
4020 dwarf_variable_value>: Update.
4021 (dwarf2_compile_expr_to_ax): Update.
4022
4023 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4024
4025 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4026 parameter.
4027 (dwarf2_evaluate_loc_desc_full): Update.
4028
4029 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4030
4031 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4032 parameter.
4033 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4034 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4035 dwarf2_per_objfile parameter.
4036 (decode_debug_loc_dwo_addresses): Likewise.
4037 (dwarf2_find_location_expression): Update.
4038 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4039 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4040 parameter.
4041 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4042 parameter.
4043 (locexpr_describe_location_1): Likewise.
4044 (locexpr_describe_location): Update.
4045
4046 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4047
4048 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4049 Remove.
4050 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4051 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4052 (dwarf2_compile_property_to_c): Update.
4053 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4054 use text offset from objfile.
4055 (locexpr_tracepoint_var_ref): Update.
4056 (locexpr_generate_c_location): Update.
4057 (loclist_describe_location): Update.
4058 (loclist_tracepoint_var_ref): Update.
4059 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4060 dwarf2_per_objfile parameter.
4061 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4062 use text offset from objfile.
4063 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4064
4065 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4066
4067 * dwarf2/expr.h (struct dwarf_expr_context)
4068 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4069 <offset>: Remove.
4070 <per_objfile>: New member.
4071 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4072 dwarf2_per_objfile parameter. Don't set offset, set
4073 per_objfile.
4074 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4075 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4076 a dwarf2_per_objfile object instead of an offset.
4077 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4078 constructor.
4079 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4080 to dwarf2_expr_executor constructor. Don't set offset.
4081 (dwarf2_fetch_cfa_info): Update.
4082 (struct dwarf2_frame_cache) <text_offset>: Remove.
4083 <per_objfile>: New field.
4084 (dwarf2_frame_cache): Update.
4085 (dwarf2_frame_prev_register): Update.
4086 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4087 <dwarf_evaluate_loc_desc>: Add constructor.
4088 (dwarf2_evaluate_loc_desc_full): Update.
4089 (dwarf2_locexpr_baton_eval): Update.
4090 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4091 Add constructor.
4092 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4093
4094 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4095
4096 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4097 addr_sized_int_type>: Move to dwarf2_cu.
4098 <int_type>: Move to dwarf2_per_objfile.
4099 (struct dwarf2_per_objfile) <int_type>: Move here.
4100 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4101 addr_sized_int_type>: Move here.
4102 (read_func_scope): Update.
4103 (read_array_type): Update.
4104 (read_tag_string_type): Update.
4105 (attr_to_dynamic_prop): Update.
4106 (dwarf2_per_cu_data::int_type): Rename to...
4107 (dwarf2_per_objfile::int_type): ... this.
4108 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4109 (dwarf2_cu::addr_sized_int_type): ... this.
4110 (read_subrange_type): Update.
4111 (dwarf2_per_cu_data::addr_type): Rename to...
4112 (dwarf2_cu::addr_type): ... this.
4113 (set_die_type): Update.
4114
4115 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4116
4117 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4118 data through per_cu->cu.
4119
4120 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4121
4122 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4123 dwarf2_per_cu_data parameter fo dwarf2_cu.
4124 (lookup_dwo_type_unit): Likewise.
4125 (read_cutu_die_from_dwo): Likewise.
4126 (lookup_dwo_unit): Likewise.
4127 (open_and_init_dwo_file): Likewise.
4128 (lookup_dwo_cutu): Likewise.
4129 (lookup_dwo_comp_unit): Likewise.
4130 (lookup_dwo_type_unit): Likewise.
4131 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4132 (cutu_reader::cutu_reader): Update.
4133
4134 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4135
4136 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4137 parameter.
4138 (process_full_type_unit): Likewise.
4139 (process_queue): Update.
4140
4141 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4142
4143 * dwarf2/read.c (recursively_compute_inclusions): Add
4144 dwarf2_per_objfile parameter.
4145 (compute_compunit_symtab_includes): Likewise.
4146 (process_cu_includes): Update.
4147
4148 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4149
4150 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4151 parameter.
4152 (create_type_unit_group): Update.
4153 (process_psymtab_comp_unit_reader): Update.
4154 (build_type_psymtabs_reader): Update.
4155
4156 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4157
4158 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4159 object through m_this_cu->cu.
4160
4161 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4162
4163 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4164 the info parameter.
4165 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4166
4167 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4168
4169 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4170 per_objfile parameter.
4171 (load_full_type_unit): Add per_objfile parameter.
4172 (read_signatured_type): Likewise.
4173 (load_full_comp_unit): Likewise.
4174 (load_cu): Likewise.
4175 (dw2_do_instantiate_symtab): Likewise.
4176 (dw2_get_file_names): Likewise.
4177 (dw2_map_symtabs_matching_filename): Update.
4178 (dw_expand_symtabs_matching_file_matcher): Update.
4179 (dw2_map_symbol_filenames): Update.
4180 (process_psymtab_comp_unit): Add per_objfile parameter.
4181 (build_type_psymtabs_1): Update.
4182 (process_skeletonless_type_unit): Update.
4183 (dwarf2_build_psymtabs_hard): Update.
4184 (load_partial_comp_unit): Add per_objfile parameter.
4185 (scan_partial_symbols): Update.
4186 (load_full_comp_unit): Add per_objfile parameter.
4187 (process_imported_unit_die): Update.
4188 (create_cus_hash_table): Update.
4189 (find_partial_die): Update.
4190 (dwarf2_read_addr_index): Update.
4191 (follow_die_offset): Update.
4192 (dwarf2_fetch_die_loc_sect_off): Update.
4193 (dwarf2_fetch_constant_bytes): Update.
4194 (dwarf2_fetch_die_type_sect_off): Update.
4195 (follow_die_sig_1): Update.
4196 (load_full_type_unit): Add per_objfile parameter.
4197 (read_signatured_type): Likewise.
4198
4199 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4200
4201 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4202 of objfile_name.
4203
4204 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4205
4206 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4207 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4208 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4209 field.
4210 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4211 (create_cus_from_index): Update.
4212 (dwarf2_read_gdb_index): Update.
4213 (create_cus_from_debug_names): Update.
4214 (dwarf2_read_debug_names): Update.
4215 (get_abbrev_section_for_cu): Update.
4216 (create_all_comp_units): Update.
4217 (read_attribute_value): Update.
4218 (get_debug_line_section): Update.
4219 * dwarf2/index-cache.c (index_cache::store): Update.
4220 * dwarf2/index-write.c (save_gdb_index_command): Update.
4221 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4222
4223 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4224
4225 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4226 member.
4227 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4228 dwarf2_per_cu_data::per_bfd.
4229 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4230 (create_type_unit_group): Likewise.
4231 (queue_comp_unit): Remove reference to
4232 per_cu->dwarf2_per_objfile.
4233 (maybe_queue_comp_unit): Likewise.
4234 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4235 (create_cus_hash_table): Assign new field.
4236
4237 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4238
4239 * dwarf2/read.c: Replace
4240 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4241 dwarf2_cu->per_objfile throughout.
4242
4243 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4244
4245 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4246 parameter, don't use per_cu->dwarf2_per_objfile.
4247 (dw2_instantiate_symtab): Likewise.
4248 (dw2_find_last_source_symtab): Update.
4249 (dw2_map_expand_apply): Update.
4250 (dw2_lookup_symbol): Update.
4251 (dw2_expand_symtabs_for_function): Update.
4252 (dw2_expand_all_symtabs): Update.
4253 (dw2_expand_symtabs_with_fullname): Update.
4254 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4255 don't use per_cu->dwarf2_per_objfile.
4256 (dw2_expand_marked_cus): Update.
4257 (dw2_find_pc_sect_compunit_symtab): Update.
4258 (dw2_debug_names_lookup_symbol): Update.
4259 (dw2_debug_names_expand_symtabs_for_function): Update.
4260 (dw2_debug_names_map_matching_symbols): Update.
4261 (dwarf2_psymtab::expand_psymtab): Update.
4262
4263 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4264
4265 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4266 <per_objfile>: New member.
4267 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4268 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4269 call to dwarf2_cu.
4270 (cutu_reader::cutu_reader): Update.
4271 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4272
4273 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4274
4275 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4276 struct dwarf2_per_objfile.
4277 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4278 dwarf2_per_bfd.
4279 * dwarf2/read.c (set_die_type): Update.
4280 (get_die_type_at_offset): Update.
4281
4282 2020-05-27 Tom Tromey <tom@tromey.com>
4283 Simon Marchi <simon.marchi@efficios.com>
4284
4285 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4286 method.
4287 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4288 get_symtab, set_symtab>: New methods.
4289 <m_symtabs>: New field.
4290 (struct dwarf2_psymtab): Derive from partial_symtab.
4291 <readin_p, get_compunit_symtab>: Declare methods.
4292 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4293 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4294 New methods.
4295 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4296 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4297 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4298 (dw2_symtab_iter_next, dw2_print_stats)
4299 (dw2_expand_symtabs_with_fullname)
4300 (dw2_expand_symtabs_matching_one)
4301 (dw_expand_symtabs_matching_file_matcher)
4302 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4303 (dw2_debug_names_iterator::next)
4304 (dw2_debug_names_map_matching_symbols)
4305 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4306 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4307 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4308 New methods.
4309 (get_compunit_symtab, process_full_comp_unit)
4310 (process_full_type_unit): Update.
4311 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4312
4313 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4314
4315 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4316 then introduce a new dwarf2_per_objfile type.
4317 <read_line_string>: Move to the new dwarf2_per_objfile type.
4318 <objfile>: Likewise.
4319 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4320 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4321 dwarf2_per_objfile->per_bfd.
4322 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4323 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4324 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4325 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4326 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4327 (dwarf2_per_objfile::locate_sections): Rename to...
4328 (dwarf2_per_bfd::locate_sections): ... this.
4329 (dwarf2_per_objfile::get_cutu): Rename to...
4330 (dwarf2_per_bfd::get_cutu): ... this.
4331 (dwarf2_per_objfile::get_cu): Rename to...
4332 (dwarf2_per_bfd::get_cu): ... this.
4333 (dwarf2_per_objfile::get_tu): Rename to...
4334 (dwarf2_per_bfd::get_tu): ... this.
4335 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4336 (dwarf2_per_bfd::allocate_per_cu): ... this.
4337 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4338 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4339 (get_gdb_index_contents_ftype): Change parameter from
4340 dwarf2_per_objfile to dwarf2_per_bfd.
4341 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4342 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4343
4344 2020-05-27 Tom Tromey <tom@tromey.com>
4345 Simon Marchi <simon.marchi@efficios.com>
4346
4347 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4348 (allocate_piece_closure): Set "per_objfile" member.
4349 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4350 (locexpr_describe_location, loclist_describe_location): Use new
4351 member.
4352 * dwarf2/read.c (read_call_site_scope)
4353 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4354 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4355 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4356 handle_data_member_location): Set per_objfile member.
4357 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4358 member.
4359 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4360
4361 2020-05-27 Tom Tromey <tom@tromey.com>
4362
4363 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4364 allocate_signatured_type>: Declare new methods.
4365 <m_num_psymtabs>: New member.
4366 (struct dwarf2_per_cu_data) <index>: New member.
4367 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4368 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4369 (create_cu_from_index_list): Use allocate_per_cu.
4370 (create_signatured_type_table_from_index)
4371 (create_signatured_type_table_from_debug_names)
4372 (create_debug_type_hash_table, add_type_unit)
4373 (read_comp_units_from_section): Use allocate_signatured_type.
4374
4375 2020-05-27 Tom Tromey <tom@tromey.com>
4376
4377 * psymtab.c (partial_map_expand_apply)
4378 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4379 (psym_lookup_global_symbol_language)
4380 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4381 (psym_print_stats, psym_expand_symtabs_for_function)
4382 (psym_map_symbol_filenames, psym_map_matching_symbols)
4383 (psym_expand_symtabs_matching)
4384 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4385 (maintenance_check_psymtabs): Update.
4386 * psympriv.h (struct partial_symtab) <readin_p,
4387 get_compunit_symtab>: Add objfile parameter.
4388 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4389 Likewise.
4390 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4391 get_compunit_symtab>: Likewise.
4392 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4393
4394 2020-05-27 Tom Tromey <tom@tromey.com>
4395
4396 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4397 member.
4398 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4399 (create_cu_from_index_list)
4400 (create_signatured_type_table_from_index)
4401 (create_signatured_type_table_from_debug_names)
4402 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4403 (dwarf2_create_include_psymtab)
4404 (create_debug_type_hash_table, add_type_unit)
4405 (create_type_unit_group, read_comp_units_from_section)
4406 (dwarf2_compute_name, create_cus_hash_table)
4407 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4408 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4409 obstack.
4410 (dw2_get_real_path): Likewise. Change argument to
4411 dwarf2_per_objfile.
4412
4413 2020-05-27 Luis Machado <luis.machado@linaro.org>
4414
4415 PR tdep/26000
4416 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4417 for ldrd (immediate).
4418
4419 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4420
4421 * command.h: Add comment giving the name of class_tui.
4422 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4423 create the fake command for the help for class_tui.
4424
4425 2020-05-26 Tom Tromey <tromey@adacore.com>
4426
4427 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4428 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4429 (val_atr): New function.
4430 (value_val_atr): Use it.
4431 * ada-valprint.c (print_optional_low_bound): Change low bound
4432 handling for enums.
4433 (val_print_packed_array_elements): Don't call discrete_position.
4434 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4435 discrete_position for enum types.
4436 * language.c (default_print_array_index): Change type.
4437 * language.h (struct language_defn) <la_print_array_index>: Add
4438 index_type parameter, change type of index_value.
4439 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4440 (default_print_array_index): Update.
4441 * valprint.c (maybe_print_array_index): Don't call
4442 value_from_longest. Update.
4443 (value_print_array_elements): Don't call discrete_position.
4444
4445 2020-05-26 Tom Tromey <tromey@adacore.com>
4446
4447 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4448 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4449
4450 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4451
4452 PR gdb/13519
4453 * avr-tdep.c (avr_integer_to_address): Return data or code
4454 address accordingly to the second 'type' argument of the
4455 function.
4456
4457 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4458
4459 * infcmd.c, inferior.h: (construct_inferior_arguments):
4460 Moved function from here to gdbsupport/common-inferior.{h,cc}
4461
4462 2020-05-23 Tom Tromey <tom@tromey.com>
4463
4464 Revert commit eca1f90c:
4465 * NEWS: Remove entry for completion styling.
4466 * completer.c (_rl_completion_prefix_display_length): Move
4467 declaration later.
4468 (gdb_fnprint): Revert.
4469 (gdb_display_match_list_1): Likewise.
4470 * cli/cli-style.c (completion_prefix_style)
4471 (completion_difference_style, completion_suffix_style): Remove.
4472 (_initialize_cli_style): Revert.
4473 * cli/cli-style.h (completion_prefix_style)
4474 (completion_difference_style, completion_suffix_style): Don't
4475 declare.
4476
4477 2020-05-24 Pedro Alves <palves@redhat.com>
4478
4479 * symtab.c (completion_list_add_name): Return boolean indication
4480 of whether the symbol matched.
4481 (completion_list_add_symbol): Don't try to remove C++ aliases if
4482 the symbol didn't match in the first place.
4483 * symtab.h (completion_list_add_name): Return bool.
4484
4485 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4486
4487 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4488 type::field.
4489
4490 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4491
4492 GDB 9.2 released.
4493
4494 2020-05-23 Tom Tromey <tom@tromey.com>
4495
4496 * NEWS: Add entry for completion styling.
4497 * completer.c (_rl_completion_prefix_display_length): Move
4498 declaration earlier.
4499 (gdb_fnprint): Use completion_style.
4500 (gdb_display_match_list_1): Likewise.
4501 * cli/cli-style.c (completion_prefix_style)
4502 (completion_difference_style, completion_suffix_style): New
4503 globals.
4504 (_initialize_cli_style): Register new globals.
4505 * cli/cli-style.h (completion_prefix_style)
4506 (completion_difference_style, completion_suffix_style): Declare.
4507
4508 2020-05-23 Pedro Alves <palves@redhat.com>
4509
4510 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4511 (parse_escape): Use ISDIGIT instead of isdigit.
4512 (puts_debug): Use gdb_isprint instead of isprint.
4513 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4514 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4515 ISSPACE instead of isspace.
4516 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4517 instead of isspace.
4518 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4519 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4520 instead of isxdigit and ISDIGIT instead of isdigit.
4521
4522 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4523
4524 * gdbtypes.h (struct type) <field>: New method.
4525 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4526 or type::field.
4527
4528 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4529
4530 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4531 (TYPE_FIELDS): Use type::fields. Change all call sites that
4532 modify the propery to use type::set_fields instead.
4533
4534 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4535
4536 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4537 type::num_fields instead.
4538
4539 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4540
4541 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4542 methods.
4543 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4544 that modify the number of fields to use type::set_num_fields
4545 instead.
4546
4547 2020-05-22 Tom Tromey <tromey@adacore.com>
4548
4549 * compile/compile-object-load.h (munmap_list_free): Don't
4550 declare.
4551
4552 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4553
4554 * annotate.c (annotate_source_line): Update return type, add call
4555 to update current symtab and line.
4556 * annotate.h (annotate_source_line): Update return type, and
4557 extend header comment.
4558 * source.c (info_line_command): Check annotation_level before
4559 calling annotate_source_line.
4560 * stack.c (print_frame_info): If calling annotate_source_line
4561 returns true, then don't print any other source line information.
4562
4563 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4564
4565 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4566
4567 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4568
4569 * coffread.c (patch_type): Remove NULL check before xfree.
4570 * corefile.c (set_gnutarget): Likewise.
4571 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4572 * exec.c (build_section_table): Likewise.
4573 * remote.c (remote_target::pass_signals): Likewise.
4574 * utils.c (n_spaces): Likewise.
4575 * cli/cli-script.c (document_command): Likewise.
4576 * i386-windows-tdep.c (core_process_module_section): Likewise.
4577 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4578
4579 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4580
4581 * symfile.c (reread_symbols): Clear objfile's section_offsets
4582 vector and section indices, re-compute them by calling
4583 sym_offsets.
4584
4585 2020-05-20 Tom Tromey <tromey@adacore.com>
4586
4587 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4588 (desc_one_bound, desc_index_type): Compute field name.
4589
4590 2020-05-20 Tom de Vries <tdevries@suse.de>
4591
4592 PR symtab/25833
4593 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4594
4595 2020-05-20 Alan Modra <amodra@gmail.com>
4596
4597 PR 25993
4598 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4599 bfd_set_filename.
4600 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4601 passed to bfd_set_filename.
4602 * symfile-mem.c (add_vsyscall_page): Likewise for string
4603 passed to symbol_file_add_from_memory.
4604 (symbol_file_add_from_memory): Make name param a const char* and
4605 don't strdup.
4606
4607 2020-05-20 Alan Modra <amodra@gmail.com>
4608
4609 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4610 rather than accessing bfd->filename directly.
4611 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4612 and use bfd_section_name.
4613 * dwarf2/frame.c (decode_frame_entry): Likewise.
4614 * exec.c (exec_set_section_address): Likewise.
4615 * solib-aix.c (solib_aix_bfd_open): Likewise.
4616 * stap-probe.c (get_stap_base_address): Likewise.
4617 * symfile.c (reread_symbols): Likewise.
4618
4619 2020-05-19 Tom Tromey <tromey@adacore.com>
4620
4621 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4622
4623 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4624
4625 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4626
4627 2020-05-19 Pedro Alves <palves@redhat.com>
4628
4629 * NEWS (set exec-file-mismatch): Adjust entry.
4630 * exec.c: Include "build-id.h".
4631 (validate_exec_file): Try to match build IDs instead of filenames.
4632 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4633 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4634 and pass down 'warn_if_slow'.
4635 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4636 gdb_bfd_open_closure to pass it down.
4637 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4638
4639 2020-05-19 Pedro Alves <palves@redhat.com>
4640
4641 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4642 * target.c (target_fileio_open_1): Rename to target_fileio_open
4643 and make extern. Use bool.
4644 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4645 (target_fileio_read_alloc_1): Adjust.
4646 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4647 (target_fileio_open_warn_if_slow): Delete declaration.
4648
4649 2020-05-19 Pedro Alves <palves@redhat.com>
4650
4651 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4652 Adjust all callers.
4653
4654 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4655
4656 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4657 whether disp is negative.
4658
4659 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4660
4661 * symfile.h (struct symfile_segment_data)
4662 <~symfile_segment_data>: Remove.
4663 <segment_info>: Change to std::vector.
4664 * symfile.c (default_symfile_segments): Update.
4665 * elfread.c (elf_symfile_segments): Update.
4666
4667 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4668
4669 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4670 <segments>: New.
4671 <segment_bases, segment_sizes>: Remove.
4672 * symfile.c (default_symfile_segments): Update.
4673 * elfread.c (elf_symfile_segments): Update.
4674 * remote.c (remote_target::get_offsets): Update.
4675 * solib-target.c (solib_target_relocate_section_addresses):
4676 Update.
4677
4678 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4679
4680 * symfile.h (struct symfile_segment_data): Initialize fields.
4681 <~symfile_segment_data>: Add.
4682 (symfile_segment_data_up): New.
4683 (struct sym_fns) <sym_segments>: Return a
4684 symfile_segment_data_up.
4685 (default_symfile_segments): Return a symfile_segment_data_up.
4686 (free_symfile_segment_data): Remove.
4687 (get_symfile_segment_data): Return a symfile_segment_data_up.
4688 * symfile.c (default_symfile_segments): Likewise.
4689 (get_symfile_segment_data): Likewise.
4690 (free_symfile_segment_data): Remove.
4691 (symfile_find_segment_sections): Update.
4692 * elfread.c (elf_symfile_segments): Return a
4693 symfile_segment_data_up.
4694 * remote.c (remote_target::get_offsets): Update.
4695 * solib-target.c (solib_target_relocate_section_addresses):
4696 Update.
4697 * symfile-debug.c (debug_sym_segments): Return a
4698 symfile_segment_data_up.
4699
4700 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4701
4702 PR build/25981
4703 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4704 Hardcode register numbers.
4705
4706 PR build/25981
4707 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4708 procfs_find_LDT_entry): Remove.
4709 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4710 procfs_find_LDT_entry): Remove.
4711 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4712 Remove.
4713
4714 2020-05-17 Pedro Alves <palves@redhat.com>
4715 Andrew Burgess <andrew.burgess@embecosm.com>
4716 Keno Fischer <keno@juliacomputing.com>
4717
4718 PR gdb/25741
4719 * breakpoint.c (build_target_condition_list): Update comments.
4720 (build_target_command_list): Update comments and skip matching
4721 locations.
4722 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4723 a separate function. Simplify "set breakpoint auto-hw off"
4724 handling.
4725 (insert_breakpoints): Update comment.
4726 (tracepoint_locations_match): New parameter. For breakpoints,
4727 compare location types too, if the caller wants to.
4728 (handle_automatic_hardware_breakpoints): New functions.
4729 (bp_location_is_less_than): Also sort by location type and
4730 hardware breakpoint length.
4731 (update_global_location_list): Handle "set breakpoint auto-hw on"
4732 here.
4733 (update_breakpoint_locations): Ask breakpoint_locations_match to
4734 ignore location types.
4735
4736 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4737
4738 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4739 type::name instead.
4740
4741 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4742
4743 * gdbtypes.h (struct type) <name, set_name>: New methods.
4744 (TYPE_CODE): Use type::name. Change all call sites used to set
4745 the name to use type::set_name instead.
4746
4747 2020-05-16 Tom Tromey <tom@tromey.com>
4748
4749 * top.c (quit_force): Update.
4750 * infrun.c (handle_no_resumed): Update.
4751 * top.h (all_uis): New function.
4752 (ALL_UIS): Remove.
4753
4754 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4755
4756 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4757
4758 2020-05-16 Pedro Alves <palves@redhat.com>
4759
4760 * ia64-linux-nat.c
4761 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4762 Declare method.
4763 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4764
4765 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4766
4767 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4768 (sparc64_adi_info): Likewise.
4769
4770 2020-05-15 Tom Tromey <tom@tromey.com>
4771
4772 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4773 block_objfile.
4774 (lookup_objfile_from_block): Remove.
4775 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4776 (lookup_global_symbol): Use block_objfile.
4777 * symtab.h (lookup_objfile_from_block): Don't declare.
4778 * printcmd.c (clear_dangling_display_expressions): Use
4779 block_objfile.
4780 * parse.c (operator_check_standard): Use block_objfile.
4781
4782 2020-05-15 Tom Tromey <tom@tromey.com>
4783
4784 * language.c (language_alloc_type_symbol): Set
4785 SYMBOL_SECTION.
4786 * symtab.c (initialize_objfile_symbol): Remove.
4787 (allocate_symbol): Remove.
4788 (allocate_template_symbol): Remove.
4789 * dwarf2/read.c (fixup_go_packaging): Use "new".
4790 (new_symbol): Use "new".
4791 (read_variable): Don't call initialize_objfile_symbol. Use
4792 "new".
4793 (read_func_scope): Use "new".
4794 * xcoffread.c (process_xcoff_symbol): Don't call
4795 initialize_objfile_symbol.
4796 (SYMBOL_DUP): Remove.
4797 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4798 "new".
4799 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4800 (allocate_template_symbol): Don't declare.
4801 (struct symbol): Add copy constructor. Change defaults.
4802 * jit.c (finalize_symtab): Use "new".
4803 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4804 Use "new".
4805 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4806 (common_block_end): Use "new".
4807 * mdebugread.c (parse_symbol): Use "new".
4808 (new_symbol): Likewise.
4809
4810 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4811
4812 * NEWS: Mention changes to help and apropos.
4813
4814 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4815
4816 * command.h (enum command_class): Improve comments, document
4817 that class_alias is for user-defined aliases, give the class
4818 name for each class, remove unused class_xdb.
4819 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4820 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4821 by a precise class.
4822 * infcmd.c (_initialize_infcmd): Likewise.
4823 * reverse.c (_initialize_reverse): Likewise.
4824 * stack.c (_initialize_stack): Likewise.
4825 * symfile.c (_initialize_symfile): Likewise.
4826 * tracepoint.c (_initialize_tracepoint): Likewise.
4827
4828 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4829
4830 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4831 when their aliased command is traversed.
4832 (help_cmd): Add fput_command_names_styled call to
4833 output command name and aliases when command has an alias.
4834
4835 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4836
4837 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4838 * cli/cli-decode.c (help_cmd_list): Declare as static,
4839 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4840 a command together with the command.
4841 (fput_command_name_styled, fput_command_names_styled): New functions.
4842 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4843 fput_command_name_styled.
4844 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4845 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4846
4847 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4848
4849 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4850 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4851 * command.h (cmd_show_list): Likewise.
4852 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4853 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4854
4855 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4856
4857 * unittests/command-def-selftests.c (traverse_command_structure):
4858 Verify all commands of a list have the same prefix command and
4859 that only the top cmdlist commands have a null prefix.
4860
4861 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4862
4863 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4864 as prefix, not one of its aliases.
4865 (set_cmd_prefix): Remove.
4866 (do_add_cmd): Centralize the setting of the prefix of a command, when
4867 command is defined after its full chain of prefix commands.
4868 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4869 (add_setshow_cmd_full): Likewise.
4870 (update_prefix_field_of_prefixed_commands): New function.
4871 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4872 update_prefix_field_of_prefixed_commands.
4873 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4874 addresses of remote_set_cmdlist and remote_show_cmdlist given
4875 as argument, not the address of an argument.
4876 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4877 * gdb/remote.c (_initialize_remote): Likewise.
4878
4879 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4880
4881 * cli/cli-cmds.c (alias_command): Check for an existing alias
4882 using lookup_cmd_composition, as valid_command_p is too strict
4883 and forbids aliases that are the prefix of an existing alias
4884 or command.
4885 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4886 command is properly recognised as a valid command.
4887
4888 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4889
4890 * unittests/help-doc-selftests.c: Rename to
4891 unittests/command-def-selftests.c
4892 * unittests/command-def-selftests.c (help_doc_tests): Update some
4893 comments.
4894 (command_structure_tests, traverse_command_structure): New namespace
4895 and function.
4896 (command_structure_invariants_tests): New function.
4897 (_initialize_command_def_selftests) Renamed from
4898 _initialize_help_doc_selftests, register command_structure_invariants
4899 selftest.
4900
4901 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4902
4903 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4904 an alias of 'show'.
4905
4906 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4907
4908 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4909 ada_is_fixed_point_type. Update all callers.
4910 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4911 all callers.
4912 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4913 Update all callers.
4914 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4915 print_fixed_point_type. Update all callers.
4916 * ada-valprint.c (ada_value_print_num): Replace call to
4917 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4918
4919 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4920
4921 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4922 processors.
4923 (cpu_supports_bts): Add CV_AMD case.
4924
4925 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4926 Simon Marchi <simon.marchi@efficios.com>
4927
4928 * infrun.c (stop_all_threads): Collect multiple wait events at
4929 each pass.
4930
4931 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4932
4933 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4934 type::code instead.
4935
4936 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4937
4938 * gdbtypes.h (struct type) <code, set_code>: New methods.
4939 (TYPE_CODE): Use type::code. Change all call sites used to set
4940 the code to use type::set_code instead.
4941
4942 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4943 Tom de Vries <tdevries@suse.de>
4944 Pedro Alves <palves@redhat.com>
4945
4946 PR threads/25478
4947 * infrun.c (stop_all_threads): Do NOT ignore
4948 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4949 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4950 received.
4951 (handle_no_resumed): Remove code handling a live inferior with no
4952 threads.
4953 * remote.c (has_single_non_exited_thread): New.
4954 (remote_target::update_thread_list): Do not delete a thread if is
4955 the last thread of the process.
4956 * thread.c (thread_select): Call delete_exited_threads instead of
4957 prune_threads.
4958
4959 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4960
4961 * infrun.c (stop_all_threads): Enable/disable thread events of all
4962 targets. Move a debug message denoting the end of the function
4963 into the SCOPED_EXIT block.
4964
4965 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4966
4967 * process-stratum-target.h: Include <set>.
4968 (all_non_exited_process_targets, switch_to_target_no_thread): New
4969 function declarations.
4970 * process-stratum-target.c (all_non_exited_process_targets)
4971 (switch_to_target_no_thread): New function implementations.
4972
4973 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4974
4975 * infrun.c (handle_inferior_event): Extract out a piece of code
4976 into...
4977 (mark_non_executing_threads): ...this new function.
4978
4979 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4980
4981 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4982 use.
4983
4984 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4985
4986 * regcache.c (regcache_read_pc_protected): New function
4987 implementation that returns 0 if the PC cannot read via
4988 'regcache_read_pc'.
4989 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4990 instead of 'regcache_read_pc'.
4991 (keep_going_pass_signal): Ditto.
4992
4993 2020-05-13 Tom Tromey <tromey@adacore.com>
4994
4995 * ada-lang.c (align_value): Remove.
4996 (ada_template_to_fixed_record_type_1): Use align_up.
4997
4998 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4999
5000 * async-event.c: Update the copyright year.
5001 * async-event.h: Update the copyright year.
5002
5003 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5004
5005 * objfiles.h (is_addr_in_objfile,
5006 shared_objfile_contains_address_p): Return bool.
5007 * objfile.c (is_addr_in_objfile,
5008 shared_objfile_contains_address_p): Return bool.
5009
5010 2020-05-11 Tom Tromey <tromey@adacore.com>
5011
5012 * cli/cli-cmds.c (info_command): Restore.
5013 (_initialize_cli_cmds): Use add_prefix_command for "info".
5014 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5015
5016 2020-05-11 Tom Tromey <tromey@adacore.com>
5017
5018 * ada-lang.c (ada_value_primitive_field): Now public.
5019 * ada-lang.h (ada_value_primitive_field): Declare.
5020 * ada-valprint.c (print_field_values): Use
5021 ada_value_primitive_field for wrapper fields.
5022
5023 2020-05-11 Tom de Vries <tdevries@suse.de>
5024
5025 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5026 MODULE_DOMAIN.
5027
5028 2020-05-11 Tom de Vries <tdevries@suse.de>
5029
5030 PR symtab/25941
5031 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5032 with length 0, if not gdb-produced.
5033 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5034
5035 2020-05-09 Tom de Vries <tdevries@suse.de>
5036
5037 PR gdb/25955
5038 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5039 calculation.
5040
5041 2020-05-09 Tom Tromey <tom@tromey.com>
5042
5043 * top.c (server_command): Now bool.
5044 * top.h (server_command): Now bool.
5045
5046 2020-05-08 Tom Tromey <tromey@adacore.com>
5047
5048 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5049 already being processed.
5050
5051 2020-05-08 Tom Tromey <tom@tromey.com>
5052
5053 * printcmd.c (struct display) <next>: Remove.
5054 <display>: New constructor.
5055 <exp_string>: Now a std::string.
5056 <enabled_p>: Now a bool.
5057 (display_number): Move definition earlier.
5058 (displays): Rename from display_chain. Now a std::vector.
5059 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5060 (display_command): Update.
5061 (do_one_display, disable_display)
5062 (enable_disable_display_command, do_enable_disable_display):
5063 Update.
5064 (free_display): Remove.
5065 (clear_displays): Rewrite.
5066 (delete_display): Update.
5067 (map_display_numbers): Use function_view. Remove "data"
5068 parameter. Update.
5069 (do_delete_display): Remove.
5070 (undisplay_command): Update.
5071 (do_one_display, do_displays, disable_display)
5072 (info_display_command): Update.
5073 (do_enable_disable_display): Remove.
5074 (enable_disable_display_command)
5075 (clear_dangling_display_expressions): Update.
5076
5077 2020-05-08 Tom Tromey <tom@tromey.com>
5078
5079 * symtab.c (set_symbol_cache_size)
5080 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5081 (maintenance_print_symbol_cache_statistics): Update.
5082 * symmisc.c (print_symbol_bcache_statistics)
5083 (print_objfile_statistics, maintenance_print_objfiles)
5084 (maintenance_info_symtabs, maintenance_check_symtabs)
5085 (maintenance_expand_symtabs, maintenance_info_line_tables):
5086 Update.
5087 * symfile-debug.c (set_debug_symfile): Update.
5088 * source.c (forget_cached_source_info): Update.
5089 * python/python.c (gdbpy_progspaces): Update.
5090 * psymtab.c (maintenance_info_psymtabs): Update.
5091 * probe.c (parse_probes): Update.
5092 * linespec.c (iterate_over_all_matching_symtabs)
5093 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5094 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5095 * exec.c (exec_target::close): Update.
5096 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5097 * breakpoint.c (print_one_breakpoint_location)
5098 (create_longjmp_master_breakpoint)
5099 (create_std_terminate_master_breakpoint): Update.
5100 * progspace.c (program_spaces): Now a std::vector.
5101 (maybe_new_address_space): Update.
5102 (add_program_space): Remove.
5103 (program_space::program_space): Update.
5104 (remove_program_space): Update.
5105 (number_of_program_spaces): Remove.
5106 (print_program_space, update_address_spaces): Update.
5107 * progspace.h (program_spaces): Change type.
5108 (ALL_PSPACES): Remove.
5109 (number_of_program_spaces): Don't declare.
5110 (struct program_space) <next>: Remove.
5111
5112 2020-05-08 Tom Tromey <tom@tromey.com>
5113
5114 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5115 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5116 (enable_break): Update.
5117 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5118 (frv_fdpic_find_canonical_descriptor): Update.
5119 (frv_fetch_objfile_link_map): Update.
5120 * progspace.c (program_space::free_all_objfiles): Update.
5121 (program_space::solibs): New method.
5122 * progspace.h (struct program_space) <solibs>: New method.
5123 * solist.h (master_so_list): Don't declare.
5124 (ALL_SO_LIBS): Remove.
5125 * solib.h (so_list_head): Remove.
5126 (update_solib_list): Update comment.
5127 * solib.c (master_so_list): Remove.
5128 (solib_used, update_solib_list, solib_add)
5129 (info_sharedlibrary_command, clear_solib)
5130 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5131
5132 2020-05-08 Tom Tromey <tom@tromey.com>
5133
5134 * extension.c (extension_languages): Now a std::array.
5135 (ALL_EXTENSION_LANGUAGES): Remove.
5136 (get_ext_lang_defn, get_ext_lang_of_file)
5137 (eval_ext_lang_from_control_command): Update.
5138 (finish_ext_lang_initialization)
5139 (auto_load_ext_lang_scripts_for_objfile)
5140 (ext_lang_type_printers::ext_lang_type_printers)
5141 (apply_ext_lang_type_printers)
5142 (ext_lang_type_printers::~ext_lang_type_printers)
5143 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5144 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5145 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5146 (get_matching_xmethod_workers, ext_lang_colorize)
5147 (ext_lang_before_prompt): Update.
5148 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5149
5150 2020-05-08 Tom Tromey <tom@tromey.com>
5151
5152 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5153 overload.
5154 <swap_string, m_string>: Remove.
5155 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5156 Update.
5157 * stabsread.c (define_symbol, read_type): Update.
5158 * linespec.c (find_linespec_symbols): Update.
5159 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5160 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5161 * dbxread.c (read_dbx_symtab): Update.
5162 * cp-support.h (cp_canonicalize_string_full)
5163 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5164 Return unique_xmalloc_ptr.
5165 * cp-support.c (inspect_type): Update.
5166 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5167 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5168 Likewise.
5169 * c-typeprint.c (print_name_maybe_canonical): Update.
5170 * break-catch-throw.c (check_status_exception_catchpoint):
5171 Update.
5172
5173 2020-05-08 Tom de Vries <tdevries@suse.de>
5174
5175 * infrun.c (follow_fork): Copy current_line and current_symtab to
5176 child thread.
5177
5178 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5179
5180 * async-event.c (struct async_signal_handler, struct
5181 async_event_handler): Reformat, remove typedef.
5182
5183 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5184
5185 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5186 access thistype->main_type->dyn_prop_list directly.
5187
5188 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5189
5190 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5191 (remove_dyn_prop): Remove. Update all users to use
5192 type::remove_dyn_prop.
5193 * gdbtypes.c (remove_dyn_prop): Rename to...
5194 (type::remove_dyn_prop): ... this.
5195
5196 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5197
5198 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5199 (add_dyn_prop): Remove. Update all users to use
5200 type::add_dyn_prop.
5201 * gdbtypes.c (add_dyn_prop): Rename to...
5202 (type::add_dyn_prop): ... this.
5203
5204 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5205
5206 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5207 (get_dyn_prop): Remove. Update all users to use
5208 type::dyn_prop.
5209 * gdbtypes.c (get_dyn_prop): Rename to...
5210 (type::dyn_prop): ... this.
5211
5212 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5213
5214 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5215
5216 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5217
5218 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5219 instruction, skip it if it's there.
5220
5221 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5222
5223 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5224
5225 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5226
5227 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5228 * gdbtypes.c (recursive_dump_type): Remove use of
5229 TYPE_INCOMPLETE.
5230
5231 2020-05-03 Tom Tromey <tom@tromey.com>
5232
5233 * breakpoint.c (catch_command, tcatch_command): Remove.
5234 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5235 add_show_prefix_cmd.
5236 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5237 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5238 Remove.
5239 (add_internal_problem_command): Use add_basic_prefix_cmd,
5240 add_show_prefix_cmd.
5241 * mips-tdep.c (set_mipsfpu_command): Remove.
5242 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5243 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5244 (_initialize_index_cache): Use add_basic_prefix_cmd.
5245 * memattr.c (dummy_cmd): Remove.
5246 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5247 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5248 (_initialize_tui_win): Use add_basic_prefix_cmd,
5249 add_show_prefix_cmd.
5250 * cli/cli-logging.c (set_logging_command): Remove.
5251 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5252 add_show_prefix_cmd.
5253 (show_logging_command): Remove.
5254 * target.c (target_command): Remove.
5255 (add_target): Use add_basic_prefix_cmd.
5256
5257 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5258
5259 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5260
5261 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5262
5263 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5264 info_command.
5265
5266 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5267
5268 * nbsd-nat.c (nbsd_enable_proc_events)
5269 (nbsd_nat_target::post_startup_inferior): Add.
5270 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5271 (nbsd_nat_target::update_thread_list): Rewrite.
5272 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5273 "PTRACE_LWP_CREATE".
5274 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5275
5276 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5277
5278 * stack.c (_initialize_stack): Remove duplicated creation
5279 of "frame" command and "f" alias.
5280
5281 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5282
5283 PR gdb/18706
5284 * gdbtypes.c (check_typedef): Calculate size of array of
5285 stubbed type.
5286
5287 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5288
5289 PR gdb/15559
5290 * i386-tdep.c (i386_push_dummy_call): Call
5291 i386_thiscall_push_dummy_call.
5292 (i386_thiscall_push_dummy_call): New function.
5293 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5294 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5295 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5296
5297 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5298
5299 * gdbarch.sh (do_read): Add shellcheck disable directive for
5300 warning SC2162.
5301
5302 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5303
5304 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5305 "referenced but not assigned" warning.
5306
5307 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5308
5309 * gdbarch.sh: Remove code that sets fallbackdefault.
5310
5311 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5312
5313 * gdbarch.sh: Use shell operators && and || instead of
5314 -a and -o.
5315
5316 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5317
5318 * gdbarch.sh: Use $(...) instead of `...`.
5319
5320 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5321
5322 * gdbarch.sh: Use double quotes around variables.
5323
5324 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5325
5326 * gdbarch.sh: Use %s with printf, instead of variables in the
5327 format string.
5328
5329 2020-04-29 Tom Tromey <tromey@adacore.com>
5330
5331 PR ada/25875:
5332 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5333 type fields here.
5334 (read_enumeration_type): Call
5335 update_enumeration_type_from_children later. Update comments.
5336 (process_enumeration_scope): Don't create type fields.
5337
5338 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5339
5340 * nbsd-tdep.c: Include "xml-syscall.h".
5341 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5342
5343 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5344
5345 * nbsd-nat.c: Include "sys/wait.h".
5346 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5347 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5348 (nbsd_nat_target::remove_exec_catchpoint)
5349 (nbsd_nat_target::set_syscall_catchpoint): Add.
5350 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5351 (nbsd_nat_target::insert_exec_catchpoint)
5352 (nbsd_nat_target::remove_exec_catchpoint)
5353 (nbsd_nat_target::set_syscall_catchpoint): Add.
5354 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5355 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5356 `nbsd_get_syscall_number'.
5357
5358 2020-04-29 Tom Tromey <tom@tromey.com>
5359
5360 * stack.c (print_block_frame_labels): Remove.
5361
5362 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5363
5364 PR gdb/17320
5365 * ada-valprint.c (val_print_packed_array_elements): Move array
5366 end bracket to new line.
5367 (ada_val_print_string): Remove extra spaces before first array
5368 element.
5369 * c-valprint.c (c_value_print_array): Likewise.
5370 * m2-valprint.c (m2_print_array_contents): Likewise.
5371 (m2_value_print_inner): Likewise.
5372 * p-valprint.c (pascal_value_print_inner): Likewise.
5373 * valprint.c (generic_val_print_array): Likewise.
5374 (value_print_array_elements): Move first array element and array
5375 end bracket to new line.
5376
5377 2020-04-29 Tom de Vries <tdevries@suse.de>
5378
5379 PR symtab/25889
5380 * linespec.c (find_method): Fix ix calculation.
5381
5382 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5383
5384 * syscalls/update-netbsd.sh: New file.
5385 * syscalls/netbsd.xml: Regenerate.
5386 * data-directory/Makefile.in: Register `netbsd.xml' in
5387 `SYSCALLS_FILES'.
5388
5389 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5390
5391 * syscalls/update-freebsd.sh: Add double quotes.
5392
5393 2020-04-28 Tom Tromey <tom@tromey.com>
5394
5395 * NEWS: Update.
5396 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5397 (cmdpy_init): Allow class_tui.
5398
5399 2020-04-28 Mark Williams <mark@myosotissp.com>
5400
5401 PR gdb/24480
5402 * dwarf2read.c: Add missing assingments to list_in_scope when
5403 start_symtab was already called.
5404
5405 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5406
5407 PR gdb/25881
5408 * dwarf2/read.c (offset_map_type): Use
5409 gdb:hash_enum<sect_offset> as hash function.
5410
5411 2020-04-28 Tom de Vries <tdevries@suse.de>
5412
5413 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5414 with DW_AT_signature.
5415
5416 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5417
5418 * configure.ac: Remove check for fs_base/gs_base in
5419 user_regs_struct.
5420 * configure: Re-generate.
5421 * config.in: Re-generate.
5422 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5423 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5424 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5425
5426 2020-04-27 Luis Machado <luis.machado@linaro.org>
5427
5428 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5429 problematic inline frame unwinding situation.
5430 * frame.c (frame_id_computed_p): New function.
5431 * frame.h (frame_id_computed_p): New prototype.
5432
5433 2020-04-26 Tom Tromey <tom@tromey.com>
5434
5435 * command.h (enum command_class) <class_pseudo>: Remove.
5436
5437 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5438
5439 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5440 and whitespace.
5441
5442 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5443
5444 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5445 `PT_GET_PROCESS_STATE' block.
5446
5447 2020-04-24 Tom Tromey <tom@tromey.com>
5448
5449 * symtab.h (symbol_get_demangled_name): Don't declare.
5450 * symtab.c (symbol_get_demangled_name): Remove.
5451 (general_symbol_info::natural_name)
5452 (general_symbol_info::demangled_name): Update.
5453
5454 2020-04-24 Tom Tromey <tom@tromey.com>
5455
5456 PR rust/25025:
5457 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5458
5459 2020-04-24 Tom Tromey <tom@tromey.com>
5460
5461 PR symtab/12707:
5462 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5463 exists.
5464 (new_symbol): Likewise.
5465 * compile/compile-object-load.c (get_out_value_type): Use
5466 symbol_matches_search_name.
5467
5468 2020-04-24 Tom Tromey <tom@tromey.com>
5469
5470 * dwarf2/read.c (add_partial_symbol): Do not call
5471 compute_and_set_names.
5472
5473 2020-04-24 Tom Tromey <tom@tromey.com>
5474
5475 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5476 overload.
5477
5478 2020-04-24 Tom Tromey <tom@tromey.com>
5479
5480 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5481 (add_psymbol_to_list): New overload. Make old overload call new
5482 one.
5483 * psympriv.h (add_psymbol_to_list): New overload.
5484
5485 2020-04-24 Tom Tromey <tom@tromey.com>
5486
5487 * dwarf2/read.c (partial_die_info::read) <case
5488 DW_AT_linkage_name>: Use value_as_string.
5489 (dwarf2_string_attr): Use value_as_string.
5490 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5491 method.
5492 * dwarf2/attribute.c (attribute::value_as_string): New method.
5493
5494 2020-04-24 Tom Tromey <tom@tromey.com>
5495
5496 * symtab.c (general_symbol_info::natural_name)
5497 (general_symbol_info::demangled_name): Check for language_rust.
5498
5499 2020-04-24 Tom Tromey <tom@tromey.com>
5500
5501 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5502 (dwarf2_physname): ... from here.
5503 (partial_die_info::read): Add Rust "{" hack.
5504
5505 2020-04-24 Tom Tromey <tom@tromey.com>
5506
5507 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5508 method.
5509 (symbol_set_demangled_name): Don't declare.
5510 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5511 symbol_set_demangled_name.
5512 (general_symbol_info::set_language)
5513 (general_symbol_info::compute_and_set_names): Update.
5514 * minsyms.c (minimal_symbol_reader::install): Update.
5515 * dwarf2/read.c (new_symbol): Update.
5516
5517 2020-04-24 Tom Tromey <tromey@adacore.com>
5518
5519 PR python/23662:
5520 * python/py-type.c (convert_field): Handle
5521 FIELD_LOC_KIND_DWARF_BLOCK.
5522 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5523 (typy_get_dynamic): Nw function.
5524 (type_object_getset): Add "dynamic".
5525 * NEWS: Add entry.
5526
5527 2020-04-24 Tom Tromey <tromey@adacore.com>
5528
5529 * ada-typeprint.c (print_choices, print_variant_part)
5530 (print_record_field_types_dynamic): New functions.
5531 (print_record_field_types): Use print_record_field_types_dynamic.
5532
5533 2020-04-24 Tom Tromey <tromey@adacore.com>
5534
5535 * dwarf2/read.c (handle_data_member_location): New overload.
5536 (dwarf2_add_field): Use it.
5537 (decode_locdesc): Add "computed" parameter. Update comment.
5538 * gdbtypes.c (is_dynamic_type_internal): Also look for
5539 FIELD_LOC_KIND_DWARF_BLOCK.
5540 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5541 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5542 virtual base classes.
5543 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5544 FIELD_LOC_KIND_DWARF_BLOCK.
5545
5546 2020-04-24 Tom Tromey <tromey@adacore.com>
5547
5548 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5549 * gdbtypes.c (is_dynamic_type_internal): Check
5550 TYPE_HAS_DYNAMIC_LENGTH.
5551 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5552 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5553 New macros.
5554 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5555 constant.
5556
5557 2020-04-24 Tom Tromey <tromey@adacore.com>
5558
5559 * dwarf2/read.c (struct variant_field): Rewrite.
5560 (struct variant_part_builder): New.
5561 (struct nextfield): Remove "variant" field. Add "offset".
5562 (struct field_info): Add "current_variant_part" and
5563 "variant_parts".
5564 (alloc_discriminant_info): Remove.
5565 (alloc_rust_variant): New function.
5566 (quirk_rust_enum): Update.
5567 (dwarf2_add_field): Set "offset" member. Don't handle
5568 DW_TAG_variant_part.
5569 (offset_map_type): New typedef.
5570 (convert_variant_range, create_one_variant)
5571 (create_one_variant_part, create_variant_parts)
5572 (add_variant_property): New functions.
5573 (dwarf2_attach_fields_to_type): Call add_variant_property.
5574 (read_structure_type): Don't handle DW_TAG_variant_part.
5575 (handle_variant_part, handle_variant): New functions.
5576 (handle_struct_member_die): Use them.
5577 (process_structure_scope): Don't handle variant parts.
5578 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5579 (struct discriminant_info): Remove.
5580 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5581 (struct main_type) <flag_discriminated_union>: Remove.
5582 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5583 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5584 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5585 Update.
5586 * valops.c (value_union_variant): Remove.
5587 * value.h (value_union_variant): Don't declare.
5588
5589 2020-04-24 Tom Tromey <tromey@adacore.com>
5590
5591 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5592 (ada_value_primitive_packed_val): Update.
5593 * ada-valprint.c (ada_value_print_1): Update.
5594 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5595 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5596 just an address. Use evaluate_for_locexpr_baton.
5597 (dwarf2_evaluate_property): Update.
5598 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5599 array_view.
5600 * findvar.c (default_read_var_value): Update.
5601 * gdbtypes.c (compute_variant_fields_inner)
5602 (resolve_dynamic_type_internal): Update.
5603 (resolve_dynamic_type): Change type of valaddr parameter.
5604 * gdbtypes.h (resolve_dynamic_type): Update.
5605 * valarith.c (value_subscripted_rvalue): Update.
5606 * value.c (value_from_contents_and_address): Update.
5607
5608 2020-04-24 Tom Tromey <tromey@adacore.com>
5609
5610 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5611 "push_initial_value" parameter.
5612 (dwarf2_evaluate_property): Likewise.
5613 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5614
5615 2020-04-24 Tom Tromey <tromey@adacore.com>
5616
5617 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5618 (variant::matches, compute_variant_fields_recurse)
5619 (compute_variant_fields_inner, compute_variant_fields): New
5620 functions.
5621 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5622 Use resolved_type after type is made.
5623 (operator==): Add new cases.
5624 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5625 (struct discriminant_range, struct variant, struct variant_part):
5626 New.
5627 (union dynamic_prop_data) <variant_parts, original_type>: New
5628 members.
5629 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5630 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5631 constants.
5632 * value.c (unpack_bits_as_long): Now public.
5633 * value.h (unpack_bits_as_long): Declare.
5634
5635 2020-04-24 Tom Tromey <tromey@adacore.com>
5636
5637 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5638 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5639
5640 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5641
5642 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5643
5644 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5645
5646 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5647 (remove_fork_catchpoint, post_startup_inferior)
5648 (post_attach): Move...
5649 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5650 (remove_fork_catchpoint, post_startup_inferior)
5651 (post_attach): ...here.
5652 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5653 (remove_fork_catchpoint, post_startup_inferior)
5654 (post_attach): Move...
5655 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5656 (remove_fork_catchpoint, post_startup_inferior)
5657 (post_attach): ...here.
5658
5659 2020-04-24 Tom Tromey <tromey@adacore.com>
5660
5661 * nat/windows-nat.h (struct windows_thread_info)
5662 <pc_adjusted>: New member.
5663 * windows-nat.c (windows_fetch_one_register): Check
5664 pc_adjusted.
5665 (windows_nat_target::get_windows_debug_event)
5666 (windows_nat_target::wait): Set pc_adjusted.
5667
5668 2020-04-24 Tom de Vries <tdevries@suse.de>
5669
5670 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5671 Run gdb-add-index inside temp dir.
5672
5673 2020-04-23 Tom Tromey <tromey@adacore.com>
5674
5675 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5676 in loop.
5677
5678 2020-04-23 Luis Machado <luis.machado@linaro.org>
5679
5680 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5681 get_frame_register instead of gdbarch_unwind_pc.
5682
5683 2020-04-23 Tom de Vries <tdevries@suse.de>
5684
5685 * symtab.c (lookup_global_symbol): Prefer def over decl.
5686
5687 2020-04-23 Tom de Vries <tdevries@suse.de>
5688
5689 PR symtab/25807
5690 * block.c (best_symbol, better_symbol): Promote to external.
5691 * block.h (best_symbol, better_symbol): Declare.
5692 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5693 decl.
5694
5695 2020-04-23 Tom Tromey <tromey@adacore.com>
5696
5697 PR ada/25837:
5698 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5699 "const char *", not a "const std::string &".
5700 <name_and_matcher::operator==>: Update.
5701 * unittests/lookup_name_info-selftests.c: Change type of
5702 "result".
5703
5704 2020-04-23 Tom Tromey <tom@tromey.com>
5705
5706 * inferior.h (iterate_over_inferiors): Don't declare.
5707 * inferior.c (iterate_over_inferiors): Remove.
5708 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5709 Remove.
5710 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5711 use iterate_over_inferiors.
5712 (darwin_resume_inferior_it)
5713 (struct resume_inferior_threads_param)
5714 (darwin_resume_inferior_threads_it): Remove.
5715 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5716
5717 2020-04-23 Tom de Vries <tdevries@suse.de>
5718
5719 * blockframe.c (find_pc_partial_function): Use
5720 find_pc_sect_compunit_symtab rather than
5721 objfile->sf->qf->find_pc_sect_compunit_symtab.
5722
5723 2020-04-22 Tom de Vries <tdevries@suse.de>
5724
5725 PR symtab/25764
5726 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5727 in psymtabs.
5728
5729 2020-04-22 Tom de Vries <tdevries@suse.de>
5730
5731 PR symtab/25801
5732 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5733 symtabs.
5734
5735 2020-04-22 Tom de Vries <tdevries@suse.de>
5736
5737 PR symtab/25700
5738 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5739 CU if already created.
5740
5741 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5742
5743 * infrun.c (displaced_step_fixup): Switch to the event_thread
5744 before calling displaced_step_restore, not after.
5745
5746 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5747
5748 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5749 its inferior is not recorded by us.
5750 (record_btrace_target_open): Replace call to
5751 all_non_exited_threads () with call to current_inferior
5752 ()->non_exited_threads ().
5753 (record_btrace_target::stop_recording): Likewise.
5754 (record_btrace_target::close): Likewise.
5755 (record_btrace_target::wait): Likewise.
5756 (record_btrace_target::record_stop_replaying): Likewise.
5757
5758 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5759
5760 * btrace.c (btrace_enable): Throw an error on double enables and
5761 when enabling recording fails.
5762 (btrace_disable): Throw an error if the thread is not recorded.
5763
5764 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5765
5766 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5767 request if we do not have a thread_info.
5768
5769 2020-04-21 Tom de Vries <tdevries@suse.de>
5770
5771 PR gdb/25471
5772 * thread.c
5773 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5774 exception in get_frame_id.
5775
5776 2020-04-20 Tom Tromey <tromey@adacore.com>
5777
5778 * python/python.c (struct gdbpy_event): Mark move constructor as
5779 noexcept.
5780 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5781 constructor as noexcept.
5782 * completer.h (struct completion_result): Mark move constructor as
5783 noexcept.
5784 * completer.c (completion_result::completion_result): Use
5785 initialization style. Don't call reset_match_list.
5786
5787 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5788
5789 * MAINTAINERS (Write After Approval): Add myself.
5790
5791 2020-04-18 Tom Tromey <tom@tromey.com>
5792
5793 * windows-tdep.c (init_w32_command_list)
5794 (w32_prefix_command_valid): Restore.
5795 (_initialize_windows_tdep): Call init_w32_command_list.
5796
5797 2020-04-18 Tom Tromey <tom@tromey.com>
5798
5799 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5800 * value.c (value_fn_field): Update.
5801 * valops.c (find_function_in_inferior)
5802 (value_allocate_space_in_inferior): Update.
5803 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5804 Update.
5805 * tui/tui-source.c (tui_source_window::set_contents): Update.
5806 * symtab.c (lookup_global_or_static_symbol)
5807 (find_function_start_sal_1, skip_prologue_sal)
5808 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5809 * symmisc.c (dump_msymbols, dump_symtab_1)
5810 (maintenance_print_one_line_table): Update.
5811 * symfile.c (init_entry_point_info, section_is_mapped)
5812 (list_overlays_command, simple_read_overlay_table)
5813 (simple_overlay_update_1): Update.
5814 * stap-probe.c (handle_stap_probe): Update.
5815 * stabsread.c (dbx_init_float_type, define_symbol)
5816 (read_one_struct_field, read_enum_type, read_range_type): Update.
5817 * source.c (info_line_command): Update.
5818 * python/python.c (gdbpy_source_objfile_script)
5819 (gdbpy_execute_objfile_script): Update.
5820 * python/py-type.c (save_objfile_types): Update.
5821 * python/py-objfile.c (py_free_objfile): Update.
5822 * python/py-inferior.c (python_new_objfile): Update.
5823 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5824 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5825 (maintenance_check_psymtabs): Update.
5826 * printcmd.c (info_address_command): Update.
5827 * objfiles.h (struct objfile) <arch>: New method, from
5828 get_objfile_arch.
5829 (get_objfile_arch): Don't declare.
5830 * objfiles.c (get_objfile_arch): Remove.
5831 (filter_overlapping_sections): Update.
5832 * minsyms.c (msymbol_is_function): Update.
5833 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5834 (output_nondebug_symbol): Update.
5835 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5836 (mdebug_expand_psymtab): Update.
5837 * machoread.c (macho_add_oso_symfile): Update.
5838 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5839 Update.
5840 * linux-fork.c (checkpoint_command): Update.
5841 * linespec.c (convert_linespec_to_sals): Update.
5842 * jit.c (finalize_symtab): Update.
5843 * infrun.c (insert_exception_resume_from_probe): Update.
5844 * ia64-tdep.c (ia64_find_unwind_table): Update.
5845 * hppa-tdep.c (internalize_unwinds): Update.
5846 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5847 Update.
5848 * gcore.c (call_target_sbrk): Update.
5849 * elfread.c (record_minimal_symbol, elf_symtab_read)
5850 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5851 (elf_gnu_ifunc_resolve_by_got): Update.
5852 * dwarf2/read.c (create_addrmap_from_index)
5853 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5854 (read_debug_names_from_section)
5855 (process_psymtab_comp_unit_reader, add_partial_symbol)
5856 (add_partial_subprogram, process_full_comp_unit)
5857 (read_file_scope, read_func_scope, read_lexical_block_scope)
5858 (read_call_site_scope, dwarf2_ranges_read)
5859 (dwarf2_record_block_ranges, dwarf2_add_field)
5860 (mark_common_block_symbol_computed, read_tag_pointer_type)
5861 (read_tag_string_type, dwarf2_init_float_type)
5862 (dwarf2_init_complex_target_type, read_base_type)
5863 (partial_die_info::read, partial_die_info::read)
5864 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5865 (dwarf2_fetch_die_loc_sect_off): Update.
5866 * dwarf2/loc.c (dwarf2_find_location_expression)
5867 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5868 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5869 (dwarf2_loc_desc_get_symbol_read_needs)
5870 (locexpr_describe_location_piece, locexpr_describe_location_1)
5871 (loclist_describe_location): Update.
5872 * dwarf2/index-write.c (write_debug_names): Update.
5873 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5874 * dtrace-probe.c (dtrace_process_dof): Update.
5875 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5876 (process_one_symbol): Update.
5877 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5878 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5879 (coff_read_enum_type): Update.
5880 * cli/cli-cmds.c (edit_command, list_command): Update.
5881 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5882 * breakpoint.c (create_overlay_event_breakpoint)
5883 (create_longjmp_master_breakpoint)
5884 (create_std_terminate_master_breakpoint)
5885 (create_exception_master_breakpoint, get_sal_arch): Update.
5886 * block.c (block_gdbarch): Update.
5887 * annotate.c (annotate_source_line): Update.
5888
5889 2020-04-17 Tom Tromey <tromey@adacore.com>
5890
5891 * auto-load.c (show_auto_load_cmd): Remove.
5892 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5893 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5894 (maintenance_print_arc_command): Remove.
5895 * tui/tui-win.c (tui_command): Remove.
5896 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5897 * tui/tui-layout.c (tui_layout_command): Remove.
5898 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5899 * python/python.c (user_set_python, user_show_python): Remove.
5900 (_initialize_python): Use add_basic_prefix_cmd,
5901 add_show_prefix_cmd.
5902 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5903 (install_gdb_commands): Use add_basic_prefix_cmd,
5904 add_show_prefix_cmd.
5905 (info_guile_command): Remove.
5906 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5907 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5908 add_show_prefix_cmd.
5909 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5910 Remove do_set and do_show parameters.
5911 * cli/cli-style.c (set_style, show_style): Remove.
5912 (_initialize_cli_style): Use add_basic_prefix_cmd,
5913 add_show_prefix_cmd.
5914 (cli_style_option::add_setshow_commands): Remove do_set and
5915 do_show parameters.
5916 (cli_style_option::add_setshow_commands): Use
5917 add_basic_prefix_cmd, add_show_prefix_cmd.
5918 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5919 (set_style_name): Remove.
5920 * cli/cli-dump.c (dump_command, append_command): Remove.
5921 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5922 (tekhex_dump_command, binary_dump_command)
5923 (binary_append_command): Remove.
5924 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5925 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5926 (init_w32_command_list): Remove; move into ...
5927 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5928 * valprint.c (set_print, show_print, set_print_raw)
5929 (show_print_raw): Remove.
5930 (_initialize_valprint): Use add_basic_prefix_cmd,
5931 add_show_prefix_cmd.
5932 * typeprint.c (set_print_type, show_print_type): Remove.
5933 (_initialize_typeprint): Use add_basic_prefix_cmd,
5934 add_show_prefix_cmd.
5935 * record.c (set_record_command, show_record_command): Remove.
5936 (_initialize_record): Use add_basic_prefix_cmd,
5937 add_show_prefix_cmd.
5938 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5939 add_show_prefix_cmd.
5940 (info_command, show_command, set_debug, show_debug): Remove.
5941 * top.h (set_history, show_history): Don't declare.
5942 * top.c (set_history, show_history): Remove.
5943 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5944 (unset_tdesc_cmd): Remove.
5945 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5946 add_show_prefix_cmd.
5947 * symtab.c (info_module_command): Remove.
5948 (_initialize_symtab): Use add_basic_prefix_cmd.
5949 * symfile.c (overlay_command): Remove.
5950 (_initialize_symfile): Use add_basic_prefix_cmd.
5951 * sparc64-tdep.c (info_adi_command): Remove.
5952 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5953 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5954 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5955 add_show_prefix_cmd.
5956 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5957 (_initialize_serial): Use add_basic_prefix_cmd,
5958 add_show_prefix_cmd.
5959 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5960 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5961 add_show_prefix_cmd.
5962 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5963 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5964 add_show_prefix_cmd.
5965 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5966 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5967 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5968 add_show_prefix_cmd.
5969 * remote.c (remote_command, set_remote_cmd): Remove.
5970 (_initialize_remote): Use add_basic_prefix_cmd.
5971 * record-full.c (set_record_full_command)
5972 (show_record_full_command): Remove.
5973 (_initialize_record_full): Use add_basic_prefix_cmd,
5974 add_show_prefix_cmd.
5975 * record-btrace.c (cmd_set_record_btrace)
5976 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5977 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5978 (cmd_show_record_btrace_pt): Remove.
5979 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5980 add_show_prefix_cmd.
5981 * ravenscar-thread.c (set_ravenscar_command)
5982 (show_ravenscar_command): Remove.
5983 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5984 add_show_prefix_cmd.
5985 * mips-tdep.c (show_mips_command, set_mips_command)
5986 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5987 add_show_prefix_cmd.
5988 * maint.c (maintenance_command, maintenance_info_command)
5989 (maintenance_check_command, maintenance_print_command)
5990 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5991 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5992 add_show_prefix_cmd.
5993 (show_per_command_cmd): Remove.
5994 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5995 Remove.
5996 (maintenance_show_test_settings_cmd): Remove.
5997 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5998 add_show_prefix_cmd.
5999 * maint-test-options.c (maintenance_test_options_command):
6000 Remove.
6001 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6002 * macrocmd.c (macro_command): Remove
6003 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6004 * language.c (set_check, show_check): Remove.
6005 (_initialize_language): Use add_basic_prefix_cmd,
6006 add_show_prefix_cmd.
6007 * infcmd.c (unset_command): Remove.
6008 (_initialize_infcmd): Use add_basic_prefix_cmd.
6009 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6010 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6011 add_show_prefix_cmd.
6012 * go32-nat.c (go32_info_dos_command): Remove.
6013 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6014 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6015 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6016 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6017 (_initialize_frame): Use add_basic_prefix_cmd,
6018 add_show_prefix_cmd.
6019 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6020 (_initialize_dcache): Use add_basic_prefix_cmd,
6021 add_show_prefix_cmd.
6022 * cp-support.c (maint_cplus_command): Remove.
6023 (_initialize_cp_support): Use add_basic_prefix_cmd.
6024 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6025 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6026 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6027 add_basic_prefix_cmd, add_show_prefix_cmd.
6028 * breakpoint.c (save_command): Remove.
6029 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6030 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6031 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6032 add_show_prefix_cmd.
6033 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6034 (set_ada_command, show_ada_command): Remove.
6035 (_initialize_ada_language): Use add_basic_prefix_cmd,
6036 add_show_prefix_cmd.
6037 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6038
6039 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6040
6041 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6042 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6043
6044 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6045
6046 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6047 warning messages.
6048
6049 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6050
6051 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6052 import table is not at beginning of .idata section.
6053
6054 2020-04-16 Pedro Alves <palves@redhat.com>
6055
6056 * inferior.c (delete_inferior): Use delete operator directly
6057 instead of delete_program_space.
6058 * progspace.c (add_program_space): New, factored out from
6059 program_space::program_space.
6060 (remove_program_space): New, factored out from
6061 delete_program_space.
6062 (program_space::program_space): Remove intro comment. Rewrite.
6063 (program_space::~program_space): Remove intro comment. Call
6064 remove_program_space.
6065 (delete_program_space): Delete.
6066 * progspace.h (program_space::program_space): Make explicit. Move
6067 intro comment here, adjusted.
6068 (program_space::~program_space): Move intro comment here,
6069 adjusted.
6070 (delete_program_space): Remove.
6071
6072 2020-04-16 Tom Tromey <tromey@adacore.com>
6073
6074 * windows-nat.c (windows_nat::handle_access_violation): New
6075 function.
6076 * nat/windows-nat.h (handle_access_violation): Declare.
6077 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6078 windows-nat.c. Call handle_access_violation.
6079
6080 2020-04-16 Tom de Vries <tdevries@suse.de>
6081
6082 PR symtab/25791
6083 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6084 CUs without psymtab.
6085
6086 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6087
6088 * python/python.c (do_start_initialization): Don't call
6089 PyEval_InitThreads for Python 3.9 and beyond.
6090
6091 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6092
6093 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6094 thread functions.
6095 (obsd_nat_target::wait): Likewise.
6096
6097 2020-04-15 Tom Tromey <tromey@adacore.com>
6098
6099 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6100 (DEBUG_EXCEPT): Use debug_printf.
6101
6102 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6103
6104 * completer.c (class completion_tracker::completion_hash_entry)
6105 <hash_name>: New member function.
6106 (completion_tracker::discard_completions): New callback to hash a
6107 completion_hash_entry, pass this to htab_create_alloc.
6108
6109 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6110
6111 * windows-nat.c (windows_make_so): Warn rather than stopping with
6112 an error if realpath() fails.
6113
6114 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6115
6116 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6117 (nbsd_nat_target::info_proc): Add do_status.
6118
6119 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6120 Tom de Vries <tdevries@suse.de>
6121
6122 PR symtab/25718
6123 * psympriv.h (struct partial_symtab::read_symtab)
6124 (struct partial_symtab::expand_psymtab)
6125 (struct partial_symtab::read_dependencies): Update comments.
6126 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6127 read_symtab for includer.
6128 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6129 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6130 (struct dwarf2_include_psymtab::m_readin): Remove.
6131 (struct dwarf2_include_psymtab::includer): New member function.
6132 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6133
6134 2020-04-14 Tom de Vries <tdevries@suse.de>
6135
6136 PR symtab/25720
6137 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6138 with NULL symbol_matcher and lookup_name.
6139 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6140 and lookup_name.
6141 * dwarf2/read.c (dw2_expand_symtabs_matching)
6142 (dw2_debug_names_expand_symtabs_matching): Same.
6143 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6144 Make lookup_name a pointer. Update comment.
6145 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6146 lookup_name being a pointer.
6147 * symfile.c (expand_symtabs_matching): Same.
6148 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6149 * linespec.c (iterate_over_all_matching_symtabs): Same.
6150
6151 2020-04-13 Tom Tromey <tom@tromey.com>
6152
6153 * run-on-main-thread.c: Update include.
6154 * unittests/main-thread-selftests.c: Update include.
6155 * tui/tui-win.c: Update include.
6156 * tui/tui-io.c: Update include.
6157 * tui/tui-interp.c: Update include.
6158 * tui/tui-hooks.c: Update include.
6159 * top.h: Update include.
6160 * top.c: Update include.
6161 * ser-base.c: Update include.
6162 * remote.c: Update include.
6163 * remote-notif.c: Update include.
6164 * remote-fileio.c: Update include.
6165 * record-full.c: Update include.
6166 * record-btrace.c: Update include.
6167 * python/python.c: Update include.
6168 * posix-hdep.c: Update include.
6169 * mingw-hdep.c: Update include.
6170 * mi/mi-main.c: Update include.
6171 * mi/mi-interp.c: Update include.
6172 * main.c: Update include.
6173 * linux-nat.c: Update include.
6174 * interps.c: Update include.
6175 * infrun.c: Update include.
6176 * inf-loop.c: Update include.
6177 * event-top.c: Update include.
6178 * event-loop.c: Move to ../gdbsupport/.
6179 * event-loop.h: Move to ../gdbsupport/.
6180 * async-event.h: Update include.
6181 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6182
6183 2020-04-13 Tom Tromey <tom@tromey.com>
6184
6185 * tui/tui-win.c: Include async-event.h.
6186 * remote.c: Include async-event.h.
6187 * remote-notif.c: Include async-event.h.
6188 * record-full.c: Include async-event.h.
6189 * record-btrace.c: Include async-event.h.
6190 * infrun.c: Include async-event.h.
6191 * event-top.c: Include async-event.h.
6192 * event-loop.h: Move some declarations to async-event.h.
6193 * event-loop.c: Don't include ser-event.h or top.h. Move some
6194 code to async-event.c.
6195 * async-event.h: New file.
6196 * async-event.c: New file.
6197 * Makefile.in (COMMON_SFILES): Add async-event.c.
6198 (HFILES_NO_SRCDIR): Add async-event.h.
6199
6200 2020-04-13 Tom Tromey <tom@tromey.com>
6201
6202 * utils.c (flush_streams): New function.
6203 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6204
6205 2020-04-13 Tom Tromey <tom@tromey.com>
6206
6207 * event-loop.c (handle_file_event): Use warning, not
6208 printf_unfiltered.
6209
6210 2020-04-13 Tom Tromey <tom@tromey.com>
6211
6212 * event-loop.c: Include <chrono>.
6213
6214 2020-04-13 Tom Tromey <tom@tromey.com>
6215
6216 * gdb_select.h: Move to ../gdbsupport/.
6217 * event-loop.c: Update include path.
6218 * top.c: Update include path.
6219 * ser-base.c: Update include path.
6220 * ui-file.c: Update include path.
6221 * ser-tcp.c: Update include path.
6222 * guile/scm-ports.c: Update include path.
6223 * posix-hdep.c: Update include path.
6224 * ser-unix.c: Update include path.
6225 * gdb_usleep.c: Update include path.
6226 * mingw-hdep.c: Update include path.
6227 * inflow.c: Update include path.
6228 * infrun.c: Update include path.
6229 * event-top.c: Update include path.
6230
6231 2020-04-13 Tom Tromey <tom@tromey.com>
6232
6233 * configure: Rebuild.
6234 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6235
6236 2020-04-13 Tom Tromey <tom@tromey.com>
6237
6238 * event-loop.h (start_event_loop): Don't declare.
6239 * event-loop.c (start_event_loop): Move...
6240 * main.c (start_event_loop): ...here. Now static.
6241
6242 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6243
6244 * MAINTAINERS: Update my email address.
6245
6246 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6247
6248 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6249 IP_ALL.
6250
6251 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6252
6253 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6254 (nbsd_nat_target::info_proc): Add do_cmdline.
6255
6256 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6257
6258 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6259 (nbsd_nat_target::info_proc): Add do_cwd.
6260
6261 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6262
6263 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6264
6265 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6266
6267 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6268 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6269 (nbsd_nat_target::info_proc): New functions.
6270 * nbsd-nat.c (kinfo_get_vmmap): New function.
6271 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6272 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6273 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6274 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6275 functions.
6276 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6277 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6278 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6279 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6280 (KINFO_VME_FLAG_GROWS_DOWN): New.
6281
6282 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6283
6284 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6285 bit shift.
6286
6287 2020-04-10 Tom Tromey <tromey@adacore.com>
6288
6289 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6290
6291 2020-04-10 Tom Tromey <tromey@adacore.com>
6292
6293 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6294 separate debug files.
6295
6296 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6297
6298 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6299 Move to...
6300 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6301 ... here.
6302 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6303 Check for STATUS_WX86_BREAKPOINT.
6304 (windows_nat_target::wait): Same.
6305
6306 2020-04-10 Tom de Vries <tdevries@suse.de>
6307
6308 PR cli/25808
6309 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6310
6311 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6312
6313 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6314 (Write After Approval): Remove Tom de Vries.
6315
6316 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6317
6318 revert partially:
6319 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6320
6321 * buildsym.c (record_line): Fix undefined behavior and preserve
6322 lines at eof.
6323
6324 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6325
6326 * auxv.h (svr4_auxv_parse): New.
6327 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6328 and generic_auxv_parse.
6329 (svr4_auxv_parse): Add.
6330 * obsd-tdep.c: Include "auxv.h".
6331 (obsd_auxv_parse): Remove.
6332 (obsd_init_abi): Remove comment.
6333 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6334 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6335 * nbsd-tdep.c: Include "auxv.h".
6336 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6337
6338 2020-04-08 Tom Tromey <tromey@adacore.com>
6339
6340 * nat/windows-nat.h (last_wait_event): Don't declare.
6341 (wait_for_debug_event): Update comment.
6342 * nat/windows-nat.c (last_wait_event): Now static.
6343
6344 2020-04-08 Tom Tromey <tromey@adacore.com>
6345
6346 * windows-nat.c (wait_for_debug_event): Move to
6347 nat/windows-nat.c.
6348 * nat/windows-nat.h (wait_for_debug_event): Declare.
6349 * nat/windows-nat.c (wait_for_debug_event): Move from
6350 windows-nat.c. No longer static.
6351
6352 2020-04-08 Tom Tromey <tromey@adacore.com>
6353
6354 * windows-nat.c (get_windows_debug_event): Use
6355 fetch_pending_stop.
6356 * nat/windows-nat.h (fetch_pending_stop): Declare.
6357 * nat/windows-nat.c (fetch_pending_stop): New function.
6358
6359 2020-04-08 Tom Tromey <tromey@adacore.com>
6360
6361 * windows-nat.c (windows_continue): Use matching_pending_stop and
6362 continue_last_debug_event.
6363 * nat/windows-nat.h (matching_pending_stop)
6364 (continue_last_debug_event): Declare.
6365 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6366 (matching_pending_stop, continue_last_debug_event): New
6367 functions.
6368
6369 2020-04-08 Tom Tromey <tromey@adacore.com>
6370
6371 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6372 (handle_exception_result): Move to nat/windows-nat.h.
6373 (DEBUG_EXCEPTION_SIMPLE): Remove.
6374 (windows_nat::handle_ms_vc_exception): New function.
6375 (handle_exception): Move to nat/windows-nat.c.
6376 (get_windows_debug_event): Update.
6377 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6378 nat/windows-nat.c.
6379 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6380 (handle_exception_result): Move from windows-nat.c.
6381 (handle_exception): Declare.
6382 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6383 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6384 windows-nat.c.
6385
6386 2020-04-08 Tom Tromey <tromey@adacore.com>
6387
6388 * windows-nat.c (exception_count, event_count): Remove.
6389 (handle_exception, get_windows_debug_event)
6390 (do_initial_windows_stuff): Update.
6391
6392 2020-04-08 Tom Tromey <tromey@adacore.com>
6393
6394 * windows-nat.c (windows_nat::handle_load_dll)
6395 (windows_nat::handle_unload_dll): Rename. No longer static.
6396 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6397 Declare.
6398
6399 2020-04-08 Tom Tromey <tromey@adacore.com>
6400
6401 * complaints.h (stop_whining): Declare at top-level.
6402 (complaint): Don't declare stop_whining.
6403
6404 2020-04-08 Tom Tromey <tromey@adacore.com>
6405
6406 * windows-nat.c (windows_nat::handle_output_debug_string):
6407 Rename. No longer static.
6408 * nat/windows-nat.h (handle_output_debug_string): Declare.
6409
6410 2020-04-08 Tom Tromey <tromey@adacore.com>
6411
6412 * windows-nat.c (current_process_handle, current_process_id)
6413 (main_thread_id, last_sig, current_event, last_wait_event)
6414 (current_windows_thread, desired_stop_thread_id, pending_stops)
6415 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6416 (display_selectors, fake_create_process)
6417 (get_windows_debug_event): Update.
6418 * nat/windows-nat.h (current_process_handle, current_process_id)
6419 (main_thread_id, last_sig, current_event, last_wait_event)
6420 (current_windows_thread, desired_stop_thread_id, pending_stops)
6421 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6422 * nat/windows-nat.c (current_process_handle, current_process_id)
6423 (main_thread_id, last_sig, current_event, last_wait_event)
6424 (current_windows_thread, desired_stop_thread_id, pending_stops)
6425 (siginfo_er): New globals. Move from windows-nat.c.
6426
6427 2020-04-08 Tom Tromey <tromey@adacore.com>
6428
6429 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6430 (handle_load_dll): Update.
6431 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6432
6433 2020-04-08 Tom Tromey <tromey@adacore.com>
6434
6435 * windows-nat.c (enum thread_disposition_type): Move to
6436 nat/windows-nat.h.
6437 (windows_nat::thread_rec): Rename from thread_rec. No longer
6438 static.
6439 (windows_add_thread, windows_nat_target::fetch_registers)
6440 (windows_nat_target::store_registers, handle_exception)
6441 (windows_nat_target::resume, get_windows_debug_event)
6442 (windows_nat_target::get_tib_address)
6443 (windows_nat_target::thread_name)
6444 (windows_nat_target::thread_alive): Update.
6445 * nat/windows-nat.h (enum thread_disposition_type): Move from
6446 windows-nat.c.
6447 (thread_rec): Declare.
6448
6449 2020-04-08 Tom Tromey <tromey@adacore.com>
6450
6451 * windows-nat.c: Add "using namespace".
6452 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6453 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6454
6455 2020-04-08 Tom Tromey <tromey@adacore.com>
6456
6457 * nat/windows-nat.h (struct windows_thread_info): Declare
6458 destructor.
6459 * nat/windows-nat.c (~windows_thread_info): New.
6460
6461 2020-04-08 Tom Tromey <tromey@adacore.com>
6462
6463 PR gdb/22992
6464 * windows-nat.c (current_event): Update comment.
6465 (last_wait_event, desired_stop_thread_id): New globals.
6466 (struct pending_stop): New.
6467 (pending_stops): New global.
6468 (windows_nat_target) <stopped_by_sw_breakpoint>
6469 <supports_stopped_by_sw_breakpoint>: New methods.
6470 (windows_fetch_one_register): Add assertions. Adjust PC.
6471 (windows_continue): Handle pending stops. Suspend other threads
6472 when stepping. Use last_wait_event
6473 (wait_for_debug_event): New function.
6474 (get_windows_debug_event): Use wait_for_debug_event. Handle
6475 pending stops. Queue spurious stops.
6476 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6477 (windows_nat_target::kill): Use wait_for_debug_event.
6478 * nat/windows-nat.h (struct windows_thread_info)
6479 <stopped_at_software_breakpoint>: New field.
6480 * nat/windows-nat.c (windows_thread_info::resume): Clear
6481 stopped_at_software_breakpoint.
6482
6483 2020-04-08 Tom Tromey <tromey@adacore.com>
6484
6485 * windows-nat.c (enum thread_disposition_type): New.
6486 (thread_rec): Replace "get_context" parameter with "disposition";
6487 change type.
6488 (windows_add_thread, windows_nat_target::fetch_registers)
6489 (windows_nat_target::store_registers, handle_exception)
6490 (windows_nat_target::resume, get_windows_debug_event)
6491 (windows_nat_target::get_tib_address)
6492 (windows_nat_target::thread_name)
6493 (windows_nat_target::thread_alive): Update.
6494
6495 2020-04-08 Tom Tromey <tromey@adacore.com>
6496
6497 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6498 (windows_continue): Use windows_continue::resume.
6499 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6500 resume>: Declare new methods.
6501 * nat/windows-nat.c: New file.
6502 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6503
6504 2020-04-08 Tom Tromey <tromey@adacore.com>
6505
6506 * windows-nat.c (windows_add_thread, windows_delete_thread)
6507 (windows_nat_target::fetch_registers)
6508 (windows_nat_target::store_registers, fake_create_process)
6509 (windows_nat_target::resume, windows_nat_target::resume)
6510 (get_windows_debug_event, windows_nat_target::wait)
6511 (windows_nat_target::pid_to_str)
6512 (windows_nat_target::get_tib_address)
6513 (windows_nat_target::get_ada_task_ptid)
6514 (windows_nat_target::thread_name)
6515 (windows_nat_target::thread_alive): Use lwp, not tid.
6516
6517 2020-04-08 Tom Tromey <tromey@adacore.com>
6518
6519 * windows-nat.c (handle_exception)
6520 (windows_nat_target::thread_name): Update.
6521 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6522 <name>: Now unique_xmalloc_ptr.
6523
6524 2020-04-08 Tom Tromey <tromey@adacore.com>
6525
6526 * windows-nat.c (thread_rec)
6527 (windows_nat_target::fetch_registers): Update.
6528 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6529 Update comment.
6530 <debug_registers_changed, reload_context>: Now bool.
6531
6532 2020-04-08 Tom Tromey <tromey@adacore.com>
6533
6534 * windows-nat.c (windows_add_thread): Use new.
6535 (windows_init_thread_list, windows_delete_thread): Use delete.
6536 (get_windows_debug_event): Update.
6537 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6538 destructor, and initializers.
6539
6540 2020-04-08 Tom Tromey <tromey@adacore.com>
6541
6542 * windows-nat.c (struct windows_thread_info): Remove.
6543 * nat/windows-nat.h: New file.
6544
6545 2020-04-08 Tom Tromey <tromey@adacore.com>
6546
6547 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6548 (thread_rec, windows_add_thread, windows_delete_thread)
6549 (windows_continue): Update.
6550
6551 2020-04-08 Tom Tromey <tromey@adacore.com>
6552
6553 * windows-nat.c (struct windows_thread_info): Remove typedef.
6554 (thread_head): Remove.
6555 (thread_list): New global.
6556 (thread_rec, windows_add_thread, windows_init_thread_list)
6557 (windows_delete_thread, windows_continue): Update.
6558
6559 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6560
6561 * windows-tdep.h (windows_init_abi): Add comment.
6562 (cygwin_init_abi): New declaration.
6563 * windows-tdep.c: Split signal enumeration in two, one for
6564 Windows and one for Cygwin.
6565 (windows_gdb_signal_to_target): Only deal with signal of the
6566 Windows OS ABI.
6567 (cygwin_gdb_signal_to_target): New function.
6568 (windows_init_abi): Rename to windows_init_abi_common, don't set
6569 gdb_signal_to_target gdbarch method. Add new new function with
6570 this name.
6571 (cygwin_init_abi): New function.
6572 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6573 comment. Don't call windows_init_abi.
6574 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6575 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6576 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6577 i386_windows_init_abi_common, don't call windows_init_abi. Add
6578 a new function of this name.
6579 (i386_cygwin_init_abi): New function.
6580 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6581 OS ABI Cygwin.
6582
6583 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6584
6585 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6586 parameter.c.
6587 (dwarf2_read_gdb_index): Update.
6588
6589 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6590
6591 * nbsd-tdep.c: Include "objfiles.h".
6592 (nbsd_skip_solib_resolver): New.
6593 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6594
6595 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6596
6597 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6598 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6599 with DW_LLE_base_addressx are being emitted in DWARFv5.
6600 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6601 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6602 unsigned integer.
6603
6604 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6605
6606 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6607 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6608 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6609 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6610 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6611 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6612 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6613
6614
6615 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6616
6617 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6618 (read_loclist_index): New function definition.
6619 (lookup_loclist_base): New function definition.
6620 (read_loclist_header): New function definition.
6621 (dwarf2_cu): Add loclist_base and loclist_header field.
6622 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6623 (read_full_die_1): Read the value of DW_AT_loclists_base.
6624 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6625 (read_attribute_value): Handle DW_FORM_loclistx.
6626 (skip_one_die): Handle DW_FORM_loclistx.
6627 (loclist_header): New structure declaration.
6628 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6629
6630 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6631
6632 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6633 constructor. Remove `addr` parameter from other constructor and
6634 add `per_cu` parameter.
6635 * dwarf2/read.c (create_partial_symtab): Update.
6636
6637 2020-04-07 Tom de Vries <tdevries@suse.de>
6638
6639 PR symtab/25796
6640 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6641 (partial_die_info::fixup): Inherit has_const_value.
6642
6643 2020-04-07 Tom de Vries <tdevries@suse.de>
6644
6645 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6646 symbols without address.
6647
6648 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6649
6650 * nbsd-nat.h (struct thread_info): Add forward declaration.
6651 (nbsd_nat_target::thread_alive): Add.
6652 (nbsd_nat_target::thread_name): Likewise.
6653 (nbsd_nat_target::update_thread_list): Likewise.
6654 (update_thread_list::post_attach): Likewise.
6655 (post_attach::pid_to_str): Likewise.
6656 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6657 (nbsd_thread_lister): Add.
6658 (nbsd_nat_target::thread_alive): Likewise.
6659 (nbsd_nat_target::thread_name): Likewise.
6660 (nbsd_add_threads): Likewise.
6661 (update_thread_list::post_attach): Likewise.
6662 (nbsd_nat_target::update_thread_list): Likewise.
6663 (post_attach::pid_to_str): Likewise.
6664
6665 2020-04-06 Tom Tromey <tromey@adacore.com>
6666
6667 * ada-valprint.c (print_variant_part): Extract the variant field.
6668 (print_field_values): Use the field as the outer value when
6669 recursing.
6670
6671 2020-04-06 Tom Tromey <tromey@adacore.com>
6672
6673 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6674 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6675 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6676 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6677 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6678
6679 2020-04-06 Tom Tromey <tromey@adacore.com>
6680
6681 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6682 TYPE_CODE_ERROR.
6683
6684 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6685
6686 * nbsd-tdep.c: Include "gdbarch.h".
6687 Define enum with NetBSD signal numbers.
6688 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6689 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6690 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6691 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6692 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6693 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6694 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6695 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6696 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6697 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6698 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6699 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6700
6701 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6702
6703 PR gdb/25325
6704 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6705
6706 2020-04-03 Tom Tromey <tromey@adacore.com>
6707
6708 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6709 Read constant block.
6710
6711 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6712
6713 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6714 (gdb_bfd_get_full_section_contents): New declaration.
6715 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6716 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6717 gdb_bfd_get_full_section_contents.
6718
6719 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6720
6721 * exec.c (build_section_table): Replace internal_error with
6722 gdb_assert.
6723 (section_table_xfer_memory_partial): Likewise.
6724 * mdebugread.c (parse_partial_symbols): Likewise.
6725 * psymtab.c (lookup_partial_symbol): Likewise.
6726 * utils.c (wrap_here): Likewise.
6727
6728 2020-04-02 Tom Tromey <tromey@adacore.com>
6729
6730 * f-lang.c (build_fortran_types): Use arch_type to initialize
6731 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6732
6733 2020-04-02 Tom Tromey <tromey@adacore.com>
6734
6735 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6736 of attributes.
6737
6738 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6739 Bernd Edlinger <bernd.edlinger@hotmail.de>
6740 Tom Tromey <tromey@adacore.com>
6741
6742 * buildsym.c (buildsym_compunit::record_line): Remove
6743 deduplication code.
6744
6745 2020-04-02 Tom de Vries <tdevries@suse.de>
6746
6747 PR ada/24671
6748 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6749
6750 2020-04-02 Tom de Vries <tdevries@suse.de>
6751
6752 * dwarf2/read.c (dwarf2_gdb_index_functions,
6753 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6754 NULL.
6755 * psymtab.c (psym_lookup_global_symbol_language): New function.
6756 (psym_functions): Init psym_lookup_global_symbol_language with
6757 psym_lookup_global_symbol_language.
6758 * symfile-debug.c (debug_sym_quick_functions): Init
6759 lookup_global_symbol_language with NULL.
6760 * symfile.c (set_initial_language): Remove fixme comment.
6761 * symfile.h (struct quick_symbol_functions): Add
6762 lookup_global_symbol_language.
6763 * symtab.c (find_quick_global_symbol_language): New function.
6764 (find_main_name): Use find_quick_global_symbol_language.
6765
6766 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6767
6768 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6769
6770 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6771
6772 * buildsym.c (record_line): Fix undefined behavior and preserve
6773 lines at eof.
6774
6775 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6776
6777 * buildsym.c (record_line): Fix the resizing condition.
6778
6779 2020-04-01 Tom Tromey <tom@tromey.com>
6780
6781 * value.h (value_literal_complex): Add comment.
6782 * valops.c (value_literal_complex): Refer to value.h.
6783
6784 2020-04-01 Tom Tromey <tom@tromey.com>
6785
6786 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6787 (scalar_type): New rule, from typebase.
6788 (typebase): Use scalar_type. Recognize complex types.
6789 (field_name): Handle FLOAT_KEYWORD.
6790 (ident_tokens): Add _Complex and __complex__.
6791
6792 2020-04-01 Tom Tromey <tom@tromey.com>
6793
6794 PR exp/25299:
6795 * valarith.c (promotion_type, complex_binop): New functions.
6796 (scalar_binop): Handle complex numbers. Use promotion_type.
6797 (value_pos, value_neg, value_complement): Handle complex numbers.
6798
6799 2020-04-01 Tom Tromey <tom@tromey.com>
6800
6801 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6802 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6803 (parse_number): Handle complex numbers.
6804
6805 2020-04-01 Tom Tromey <tom@tromey.com>
6806
6807 * c-valprint.c (c_decorations): Change complex suffix to "i".
6808
6809 2020-04-01 Tom Tromey <tom@tromey.com>
6810
6811 * valprint.c (generic_value_print_complex): Use accessors.
6812 * value.h (value_real_part, value_imaginary_part): Declare.
6813 * valops.c (value_real_part, value_imaginary_part): New
6814 functions.
6815 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6816
6817 2020-04-01 Tom Tromey <tom@tromey.com>
6818
6819 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6820 (read_range_type): Update.
6821 * mdebugread.c (basic_type): Update.
6822 * go-lang.c (build_go_types): Use init_complex_type.
6823 * gdbtypes.h (struct main_type) <complex_type>: New member.
6824 (init_complex_type): Update.
6825 (arch_complex_type): Don't declare.
6826 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6827 Make name if none given. Use alloc_type_copy. Look for cached
6828 complex type.
6829 (arch_complex_type): Remove.
6830 (gdbtypes_post_init): Use init_complex_type.
6831 * f-lang.c (build_fortran_types): Use init_complex_type.
6832 * dwarf2/read.c (read_base_type): Update.
6833 * d-lang.c (build_d_types): Use init_complex_type.
6834 * ctfread.c (read_base_type): Update.
6835
6836 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6837
6838 * infrun.c (stop_all_threads): Update assertion, plus when
6839 stopping threads, take into account that we might be trying
6840 to stop an all-stop target.
6841 (stop_waiting): Call 'stop_all_threads' if there exists a
6842 non-stop target.
6843
6844 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6845
6846 * target.h (exists_non_stop_target): New function declaration.
6847 * target.c (exists_non_stop_target): New function.
6848
6849 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6850
6851 PR gdb/24789
6852 * eval.c (is_integral_or_integral_reference): New function.
6853 (evaluate_subexp_standard): Allow integer references in
6854 pointer arithmetic.
6855
6856 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6857
6858 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6859 check for no ptid in the stop reply when the target is non-stop.
6860
6861 2020-04-01 Tom Tromey <tromey@adacore.com>
6862
6863 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6864 "name" parameter to rvalue reference. Initialize m_name_holder.
6865 <lookup_name_info>: New overloads.
6866 <name>: Return gdb::string_view.
6867 <c_str>: New method.
6868 <make_ignore_params>: Update.
6869 <search_name_hash>: Update.
6870 <language_lookup_name>: Return const char *.
6871 <m_name>: Change type.
6872 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6873 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6874 (lookup_name_info::match_any): Update.
6875 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6876 Update.
6877 * minsyms.c (linkage_name_str): Update.
6878 * language.c (default_symbol_name_matcher): Update.
6879 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6880 Update.
6881 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6882 (ada_lookup_name_info::ada_lookup_name_info): Update.
6883 (literal_symbol_name_matcher): Update.
6884
6885 2020-04-01 Tom Tromey <tromey@adacore.com>
6886
6887 * psymtab.c (psymtab_search_name): Remove function.
6888 (psym_lookup_symbol): Create search name and lookup name here.
6889 (lookup_partial_symbol): Remove "name" parameter; add
6890 lookup_name.
6891 (psym_expand_symtabs_for_function): Update.
6892
6893 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6894
6895 PR tui/25597:
6896 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6897
6898 2020-03-31 Tom Tromey <tromey@adacore.com>
6899
6900 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6901 memcpy.
6902
6903 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6904
6905 * features/riscv/32bit-csr.xml: Regenerated.
6906 * features/riscv/64bit-csr.xml: Regenerated.
6907
6908 2020-03-30 Tom Tromey <tromey@adacore.com>
6909
6910 * ada-valprint.c (print_variant_part): Update.
6911 * ada-lang.h (ada_which_variant_applies): Update.
6912 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6913 outer_valaddr parameters; replace with "outer" value parameter.
6914 (to_fixed_variant_branch_type): Update.
6915
6916 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6917
6918 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6919 <list>. Remove inclusion of observable.h.
6920 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6921 (struct arch_lwp_info): New struct.
6922 (class ppc_linux_dreg_interface): New class.
6923 (struct ppc_linux_process_info): New struct.
6924 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6925 <low_new_clone, low_forget_process, low_prepare_to_resume>
6926 <copy_thread_dreg_state, mark_thread_stale>
6927 <mark_debug_registers_changed, register_hw_breakpoint>
6928 <clear_hw_breakpoint, register_wp, clear_wp>
6929 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6930 <num_memory_accesses, get_trigger_type>
6931 <create_watchpoint_request, hwdebug_point_cmp>
6932 <init_arch_lwp_info, get_arch_lwp_info>
6933 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6934 methods.
6935 <struct ptid_hash>: New inner struct.
6936 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6937 members.
6938 (saved_dabr_value, hwdebug_info, max_slots_number)
6939 (struct hw_break_tuple, struct thread_points, ppc_threads)
6940 (have_ptrace_hwdebug_interface)
6941 (hwdebug_find_thread_points_by_tid)
6942 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6943 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6944 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6945 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6946 use m_dreg_interface.
6947 (hwdebug_point_cmp): Change to...
6948 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6949 reference arguments instead of pointers.
6950 (ppc_linux_nat_target::ranged_break_num_registers): Use
6951 m_dreg_interface.
6952 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6953 m_dreg_interface. Call register_hw_breakpoint.
6954 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6955 m_dreg_interface. Call clear_hw_breakpoint.
6956 (get_trigger_type): Change to...
6957 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6958 comment.
6959 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6960 use m_dreg_interface. Call register_hw_breakpoint.
6961 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6962 use m_dreg_interface. Call clear_hw_breakpoint.
6963 (can_use_watchpoint_cond_accel): Change to...
6964 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6965 method. Update comment, use m_dreg_interface and
6966 m_process_info.
6967 (calculate_dvc): Change to...
6968 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6969 m_dreg_interface.
6970 (num_memory_accesses): Change to...
6971 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6972 (check_condition): Change to...
6973 (ppc_linux_nat_target::check_condition): ...this method.
6974 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6975 comment, use m_dreg_interface.
6976 (create_watchpoint_request): Change to...
6977 (ppc_linux_nat_target::create_watchpoint_request): ...this
6978 method. Use m_dreg_interface.
6979 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6980 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6981 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6982 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6983 (ppc_linux_nat_target::low_forget_process)
6984 (ppc_linux_nat_target::low_new_fork)
6985 (ppc_linux_nat_target::low_new_clone)
6986 (ppc_linux_nat_target::low_delete_thread)
6987 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6988 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6989 only call mark_thread_stale.
6990 (ppc_linux_thread_exit): Remove.
6991 (ppc_linux_nat_target::stopped_data_address): Change to...
6992 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6993 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6994 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6995 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6996 comment. Call low_stopped_data_address.
6997 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6998 m_dreg_interface.
6999 (ppc_linux_nat_target::masked_watch_num_registers): Use
7000 m_dreg_interface.
7001 (ppc_linux_nat_target::copy_thread_dreg_state)
7002 (ppc_linux_nat_target::mark_thread_stale)
7003 (ppc_linux_nat_target::mark_debug_registers_changed)
7004 (ppc_linux_nat_target::register_hw_breakpoint)
7005 (ppc_linux_nat_target::clear_hw_breakpoint)
7006 (ppc_linux_nat_target::register_wp)
7007 (ppc_linux_nat_target::clear_wp)
7008 (ppc_linux_nat_target::init_arch_lwp_info)
7009 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7010 (_initialize_ppc_linux_nat): Remove observer callback.
7011
7012 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7013
7014 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7015 (ppc_linux_nat_target::auxv_parse)
7016 (ppc_linux_nat_target::read_description)
7017 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7018 Move up.
7019
7020 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7021
7022 * linux-nat.h (low_new_clone): New method.
7023 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7024
7025 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7026
7027 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7028 (dbx_expand_psymtab): ... this.
7029 (start_psymtab): Update.
7030 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7031 (mdebug_expand_psymtab): ... this.
7032 (parse_partial_symbols): Update.
7033 (new_psymtab): Update.
7034 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7035 (xcoff_expand_psymtab): ... this.
7036 (xcoff_start_psymtab): Update.
7037
7038 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7039
7040 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7041 <expand_dependencies>: ... this.
7042 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7043 (partial_symtab::expand_dependencies): ... this.
7044 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7045 Update.
7046 (dwarf2_psymtab::expand_psymtab): Update.
7047 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7048 * mdebugread.c (psymtab_to_symtab_1): Update.
7049 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7050
7051 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7052
7053 * psympriv.h (discard_psymtab): Remove.
7054 * dbxread.c (dbx_end_psymtab): Update.
7055 * xcoffread.c (xcoff_end_psymtab): Update.
7056
7057 2020-03-28 Tom Tromey <tom@tromey.com>
7058
7059 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7060 comment.
7061
7062 2020-03-28 Tom Tromey <tom@tromey.com>
7063
7064 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7065
7066 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7067
7068 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7069
7070 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7071
7072 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7073
7074 2020-03-26 Tom Tromey <tom@tromey.com>
7075
7076 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7077 (mark_common_block_symbol_computed, read_tag_string_type)
7078 (attr_to_dynamic_prop, read_subrange_type): Update.
7079 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7080 to be methods on struct attribute.
7081 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7082 (read_call_site_scope, partial_die_info::read)
7083 (partial_die_info::read, lookup_die_type, follow_die_ref):
7084 Update.
7085 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7086 from dwarf2_get_ref_die_offset.
7087 (attribute::constant_value): New method, from
7088 dwarf2_get_attr_constant_value.
7089 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7090 Declare method.
7091 <constant_value>: New method.
7092
7093 2020-03-26 Tom Tromey <tom@tromey.com>
7094
7095 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7096 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7097 (dwarf_type_encoding_name): Move to stringify.c.
7098 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7099 * dwarf2/stringify.c: New file.
7100 * dwarf2/stringify.h: New file.
7101
7102 2020-03-26 Tom Tromey <tom@tromey.com>
7103
7104 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7105 Rewrite.
7106
7107 2020-03-26 Tom Tromey <tom@tromey.com>
7108
7109 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7110 methods.
7111 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7112 (lookup_ranges_base): Likewise.
7113 (read_cutu_die_from_dwo, read_full_die_1): Update.
7114
7115 2020-03-26 Tom Tromey <tom@tromey.com>
7116
7117 * dwarf2/read.c (read_import_statement, read_file_scope)
7118 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7119 (read_lexical_block_scope, read_call_site_scope)
7120 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7121 (handle_struct_member_die, process_structure_scope)
7122 (update_enumeration_type_from_children)
7123 (process_enumeration_scope, read_array_type, read_common_block)
7124 (read_namespace, read_module, read_subroutine_type): Update.
7125 (sibling_die): Remove.
7126
7127 2020-03-26 Tom Tromey <tom@tromey.com>
7128
7129 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7130 (build_type_psymtabs_reader, read_structure_type)
7131 (read_enumeration_type, read_full_die_1): Update.
7132 (dwarf2_attr_no_follow): Move to die.h.
7133 * dwarf2/die.h (struct die_info) <attr>: New method.
7134
7135 2020-03-26 Tom Tromey <tom@tromey.com>
7136
7137 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7138 <base_address>: Now an optional.
7139 (dwarf2_find_base_address, dwarf2_rnglists_process)
7140 (dwarf2_ranges_process, fill_in_loclist_baton)
7141 (dwarf2_symbol_mark_computed): Update.
7142
7143 2020-03-26 Tom Tromey <tom@tromey.com>
7144
7145 * dwarf2/read.c (struct die_info): Move to die.h.
7146 * dwarf2/die.h: New file.
7147
7148 2020-03-26 Tom Tromey <tom@tromey.com>
7149
7150 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7151 * dwarf2/read.c
7152 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7153 Move to line-header.c.
7154 (read_checked_initial_length_and_offset, read_formatted_entries):
7155 Likewise.
7156 (dwarf_decode_line_header): Split into two.
7157 * dwarf2/line-header.c
7158 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7159 Move from read.c.
7160 (read_checked_initial_length_and_offset, read_formatted_entries):
7161 Likewise.
7162 (dwarf_decode_line_header): New function, split from read.c.
7163
7164 2020-03-26 Tom Tromey <tom@tromey.com>
7165
7166 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7167 Declare method.
7168 * dwarf2/read.c (read_attribute_value): Update.
7169 (dwarf2_per_objfile::read_line_string): Rename from
7170 read_indirect_line_string.
7171 (read_formatted_entries): Update.
7172
7173 2020-03-26 Tom Tromey <tom@tromey.com>
7174
7175 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7176 variable.
7177
7178 2020-03-26 Tom Tromey <tom@tromey.com>
7179
7180 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7181 const.
7182 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7183 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7184 parameter const.
7185
7186 2020-03-26 Tom Tromey <tom@tromey.com>
7187
7188 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7189 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7190 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7191 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7192
7193 2020-03-26 Tom Tromey <tom@tromey.com>
7194
7195 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7196 file_names_size, file_full_name, file_file_name>: Use const.
7197 <file_name_at, file_names>: Add const overload.
7198 * dwarf2/line-header.c (line_header::file_file_name)
7199 (line_header::file_full_name): Update.
7200
7201 2020-03-26 Tom Tromey <tom@tromey.com>
7202
7203 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7204 (macro_start_file, consume_improper_spaces)
7205 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7206 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7207 (dwarf_decode_macros): Move to macro.c.
7208 * dwarf2/macro.c: New file.
7209 * dwarf2/macro.h: New file.
7210 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7211
7212 2020-03-26 Tom Tromey <tom@tromey.com>
7213
7214 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7215 method.
7216 * dwarf2/section.c: New method. From
7217 read_indirect_string_at_offset_from.
7218 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7219 (read_indirect_string_at_offset_from): Move to section.c.
7220 (read_indirect_string_at_offset): Rewrite.
7221 (read_indirect_line_string_at_offset): Remove.
7222 (read_indirect_string, read_indirect_line_string)
7223 (dwarf_decode_macro_bytes): Update.
7224
7225 2020-03-26 Tom Tromey <tom@tromey.com>
7226
7227 * dwarf2/section.h (struct dwarf2_section_info)
7228 <overload_complaint>: Declare.
7229 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7230 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7231 Rename from dwarf2_section_buffer_overflow_complaint.
7232 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7233 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7234
7235 2020-03-26 Tom Tromey <tom@tromey.com>
7236
7237 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7238 Declare.
7239 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7240 Move from read.c.
7241 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7242 to section.c.
7243
7244 2020-03-26 Tom Tromey <tom@tromey.com>
7245
7246 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7247
7248 2020-03-26 Tom Tromey <tom@tromey.com>
7249
7250 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7251 "builder".
7252 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7253 parameter.
7254 (dwarf_decode_macros): Update.
7255
7256 2020-03-26 Tom Tromey <tom@tromey.com>
7257
7258 * dwarf2/read.c (read_attribute_value): Update.
7259 (read_indirect_string_from_dwz): Move to dwz.c; change into
7260 method.
7261 (dwarf_decode_macro_bytes): Update.
7262 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7263 * dwarf2/dwz.c: New file.
7264 * Makefile.in (COMMON_SFILES): Add dwz.c.
7265
7266 2020-03-26 Tom Tromey <tom@tromey.com>
7267
7268 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7269 * dwarf2/read.c: Add include.
7270 * dwarf2/index-write.c: Add include.
7271 * dwarf2/index-cache.c: Add include.
7272 * dwarf2/dwz.h: New file.
7273
7274 2020-03-25 Tom Tromey <tom@tromey.com>
7275
7276 * compile/compile-object-load.c (get_out_value_type): Mention
7277 correct symbol name in error message.
7278
7279 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7280
7281 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7282
7283 2020-03-25 Tom de Vries <tdevries@suse.de>
7284
7285 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7286 * symmisc.c (dump_symtab_1): Print user and includes fields.
7287 (maintenance_info_symtabs): Same.
7288
7289 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7290
7291 PR gdb/25534
7292 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7293 (riscv_regcache_cooked_write): New function.
7294 (riscv_push_dummy_call): Use new function.
7295 (riscv_return_value): Likewise.
7296
7297 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7298
7299 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7300 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7301 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7302 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7303 * infrun.c (follow_fork): Likewise.
7304 (follow_fork_inferior): Likewise.
7305 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7306 * linux-nat.h (class linux_nat_target): Likewise.
7307 * remote.c (class remote_target) <follow_fork>: Likewise.
7308 (remote_target::follow_fork): Likewise.
7309 * target-delegates.c: Re-generate.
7310 * target.c (default_follow_fork): Likewise.
7311 (target_follow_fork): Likewise.
7312 * target.h (struct target_ops) <follow_fork>: Likewise.
7313 (target_follow_fork): Likewise.
7314
7315 2020-03-24 Tom de Vries <tdevries@suse.de>
7316
7317 * psymtab.c (maintenance_info_psymtabs): Print user field.
7318
7319 2020-03-20 Tom Tromey <tromey@adacore.com>
7320
7321 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7322 const.
7323 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7324 const.
7325
7326 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7327
7328 * ptrace.m4: Don't check for ptrace declaration.
7329 * config.in: Re-generate.
7330 * configure: Re-generate.
7331 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7332 not defined.
7333
7334 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7335
7336 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7337 `PTRACE_TYPE_RET'.
7338 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7339 * sparc-nat.c (gdb_ptrace): Likewise.
7340 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7341
7342 2020-03-20 Tom Tromey <tromey@adacore.com>
7343
7344 * c-exp.y (lex_one_token): Fix assert.
7345
7346 2020-03-20 Tom Tromey <tromey@adacore.com>
7347
7348 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7349 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7350 strncpy call.
7351
7352 2020-03-20 Tom Tromey <tromey@adacore.com>
7353
7354 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7355
7356 2020-03-20 Tom Tromey <tromey@adacore.com>
7357
7358 * ada-valprint.c (print_variant_part): Remove parameters; switch
7359 to value-based API.
7360 (print_field_values): Likewise.
7361 (ada_val_print_struct_union): Likewise.
7362 (ada_value_print_1): Update.
7363
7364 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7365
7366 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7367 nbsd_nat_target instead of inf_ptrace_target.
7368 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7369 nbsd_nat_target.
7370
7371 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7372
7373 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7374 it to the ptrace call.
7375 * (store_registers): Likewise.
7376
7377 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7378
7379 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7380 it to the ptrace call.
7381 * (store_registers): Likewise.
7382
7383 2020-03-19 Luis Machado <luis.machado@linaro.org>
7384
7385 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7386 valid, fetch vg value from ptrace.
7387
7388 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7389 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7390 * inf-ptrace.c: Likewise.
7391 * (gdb_ptrace): Add.
7392 * (inf_ptrace_target::resume): Update.
7393 * (inf_ptrace_target::xfer_partial): Likewise.
7394 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7395 * (inf_ptrace_peek_poke): Update.
7396
7397 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7398
7399 * x86-bsd-nat.c (gdb_ptrace): New.
7400 * (x86bsd_dr_set): Add new argument `ptid'.
7401 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7402 x86bsd_dr_set_addr): Update.
7403
7404 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7405
7406 * remote.c (remote_target::process_stop_reply): Handle events for
7407 all threads differently.
7408
7409 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7410
7411 * completer.c (completion_tracker::remove_completion): Define new
7412 function.
7413 * completer.h (completion_tracker::remove_completion): Declare new
7414 function.
7415 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7416 when adding a C++ function symbol.
7417
7418 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7419
7420 * completer.c (completion_tracker::completion_hash_entry): Define
7421 new class.
7422 (advance_to_filename_complete_word_point): Call
7423 recompute_lowest_common_denominator.
7424 (completion_tracker::completion_tracker): Call discard_completions
7425 to setup the hash table.
7426 (completion_tracker::discard_completions): Allow for being called
7427 from the constructor, pass new equal function, and element deleter
7428 when constructing the hash table. Initialise new class member
7429 variables.
7430 (completion_tracker::maybe_add_completion): Remove use of
7431 m_entries_vec, and store more information into m_entries_hash.
7432 (completion_tracker::recompute_lcd_visitor): New function, most
7433 content taken from...
7434 (completion_tracker::recompute_lowest_common_denominator):
7435 ...here, this now just visits each item in the hash calling the
7436 above visitor.
7437 (completion_tracker::build_completion_result): Remove use of
7438 m_entries_vec, call recompute_lowest_common_denominator.
7439 * completer.h (completion_tracker::have_completions): Remove use
7440 of m_entries_vec.
7441 (completion_tracker::completion_hash_entry): Declare new class.
7442 (completion_tracker::recompute_lowest_common_denominator): Change
7443 function signature.
7444 (completion_tracker::recompute_lcd_visitor): Declare new function.
7445 (completion_tracker::m_entries_vec): Delete.
7446 (completion_tracker::m_entries_hash): Initialize to NULL.
7447 (completion_tracker::m_lowest_common_denominator_valid): New
7448 member variable.
7449 (completion_tracker::m_lowest_common_denominator_max_length): New
7450 member variable.
7451
7452 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7453
7454 * regformats/regdef.h: Put reg in gdb namespace.
7455
7456 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7457
7458 * i386-bsd-nat.c (gdb_ptrace): New.
7459 * (i386bsd_fetch_inferior_registers,
7460 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7461 * (i386bsd_fetch_inferior_registers,
7462 i386bsd_store_inferior_registers) Use gdb_ptrace.
7463
7464 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7465
7466 * amd64-bsd-nat.c (gdb_ptrace): New.
7467 * (amd64bsd_fetch_inferior_registers,
7468 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7469 * (amd64bsd_fetch_inferior_registers,
7470 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7471
7472 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7473
7474 * user-regs.c (user_reg::read): Rename to...
7475 (user_reg::xread): ...this.
7476 * (append_user_reg): Rename argument `read' to `xread'.
7477 * (user_reg_add_builtin): Likewise.
7478 * (user_reg_add): Likewise.
7479 * (value_of_user_reg): Likewise.
7480
7481 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7482
7483 * sparc-nat.c (gdb_ptrace): New.
7484 * sparc-nat.c (sparc_fetch_inferior_registers)
7485 (sparc_store_inferior_registers) Remove obsolete comment.
7486 * sparc-nat.c (sparc_fetch_inferior_registers)
7487 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7488 * sparc-nat.c (sparc_fetch_inferior_registers)
7489 (sparc_store_inferior_registers) Use gdb_ptrace.
7490
7491 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7492
7493 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7494 it to the ptrace call.
7495 * sh-nbsd-nat.c (store_registers): Likewise.
7496
7497 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7498
7499 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7500 nbsd_nat_target instead of inf_ptrace_target.
7501 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7502 nbsd_nat_target.
7503
7504 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7505
7506 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7507
7508 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7509
7510 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7511 <sys/sysctl.h>.
7512 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7513
7514 2020-03-17 Tom de Vries <tdevries@suse.de>
7515
7516 PR gdb/23710
7517 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7518 fields.
7519 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7520 fields.
7521 (process_imported_unit_die): Skip import of c++ CUs.
7522
7523 2020-03-16 Tom Tromey <tom@tromey.com>
7524
7525 * p-valprint.c (pascal_object_print_value): Initialize
7526 base_value.
7527
7528 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7529 Shahab Vahedi <shahab@synopsys.com>
7530
7531 * Makefile.in: Add arch/arc.o
7532 * configure.tgt: Likewise.
7533 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7534 (_initialize_arc_tdep): Don't initialize old target descriptions.
7535 (arc_read_description): New function to cache target descriptions.
7536 * arc-tdep.h (arc_read_description): Add proto type.
7537 * arch/arc.c: New file.
7538 * arch/arc.h: Likewise.
7539 * features/Makefile: Replace old target descriptions with new.
7540 * features/arc-arcompact.c: Remove.
7541 * features/arc-arcompact.xml: Likewise.
7542 * features/arc-v2.c: Likewise
7543 * features/arc-v2.xml: Likewise
7544 * features/arc/aux-arcompact.xml: New file.
7545 * features/arc/aux-v2.xml: Likewise.
7546 * features/arc/core-arcompact.xml: Likewise.
7547 * features/arc/core-v2.xml: Likewise.
7548 * features/arc/aux-arcompact.c: Generate.
7549 * features/arc/aux-v2.c: Likewise.
7550 * features/arc/core-arcompact.c: Likewise.
7551 * features/arc/core-v2.c: Likewise.
7552 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7553
7554 2020-03-16 Tom Tromey <tromey@adacore.com>
7555
7556 PR gdb/25663:
7557 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7558 putting value into bcache.
7559
7560 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7561
7562 PR gdb/21500
7563 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7564 to...
7565 (amd64_windows_init_abi_common): ... this. Don't set size of
7566 long type.
7567 (amd64_windows_init_abi): New function.
7568 (amd64_cygwin_init_abi): New function.
7569 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7570 the Cygwin OS ABI.
7571 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7572 comment.
7573
7574 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7575
7576 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7577 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7578 (pe_import_directory_entry): New struct type.
7579 (is_linked_with_cygwin_dll): New function.
7580 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7581 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7582 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7583
7584 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7585
7586 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7587 i386_cygwin_core_osabi_sniffer.
7588
7589 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7590
7591 * i386-cygwin-tdep.c: Rename to...
7592 * i386-windows-tdep.c: ... this.
7593 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7594 i386-windows-tdep.c.
7595 * configure.tgt: Likewise.
7596
7597 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7598
7599 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7600 * osabi.c (gdb_osabi_names): Add "Windows".
7601 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7602 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7603 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7604 i386_cygwin_osabi_sniffer.
7605 (_initialize_i386_cygwin_tdep): Register OS ABI
7606 GDB_OSABI_WINDOWS for i386.
7607 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7608 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7609 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7610 for x86-64.
7611 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7612 when the target matches '*-*-mingw*'.
7613
7614 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7615
7616 * defs.h (enum gdb_osabi): Move to...
7617 * osabi.h (enum gdb_osabi): ... here.
7618 * gdbarch.sh: Include osabi.h in gdbarch.h.
7619 * gdbarch.h: Re-generate.
7620
7621 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7622
7623 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7624 function.
7625 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7626
7627 2020-03-14 Tom Tromey <tom@tromey.com>
7628
7629 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7630 for C++.
7631 (c_type_print_modifier): Likewise. Add "language" parameter.
7632 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7633 (c_type_print_base_1): Update.
7634 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7635 constants.
7636 * type-stack.c (type_stack::insert): Handle tp_atomic and
7637 tp_restrict.
7638 (type_stack::follow_type_instance_flags): Likewise.
7639 (type_stack::follow_types): Likewise. Merge type-following code.
7640 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7641 (space_identifier, cv_with_space_id)
7642 (const_or_volatile_or_space_identifier_noopt)
7643 (const_or_volatile_or_space_identifier): Remove.
7644 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7645 rules.
7646 (ptr_operator, typebase): Update.
7647 (enum token_flag) <FLAG_C>: New constant.
7648 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7649 "_Atomic".
7650 (lex_one_token): Handle FLAG_C.
7651
7652 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7653
7654 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7655 it to the ptrace call.
7656 * m68k-bsd-nat.c (store_registers): Likewise.
7657
7658 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7659
7660 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7661 gdb_byte *.
7662 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7663 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7664 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7665
7666 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7667
7668 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7669 nbsd_nat_target instead of inf_ptrace_target.
7670 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7671 nbsd_nat_target.
7672
7673 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7674
7675 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7676 register_t.
7677
7678 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7679
7680 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7681 it to the ptrace call.
7682 * alpha-bsd-nat.c (store_registers): Likewise.
7683
7684 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7685
7686 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7687 includes.
7688 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7689 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7690 fill_fpregset): Likewise.
7691
7692 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7693
7694 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7695 nbsd_nat_target instead of inf_ptrace_target.
7696 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7697 nbsd_nat_target.
7698
7699 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7700
7701 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7702 register_t.
7703
7704 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7705
7706 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7707 it to the ptrace call.
7708 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7709 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7710 * arm-nbsd-nat.c (store_register): Likewise.
7711 * arm-nbsd-nat.c (store_regs): Likewise.
7712 * arm-nbsd-nat.c (store_fp_register): Likewise.
7713 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7714
7715 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7716
7717 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7718 nbsd_nat_target instead of inf_ptrace_target.
7719 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7720 nbsd_nat_target.
7721
7722 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7723
7724 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7725 it to the ptrace call.
7726 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7727
7728 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7729
7730 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7731 it to the ptrace call.
7732 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7733
7734 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7735
7736 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7737 gdb_byte *.
7738 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7739
7740 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7741
7742 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7743 instead of inf_ptrace_target.
7744 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7745 nbsd_nat_target.
7746
7747 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7748
7749 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7750 register_t.
7751
7752 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7753
7754 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7755 register_t.
7756
7757 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7758
7759 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7760 register_t.
7761
7762 2020-03-13 Tom Tromey <tom@tromey.com>
7763
7764 * value.h (val_print): Don't declare.
7765 * valprint.h (val_print_array_elements)
7766 (val_print_scalar_formatted, generic_val_print): Don't declare.
7767 * valprint.c (generic_val_print_array): Take a struct value.
7768 (generic_val_print_ptr, generic_val_print_memberptr)
7769 (generic_val_print_bool, generic_val_print_int)
7770 (generic_val_print_char, generic_val_print_complex)
7771 (generic_val_print): Remove.
7772 (generic_value_print): Update.
7773 (do_val_print): Remove unused parameters. Don't call
7774 la_val_print.
7775 (val_print): Remove.
7776 (common_val_print): Update. Don't call value_check_printable.
7777 (val_print_scalar_formatted, val_print_array_elements): Remove.
7778 * rust-lang.c (rust_val_print): Remove.
7779 (rust_language_defn): Update.
7780 * p-valprint.c (pascal_val_print): Remove.
7781 (pascal_value_print_inner): Update.
7782 (pascal_object_print_val_fields, pascal_object_print_val):
7783 Remove.
7784 (pascal_object_print_static_field): Update.
7785 * p-lang.h (pascal_val_print): Don't declare.
7786 * p-lang.c (pascal_language_defn): Update.
7787 * opencl-lang.c (opencl_language_defn): Update.
7788 * objc-lang.c (objc_language_defn): Update.
7789 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7790 * m2-lang.h (m2_val_print): Don't declare.
7791 * m2-lang.c (m2_language_defn): Update.
7792 * language.h (struct language_defn) <la_val_print>: Remove.
7793 * language.c (unk_lang_value_print_inner): Rename. Change
7794 argument types.
7795 (unknown_language_defn, auto_language_defn): Update.
7796 * go-valprint.c (go_val_print): Remove.
7797 * go-lang.h (go_val_print): Don't declare.
7798 * go-lang.c (go_language_defn): Update.
7799 * f-valprint.c (f_val_print): Remove.
7800 * f-lang.h (f_value_print): Don't declare.
7801 * f-lang.c (f_language_defn): Update.
7802 * d-valprint.c (d_val_print): Remove.
7803 * d-lang.h (d_value_print): Don't declare.
7804 * d-lang.c (d_language_defn): Update.
7805 * cp-valprint.c (cp_print_value_fields)
7806 (cp_print_value_fields_rtti, cp_print_value): Remove.
7807 (cp_print_static_field): Update.
7808 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7809 (c_val_print_struct, c_val_print_union, c_val_print_int)
7810 (c_val_print_memberptr, c_val_print): Remove.
7811 * c-lang.h (c_val_print_array, cp_print_value_fields)
7812 (cp_print_value_fields_rtti): Don't declare.
7813 * c-lang.c (c_language_defn, cplus_language_defn)
7814 (asm_language_defn, minimal_language_defn): Update.
7815 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7816 (ada_val_print_enum): Take a struct value.
7817 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7818 (ada_val_print): Remove.
7819 (ada_value_print_1): Update.
7820 (printable_val_type): Remove.
7821 * ada-lang.h (ada_val_print): Don't declare.
7822 * ada-lang.c (ada_language_defn): Update.
7823
7824 2020-03-13 Tom Tromey <tom@tromey.com>
7825
7826 * valprint.c (do_val_print): Update.
7827 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7828 a struct value.
7829 (value_to_value_object_no_release): Declare.
7830 * python/py-value.c (value_to_value_object_no_release): New
7831 function.
7832 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7833 struct value.
7834 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7835 function.
7836 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7837 a struct value.
7838 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7839 Declare.
7840 (gdbscm_apply_val_pretty_printer): Take a struct value.
7841 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7842 value.
7843 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7844 value.
7845 * extension-priv.h (struct extension_language_ops)
7846 <apply_val_pretty_printer>: Take a struct value.
7847 * cp-valprint.c (cp_print_value): Create a struct value.
7848 (cp_print_value): Update.
7849
7850 2020-03-13 Tom Tromey <tom@tromey.com>
7851
7852 * ada-valprint.c (print_field_values): Call common_val_print.
7853
7854 2020-03-13 Tom Tromey <tom@tromey.com>
7855
7856 * ada-valprint.c (val_print_packed_array_elements): Remove
7857 bitoffset and val parameters. Call common_val_print.
7858 (ada_val_print_string): Remove offset, address, and original_value
7859 parameters.
7860 (ada_val_print_array): Update.
7861 (ada_value_print_array): New function.
7862 (ada_value_print_1): Call it.
7863
7864 2020-03-13 Tom Tromey <tom@tromey.com>
7865
7866 * ada-valprint.c (ada_value_print): Use common_val_print.
7867
7868 2020-03-13 Tom Tromey <tom@tromey.com>
7869
7870 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7871
7872 2020-03-13 Tom Tromey <tom@tromey.com>
7873
7874 * ada-valprint.c (ada_value_print_num): New function.
7875 (ada_value_print_1): Use it.
7876
7877 2020-03-13 Tom Tromey <tom@tromey.com>
7878
7879 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7880
7881 2020-03-13 Tom Tromey <tom@tromey.com>
7882
7883 * ada-valprint.c (ada_value_print_ptr): New function.
7884 (ada_value_print_1): Use it.
7885
7886 2020-03-13 Tom Tromey <tom@tromey.com>
7887
7888 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7889 call common_val_print.
7890 (ada_val_print_1): Update.
7891 (ada_value_print_1): New function.
7892 (ada_value_print_inner): Rewrite.
7893
7894 2020-03-13 Tom Tromey <tom@tromey.com>
7895
7896 * cp-valprint.c (cp_print_value_fields): Update.
7897 (cp_print_value): New function.
7898
7899 2020-03-13 Tom Tromey <tom@tromey.com>
7900
7901 * m2-valprint.c (m2_value_print_inner): Use
7902 cp_print_value_fields.
7903 * cp-valprint.c (cp_print_value_fields): New function.
7904 * c-valprint.c (c_value_print_struct): New function.
7905 (c_value_print_inner): Use c_value_print_struct.
7906 * c-lang.h (cp_print_value_fields): Declare.
7907
7908 2020-03-13 Tom Tromey <tom@tromey.com>
7909
7910 * c-valprint.c (c_value_print_array): New function.
7911 (c_value_print_inner): Use it.
7912
7913 2020-03-13 Tom Tromey <tom@tromey.com>
7914
7915 * c-valprint.c (c_value_print_memberptr): New function.
7916 (c_value_print_inner): Use it.
7917
7918 2020-03-13 Tom Tromey <tom@tromey.com>
7919
7920 * c-valprint.c (c_value_print_int): New function.
7921 (c_value_print_inner): Use it.
7922
7923 2020-03-13 Tom Tromey <tom@tromey.com>
7924
7925 * c-valprint.c (c_value_print_ptr): New function.
7926 (c_value_print_inner): Use it.
7927
7928 2020-03-13 Tom Tromey <tom@tromey.com>
7929
7930 * c-valprint.c (c_value_print_inner): Rewrite.
7931
7932 2020-03-13 Tom Tromey <tom@tromey.com>
7933
7934 * valprint.c (generic_value_print_complex): New function.
7935 (generic_value_print): Use it.
7936
7937 2020-03-13 Tom Tromey <tom@tromey.com>
7938
7939 * valprint.c (generic_val_print_float): Don't call
7940 val_print_scalar_formatted.
7941 (generic_val_print, generic_value_print): Update.
7942
7943 2020-03-13 Tom Tromey <tom@tromey.com>
7944
7945 * valprint.c (generic_value_print_char): New function
7946 (generic_value_print): Use it.
7947
7948 2020-03-13 Tom Tromey <tom@tromey.com>
7949
7950 * valprint.c (generic_value_print_int): New function.
7951 (generic_value_print): Use it.
7952
7953 2020-03-13 Tom Tromey <tom@tromey.com>
7954
7955 * valprint.c (generic_value_print_bool): New function.
7956 (generic_value_print): Use it.
7957
7958 2020-03-13 Tom Tromey <tom@tromey.com>
7959
7960 * valprint.c (generic_val_print_func): Simplify.
7961 (generic_val_print, generic_value_print): Update.
7962
7963 2020-03-13 Tom Tromey <tom@tromey.com>
7964
7965 * valprint.c (generic_val_print_flags): Remove.
7966 (generic_val_print, generic_value_print): Update.
7967 (val_print_type_code_flags): Add original_value parameter.
7968
7969 2020-03-13 Tom Tromey <tom@tromey.com>
7970
7971 * valprint.c (generic_val_print): Update.
7972 (generic_value_print): Update.
7973 * valprint.c (generic_val_print_enum): Don't call
7974 val_print_scalar_formatted.
7975
7976 2020-03-13 Tom Tromey <tom@tromey.com>
7977
7978 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7979 * valprint.c (generic_value_print_ptr): New function.
7980
7981 2020-03-13 Tom Tromey <tom@tromey.com>
7982
7983 * valprint.c (generic_value_print): Rewrite.
7984
7985 2020-03-13 Tom Tromey <tom@tromey.com>
7986
7987 * p-valprint.c (pascal_object_print_value_fields)
7988 (pascal_object_print_value): New functions.
7989
7990 2020-03-13 Tom Tromey <tom@tromey.com>
7991
7992 * p-valprint.c (pascal_value_print_inner): Rewrite.
7993
7994 2020-03-13 Tom Tromey <tom@tromey.com>
7995
7996 * f-valprint.c (f_value_print_innner): Rewrite.
7997
7998 2020-03-13 Tom Tromey <tom@tromey.com>
7999
8000 * m2-valprint.c (m2_print_unbounded_array): New overload.
8001 (m2_print_unbounded_array): Update.
8002 (m2_print_array_contents): Take a struct value.
8003 (m2_value_print_inner): Rewrite.
8004
8005 2020-03-13 Tom Tromey <tom@tromey.com>
8006
8007 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8008 (d_value_print_inner): New function.
8009 * d-lang.h (d_value_print_inner): Declare.
8010 * d-lang.c (d_language_defn): Use d_value_print_inner.
8011
8012 2020-03-13 Tom Tromey <tom@tromey.com>
8013
8014 * go-valprint.c (go_value_print_inner): New function.
8015 * go-lang.h (go_value_print_inner): Declare.
8016 * go-lang.c (go_language_defn): Use go_value_print_inner.
8017
8018 2020-03-13 Tom Tromey <tom@tromey.com>
8019
8020 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8021 API.
8022 (rust_val_print): Rewrite.
8023 (rust_value_print_inner): New function, from rust_val_print.
8024 (rust_language_defn): Use rust_value_print_inner.
8025
8026 2020-03-13 Tom Tromey <tom@tromey.com>
8027
8028 * ada-valprint.c (ada_value_print_inner): New function.
8029 * ada-lang.h (ada_value_print_inner): Declare.
8030 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8031
8032 2020-03-13 Tom Tromey <tom@tromey.com>
8033
8034 * f-valprint.c (f_value_print_innner): New function.
8035 * f-lang.h (f_value_print_innner): Declare.
8036 * f-lang.c (f_language_defn): Use f_value_print_innner.
8037
8038 2020-03-13 Tom Tromey <tom@tromey.com>
8039
8040 * p-valprint.c (pascal_value_print_inner): New function.
8041 * p-lang.h (pascal_value_print_inner): Declare.
8042 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8043
8044 2020-03-13 Tom Tromey <tom@tromey.com>
8045
8046 * m2-valprint.c (m2_value_print_inner): New function.
8047 * m2-lang.h (m2_value_print_inner): Declare.
8048 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8049
8050 2020-03-13 Tom Tromey <tom@tromey.com>
8051
8052 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8053 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8054 * c-valprint.c (c_value_print_inner): New function.
8055 * c-lang.h (c_value_print_inner): Declare.
8056 * c-lang.c (c_language_defn, cplus_language_defn)
8057 (asm_language_defn, minimal_language_defn): Use
8058 c_value_print_inner.
8059
8060 2020-03-13 Tom Tromey <tom@tromey.com>
8061
8062 * p-valprint.c (pascal_object_print_value_fields): Now static.
8063 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8064
8065 2020-03-13 Tom Tromey <tom@tromey.com>
8066
8067 * c-valprint.c (c_val_print_array): Simplify.
8068
8069 2020-03-13 Tom Tromey <tom@tromey.com>
8070
8071 * valprint.c (value_print_array_elements): New function.
8072 * valprint.h (value_print_array_elements): Declare.
8073
8074 2020-03-13 Tom Tromey <tom@tromey.com>
8075
8076 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8077 * mips-tdep.c (mips_print_register): Use
8078 value_print_scalar_formatted.
8079
8080 2020-03-13 Tom Tromey <tom@tromey.com>
8081
8082 * valprint.h (value_print_scalar_formatted): Declare.
8083 * valprint.c (value_print_scalar_formatted): New function.
8084
8085 2020-03-13 Tom Tromey <tom@tromey.com>
8086
8087 * valprint.h (generic_value_print): Declare.
8088 * valprint.c (generic_value_print): New function.
8089
8090 2020-03-13 Tom Tromey <tom@tromey.com>
8091
8092 * valprint.c (do_val_print): Call la_value_print_inner, if
8093 available.
8094 * rust-lang.c (rust_language_defn): Update.
8095 * p-lang.c (pascal_language_defn): Update.
8096 * opencl-lang.c (opencl_language_defn): Update.
8097 * objc-lang.c (objc_language_defn): Update.
8098 * m2-lang.c (m2_language_defn): Update.
8099 * language.h (struct language_defn) <la_value_print_inner>: New
8100 member.
8101 * language.c (unknown_language_defn, auto_language_defn): Update.
8102 * go-lang.c (go_language_defn): Update.
8103 * f-lang.c (f_language_defn): Update.
8104 * d-lang.c (d_language_defn): Update.
8105 * c-lang.c (c_language_defn, cplus_language_defn)
8106 (asm_language_defn, minimal_language_defn): Update.
8107 * ada-lang.c (ada_language_defn): Update.
8108
8109 2020-03-13 Tom Tromey <tom@tromey.com>
8110
8111 * c-valprint.c (c_value_print): Use common_val_print.
8112
8113 2020-03-13 Tom Tromey <tom@tromey.com>
8114
8115 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8116
8117 2020-03-13 Tom Tromey <tom@tromey.com>
8118
8119 * f-valprint.c (f77_print_array_1, f_val_print): Use
8120 common_val_print.
8121
8122 2020-03-13 Tom Tromey <tom@tromey.com>
8123
8124 * riscv-tdep.c (riscv_print_one_register_info): Use
8125 common_val_print.
8126
8127 2020-03-13 Tom Tromey <tom@tromey.com>
8128
8129 * mi/mi-main.c (output_register): Use common_val_print.
8130
8131 2020-03-13 Tom Tromey <tom@tromey.com>
8132
8133 * infcmd.c (default_print_one_register_info): Use
8134 common_val_print.
8135
8136 2020-03-13 Tom Tromey <tom@tromey.com>
8137
8138 * valprint.h (common_val_print_checked): Declare.
8139 * valprint.c (common_val_print_checked): New function.
8140 * stack.c (print_frame_arg): Use common_val_print_checked.
8141
8142 2020-03-13 Tom Tromey <tom@tromey.com>
8143
8144 * valprint.c (do_val_print): New function, from val_print.
8145 (val_print): Use do_val_print.
8146 (common_val_print): Use do_val_print.
8147
8148 2020-03-13 Tom Tromey <tom@tromey.com>
8149
8150 * valprint.c (value_print): Use scoped_value_mark.
8151
8152 2020-03-13 Tom de Vries <tdevries@suse.de>
8153
8154 PR symtab/25646
8155 * psymtab.c (partial_symtab::partial_symtab): Don't set
8156 globals_offset and statics_offset. Push element onto
8157 current_global_psymbols and current_static_psymbols stacks.
8158 (concat): New function.
8159 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8160 element from current_global_psymbols and current_static_psymbols
8161 stacks. Concat popped elements to global_psymbols and
8162 static_symbols.
8163 (add_psymbol_to_list): Use current_global_psymbols and
8164 current_static_psymbols stacks.
8165 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8166 current_static_psymbols fields.
8167
8168 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8169
8170 * corelow.c (sniff_core_bfd): Remove.
8171 (class core_target) <m_core_vec>: Remove.
8172 (core_target::core_target): Update.
8173 (core_file_fns): Remove.
8174 (deprecated_add_core_fns): Remove.
8175 (default_core_sniffer): Remove.
8176 (sniff_core_bfd): Remove.
8177 (default_check_format): Remove.
8178 (gdb_check_format): Remove.
8179 (core_target_open): Update.
8180 (core_target::get_core_register_section): Update.
8181 (get_core_registers_cb): Update.
8182 (core_target::fetch_registers): Update.
8183 * gdbcore.h (struct core_fns): Remove.
8184 (deprecated_add_core_fns): Remove.
8185 (default_core_sniffer): Remove.
8186 (default_check_format): Remove.
8187
8188 2020-03-12 Tom Tromey <tom@tromey.com>
8189
8190 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8191 CORE_ADDR.
8192 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8193
8194 2020-03-12 Tom Tromey <tom@tromey.com>
8195
8196 * remote.c (remote_target::download_tracepoint)
8197 (remote_target::enable_tracepoint)
8198 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8199 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8200 sprintf_vma.
8201
8202 2020-03-12 Tom Tromey <tom@tromey.com>
8203
8204 * symfile-mem.c: Update CORE_ADDR size assert.
8205
8206 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8207
8208 * selftest.m4: Move to gdbsupport/.
8209 * acinclude.m4: Update path to selftest.m4.
8210
8211 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8212
8213 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8214 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8215 gdbarch-selfselftests.c and selftest-arch.c.
8216 (SUBDIR_UNITTESTS_OBS): Rename to...
8217 (SELFTESTS_OBS): ... this.
8218 (COMMON_SFILES): Remove disasm-selftests.c and
8219 gdbarch-selftests.c.
8220 * configure.ac: Don't add selftest-arch.{c,o} to
8221 CONFIG_{SRCS,OBS}.
8222 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8223 preprocessor conditions.
8224
8225 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8226
8227 * configure.ac: Don't source bfd/development.sh.
8228 * selftest.m4: Modify comment.
8229 * configure: Re-generate.
8230
8231 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8232
8233 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8234 not "true" or "false".
8235 * configure: Re-generate.
8236
8237 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8238
8239 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8240 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8241 renamed to arm_nbsd_supply_gregset.
8242 (fetch_register): Update to call arm_nbsd_supply_gregset.
8243 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8244 (arm_netbsd_nat_target::fetch_registers): Update.
8245 (fetch_elfcore_registers): Removed.
8246 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8247 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8248 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8249 not require NetBSD system headers.
8250 (arm_nbsd_regset): New struct.
8251 (arm_nbsd_iterate_over_regset_sections): New function.
8252 (arm_netbsd_init_abi_common): Updated to call
8253 set_gdbarch_iterate_over_regset_sections.
8254 * arm-nbsd-tdep.h: New file.
8255
8256 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8257
8258 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8259 recursion.
8260
8261 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8262
8263 * configure: Re-generate.
8264
8265 2020-03-11 Tom Tromey <tromey@adacore.com>
8266
8267 * ada-typeprint.c (print_choices): Fix comment.
8268
8269 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8270
8271 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8272 previous item in the list, when the list has no items.
8273
8274 2020-03-11 Tom de Vries <tdevries@suse.de>
8275
8276 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8277 PROP_LOCLIST handling code.
8278
8279 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8280
8281 * buildsym-legacy.c (record_line): Pass extra parameter to
8282 record_line.
8283 * buildsym.c (buildsym_compunit::record_line): Take an extra
8284 parameter, reduce duplication in the line table, and record the
8285 is_stmt flag in the line table.
8286 * buildsym.h (buildsym_compunit::record_line): Add extra
8287 parameter.
8288 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8289 non-statement lines.
8290 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8291 this to the symtab builder.
8292 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8293 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8294 through to dwarf_record_line_1.
8295 * infrun.c (process_event_stop_test): When stepping, don't stop at
8296 a non-statement instruction, and only refresh the step info when
8297 we land in the middle of a line's range. Also add an extra
8298 comment.
8299 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8300 field.
8301 * record-btrace.c (btrace_find_line_range): Only record lines
8302 marked as is-statement.
8303 * stack.c (frame_show_address): Show the frame address if we are
8304 in a non-statement sal.
8305 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8306 (maintenance_print_one_line_table): Print a header for the is_stmt
8307 column, and include is_stmt information in the output.
8308 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8309 preference to non-statements.
8310 (find_pcs_for_symtab_line): Prefer is-statement entries.
8311 (find_line_common): Likewise.
8312 * symtab.h (struct linetable_entry): Add is_stmt field.
8313 (struct symtab_and_line): Likewise.
8314 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8315 arranging the line table.
8316
8317 2020-03-07 Tom de Vries <tdevries@suse.de>
8318
8319 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8320 DIE.
8321
8322 2020-03-07 Tom Tromey <tom@tromey.com>
8323
8324 * valops.c (value_literal_complex): Remove obsolete comment.
8325 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8326 comment.
8327
8328 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8329
8330 * infrun.h: Forward-declare thread_info.
8331 (set_step_info): Add thread_info parameter, add doc.
8332 * infrun.c (set_step_info): Add thread_info parameter, move doc
8333 to header.
8334 * infrun.c (process_event_stop_test): Pass thread to
8335 set_step_info call.
8336 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8337 set_step_info.
8338 (prepare_one_step): Add thread_info parameter, pass it to
8339 set_step_frame and prepare_one_step (recursive) call.
8340 (step_1): Pass thread to prepare_one_step call.
8341 (step_command_fsm::should_stop): Pass thread to
8342 prepare_one_step.
8343 (until_next_fsm): Pass thread to set_step_frame call.
8344 (finish_command): Pass thread to set_step_info call.
8345
8346 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8347
8348 * windows-tdep.c (windows_solib_create_inferior_hook):
8349 Check if inferior is running.
8350
8351 2020-03-06 Tom de Vries <tdevries@suse.de>
8352
8353 * NEWS: Fix "the the".
8354 * ctfread.c: Same.
8355
8356 2020-03-06 Tom de Vries <tdevries@suse.de>
8357
8358 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8359
8360 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8361
8362 * .dir-locals.el: Add a comment referencing the other copies of
8363 this file.
8364
8365 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8366
8367 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8368 psargs.
8369
8370 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8371
8372 * .gitattributes: New file.
8373
8374 2020-03-04 Tom Tromey <tom@tromey.com>
8375
8376 * symmisc.c (print_symbol_bcache_statistics)
8377 (print_objfile_statistics): Update.
8378 * symfile.c (allocate_symtab): Use intern.
8379 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8380 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8381 macro_cache>: Remove.
8382 <string_cache>: New member.
8383 (struct objfile) <intern>: New methods.
8384 * elfread.c (elf_symtab_read): Use intern.
8385 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8386 (dwarf2_compute_name, dwarf2_physname)
8387 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8388 names.
8389 (guess_partial_die_structure_name): Update.
8390 (partial_die_info::fixup): Intern name.
8391 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8392 name.
8393 (dwarf2_name): Intern name. Update.
8394 * buildsym.c (buildsym_compunit::get_macro_table): Use
8395 string_cache.
8396
8397 2020-03-04 Tom Tromey <tom@tromey.com>
8398
8399 * jit.c (bfd_open_from_target_memory): Make "target" const.
8400 * corefile.c (gnutarget): Now const.
8401 * gdbcore.h (gnutarget): Now const.
8402
8403 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8404
8405 * NEWS: Mention support for WOW64 processes.
8406 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8407 (amd64_windows_segment_register_p): Remove static.
8408 (_initialize_amd64_windows_nat): Update.
8409 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8410 * i386-windows-nat.c (context_offset): Update.
8411 (i386_mappings): Rename and remove static.
8412 (i386_windows_segment_register_p): Remove static.
8413 (_initialize_i386_windows_nat): Update.
8414 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8415 (STATUS_WX86_SINGLE_STEP): New macro.
8416 (EnumProcessModulesEx): New macro.
8417 (Wow64SuspendThread): New macro.
8418 (Wow64GetThreadContext): New macro.
8419 (Wow64SetThreadContext): New macro.
8420 (Wow64GetThreadSelectorEntry): New macro.
8421 (windows_set_context_register_offsets): Add static.
8422 (windows_set_segment_register_p): Likewise.
8423 (windows_add_thread): Adapt for WOW64 processes.
8424 (windows_fetch_one_register): Likewise.
8425 (windows_nat_target::fetch_registers): Likewise.
8426 (windows_store_one_register): Likewise.
8427 (display_selector): Likewise.
8428 (display_selectors): Likewise.
8429 (handle_exception): Likewise.
8430 (windows_continue): Likewise.
8431 (windows_nat_target::resume): Likewise.
8432 (windows_add_all_dlls): Likewise.
8433 (do_initial_windows_stuff): Likewise.
8434 (windows_nat_target::attach): Likewise.
8435 (windows_get_exec_module_filename): Likewise.
8436 (windows_nat_target::create_inferior): Likewise.
8437 (windows_xfer_siginfo): Likewise.
8438 (_initialize_loadable): Initialize Wow64SuspendThread,
8439 Wow64GetThreadContext, Wow64SetThreadContext,
8440 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8441 * windows-nat.h (windows_set_context_register_offsets):
8442 Remove declaration.
8443 (windows_set_segment_register_p): Likewise.
8444 (i386_windows_segment_register_p): Add declaration.
8445 (amd64_windows_segment_register_p): Likewise.
8446
8447 2020-03-04 Luis Machado <luis.machado@linaro.org>
8448
8449 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8450 in "info registers" for AArch64/ARM.
8451
8452 The change caused "info registers" to not print GPR's.
8453
8454 gdb/ChangeLog:
8455
8456 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8457
8458 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8459 when reg->group is empty and reggroup is not.
8460
8461 2020-03-03 Tom Tromey <tromey@adacore.com>
8462
8463 * dwarf2/frame.c (struct dwarf2_frame_cache)
8464 <checked_tailcall_bottom, entry_cfa_sp_offset,
8465 entry_cfa_sp_offset_p>: Remove members.
8466 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8467 (dwarf2_frame_prev_register): Don't call
8468 dwarf2_tailcall_sniffer_first.
8469 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8470 * frame-unwind.c (add_unwinder): New fuction.
8471 (frame_unwind_init): Use it. Add tailcall unwinder.
8472
8473 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8474 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8475
8476 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8477 value should be printed as true.
8478
8479 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8480
8481 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8482 (windows_init_abi): Set and use windows_so_ops.
8483
8484 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8485
8486 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8487 when verifying if dealing with a convenience variable.
8488
8489 2020-03-03 Luis Machado <luis.machado@linaro.org>
8490
8491 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8492
8493 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8494
8495 * infrun.c (gdbarch_supports_displaced_stepping): New.
8496 (use_displaced_stepping): Break up conditions in smaller pieces.
8497 Use gdbarch_supports_displaced_stepping.
8498 (displaced_step_prepare_throw): Use
8499 gdbarch_supports_displaced_stepping.
8500
8501 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8502
8503 * NEWS: Mention new behaviour of the history filename.
8504 * top.c (write_history_p): Add comment.
8505 (show_write_history_p): Add header comment, give a different
8506 message when history writing is on, but the history filename is
8507 empty.
8508 (history_filename): Add comment.
8509 (history_filename_empty): New function.
8510 (show_history_filename): Add header comment, give a different
8511 message when the filename is empty.
8512 (init_history): Compare history_filename against nullptr, and only
8513 read history if the filename is not empty.
8514 (set_history_filename): Add header comment, and only make
8515 non-empty filenames absolute.
8516 (init_main): Make the filename argument to 'set history filename'
8517 optional.
8518
8519 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8520
8521 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8522 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8523 (fetch_fp_register): Update.
8524 (fetch_fp_regs): Update.
8525 (store_fp_register): Update.
8526 (store_fp_regs): Update.
8527 (arm_netbsd_nat_target::read_description): New function.
8528 (fetch_elfcore_registers): Update.
8529
8530 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8531
8532 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8533 general_thread if the stop reply is missing a thread-id.
8534 (remote_target::process_stop_reply): Use the first non-exited
8535 thread if the target didn't pass a thread-id.
8536 * infrun.c (do_target_wait): Move call to
8537 switch_to_inferior_no_thread to ....
8538 (do_target_wait_1): ... here.
8539
8540 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8541
8542 * debuginfod-support.c: Include defs.h first.
8543
8544 2020-02-28 Tom de Vries <tdevries@suse.de>
8545
8546 * symfile.c (set_initial_language): Use default language for lookup.
8547
8548 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8549
8550 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8551 reader variable, pass `this` to read_cutu_die_from_dwo.
8552
8553 2020-02-27 Aaron Merey <amerey@redhat.com>
8554
8555 * source.c (open_source_file): Check for nullptr when computing
8556 srcpath.
8557
8558 2020-02-27 Tom Tromey <tromey@adacore.com>
8559
8560 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8561 member.
8562 (dwarf2_add_field): Don't update nfields.
8563 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8564
8565 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8566
8567 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8568 abs.
8569
8570 2020-02-26 Tom Tromey <tom@tromey.com>
8571
8572 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8573 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8574 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8575 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8576 per_cu_data.
8577
8578 2020-02-26 Tom Tromey <tom@tromey.com>
8579
8580 * dwarf2/index-write.c (psym_index_map): Change type.
8581 (add_address_entry_worker, write_one_signatured_type)
8582 (recursively_count_psymbols, recursively_write_psymbols)
8583 (class debug_names, psyms_seen_size, write_gdbindex)
8584 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8585
8586 2020-02-26 Aaron Merey <amerey@redhat.com>
8587
8588 * Makefile.in: Handle optional debuginfod support.
8589 * NEWS: Update.
8590 * README: Add --with-debuginfod summary.
8591 * config.in: Regenerate.
8592 * configure: Regenerate.
8593 * configure.ac: Handle optional debuginfod support.
8594 * debuginfod-support.c: debuginfod helper functions.
8595 * debuginfod-support.h: Ditto.
8596 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8597 summary.
8598 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8599 when a dwz file cannot be found.
8600 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8601 debuginfo file cannot be found.
8602 * source.c (open_source_file): Query debuginfod servers when a
8603 source file cannot be found.
8604 * top.c (print_gdb_configuration): Include
8605 --{with,without}-debuginfod in the output.
8606
8607 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8608
8609 * thread.c (thr_try_catch_cmd): Print thread name.
8610
8611 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8612
8613 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8614 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8615 dwarf2_fetch_die_type_sect_off): Move to...
8616 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8617 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8618 dwarf2_fetch_die_type_sect_off): ... here.
8619 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8620 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8621 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8622
8623 2020-02-26 Tom de Vries <tdevries@suse.de>
8624
8625 PR gdb/25603
8626 * symfile.c (set_initial_language): Exit-early if
8627 language_mode == language_mode_manual.
8628
8629 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8630
8631 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8632 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8633 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8634
8635 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8636
8637 * gdbtypes.c (create_array_type_with_stride): Handle negative
8638 array strides.
8639 * valarith.c (value_subscripted_rvalue): Likewise.
8640
8641 2020-02-25 Luis Machado <luis.machado@linaro.org>
8642
8643 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8644
8645 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8646
8647 * loc.h (dwarf2_get_die_type): Move to...
8648 * read.h (dwarf2_get_die_type): ... here.
8649 * read.c (dwarf2_get_die_type): Move doc to header.
8650
8651 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8652
8653 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8654 'gnulib/Makefile.in' to the list.
8655
8656 2020-02-24 Tom Tromey <tom@tromey.com>
8657
8658 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8659 Remove.
8660 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8661 XOBNEWVEC.
8662
8663 2020-02-24 Tom Tromey <tom@tromey.com>
8664
8665 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8666 New method.
8667 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8668 (dw2_do_instantiate_symtab, dw2_get_file_names)
8669 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8670
8671 2020-02-24 Tom Tromey <tom@tromey.com>
8672
8673 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8674 make_scoped_restore.
8675 (dwarf2_psymtab::read_symtab): Don't clear
8676 reading_partial_symbols.
8677
8678 2020-02-24 Tom de Vries <tdevries@suse.de>
8679
8680 PR gdb/25592
8681 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8682
8683 2020-02-24 Tom de Vries <tdevries@suse.de>
8684
8685 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8686 commands layout next/prev/regs.
8687
8688 2020-02-22 Tom Tromey <tom@tromey.com>
8689
8690 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8691 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8692
8693 2020-02-22 Tom Tromey <tom@tromey.com>
8694
8695 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8696
8697 2020-02-22 Tom Tromey <tom@tromey.com>
8698
8699 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8700 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8701 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8702 * tui/tui.c (_initialize_tui): Add usage text.
8703
8704 2020-02-22 Tom Tromey <tom@tromey.com>
8705
8706 * tui/tui-win.c (tui_set_focus_command)
8707 (tui_set_win_height_command): Use error_no_arg.
8708 (_initialize_tui_win): Update help text.
8709 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8710
8711 2020-02-22 Tom Tromey <tom@tromey.com>
8712
8713 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8714 * tui/tui-disasm.h (struct tui_disasm_window)
8715 <display_start_addr>: Declare.
8716 * tui/tui-source.h (struct tui_source_window)
8717 <display_start_addr>: Declare.
8718 * tui/tui-winsource.h (struct tui_source_window_base)
8719 <show_source_line, display_start_addr>: New methods.
8720 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8721 Rename and move to protected section.
8722 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8723 (tui_source_window_base::do_erase_source_content): Update.
8724 (tui_source_window_base::show_source_line): Now a method.
8725 (tui_source_window_base::show_source_content)
8726 (tui_source_window_base::tui_source_window_base)
8727 (tui_source_window_base::rerender)
8728 (tui_source_window_base::refill)
8729 (tui_source_window_base::do_scroll_horizontal)
8730 (tui_source_window_base::set_is_exec_point_at)
8731 (tui_source_window_base::update_breakpoint_info)
8732 (tui_source_window_base::update_exec_info): Update.
8733 * tui/tui-source.c (tui_source_window::set_contents)
8734 (tui_source_window::showing_source_p)
8735 (tui_source_window::do_scroll_vertical)
8736 (tui_source_window::location_matches_p)
8737 (tui_source_window::line_is_displayed): Update.
8738 (tui_source_window::display_start_addr): New method.
8739 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8740 (tui_disasm_window::do_scroll_vertical)
8741 (tui_disasm_window::location_matches_p): Update.
8742 (tui_disasm_window::display_start_addr): New method.
8743
8744 2020-02-22 Tom Tromey <tom@tromey.com>
8745
8746 * NEWS: Add entry for gdb.register_window_type.
8747 * tui/tui-layout.h (window_factory): New typedef.
8748 (tui_register_window): Declare.
8749 * tui/tui-layout.c (saved_tui_windows): New global.
8750 (tui_apply_current_layout): Use it.
8751 (tui_register_window): New function.
8752 * python/python.c (do_start_initialization): Call
8753 gdbpy_initialize_tui.
8754 (python_GdbMethods): Add "register_window_type" function.
8755 * python/python-internal.h (gdbpy_register_tui_window)
8756 (gdbpy_initialize_tui): Declare.
8757 * python/py-tui.c: New file.
8758 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8759
8760 2020-02-22 Tom Tromey <tom@tromey.com>
8761
8762 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8763
8764 2020-02-22 Tom Tromey <tom@tromey.com>
8765
8766 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8767 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8768 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8769 (tui_set_win_focus_to): Move from tui-win.c.
8770
8771 2020-02-22 Tom Tromey <tom@tromey.com>
8772
8773 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8774 functions.
8775 (known_window_types): New global.
8776 (tui_get_window_by_name): Reimplement.
8777 (initialize_known_windows): New function.
8778 (validate_window_name): Rewrite.
8779 (_initialize_tui_layout): Call initialize_known_windows.
8780
8781 2020-02-22 Tom Tromey <tom@tromey.com>
8782
8783 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8784 Remove constants.
8785 * tui/tui-winsource.h (struct tui_source_window_base)
8786 <tui_source_window_base>: Remove parameter.
8787 * tui/tui-winsource.c
8788 (tui_source_window_base::tui_source_window_base): Remove
8789 parameter.
8790 (tui_source_window_base::refill): Update.
8791 * tui/tui-stack.h (struct tui_locator_window)
8792 <tui_locator_window>: Update.
8793 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8794 Default the constructor.
8795 * tui/tui-regs.h (struct tui_data_item_window)
8796 <tui_data_item_window>: Default the constructor.
8797 (struct tui_data_window) <tui_data_window>: Likewise.
8798 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8799 Default the constructor.
8800 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8801 Default the constructor.
8802 <type>: Remove.
8803 (struct tui_win_info) <tui_win_info>: Default the constructor.
8804 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8805 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8806 Default the constructor.
8807
8808 2020-02-22 Tom Tromey <tom@tromey.com>
8809
8810 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8811 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8812 * tui/tui-win.c (tui_resize_all): Don't call
8813 tui_delete_invisible_windows.
8814 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8815 done.
8816 (tui_set_layout): Update.
8817 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8818 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8819 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8820
8821 2020-02-22 Tom Tromey <tom@tromey.com>
8822
8823 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8824 correctly.
8825
8826 2020-02-22 Tom Tromey <tom@tromey.com>
8827
8828 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8829
8830 2020-02-22 Tom Tromey <tom@tromey.com>
8831
8832 * tui/tui-winsource.h (struct tui_source_window_iterator)
8833 <inner_iterator>: New etytypedef.
8834 <tui_source_window_iterator>: Take "end" parameter.
8835 <tui_source_window_iterator>: Take iterator.
8836 <operator*, advance>: Update.
8837 <m_iter>: Change type.
8838 <m_end>: New field.
8839 (struct tui_source_windows) <begin, end>: Update.
8840 * tui/tui-layout.c (tui_windows): New global.
8841 (tui_apply_current_layout): Clear tui_windows.
8842 (tui_layout_window::apply): Update tui_windows.
8843 * tui/tui-data.h (tui_windows): Declare.
8844 (all_tui_windows): Now inline function.
8845 (class tui_window_iterator, struct all_tui_windows): Remove.
8846
8847 2020-02-22 Tom Tromey <tom@tromey.com>
8848
8849 PR tui/17850:
8850 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8851 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8852 "height" argument.
8853 (class tui_layout_window) <get_sizes>: Likewise.
8854 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8855 argument.
8856 <get_sizes>: Add "height" argument.
8857 <m_vertical>: New field.
8858 * tui/tui-layout.c (tui_layout_split::clone): Update.
8859 (tui_layout_split::get_sizes): Add "height" argument.
8860 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8861 (tui_new_layout_command): Parse "-horizontal".
8862 (_initialize_tui_layout): Update help string.
8863 (tui_layout_split::specification): Add "-horizontal" when needed.
8864 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8865 argument.
8866 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8867 New methods.
8868
8869 2020-02-22 Tom Tromey <tom@tromey.com>
8870
8871 * tui/tui-layout.h (enum tui_adjust_result): New.
8872 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8873 (class tui_layout_window) <adjust_size>: Return
8874 tui_adjust_result. Rewrite.
8875 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8876 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8877
8878 2020-02-22 Tom Tromey <tom@tromey.com>
8879
8880 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8881 parameter and return types.
8882 (class tui_layout_base) <specification>: Add "depth".
8883 (class tui_layout_window) <specification>: Add "depth".
8884 (class tui_layout_split) <specification>: Add "depth".
8885 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8886 and return types.
8887 (tui_new_layout_command): Parse sub-layouts.
8888 (_initialize_tui_layout): Update help string.
8889 (tui_layout_window::specification): Add "depth".
8890 (add_layout_command): Update.
8891
8892 2020-02-22 Tom Tromey <tom@tromey.com>
8893
8894 * NEWS: Add "tui new-layout" item.
8895 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8896 Add new-layout command to help text.
8897 (validate_window_name): New function.
8898 (tui_new_layout_command): New function.
8899 (_initialize_tui_layout): Register "new-layout".
8900 (tui_layout_window::specification): New method.
8901 (tui_layout_window::specification): New method.
8902 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8903 method.
8904 (class tui_layout_window) <specification>: New method.
8905 (class tui_layout_split) <specification>: New method.
8906
8907 2020-02-22 Tom Tromey <tom@tromey.com>
8908
8909 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8910 * tui/tui-win.c (window_name_completer): Update comment.
8911 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8912 Declare method.
8913 (class tui_layout_window) <replace_window>: Likewise.
8914 (class tui_layout_split) <replace_window>: Likewise.
8915 (tui_set_layout): Don't declare.
8916 (tui_set_initial_layout): Declare function.
8917 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8918 (asm_regs_layout): New globals.
8919 (tui_current_layout, show_layout): Remove.
8920 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8921 (find_layout, tui_apply_layout): New function.
8922 (layout_completer): Remove.
8923 (tui_next_layout): Reimplement.
8924 (tui_next_layout_command): New function.
8925 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8926 (tui_regs_layout): Reimplement.
8927 (tui_regs_layout_command): New function.
8928 (extract_display_start_addr): Rewrite.
8929 (next_layout, prev_layout): Remove.
8930 (tui_layout_window::replace_window): New method.
8931 (tui_layout_split::replace_window): New method.
8932 (destroy_layout): New function.
8933 (layout_list): New global.
8934 (add_layout_command): New function.
8935 (initialize_layouts): Update.
8936 (tui_layout_command): New function.
8937 (_initialize_tui_layout): Install "layout" commands.
8938 * tui/tui-data.h (enum tui_layout_type): Remove.
8939 (tui_current_layout): Don't declare.
8940
8941 2020-02-22 Tom Tromey <tom@tromey.com>
8942
8943 * tui/tui-regs.c (tui_reg_layout): Remove.
8944 (tui_reg_command): Use tui_regs_layout.
8945 * tui/tui-layout.h (tui_reg_command): Declare.
8946 * tui/tui-layout.c (tui_reg_command): New function.
8947
8948 2020-02-22 Tom Tromey <tom@tromey.com>
8949
8950 * tui/tui.c (tui_rl_delete_other_windows): Call
8951 tui_remove_some_windows.
8952 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8953 Declare method.
8954 (class tui_layout_window) <remove_windows>: New method.
8955 (class tui_layout_split) <remove_windows>: Declare.
8956 (tui_remove_some_windows): Declare.
8957 * tui/tui-layout.c (tui_remove_some_windows): New function.
8958 (tui_layout_split::remove_windows): New method.
8959
8960 2020-02-22 Tom Tromey <tom@tromey.com>
8961
8962 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8963 * tui/tui-layout.h (tui_next_layout): Declare.
8964 * tui/tui-layout.c (tui_next_layout): New function.
8965
8966 2020-02-22 Tom Tromey <tom@tromey.com>
8967
8968 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8969 correct coordinates.
8970
8971 2020-02-22 Tom Tromey <tom@tromey.com>
8972
8973 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8974 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8975 DATA_WIN case.
8976
8977 2020-02-22 Tom Tromey <tom@tromey.com>
8978
8979 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8980 TUI_DISASM_WIN, not tui_win_list.
8981
8982 2020-02-22 Tom Tromey <tom@tromey.com>
8983
8984 * valprint.c (generic_val_print_enum_1)
8985 (val_print_type_code_flags): Style member names.
8986 * rust-lang.c (val_print_struct, rust_print_enum)
8987 (rust_print_struct_def, rust_internal_print_type): Style member
8988 names.
8989 * p-valprint.c (pascal_object_print_value_fields): Style member
8990 names. Only call fprintf_symbol_filtered for static members.
8991 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8992 * f-valprint.c (f_val_print): Style member names.
8993 * f-typeprint.c (f_type_print_base): Style member names.
8994 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8995 call fprintf_symbol_filtered for static members.
8996 (cp_print_class_member): Style member names.
8997 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8998 member names.
8999 * ada-valprint.c (ada_print_scalar): Style enum names.
9000 (ada_val_print_enum): Likewise.
9001 * ada-typeprint.c (print_enum_type): Style enum names.
9002
9003 2020-02-21 Tom Tromey <tom@tromey.com>
9004
9005 * psympriv.h (struct partial_symtab): Update comment.
9006
9007 2020-02-21 Tom Tromey <tromey@adacore.com>
9008
9009 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9010 type is CORE_ADDR.
9011
9012 2020-02-21 Tom de Vries <tdevries@suse.de>
9013
9014 PR gdb/25534
9015 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9016 if dependencies[i]->user != NULL.
9017
9018 2020-02-21 Ali Tamur <tamur@google.com>
9019
9020 * dwarf2/read.c (dwarf2_name): Add null check.
9021
9022 2020-02-20 Tom Tromey <tom@tromey.com>
9023
9024 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9025 ">=", in binary search.
9026 (dwarf2_find_containing_comp_unit): New overload.
9027 (run_test): New self-test.
9028 (_initialize_dwarf2_read): Register new test.
9029
9030 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9031
9032 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9033 * riscv-tdep.h: Likewise.
9034 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9035 rv32-only CSR.
9036 * features/riscv/64bit-csr.xml: Regenerated.
9037
9038 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9039 Tom Tromey <tom@tromey.com>
9040
9041 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9042 of 'fputc_unfiltered'.
9043 (putchar_unfiltered): Call 'fputc_unfiltered'.
9044 (fputc_unfiltered): Call 'fputs_unfiltered'.
9045
9046 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9047
9048 * config.in: Regenerate.
9049 * configure: Regenerate.
9050 * configure.ac: Add --with-python-libdir option.
9051 * main.c: Use WITH_PYTHON_LIBDIR.
9052
9053 2020-02-19 Tom Tromey <tom@tromey.com>
9054
9055 * symtab.c (general_symbol_info::compute_and_set_names): Use
9056 obstack_strndup. Simplify call to symbol_set_demangled_name.
9057
9058 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9059
9060 * dwarf2/read.c (allocate_signatured_type_table,
9061 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9062 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9063 Remove objfile parameter, update all callers.
9064
9065 2020-02-19 Doug Evans <dje@google.com>
9066
9067 PR rust/25535
9068 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9069 rust_enum_variant calculation.
9070
9071 2020-02-19 Tom Tromey <tromey@adacore.com>
9072
9073 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9074
9075 2020-02-19 Tom Tromey <tromey@adacore.com>
9076
9077 * ada-lang.c (cache_symbol): Use obstack_strdup.
9078
9079 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9080
9081 * configure: Regenerate.
9082
9083 2020-02-19 Tom Tromey <tromey@adacore.com>
9084
9085 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9086 NULL check.
9087
9088 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9089
9090 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9091
9092 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9093
9094 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9095 if GDBSERVER is not defined.
9096 (riscv_tdesc_cache): Likewise, also store const target_desc.
9097 (STATIC_IN_GDB): Define.
9098 (riscv_create_target_description): Update declaration with
9099 STATIC_IN_GDB.
9100 (riscv_lookup_target_description): New function, only define if
9101 GDBSERVER is not defined.
9102 * arch/riscv.h (riscv_create_target_description): Declare only
9103 when GDBSERVER is defined.
9104 (riscv_lookup_target_description): New declaration when GDBSERVER
9105 is not defined.
9106 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9107 (riscv_linux_read_features): ...this, and return
9108 riscv_gdbarch_features instead of target_desc.
9109 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9110 (riscv_linux_read_description): Rename to...
9111 (riscv_linux_read_features): ...this.
9112 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9113 Update to use riscv_gdbarch_features and
9114 riscv_lookup_target_description.
9115 * riscv-tdep.c (riscv_find_default_target_description): Use
9116 riscv_lookup_target_description instead of
9117 riscv_create_target_description.
9118
9119 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9120
9121 * valprint.c (generic_val_print_enum_1): When printing a flag
9122 enum with value 0 and there is no enumerator with value 0, print
9123 just "0" instead of "(unknown: 0x0)".
9124
9125 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9126
9127 * valprint.c (generic_val_print_enum_1): Print unknown part of
9128 flag enum in hex.
9129
9130 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9131
9132 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9133 flag enums to contain duplicate enumerators.
9134 * valprint.c (generic_val_print_enum_1): Update comment.
9135
9136 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9137
9138 * dwarf2/read.c: Include "count-one-bits.h".
9139 (update_enumeration_type_from_children): If an enumerator has
9140 multiple bits set, don't treat the enumeration as a "flag enum".
9141 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9142 of flag enums have 0 or 1 bit set.
9143
9144 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9145
9146 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9147 conversion.
9148 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9149 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9150 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9151 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9152 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9153
9154 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9155
9156 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9157
9158 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9159
9160 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9161 displaced_step_closure_up.
9162 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9163 (struct displaced_step_closure_up):
9164 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9165 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9166 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9167 Likewise.
9168 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9169 * gdbarch.c, gdbarch.h: Re-generate.
9170 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9171 displaced_step_closure_up.
9172 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9173 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9174 * infrun.h (displaced_step_closure_up): New type alias.
9175 (struct displaced_step_inferior_state) <step_closure>: Change
9176 type to displaced_step_closure_up.
9177 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9178 displaced_step_closure_up.
9179 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9180
9181 2020-02-14 Tom Tromey <tom@tromey.com>
9182
9183 * minidebug.c (gnu_debug_key): New global.
9184 (find_separate_debug_file_in_section): Use it.
9185
9186 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9187
9188 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9189 std::unique_ptr.
9190 * gdbarch.c: Re-generate.
9191 * gdbarch.h: Re-generate.
9192 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9193 change.
9194 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9195 type to std::unique_ptr.
9196 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9197 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9198 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9199 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9200 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9201 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9202 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9203 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9204 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9205
9206 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9207
9208 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9209 std::unique_ptr.
9210 (displaced_step_clear): Rename to...
9211 (displaced_step_reset): ... this. Just call displaced->reset ().
9212 (displaced_step_clear_cleanup): Rename to...
9213 (displaced_step_reset_cleanup): ... this.
9214 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9215 (displaced_step_fixup): Likewise.
9216 (resume_1): Likewise.
9217 (handle_inferior_event): Restore child's memory before calling
9218 displaced_step_fixup on the parent.
9219 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9220 to std::unique_ptr.
9221 <step_closure>: Change type to std::unique_ptr.
9222
9223 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9224
9225 * arm-tdep.c: Include count-one-bits.h.
9226 (cleanup_block_store_pc): Use count_one_bits.
9227 (cleanup_block_load_pc): Use count_one_bits.
9228 (arm_copy_block_xfer): Use count_one_bits.
9229 (thumb2_copy_block_xfer): Use count_one_bits.
9230 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9231 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9232 (thumb_get_next_pcs_raw): Use count_one_bits.
9233 (arm_get_next_pcs_raw): Use count_one_bits_l.
9234 * arch/arm.c (bitcount): Remove.
9235 * arch/arm.h (bitcount): Remove.
9236
9237 2020-02-14 Tom Tromey <tromey@adacore.com>
9238
9239 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9240 Update.
9241 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9242 * dwarf2/loc.c (call_site_find_chain_1): Return
9243 unique_xmalloc_ptr.
9244 (call_site_find_chain): Likewise.
9245
9246 2020-02-14 Richard Biener <rguenther@suse.de>
9247
9248 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9249 on expression with division operators.
9250
9251 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9252
9253 * MAINTAINERS (Write After Approval): Adding myself.
9254
9255 2020-02-12 Tom Tromey <tom@tromey.com>
9256
9257 * event-loop.c (event_data, gdb_event, event_handler_func):
9258 Remove.
9259
9260 2020-02-12 Tom Tromey <tom@tromey.com>
9261
9262 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9263 (dwarf2_frame_objfile_data): Add comment.
9264 (find_comp_unit, set_comp_unit): New functions.
9265 (dwarf2_frame_find_fde): Use find_comp_unit.
9266 (dwarf2_build_frame_info): Use set_comp_unit.
9267
9268 2020-02-12 Tom Tromey <tom@tromey.com>
9269
9270 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9271 (comp_unit): Don't initialize objfile.
9272 (execute_cfa_program): Add text_offset parameter.
9273 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9274 (dwarf2_frame_cache): Update.
9275 (dwarf2_build_frame_info): Don't set "objfile" member.
9276
9277 2020-02-12 Tom Tromey <tom@tromey.com>
9278
9279 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9280 (decode_frame_entry): Likewise.
9281 (dwarf2_build_frame_info): Update.
9282
9283 2020-02-12 Tom Tromey <tom@tromey.com>
9284
9285 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9286 (decode_frame_entry_1): Use the comp_unit obstack.
9287
9288 2020-02-12 Tom Tromey <tom@tromey.com>
9289
9290 * dwarf2/frame.c (struct comp_unit): Add initializers and
9291 constructor.
9292 (dwarf2_frame_objfile_data): Store a comp_unit.
9293 (dwarf2_frame_find_fde): Update.
9294 (dwarf2_build_frame_info): Use "new".
9295
9296 2020-02-12 Tom Tromey <tom@tromey.com>
9297
9298 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9299 (dwarf2_fde_table): Typedef for std::vector.
9300 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9301 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9302 (decode_frame_entry): Update.
9303 (dwarf2_build_frame_info): Use "new".
9304
9305 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9306
9307 * arm-tdep.c (arm_gdbarch_init): Update.
9308 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9309 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9310 have_neon, is_m>: Change to bool.
9311
9312 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9313
9314 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9315
9316 2020-02-12 Tom Tromey <tom@tromey.com>
9317
9318 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9319
9320 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9321
9322 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9323 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9324
9325 2020-02-11 Tom Tromey <tom@tromey.com>
9326
9327 * psymtab.h: Update comment.
9328
9329 2020-02-11 Tom Tromey <tom@tromey.com>
9330
9331 * gdb_obstack.h (struct auto_obstack): Use
9332 DISABLE_COPY_AND_ASSIGN.
9333
9334 2020-02-11 Tom Tromey <tom@tromey.com>
9335
9336 * dwarf2/frame.h (struct objfile): Don't forward declare.
9337
9338 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9339
9340 * cris-tdep.c (cris_supply_gregset): Change signature to match
9341 what struct regset expects.
9342 (cris_regset): New struct.
9343 (fetch_core_registers): Remove.
9344 (cris_iterate_over_regset_sections): New function.
9345 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9346 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9347
9348 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9349
9350 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9351 registers.
9352
9353 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9354
9355 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9356
9357 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9358
9359 * configure: Re-generate.
9360
9361 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9362
9363 * configure: Re-generate.
9364
9365 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9366
9367 * acinclude: Update warning.m4 path.
9368 * warning.m4: Move to gdbsupport.
9369
9370 2020-02-11 Tom Tromey <tromey@adacore.com>
9371
9372 * remote.c (remote_console_output): Update.
9373 * printcmd.c (printf_command): Update.
9374 * event-loop.c (gdb_wait_for_event): Update.
9375 * linux-nat.c (sigchld_handler): Update.
9376 * remote-sim.c (gdb_os_write_stdout): Update.
9377 (gdb_os_flush_stdout): Update.
9378 (gdb_os_flush_stderr): Update.
9379 (gdb_os_write_stderr): Update.
9380 * exceptions.c (print_exception): Update.
9381 * remote-fileio.c (remote_fileio_func_read): Update.
9382 (remote_fileio_func_write): Update.
9383 * tui/tui.c (tui_enable): Update.
9384 * tui/tui-interp.c (tui_interp::init): Update.
9385 * utils.c (init_page_info): Update.
9386 (putchar_unfiltered, fputc_unfiltered): Update.
9387 (gdb_flush): Update.
9388 (emit_style_escape): Update.
9389 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9390 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9391 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9392 (stderr_file::write): Update.
9393 (stderr_file::puts): Update.
9394 * ui-file.h (ui_file_isatty, ui_file_write)
9395 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9396 (ui_file_puts): Don't declare.
9397
9398 2020-02-10 Tom de Vries <tdevries@suse.de>
9399
9400 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9401 sentinel to char *.
9402
9403 2020-02-09 Tom de Vries <tdevries@suse.de>
9404
9405 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9406 filename if it matches "<artificial>".
9407
9408 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9409
9410 * windows-tdep.c (struct enum_value_name): New struct.
9411 (create_enum): New function.
9412 (windows_get_siginfo_type): Create and use enum types.
9413
9414 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9415
9416 * NEWS: Mention $_siginfo support for Windows.
9417 * windows-nat.c (handle_exception): Set siginfo_er.
9418 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9419 (windows_xfer_siginfo): New function.
9420 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9421 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9422 (init_windows_gdbarch_data): New function.
9423 (get_windows_gdbarch_data): New function.
9424 (windows_get_siginfo_type): New function.
9425 (windows_init_abi): Register windows_get_siginfo_type.
9426 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9427
9428 2020-02-08 Tom Tromey <tom@tromey.com>
9429
9430 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9431 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9432 <keep>: Declare method.
9433 <m_keep>: Remove member.
9434 <~cutu_reader>: Remove.
9435 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9436 (cutu_reader::cutu_reader): Update.
9437 (cutu_reader::keep): Rename from ~cutu_reader.
9438 (process_psymtab_comp_unit, build_type_psymtabs_1)
9439 (process_skeletonless_type_unit, load_partial_comp_unit)
9440 (load_full_comp_unit, dwarf2_read_addr_index)
9441 (read_signatured_type): Update.
9442
9443 2020-02-08 Tom Tromey <tom@tromey.com>
9444
9445 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9446 "want_partial_unit" parameter.
9447 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9448 Inline check for DW_TAG_partial_unit.
9449 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9450
9451 2020-02-08 Tom Tromey <tom@tromey.com>
9452
9453 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9454 read.c.
9455 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9456 read.c.
9457
9458 2020-02-08 Tom Tromey <tom@tromey.com>
9459
9460 * dwarf2/read.c (read_address): Move to comp-unit.c.
9461 (dwarf2_rnglists_process, dwarf2_ranges_process)
9462 (read_attribute_value, dwarf_decode_lines_1)
9463 (var_decode_location, decode_locdesc): Update.
9464 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9465 read.c. Remove "cu" parameter.
9466 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9467 method.
9468
9469 2020-02-08 Tom Tromey <tom@tromey.com>
9470
9471 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9472 (read_indirect_line_string): Update.
9473 * dwarf2/comp-unit.c (read_offset): Remove.
9474 (read_comp_unit_head): Update.
9475 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9476 method.
9477 (read_offset): Don't declare.
9478
9479 2020-02-08 Tom Tromey <tom@tromey.com>
9480
9481 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9482 * dwarf2/read.c (struct comp_unit_head): Move to
9483 dwarf2/comp-unit.h.
9484 (enum class rcuh_kind): Move to comp-unit.h.
9485 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9486 (read_comp_unit_head, error_check_comp_unit_head)
9487 (read_and_check_comp_unit_head): Move to comp-unit.c.
9488 (read_offset, dwarf_unit_type_name): Likewise.
9489 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9490 (cutu_reader::cutu_reader, read_call_site_scope)
9491 (find_partial_die, follow_die_offset): Update.
9492 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9493
9494 2020-02-08 Tom Tromey <tom@tromey.com>
9495
9496 * dwarf2/read.c (read_offset_1): Move to leb.c.
9497 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9498 (dwarf_decode_macro_bytes): Update.
9499 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9500 * dwarf2/leb.h (read_offset): Declare.
9501
9502 2020-02-08 Tom Tromey <tom@tromey.com>
9503
9504 * dwarf2/read.c (dwarf2_section_size): Remove.
9505 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9506 Update.
9507 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9508
9509 2020-02-08 Tom Tromey <tom@tromey.com>
9510
9511 * dwarf2/read.c (read_initial_length): Move to leb.c.
9512 * dwarf2/leb.h (read_initial_length): Declare.
9513 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9514 handle_nonstd parameter.
9515 * dwarf2/frame.c (read_initial_length): Remove.
9516 (decode_frame_entry_1): Update.
9517
9518 2020-02-08 Tom Tromey <tom@tromey.com>
9519
9520 * dwarf2/loc.c (dwarf2_find_location_expression)
9521 (dwarf_evaluate_loc_desc::get_tls_address)
9522 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9523 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9524 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9525 (dwarf2_compile_property_to_c)
9526 (dwarf2_loc_desc_get_symbol_read_needs)
9527 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9528 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9529 (loclist_describe_location, loclist_tracepoint_var_ref)
9530 (loclist_generate_c_location): Update.
9531 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9532 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9533 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9534 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9535 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9536 (dwarf2_per_cu_data::addr_size)
9537 (dwarf2_per_cu_data::ref_addr_size)
9538 (dwarf2_per_cu_data::text_offset)
9539 (dwarf2_per_cu_data::addr_type): Now methods.
9540 (per_cu_header_read_in): Make per_cu "const".
9541 (dwarf2_version): Remove.
9542 (dwarf2_per_cu_data::int_type): Now a method.
9543 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9544 (set_die_type, read_array_type, read_subrange_index_type)
9545 (read_tag_string_type, read_subrange_type): Update.
9546 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9547 offset_size, ref_addr_size, text_offset, addr_type, version,
9548 objfile, int_type, addr_sized_int_type>: Declare methods.
9549
9550 2020-02-08 Tom Tromey <tom@tromey.com>
9551
9552 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9553 Move earlier.
9554
9555 2020-02-08 Tom Tromey <tom@tromey.com>
9556
9557 * dwarf2/read.h (dwarf_line_debug): Declare.
9558 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9559 * dwarf2/read.c: Move line_header code to new files.
9560 (dwarf_line_debug): No longer static.
9561 * dwarf2/line-header.c: New file.
9562 * dwarf2/line-header.h: New file.
9563
9564 2020-02-08 Tom Tromey <tom@tromey.com>
9565
9566 * dwarf2/read.c (struct line_header) <file_full_name,
9567 file_file_name>: Return unique_xmalloc_ptr.
9568 (line_header::file_file_name): Update.
9569 (line_header::file_full_name): Update.
9570 (dw2_get_file_names_reader): Update.
9571 (macro_start_file): Update.
9572
9573 2020-02-08 Tom Tromey <tom@tromey.com>
9574
9575 * dwarf2/read.c (struct line_header) <file_full_name,
9576 file_file_name>: Declare methods.
9577 (dw2_get_file_names_reader): Update.
9578 (file_file_name): Now a method.
9579 (file_full_name): Likewise.
9580 (macro_start_file): Update.
9581
9582 2020-02-08 Tom Tromey <tom@tromey.com>
9583
9584 * dwarf2/read.c (dwarf_always_disassemble)
9585 (show_dwarf_always_disassemble): Move to loc.c.
9586 (_initialize_dwarf2_read): Move "always-disassemble" registration
9587 to loc.c.
9588 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9589 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9590 static.
9591 (show_dwarf_always_disassemble): Move from read.c.
9592 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9593
9594 2020-02-08 Tom Tromey <tom@tromey.com>
9595
9596 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9597 (create_quick_file_names_table): Return htab_up.
9598 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9599 Update.
9600 * dwarf2/read.h (struct dwarf2_per_objfile)
9601 <quick_file_names_table>: Now htab_up.
9602
9603 2020-02-08 Tom Tromey <tom@tromey.com>
9604
9605 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9606
9607 2020-02-08 Tom Tromey <tom@tromey.com>
9608
9609 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9610 Rewrite.
9611 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9612 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9613 (abbrev_table::abbrev_table): No longer inline.
9614 (ABBREV_HASH_SIZE): Remove.
9615 (abbrev_table::m_abbrevs): Now an htab_up.
9616
9617 2020-02-08 Tom Tromey <tom@tromey.com>
9618
9619 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9620 (cutu_reader): Update.
9621 (build_type_psymtabs_1): Update.
9622 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9623 (abbrev_table::alloc_abbrev): Update.
9624 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9625 (abbrev_table::read): New static method, renamed from
9626 abbrev_table_read_table.
9627 (abbrev_table::alloc_abbrev)
9628 (abbrev_table::add_abbrev): Now private.
9629 (abbrev_table::abbrev_table): Now private.
9630 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9631
9632 2020-02-08 Tom Tromey <tom@tromey.com>
9633
9634 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9635 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9636 htab_up.
9637
9638 2020-02-08 Tom Tromey <tom@tromey.com>
9639
9640 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9641 htab_up.
9642 (lookup_dwo_unit_in_dwp): Update.
9643 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9644 on obstack.
9645
9646 2020-02-08 Tom Tromey <tom@tromey.com>
9647
9648 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9649 obstack.
9650
9651 2020-02-08 Tom Tromey <tom@tromey.com>
9652
9653 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9654 line_header_hash.
9655 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9656 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9657 Change type to htab_up.
9658
9659 2020-02-08 Tom Tromey <tom@tromey.com>
9660
9661 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9662 htab_up. Don't allocate on obstack.
9663 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9664 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9665 Change type to htab_up.
9666
9667 2020-02-08 Tom Tromey <tom@tromey.com>
9668
9669 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9670 Change type to htab_up.
9671 * dwarf2/read.c (create_signatured_type_table_from_index)
9672 (create_signatured_type_table_from_debug_names)
9673 (create_all_type_units, add_type_unit)
9674 (lookup_dwo_signatured_type, lookup_signatured_type)
9675 (process_skeletonless_type_unit): Update.
9676 (create_debug_type_hash_table, create_debug_types_hash_table):
9677 Change type of types_htab.
9678 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9679 htab_up. Don't allocate on obstack.
9680 (create_cus_hash_table): Change type of cus_htab parameter.
9681 (struct dwo_file) <cus, tus>: Now htab_up.
9682 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9683 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9684 (queue_and_load_all_dwo_tus): Update.
9685 * dwarf2/index-write.c (write_gdbindex): Update.
9686 (write_debug_names): Update.
9687
9688 2020-02-08 Tom Tromey <tom@tromey.com>
9689
9690 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9691 dwarf2/read.c. Remove "next" member. Add constructor ntad
9692 destructor.
9693 (struct dwarf2_per_objfile) <queue>: New member.
9694 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9695 dwarf2/read.h.
9696 (dwarf2_queue, dwarf2_queue_tail): Remove.
9697 (class dwarf2_queue_guard): Add parameter to constructor. Use
9698 DISABLE_COPY_AND_ASSIGN.
9699 <m_per_objfile>: New member.
9700 <~dwarf2_queue_guard>: Rewrite.
9701 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9702 Update.
9703 (~dwarf2_queue_item): New.
9704
9705 2020-02-08 Tom Tromey <tom@tromey.com>
9706
9707 * dwarf2/read.c (struct die_info) <has_children>: New member.
9708 (dw2_get_file_names_reader): Remove has_children.
9709 (dw2_get_file_names): Update.
9710 (read_cutu_die_from_dwo): Remove has_children.
9711 (cutu_reader::init_tu_and_read_dwo_dies)
9712 (cutu_reader::cutu_reader): Update.
9713 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9714 Remove has_children.
9715 (build_type_psymtabs_1, process_skeletonless_type_unit)
9716 (load_partial_comp_unit, load_full_comp_unit): Update.
9717 (create_dwo_cu_reader): Remove has_children.
9718 (create_cus_hash_table, read_die_and_children): Update.
9719 (read_full_die_1,read_full_die): Remove has_children.
9720 (read_signatured_type): Update.
9721 (class cutu_reader) <has_children>: Remove.
9722
9723 2020-02-08 Tom Tromey <tom@tromey.com>
9724
9725 * dwarf2/expr.c: Rename from dwarf2expr.c.
9726 * dwarf2/expr.h: Rename from dwarf2expr.h.
9727 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9728 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9729 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9730 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9731 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9732 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9733 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9734 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9735 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9736 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9737 * dwarf2/loc.c: Rename from dwarf2loc.c.
9738 * dwarf2/loc.h: Rename from dwarf2loc.h.
9739 * dwarf2/read.c: Rename from dwarf2read.c.
9740 * dwarf2/read.h: Rename from dwarf2read.h.
9741 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9742 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9743 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9744 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9745 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9746 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9747 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9748 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9749 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9750 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9751 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9752 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9753 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9754 Update.
9755 * Makefile.in (COMMON_SFILES): Update.
9756 (HFILES_NO_SRCDIR): Update.
9757
9758 2020-02-08 Tom Tromey <tom@tromey.com>
9759
9760 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9761 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9762
9763 2020-02-08 Tom Tromey <tom@tromey.com>
9764
9765 * dwarf2read.h (struct die_info): Don't declare.
9766
9767 2020-02-08 Tom Tromey <tom@tromey.com>
9768
9769 * dwarf2read.h (die_info_ptr): Remove typedef.
9770
9771 2020-02-08 Tom Tromey <tom@tromey.com>
9772
9773 * dwarf2read.c (read_call_site_scope)
9774 (handle_data_member_location, dwarf2_add_member_fn)
9775 (mark_common_block_symbol_computed, read_common_block)
9776 (attr_to_dynamic_prop, partial_die_info::read)
9777 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9778 (dwarf2_symbol_mark_computed, set_die_type): Update.
9779 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9780 method.
9781 (attr_form_is_block): Don't declare.
9782 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9783
9784 2020-02-08 Tom Tromey <tom@tromey.com>
9785
9786 * dwarf2read.c (dwarf2_find_base_address, )
9787 (read_call_site_scope, rust_containing_type)
9788 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9789 (handle_data_member_location, dwarf2_add_member_fn)
9790 (get_alignment, read_structure_type, process_structure_scope)
9791 (mark_common_block_symbol_computed, read_common_block)
9792 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9793 (partial_die_info::read, read_attribute_value, new_symbol)
9794 (lookup_die_type, dwarf2_get_ref_die_offset)
9795 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9796 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9797 (dwarf2_symbol_mark_computed): Update.
9798 * dwarf2/attribute.h (struct attribute) <value_as_address,
9799 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9800 methods.
9801 (value_as_address, attr_form_is_section_offset)
9802 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9803 * dwarf2/attribute.c (attribute::value_as_address)
9804 (attribute::form_is_section_offset, attribute::form_is_constant)
9805 (attribute::form_is_ref): Now methods.
9806
9807 2020-02-08 Tom Tromey <tom@tromey.com>
9808
9809 * dwarf2read.c (struct attribute, DW_STRING)
9810 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9811 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9812 (attr_form_is_block, attr_form_is_section_offset)
9813 (attr_form_is_constant, attr_form_is_ref): Move.
9814 * dwarf2/attribute.h: New file.
9815 * dwarf2/attribute.c: New file, from dwarf2read.c.
9816 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9817
9818 2020-02-08 Tom Tromey <tom@tromey.com>
9819
9820 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9821 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9822 Move.
9823 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9824 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9825 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9826 abbrev.c.
9827 * dwarf2/abbrev.h: New file.
9828 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9829 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9830
9831 2020-02-08 Tom Tromey <tom@tromey.com>
9832
9833 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9834 (dwarf2_section_size, dwarf2_get_section_info)
9835 (create_signatured_type_table_from_debug_names)
9836 (create_addrmap_from_aranges, read_debug_names_from_section)
9837 (get_gdb_index_contents_from_section, read_comp_unit_head)
9838 (error_check_comp_unit_head, read_abbrev_offset)
9839 (create_debug_type_hash_table, init_cu_die_reader)
9840 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9841 (read_comp_units_from_section, create_cus_hash_table)
9842 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9843 (create_dwp_v2_section, dwarf2_rnglists_process)
9844 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9845 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9846 (read_indirect_string_from_dwz, read_addr_index_1)
9847 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9848 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9849 (fill_in_loclist_baton): Update.
9850 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9851 get_containing_section, get_bfd_owner, get_bfd_section,
9852 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9853 (dwarf2_read_section, get_section_name, get_section_file_name)
9854 (get_containing_section, get_section_bfd_owner)
9855 (get_section_bfd_section, get_section_name, get_section_file_name)
9856 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9857 declare.
9858 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9859 (dwarf2_section_info::get_bfd_owner)
9860 (dwarf2_section_info::get_bfd_section)
9861 (dwarf2_section_info::get_name)
9862 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9863 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9864 (dwarf2_section_info::read): Now methods.
9865 * dwarf-index-write.c (class debug_names): Update.
9866
9867 2020-02-08 Tom Tromey <tom@tromey.com>
9868
9869 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9870 Move to dwarf2/section.h.
9871 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9872 (get_section_bfd_section, get_section_name)
9873 (get_section_file_name, get_section_id, get_section_flags)
9874 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9875 dwarf2/section.c.
9876 * dwarf2/section.h: New file.
9877 * dwarf2/section.c: New file, from dwarf2read.c.
9878 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9879
9880 2020-02-08 Tom Tromey <tom@tromey.com>
9881
9882 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9883 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9884 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9885 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9886 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9887 * dwarf2/leb.h: New file, from dwarf2read.c.
9888 * dwarf2/leb.c: New file, from dwarf2read.c.
9889 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9890 Remove.
9891 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9892 (COMMON_SFILES): Add dwarf2/leb.c.
9893
9894 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9895
9896 GDB 9.1 released.
9897
9898 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9899
9900 PR gdb/25190:
9901 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9902 * gdb/remote.c (remote_console_output): Update.
9903 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9904 (ui_file_puts): ...this.
9905 * gdb/ui-file.h (ui_file_puts): Add declaration.
9906 * gdb/utils.c (emit_style_escape): Update.
9907 (flush_wrap_buffer): Update.
9908 (fputs_maybe_filtered): Update.
9909 (fputs_unfiltered): Add function.
9910
9911 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9912
9913 * gdb/event-loop.c (gdb_wait_for_event): Update.
9914 * gdb/printcmd.c (printf_command): Update.
9915 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9916 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9917 (gdb_os_flush_stderr): Update.
9918 * gdb/remote.c (remote_console_output): Update.
9919 * gdb/ui-file.c (gdb_flush): Rename to...
9920 (ui_file_flush): ...this.
9921 (stderr_file::write): Update.
9922 (stderr_file::puts): Update.
9923 * gdb/ui-file.h (gdb_flush): Rename to...
9924 (ui_file_flush): ...this.
9925 * gdb/utils.c (gdb_flush): Add function.
9926 * gdb/utils.h (gdb_flush): Add declaration.
9927
9928 2020-02-07 Tom Tromey <tromey@adacore.com>
9929
9930 PR breakpoints/24915:
9931 * source.c (find_and_open_source): Do not check basenames_may_differ.
9932
9933 2020-02-07 Tom Tromey <tom@tromey.com>
9934
9935 * README: Update gdbserver documentation.
9936 * gdbserver: Move to top level.
9937 * configure.tgt (build_gdbserver): Remove.
9938 * configure.ac: Remove --enable-gdbserver.
9939 * configure: Rebuild.
9940 * Makefile.in (distclean): Don't mention gdbserver.
9941
9942 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9943
9944 * source-cache.c (source_cache::ensure): Surround
9945 get_plain_source_lines with a try/catch.
9946 (source_cache::get_line_charpos): Get rid of try/catch
9947 and only check for the return value of "ensure".
9948 * tui/tui-source.c (tui_source_window::set_contents):
9949 Simplify "nlines" calculation.
9950
9951 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9952
9953 * MAINTAINERS (Write After Approval): Add myself.
9954
9955 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9956
9957 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9958 function call.
9959
9960 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9961
9962 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9963
9964 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9965
9966 * nat/riscv-linux-tdesc.h: New file.
9967 * nat/riscv-linux-tdesc.c: New file, taking code from...
9968 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9969 ... here.
9970 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9971 NATDEPFILES.
9972
9973 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9974
9975 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9976 we don't set the fake simulator ptid to the null_ptid.
9977
9978 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9979
9980 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9981 * gdbthread.h (class thread_info) <resumed>: Likewise.
9982 * infrun.c (resume_1): Likewise.
9983 (proceed): Likewise.
9984 (infrun_thread_stop_requested): Likewise.
9985 (stop_all_threads): Likewise.
9986 (handle_inferior_event): Likewise.
9987 (restart_threads): Likewise.
9988 (finish_step_over): Likewise.
9989 (keep_going_stepped_thread): Likewise.
9990 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9991 (linux_handle_extended_wait): Likewise.
9992 * record-btrace.c (get_thread_current_frame_id): Likewise.
9993 * record-full.c (record_full_wait_1): Likewise.
9994 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9995 * target.c (target_resume): Likewise.
9996 * thread.c (set_running_thread): Likewise.
9997
9998 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9999
10000 * f-valprint.c (f77_print_array_1): Changed datatype of index
10001 variable to LONGEST from int to enable it to contain bound
10002 values correctly.
10003
10004 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10005
10006 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10007 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10008 offsets according to FLEN determined.
10009 (riscv_linux_nat_target::read_description): Determine FLEN
10010 dynamically.
10011 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10012 according to FLEN determined.
10013 (riscv_linux_nat_target::store_registers): Likewise.
10014
10015 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10016
10017 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10018 when reg->group is empty and reggroup is not.
10019
10020 2020-01-31 Tom Tromey <tromey@adacore.com>
10021
10022 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10023 Call beneath target's mourn_inferior after unpushing.
10024
10025 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10026
10027 PR tui/9765
10028 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10029 have enough lines to fill the screen, still return the lowest
10030 address we found.
10031
10032 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10033
10034 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10035 '-', '<', and '>' commands.
10036
10037 2020-01-29 Pedro Alves <palves@redhat.com>
10038 Sergio Durigan Junior <sergiodj@redhat.com>
10039
10040 * infcmd.c (construct_inferior_arguments): Assert that
10041 'argc' is greater than 0.
10042
10043 2020-01-29 Luis Machado <luis.machado@linaro.org>
10044
10045 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10046 (BRK_INSN_MASK): Define to 0xd4200000.
10047 (aarch64_program_breakpoint_here_p): New function.
10048 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10049 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10050 breakpoint.c.
10051 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10052 breakpoint.h
10053 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10054 call gdbarch_program_breakpoint_here_p.
10055 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10056 default_program_breakpoint_here_p, changed return type to bool and
10057 simplified.
10058 * breakpoint.h (program_breakpoint_here): Moved prototype to
10059 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10060 return type to bool.
10061 * gdbarch.c: Regenerate.
10062 * gdbarch.h: Regenerate.
10063 * gdbarch.sh (program_breakpoint_here_p): New method.
10064 * infrun.c (handle_signal_stop): Call
10065 gdbarch_program_breakpoint_here_p.
10066
10067 2020-01-26 Tom Tromey <tom@tromey.com>
10068
10069 * ctfread.c (struct ctf_fp_info): Reindent.
10070 (_initialize_ctfread): Remove.
10071
10072 2020-01-26 Tom Tromey <tom@tromey.com>
10073
10074 * psymtab.c (partial_map_expand_apply)
10075 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10076 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10077 (psym_print_stats, psym_expand_symtabs_for_function)
10078 (psym_map_symbol_filenames, psym_map_matching_symbols)
10079 (psym_expand_symtabs_matching)
10080 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10081 (maintenance_check_psymtabs): Use new methods.
10082 * psympriv.h (struct partial_symtab) <readin_p,
10083 get_compunit_symtab>: New methods.
10084 <readin, compunit_symtab>: Remove members.
10085 (struct standard_psymtab): New.
10086 (struct legacy_psymtab): Derive from standard_psymtab.
10087 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10088 standard_psymtab.
10089 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10090
10091 2020-01-26 Tom Tromey <tom@tromey.com>
10092
10093 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10094 read_dependencies. Add assert.
10095 * psymtab.c (partial_symtab::read_dependencies): New method.
10096 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10097 method.
10098 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10099 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10100 read_dependencies.
10101 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10102 Add assert.
10103
10104 2020-01-26 Tom Tromey <tom@tromey.com>
10105
10106 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10107 Call expand_psymtab.
10108 (xcoff_read_symtab): Call expand_psymtab.
10109 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10110 legacy_expand_psymtab.
10111 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10112 method.
10113 (struct legacy_psymtab) <expand_psymtab>: Implement.
10114 <legacy_expand_psymtab>: New member.
10115 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10116 (parse_partial_symbols): Set legacy_expand_psymtab.
10117 (psymtab_to_symtab_1): Change argument order. Call
10118 expand_psymtab.
10119 (new_psymtab): Set legacy_expand_psymtab.
10120 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10121 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10122 expand_psymtab.
10123 (dwarf2_psymtab::expand_psymtab): Rename from
10124 psymtab_to_symtab_1. Call expand_psymtab.
10125 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10126 (dbx_end_psymtab): Likewise.
10127 (dbx_psymtab_to_symtab_1): Change argument order. Call
10128 expand_psymtab.
10129 (dbx_read_symtab): Call expand_psymtab.
10130 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10131 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10132 (ctf_psymtab::read_symtab): Call expand_psymtab.
10133
10134 2020-01-26 Tom Tromey <tom@tromey.com>
10135
10136 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10137 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10138 messages.
10139 * mdebugread.c (mdebug_read_symtab): Remove prints.
10140 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10141 assert.
10142 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10143
10144 2020-01-26 Tom Tromey <tom@tromey.com>
10145
10146 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10147 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10148 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10149 legacy_symtab.
10150 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10151 * psymtab.c (psymtab_to_symtab): Call method.
10152 (dump_psymtab): Update.
10153 * psympriv.h (struct partial_symtab): Add virtual destructor.
10154 <read_symtab>: New method.
10155 (struct legacy_symtab): New.
10156 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10157 (struct pst_map) <pst>: Now a legacy_psymtab.
10158 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10159 (new_psymtab): Use legacy_psymtab.
10160 * dwarf2read.h (struct dwarf2_psymtab): New.
10161 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10162 * dwarf2read.c (dwarf2_create_include_psymtab)
10163 (dwarf2_build_include_psymtabs, create_type_unit_group)
10164 (create_partial_symtab, process_psymtab_comp_unit_reader)
10165 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10166 (set_partial_user): Use dwarf2_psymtab.
10167 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10168 (psymtab_to_symtab_1, process_full_comp_unit)
10169 (process_full_type_unit, dwarf2_ranges_read)
10170 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10171 (dwarf_decode_lines): Use dwarf2_psymtab.
10172 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10173 (add_address_entry_worker, write_one_signatured_type)
10174 (recursively_count_psymbols, recursively_write_psymbols)
10175 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10176 (write_debug_names): Likewise.
10177 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10178 <pst>: Now a legacy_psymtab.
10179 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10180 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10181 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10182 * ctfread.c (struct ctf_psymtab): New.
10183 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10184 ctf_psymtab.
10185 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10186 (create_partial_symtab): Return a ctf_psymtab.
10187 (scan_partial_symbols): Update.
10188
10189 2020-01-26 Tom Tromey <tom@tromey.com>
10190
10191 * xcoffread.c (xcoff_start_psymtab): Use new.
10192 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10193 renamed from start_psymtab_common.
10194 * psympriv.h (struct partial_symtab): Add new constructor.
10195 (start_psymtab_common): Don't declare.
10196 * mdebugread.c (parse_partial_symbols): Use new.
10197 * dwarf2read.c (create_partial_symtab): Use new.
10198 * dbxread.c (start_psymtab): Use new.
10199 * ctfread.c (create_partial_symtab): Use new.
10200
10201 2020-01-26 Tom Tromey <tom@tromey.com>
10202
10203 * xcoffread.c (xcoff_end_psymtab): Use new.
10204 * psymtab.c (start_psymtab_common): Use new.
10205 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10206 Update.
10207 * psympriv.h (struct partial_symtab): Add parameters to
10208 constructor. Don't inline.
10209 (allocate_psymtab): Don't declare.
10210 * mdebugread.c (new_psymtab): Use new.
10211 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10212 * dbxread.c (dbx_end_psymtab): Use new.
10213
10214 2020-01-26 Tom Tromey <tom@tromey.com>
10215
10216 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10217 allocate_psymtab. Update documentation.
10218 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10219 allocate_psymtab. Do not use new.
10220 (allocate_psymtab): Use new. Update.
10221
10222 2020-01-26 Tom Tromey <tom@tromey.com>
10223
10224 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10225 * psymtab.c (psym_print_stats): Update.
10226 * psympriv.h (struct partial_symtab) <readin,
10227 psymtabs_addrmap_supported, anonymous>: Now bool.
10228 * mdebugread.c (psymtab_to_symtab_1): Update.
10229 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10230 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10231 (process_full_comp_unit, process_full_type_unit): Update.
10232 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10233 * ctfread.c (psymtab_to_symtab): Update.
10234
10235 2020-01-26 Tom Tromey <tom@tromey.com>
10236
10237 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10238 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10239 * psymtab.c (psymtab_storage): Delete psymtabs.
10240 (psymtab_storage::allocate_psymtab): Use new.
10241 (psymtab_storage::discard_psymtab): Use delete.
10242 * psympriv.h (struct partial_symtab): Add constructor and
10243 initializers.
10244
10245 2020-01-26 Tom Tromey <tom@tromey.com>
10246
10247 * machoread.c: Do not include psympriv.h.
10248
10249 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10250
10251 * NEWS: Mention the new option and the set/show commands.
10252
10253 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10254
10255 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10256 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10257 (validate_exec_file): New variables, enums, functions.
10258 (exec_file_locate_attach, print_section_info): Style the filenames.
10259 (_initialize_exec): Install show_exec_file_mismatch_command and
10260 set_exec_file_mismatch_command.
10261 * gdbcore.h (validate_exec_file): Declare.
10262 * infcmd.c (attach_command): Call validate_exec_file.
10263 * remote.c ( remote_target::remote_add_inferior): Likewise.
10264
10265 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10266
10267 * frame.c (find_frame_sal): Move call to get_next_frame into more
10268 inner scope.
10269 * inline-frame.c (inilne_state) <inline_state>: Update argument
10270 types.
10271 (inilne_state) <skipped_symbol>: Rename to...
10272 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10273 (skip_inline_frames): Build vector of skipped symbols and use this
10274 to reate the inline_state.
10275 (inline_skipped_symbol): Add a comment and some assertions, fetch
10276 skipped symbol from the list.
10277
10278 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10279
10280 * buildsym.c (lte_is_less_than): Delete.
10281 (buildsym_compunit::end_symtab_with_blockvector): Create local
10282 lambda function to sort line table entries, and use
10283 std::stable_sort instead of std::sort.
10284 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10285 markers when looking for a previous line.
10286
10287 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10288
10289 * dwarf2read.c (lnp_state_machine::record_line): Include
10290 end_sequence parameter in debug print out. Record the line if we
10291 are at an end_sequence marker even if it's not the start of a
10292 statement.
10293 * symmisc.c (maintenance_print_one_line_table): Print end of
10294 sequence markers with 'END' not '0'.
10295
10296 2020-01-24 Pedro Alves <palves@redhat.com>
10297
10298 PR gdb/25410
10299 * thread.c (scoped_restore_current_thread::restore): Use
10300 switch_to_inferior_no_thread.
10301 * exec.c: Include "progspace-and-thread.h".
10302 (add_target_sections, remove_target_sections):
10303 scoped_restore_current_pspace_and_thread instead of
10304 scoped_restore_current_thread.
10305 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10306 and aspace to the inferior before calling clone_program_space.
10307 Remove stale comment.
10308
10309 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10310
10311 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10312 (arm_netbsd_nat_target::fetch_registers): ...this.
10313 (arm_nbsd_nat_target::store_registers): Rename to...
10314 (arm_netbsd_nat_target::store_registers): ...this.
10315
10316 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10317
10318 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10319 register_t.
10320
10321 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10322
10323 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10324 Update comment.
10325 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10326 Likewise.
10327 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10328 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10329 the correct replacement (iterate_over_regset_sections).
10330 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10331 Update comment.
10332
10333 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10334
10335 PR gdb/23718
10336 * gdb/python/python.c (execute_gdb_command): Call
10337 async_enable_stdin in catch block.
10338
10339 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10340
10341 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10342 SWITCH_THRU_ALL_UIS.
10343
10344 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10345
10346 PR tui/9765
10347 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10348 comment, add extra parameter, and update to store previous symbol
10349 when appropriate.
10350 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10351 add extra parameter.
10352 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10353 remove unneeded parameter, add try/catch around gdb_print_insn,
10354 rewrite to add items to asm_lines vector.
10355 (tui_find_backward_disassembly_start_address): New function.
10356 (tui_find_disassembly_address): Updated throughout.
10357 (tui_disasm_window::set_contents): Update for changes to
10358 tui_disassemble.
10359 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10360 number of lines to scroll.
10361
10362 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10363
10364 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10365 (SECT_OFF_DATA): Likewise.
10366 (SECT_OFF_RODATA): Likewise.
10367 (SECT_OFF_TEXT): Likewise.
10368 (SECT_OFF_BSS): Likewise.
10369 (struct objfile) <text_section_offset, data_section_offset>: New
10370 methods.
10371 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10372 objfile::text_section_offset.
10373 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10374 * coffread.c (coff_symtab_read): Likewise.
10375 (enter_linenos): Likewise.
10376 (process_coff_symbol): Likewise.
10377 * ctfread.c (get_objfile_text_range): Likewise.
10378 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10379 Use objfile::data_section_offset.
10380 * dwarf2-frame.c (execute_cfa_program): Use
10381 objfile::text_section_offset.
10382 (dwarf2_frame_find_fde): Likewise.
10383 * dwarf2read.c (create_addrmap_from_index): Likewise.
10384 (create_addrmap_from_aranges): Likewise.
10385 (dw2_find_pc_sect_compunit_symtab): Likewise.
10386 (process_psymtab_comp_unit_reader): Likewise.
10387 (add_partial_symbol): Likewise.
10388 (add_partial_subprogram): Likewise.
10389 (process_full_comp_unit): Likewise.
10390 (read_file_scope): Likewise.
10391 (read_func_scope): Likewise.
10392 (read_lexical_block_scope): Likewise.
10393 (read_call_site_scope): Likewise.
10394 (dwarf2_rnglists_process): Likewise.
10395 (dwarf2_ranges_process): Likewise.
10396 (dwarf2_ranges_read): Likewise.
10397 (dwarf_decode_lines_1): Likewise.
10398 (new_symbol): Likewise.
10399 (dwarf2_fetch_die_loc_sect_off): Likewise.
10400 (dwarf2_per_cu_text_offset): Likewise.
10401 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10402 * hppa-tdep.c (read_unwind_info): Likewise.
10403 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10404 * psympriv.h (struct partial_symtab): Likewise.
10405 * psymtab.c (find_pc_sect_psymtab): Likewise.
10406 * solib-svr4.c (enable_break): Likewise.
10407 * stap-probe.c (relocate_address): Use
10408 objfile::data_section_offset.
10409 * xcoffread.c (enter_line_range): Use
10410 objfile::text_section_offset.
10411 (read_xcoff_symtab): Likewise.
10412
10413 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10414
10415 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10416 declaration to narrower scopes.
10417
10418 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10419
10420 * darwin-nat.h (struct darwin_exception_msg, enum
10421 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10422 Move up.
10423 (class darwin_nat_target) <wait_1, check_new_threads,
10424 decode_exception_message, decode_message, stop_inferior,
10425 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10426 * darwin-nat.c (darwin_check_new_threads): Rename to...
10427 (darwin_nat_target::check_new_threads): ... this.
10428 (darwin_suspend_inferior_it): Remove.
10429 (darwin_decode_exception_message): Rename to...
10430 (darwin_nat_target::decode_exception_message): ... this.
10431 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10432 (darwin_decode_message): Rename to...
10433 (darwin_nat_target::decode_message): ... this.
10434 (cancel_breakpoint): Rename to...
10435 (darwin_nat_target::cancel_breakpoint): ... this.
10436 (darwin_wait): Rename to...
10437 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10438 instead of iterate_over_inferiors.
10439 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10440 (darwin_stop_inferior): Rename to...
10441 (darwin_nat_target::stop_inferior): ... this.
10442 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10443 (darwin_init_thread_list): Rename to...
10444 (darwin_nat_target::init_thread_list): ... this.
10445 (darwin_ptrace_him): Rename to...
10446 (darwin_nat_target::ptrace_him): ... this.
10447 (darwin_nat_target::create_inferior): Pass lambda function to
10448 fork_inferior.
10449 (darwin_nat_target::detach): Call stop_inferior instead of
10450 darwin_stop_inferior.
10451 * fork-inferior.h (fork_inferior): Change init_trace_fun
10452 parameter to gdb::function_view.
10453 * fork-inferior.c (fork_inferior): Likewise.
10454
10455 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10456
10457 * i386-cygwin-tdep.c (core_process_module_section): Update.
10458 * windows-nat.c (struct lm_info_windows): Add text_offset.
10459 (windows_xfer_shared_libraries): Update.
10460 * windows-tdep.c (windows_xfer_shared_library):
10461 Add text_offset_cached argument.
10462 * windows-tdep.h (windows_xfer_shared_library): Update.
10463
10464 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10465
10466 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10467
10468 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10469
10470 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10471 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10472 replace with range-based for.
10473 (gdbsim_interrupt_inferior): Remove.
10474 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10475 with a range-based for. Inline code from
10476 gdbsim_interrupt_inferior.
10477
10478 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10479
10480 * infrun.c (proceed): Fix indentation.
10481
10482 2020-01-21 Tom Tromey <tromey@adacore.com>
10483
10484 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10485 * python/python.c (python_extension_ops): Update.
10486 (gdbpy_colorize): New function.
10487 * python/lib/gdb/__init__.py (colorize): New function.
10488 * extension.h (ext_lang_colorize): Declare.
10489 * extension.c (ext_lang_colorize): New function.
10490 * extension-priv.h (struct extension_language_ops) <colorize>: New
10491 member.
10492 * cli/cli-style.c (_initialize_cli_style): Update help text.
10493
10494 2020-01-21 Luis Machado <luis.machado@linaro.org>
10495
10496 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10497 <cond>: Change type to bool.
10498 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10499 (aarch64_displaced_step_cb): Likewise.
10500 (aarch64_displaced_step_tb): Likewise.
10501
10502 2020-01-21 Luis Machado <luis.machado@linaro.org>
10503
10504 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10505 output.
10506
10507 2020-01-21 Luis Machado <luis.machado@linaro.org>
10508
10509 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10510 <pc_adjust>: Adjust the documentation.
10511 (aarch64_displaced_step_fixup): Check if PC really moved before
10512 adjusting it.
10513
10514 2020-01-19 Tom Tromey <tom@tromey.com>
10515
10516 * disasm.c (~gdb_disassembler): New destructor.
10517 (gdb_buffered_insn_length): Call disassemble_free_target.
10518 * disasm.h (class gdb_disassembler): Declare destructor. Use
10519 DISABLE_COPY_AND_ASSIGN.
10520
10521 2020-01-19 Tom Tromey <tom@tromey.com>
10522
10523 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10524 (die_reader_func_ftype): Remove.
10525 (cutu_reader): New class.
10526 (dw2_get_file_names_reader): Remove "data" parameter.
10527 (dw2_get_file_names): Use cutu_reader.
10528 (create_debug_type_hash_table): Update.
10529 (read_cutu_die_from_dwo): Update comment.
10530 (lookup_dwo_unit): Add dwo_name parameter.
10531 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10532 die_reader_func_ftype and data parameters.
10533 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10534 Remove die_reader_func_ftype and data parameters.
10535 (~cutu_reader): New; from init_cutu_and_read_dies.
10536 (cutu_reader::cutu_reader): Rename from
10537 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10538 and data parameters.
10539 (init_cutu_and_read_dies_simple): Remove.
10540 (struct process_psymtab_comp_unit_data): Remove.
10541 (process_psymtab_comp_unit_reader): Remove data parameter; add
10542 want_partial_unit and pretend_language parameters.
10543 (process_psymtab_comp_unit): Use cutu_reader.
10544 (build_type_psymtabs_reader): Remove data parameter.
10545 (build_type_psymtabs_1): Use cutu_reader.
10546 (process_skeletonless_type_unit): Likewise.
10547 (load_partial_comp_unit_reader): Remove.
10548 (load_partial_comp_unit): Use cutu_reader.
10549 (load_full_comp_unit_reader): Remove.
10550 (load_full_comp_unit): Use cutu_reader.
10551 (struct create_dwo_cu_data): Remove.
10552 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10553 dwo_unit parameters.
10554 (create_cus_hash_table): Use cutu_reader.
10555 (struct dwarf2_read_addr_index_data): Remove.
10556 (dwarf2_read_addr_index_reader): Remove.
10557 (dwarf2_read_addr_index): Use cutu_reader.
10558 (read_signatured_type_reader): Remove.
10559 (read_signatured_type): Use cutu_reader.
10560
10561 2020-01-19 Tom Tromey <tom@tromey.com>
10562
10563 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10564 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10565 (tui_wrefresh): Declare.
10566 * tui/tui-wingeneral.c (suppress_output): New global.
10567 (tui_suppress_output, ~tui_suppress_output): New constructor and
10568 destructor.
10569 (tui_wrefresh): New function.
10570 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10571 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10572 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10573 method.
10574 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10575 tui_wrefresh.
10576 (tui_data_window::no_refresh): New method.
10577 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10578 (tui_reg_command): Use tui_suppress_output
10579 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10580 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10581 method.
10582 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10583
10584 2020-01-19 Tom Tromey <tom@tromey.com>
10585
10586 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10587 Handle case where symtab is null.
10588
10589 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10590
10591 * linux-fork.c (one_fork_p): Simplify.
10592
10593 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10594
10595 * top.c (struct qt_args): Remove.
10596 (kill_or_detach): Change return type to void, replace `void *`
10597 parameter with a proper one.
10598 (print_inferior_quit_action): Likewise.
10599 (quit_confirm): Use range-based for loop to iterate over inferiors.
10600 (quit_force): Likewise.
10601
10602 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10603
10604 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10605 `void *` parameter with proper parameters.
10606 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10607 (print_one_inferior): Change return type to void, replace `void *`
10608 parameter with proper parameters.
10609 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10610 inferiors.
10611 (get_other_inferior): Remove.
10612 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10613 inferiors.
10614
10615 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10616
10617 * mi/mi-interp.c (report_initial_inferior): Remove.
10618 (mi_interp::init): Use range-based for to iterate over inferiors.
10619
10620 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10621
10622 * python/py-inferior.c (build_inferior_list): Remove.
10623 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10624
10625 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10626
10627 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10628 (btrace_stitch_trace): Likewise.
10629 * charset.c (intermediate_encoding): Likewise (vaild).
10630 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10631 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10632 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10633
10634 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10635
10636 * windows-tdep.c (windows_get_tlb_type):
10637 Add rtl_user_process_parameters type.
10638
10639 2020-01-16 Pedro Alves <palves@redhat.com>
10640 Norbert Lange <nolange79@gmail.com>
10641
10642 PR build/24805
10643 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10644 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10645 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10646 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10647 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10648 (ps_plog): Redeclare exported functions with default visibility.
10649
10650 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10651
10652 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10653 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10654
10655 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10656
10657 * infcmd.c (post_create_inferior): Use get_thread_regcache
10658 instead of get_current_regcache.
10659
10660 2020-01-14 Tom Tromey <tom@tromey.com>
10661
10662 PR symtab/12535:
10663 * python/python.c (gdbpy_decode_line): Treat empty string the same
10664 as no argument.
10665
10666 2020-01-14 Tom Tromey <tom@tromey.com>
10667
10668 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10669
10670 2020-01-14 Tom Tromey <tom@tromey.com>
10671
10672 * nat/linux-btrace.c: Don't include <config.h>.
10673 * nat/linux-ptrace.c: Don't include <config.h>.
10674 * nat/x86-linux-dregs.c: Don't include <config.h>.
10675
10676 2020-01-14 Tom Tromey <tom@tromey.com>
10677
10678 * configure: Rebuild.
10679 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10680
10681 2020-01-14 Tom Tromey <tom@tromey.com>
10682
10683 * nat/x86-linux-dregs.c: Include configh.h.
10684 * nat/linux-ptrace.c: Include configh.h.
10685 * nat/linux-btrace.c: Include configh.h.
10686 * defs.h: Include config.h, bfd.h.
10687 * configure.ac: Don't source common.host.
10688 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10689 * configure: Rebuild.
10690 * acinclude.m4: Update path.
10691 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10692 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10693 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10694 (CLIBS): Add LIBSUPPORT.
10695 (CDEPS): Likewise.
10696 (COMMON_SFILES): Remove gdbsupport files.
10697 (HFILES_NO_SRCDIR): Likewise.
10698 (stamp-version): Update path to create-version.sh.
10699 (ALLDEPFILES): Remove gdbsupport files.
10700
10701 2020-01-14 Tom Tromey <tom@tromey.com>
10702
10703 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10704 USE_WIN32API when needed.
10705 * configure.ac (USE_WIN32API): Don't define.
10706 (WIN32LIBS): Use WIN32APILIBS.
10707 * configure: Rebuild.
10708
10709 2020-01-14 Tom Tromey <tom@tromey.com>
10710
10711 * configure: Rebuild.
10712 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10713
10714 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10715
10716 * skip.c (skip_function_command): Make skip w/o arguments use the
10717 name of the inlined function if pc is inside any inlined function.
10718
10719 2020-01-14 Luis Machado <luis.machado@linaro.org>
10720
10721 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10722 * infrun.c (resume_1): Likewise.
10723 (handle_inferior_event): Remove stale comment.
10724 * linux-nat.c (linux_nat_target::resume): Update comments.
10725 (save_stop_reason): Likewise.
10726 (linux_nat_filter_event): Likewise.
10727 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10728
10729 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10730
10731 * elfread.c (record_minimal_symbol): Set section index to 0 for
10732 non-allocatable sections.
10733
10734
10735 2020-01-13 Ali Tamur <tamur@google.com>
10736
10737 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10738 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10739 to gdb::optional. Update comments.
10740 (dwo_file): Update comments.
10741 (read_attribute): Update API to take an additional out parameter,
10742 need_reprocess. This is used to mark attributes that need other
10743 attributes (e.g. str_offsets_base) for correct computation which may not
10744 have been read yet.
10745 (read_attribute_reprocess): New function declaration.
10746 (read_addr_index): Likewise.
10747 (read_dwo_str_index): Likewise.
10748 (read_stub_str_index): Likewise.
10749 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10750 (lookup_addr_base): New function definition.
10751 (lookup_ranges_base): Likewise.
10752 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10753 lookup_ranges_base.
10754 (init_cutu_and_read_dies): Update comments.
10755 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10756 unit. This is used to inherit parent's str_offsets_base and addr_base.
10757 Update comments.
10758 (init_cutu_and_read_dies_simple): Reflect API changes.
10759 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10760 (create_cus_hash_table): Change API to take parent compile unit.
10761 Reflect API changes.
10762 (open_and_init_dwo_file): Reflect API changes.
10763 (dwarf2_get_pc_bounds): Update comments.
10764 (dwarf2_record_block_ranges): Likewise.
10765 (read_full_die_1): Change implementation to reprocess attributes that
10766 need str_offsets_base and addr_base.
10767 (partial_die_info::read): Likewise.
10768 (read_attribute_reprocess): New function definition.
10769 (read_attribute_value): Change API to take an additional out parameter,
10770 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10771 when a non-dwo compile unit has index based attributes.
10772 (read_attribute): Reflect API changes.
10773 (read_addr_index_1): Reflect API changes. Update comments.
10774 (dwarf2_read_addr_index_data): Reflect API changes.
10775 (dwarf2_read_addr_index): Likewise.
10776 (read_str_index): Change API and implementation. This becomes a helper
10777 to be used by the new string index related methods. Update error
10778 message and comments.
10779 (read_dwo_str_index): New function definition.
10780 (read_stub_str_index): Likewise.
10781 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10782 * symfile.h (dwarf2_debug_sections): Likewise.
10783 * xcoffread.c (dwarf2_debug_sections): Likewise.
10784
10785 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10786
10787 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10788 core_reg_sect type to gdb_byte *.
10789 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10790 * cris-tdep.c (fetch_core_registers): Likewise.
10791 * corelow.c (core_target::get_core_register_section): Change
10792 type of `contents` to gdb::byte_vector.
10793
10794 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10795
10796 * tui/tui-wingeneral.c (box_win): Position the title in the center
10797 of the border.
10798
10799 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10800
10801 * corelow.c (core_target::get_core_register_section): Use
10802 std::vector instead of alloca.
10803
10804 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10805
10806 * warning.m4: Add -Wmissing-declarations to build_warnings.
10807 * configure: Re-generate.
10808
10809 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10810
10811 * python/python.c (init__gdb_module): Add declaration.
10812
10813 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10814
10815 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10816 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10817 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10818 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10819 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10820 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10821 * ada-exp.y (_initialize_ada_exp): Add declaration.
10822 * ada-lang.c (_initialize_ada_language): Add declaration.
10823 * ada-tasks.c (_initialize_tasks): Add declaration.
10824 * agent.c (_initialize_agent): Add declaration.
10825 * aix-thread.c (_initialize_aix_thread): Add declaration.
10826 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10827 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10828 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10829 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10830 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10831 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10832 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10833 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10834 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10835 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10836 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10837 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10838 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10839 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10840 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10841 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10842 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10843 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10844 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10845 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10846 * annotate.c (_initialize_annotate): Add declaration.
10847 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10848 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10849 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10850 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10851 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10852 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10853 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10854 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10855 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10856 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10857 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10858 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10859 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10860 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10861 * auto-load.c (_initialize_auto_load): Add declaration.
10862 * auxv.c (_initialize_auxv): Add declaration.
10863 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10864 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10865 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10866 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10867 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10868 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10869 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10870 * breakpoint.c (_initialize_breakpoint): Add declaration.
10871 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10872 * btrace.c (_initialize_btrace): Add declaration.
10873 * charset.c (_initialize_charset): Add declaration.
10874 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10875 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10876 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10877 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10878 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10879 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10880 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10881 * coffread.c (_initialize_coffread): Add declaration.
10882 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10883 * compile/compile.c (_initialize_compile): Add declaration.
10884 * complaints.c (_initialize_complaints): Add declaration.
10885 * completer.c (_initialize_completer): Add declaration.
10886 * copying.c (_initialize_copying): Add declaration.
10887 * corefile.c (_initialize_core): Add declaration.
10888 * corelow.c (_initialize_corelow): Add declaration.
10889 * cp-abi.c (_initialize_cp_abi): Add declaration.
10890 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10891 * cp-support.c (_initialize_cp_support): Add declaration.
10892 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10893 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10894 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10895 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10896 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10897 * ctfread.c (_initialize_ctfread): Add declaration.
10898 * d-lang.c (_initialize_d_language): Add declaration.
10899 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10900 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10901 * dbxread.c (_initialize_dbxread): Add declaration.
10902 * dcache.c (_initialize_dcache): Add declaration.
10903 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10904 * disasm.c (_initialize_disasm): Add declaration.
10905 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10906 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10907 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10908 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10909 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10910 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10911 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10912 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10913 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10914 * elfread.c (_initialize_elfread): Add declaration.
10915 * exec.c (_initialize_exec): Add declaration.
10916 * extension.c (_initialize_extension): Add declaration.
10917 * f-lang.c (_initialize_f_language): Add declaration.
10918 * f-valprint.c (_initialize_f_valprint): Add declaration.
10919 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10920 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10921 * filesystem.c (_initialize_filesystem): Add declaration.
10922 * findcmd.c (_initialize_mem_search): Add declaration.
10923 * findvar.c (_initialize_findvar): Add declaration.
10924 * fork-child.c (_initialize_fork_child): Add declaration.
10925 * frame-base.c (_initialize_frame_base): Add declaration.
10926 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10927 * frame.c (_initialize_frame): Add declaration.
10928 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10929 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10930 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10931 * gcore.c (_initialize_gcore): Add declaration.
10932 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10933 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10934 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10935 * gdbarch.c (_initialize_gdbarch): Add declaration.
10936 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10937 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10938 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10939 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10940 * go-lang.c (_initialize_go_language): Add declaration.
10941 * go32-nat.c (_initialize_go32_nat): Add declaration.
10942 * guile/guile.c (_initialize_guile): Add declaration.
10943 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10944 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10945 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10946 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10947 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10948 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10949 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10950 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10951 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10952 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10953 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10954 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10955 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10956 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10957 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10958 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10959 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10960 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10961 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10962 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10963 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10964 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10965 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10966 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10967 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10968 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10969 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10970 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10971 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10972 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10973 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10974 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10975 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10976 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10977 * infcall.c (_initialize_infcall): Add declaration.
10978 * infcmd.c (_initialize_infcmd): Add declaration.
10979 * inflow.c (_initialize_inflow): Add declaration.
10980 * infrun.c (_initialize_infrun): Add declaration.
10981 * interps.c (_initialize_interpreter): Add declaration.
10982 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10983 * jit.c (_initialize_jit): Add declaration.
10984 * language.c (_initialize_language): Add declaration.
10985 * linux-fork.c (_initialize_linux_fork): Add declaration.
10986 * linux-nat.c (_initialize_linux_nat): Add declaration.
10987 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10988 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10989 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10990 * m2-lang.c (_initialize_m2_language): Add declaration.
10991 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10992 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10993 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10994 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10995 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10996 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10997 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10998 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10999 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11000 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11001 * machoread.c (_initialize_machoread): Add declaration.
11002 * macrocmd.c (_initialize_macrocmd): Add declaration.
11003 * macroscope.c (_initialize_macroscope): Add declaration.
11004 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11005 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11006 * maint.c (_initialize_maint_cmds): Add declaration.
11007 * mdebugread.c (_initialize_mdebugread): Add declaration.
11008 * memattr.c (_initialize_mem): Add declaration.
11009 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11010 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11011 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11012 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11013 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11014 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11015 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11016 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11017 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11018 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11019 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11020 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11021 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11022 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11023 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11024 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11025 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11026 * mipsread.c (_initialize_mipsread): Add declaration.
11027 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11028 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11029 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11030 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11031 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11032 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11033 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11034 * nto-procfs.c (_initialize_procfs): Add declaration.
11035 * objc-lang.c (_initialize_objc_language): Add declaration.
11036 * observable.c (_initialize_observer): Add declaration.
11037 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11038 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11039 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11040 * osabi.c (_initialize_gdb_osabi): Add declaration.
11041 * osdata.c (_initialize_osdata): Add declaration.
11042 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11043 * parse.c (_initialize_parse): Add declaration.
11044 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11045 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11046 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11047 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11048 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11049 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11050 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11051 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11052 * printcmd.c (_initialize_printcmd): Add declaration.
11053 * probe.c (_initialize_probe): Add declaration.
11054 * proc-api.c (_initialize_proc_api): Add declaration.
11055 * proc-events.c (_initialize_proc_events): Add declaration.
11056 * proc-service.c (_initialize_proc_service): Add declaration.
11057 * procfs.c (_initialize_procfs): Add declaration.
11058 * producer.c (_initialize_producer): Add declaration.
11059 * psymtab.c (_initialize_psymtab): Add declaration.
11060 * python/python.c (_initialize_python): Add declaration.
11061 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11062 * record-btrace.c (_initialize_record_btrace): Add declaration.
11063 * record-full.c (_initialize_record_full): Add declaration.
11064 * record.c (_initialize_record): Add declaration.
11065 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11066 * regcache.c (_initialize_regcache): Add declaration.
11067 * reggroups.c (_initialize_reggroup): Add declaration.
11068 * remote-notif.c (_initialize_notif): Add declaration.
11069 * remote-sim.c (_initialize_remote_sim): Add declaration.
11070 * remote.c (_initialize_remote): Add declaration.
11071 * reverse.c (_initialize_reverse): Add declaration.
11072 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11073 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11074 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11075 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11076 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11077 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11078 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11079 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11080 Add declaration.
11081 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11082 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11083 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11084 * rust-exp.y (_initialize_rust_exp): Add declaration.
11085 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11086 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11087 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11088 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11089 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11090 * score-tdep.c (_initialize_score_tdep): Add declaration.
11091 * ser-go32.c (_initialize_ser_dos): Add declaration.
11092 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11093 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11094 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11095 * ser-uds.c (_initialize_ser_socket): Add declaration.
11096 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11097 * serial.c (_initialize_serial): Add declaration.
11098 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11099 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11100 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11101 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11102 * skip.c (_initialize_step_skip): Add declaration.
11103 * sol-thread.c (_initialize_sol_thread): Add declaration.
11104 * solib-aix.c (_initialize_solib_aix): Add declaration.
11105 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11106 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11107 * solib-frv.c (_initialize_frv_solib): Add declaration.
11108 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11109 * solib-target.c (_initialize_solib_target): Add declaration.
11110 * solib.c (_initialize_solib): Add declaration.
11111 * source-cache.c (_initialize_source_cache): Add declaration.
11112 * source.c (_initialize_source): Add declaration.
11113 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11114 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11115 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11116 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11117 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11118 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11119 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11120 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11121 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11122 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11123 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11124 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11125 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11126 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11127 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11128 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11129 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11130 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11131 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11132 * stabsread.c (_initialize_stabsread): Add declaration.
11133 * stack.c (_initialize_stack): Add declaration.
11134 * stap-probe.c (_initialize_stap_probe): Add declaration.
11135 * std-regs.c (_initialize_frame_reg): Add declaration.
11136 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11137 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11138 * symfile.c (_initialize_symfile): Add declaration.
11139 * symmisc.c (_initialize_symmisc): Add declaration.
11140 * symtab.c (_initialize_symtab): Add declaration.
11141 * target.c (_initialize_target): Add declaration.
11142 * target-connection.c (_initialize_target_connection): Add
11143 declaration.
11144 * target-dcache.c (_initialize_target_dcache): Add declaration.
11145 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11146 * thread.c (_initialize_thread): Add declaration.
11147 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11148 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11149 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11150 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11151 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11152 * tracectf.c (_initialize_ctf): Add declaration.
11153 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11154 * tracefile.c (_initialize_tracefile): Add declaration.
11155 * tracepoint.c (_initialize_tracepoint): Add declaration.
11156 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11157 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11158 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11159 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11160 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11161 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11162 * tui/tui.c (_initialize_tui): Add declaration.
11163 * typeprint.c (_initialize_typeprint): Add declaration.
11164 * ui-style.c (_initialize_ui_style): Add declaration.
11165 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11166 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11167 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11168 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11169 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11170 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11171 * unittests/filtered_iterator-selftests.c
11172 (_initialize_filtered_iterator_selftests): Add declaration.
11173 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11174 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11175 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11176 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11177 * unittests/main-thread-selftests.c
11178 (_initialize_main_thread_selftests): Add declaration.
11179 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11180 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11181 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11182 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11183 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11184 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11185 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11186 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11187 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11188 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11189 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11190 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11191 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11192 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11193 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11194 declaration.
11195 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11196 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11197 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11198 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11199 * user-regs.c (_initialize_user_regs): Add declaration.
11200 * utils.c (_initialize_utils): Add declaration.
11201 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11202 * valops.c (_initialize_valops): Add declaration.
11203 * valprint.c (_initialize_valprint): Add declaration.
11204 * value.c (_initialize_values): Add declaration.
11205 * varobj.c (_initialize_varobj): Add declaration.
11206 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11207 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11208 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11209 * windows-nat.c (_initialize_windows_nat): Add declaration.
11210 (_initialize_check_for_gdb_ini): Add declaration.
11211 (_initialize_loadable): Add declaration.
11212 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11213 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11214 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11215 * xcoffread.c (_initialize_xcoffread): Add declaration.
11216 * xml-support.c (_initialize_xml_support): Add declaration.
11217 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11218 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11219 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11220 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11221
11222 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11223
11224 * regformats/regdat.sh: Generate declaration for init function.
11225
11226 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11227
11228 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11229 up.
11230 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11231 close_one_inferior>: New methods.
11232 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11233 pass down target to find_inferior_pid.
11234 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11235 Pass down target to find_inferior_ptid.
11236 (gdbsim_target::create_inferior): Pass down target to
11237 add_thread_silent.
11238 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11239 target down to find_inferior_ptid and switch_to_thread.
11240 (gdbsim_target::close): Update to call close_one_inferior.
11241 (struct resume_data): Remove.
11242 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11243 directly, rather than through a void pointer.
11244 (gdbsim_target::resume): Update to call resume_one_inferior.
11245
11246 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11247
11248 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11249
11250 2020-01-12 Pedro Alves <palves@redhat.com>
11251
11252 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11253 directly for the current inferior instead of
11254 discard_all_inferiors.
11255 (discard_all_inferiors): Delete.
11256
11257 2020-01-11 Tom Tromey <tom@tromey.com>
11258
11259 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11260 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11261 deprecated_safe_get_selected_frame.
11262
11263 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11264
11265 * inferior.c (print_inferior): Switch inferior before printing it.
11266
11267 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11268 Pedro Alves <palves@redhat.com>
11269
11270 * progspace-and-thread.c (switch_to_program_space_and_thread):
11271 Assert there's an inferior for PSPACE. Use
11272 switch_to_inferior_no_thread to switch the inferior too.
11273 * progspace.c (program_space::~program_space): Call
11274 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11275 (program_space::free_all_objfiles): Don't call clear_symtab_users
11276 here.
11277 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11278
11279 2020-01-10 Pedro Alves <palves@redhat.com>
11280
11281 * NEWS: Mention multi-target debugging, "info connections", and
11282 "add-inferior -no-connection".
11283
11284 2020-01-10 Pedro Alves <palves@redhat.com>
11285
11286 * infrun.c: Include "target-connection.h".
11287 (check_multi_target_resumption): New.
11288 (proceed): Call it.
11289 * target-connection.c (make_target_connection_string): Make
11290 extern.
11291 * target-connection.h (make_target_connection_string): Declare.
11292
11293 2020-01-10 Pedro Alves <palves@redhat.com>
11294
11295 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11296 * inferior.c (uiout_field_connection): New function.
11297 (print_inferior): Add new "connection-id" column.
11298 (add_inferior_command): Show connection number/string of added
11299 inferior.
11300 * process-stratum-target.h
11301 (process_stratum_target::connection_string): New virtual method.
11302 (process_stratum_target::connection_number): New field.
11303 * remote.c (remote_target::connection_string): New override.
11304 * target-connection.c: New file.
11305 * target-connection.h: New file.
11306 * target.c (decref_target): Remove process_stratum targets from
11307 the connection list.
11308 (target_stack::push): Add process_stratum targets to the
11309 connection list.
11310
11311 2020-01-10 Pedro Alves <palves@redhat.com>
11312
11313 Revert:
11314 2016-04-12 Pedro Alves <palves@redhat.com>
11315 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11316 Remove references to name.
11317 * serial.h (struct serial) <name>: Delete.
11318
11319 2020-01-10 Pedro Alves <palves@redhat.com>
11320
11321 * gdbarch-selftests.c (register_to_value_test): Remove "target
11322 already pushed" check.
11323
11324 2020-01-10 Pedro Alves <palves@redhat.com>
11325 John Baldwin <jhb@FreeBSD.org>
11326
11327 * aarch64-linux-nat.c
11328 (aarch64_linux_nat_target::thread_architecture): Adjust.
11329 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11330 (task_command_1): Likewise.
11331 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11332 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11333 (aix_thread_target::store_registers)
11334 (aix_thread_target::thread_alive): Adjust.
11335 * amd64-fbsd-tdep.c: Include "inferior.h".
11336 (amd64fbsd_get_thread_local_address): Pass down target.
11337 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11338 thread's gdbarch instead of target_gdbarch.
11339 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11340 get_last_target_status.
11341 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11342 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11343 inferiors.
11344 (update_inserted_breakpoint_locations): Skip if inferiors with no
11345 execution.
11346 (update_global_location_list): When handling moribund locations,
11347 find representative inferior for location's pspace, and use thread
11348 count of its process_stratum target.
11349 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11350 * bsd-uthread.c (bsd_uthread_target::wait): Use
11351 as_process_stratum_target and adjust thread_change_ptid and
11352 add_thread calls.
11353 (bsd_uthread_target::update_thread_list): Use
11354 as_process_stratum_target and adjust find_thread_ptid,
11355 thread_change_ptid and add_thread calls.
11356 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11357 find_thread_ptid call.
11358 * corelow.c (add_to_thread_list): Adjust add_thread call.
11359 (core_target_open): Adjust add_thread_silent and thread_count
11360 calls.
11361 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11362 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11363 * event-top.c (async_disconnect): Pop targets from all inferiors.
11364 * exec.c (add_target_sections): Push exec target on all inferiors
11365 sharing the program space.
11366 (remove_target_sections): Remove the exec target from all
11367 inferiors sharing the program space.
11368 (exec_on_vfork): New.
11369 * exec.h (exec_on_vfork): Declare.
11370 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11371 Pass it down.
11372 (fbsd_nat_target::update_thread_list): Adjust.
11373 (fbsd_nat_target::resume): Adjust.
11374 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11375 down.
11376 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11377 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11378 get_thread_arch_regcache call.
11379 * fork-child.c (gdb_startup_inferior): Pass target down to
11380 startup_inferior and set_executing.
11381 * gdbthread.h (struct process_stratum_target): Forward declare.
11382 (add_thread, add_thread_silent, add_thread_with_info)
11383 (in_thread_list): Add process_stratum_target parameter.
11384 (find_thread_ptid(inferior*, ptid_t)): New overload.
11385 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11386 parameter.
11387 (all_threads()): Delete overload.
11388 (all_threads, all_non_exited_threads): Add process_stratum_target
11389 parameter.
11390 (all_threads_safe): Use brace initialization.
11391 (thread_count): Add process_stratum_target parameter.
11392 (set_resumed, set_running, set_stop_requested, set_executing)
11393 (threads_are_executing, finish_thread_state): Add
11394 process_stratum_target parameter.
11395 (switch_to_thread): Use is_current_thread.
11396 * i386-fbsd-tdep.c: Include "inferior.h".
11397 (i386fbsd_get_thread_local_address): Pass down target.
11398 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11399 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11400 have_inferiors check.
11401 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11402 (inf_ptrace_target::attach): Adjust.
11403 * infcall.c (run_inferior_call): Adjust.
11404 * infcmd.c (run_command_1): Pass target to
11405 scoped_finish_thread_state.
11406 (proceed_thread_callback): Skip inferiors with no execution.
11407 (continue_command): Rename 'all_threads' local to avoid hiding
11408 'all_threads' function. Adjust get_last_target_status call.
11409 (prepare_one_step): Adjust set_running call.
11410 (signal_command): Use user_visible_resume_target. Compare thread
11411 pointers instead of inferior_ptid.
11412 (info_program_command): Adjust to pass down target.
11413 (attach_command): Mark target's 'thread_executing' flag.
11414 (stop_current_target_threads_ns): New, factored out from ...
11415 (interrupt_target_1): ... this. Switch inferior before making
11416 target calls.
11417 * inferior-iter.h
11418 (struct all_inferiors_iterator, struct all_inferiors_range)
11419 (struct all_inferiors_safe_range)
11420 (struct all_non_exited_inferiors_range): Filter on
11421 process_stratum_target too. Remove explicit.
11422 * inferior.c (inferior::inferior): Push dummy target on target
11423 stack.
11424 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11425 Add process_stratum_target parameter, and pass it down.
11426 (have_live_inferiors): Adjust.
11427 (switch_to_inferior_and_push_target): New.
11428 (add_inferior_command, clone_inferior_command): Handle
11429 "-no-connection" parameter. Use
11430 switch_to_inferior_and_push_target.
11431 (_initialize_inferior): Mention "-no-connection" option in
11432 the help of "add-inferior" and "clone-inferior" commands.
11433 * inferior.h: Include "process-stratum-target.h".
11434 (interrupt_target_1): Use bool.
11435 (struct inferior) <push_target, unpush_target, target_is_pushed,
11436 find_target_beneath, top_target, process_target, target_at,
11437 m_stack>: New.
11438 (discard_all_inferiors): Delete.
11439 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11440 (all_inferiors, all_non_exited_inferiors): Add
11441 process_stratum_target parameter.
11442 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11443 (target_last_proc_target): New global.
11444 (follow_fork_inferior): Push target on new inferior. Pass target
11445 to add_thread_silent. Call exec_on_vfork. Handle target's
11446 reference count.
11447 (follow_fork): Adjust get_last_target_status call. Also consider
11448 target.
11449 (follow_exec): Push target on new inferior.
11450 (struct execution_control_state) <target>: New field.
11451 (user_visible_resume_target): New.
11452 (do_target_resume): Call target_async.
11453 (resume_1): Set target's threads_executing flag. Consider resume
11454 target.
11455 (commit_resume_all_targets): New.
11456 (proceed): Also consider resume target. Skip threads of inferiors
11457 with no execution. Commit resumtion in all targets.
11458 (start_remote): Pass current inferior to wait_for_inferior.
11459 (infrun_thread_stop_requested): Consider target as well. Pass
11460 thread_info pointer to clear_inline_frame_state instead of ptid.
11461 (infrun_thread_thread_exit): Consider target as well.
11462 (random_pending_event_thread): New inferior parameter. Use it.
11463 (do_target_wait): Rename to ...
11464 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11465 down.
11466 (threads_are_resumed_pending_p, do_target_wait): New.
11467 (prepare_for_detach): Adjust calls.
11468 (wait_for_inferior): New inferior parameter. Handle it. Use
11469 do_target_wait_1 instead of do_target_wait.
11470 (fetch_inferior_event): Adjust. Switch to representative
11471 inferior. Pass target down.
11472 (set_last_target_status): Add process_stratum_target parameter.
11473 Save target in global.
11474 (get_last_target_status): Add process_stratum_target parameter and
11475 handle it.
11476 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11477 (context_switch): Check inferior_ptid == null_ptid before calling
11478 inferior_thread().
11479 (get_inferior_stop_soon): Pass down target.
11480 (wait_one): Rename to ...
11481 (poll_one_curr_target): ... this.
11482 (struct wait_one_event): New.
11483 (wait_one): New.
11484 (stop_all_threads): Adjust.
11485 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11486 event's target.
11487 (switch_back_to_stepped_thread): Also consider target.
11488 (print_stop_event): Update.
11489 (normal_stop): Update. Also consider the resume target.
11490 * infrun.h (wait_for_inferior): Remove declaration.
11491 (user_visible_resume_target): New declaration.
11492 (get_last_target_status, set_last_target_status): New
11493 process_stratum_target parameter.
11494 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11495 process_stratum_target parameter, and use it.
11496 (clear_inline_frame_state (thread_info*)): New.
11497 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11498 process_stratum_target parameter.
11499 (clear_inline_frame_state (thread_info*)): Declare.
11500 * linux-fork.c (delete_checkpoint_command): Pass target down to
11501 find_thread_ptid.
11502 (checkpoint_command): Adjust.
11503 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11504 instead of just tweaking inferior_ptid.
11505 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11506 (exit_lwp): Pass target down to find_thread_ptid.
11507 (attach_proc_task_lwp_callback): Pass target down to
11508 add_thread/set_running/set_executing.
11509 (linux_nat_target::attach): Pass target down to
11510 thread_change_ptid.
11511 (get_detach_signal): Pass target down to find_thread_ptid.
11512 Consider last target status's target.
11513 (linux_resume_one_lwp_throw, resume_lwp)
11514 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11515 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11516 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11517 (linux_nat_target::async_wait_fd): New.
11518 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11519 target down.
11520 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11521 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11522 * linux-thread-db.c (struct thread_db_info::process_target): New
11523 field.
11524 (add_thread_db_info): Save target.
11525 (get_thread_db_info): New process_stratum_target parameter. Also
11526 match target.
11527 (delete_thread_db_info): New process_stratum_target parameter.
11528 Also match target.
11529 (thread_from_lwp): Adjust to pass down target.
11530 (thread_db_notice_clone): Pass down target.
11531 (check_thread_db_callback): Pass down target.
11532 (try_thread_db_load_1): Always push the thread_db target.
11533 (try_thread_db_load, record_thread): Pass target down.
11534 (thread_db_target::detach): Pass target down. Always unpush the
11535 thread_db target.
11536 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11537 target down. Always unpush the thread_db target.
11538 (find_new_threads_callback, thread_db_find_new_threads_2)
11539 (thread_db_target::update_thread_list): Pass target down.
11540 (thread_db_target::pid_to_str): Pass current inferior down.
11541 (thread_db_target::get_thread_local_address): Pass target down.
11542 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11543 target down.
11544 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11545 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11546 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11547 (procfs_init_inferior): Rename to ...
11548 (procfs_target::procfs_init_inferior): ... this and adjust.
11549 (procfs_target::create_inferior, procfs_notice_thread)
11550 (procfs_do_thread_registers): Adjust.
11551 * ppc-fbsd-tdep.c: Include "inferior.h".
11552 (ppcfbsd_get_thread_local_address): Pass down target.
11553 * proc-service.c (ps_xfer_memory): Switch current inferior and
11554 program space as well.
11555 (get_ps_regcache): Pass target down.
11556 * process-stratum-target.c
11557 (process_stratum_target::thread_address_space)
11558 (process_stratum_target::thread_architecture): Pass target down.
11559 * process-stratum-target.h
11560 (process_stratum_target::threads_executing): New field.
11561 (as_process_stratum_target): New.
11562 * ravenscar-thread.c
11563 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11564 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11565 down.
11566 * record-btrace.c (record_btrace_target::info_record): Adjust.
11567 (record_btrace_target::record_method)
11568 (record_btrace_target::record_is_replaying)
11569 (record_btrace_target::fetch_registers)
11570 (get_thread_current_frame_id, record_btrace_target::resume)
11571 (record_btrace_target::wait, record_btrace_target::stop): Pass
11572 target down.
11573 * record-full.c (record_full_wait_1): Switch to event thread.
11574 Pass target down.
11575 * regcache.c (regcache::regcache)
11576 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11577 process_stratum_target parameter and handle it.
11578 (current_thread_target): New global.
11579 (get_thread_regcache): Add process_stratum_target parameter and
11580 handle it. Switch inferior before calling target method.
11581 (get_thread_regcache): Pass target down.
11582 (get_thread_regcache_for_ptid): Pass target down.
11583 (registers_changed_ptid): Add process_stratum_target parameter and
11584 handle it.
11585 (registers_changed_thread, registers_changed): Pass target down.
11586 (test_get_thread_arch_aspace_regcache): New.
11587 (current_regcache_test): Define a couple local test_target_ops
11588 instances and use them for testing.
11589 (readwrite_regcache): Pass process_stratum_target parameter.
11590 (cooked_read_test, cooked_write_test): Pass mock_target down.
11591 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11592 (get_thread_arch_aspace_regcache): Add process_stratum_target
11593 parameter.
11594 (regcache::target): New method.
11595 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11596 (regcache::registers_changed_ptid): Add process_stratum_target
11597 parameter.
11598 (regcache::m_target): New field.
11599 (registers_changed_ptid): Add process_stratum_target parameter.
11600 * remote.c (remote_state::supports_vCont_probed): New field.
11601 (remote_target::async_wait_fd): New method.
11602 (remote_unpush_and_throw): Add remote_target parameter.
11603 (get_current_remote_target): Adjust.
11604 (remote_target::remote_add_inferior): Push target.
11605 (remote_target::remote_add_thread)
11606 (remote_target::remote_notice_new_inferior)
11607 (get_remote_thread_info): Pass target down.
11608 (remote_target::update_thread_list): Skip threads of inferiors
11609 bound to other targets. (remote_target::close): Don't discard
11610 inferiors. (remote_target::add_current_inferior_and_thread)
11611 (remote_target::process_initial_stop_replies)
11612 (remote_target::start_remote)
11613 (remote_target::remote_serial_quit_handler): Pass down target.
11614 (remote_target::remote_unpush_target): New remote_target
11615 parameter. Unpush the target from all inferiors.
11616 (remote_target::remote_unpush_and_throw): New remote_target
11617 parameter. Pass it down.
11618 (remote_target::open_1): Check whether the current inferior has
11619 execution instead of checking whether any inferior is live. Pass
11620 target down.
11621 (remote_target::remote_detach_1): Pass down target. Use
11622 remote_unpush_target.
11623 (extended_remote_target::attach): Pass down target.
11624 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11625 (remote_target::append_resumption): Pass down target.
11626 (remote_target::append_pending_thread_resumptions)
11627 (remote_target::remote_resume_with_hc, remote_target::resume)
11628 (remote_target::commit_resume): Pass down target.
11629 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11630 (remote_target::interrupt_query)
11631 (remote_target::remove_new_fork_children)
11632 (remote_target::check_pending_events_prevent_wildcard_vcont)
11633 (remote_target::remote_parse_stop_reply)
11634 (remote_target::process_stop_reply): Pass down target.
11635 (first_remote_resumed_thread): New remote_target parameter. Pass
11636 it down.
11637 (remote_target::wait_as): Pass down target.
11638 (unpush_and_perror): New remote_target parameter. Pass it down.
11639 (remote_target::readchar, remote_target::remote_serial_write)
11640 (remote_target::getpkt_or_notif_sane_1)
11641 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11642 down target.
11643 (remote_target::mourn_inferior): Pass down target. Use
11644 remote_unpush_target.
11645 (remote_target::core_of_thread)
11646 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11647 (remote_target::pid_to_exec_file)
11648 (remote_target::thread_handle_to_thread_info): Pass down target.
11649 (remote_target::async_wait_fd): New.
11650 * riscv-fbsd-tdep.c: Include "inferior.h".
11651 (riscv_fbsd_get_thread_local_address): Pass down target.
11652 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11653 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11654 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11655 Adjust.
11656 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11657 * solib-svr4.c (enable_break): Pass down target.
11658 * spu-multiarch.c (parse_spufs_run): Pass down target.
11659 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11660 * target-delegates.c: Regenerate.
11661 * target.c (g_target_stack): Delete.
11662 (current_top_target): Return the current inferior's top target.
11663 (target_has_execution_1): Refer to the passed-in inferior's top
11664 target.
11665 (target_supports_terminal_ours): Check whether the initial
11666 inferior was already created.
11667 (decref_target): New.
11668 (target_stack::push): Incref/decref the target.
11669 (push_target, push_target, unpush_target): Adjust.
11670 (target_stack::unpush): Defref target.
11671 (target_is_pushed): Return bool. Adjust to refer to the current
11672 inferior's target stack.
11673 (dispose_inferior): Delete, and inline parts ...
11674 (target_preopen): ... here. Only dispose of the current inferior.
11675 (target_detach): Hold strong target reference while detaching.
11676 Pass target down.
11677 (target_thread_name): Add assertion.
11678 (target_resume): Pass down target.
11679 (target_ops::beneath, find_target_at): Adjust to refer to the
11680 current inferior's target stack.
11681 (get_dummy_target): New.
11682 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11683 has a thread running.
11684 (initialize_targets): Rename to ...
11685 (_initialize_target): ... this.
11686 * target.h: Include "gdbsupport/refcounted-object.h".
11687 (struct target_ops): Inherit refcounted_object.
11688 (target_ops::shortname, target_ops::longname): Make const.
11689 (target_ops::async_wait_fd): New method.
11690 (decref_target): Declare.
11691 (struct target_ops_ref_policy): New.
11692 (target_ops_ref): New typedef.
11693 (get_dummy_target): Declare function.
11694 (target_is_pushed): Return bool.
11695 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11696 (all_matching_threads_iterator::all_matching_threads_iterator):
11697 Handle filter target.
11698 * thread-iter.h (struct all_matching_threads_iterator, struct
11699 all_matching_threads_range, class all_non_exited_threads_range):
11700 Filter by target too. Remove explicit.
11701 * thread.c (threads_executing): Delete.
11702 (inferior_thread): Pass down current inferior.
11703 (clear_thread_inferior_resources): Pass down thread pointer
11704 instead of ptid_t.
11705 (add_thread_silent, add_thread_with_info, add_thread): Add
11706 process_stratum_target parameter. Use it for thread and inferior
11707 searches.
11708 (is_current_thread): New.
11709 (thread_info::deletable): Use it.
11710 (find_thread_ptid, thread_count, in_thread_list)
11711 (thread_change_ptid, set_resumed, set_running): New
11712 process_stratum_target parameter. Pass it down.
11713 (set_executing): New process_stratum_target parameter. Pass it
11714 down. Adjust reference to 'threads_executing'.
11715 (threads_are_executing): New process_stratum_target parameter.
11716 Adjust reference to 'threads_executing'.
11717 (set_stop_requested, finish_thread_state): New
11718 process_stratum_target parameter. Pass it down.
11719 (switch_to_thread): Also match inferior.
11720 (switch_to_thread): New process_stratum_target parameter. Pass it
11721 down.
11722 (update_threads_executing): Reimplement.
11723 * top.c (quit_force): Pop targets from all inferior.
11724 (gdb_init): Don't call initialize_targets.
11725 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11726 Declare.
11727 (windows_add_thread, windows_delete_thread): Adjust.
11728 (get_windows_debug_event): Rename to ...
11729 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11730 * tracefile-tfile.c (tfile_target_open): Pass down target.
11731 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11732 Forward declare.
11733 (switch_to_thread): Add process_stratum_target parameter.
11734 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11735 parameter. Use it.
11736 (mi_on_resume): Pass target down.
11737 * nat/fork-inferior.c (startup_inferior): Add
11738 process_stratum_target parameter. Pass it down.
11739 * nat/fork-inferior.h (startup_inferior): Add
11740 process_stratum_target parameter.
11741 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11742
11743 2020-01-10 Pedro Alves <palves@redhat.com>
11744
11745 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11746 directly. Instead find the first thread in the thread list and
11747 use switch_to_thread.
11748
11749 2020-01-10 Pedro Alves <palves@redhat.com>
11750
11751 * remote.c (remote_target::remote_add_inferior): Don't bind a
11752 process to the current inferior if the current inferior is already
11753 bound to a process.
11754
11755 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11756 Pedro Alves <palves@redhat.com>
11757
11758 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11759 If no process is specified, return null_ptid instead of
11760 inferior_ptid.
11761 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11762 TARGET_WAITKIND_SIGNALLED with no pid.
11763
11764 2020-01-10 Pedro Alves <palves@redhat.com>
11765
11766 * remote.c (first_remote_resumed_thread): New.
11767 (remote_target::wait_as): Use it as default event_ptid instead of
11768 inferior_ptid.
11769
11770 2020-01-10 Pedro Alves <palves@redhat.com>
11771
11772 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11773
11774 2020-01-10 Pedro Alves <palves@redhat.com>
11775
11776 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11777 not -1.
11778
11779 2020-01-10 Pedro Alves <palves@redhat.com>
11780
11781 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11782 ptid to get_last_target_status.
11783 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11784 ptid to get_last_target_status.
11785 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11786 get_last_target_status.
11787 (info_program_command): Don't pass a target_waitstatus to
11788 get_last_target_status.
11789 * infrun.c (init_wait_for_inferior): Use
11790 nullify_last_target_wait_ptid.
11791 (get_last_target_status): Handle nullptr arguments.
11792 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11793 (print_stop_event): Don't pass a ptid to get_last_target_status.
11794 (normal_stop): Don't pass a ptid to get_last_target_status.
11795 * infrun.h (get_last_target_status, set_last_target_status): Move
11796 comments here and update.
11797 (nullify_last_target_wait_ptid): Declare.
11798 * linux-fork.c (fork_load_infrun_state): Remove local extern
11799 declaration of nullify_last_target_wait_ptid.
11800 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11801 to get_last_target_status.
11802
11803 2020-01-10 Pedro Alves <palves@redhat.com>
11804
11805 * gdbthread.h (scoped_restore_current_thread)
11806 <dont_restore, restore, m_dont_restore>: Declare.
11807 * thread.c (thread_alive): Add assertion. Return bool.
11808 (switch_to_thread_if_alive): New.
11809 (prune_threads): Switch inferior/thread.
11810 (print_thread_info_1): Switch thread before calling target methods.
11811 (scoped_restore_current_thread::restore): New, factored out from
11812 ...
11813 (scoped_restore_current_thread::~scoped_restore_current_thread):
11814 ... this.
11815 (scoped_restore_current_thread::scoped_restore_current_thread):
11816 Add assertion.
11817 (thread_apply_all_command, thread_select): Use
11818 switch_to_thread_if_alive.
11819 * infrun.c (proceed, restart_threads, handle_signal_stop)
11820 (switch_back_to_stepped_thread): Switch current thread before
11821 calling target methods.
11822
11823 2020-01-10 Pedro Alves <palves@redhat.com>
11824
11825 * inferior.c (switch_to_inferior_no_thread): New function,
11826 factored out from ...
11827 (inferior_command): ... here.
11828 * inferior.h (switch_to_inferior_no_thread): Declare.
11829 * mi/mi-main.c (run_one_inferior): Use
11830 switch_to_inferior_no_thread.
11831
11832 2020-01-10 Pedro Alves <palves@redhat.com>
11833
11834 * infcmd.c (kill_command): Remove dead code.
11835
11836 2020-01-10 Pedro Alves <palves@redhat.com>
11837
11838 * remote.c (remote_target::mourn_inferior): No longer check
11839 whether the target is running.
11840
11841 2020-01-10 Pedro Alves <palves@redhat.com>
11842
11843 * corelow.c (core_target::has_execution): Change parameter type to
11844 inferior pointer.
11845 * inferior.c (number_of_live_inferiors): Use
11846 inferior::has_execution instead of target_has_execution_1.
11847 * inferior.h (inferior::has_execution): New.
11848 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11849 inferior::has_execution instead of target_has_execution_1.
11850 * process-stratum-target.c
11851 (process_stratum_target::has_execution): Change parameter type to
11852 inferior pointer. Check the inferior's PID instead of
11853 inferior_ptid.
11854 * process-stratum-target.h
11855 (process_stratum_target::has_execution): Change parameter type to
11856 inferior pointer.
11857 * record-full.c (record_full_core_target::has_execution): Change
11858 parameter type to inferior pointer.
11859 * target.c (target_has_execution_1): Change parameter type to
11860 inferior pointer.
11861 (target_has_execution_current): Adjust.
11862 * target.h (target_ops::has_execution): Change parameter type to
11863 inferior pointer.
11864 (target_has_execution_1): Change parameter type to inferior
11865 pointer. Change return type to bool.
11866 * tracefile.h (tracefile_target::has_execution): Change parameter
11867 type to inferior pointer.
11868
11869 2020-01-10 Pedro Alves <palves@redhat.com>
11870
11871 * exceptions.c (print_flush): Remove current_top_target() check.
11872
11873 2020-01-10 Pedro Alves <palves@redhat.com>
11874
11875 * remote.c (show_remote_exec_file): Show the current inferior's
11876 exec-file instead of the command variable's value.
11877
11878 2020-01-10 Pedro Alves <palves@redhat.com>
11879
11880 * record-full.c (record_full_resume_ptid): New global.
11881 (record_full_target::resume): Set it.
11882 (record_full_wait_1): Use record_full_resume_ptid instead of
11883 inferior_ptid.
11884
11885 2020-01-10 Pedro Alves <palves@redhat.com>
11886
11887 * gdbthread.h (scoped_restore_current_thread)
11888 <dont_restore, restore, m_dont_restore>: Declare.
11889 * thread.c (thread_alive): Add assertion. Return bool.
11890 (switch_to_thread_if_alive): New.
11891 (prune_threads): Switch inferior/thread.
11892 (print_thread_info_1): Switch thread before calling target methods.
11893 (scoped_restore_current_thread::restore): New, factored out from
11894 ...
11895 (scoped_restore_current_thread::~scoped_restore_current_thread):
11896 ... this.
11897 (scoped_restore_current_thread::scoped_restore_current_thread):
11898 Add assertion.
11899 (thread_apply_all_command, thread_select): Use
11900 switch_to_thread_if_alive.
11901
11902 2020-01-10 George Barrett <bob@bob131.so>
11903
11904 * stap-probe.c (stap_modify_semaphore): Don't check for null
11905 semaphores.
11906 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11907 for null semaphores.
11908
11909 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11910
11911 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11912 all source windows, and maintain horizontal scroll status while
11913 doing so.
11914
11915 2020-01-09 Tom Tromey <tom@tromey.com>
11916
11917 PR tui/18932:
11918 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11919 update_source_window, not print_source_lines.
11920
11921 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11922
11923 * tui/tui.c (tui_enable): Register tui hooks after calling
11924 tui_display_main.
11925
11926 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11927
11928 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11929
11930 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11931
11932 * thread.c (print_thread_info_1): Fix indentation.
11933
11934 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11935
11936 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11937 unique_xmalloc_ptr outside the if to always free the demangled name.
11938
11939 2020-01-08 Tom Tromey <tromey@adacore.com>
11940
11941 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11942 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11943 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11944 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11945 Remove.
11946 (section_offsets): New typedef.
11947 * symtab.c (fixup_section, get_msymbol_address): Update.
11948 * symmisc.c (dump_msymbols): Update.
11949 * symfile.h (relative_addr_info_to_section_offsets)
11950 (symfile_map_offsets_to_segments): Update.
11951 * symfile.c (build_section_addr_info_from_objfile)
11952 (init_objfile_sect_indices): Update.
11953 (struct place_section_arg): Change type of "offsets".
11954 (place_section): Update.
11955 (relative_addr_info_to_section_offsets): Change type of
11956 "section_offsets". Remove "num_sections" parameter.
11957 (default_symfile_offsets, syms_from_objfile_1)
11958 (set_objfile_default_section_offset): Update.
11959 (reread_symbols): No need to preserve section offsets by hand.
11960 (symfile_map_offsets_to_segments): Change type of "offsets".
11961 * stap-probe.c (relocate_address): Update.
11962 * stabsread.h (process_one_symbol): Update.
11963 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11964 (solib_target_relocate_section_addresses): Update.
11965 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11966 Update.
11967 * solib-frv.c (frv_relocate_main_executable): Update.
11968 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11969 * solib-aix.c (solib_aix_get_section_offsets): Change return
11970 type.
11971 (solib_aix_solib_create_inferior_hook): Update.
11972 * remote.c (remote_target::get_offsets): Update.
11973 * psymtab.c (find_pc_sect_psymtab): Update.
11974 * psympriv.h (struct partial_symbol) <address, text_low,
11975 text_high>: Update.
11976 * objfiles.h (obj_section_offset): Update.
11977 (struct objfile) <section_offsets>: Change type.
11978 <num_sections>: Remove.
11979 (objfile_relocate): Update.
11980 * objfiles.c (entry_point_address_query): Update
11981 (relocate_one_symbol): Change type of "section_offsets".
11982 (objfile_relocate1, objfile_relocate1): Change type of
11983 "new_offsets".
11984 (objfile_rebase1): Update.
11985 * mipsread.c (mipscoff_symfile_read): Update.
11986 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11987 parameter.
11988 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11989 (parse_external, psymtab_to_symtab_1): Update.
11990 * machoread.c (macho_symfile_offsets): Update.
11991 * ia64-tdep.c (ia64_find_unwind_table): Update.
11992 * hppa-tdep.c (read_unwind_info): Update.
11993 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11994 * dwarf2read.c (create_addrmap_from_index)
11995 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11996 (process_psymtab_comp_unit_reader, add_partial_symbol)
11997 (add_partial_subprogram, process_full_comp_unit)
11998 (read_file_scope, read_func_scope, read_lexical_block_scope)
11999 (read_call_site_scope, dwarf2_rnglists_process)
12000 (dwarf2_ranges_process, dwarf2_ranges_read)
12001 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12002 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12003 Update.
12004 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12005 Update.
12006 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12007 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12008 (process_one_symbol): Change type of "section_offsets".
12009 * ctfread.c (get_objfile_text_range): Update.
12010 * coffread.c (coff_symtab_read, enter_linenos)
12011 (process_coff_symbol): Update.
12012 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12013 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12014
12015 2020-01-08 Tom Tromey <tromey@adacore.com>
12016
12017 * dwarf2read.c (parse_macro_definition): Use std::string.
12018 (parse_macro_definition): Likewise.
12019
12020 2020-01-08 Tom Tromey <tromey@adacore.com>
12021
12022 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12023 (ATTR_ALLOC_CHUNK): Remove.
12024
12025 2020-01-08 Tom Tromey <tromey@adacore.com>
12026
12027 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12028
12029 2020-01-08 Tom Tromey <tromey@adacore.com>
12030
12031 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12032 (dwarf2_compute_name, open_dwo_file): Likewise.
12033 (process_enumeration_scope): Use std::vector.
12034 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12035 (partial_die_info::fixup, dwarf2_start_subfile)
12036 (guess_full_die_structure_name, dwarf2_name): Likewise.
12037 (determine_prefix): Update.
12038 (guess_full_die_structure_name): Make return type const.
12039 (partial_die_full_name): Return unique_xmalloc_ptr.
12040 (DW_FIELD_ALLOC_CHUNK): Remove.
12041
12042 2020-01-07 Tom Tromey <tromey@adacore.com>
12043
12044 PR build/24937:
12045 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12046
12047 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12048
12049 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12050
12051 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12052
12053 * stack.c (print_frame_info): Move disassemble_next_line code
12054 inside source_print block.
12055
12056 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12057
12058 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12059 gdb/signals.h, as we are now using native signal symbols.
12060
12061 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12062
12063 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12064 overflow by an early check of content vs threshold.
12065 * tui/tui-source.c (tui_source_window::line_is_displayed):
12066 Likewise.
12067
12068 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12069
12070 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12071
12072 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12073
12074 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12075 export table if no section contains it's RVA.
12076
12077 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12078
12079 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12080
12081 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12082
12083 * source.c (print_source_lines_base): Set last_line_listed.
12084
12085 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12086
12087 * tui/tui-disasm.c: Remove trailing spaces.
12088
12089 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12090 Pedro Alves <palves@redhat.com>
12091
12092 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12093 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12094 (windows_gdb_signal_to_target): New function, uses the above
12095 enumeration to convert GDB internal signal codes to equivalent
12096 Windows codes.
12097 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12098 * windows-nat.c: Include "gdb_wait.h".
12099 (get_windows_debug_event): Extract the fatal exception from the
12100 exit status and convert to the equivalent Posix signal number.
12101 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12102 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12103 * gdbsupport/gdb_wait.c: New file, implements
12104 windows_status_to_termsig.
12105 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12106 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12107
12108 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12109
12110 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12111 show_layout.
12112
12113 2020-01-05 Luis Machado <luis.machado@linaro.org>
12114
12115 * aarch64-linux-nat.c
12116 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12117 and bfd_mach_aarch64.
12118
12119 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12120
12121 * ui-file.c (stdio_file::can_emit_style_escape)
12122 (tee_file::can_emit_style_escape): Ensure style is used also on
12123 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12124 to gdb_stdout.
12125 * main.c (set_gdb_data_directory): Use file style to output the
12126 warning that the given pathname is not a directory.
12127 * top.c (show_history_filename, gdb_safe_append_history)
12128 (show_gdb_datadir): Use file style.
12129
12130 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12131
12132 * solib-target.c (struct lm_info_target):
12133 Change offsets to be a unique_xmalloc_ptr.
12134 (solib_target_relocate_section_addresses): Update.
12135
12136 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12137
12138 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12139
12140 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12141
12142 * MAINTAINERS (Write After Approval): Add myself.
12143
12144 2020-01-02 Luis Machado <luis.machado@linaro.org>
12145
12146 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12147 Cell BE architecture.
12148 * target.h (struct target_ops) <thread_architecture>: Likewise.
12149
12150 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12151
12152 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12153
12154 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12155
12156 * MAINTAINERS (Write After Approval): Add myself.
12157
12158 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12159
12160 * gdbarch.sh: Update copyright year range of generated files.
12161
12162 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12163
12164 Update copyright year range in all GDB files.
12165
12166 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12167
12168 * copyright.py: Convert to Python 3.
12169
12170 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12171
12172 * copyright.py: Adapt after move of gnulib directory from gdb
12173 directory to toplevel directory.
12174
12175 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12176
12177 * copyright.py (main): Exit if run from the wrong directory.
12178
12179 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12180
12181 * top.c (print_gdb_version): Change copyright year to 2020.
12182
12183 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12184
12185 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12186
12187 For older changes see ChangeLog-2019.
12188 \f
12189 Local Variables:
12190 mode: change-log
12191 left-margin: 8
12192 fill-column: 74
12193 version-control: never
12194 coding: utf-8
12195 End: