arc: Add inclusion of "gdbarch.h" in "arc-tdep.h"
[binutils-gdb.git] / gdb / ChangeLog
1 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2
3 * arc-tdep.h: Include "gdbarch.h".
4
5 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6
7 * arch/arc.h
8 (arc_gdbarch_features): New class to stir the selection of target XML.
9 (arc_create_target_description): Use FEATURES to choose XML target.
10 (arc_lookup_target_description): Use arc_create_target_description
11 to create _new_ target descriptions or return the already created
12 ones if the FEATURES is the same.
13 * arch/arc.c: Implementation of prototypes described above.
14 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
15 (arc_gdbarch_features_init): Initialize the FEATURES struct.
16 * arc-tdep.c (*_feature_name): Make feature names consistent.
17 (arc_register_feature): A new struct to hold information about
18 registers of a particular target/feature.
19 (arc_check_tdesc_feature): Check if XML provides registers in
20 compliance with ARC_REGISTER_FEATURE structs.
21 (arc_update_acc_reg_names): Add aliases for r58 and r59.
22 (determine_*_reg_feature_set): Which feature name to look for.
23 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
24 (mach_type_to_arc_isa): Convert from a set of binutils machine types
25 to expected ISA enums to be used in arc_gdbarch_features structs.
26 * features/Makefile (FEATURE_XMLFILES): Add new files.
27 * gdb/features/arc/v1-aux.c: New file.
28 * gdb/features/arc/v1-aux.xml: Likewise.
29 * gdb/features/arc/v1-core.c: Likewise.
30 * gdb/features/arc/v1-core.xml: Likewise.
31 * gdb/features/arc/v2-aux.c: Likewise.
32 * gdb/features/arc/v2-aux.xml: Likewise.
33 * gdb/features/arc/v2-core.c: Likewise.
34 * gdb/features/arc/v2-core.xml: Likewise.
35 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
36
37 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
38 Andrew Burgess <andrew.burgess@embecosm.com>
39
40 PR m2/26372
41 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
42 an assert. Remove single element array indexing pattern as the
43 MULTI_SUBSCRIPT support will handle this case too.
44
45 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
46
47 * value.h (valprint_check_validity): Move declaration from
48 here...
49 * valprint.h (valprint_check_validity): ... to here.
50
51 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
52
53 * debug.h: New file.
54 * debug.c (debug_prefixed_vprintf): New function.
55 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
56 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
57
58 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
59
60 * infrun.h (infrun_debug_printf_1): New function declaration.
61 (infrun_debug_printf): New macro.
62 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
63 throughout.
64 (infrun_debug_printf): New function.
65 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
66 (handle_jit_event): Likewise.
67
68 2020-08-21 Mark Wielaard <mark@klomp.org>
69
70 * ada-lex.l: Extend register warnings diagnostics comment for g++.
71
72 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
73
74 * frame.c (enum class frame_id_status): New.
75 (struct frame_info) <this_id::p>: Change type to frame_id_status.
76 (fprintf_frame): Update.
77 (compute_frame_id): Set frame id status to "computing" on entry.
78 Set it back to "not_computed" on failure and to "computed" on
79 success.
80 (get_frame_id): Assert the frame id is not being computed.
81 (create_sentinel_frame): Use frame_id_status::COMPUTED.
82 (create_new_frame): Likewise.
83 (frame_cleanup_after_sniffer): Update assert.
84
85 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
86
87 * regcache.c (pid_ptid_regcache_map): New type.
88 (target_ptid_regcache_map): Remove.
89 (target_pid_ptid_regcache_map): New type.
90 (regcaches): Change type to target_pid_ptid_regcache_map.
91 (get_thread_arch_aspace_regcache): Update.
92 (regcache_thread_ptid_changed): Update, handle pid-like ptid
93 case.
94 (regcaches_size): Update.
95 (regcache_count): Update.
96 (registers_changed_ptid_target_pid_test): New.
97 (_initialize_regcache): Register new test.
98
99 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
100
101 * regcache.c (regcache_count): New.
102 (struct regcache_test_data): New.
103 (regcache_test_data_up): New.
104 (populate_regcaches_for_test): New.
105 (regcaches_test): Remove.
106 (get_thread_arch_aspace_regcache_test): New.
107 (registers_changed_ptid_all_test): New.
108 (registers_changed_ptid_target_test): New.
109 (registers_changed_ptid_target_ptid_test): New.
110 (regcache_thread_ptid_changed): Remove regcache_count lambda.
111 (_initialize_regcache): Register new tests.
112
113 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
114
115 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
116 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
117 gdbarch and aspace parameter. Use current inferior's aspace.
118 Validate regcache's arch value.
119 (regcaches_test): Update.
120
121 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
122
123 * regcache.c (regcaches_test): Call registers_changed.
124
125 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
126
127 * infrun.c (process_event_stop_test): Fix typo "breapoint".
128
129 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
130
131 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
132 to find the end of prologue for flang compiled binaries.
133 * arm-tdep.c (arm_skip_prologue): Likewise.
134 * i386-tdep.c (i386_skip_prologue): Likewise.
135 * producer.c (producer_is_llvm): New function.
136 (producer_parsing_tests): Added new tests for clang/flang.
137 * producer.h (producer_is_llvm): New declaration.
138
139 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
140
141 * linux-nat.c (linux_nat_debug_printf): New function.
142 (linux_nat_debug_printf_1): New macro. Use throughout the file.
143
144 2020-08-18 Aaron Merey <amerey@redhat.com>
145
146 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
147 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
148 (CLIBS): Add DEBUGINFOD_LIBS.
149
150 2020-08-17 Sergei Trofimovich <siarheit@google.com>
151
152 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
153 'gdbarch_num_regs'.
154
155 2020-08-17 Tom Tromey <tromey@adacore.com>
156
157 * ada-varobj.c (ada_varobj_decode_var): Handle case where
158 ada_get_decoded_value returns NULL.
159
160 2020-08-17 Tom Tromey <tromey@adacore.com>
161
162 * python/py-inferior.c (infpy_search_memory): Use
163 gdb_py_object_from_ulongest.
164 * python/py-infevents.c (create_inferior_call_event_object)
165 (create_memory_changed_event_object): Use
166 gdb_py_object_from_ulongest.
167 * python/py-linetable.c (ltpy_entry_get_pc): Use
168 gdb_py_object_from_ulongest.
169
170 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
171
172 * loc.c (class symbol_needs_eval_context): Fix indentation.
173
174 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
175
176 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
177 bool.
178
179 2020-08-17 Tom de Vries <tdevries@suse.de>
180
181 PR gdb/26393
182 * gdbtypes.c (dump_dynamic_prop): New function.
183 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
184
185 2020-08-15 Tom de Vries <tdevries@suse.de>
186
187 PR backtrace/26390
188 * stack.c (print_frame_args): Temporarily set the selected
189 frame to FRAME while printing the frame's arguments.
190
191 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
192
193 PR breakpoints/26385
194 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
195 Always clear watchpoint with PTRACE_SET_DEBUGREG.
196
197 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
198
199 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
200 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
201 and >= to check return value instead of == -1 and != -1.
202
203 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
204
205 * utils.h (class gdb_argv) <as_array_view>: New method.
206 * utils.c (gdb_argv_as_array_view_test): New.
207 (_initialize_utils): Register selftest.
208 * maint.c (maintenance_selftest): Use the new method.
209
210 2020-08-13 Kamil Rytarowski <n54@gmx.com>
211
212 * target.h (supports_dumpcore, dumpcore): New
213 function declarations.
214 * target.c (supports_dumpcore, dumpcore): New
215 functions.
216 * target-delegates.c: Rebuild.
217 * gcore.c (gcore_command): Use target_supports_dumpcore ()
218 and target_dumpcore ().
219
220 2020-08-13 Aaron Merey <amerey@redhat.com>
221
222 * debuginfod-support.c: Replace global variables with user_data.
223
224 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
225
226 * maint.c (maintenance_selftest): Split args and pass array_view
227 to run_tests.
228
229 2020-08-12 Luis Machado <luis.machado@linaro.org>
230
231 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
232 type's length.
233 Use %s and pulongest to print the length.
234
235 2020-08-12 Pedro Alves <palves@redhat.com>
236
237 * NEWS: Move "Multi-target debugging support" item to the
238 "Changes since GDB 9" section.
239
240 2020-08-12 Pedro Alves <palves@redhat.com>
241
242 PR gdb/26336
243 * progspace.c (program_space::remove_objfile): Invalidate the
244 frame cache.
245
246 2020-08-11 Tom de Vries <tdevries@suse.de>
247
248 * MAINTAINERS: Mark ms1 as deleted.
249
250 2020-08-10 Luis Machado <luis.machado@linaro.org>
251
252 PR gdb/26310
253
254 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
255 act accordingly.
256 (aarch64_analyze_prologue_test): Add more unit tests to exercise
257 movz/str/stur/stp skipping behavior.
258
259 2020-08-10 Luis Machado <luis.machado@linaro.org>
260
261 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
262 struct user_sve_header instead of struct sve_context.
263
264 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
265
266 * read.h (dwarf2_fetch_die_loc_sect_off,
267 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
268 `void *` parameter with function_view.
269 * read.c (dwarf2_fetch_die_loc_sect_off,
270 dwarf2_fetch_die_loc_cu_off): Likewise.
271 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
272 (per_cu_dwarf_call): Adjust.
273 (get_frame_address_in_block_wrapper): Remove.
274 (indirect_synthetic_pointer): Adjust.
275 (get_ax_pc): Remove.
276 (dwarf2_compile_expr_to_ax): Adjust.
277
278 2020-08-08 Tom de Vries <tdevries@suse.de>
279
280 PR build/26344
281 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
282 constructor.
283 * regcache.c (get_thread_arch_aspace_regcache): Same.
284
285 2020-08-07 Tom Tromey <tromey@adacore.com>
286
287 * ravenscar-thread.c
288 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
289 New method.
290 (ravenscar_thread_target::wait): Check
291 runtime_initialized.
292 (ravenscar_thread_target::prepare_to_store)
293 (ravenscar_thread_target::stopped_by_sw_breakpoint)
294 (ravenscar_thread_target::stopped_by_hw_breakpoint)
295 (ravenscar_thread_target::stopped_by_watchpoint)
296 (ravenscar_thread_target::stopped_data_address)
297 (ravenscar_thread_target::core_of_thread): Use
298 scoped_restore_current_thread and
299 set_base_thread_from_ravenscar_task.
300
301 2020-08-07 Tom Tromey <tromey@adacore.com>
302
303 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
304
305 2020-08-07 Tom Tromey <tromey@adacore.com>
306
307 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
308 update_inferior_ptid before update_thread_list.
309 (temporarily_change_regcache_ptid): New class.
310 (ravenscar_thread_target::fetch_registers)
311 (ravenscar_thread_target::store_registers)
312 (ravenscar_thread_target::prepare_to_store): Use base thread when
313 forwarding operation.
314
315 2020-08-07 Tom Tromey <tromey@adacore.com>
316
317 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
318 "is_pid" case.
319
320 2020-08-07 Tom Tromey <tromey@adacore.com>
321
322 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
323 New methods.
324 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
325 first.
326 (ravenscar_thread_target::add_thread): Rename from
327 ravenscar_add_thread.
328 (ravenscar_thread_target::update_thread_list): Use a lambda.
329 (ravenscar_thread_target::xfer_partial): New method.
330
331 2020-08-07 Tom Tromey <tromey@adacore.com>
332
333 * ada-lang.h (ada_task_list_iterator_ftype): Now a
334 gdb::function_view.
335 (iterate_over_live_ada_tasks): Change type of argument.
336 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
337 of argument.
338
339 2020-08-07 Tom Tromey <tromey@adacore.com>
340
341 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
342 Remove.
343 (ravenscar_thread_target::extra_thread_info): Remove.
344 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
345 defer to target beneath for non-Ravenscar threads.
346
347 2020-08-07 Tom Tromey <tromey@adacore.com>
348
349 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
350 get_base_thread_from_ravenscar_task>: Now methods.
351 <m_cpu_map>: New member.
352 (ravenscar_thread_target::get_thread_base_cpu): Rename from
353 ravenscar_get_thread_base_cpu. Check m_cpu_map.
354 (ravenscar_thread_target::task_is_currently_active): Update.
355 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
356 Now a method.
357 (ravenscar_thread_target::add_active_thread): Put initial thread
358 into the m_cpu_map.
359
360 2020-08-07 Tom Tromey <tromey@adacore.com>
361
362 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
363 event_ptid.
364
365 2020-08-07 Tom Tromey <tromey@adacore.com>
366
367 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
368 runtime_initialized.
369
370 2020-08-07 Tom Tromey <tromey@adacore.com>
371
372 * ravenscar-thread.c (ravenscar_thread_target): Don't call
373 add_active_thread.
374 (ravenscar_thread_target::add_active_thread): Now public.
375 (ravenscar_inferior_created): Call add_active_thread after pushing
376 the target.
377
378 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
379
380 * regcache.c (ptid_regcache_map): New type.
381 (target_ptid_regcache_map): New type.
382 (regcaches): Change type to target_ptid_regcache_map.
383 (get_thread_arch_aspace_regcache): Update to regcaches' new
384 type.
385 (regcache_thread_ptid_changed): Likewise.
386 (registers_changed_ptid): Likewise.
387 (regcaches_size): Likewise.
388 (regcaches_test): Update.
389 (regcache_thread_ptid_changed): Update.
390 * regcache.h (regcache_up): New type.
391 * gdbsupport/ptid.h (hash_ptid): New struct.
392
393 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
394
395 * observable.h (thread_ptid_changed): Add parameter
396 `process_stratum_target *`.
397 * infrun.c (infrun_thread_ptid_changed): Add parameter
398 `process_stratum_target *` and use it.
399 (selftests): New namespace.
400 (infrun_thread_ptid_changed): New function.
401 (_initialize_infrun): Register selftest.
402 * regcache.c (regcache_thread_ptid_changed): Add parameter
403 `process_stratum_target *` and use it.
404 (regcache_thread_ptid_changed): New function.
405 (_initialize_regcache): Register selftest.
406 * thread.c (thread_change_ptid): Pass target to
407 thread_ptid_changed observable.
408
409 2020-08-06 Caroline Tice <cmtice@google.com>
410
411 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
412 (struct dwp_sections): Update field comments. Add loclists and
413 rnglists fields.
414 (struct virtual_v2_dwo_sections): Rename struct to
415 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
416 size & offset fields for loclists and rnglists.
417 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
418 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
419 skipping dummy type units.
420 (create_dwp_hash_table): Update the large comment above the function to
421 discuss Version 5 DWP files as well, with references. Update all the
422 version checks in the function to check for version 5 as well. Add new
423 section at the end to create dwp hash table for version 5.
424 (create_dwp_v2_section): Rename function to
425 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
426 Add V5 to error message text.
427 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
428 into calls to create_dwp_v2_or_v5_section.
429 (create_dwo_unit_in_dwp_v5): New function.
430 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
431 check for version2; add else clause to handle version 5.
432 (open_and_init_dwo_file): Add code to check dwarf version & only call
433 create_debug_types_hash_table (with sections.types) if version is not 5;
434 else call create_debug_type_hash_table, with sections.info.
435 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
436 version 5.
437 (dwarf2_locate_v5_dwp_sections): New function.
438 (open_and_init_dwp_file): Add else-if clause for version 5 to call
439 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
440
441 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
442
443 * regcache.h (class regcache): Remove friend
444 registers_changed_ptid.
445 <regcache_thread_ptid_changed>: Remove.
446 <regcaches>: Remove.
447 * regcache.c (regcache::regcaches): Rename to...
448 (regcaches): ... this. Make static.
449 (get_thread_arch_aspace_regcache): Update.
450 (regcache::regcache_thread_ptid_changed): Rename to...
451 (regcache_thread_ptid_changed): ... this. Update.
452 (class regcache_access): Remove.
453 (regcaches_test): Update.
454 (_initialize_regcache): Update.
455 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
456 <forward_list>.
457
458 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
459
460 * regcache.h (class regcache) <current_regcache>: Rename to...
461 <regcaches>: ... this. Move doc here.
462 * regcache.c (regcache::current_regcache) Rename to...
463 (regcache::regcaches): ... this. Move doc to header.
464 (get_thread_arch_aspace_regcache): Update.
465 (regcache::regcache_thread_ptid_changed): Update.
466 (registers_changed_ptid): Update.
467 (class regcache_access) <current_regcache_size>: Rename to...
468 <regcaches_size>: ... this.
469 (current_regcache_test): Rename to...
470 (regcaches_test): ... this.
471 (_initialize_regcache): Update.
472
473 2020-08-06 Victor Collod <vcollod@nvidia.com>
474
475 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
476
477 2020-08-05 Kevin Buettner <kevinb@redhat.com>
478
479 * corelow.c (core_target::build_file_mappings): Don't output
480 null pathname in warning.
481
482 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
483
484 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
485 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
486 gdb.dwarf2/dw2-single-line-discriminators.exp,
487 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
488
489 2020-08-05 Tom Tromey <tromey@adacore.com>
490
491 PR rust/26197:
492 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
493 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
494 Fix off-by-one and type size errors in ordinary case.
495
496 2020-08-05 Tom de Vries <tdevries@suse.de>
497
498 * gdbtypes.c (type_not_allocated, type_not_associated): Use
499 "prop->const_val () == 0" instead of "prop->const_val () != 0".
500
501 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
502
503 * frame.h (frame_id_p): Return bool.
504 (frame_id_artificial_p): Return bool.
505 (frame_id_eq): Return bool.
506 (has_stack_frames): Return bool.
507 (get_selected_frame): Fix typo in comment.
508 (get_frame_pc_if_available): Return bool.
509 (get_frame_address_in_block_if_available): Return bool.
510 (get_frame_func_if_available): Return bool.
511 (read_frame_register_unsigned): Return bool.
512 (get_frame_register_bytes): Return bool.
513 (safe_frame_unwind_memory): Return bool.
514 (deprecated_frame_register_read): Return bool.
515 (frame_unwinder_is): Return bool.
516 * frame.c (struct frame_info) <prev_arch::p>: Change type to
517 bool.
518 <this_id::p>: Likewise.
519 <prev_p>: Likewise.
520 (frame_stash_add): Return bool.
521 (get_frame_id): Use bool.
522 (frame_id_build_special) Use bool.
523 (frame_id_build_unavailable_stack): Use bool.
524 (frame_id_build): Use bool.
525 (frame_id_p): Return bool, use true/false instead of 1/0.
526 (frame_id_artificial_p): Likewise.
527 (frame_id_eq): Likewise.
528 (frame_id_inner): Likewise.
529 (get_frame_func_if_available): Likewise.
530 (read_frame_register_unsigned): Likewise.
531 (deprecated_frame_register_read): Likewise.
532 (get_frame_register_bytes): Likewise.
533 (has_stack_frames): Likewise.
534 (inside_main_func): Likewise.
535 (inside_entry_func): Likewise.
536 (get_frame_pc_if_available): Likewise.
537 (get_frame_address_in_block_if_available): Likewise.
538 (frame_unwinder_is): Likewise.
539 (safe_frame_unwind_memory): Likewise.
540 (frame_unwind_arch): Likewise.
541
542 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
543
544 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
545 type to cached_copy_status.
546 (fprintf_frame): Adjust.
547 (get_frame_func_if_available): Adjust.
548 (frame_cleanup_after_sniffer): Adjust.
549
550 2020-08-04 Mark Wielaard <mark@klomp.org>
551
552 * MAINTAINERS (Write After Approval): Update email address.
553
554 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
555
556 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
557 dynamic_prop::const_val.
558
559 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
560
561 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
562 dynamic_prop::kind.
563
564 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
565
566 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
567
568 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
569
570 * configure.tgt: Set gdb_sim for bpf-*-* targets.
571
572 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
573 Jose E. Marchesi <jose.marchesi@oracle.com>
574
575 * configure.tgt: Add entry for bpf-*-*.
576 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
577 (ALLDEPFILES): Add bpf-tdep.c.
578 * bpf-tdep.c: New file.
579 * MAINTAINERS: Add bpf target and maintainer.
580 * NEWS: Mention the support for the new target.
581
582 2020-08-04 Tom de Vries <tdevries@suse.de>
583
584 PR symtab/23270
585 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
586 Error.
587
588 2020-08-03 John Baldwin <jhb@FreeBSD.org>
589
590 * syscalls/freebsd.xml: Regenerate.
591
592 2020-08-03 John Baldwin <jhb@FreeBSD.org>
593
594 * syscalls/update-freebsd.sh: Fix usage and year range.
595
596 2020-08-03 Tom de Vries <tdevries@suse.de>
597
598 PR symtab/26333
599 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
600 DW_LNE_lo_user/DW_LNE_hi_user range.
601
602 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
603
604 PR ada/26318
605 * ada-lang.c (ada_modulus): Return 0 if property is not of const
606 kind.
607
608 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
609
610 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
611
612 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
613
614 * breakpoint.c (set_breakpoint_condition): Update the condition
615 expressions after checking that the input condition string parses
616 successfully and does not contain junk at the end.
617
618 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
619
620 * breakpoint.c (set_breakpoint_condition): Update the
621 condition string after parsing the new condition successfully.
622
623 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
624
625 * proc-api.c (_STRUCTURED_PROC): Don't define.
626 * proc-events.c: Likewise.
627 * proc-flags.c: Likewise.
628 * proc-why.c: Likewise.
629 * procfs.c: Likewise.
630
631 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
632 * configure, config.in: Regenerate.
633
634 2020-07-30 Tom de Vries <tdevries@suse.de>
635
636 PR build/26320
637 * ui-style.h (struct ui_file_style::color): Wrap m_value and
638 m_red/m_green/m_blue in a union.
639
640 2020-07-29 Tom de Vries <tdevries@suse.de>
641
642 PR tdep/26280
643 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
644
645 2020-07-28 Tom Tromey <tromey@adacore.com>
646
647 PR symtab/26270:
648 * symtab.h (find_pc_partial_function_sym): Declare.
649 * cli/cli-cmds.c (disassemble_command): Use
650 find_pc_partial_function_sym. Check asm_demangle.
651 * blockframe.c (cache_pc_function_sym): New global.
652 (cache_pc_function_name): Remove.
653 (clear_pc_function_cache): Update.
654 (find_pc_partial_function_sym): New function, from
655 find_pc_partial_function.
656 (find_pc_partial_function): Rewrite using
657 find_pc_partial_function_sym.
658
659 2020-07-28 Tom Tromey <tromey@adacore.com>
660
661 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
662 help. Add usage.
663
664 2020-07-28 Tom Tromey <tromey@adacore.com>
665
666 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
667 <DW_OP_GNU_variable_value>: Cast to address type.
668
669 2020-07-28 Kamil Rytarowski <n54@gmx.com>
670
671 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
672 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
673 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
674 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
675 (nbsd_get_siginfo_type): New.
676 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
677 (_initialize_nbsd_tdep): New.
678
679 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
680
681 PR binutils/26301
682 * configure: Regenerated.
683
684 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
685
686 PR binutils/26301
687 * configure: Regenerated.
688
689 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
690
691 * python/py-frame.c: Remove 'user-regs.h' include.
692 (frapy_read_register): Rewrite to make use of
693 gdbpy_parse_register_id.
694 * python/py-registers.c (gdbpy_parse_register_id): New function,
695 moved here from python/py-unwind.c. Updated the return type, and
696 also accepts register descriptor objects.
697 * python/py-unwind.c: Remove 'user-regs.h' include.
698 (pyuw_parse_register_id): Moved to python/py-registers.c.
699 (unwind_infopy_add_saved_register): Update to use
700 gdbpy_parse_register_id.
701 (pending_framepy_read_register): Likewise.
702 * python/python-internal.h (gdbpy_parse_register_id): Declare.
703
704 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
705
706 * python/py-registers.c: Add 'user-regs.h' include.
707 (register_descriptor_iter_find): New function.
708 (register_descriptor_iterator_object_methods): New static global
709 methods array.
710 (register_descriptor_iterator_object_type): Add pointer to methods
711 array.
712
713 2020-07-27 John Baldwin <jhb@FreeBSD.org>
714
715 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
716 for all architectures on FreeBSD 11.3 and later.
717
718 2020-07-27 Tom Tromey <tromey@adacore.com>
719
720 * gcore.h (load_corefile): Don't declare.
721
722 2020-07-27 Tom de Vries <tdevries@suse.de>
723
724 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
725 * config.in: Regenerate.
726 * configure: Regenerate.
727
728 2020-07-26 Eli Zaretskii <eliz@gnu.org>
729
730 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
731 ws2tcpip.h. When checking whether socklen_t type is defined, use
732 ws2tcpip.h if it is available and sys/socket.h isn't.
733 * configure: Regenerate.
734 * config.in: Regenerate.
735
736 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
737
738 PR fortran/23051
739 PR fortran/26139
740 * valops.c (value_ind): Pass address to
741 readjust_indirect_value_type.
742 * value.c (readjust_indirect_value_type): Make parameter
743 non-const, and add extra address parameter. Resolve original type
744 before using it.
745 * value.h (readjust_indirect_value_type): Update function
746 signature and comment.
747
748 2020-07-25 Tom de Vries <tdevries@suse.de>
749
750 PR symtab/26243
751 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
752 entries.
753
754 2020-07-24 Aaron Merey <amerey@redhat.com>
755
756 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
757 * configure: Rebuild.
758
759 2020-07-23 Kevin Buettner <kevinb@redhat.com>
760
761 PR corefiles/26294
762 * corelow.c (_initialize_corelow): Add period to help text
763 for "maintenance print core-file-backed-mappings".
764
765 2020-07-23 Pedro Alves <pedro@palves.net>
766
767 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
768 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
769 meanwhile.
770 * frame.c (frame_cache_generation, get_frame_cache_generation):
771 New.
772 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
773 (get_prev_frame_if_no_cycle): On exception, don't touch
774 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
775 * frame.h (get_frame_cache_generation): Declare.
776
777 2020-07-23 Tom de Vries <tdevries@suse.de>
778
779 PR tui/26282
780 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
781 New default constructor.
782
783 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
784
785 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
786 exclude non-statement entries.
787
788 2020-07-22 Kevin Buettner <kevinb@redhat.com>
789
790 * NEWS (New commands): Mention new command
791 "maintenance print core-file-backed-mappings".
792
793 2020-07-22 Kevin Buettner <kevinb@redhat.com>
794
795 * corelow.c (gdbcmd.h): Include.
796 (core_target::info_proc_mappings): New method.
797 (get_current_core_target): New function.
798 (maintenance_print_core_file_backed_mappings): New function.
799 (_initialize_corelow): Add core-file-backed-mappings to
800 "maint print" commands.
801
802 2020-07-22 Kevin Buettner <kevinb@redhat.com>
803
804 * linux-tdep.c (dump_note_entry_p): New function.
805 (linux_dump_mapping_p_ftype): New typedef.
806 (linux_find_memory_regions_full): Add new parameter,
807 should_dump_mapping_p.
808 (linux_find_memory_regions): Adjust call to
809 linux_find_memory_regions_full.
810 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
811 call to linux_find_memory_regions_full.
812
813 2020-07-22 Kevin Buettner <kevinb@redhat.com>
814
815 * corelow.c (solist.h, unordered_map): Include.
816 (class core_target): Add field m_core_file_mappings and
817 method build_file_mappings.
818 (core_target::core_target): Call build_file_mappings.
819 (core_target::~core_target): Free memory associated with
820 m_core_file_mappings.
821 (core_target::build_file_mappings): New method.
822 (core_target::xfer_partial): Use m_core_file_mappings
823 for memory transfers.
824 * linux-tdep.c (linux_read_core_file_mappings): New
825 function.
826 (linux_core_info_proc_mappings): Rewrite to use
827 linux_read_core_file_mappings.
828 (linux_init_abi): Register linux_read_core_file_mappings.
829
830 2020-07-22 Kevin Buettner <kevinb@redhat.com>
831
832 * arch-utils.c (default_read_core_file_mappings): New function.
833 * arch-utils.c (default_read_core_file_mappings): Declare.
834 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
835 * gdbarch.h, gdbarch.c: Regenerate.
836
837 2020-07-22 Kevin Buettner <kevinb@redhat.com>
838
839 PR corefiles/25631
840 * corelow.c (core_target:xfer_partial): Revise
841 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
842 case after first checking the stratum beneath the core
843 target.
844 (has_all_memory): Return true.
845 * target.c (raw_memory_xfer_partial): Revise comment
846 regarding use of has_all_memory.
847
848 2020-07-22 Kevin Buettner <kevinb@redhat.com>
849
850 * exec.h (section_table_xfer_memory): Revise declaration,
851 replacing section name parameter with an optional callback
852 predicate.
853 * exec.c (section_table_xfer_memory): Likewise.
854 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
855 of section_table_xfer_memory.
856
857 2020-07-22 Tom Tromey <tromey@adacore.com>
858
859 * mi/mi-cmd-stack.c (list_args_or_locals): Use
860 lookup_symbol_search_name.
861
862 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
863
864 * python/py-registers.c (gdbpy_register_object_data_init): Remove
865 redundant local variable.
866 (gdbpy_get_register_descriptor): Extract descriptor vector as a
867 reference, not pointer, update code accordingly.
868
869 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
870 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
871
872 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
873 * jit.c (jit_breakpoint_re_set_internal): Use the
874 `skip_jit_symbol_lookup` field.
875
876 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
877 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
878
879 * jit.c (jit_read_descriptor): Define the descriptor address once,
880 use twice.
881 (jit_breakpoint_deleted): Move the declaration of the loop variable
882 `iter` into the loop header.
883 (jit_breakpoint_re_set_internal): Move the declaration of the local
884 variable `objf_data` to the first point of definition.
885 (jit_event_handler): Move the declaration of local variables
886 `code_entry`, `entry_addr`, and `objf` to their first point of use.
887 Rename `objf` to `jited`.
888
889 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
890
891 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
892 Remove.
893 * jit.c (get_jiter_objfile_data): Update.
894
895 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
896 Simon Marchi <simon.marchi@polymtl.ca>
897
898 * jit.c (struct jit_program_space_data): Remove.
899 (jit_program_space_key): Remove.
900 (jiter_objfile_data::~jiter_objfile_data): Remove program space
901 stuff.
902 (get_jit_program_space_data): Remove.
903 (jit_breakpoint_deleted): Iterate on all of the program space's
904 objfiles.
905 (jit_inferior_init): Likewise.
906 (jit_breakpoint_re_set_internal): Likewise. Also change return
907 type to void.
908 (jit_breakpoint_re_set): Pass current_program_space to
909 jit_breakpoint_re_set_internal.
910
911 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
912
913 * jit.h (struct jiter_objfile_data) <cached_code_address,
914 jit_breakpoint>: Move to here from ...
915 * jit.c (jit_program_space_data): ... here.
916 (jiter_objfile_data::~jiter_objfile_data): Update.
917 (jit_breakpoint_deleted): Update.
918 (jit_breakpoint_re_set_internal): Update.
919
920 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
921
922 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
923 checks.
924 (jit_read_descriptor): Remove NULL check.
925 (jit_event_handler): Add an assertion.
926
927 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
928
929 * jit.h (struct jit_objfile_data): Split into...
930 (struct jiter_objfile_data): ... this ...
931 (struct jited_objfile_data): ... and this.
932 * objfiles.h (struct objfile) <jit_data>: Remove.
933 <jiter_data, jited_data>: New fields.
934 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
935 (jiter_objfile_data::~jiter_objfile_data): ... this.
936 (get_jit_objfile_data): Rename to ...
937 (get_jiter_objfile_data): ... this.
938 (add_objfile_entry): Update.
939 (jit_read_descriptor): Use get_jiter_objfile_data.
940 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
941 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
942 (jit_inferior_exit_hook): Use objfile's jited_data field.
943
944 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
945
946 * jit.h: Forward-declare `struct minimal_symbol`.
947 (struct jit_objfile_data): Migrate to here from jit.c; also add a
948 constructor, destructor, and an objfile* field.
949 * jit.c (jit_objfile_data): Remove.
950 (struct jit_objfile_data): Migrate from here to jit.h.
951 (jit_objfile_data::~jit_objfile_data): New destructor
952 implementation with code moved from free_objfile_data.
953 (free_objfile_data): Delete.
954 (get_jit_objfile_data): Update to use the jit_data field of objfile.
955 (jit_find_objf_with_entry_addr): Ditto.
956 (jit_inferior_exit_hook): Ditto.
957 (_initialize_jit): Remove the call to
958 register_objfile_data_with_cleanup.
959 * objfiles.h (struct objfile) <jit_data>: New field.
960
961 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
962
963 * jit.h: Forward-declare `struct objfile`.
964 (jit_event_handler): Add a second parameter, the JITer objfile.
965 * jit.c (jit_read_descriptor): Change the signature to take the
966 JITer objfile as an argument instead of the jit_program_space_data.
967 (jit_inferior_init): Update the call to jit_read_descriptor.
968 (jit_event_handler): Use the new JITer objfile argument when calling
969 jit_read_descriptor.
970 * breakpoint.c (handle_jit_event): Update the call to
971 jit_event_handler to pass the JITer objfile.
972
973 2020-07-21 John Baldwin <jhb@FreeBSD.org>
974
975 * gdbarch.c: Regenerate.
976 * gdbarch.h: Regenerate.
977 * gdbarch.sh (handle_segmentation_fault): Remove method.
978 * infrun.c (handle_segmentation_fault): Remove.
979 (print_signal_received_reason): Remove call to
980 handle_segmentation_fault.
981
982 2020-07-21 John Baldwin <jhb@FreeBSD.org>
983
984 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
985 Rename to sparc64_linux_report_signal_info and add siggnal
986 argument.
987 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
988 instead of sparc64_linux_handle_segmentation_fault.
989
990 2020-07-21 John Baldwin <jhb@FreeBSD.org>
991
992 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
993 i386_linux_report_signal_info instead of
994 i386_linux_handle_segmentation_fault.
995 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
996 to i386_linux_report_signal_info and add siggnal argument.
997 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
998 of i386_linux_handle_segmentation_fault.
999 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1000 to i386_linux_report_signal_info and add siggnal argument.
1001
1002 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1003
1004 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1005 hook if present.
1006
1007 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1008
1009 * gdbarch.c: Regenerate.
1010 * gdbarch.h: Regenerate.
1011 * gdbarch.sh (report_signal_info): New method.
1012 * infrun.c (print_signal_received_reason): Invoke gdbarch
1013 report_signal_info hook if present.
1014
1015 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1016
1017 * python/py-registers.c : Add 'unordered_map' include.
1018 (gdbpy_new_reggroup): Renamed to...
1019 (gdbpy_get_reggroup): ...this. Update to only create register
1020 group descriptors when needed.
1021 (gdbpy_reggroup_iter_next): Update.
1022
1023 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1024
1025 * python/py-registers.c (gdbpy_register_object_data): New static
1026 global.
1027 (gdbpy_register_object_data_init): New function.
1028 (gdbpy_new_register_descriptor): Renamed to...
1029 (gdbpy_get_register_descriptor): ...this, and update to reuse
1030 existing register descriptors where possible.
1031 (gdbpy_register_descriptor_iter_next): Update.
1032 (gdbpy_initialize_registers): Register new gdbarch data.
1033
1034 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1035
1036 * linux-nat.c (stopped_pids): Make static.
1037
1038 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1039
1040 PR ada/26235
1041 * gdbtypes.c (ada_discrete_type_low_bound,
1042 ada_discrete_type_high_bound): Handle undefined bounds.
1043
1044 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1045
1046 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1047 declaration.
1048 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1049 function.
1050
1051 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1052
1053 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1054 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1055 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1056 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1057 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1058 method.
1059
1060 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1061
1062 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1063 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1064 which are deprecated in Guile 3.0.
1065 * configure.ac (try_guile_versions): Add "guile-3.0".
1066 * configure (try_guile_versions): Regenerate.
1067 * NEWS: Update entry.
1068
1069 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1070 Doug Evans <dje@google.com>
1071
1072 PR gdb/21104
1073 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1074 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1075 USING_GUILE_BEFORE_2_2.
1076 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1077 Change type to 'scm_t_port_type *'.
1078 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1079 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1080 parameter and honor it. Update callers.
1081 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1082 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1083 functions.
1084 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1085 USING_GUILE_BEFORE_2_2.
1086 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1087 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1088 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1089 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1090 and 'SCM_PORT_TYPE'.
1091 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1092 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1093 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1094 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1095 [!USING_GUILE_BEFORE_2_2]: New functions.
1096 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1097 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1098 'gdbscm_memory_port_read'.
1099 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1100 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1101 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1102 function.
1103 (ioscm_init_memory_port): Remove.
1104 (ioscm_init_memory_port_stream): New function
1105 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1106 function.
1107 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1108 Return scm_from_uint (0).
1109 (gdbscm_set_memory_port_read_buffer_size_x)
1110 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1111 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1112 Return scm_from_uint (0).
1113 (gdbscm_set_memory_port_write_buffer_size_x)
1114 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1115 * configure.ac (try_guile_versions): Add "guile-2.2".
1116 * configure: Regenerate.
1117 * NEWS: Add entry.
1118
1119 2020-07-18 Tom Tromey <tom@tromey.com>
1120
1121 * linux-nat.c (linux_multi_process): Remove.
1122 (linux_nat_target::supports_multi_process): Return true.
1123
1124 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1125
1126 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1127 (riscv_lookup_target_description): Return pointer out of
1128 unique_ptr.
1129 * target-descriptions.c (allocate_target_description): Add
1130 comment.
1131 (target_desc_deleter::operator()): Likewise.
1132 * target-descriptions.h (struct target_desc_deleter): Moved to
1133 gdbsupport/tdesc.h.
1134 (target_desc_up): Likewise.
1135
1136 2020-07-17 Tom Tromey <tromey@adacore.com>
1137
1138 * linux-nat.c (linux_nat_target::supports_non_stop)
1139 (linux_nat_target::always_non_stop_p): Use "true".
1140 (linux_nat_target::supports_disable_randomization): Use "true" and
1141 "false".
1142
1143 2020-07-16 Caroline Tice <cmtice@google.com>
1144
1145 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1146 (RNGLIST_HEADER_SIZE64): New constant definition.
1147 (struct dwop_section_names): Add rnglists_dwo.
1148 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1149 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1150 (struct dwo_sections): Add rnglists field.
1151 (read_attribut_reprocess): Add tag parameter.
1152 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1153 (cu_debug_rnglists_section): New function (decl & definition).
1154 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1155 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1156 die whose range is being checked; get rnglist section from
1157 cu_debug_rnglists_section, to get from either objfile or dwo file as
1158 appropriate. Add cases for DW_RLE_base_addressx,
1159 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1160 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1161 test inside if-condition and updating complaint message.
1162 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1163 dwarf2_rnglists_process.
1164 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1165 dwarf2_ranges_process.
1166 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1167 need_ranges_base and update comment appropriately. Also pass die tag
1168 to dwarf2_ranges_read.
1169 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1170 need_ranges_base and update comment appropriately. Also pass die tag
1171 to dwarf2_ranges_process.
1172 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1173 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1174 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1175 need_ranges_base and update comment appropriately. Also pass die tag
1176 to read_attribute_reprocess and dwarf2_ranges_read.
1177 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1178 and update function comment appropriately.
1179 (read_loclist_index): Call read_loclists_rnglists_header instead of
1180 read_loclist_header.
1181 (read_rnglist_index): New function.
1182 (read_attribute_reprocess): Add tag parameter. Add code for
1183 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1184 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1185
1186 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1187
1188 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1189 being resolved.
1190
1191 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1192
1193 * arch-utils.c (show_architecture): Update formatting of messages.
1194
1195 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1196
1197 * gdbtypes.h (struct type) <bounds>: Handle array and string
1198 types.
1199 * ada-lang.c (assign_aggregate): Use type::bounds on
1200 array/string type.
1201 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1202 * c-varobj.c (c_number_of_children): Likewise.
1203 (c_describe_child): Likewise.
1204 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1205 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1206 (f_type_print_base): Likewise.
1207 * f-valprint.c (f77_array_offset_tbl): Likewise.
1208 (f77_get_upperbound): Likewise.
1209 (f77_print_array_1): Likewise.
1210 * guile/scm-type.c (gdbscm_type_range): Likewise.
1211 * m2-typeprint.c (m2_array): Likewise.
1212 (m2_is_long_set_of_type): Likewise.
1213 * m2-valprint.c (get_long_set_bounds): Likewise.
1214 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1215 * python/py-type.c (typy_range): Likewise.
1216 * rust-lang.c (rust_internal_print_type): Likewise.
1217 * type-stack.c (type_stack::follow_types): Likewise.
1218 * valarith.c (value_subscripted_rvalue): Likewise.
1219 * valops.c (value_cast): Likewise.
1220
1221 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1222
1223 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1224 callers to use the equivalent accessor methods.
1225
1226 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1227
1228 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1229 (struct type) <bit_stride>: New method.
1230 (TYPE_BIT_STRIDE): Remove.
1231 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1232
1233 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1234
1235 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1236 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1237 callers to use the equivalent accessor methods instead.
1238
1239 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1240
1241 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1242 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1243 callers to use the equivalent accessor methods instead.
1244
1245 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1246
1247 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1248 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1249 to use dynamic_prop::kind.
1250
1251 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1252
1253 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1254 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1255 to get the bound property's kind and check against
1256 PROP_UNDEFINED.
1257
1258 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1259
1260 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1261 all callers to use type::range_bounds followed by
1262 dynamic_prop::{low,high}.
1263
1264 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1265
1266 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1267 const_val, set_const_val, baton, set_locexpr, set_loclist,
1268 set_addr_offset, variant_parts, set_variant_parts,
1269 original_type, set_original_type>: New methods.
1270 <kind>: Rename to...
1271 <m_kind>: ... this. Update all users to use the new methods
1272 instead.
1273 <data>: Rename to...
1274 <m_data>: ... this. Update all users to use the new methods
1275 instead.
1276
1277 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1278
1279 * gdbtypes.c (get_discrete_bounds): Return failure if
1280 the range type's bounds are not both defined and constant
1281 values.
1282 (get_array_bounds): Update comment. Remove undefined bound check.
1283
1284 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1285
1286 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1287 the type::bounds method directly.
1288
1289 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1290
1291 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1292 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1293 are used to set the range type's bounds to use set_bounds.
1294
1295 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1296
1297 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1298
1299 2020-07-10 Pedro Alves <pedro@palves.net>
1300
1301 * gdbthread.h (inferior_ref): Define.
1302 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1303 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1304 * thread.c
1305 (scoped_restore_current_thread::restore):
1306 Adjust to gdb::ref_ptr.
1307 (scoped_restore_current_thread::~scoped_restore_current_thread):
1308 Remove manual decref handling.
1309 (scoped_restore_current_thread::scoped_restore_current_thread):
1310 Adjust to use
1311 inferior_ref::new_reference/thread_info_ref::new_reference.
1312 Incref the thread before calling get_frame_id instead of after.
1313 Let TARGET_CLOSE_ERROR propagate.
1314
1315 2020-07-10 Pedro Alves <pedro@palves.net>
1316
1317 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1318 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1319 NOT_AVAILABLE_ERROR.
1320 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1321 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1322
1323 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1324 Pedro Alves <pedro@palves.net>
1325
1326 PR gdb/26199
1327 * infrun.c (threads_are_resumed_pending_p): Delete.
1328 (do_target_wait): Remove threads_are_executing and
1329 threads_are_resumed_pending_p checks from the inferior_matches
1330 lambda. Update comments.
1331
1332 2020-07-10 Pedro Alves <pedro@palves.net>
1333
1334 PR gdb/26199
1335 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1336 executing threads.
1337
1338 2020-07-10 Pedro Alves <pedro@palves.net>
1339
1340 PR gdb/26199
1341 * infrun.c (handle_no_resumed): Handle multiple targets.
1342
1343 2020-07-10 Pedro Alves <pedro@palves.net>
1344
1345 PR gdb/26199
1346 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1347 target_is_async_p.
1348
1349 2020-07-10 Pedro Alves <pedro@palves.net>
1350
1351 PR gdb/26199
1352 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1353 threads, not all threads.
1354
1355 2020-07-10 Pedro Alves <pedro@palves.net>
1356
1357 PR gdb/26199
1358 * remote.c (remote_target::open_1): Pass remote target pointer as
1359 data to create_async_event_handler.
1360 (remote_async_inferior_event_handler): Mark async event handler
1361 before returning if the remote target still has either pending
1362 events or unacknowledged notifications.
1363
1364 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1365
1366 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1367 declaration.
1368 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1369 function.
1370
1371 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1372
1373 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1374 inferior_ptid.
1375
1376 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1377
1378 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1379 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1380 AT_FREEBSD_PS_STRINGS.
1381
1382 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1383
1384 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1385 of debugfile path on Windows.
1386
1387 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1388
1389 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1390 argument to 'data'.
1391
1392 2020-07-08 Tom Tromey <tromey@adacore.com>
1393
1394 * ada-lang.c (ada_exception_message_1): Use read_memory.
1395
1396 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1397
1398 PR python/22748
1399 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1400 special handling for inline frames.
1401 * findvar.c (value_of_register_lazy): Skip inline frames when
1402 creating lazy register values.
1403 * frame.c (frame_id_computed_p): Delete definition.
1404 * frame.h (frame_id_computed_p): Delete declaration.
1405
1406 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1407
1408 * NEWS: Mention additions to Python API.
1409 * python/py-arch.c (archpy_register_groups): New function.
1410 (arch_object_methods): Add 'register_groups' method.
1411 * python/py-registers.c (reggroup_iterator_object): New struct.
1412 (reggroup_object): New struct.
1413 (gdbpy_new_reggroup): New function.
1414 (gdbpy_reggroup_to_string): New function.
1415 (gdbpy_reggroup_name): New function.
1416 (gdbpy_reggroup_iter): New function.
1417 (gdbpy_reggroup_iter_next): New function.
1418 (gdbpy_new_reggroup_iterator): New function
1419 (gdbpy_initialize_registers): Register new types.
1420 (reggroup_iterator_object_type): Define new Python type.
1421 (gdbpy_reggroup_getset): New static global.
1422 (reggroup_object_type): Define new Python type.
1423 * python/python-internal.h
1424
1425 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1426
1427 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1428 * python/py-arch.c (archpy_registers): New function.
1429 (arch_object_methods): Add 'registers' method.
1430 * python/py-registers.c: New file.
1431 * python/python-internal.h
1432 (gdbpy_new_register_descriptor_iterator): Declare.
1433 (gdbpy_initialize_registers): Declare.
1434 * python/python.c (do_start_initialization): Call
1435 gdbpy_initialize_registers.
1436 * NEWS: Mention additions to the Python API.
1437
1438 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1439
1440 * NEWS: Mention new Python API method.
1441 * python/py-unwind.c (pending_framepy_architecture): New function.
1442 (pending_frame_object_methods): Add architecture method.
1443
1444 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1445
1446 * gdbarch.c: Regenerate.
1447 * gdbarch.h: Regenerate.
1448 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1449 (gdbarch_data): Use internal_error for the case where
1450 deprecated_set_gdbarch_data was originally needed.
1451 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1452 and use passed in obstack.
1453 (libunwind_frame_set_descr): Should no longer get back NULL from
1454 gdbarch_data.
1455 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1456 type.
1457 * user-regs.c (user_regs_init): Update parameters, and use passed
1458 in obstack.
1459 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1460 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1461
1462 2020-07-06 Tom de Vries <tdevries@suse.de>
1463
1464 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1465 End-Of-Sequence in lte_is_less_than.
1466 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1467 "gdb: Don't reorder line table entries too much when sorting".
1468
1469 2020-07-06 Tom de Vries <tdevries@suse.de>
1470
1471 PR tui/26205
1472 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1473
1474 2020-07-05 Tom de Vries <tdevries@suse.de>
1475
1476 PR build/26187
1477 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1478 std::uncaught_exceptions instead of deprecated
1479 std::uncaught_exception.
1480
1481 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1482
1483 * macroexp.h (macro_stringify): Return
1484 gdb::unique_xmalloc_ptr<char>.
1485 * macroexp.c (macro_stringify): Likewise.
1486 * macrotab.c (fixup_definition): Update.
1487
1488 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1489
1490 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1491 (lex_one_token): Update.
1492 * macroexp.c (struct macro_buffer) <release>: Return
1493 gdb::unique_xmalloc_ptr<char>.
1494 (macro_stringify): Update.
1495 (macro_expand): Update.
1496 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1497 * macroexp.h (macro_expand_next): Likewise.
1498
1499 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1500
1501 * macroexp.h (macro_lookup_ftype): Remove.
1502 (macro_expand, macro_expand_once, macro_expand_next): Remove
1503 lookup function parameters, add scope parameter.
1504 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1505 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1506 * macroscope.h (standard_macro_lookup): Change parameter type
1507 to macro_scope.
1508 * macroscope.c (standard_macro_lookup): Likewise.
1509 * c-exp.y (lex_one_token): Update.
1510 * macrocmd.c (macro_expand_command): Likewise.
1511 (macro_expand_once_command): Likewise.
1512
1513 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1514
1515 * inf-loop.c (inferior_event_handler): Remove client_data param.
1516 * inf-loop.h (inferior_event_handler): Likewise.
1517 * infcmd.c (step_1): Adjust.
1518 * infrun.c (proceed): Adjust.
1519 (fetch_inferior_event): Remove client_data param.
1520 (infrun_async_inferior_event_handler): Adjust.
1521 * infrun.h (fetch_inferior_event): Remove `void *` param.
1522 * linux-nat.c (handle_target_event): Adjust.
1523 * record-btrace.c (record_btrace_handle_async_inferior_event):
1524 Adjust.
1525 * record-full.c (record_full_async_inferior_event_handler):
1526 Adjust.
1527 * remote.c (remote_async_inferior_event_handler): Adjust.
1528
1529 2020-07-01 Tom Tromey <tom@tromey.com>
1530
1531 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1532 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1533
1534 2020-07-01 Tom Tromey <tom@tromey.com>
1535
1536 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1537 tui_gen_win_info.
1538 (tui_win_info::make_window): Merge with
1539 tui_gen_win_info::make_window.
1540 (tui_win_info::make_visible): Move from tui_gen_win_info.
1541 * tui/tui-win.c (tui_win_info::max_width): Move from
1542 tui_gen_win_info.
1543 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1544 type.
1545 <window_factory>: Likewise.
1546 * tui/tui-layout.c (tui_win_info::resize): Move from
1547 tui_gen_win_info.
1548 (make_standard_window): Change return type.
1549 (get_locator_window, tui_get_window_by_name): Likewise.
1550 (tui_layout_window::apply): Remove a cast.
1551 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1552 (struct tui_win_info): Merge with tui_gen_win_info.
1553 (struct tui_gen_win_info): Remove.
1554
1555 2020-07-01 Tom Tromey <tom@tromey.com>
1556
1557 * tui/tui-stack.h (struct tui_locator_window): Derive from
1558 tui_win_info.
1559 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1560 <can_box>: New method.
1561
1562 2020-07-01 Tom Tromey <tom@tromey.com>
1563
1564 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1565
1566 2020-07-01 Tom Tromey <tom@tromey.com>
1567
1568 * tui/tui-regs.c (tui_data_window::display_registers_from)
1569 (tui_data_window::display_registers_from)
1570 (tui_data_window::first_data_item_displayed)
1571 (tui_data_window::delete_data_content_windows): Update.
1572 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1573 Remove.
1574 (tui_data_window::check_register_values): Update.
1575 (tui_data_item_window::rerender): Add parameters. Update.
1576 (tui_data_item_window::refresh_window): Remove.
1577 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1578 virtual.
1579 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1580 tui_gen_win_info.
1581 <refresh_window, max_height, min_height>: Remove.
1582 <rerender>: Add parameters.
1583 <x, y, visible>: New members.
1584 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1585 <m_item_width>: New member.
1586
1587 2020-07-01 Tom Tromey <tom@tromey.com>
1588
1589 * tui/tui-regs.c (tui_data_window::show_register_group)
1590 (tui_data_window::check_register_values): Update.
1591 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1592 from item_no.
1593
1594 2020-07-01 Tom Tromey <tom@tromey.com>
1595
1596 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1597 useless "if".
1598
1599 2020-07-01 Tom Tromey <tom@tromey.com>
1600
1601 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1602 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1603
1604 2020-07-01 Tom Tromey <tom@tromey.com>
1605
1606 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1607 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1608 (struct tui_line_or_address): Move from tui-data.h.
1609 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1610 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1611 (tui_cmd_window, tui_source_window_base, tui_source_window)
1612 (tui_disasm_window): Don't declare.
1613 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1614 to tui-winsource.h.
1615 (SINGLE_KEY): Move to tui-stack.c.
1616
1617 2020-07-01 Tom Tromey <tom@tromey.com>
1618
1619 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1620 std::string.
1621 * tui/tui-regs.c (class tab_expansion_file): New.
1622 (tab_expansion_file::write): New method.
1623 (tui_register_format): Change return type. Use
1624 tab_expansion_file.
1625 (tui_get_register, tui_data_window::display_registers_from)
1626 (tui_data_item_window::rerender): Update.
1627 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1628 * tui/tui-io.c (tui_expand_tabs): Remove.
1629
1630 2020-07-01 Tom Tromey <tom@tromey.com>
1631
1632 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1633
1634 2020-07-01 Fangrui Song <maskray@google.com>
1635
1636 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1637
1638 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1639
1640 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1641 forms for DW_AT_associated and DW_AT_allocated attributes,
1642 which is already checked in function attr_to_dynamic_prop.
1643
1644 2020-06-30 Tom Tromey <tromey@adacore.com>
1645
1646 * dwarf2/read.c (quirk_rust_enum): Correctly call
1647 alloc_rust_variant for default-less enum.
1648
1649 2020-06-30 Tom Tromey <tromey@adacore.com>
1650
1651 PR build/26183:
1652 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1653 gdb::to_string.
1654
1655 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1656
1657 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1658 * gdbarch.h: Re-generate.
1659
1660 2020-06-28 Tom Tromey <tom@tromey.com>
1661
1662 * command.h (cmd_types): Remove.
1663 (cmd_type): Don't declare.
1664 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1665 typedef.
1666 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1667 * cli/cli-decode.c (cmd_type): Remove.
1668
1669 2020-06-27 Pedro Alves <palves@redhat.com>
1670
1671 * fork-child.c (prefork_hook): Adjust.
1672 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1673 Delete.
1674 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1675 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1676 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1677 Remove declarations.
1678 (struct inferior) <set_tty, tty>: New methods.
1679 (struct inferior) <terminal>: Rename to ...
1680 (struct inferior) <m_terminal>: ... this and make private.
1681 * main.c (captured_main_1): Adjust.
1682 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1683 (mi_cmd_inferior_tty_show): Adjust.
1684 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1685 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1686
1687 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1688
1689 * configure.ac: Add --enable-libctf: handle --disable-static
1690 properly.
1691 * acinclude.m4: sinclude ../config/enable.m4.
1692 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1693 (LIBCTF): Substitute in.
1694 (CTF_DEPS): New, likewise.
1695 (CLIBS): libctf needs symbols from libbfd: move earlier.
1696 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1697 flags.
1698 * ctfread.c: Surround in ENABLE_LIBCTF.
1699 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1700 * configure: Regenerate.
1701 * config.in: Likewise.
1702
1703 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1704
1705 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1706
1707 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1708
1709 * inferior.h (struct inferior) <terminal>: Change type to
1710 gdb::unique_xmalloc_ptr<char>.
1711 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1712 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1713 field, adjust to unique pointer.
1714 (get_inferior_io_terminal): Adjust to unique pointer.
1715
1716 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1717
1718 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1719 registers, not just the known core set of registers.
1720
1721 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1722
1723 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1724 fflags, frm, and fcsr registers.
1725 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1726 restore groups.
1727 (riscv_tdesc_unknown_reg): New function.
1728 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1729 tdesc_use_registers.
1730 * riscv-tdep.h (struct gdbarch_tdep): Add
1731 unknown_csrs_first_regnum, unknown_csrs_count,
1732 duplicate_fflags_regnum, duplicate_frm_regnum, and
1733 duplicate_fcsr_regnum fields.
1734
1735 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1736
1737 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1738 callback, use the callback (when not null) to help number unknown
1739 registers.
1740 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1741 (tdesc_use_registers): Add extra parameter to declaration.
1742
1743 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1744
1745 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1746 in the file.
1747 (class riscv_pending_register_alias): Likewise.
1748 (riscv_register_feature::register_info): Change 'required_p' field
1749 to 'required', and change its type. Add 'check' member function.
1750 (riscv_register_feature::register_info::check): Define new member
1751 function.
1752 (riscv_xreg_feature): Change initialisation of 'required' field.
1753 (riscv_freg_feature): Likewise.
1754 (riscv_virtual_feature): Likewise.
1755 (riscv_csr_feature): Likewise.
1756 (riscv_check_tdesc_feature): Take extra parameter, the csr
1757 tdesc_feature, rewrite the function to use the new
1758 riscv_register_feature::register_info::check function.
1759 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1760
1761 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1762
1763 * features/Makefile: Remove all references to the deleted files
1764 below.
1765 * features/riscv/32bit-csr.c: Deleted.
1766 * features/riscv/32bit-csr.xml: Deleted.
1767 * features/riscv/64bit-csr.c: Deleted.
1768 * features/riscv/64bit-csr.xml: Deleted.
1769 * features/riscv/rebuild-csr-xml.sh: Deleted.
1770
1771 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1772
1773 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1774 whitespace error for declaration of names member variable.
1775 (struct riscv_register_feature): Add new prefer_first_name member
1776 variable, and fix whitespace error in declaration of registers.
1777 (riscv_xreg_feature): Initialize prefer_first_name field.
1778 (riscv_freg_feature): Likewise.
1779 (riscv_virtual_feature): Likewise.
1780 (riscv_csr_feature): Likewise.
1781 (riscv_register_name): Expand on comments. Remove register name
1782 modifications for CSR and virtual registers.
1783
1784 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1785
1786 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1787 errors.
1788
1789 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1790
1791 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1792 riscv-opc.h.
1793 (class riscv_pending_register_alias): New class.
1794 (riscv_check_tdesc_feature): Take vector of pending aliases and
1795 populate it as appropriate.
1796 (riscv_setup_register_aliases): Delete.
1797 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1798 to riscv_check_tdesc_feature in all cases. Use the vector to
1799 create the register aliases.
1800
1801 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1802
1803 * sol2-tdep.c (sol2_static_transform_name): Remove.
1804 (sol2_init_abi): Don't register it.
1805 * gdbarch.sh (static_transform_name): Remove.
1806 * gdbarch.c, gdbarch.h: Regenerate.
1807
1808 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1809 gdbarch_static_transform_name.
1810 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1811 * stabsread.c (define_symbol) <'X'>: Remove.
1812 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1813 handling.
1814 <'V'>: Likewise.
1815 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1816 <'S'>: Remove call to gdbarch_static_transform_name.
1817
1818 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1819
1820 * procfs.c (procfs_pre_trace): New function.
1821 (procfs_target::create_inferior): Pass it to fork_inferior.
1822
1823 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1824
1825 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1826 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1827 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1828 sol2-tdep.o, sparc-sol2-tdep.o.
1829 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1830 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1831 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1832 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1833
1834 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1835
1836 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1837 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1838 Call sol2_init_abi.
1839 Remove calls to set_gdbarch_skip_solib_resolver,
1840 set_gdbarch_core_pid_to_str.
1841 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1842 (i386_sol2_static_transform_name): Remove.
1843 (i386_sol2_init_abi): Call sol2_init_abi.
1844 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1845 set_gdbarch_static_transform_name,
1846 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1847 Use sol2_sigtramp_p.
1848 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1849 (sol2_sigtramp_p): New function.
1850 (sol2_static_transform_name): New function.
1851 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1852 (sol2_init_abi): New function.
1853 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1854 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1855 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1856 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1857 (sparc_sol2_static_transform_name): Remove.
1858 (sparc32_sol2_init_abi): Call sol2_init_abi.
1859 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1860 set_gdbarch_static_transform_name,
1861 set_gdbarch_skip_solib_resolver,
1862 set_gdbarch_core_pid_to_str.
1863 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1864 (sparc_sol2_static_transform_name): Remove
1865 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1866 call sol2_sigtramp_p.
1867 (sparc64_sol2_init_abi): Call sol2_init_abi.
1868 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1869 set_gdbarch_static_transform_name,
1870 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1871
1872 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1873
1874 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1875 * exec.c (validate_exec_file): If from_tty, set both
1876 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1877 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1878 and from_tty, unconditionally ask a confirmation.
1879
1880 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1881
1882 * target-descriptions.c (tdesc_architecture_name): Protect against
1883 NULL pointer dereference.
1884 (maint_print_xml_tdesc_cmd): New function.
1885 (_initialize_target_descriptions): Register new 'maint print
1886 xml-tdesc' command and give it the filename completer.
1887 * NEWS: Mention new 'maint print xml-tdesc' command.
1888
1889 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1890
1891 * target-descriptions.c (class tdesc_compatible_info): New class.
1892 (struct target_desc): Change type of compatible vector.
1893 (tdesc_compatible_p): Update for change in type of
1894 target_desc::compatible.
1895 (tdesc_compatible_info_list): New function.
1896 (tdesc_compatible_info_arch_name): New function.
1897 (tdesc_add_compatible): Update for change in type of
1898 target_desc::compatible.
1899 (print_c_tdesc::visit_pre): Likewise.
1900
1901 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1902
1903 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1904 whitespace to underscore.
1905 (maint_print_c_tdesc_cmd): Use fake filename for target
1906 descriptions that came from the target.
1907 (_initialize_target_descriptions): Add filename command completion
1908 for 'maint print c-tdesc'.
1909
1910 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1911
1912 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1913 lines.
1914
1915 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1916
1917 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1918 lines.
1919 (dwarf2_find_location_expression): Likewise.
1920 (call_site_parameter_matches): Likewise.
1921 (dwarf2_compile_expr_to_ax): Likewise.
1922 (disassemble_dwarf_expression): Likewise.
1923 (loclist_describe_location): Likewise.
1924
1925 2020-06-23 Pedro Alves <palves@redhat.com>
1926
1927 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1928 progspace-and-thread.h. Include scoped-mock-context.h instead.
1929 (register_to_value_test): Use scoped_mock_context.
1930 * regcache.c: Include "scoped-mock-context.h".
1931 (cooked_read_test): Don't error out if a target is already pushed.
1932 Use scoped_mock_context. Adjust.
1933 * scoped-mock-context.h: New file.
1934
1935 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1936
1937 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1938 initializer.
1939 (ada_language::is_string_type_p): New member function.
1940 * c-lang.c (c_language_data): Delete la_is_string_type_p
1941 initializer.
1942 (cplus_language_data): Likewise.
1943 (asm_language_data): Likewise.
1944 (minimal_language_data): Likewise.
1945 * d-lang.c (d_language_data): Likewise.
1946 * f-lang.c (f_is_string_type_p): Delete function, implementation
1947 moved to f_language::is_string_type_p.
1948 (f_language_data): Delete la_is_string_type_p initializer.
1949 (f_language::is_string_type_p): New member function,
1950 implementation from f_is_string_type_p.
1951 * go-lang.c (go_is_string_type_p): Delete function, implementation
1952 moved to go_language::is_string_type_p.
1953 (go_language_data): Delete la_is_string_type_p initializer.
1954 (go_language::is_string_type_p): New member function,
1955 implementation from go_is_string_type_p.
1956 * language.c (language_defn::is_string_type_p): Define new member
1957 function.
1958 (default_is_string_type_p): Make static, add comment copied from
1959 header file.
1960 (unknown_language_data): Delete la_is_string_type_p initializer.
1961 (unknown_language::is_string_type_p): New member function.
1962 (auto_language_data): Delete la_is_string_type_p initializer.
1963 (auto_language::is_string_type_p): New member function.
1964 * language.h (language_data): Delete la_is_string_type_p field.
1965 (language_defn::is_string_type_p): Declare new function.
1966 (default_is_string_type_p): Delete desclaration, move comment to
1967 definition.
1968 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1969 moved to m2_language::is_string_type_p.
1970 (m2_language_data): Delete la_is_string_type_p initializer.
1971 (m2_language::is_string_type_p): New member function,
1972 implementation from m2_is_string_type_p.
1973 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1974 initializer.
1975 * opencl-lang.c (opencl_language_data): Likewise.
1976 * p-lang.c (pascal_is_string_type_p): Delete function,
1977 implementation moved to pascal_language::is_string_type_p.
1978 (pascal_language_data): Delete la_is_string_type_p initializer.
1979 (pascal_language::is_string_type_p): New member function,
1980 implementation from pascal_is_string_type_p.
1981 * rust-lang.c (rust_is_string_type_p): Delete function,
1982 implementation moved to rust_language::is_string_type_p.
1983 (rust_language_data): Delete la_is_string_type_p initializer.
1984 (rust_language::is_string_type_p): New member function,
1985 implementation from rust_is_string_type_p.
1986 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1987 is_string_type_p.
1988
1989 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1990
1991 * ada-lang.c (ada_language_data): Delete la_print_typedef
1992 initializer.
1993 (ada_language::print_typedef): New member function.
1994 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1995 (cplus_language_data): Likewise.
1996 (asm_language_data): Likewise.
1997 (minimal_language_data): Likewise.
1998 * d-lang.c (d_language_data): Likewise.
1999 * f-lang.c (f_language_data): Likewise.
2000 (f_language::print_typedef): New member function.
2001 * go-lang.c (go_language_data): Delete la_print_typedef
2002 initializer.
2003 * language.c (language_defn::print_typedef): Define member
2004 function.
2005 (unknown_language_data): Delete la_print_typedef initializer.
2006 (unknown_language::print_typedef): New member function.
2007 (auto_language_data): Delete la_print_typedef initializer.
2008 (auto_language::print_typedef): New member function.
2009 * language.h (language_data): Delete la_print_typedef field.
2010 (language_defn::print_typedef): Declare new member function.
2011 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2012 (default_print_typedef): Delete declaration.
2013 * m2-lang.c (m2_language_data): Delete la_print_typedef
2014 initializer.
2015 (m2_language::print_typedef): New member function.
2016 * objc-lang.c (objc_language_data): Delete la_print_typedef
2017 initializer.
2018 * opencl-lang.c (opencl_language_data): Likewise.
2019 * p-lang.c (pascal_language_data): Likewise.
2020 (pascal_language::print_typedef): New member function.
2021 * rust-lang.c (rust_print_typedef): Delete function,
2022 implementation moved to rust_language::print_typedef.
2023 (rust_language): Delete la_print_typedef initializer.
2024 (rust_language::print_typedef): New member function,
2025 implementation from rust_print_typedef.
2026 * typeprint.c (default_print_typedef): Delete.
2027
2028 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2029
2030 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2031 (ada_language::printstr): New member function.
2032 * c-lang.c (c_language_data): Delete la_printstr initializer.
2033 (cplus_language_data): Likewise.
2034 (asm_language_data): Likewise.
2035 (minimal_language_data): Likewise.
2036 * d-lang.c (d_language_data): Likewise.
2037 * f-lang.c (f_printstr): Rename to f_language::printstr.
2038 (f_language_data): Delete la_printstr initializer.
2039 (f_language::printstr): New member function, implementation from
2040 f_printstr.
2041 * go-lang.c (go_language_data): Delete la_printstr initializer.
2042 * language.c (language_defn::printstr): Define new member
2043 function.
2044 (unk_lang_printstr): Delete.
2045 (unknown_language_data): Delete la_printstr initializer.
2046 (unknown_language::printstr): New member function.
2047 (auto_language_data): Delete la_printstr initializer.
2048 (auto_language::printstr): New member function.
2049 * language.h (language_data): Delete la_printstr field.
2050 (language_defn::printstr): Declare new member function.
2051 (LA_PRINT_STRING): Update call to printstr.
2052 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2053 (m2_language_data): Delete la_printstr initializer.
2054 (m2_language::printstr): New member function, implementation from
2055 m2_printstr.
2056 * objc-lang.c (objc_language_data): Delete la_printstr
2057 initializer.
2058 * opencl-lang.c (opencl_language_data): Likewise.
2059 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2060 (pascal_language_data): Delete la_printstr initializer.
2061 (pascal_language::printstr): New member function, implementation
2062 from pascal_printstr.
2063 * p-lang.h (pascal_printstr): Delete declaration.
2064 * rust-lang.c (rust_printstr): Update header comment.
2065 (rust_language_data): Delete la_printstr initializer.
2066 (rust_language::printstr): New member function.
2067
2068 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2069
2070 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2071 (ada_language::printchar): New member function.
2072 * c-lang.c (c_language_data): Delete la_printchar initializer.
2073 (cplus_language_data): Likewise.
2074 (asm_language_data): Likewise.
2075 (minimal_language_data): Likewise.
2076 * d-lang.c (d_language_data): Likewise.
2077 * f-lang.c (f_printchar): Rename to f_language::printchar.
2078 (f_language_data): Delete la_printchar initializer.
2079 (f_language::printchar): New member function, implementation from
2080 f_printchar.
2081 * go-lang.c (go_language_data): Delete la_printchar initializer.
2082 * language.c (unk_lang_printchar): Delete.
2083 (language_defn::printchar): Define new member function.
2084 (unknown_language_data): Delete la_printchar initializer.
2085 (unknown_language::printchar): New member function.
2086 (auto_language_data): Delete la_printchar initializer.
2087 (auto_language::printchar): New member function.
2088 * language.h (language_data): Delete la_printchar field.
2089 (language_defn::printchar): Declare new member function.
2090 (LA_PRINT_CHAR): Update call to printchar.
2091 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2092 (m2_language::printchar): New member function.
2093 * objc-lang.c (objc_language_data): Delete la_printchar
2094 initializer.
2095 * opencl-lang.c (opencl_language_data): Likewise.
2096 * p-lang.c (pascal_language_data): Delete la_printchar
2097 initializer.
2098 (pascal_language::printchar): New member function.
2099 * rust-lang.c (rust_printchar): Rename to
2100 rust_language::printchar.
2101 (rust_language_data): Delete la_printchar initializer.
2102 (rust_language::printchar): New member function, implementation
2103 from rust_printchar.
2104
2105 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2106
2107 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2108 (ada_language_data): Delete la_emitchar initializer.
2109 (ada_language::emitchar): New member function, implementation from
2110 emit_char.
2111 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2112 (cplus_language_data): Likewise.
2113 (asm_language_data): Likewise.
2114 (minimal_language_data): Likewise.
2115 * d-lang.c (d_language_data): Likewise.
2116 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2117 (f_language_data): Delete la_emitchar initializer.
2118 (f_language::emitchar): New member function, implementation from
2119 f_emit_char.
2120 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2121 * language.c (unk_lang_emit_char): Delete.
2122 (language_defn::emitchar): New member function definition.
2123 (unknown_language_data): Delete la_emitchar initializer.
2124 (unknown_language::emitchar): New member function.
2125 (auto_language_data): Delete la_emitchar initializer.
2126 (auto_language::emitchar): New member function.
2127 * language.h (language_data): Delete la_emitchar field.
2128 (language_defn::emitchar): New member field declaration.
2129 (LA_EMIT_CHAR): Update call to emitchar.
2130 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2131 (m2_language_data): Delete la_emitchar initializer.
2132 (m2_language::emitchar): New member function, implementation from
2133 m2_emit_char.
2134 * objc-lang.c (objc_language_data): Delete la_emitchar
2135 initializer.
2136 * opencl-lang.c (opencl_language_data): Likewise.
2137 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2138 (pascal_language_data): Delete la_emitchar initializer.
2139 (pascal_language::emitchar): New member function, implementation
2140 from pascal_emit_char.
2141 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2142 (rust_language_data): Delete la_emitchar initializer.
2143 (rust_language::emitchar): New member function, implementation
2144 from rust_emitchar.
2145
2146 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2147
2148 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2149 (ada_language_data): Delete la_post_parser initializer.
2150 (ada_language::post_parser): New member function.
2151 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2152 (cplus_language_data): Likewise.
2153 (asm_language_data): Likewise.
2154 (minimal_language_data): Likewise.
2155 * d-lang.c (d_language_data): Likewise.
2156 * f-lang.c (f_language_data): Likewise.
2157 * go-lang.c (go_language_data): Likewise.
2158 * language.c (unknown_language_data): Likewise.
2159 (auto_language_data): Likewise.
2160 * language.h (language_data): Delete la_post_parser field.
2161 (language_defn::post_parser): New member function.
2162 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2163 * objc-lang.c (objc_language_data): Likewise.
2164 * opencl-lang.c (opencl_language_data): Likewise.
2165 * p-lang.c (pascal_language_data): Likewise.
2166 * parse.c (parse_exp_in_context): Update call to post_parser.
2167 (null_post_parser): Delete definition.
2168 * parser-defs.h (null_post_parser): Delete declaration.
2169 * rust-lang.c (rust_language_data): Delete la_post_parser
2170 initializer.
2171
2172 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2173
2174 * ada-lang.c (parse): Rename to ada_language::parser.
2175 (ada_language_data): Delete la_parser initializer.
2176 (ada_language::parser): New member function, implementation from
2177 parse.
2178 * c-lang.c (c_language_data): Delete la_parser initializer.
2179 (cplus_language_data): Likewise.
2180 (asm_language_data): Likewise.
2181 (minimal_language_data): Likewise.
2182 * d-lang.c (d_language_data): Likewise.
2183 (d_language::parser): New member function.
2184 * f-lang.c (f_language_data): Delete la_parser initializer.
2185 (f_language::parser): New member function.
2186 * go-lang.c (go_language_data): Delete la_parser initializer.
2187 (go_language::parser): New member function.
2188 * language.c (unk_lang_parser): Delete.
2189 (language_defn::parser): Define new member function.
2190 (unknown_language_data): Delete la_parser initializer.
2191 (unknown_language::parser): New member function.
2192 (auto_language_data): Delete la_parser initializer.
2193 (auto_language::parser): New member function.
2194 * language.h (language_data): Delete la_parser field.
2195 (language_defn::parser): Declare new member function.
2196 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2197 (m2_language::parser): New member function.
2198 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2199 * opencl-lang.c (opencl_language_data): Likewise.
2200 * p-lang.c (pascal_language_data): Likewise.
2201 (pascal_language::parser): New member function.
2202 * parse.c (parse_exp_in_context): Update call to parser.
2203 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2204 (rust_language::parser): New member function.
2205
2206 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2207
2208 * top.c (print_gdb_configuration): Print --with-python-libdir
2209 configuration value.
2210
2211 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2212
2213 * NEWS: Mention change to the alias command.
2214
2215 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2216
2217 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2218 (alias_command_completer)
2219 (make_alias_options_def_group): New functions.
2220 (alias_opts, alias_option_defs): New struct and array.
2221 (alias_usage_error): Update usage.
2222 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2223 Use option framework.
2224 (_initialize_cli_cmds): Update alias command help.
2225 Update aliases command help.
2226 (show_user):
2227 Add NULL for new default_args lookup_cmd argument.
2228 (valid_command_p): Rename to validate_aliased_command.
2229 Add NULL for new default_args lookup_cmd argument. Verify that the
2230 aliased_command has no default args.
2231 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2232 (lookup_cmd_1, lookup_cmd): New argument default_args.
2233 (add_alias_cmd):
2234 Add NULL for new default_args lookup_cmd argument.
2235 (print_help_for_command): Show default args under the layout
2236 alias some_alias = some_aliased_cmd some_alias_default_arg.
2237 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2238 xfree default_args in destructor.
2239 * cli/cli-script.c (process_next_line, do_define_command):
2240 Add NULL for new default_args lookup_cmd argument.
2241 * command.h: Declare new default_args argument in lookup_cmd
2242 and lookup_cmd_1.
2243 * completer.c (complete_line_internal_1):
2244 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2245 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2246 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2247 Likewise.
2248 * infcmd.c (_initialize_infcmd): Likewise.
2249 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2250 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2251 * python/py-param.c (add_setshow_generic): Likewise.
2252 * remote.c (_initialize_remote): Likewise.
2253 * top.c (execute_command): Prepend default_args if command has some.
2254 (set_verbose):
2255 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2256 * tracepoint.c (validate_actionline, encode_actions_1):
2257 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2258
2259 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2260
2261 * jit.c (jit_read_descriptor): Use bool as the return type.
2262 (jit_breakpoint_re_set_internal): Use bool as the return type.
2263 Invert the return value logic; return true if the jit breakpoint
2264 has been successfully initialized.
2265 (jit_inferior_init): Update the call to
2266 jit_breakpoint_re_set_internal.
2267
2268 2020-06-22 Pedro Alves <palves@redhat.com>
2269
2270 PR gdb/25939
2271 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2272 Use the current inferior instead. Don't return
2273 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2274 wait again.
2275 * sol-thread.c (sol_thread_target::wait): Don't reference
2276 inferior_ptid.
2277 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2278 (sol_update_thread_list_callback): Use the current inferior's pid
2279 instead of inferior_ptid.
2280
2281 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2282
2283 * procfs.c: Cleanup many comments.
2284
2285 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2286 (AFTER_WATCHFLAG): Replace by value.
2287
2288 (MAIN_PROC_NAME_FORMAT): Inline ...
2289 (create_procinfo): ... here.
2290
2291 (procfs_debug_inferior): Remove SYS_exec handling.
2292 (syscall_is_exec): Likewise.
2293 (procfs_set_exec_trap): Likewise.
2294
2295 (syscall_is_lwp_exit): Inline in callers.
2296 (syscall_is_exit): Likewise.
2297 (syscall_is_exec): Likewise.
2298 (syscall_is_lwp_create): Likewise.
2299
2300 (invalidate_cache): Remove #if 0 code.
2301
2302 (make_signal_thread_runnable): Remove.
2303 (procfs_target::resume): Remove #if 0 code.
2304
2305 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2306
2307 PR gdb/25939
2308 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2309 call ...
2310 (procfs_target::create_inferior): ... here.
2311
2312 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2313
2314 * exec.c (validate_exec_file): Ensure the build-id is up to
2315 date by calling reopen_exec_file (that checks file timestamp
2316 to decide to re-read the file).
2317
2318 2020-06-18 Pedro Alves <palves@redhat.com>
2319
2320 PR gdb/25412
2321 * gdbthread.h (delete_thread, delete_thread_silent)
2322 (find_thread_ptid): Update comments.
2323 * thread.c (current_thread_): New global.
2324 (is_current_thread): Move higher, and reimplement.
2325 (inferior_thread): Reimplement.
2326 (set_thread_exited): Use bool. Add assertions.
2327 (add_thread_silent): Simplify thread-reuse handling by always
2328 calling delete_thread.
2329 (delete_thread): Remove intro comment.
2330 (find_thread_ptid): Skip exited threads.
2331 (switch_to_thread_no_regs): Write to current_thread_.
2332 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2333 INFERIOR_PTID. Clear current_thread_.
2334
2335 2020-06-18 Pedro Alves <palves@redhat.com>
2336
2337 * aix-thread.c (pd_update): Use switch_to_thread.
2338
2339 2020-06-18 Pedro Alves <palves@redhat.com>
2340
2341 * ravenscar-thread.c (ravenscar_thread_target): Update.
2342 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2343 (ravenscar_thread_target::add_active_thread): ... this. Don't
2344 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2345 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2346
2347 2020-06-18 Pedro Alves <palves@redhat.com>
2348
2349 * nat/windows-nat.c (current_windows_thread): Remove.
2350 * nat/windows-nat.h (current_windows_thread): Remove.
2351 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2352 Adjust.
2353 (display_selectors): Adjust to fetch the current
2354 windows_thread_info based on inferior_ptid.
2355 (fake_create_process): No longer write to current_windows_thread.
2356 (windows_nat_target::get_windows_debug_event):
2357 Don't set inferior_ptid or current_windows_thread.
2358 (windows_nat_target::wait): Adjust to not rely on
2359 current_windows_thread.
2360 (do_initial_windows_stuff): Now a method of windows_nat_target.
2361 Switch to the last_ptid thread.
2362 (windows_nat_target::attach): Adjust.
2363 (windows_nat_target::detach): Use switch_to_no_thread instead of
2364 writing to inferior_ptid directly.
2365 (windows_nat_target::create_inferior): Adjust.
2366
2367 2020-06-18 Pedro Alves <palves@redhat.com>
2368
2369 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2370
2371 2020-06-18 Pedro Alves <palves@redhat.com>
2372
2373 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2374 after creating it, instead of writing to inferior_ptid. Don't
2375 write to inferior_ptid.
2376
2377 2020-06-18 Pedro Alves <palves@redhat.com>
2378
2379 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2380
2381 2020-06-18 Pedro Alves <palves@redhat.com>
2382
2383 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2384 it, instead of writing to inferior_ptid.
2385
2386 2020-06-18 Pedro Alves <palves@redhat.com>
2387
2388 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2389 to inferior_ptid.
2390
2391 2020-06-18 Pedro Alves <palves@redhat.com>
2392
2393 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2394 instead of writing to inferior_ptid directly.
2395
2396 2020-06-18 Pedro Alves <palves@redhat.com>
2397
2398 * corelow.c (core_target::close): Use switch_to_no_thread instead
2399 of writing to inferior_ptid directly.
2400 (add_to_thread_list, core_target_open): Use switch_to_thread
2401 instead of writing to inferior_ptid directly.
2402
2403 2020-06-18 Pedro Alves <palves@redhat.com>
2404
2405 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2406 inferior_ptid.
2407 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2408 inferior_ptid.
2409 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2410 inferior_ptid directly.
2411 (darwin_nat_target::init_thread_list): Switch to thread, instead
2412 of writing to inferior_ptid.
2413 (darwin_nat_target::attach): Don't write to inferior_ptid.
2414 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2415
2416 2020-06-18 Pedro Alves <palves@redhat.com>
2417
2418 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2419 thread.
2420 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2421 Instead use switch_to_thread.
2422 (gnu_nat_target::detach): Use switch_to_no_thread
2423 instead of writing to inferior_ptid directly. Used passed-in
2424 inferior instead of looking up the inferior by pid.
2425
2426 2020-06-18 Pedro Alves <palves@redhat.com>
2427
2428 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2429 inferior_ptid.
2430
2431 2020-06-18 Pedro Alves <palves@redhat.com>
2432
2433 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2434 inferior_ptid.
2435 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2436 thread.
2437 (nto_procfs_target::detach): Avoid referencing
2438 inferior_ptid. Use switch_to_no_thread instead of writing to
2439 inferior_ptid directly.
2440 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2441 instead of writing to inferior_ptid directly.
2442 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2443 to thread.
2444
2445 2020-06-18 Pedro Alves <palves@redhat.com>
2446
2447 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2448 after creating it, instead of writing to inferior_ptid.
2449 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2450 to inferior_ptid directly.
2451 (gdbsim_target::wait): Don't write to inferior_ptid.
2452
2453 2020-06-18 Pedro Alves <palves@redhat.com>
2454
2455 * remote.c (remote_target::remote_notice_new_inferior): Use
2456 switch_to_thread instead of writing to inferior_ptid directly.
2457 (remote_target::add_current_inferior_and_thread): Use
2458 switch_to_no_thread instead of writing to inferior_ptid directly.
2459 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2460 and switch_to_thread instead of using set_current_inferior or
2461 writing to inferior_ptid directly.
2462
2463 2020-06-18 Pedro Alves <palves@redhat.com>
2464
2465 * tracectf.c (ctf_target_open): Switch to added thread instead of
2466 writing to inferior_ptid directly.
2467 (ctf_target::close): Use switch_to_no_thread instead of writing to
2468 inferior_ptid directly.
2469
2470 2020-06-18 Pedro Alves <palves@redhat.com>
2471
2472 * tracefile-tfile.c (tfile_target_open): Don't write to
2473 inferior_ptid directly, instead switch to added thread.
2474 (tfile_target::close): Use switch_to_no_thread instead of writing
2475 to inferior_ptid directly.
2476
2477 2020-06-18 Pedro Alves <palves@redhat.com>
2478
2479 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2480 (procfs_target::detach): Use switch_to_no_thread
2481 instead of writing to inferior_ptid directly.
2482 (do_attach): Change return type to void. Switch to the added
2483 thread.
2484 (procfs_target::create_inferior): Switch to the added thread.
2485 (procfs_do_thread_registers): Don't write to inferior_ptid.
2486
2487 2020-06-18 Pedro Alves <palves@redhat.com>
2488
2489 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2490 of writing to inferior_ptid.
2491 (scoped_restore_exited_inferior): Delete.
2492 (handle_vfork_child_exec_or_exit): Simplify using
2493 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2494 instead of writing to inferior_ptid.
2495 (THREAD_STOPPED_BY): Delete.
2496 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2497 (thread_stopped_by_hw_breakpoint): Delete.
2498 (save_waitstatus): Use
2499 scoped_restore_current_thread+switch_to_thread, and call
2500 target_stopped_by_watchpoint instead of
2501 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2502 instead of thread_stopped_by_sw_breakpoint, and
2503 target_stopped_by_hw_breakpoint instead of
2504 thread_stopped_by_hw_breakpoint.
2505 (handle_inferior_event)
2506 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2507 inferior_ptid directly, nor
2508 set_current_inferior/set_current_program_space. Use
2509 switch_to_thread / switch_to_inferior_no_thread instead.
2510
2511 2020-06-18 Pedro Alves <palves@redhat.com>
2512
2513 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2514 instead of writing to inferior_ptid.
2515
2516 2020-06-18 Pedro Alves <palves@redhat.com>
2517
2518 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2519 added thread.
2520 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2521 to the added thread.
2522 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2523 instead of writing to inferior_ptid.
2524
2525 2020-06-18 Pedro Alves <palves@redhat.com>
2526
2527 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2528 (register_to_value_test): Mock a program_space too. Heap-allocate
2529 the address space. Don't write to inferior_ptid. Use
2530 switch_to_thread instead.
2531
2532 2020-06-18 Pedro Alves <palves@redhat.com>
2533
2534 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2535 Delete.
2536 (find_signalled_thread()): New, factored out from
2537 linux_make_corefile_notes and adjusted to handle exited threads.
2538 (linux_make_corefile_notes): Adjust to use the new
2539 find_signalled_thread.
2540
2541 2020-06-18 Pedro Alves <palves@redhat.com>
2542
2543 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2544 of saving/restoring inferior_ptid.
2545
2546 2020-06-17 Tom Tromey <tom@tromey.com>
2547
2548 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2549 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2550 declare.
2551 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2552
2553 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2554
2555 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2556 of partial symtabs.
2557
2558 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2559
2560 * regformats/reg-arm.dat: Remove.
2561 * regformats/reg-bfin.dat: Remove.
2562 * regformats/reg-cris.dat: Remove.
2563 * regformats/reg-crisv32.dat: Remove.
2564 * regformats/reg-m32r.dat: Remove.
2565 * regformats/reg-tilegx.dat: Remove.
2566 * regformats/reg-tilegx32.dat: Remove.
2567
2568 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2569
2570 * features/Makefile (WHICH): Remove arm files.
2571 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2572 * regformats/arm/arm-with-neon.dat: Remove.
2573 * regformats/arm/arm-with-vfpv2.dat: Remove.
2574 * regformats/arm/arm-with-vfpv3.dat: Remove.
2575
2576 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2577
2578 * features/Makefile (XMLTOC): Remove rx.xml.
2579
2580 2020-06-17 Pedro Alves <palves@redhat.com>
2581
2582 * gdbthread.h (thread_control_state) <trap_expected> Update
2583 comments.
2584
2585 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2586
2587 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2588 ada_language::lookup_symbol_nonlocal.
2589 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2590 (ada_language::lookup_symbol_nonlocal): New member function,
2591 implementation from ada_lookup_symbol_nonlocal.
2592 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2593 initializer.
2594 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2595 initializer.
2596 (cplus_language::lookup_symbol_nonlocal): New member function.
2597 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2598 (minimal_language_data) Likewise.
2599 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2600 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2601 initializer.
2602 (d_language::lookup_symbol_nonlocal): New member function.
2603 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2604 initializer.
2605 (f_language::lookup_symbol_nonlocal): New member function.
2606 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2607 initializer.
2608 * language.c (unknown_language_data): Likewise.
2609 (auto_language_data): Likewise.
2610 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2611 field.
2612 (language_defn::lookup_symbol_nonlocal): New member function.
2613 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2614 initializer.
2615 * objc-lang.c (objc_language_data): Likewise.
2616 * opencl-lang.c (opencl_language_data): Likewise.
2617 * p-lang.c (pascal_language_data): Likewise.
2618 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2619 rust_language::lookup_symbol_nonlocal.
2620 (rust_language_data): Delete la_lookup_symbol_nonlocal
2621 initializer.
2622 (rust_language::lookup_symbol_nonlocal): New member function,
2623 implementation from rust_lookup_symbol_nonlocal.
2624 * symtab.c (lookup_symbol_aux): Update call to
2625 lookup_symbol_nonlocal.
2626 (basic_lookup_symbol_nonlocal): Rename to...
2627 (language_defn::lookup_symbol_nonlocal): ...this, and update
2628 header comment. Remove language_defn parameter, and replace with
2629 uses of `this'.
2630 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2631
2632 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2633
2634 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2635 initializer.
2636 (ada_language::value_print_inner): New member function.
2637 * c-lang.c (c_language_data): Delete la_value_print_inner
2638 initializer.
2639 (cplus_language_data): Likewise.
2640 (asm_language_data): Likewise.
2641 (minimal_language_data): Likewise.
2642 * d-lang.c (d_language_data): Likewise.
2643 (d_language::value_print_inner): New member function.
2644 * f-lang.c (f_language_data): Delete la_value_print_inner
2645 initializer.
2646 (f_language::value_print_inner): New member function.
2647 * f-lang.h (f_value_print_innner): Rename to...
2648 (f_value_print_inner): ...this (note spelling of 'inner').
2649 * f-valprint.c (f_value_print_innner): Rename to...
2650 (f_value_print_inner): ...this (note spelling of 'inner').
2651 * go-lang.c (go_language_data): Delete la_value_print_inner
2652 initializer.
2653 (go_language::value_print_inner): New member function.
2654 * language.c (language_defn::value_print_inner): Define new member
2655 function.
2656 (unk_lang_value_print_inner): Delete.
2657 (unknown_language_data): Delete la_value_print_inner initializer.
2658 (unknown_language::value_print_inner): New member function.
2659 (auto_language_data): Delete la_value_print_inner initializer.
2660 (auto_language::value_print_inner): New member function.
2661 * language.h (language_data): Delete la_value_print_inner field.
2662 (language_defn::value_print_inner): Delcare new member function.
2663 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2664 initializer.
2665 (m2_language::value_print_inner): New member function.
2666 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2667 initializer.
2668 * opencl-lang.c (opencl_language_data): Likewise.
2669 * p-lang.c (pascal_language_data): Likewise.
2670 (pascal_language::value_print_inner): New member function.
2671 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2672 initializer.
2673 (rust_language::value_print_inner): New member function.
2674 * valprint.c (do_val_print): Update call to value_print_inner.
2675
2676 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2677
2678 * ada-lang.c (ada_language_data): Delete la_value_print
2679 initializer.
2680 (ada_language::value_print): New member function.
2681 * c-lang.c (c_language_data): Delete la_value_print initializer.
2682 (cplus_language_data): Likewise.
2683 (asm_language_data): Likewise.
2684 (minimal_language_data): Likewise.
2685 * d-lang.c (d_language_data): Likewise.
2686 * f-lang.c (f_language_data): Likewise.
2687 * go-lang.c (go_language_data): Likewise.
2688 * language.c (unk_lang_value_print): Delete.
2689 (language_defn::value_print): Define new member function.
2690 (unknown_language_data): Delete la_value_print initializer.
2691 (unknown_language::value_print): New member function.
2692 (auto_language_data): Delete la_value_print initializer.
2693 (auto_language::value_print): New member function.
2694 * language.h (language_data): Delete la_value_print field.
2695 (language_defn::value_print): Declare new member function.
2696 (LA_VALUE_PRINT): Update call to value_print.
2697 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2698 * objc-lang.c (objc_language_data): Likewise.
2699 * opencl-lang.c (opencl_language_data): Likewise.
2700 * p-lang.c (pascal_language_data): Likewise.
2701 (pascal_language::value_print): New member function.
2702 * rust-lang.c (rust_language_data): Delete la_value_print
2703 initializer.
2704
2705 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2706
2707 * ada-lang.c (ada_watch_location_expression): Rename to
2708 ada_language::watch_location_expression.
2709 (ada_language_data): Delete la_watch_location_expression
2710 initializer.
2711 (ada_language::watch_location_expression): New member function,
2712 implementation from ada_watch_location_expression.
2713 * breakpoint.c (watch_command_1): Update call to
2714 watch_location_expression.
2715 * c-lang.c (c_watch_location_expression): Rename to
2716 language_defn::watch_location_expression.
2717 (c_language_data): Delete la_watch_location_expression
2718 initializer.
2719 (cplus_language_data): Likewise.
2720 (asm_language_data): Likewise.
2721 (minimal_language_data): Likewise.
2722 * c-lang.h (c_watch_location_expression): Delete declaration.
2723 * d-lang.c (d_language_data): Delete la_watch_location_expression
2724 initializer.
2725 * f-lang.c (f_language_data): Likewise.
2726 * go-lang.c (go_language_data): Likewise.
2727 * language.c (language_defn::watch_location_expression): Member
2728 function implementation from c_watch_location_expression.
2729 (unknown_language_data): Delete la_watch_location_expression
2730 initializer.
2731 (auto_language_data): Likewise.
2732 * language.h (language_data): Delete la_watch_location_expression
2733 field.
2734 (language_defn::watch_location_expression): Declare new member
2735 function.
2736 * m2-lang.c (m2_language_data): Delete
2737 la_watch_location_expression initializer.
2738 * objc-lang.c (objc_language_data): Likewise.
2739 * opencl-lang.c (opencl_language_data): Likewise.
2740 * p-lang.c (pascal_language_data): Likewise.
2741 * rust-lang.c (rust_watch_location_expression): Rename to
2742 rust_language::watch_location_expression.
2743 (rust_language_data): Delete la_watch_location_expression
2744 initializer.
2745 (rust_language::watch_location_expression): New member function,
2746 implementation from rust_watch_location_expression.
2747
2748 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2749
2750 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2751 ada_language::collect_symbol_completion_matches.
2752 (ada_language_data): Delete la_collect_symbol_completion_matches
2753 initializer.
2754 (ada_language::collect_symbol_completion_matches): New member
2755 function, implementation from
2756 ada_collect_symbol_completion_matches.
2757 * c-lang.c (c_language_data): Delete
2758 la_collect_symbol_completion_matches initializer.
2759 (cplus_language_data): Likewise.
2760 (asm_language_data): Likewise.
2761 (minimal_language_data): Likewise.
2762 * d-lang.c (d_language_data): Likewise.
2763 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2764 f_language::collect_symbol_completion_matches.
2765 (f_language_data): Delete la_collect_symbol_completion_matches
2766 initializer.
2767 (f_language::collect_symbol_completion_matches) New member
2768 function, implementation from f_collect_symbol_completion_matches.
2769 * go-lang.c (go_language_data): Delete
2770 la_collect_symbol_completion_matches initializer.
2771 * language.c (unknown_language_data): Likewise.
2772 (auto_language_data): Likewise.
2773 * language.h (language_data): Delete
2774 la_collect_symbol_completion_matches field.
2775 (language_defn::collect_symbol_completion_matches): New member
2776 function.
2777 * m2-lang.c (m2_language_data): Delete
2778 la_collect_symbol_completion_matches initializer.
2779 * objc-lang.c (objc_language_data): Likewise.
2780 * opencl-lang.c (opencl_language_data): Likewise.
2781 * p-lang.c (pascal_language_data): Likewise.
2782 * rust-lang.c (rust_language_data): Likewise.
2783 * symtab.c (default_collect_symbol_completion_matches): Delete.
2784 (collect_symbol_completion_matches): Update call to
2785 collect_symbol_completion_matches.
2786 (collect_symbol_completion_matches_type): Likewise.
2787 * symtab.h (default_collect_symbol_completion_matches): Delete
2788 declaration.
2789
2790 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2791
2792 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2793 (ada_language_data): Delete la_word_break_characters initializer.
2794 (ada_language::word_break_characters): New member function.
2795 * c-lang.c (c_language_data): Delete la_word_break_characters
2796 initializer.
2797 (cplus_language_data): Likewise.
2798 (asm_language_data): Likewise.
2799 (minimal_language_data): Likewise.
2800 * completer.c: Update global comment.
2801 (advance_to_expression_complete_word_point): Update call to
2802 word_break_characters.
2803 (complete_files_symbols): Likewise.
2804 (complete_line_internal_1): Likewise.
2805 (default_completer_handle_brkchars): Likewise.
2806 (skip_quoted_chars): Likewise.
2807 * d-lang.c (d_language_data): Delete la_word_break_characters
2808 initializer.
2809 * f-lang.c (f_word_break_characters): Delete.
2810 (f_language_data): Delete la_word_break_characters initializer.
2811 (f_language::word_break_characters): New member function.
2812 * go-lang.c (go_language_data): Delete la_word_break_characters
2813 initializer.
2814 * language.c (unknown_language_data): Likewise.
2815 (auto_language_data): Likewise.
2816 * language.h (default_word_break_characters): Move declaration to
2817 earlier in the file.
2818 (language_data): Delete la_word_break_characters field.
2819 (language_defn::word_break_characters): New member function.
2820 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2821 initializer.
2822 * objc-lang.c (objc_language_data): Likewise.
2823 * opencl-lang.c (opencl_language_data): Likewise.
2824 * p-lang.c (pascal_language_data): Likewise.
2825 * rust-lang.c (rust_language_data): Likewise.
2826
2827 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2828
2829 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2830 (ada_language_data): Delete la_get_symbol_name_matcher
2831 initializer.
2832 (language_defn::get_symbol_name_matcher_inner): New member
2833 function.
2834 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2835 initializer.
2836 (cplus_language_data): Likewise.
2837 (cplus_language::get_symbol_name_matcher_inner): New member
2838 function.
2839 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2840 (minimal_language_data): Likewise.
2841 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2842 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2843 initializer.
2844 * dictionary.c (iter_match_first_hashed): Update call to
2845 get_symbol_name_matcher.
2846 (iter_match_next_hashed): Likewise.
2847 (iter_match_next_linear): Likewise.
2848 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2849 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2850 initializer.
2851 (f_language::get_symbol_name_matcher_inner): New member function.
2852 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2853 initializer.
2854 * language.c (default_symbol_name_matcher): Update header comment,
2855 make static.
2856 (language_defn::get_symbol_name_matcher): New definition.
2857 (language_defn::get_symbol_name_matcher_inner): Likewise.
2858 (get_symbol_name_matcher): Delete.
2859 (unknown_language_data): Delete la_get_symbol_name_matcher
2860 initializer.
2861 (auto_language_data): Likewise.
2862 * language.h (language_data): Delete la_get_symbol_name_matcher
2863 field.
2864 (language_defn::get_symbol_name_matcher): New member function.
2865 (language_defn::get_symbol_name_matcher_inner): Likewise.
2866 (default_symbol_name_matcher): Delete declaration.
2867 * linespec.c (find_methods): Update call to
2868 get_symbol_name_matcher.
2869 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2870 initializer.
2871 * minsyms.c (lookup_minimal_symbol): Update call to
2872 get_symbol_name_matcher.
2873 (iterate_over_minimal_symbols): Likewise.
2874 * objc-lang.c (objc_language_data): Delete
2875 la_get_symbol_name_matcher initializer.
2876 * opencl-lang.c (opencl_language_data): Likewise.
2877 * p-lang.c (pascal_language_data): Likewise.
2878 * psymtab.c (psymbol_name_matches): Update call to
2879 get_symbol_name_matcher.
2880 * rust-lang.c (rust_language_data): Delete
2881 la_get_symbol_name_matcher initializer.
2882 * symtab.c (symbol_matches_search_name): Update call to
2883 get_symbol_name_matcher.
2884 (compare_symbol_name): Likewise.
2885
2886 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2887
2888 * ada-lang.c (ada_language_data): Delete la_compute_program
2889 initializer.
2890 * c-lang.c (c_language_data): Likewise.
2891 (c_language::compute_program): New member function.
2892 (cplus_language_data): Delete la_compute_program initializer.
2893 (cplus_language::compute_program): New member function.
2894 (asm_language_data): Delete la_compute_program initializer.
2895 (minimal_language_data): Likewise.
2896 * c-lang.h (c_compute_program): Update comment.
2897 (cplus_compute_program): Likewise.
2898 * compile/compile-c-support.c (c_compute_program): Likewise.
2899 (cplus_compute_program): Likewise.
2900 * compile/compile.c (compile_to_object): Update call to
2901 la_compute_program.
2902 * d-lang.c (d_language_data): Delete la_compute_program
2903 initializer.
2904 * f-lang.c (f_language_data): Likewise.
2905 * go-lang.c (go_language_data): Likewise.
2906 * language.c (unknown_language_data): Likewise.
2907 (auto_language_data): Likewise.
2908 * language.h (language_data): Delete la_compute_program field.
2909 (language_defn::compute_program): New member function.
2910 * m2-lang.c (m2_language_data): Delete la_compute_program
2911 initializer.
2912 * objc-lang.c (objc_language_data): Likewise.
2913 * opencl-lang.c (opencl_language_data): Likewise.
2914 * p-lang.c (pascal_language_data): Likewise.
2915 * rust-lang.c (rust_language_data): Likewise.
2916
2917 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2918
2919 * ada-lang.c (ada_language_data) Delete
2920 la_class_name_from_physname initializer.
2921 * c-lang.c (c_language_data): Likewise.
2922 (cplus_language_data): Likewise.
2923 (cplus_language::class_name_from_physname): New member function.
2924 (asm_language_data): Delete la_class_name_from_physname
2925 initializer.
2926 (minimal_language_data): Likewise.
2927 * d-lang.c (d_language_data): Likewise.
2928 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2929 method on language_defn class.
2930 (guess_full_die_structure_name): Likewise.
2931 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2932 initializer.
2933 * go-lang.c (go_language_data): Likewise.
2934 * language.c (language_class_name_from_physname): Delete.
2935 (unk_lang_class_name): Delete.
2936 (unknown_language_data): Delete la_class_name_from_physname
2937 initializer.
2938 (auto_language_data): Likewise.
2939 * language.h (language_data): Delete la_class_name_from_physname
2940 field.
2941 (language_defn::class_name_from_physname): New function.
2942 (language_class_name_from_physname): Delete declaration.
2943 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2944 initializer.
2945 * objc-lang.c (objc_language_data): Likewise.
2946 * opencl-lang.c (opencl_language_data): Likewise.
2947 * p-lang.c (pascal_language_data): Likewise.
2948 * rust-lang.c (rust_language_data): Likewise.
2949
2950 2020-06-16 Tom Tromey <tom@tromey.com>
2951
2952 * tui/tui-data.h (STATUS_NAME): New macro.
2953 * tui/tui-layout.c (tui_remove_some_windows)
2954 (initialize_known_windows, tui_register_window)
2955 (tui_layout_split::remove_windows, initialize_layouts)
2956 (tui_new_layout_command): Don't use hard-coded window names.
2957
2958 2020-06-16 Tom Tromey <tom@tromey.com>
2959
2960 PR tui/25348:
2961 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2962 tui_initialize_readline. Only run once. Call rl_initialize.
2963 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2964 tui_initialize_readline.
2965 * tui/tui-io.c (tui_setup_io): Call
2966 tui_ensure_readline_initialized.
2967 * tui/tui-interp.c (tui_interp::init): Update.
2968
2969 2020-06-16 Tom Tromey <tom@tromey.com>
2970
2971 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2972 Also preserve the status window.
2973
2974 2020-06-16 Tom Tromey <tom@tromey.com>
2975
2976 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2977 where m_window==nullptr.
2978
2979 2020-06-15 Tom Tromey <tromey@adacore.com>
2980
2981 * windows-nat.c (windows_nat::handle_output_debug_string):
2982 Update.
2983 (windows_nat::handle_ms_vc_exception): Update.
2984 * target.h (target_read_string): Change API.
2985 * target.c (target_read_string): Change API.
2986 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2987 Update.
2988 * solib-frv.c (frv_current_sos): Update.
2989 * solib-dsbt.c (dsbt_current_sos): Update.
2990 * solib-darwin.c (darwin_current_sos): Update.
2991 * linux-thread-db.c (inferior_has_bug): Update.
2992 * expprint.c (print_subexp_standard): Update.
2993 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2994 (ada_exception_message_1): Update.
2995
2996 2020-06-15 Tom Tromey <tromey@adacore.com>
2997
2998 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2999
3000 2020-06-15 Tom Tromey <tromey@adacore.com>
3001
3002 * valprint.c (read_string): Update comment.
3003 * target.c (MIN): Remove.
3004 (target_read_string): Rewrite.
3005
3006 2020-06-15 Tom Tromey <tromey@adacore.com>
3007
3008 * corefile.c (read_memory_string): Remove.
3009 * ada-valprint.c (ada_value_print_ptr): Update.
3010 * ada-lang.h (ada_tag_name): Change return type.
3011 * ada-lang.c (type_from_tag): Update.
3012 (ada_tag_name_from_tsd): Change return type. Use
3013 target_read_string.
3014 (ada_tag_name): Likewise.
3015 * gdbcore.h (read_memory_string): Don't declare.
3016
3017 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3018
3019 * symtab.c (rbreak_command): Ignore Windows drive colon.
3020
3021 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3022
3023 * NEWS: Mention removed GDBserver host support.
3024
3025 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3026
3027 * features/riscv/rebuild-csr-xml.sh: Updated.
3028
3029 2020-06-11 Tom Tromey <tom@tromey.com>
3030
3031 PR gdb/18318:
3032 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3033
3034 2020-06-09 Jonny Grant <jg@jguk.org>
3035 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3036
3037 * main.c (captured_main_1): Don't print new line after help.
3038 (print_gdb_help): add mailing list and IRC channel information
3039 to --help. Add new lines between items in the footer. Remove
3040 quotes around bug url.
3041
3042 2020-06-11 Keith Seitz <keiths@redhat.com>
3043
3044 PR gdb/21356
3045 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3046 Resolve typedefs for type length calculations.
3047
3048 2020-06-10 Tom de Vries <tdevries@suse.de>
3049
3050 PR ada/24713
3051 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3052 (write_psymbols): Enable .gdb_index for ada.
3053 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3054 ada.
3055
3056 2020-06-10 Tom de Vries <tdevries@suse.de>
3057
3058 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3059 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3060 namei" instead of "const char *name" argument.
3061 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3062 dw2_symtab_iter_init.
3063
3064 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3065
3066 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3067 to use type::field and field::type instead.
3068
3069 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3070
3071 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3072 to use field::type instead.
3073
3074 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3075
3076 * gdbtypes.h (struct field) <type, set_type>: New methods.
3077 Rename `type` field to...
3078 <m_type>: ... this. Change references throughout to use type or
3079 set_type methods.
3080 (FIELD_TYPE): Use field::type. Change call sites that modify
3081 the field's type to use field::set_type instead.
3082
3083 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3084
3085 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3086 to use type::index_type instead.
3087
3088 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3089
3090 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3091 methods.
3092 (TYPE_INDEX_TYPE): Use type::index_type.
3093 * gdbtypes.c (create_array_type_with_stride): Likewise.
3094
3095 2020-06-07 Tom Tromey <tom@tromey.com>
3096
3097 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3098 parameter.
3099 (generic_value_print): Update.
3100
3101 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3102
3103 Revert commit 982a38f60b0.
3104 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3105
3106 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3107
3108 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3109 avoid use after free.
3110
3111 2020-06-05 Tom de Vries <tdevries@suse.de>
3112
3113 * NEWS: Fix typos.
3114
3115 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3116
3117 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3118 the per_bfd object.
3119 (dwarf2_read_debug_names): Likewise.
3120 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3121 object when re-using a per_bfd object with an index.
3122
3123 2020-06-03 Tom de Vries <tdevries@suse.de>
3124
3125 PR symtab/26046
3126 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3127 children for C++.
3128 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3129 DW_TAG_subprogram.
3130
3131 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3132
3133 * ada-lang.c (ada_language_data): Delete skip_trampoline
3134 initializer.
3135 * c-lang.c (c_language_data): Likewise.
3136 (cplus_language_data): Likewise.
3137 (cplus_language::skip_trampoline): New member function.
3138 (asm_language_data): Delete skip_trampoline initializer.
3139 (minimal_language_data): Likewise.
3140 * d-lang.c (d_language_data): Likewise.
3141 * f-lang.c (f_language_data): Likewise.
3142 * go-lang.c (go_language_data): Likewise.
3143 * language.c (unk_lang_trampoline): Delete function.
3144 (skip_language_trampoline): Update.
3145 (unknown_language_data): Delete skip_trampoline initializer.
3146 (auto_language_data): Likewise.
3147 * language.h (language_data): Delete skip_trampoline field.
3148 (language_defn::skip_trampoline): New function.
3149 * m2-lang.c (m2_language_data): Delete skip_trampoline
3150 initializer.
3151 * objc-lang.c (objc_skip_trampoline): Delete function, move
3152 implementation to objc_language::skip_trampoline.
3153 (objc_language_data): Delete skip_trampoline initializer.
3154 (objc_language::skip_trampoline): New member function with
3155 implementation from objc_skip_trampoline.
3156 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3157 initializer.
3158 * p-lang.c (pascal_language_data): Likewise.
3159 * rust-lang.c (rust_language_data): Likewise.
3160
3161 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3162
3163 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3164 (ada_language::demangle): New member function.
3165 * c-lang.c (c_language_data): Delete la_demangle initializer.
3166 (cplus_language_data): Delete la_demangle initializer.
3167 (cplus_language::demangle): New member function.
3168 (asm_language_data): Delete la_demangle initializer.
3169 (minimal_language_data): Delete la_demangle initializer.
3170 * d-lang.c (d_language_data): Delete la_demangle initializer.
3171 (d_language::demangle): New member function.
3172 * f-lang.c (f_language_data): Delete la_demangle initializer.
3173 (f_language::demangle): New member function.
3174 * go-lang.c (go_language_data): Delete la_demangle initializer.
3175 (go_language::demangle): New member function.
3176 * language.c (language_demangle): Update.
3177 (unk_lang_demangle): Delete.
3178 (unknown_language_data): Delete la_demangle initializer.
3179 (unknown_language::demangle): New member function.
3180 (auto_language_data): Delete la_demangle initializer.
3181 (auto_language::demangle): New member function.
3182 * language.h (language_data): Delete la_demangle field.
3183 (language_defn::demangle): New function.
3184 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3185 * objc-lang.c (objc_language_data): Delete la_demangle
3186 initializer.
3187 (objc_language::demangle): New member function.
3188 * opencl-lang.c (opencl_language_data): Delete la_demangle
3189 initializer.
3190 * p-lang.c (pascal_language_data): Likewise.
3191 * rust-lang.c (rust_language_data): Likewise.
3192 (rust_language::demangle): New member function.
3193
3194 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3195
3196 * ada-lang.c (ada_language_data): Delete la_print_type
3197 initializer.
3198 (ada_language::print_type): New member function.
3199 * c-lang.c (c_language_data): Delete la_print_type initializer.
3200 (c_language::print_type): New member function.
3201 (cplus_language_data): Delete la_print_type initializer.
3202 (cplus_language::print_type): New member function.
3203 (asm_language_data): Delete la_print_type initializer.
3204 (asm_language::print_type): New member function.
3205 (minimal_language_data): Delete la_print_type initializer.
3206 (minimal_language::print_type): New member function.
3207 * d-lang.c (d_language_data): Delete la_print_type initializer.
3208 (d_language::print_type): New member function.
3209 * f-lang.c (f_language_data): Delete la_print_type initializer.
3210 (f_language::print_type): New member function.
3211 * go-lang.c (go_language_data): Delete la_print_type initializer.
3212 (go_language::print_type): New member function.
3213 * language.c (unk_lang_print_type): Delete.
3214 (unknown_language_data): Delete la_print_type initializer.
3215 (unknown_language::print_type): New member function.
3216 (auto_language_data): Delete la_print_type initializer.
3217 (auto_language::print_type): New member function.
3218 * language.h (language_data): Delete la_print_type field.
3219 (language_defn::print_type): New function.
3220 (LA_PRINT_TYPE): Update.
3221 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3222 (m2_language::print_type): New member function.
3223 * objc-lang.c (objc_language_data): Delete la_print_type
3224 initializer.
3225 (objc_language::print_type): New member function.
3226 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3227 to opencl_language::print_type.
3228 (opencl_language_data): Delete la_print_type initializer.
3229 (opencl_language::print_type): New member function, implementation
3230 from opencl_print_type.
3231 * p-lang.c (pascal_language_data): Delete la_print_type
3232 initializer.
3233 (pascal_language::print_type): New member function.
3234 * rust-lang.c (rust_print_type): Delete, implementation moved to
3235 rust_language::print_type.
3236 (rust_language_data): Delete la_print_type initializer.
3237 (rust_language::print_type): New member function, implementation
3238 from rust_print_type.
3239
3240 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3241
3242 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3243 implementation moves to...
3244 (ada_language::sniff_from_mangled_name): ...here. Update return
3245 type.
3246 (ada_language_data): Delete la_sniff_from_mangled_name
3247 initializer.
3248 * c-lang.c (c_language_data): Likewise.
3249 (cplus_language_data): Likewise.
3250 (cplus_language::sniff_from_mangled_name): New member function,
3251 implementation taken from gdb_sniff_from_mangled_name.
3252 (asm_language_data): Delete la_sniff_from_mangled_name
3253 initializer.
3254 (minimal_language_data): Likewise.
3255 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3256 implementation moves to cplus_language::sniff_from_mangled_name.
3257 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3258 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3259 moves to...
3260 (d_language::sniff_from_mangled_name): ...here.
3261 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3262 * f-lang.c (f_language_data): Likewise.
3263 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3264 moves to...
3265 (go_language::sniff_from_mangled_name): ...here.
3266 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3267 * language.c (language_sniff_from_mangled_name): Delete.
3268 (unknown_language_data): Delete la_sniff_from_mangled_name
3269 initializer.
3270 (auto_language_data): Likewise.
3271 * language.h (language_data): Delete la_sniff_from_mangled_name
3272 field.
3273 (language_defn::sniff_from_mangled_name): New function.
3274 (language_sniff_from_mangled_name): Delete declaration.
3275 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3276 field.
3277 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3278 implementation moves to...
3279 (objc_language::sniff_from_mangled_name): ...here.
3280 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3281 * opencl-lang.c (opencl_language_data): Likewise.
3282 * p-lang.c (pascal_language_data): Likewise.
3283 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3284 implementation moves to...
3285 (rust_language::sniff_from_mangled_name): ...here.
3286 (rust_language_data): Delete la_sniff_from_mangled_name
3287 initializer.
3288 * symtab.c (symbol_find_demangled_name): Call
3289 sniff_from_mangled_name member function.
3290
3291 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3292
3293 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3294 initializer.
3295 * c-lang.c (c_language_data): Likewise.
3296 (cplus_language_data): Likewise.
3297 (cplus_language::search_name_hash): New member function.
3298 (asm_language_data): Delete la_search_name_hash initializer.
3299 (minimal_language_data): Likewise.
3300 * d-lang.c (d_language_data): Likewise.
3301 * dictionary.c (default_search_name_hash): Rename to...
3302 (language_defn::search_name_hash): ...this.
3303 * f-lang.c (f_language_data): Likewise.
3304 (f_language::search_name_hash): New member function.
3305 * go-lang.c (go_language_data): Delete la_search_name_hash
3306 initializer.
3307 * language.c (unknown_language_data): Likewise.
3308 (auto_language_data): Likewise.
3309 * language.h (struct language_data): Delete la_search_name_hash
3310 field.
3311 (language_defn::search_name_hash): Declare new member function.
3312 (default_search_name_hash): Delete declaration.
3313 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3314 initializer.
3315 * objc-lang.c (objc_language_data): Likewise.
3316 * opencl-lang.c (opencl_language_data): Likewise.
3317 * p-lang.c (pascal_language_data): Likewise.
3318 * rust-lang.c (rust_language_data): Likewise.
3319 * symtab.c (search_name_hash): Update call.
3320
3321 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3322
3323 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3324 initializer.
3325 * c-lang.c (class compile_instance): Declare.
3326 (c_language_data): Delete la_get_compile_instance initializer.
3327 (c_language::get_compile_instance): New member function.
3328 (cplus_language_data): Delete la_get_compile_instance initializer.
3329 (cplus_language::get_compile_instance): New member function.
3330 (asm_language_data): Delete la_get_compile_instance initializer.
3331 (minimal_language_data): Likewise.
3332 * c-lang.h (c_get_compile_context): Update comment.
3333 (cplus_get_compile_context): Update comment.
3334 * compile/compile.c (compile_to_object): Update calls, don't rely
3335 on function pointer being NULL.
3336 * d-lang.c (d_language_data): Delete la_get_compile_instance
3337 initializer.
3338 * f-lang.c (f_language_data): Likewise.
3339 * go-lang.c (go_language_data): Likewise.
3340 * language.c (unknown_language_data): Likewise.
3341 (auto_language_data): Likewise.
3342 * language.h (language_data): Delete la_get_compile_instance field.
3343 (language_defn::get_compile_instance): New member function.
3344 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3345 initializer.
3346 * objc-lang.c (objc_language_data): Likewise.
3347 * opencl-lang.c (opencl_language_data): Likewise.
3348 * p-lang.c (pascal_language_data): Likewise.
3349 * rust-lang.c (rust_language_data): Likewise.
3350
3351 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3352
3353 * ada-lang.c (ada_add_all_symbols): Update comment.
3354 (ada_iterate_over_symbols): Delete, move implementation to...
3355 (ada_language::iterate_over_symbols): ...here, a new member
3356 function, rewrite to use range based for loop.
3357 (ada_language_data): Delete la_iterate_over_symbols initializer.
3358 * c-lang.c (c_language_data): Likewise.
3359 (cplus_language_data): Likewise.
3360 (asm_language_data): Likewise.
3361 (minimal_language_data): Likewise.
3362 * d-lang.c (d_language_data): Likewise.
3363 * f-lang.c (f_language_data): Likewise.
3364 * go-lang.c (go_language_data): Likewise.
3365 * language.c (unknown_language_data): Likewise.
3366 (auto_language_data): Likewise.
3367 * language.h (language_data): Delete la_iterate_over_symbols field.
3368 (language_defn::iterate_over_symbols): New member function.
3369 (LA_ITERATE_OVER_SYMBOLS): Update.
3370 * linespec.c (iterate_over_all_matching_symtabs): Update.
3371 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3372 initializer.
3373 * objc-lang.c (objc_language_data): Likewise.
3374 * opencl-lang.c (opencl_language_data): Likewise.
3375 * p-lang.c (pascal_language_data): Likewise.
3376 * rust-lang.c (rust_language_data): Likewise.
3377
3378 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3379
3380 * ada-lang.c (ada_language_data): Delete
3381 la_lookup_transparent_type initializer.
3382 * c-lang.c (c_language_data): Likewise.
3383 (cplus_language_data): Likewise.
3384 (cplus_language::lookup_transparent_type): New member function.
3385 (asm_language_data): Delete la_lookup_transparent_type
3386 initializer.
3387 (minimal_language_data): Likewise.
3388 * d-lang.c (d_language_data): Likewise.
3389 * f-lang.c (f_language_data): Likewise.
3390 * go-lang.c (go_language_data): Likewise.
3391 * language.c (unknown_language_data): Likewise.
3392 (auto_language_data): Likewise.
3393 * language.h (struct language_data): Delete
3394 la_lookup_transparent_type field.
3395 (language_defn::lookup_transparent_type): New member function.
3396 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3397 initializer.
3398 * objc-lang.c (objc_language_data): Likewise.
3399 * opencl-lang.c (opencl_language_data): Likewise.
3400 * p-lang.c (pascal_language_data): Likewise.
3401 * rust-lang.c (rust_language_data): Likewise.
3402 * symtab.c (symbol_matches_domain): Update call.
3403
3404 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3405
3406 * ada-lang.c (ada_language_arch_info): Delete function, move
3407 implementation to...
3408 (ada_language::language_arch_info): ...here, a new member
3409 function.
3410 (ada_language_data): Delete la_language_arch_info.
3411 * c-lang.c (c_language_data): Likewise.
3412 (c_language::language_arch_info): New member function.
3413 (cplus_language_arch_info): Delete function, move
3414 implementation to...
3415 (cplus_language::language_arch_info): ...here, a new member
3416 function.
3417 (cplus_language_data): Delete la_language_arch_info.
3418 (asm_language_data): Likewise.
3419 (asm_language::language_arch_info): New member function.
3420 (minimal_language_data): Delete la_language_arch_info.
3421 (minimal_language::language_arch_info): New member function.
3422 * d-lang.c (d_language_arch_info): Delete function, move
3423 implementation to...
3424 (d_language::language_arch_info): ...here, a new member
3425 function.
3426 (d_language_data): Delete la_language_arch_info.
3427 * f-lang.c (f_language_arch_info): Delete function, move
3428 implementation to...
3429 (f_language::language_arch_info): ...here, a new member
3430 function.
3431 (f_language_data): Delete la_language_arch_info.
3432 * go-lang.c (go_language_arch_info): Delete function, move
3433 implementation to...
3434 (go_language::language_arch_info): ...here, a new member
3435 function.
3436 (go_language_data): Delete la_language_arch_info.
3437 * language.c (unknown_language_data): Likewise.
3438 (unknown_language::language_arch_info): New member function.
3439 (auto_language_data): Delete la_language_arch_info.
3440 (auto_language::language_arch_info): New member function.
3441 (language_gdbarch_post_init): Update call to
3442 la_language_arch_info.
3443 * language.h (language_data): Delete la_language_arch_info
3444 function pointer.
3445 (language_defn::language_arch_info): New function.
3446 * m2-lang.c (m2_language_arch_info): Delete function, move
3447 implementation to...
3448 (m2_language::language_arch_info): ...here, a new member
3449 function.
3450 (m2_language_data): Delete la_language_arch_info.
3451 * objc-lang.c (objc_language_arch_info): Delete function, move
3452 implementation to...
3453 (objc_language::language_arch_info): ...here, a new member
3454 function.
3455 (objc_language_data): Delete la_language_arch_info.
3456 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3457 implementation to...
3458 (opencl_language::language_arch_info): ...here, a new member
3459 function.
3460 (opencl_language_data): Delete la_language_arch_info.
3461 * p-lang.c (pascal_language_arch_info): Delete function, move
3462 implementation to...
3463 (pascal_language::language_arch_info): ...here, a new member
3464 function.
3465 (pascal_language_data): Delete la_language_arch_info.
3466 * rust-lang.c (rust_language_arch_info): Delete function, move
3467 implementation to...
3468 (rust_language::language_arch_info): ...here, a new member
3469 function.
3470 (rust_language_data): Delete la_language_arch_info.
3471
3472 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3473
3474 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3475 initializer.
3476 * c-lang.c (c_language_data): Likewise.
3477 (cplus_language_data): Likewise.
3478 (cplus_language::pass_by_reference_info): New method.
3479 (asm_language_data): Delete la_pass_by_reference initializer.
3480 (minimal_language_data): Likewise.
3481 * cp-abi.c (cp_pass_by_reference): Remove use of
3482 default_pass_by_reference.
3483 * d-lang.c (d_language_data): Likewise.
3484 * f-lang.c (f_language_data): Likewise.
3485 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3486 default_pass_by_reference.
3487 * go-lang.c (go_language_data): Likewise.
3488 * language.c (language_pass_by_reference): Update.
3489 (default_pass_by_reference): Delete.
3490 (unknown_language_data): Delete la_pass_by_reference
3491 initializer.
3492 (auto_language_data): Likewise.
3493 * language.h (struct language_data): Delete la_pass_by_reference
3494 field.
3495 (language_defn::pass_by_reference_info): New member function.
3496 (default_pass_by_reference): Delete declaration.
3497 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3498 initializer.
3499 * objc-lang.c (objc_language_data): Likewise.
3500 * opencl-lang.c (opencl_language_data): Likewise.
3501 * p-lang.c (pascal_language_data): Likewise.
3502 * rust-lang.c (rust_language_data): Likewise.
3503
3504 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3505
3506 * ada-lang.c (ada_read_var_value): Delete function, move
3507 implementation to...
3508 (ada_language::read_var_value): ...here.
3509 (ada_language_data): Delete la_read_var_value initializer.
3510 * c-lang.c (c_language_data): Likewise.
3511 (cplus_language_data): Likewise.
3512 (minimal_language_data): Likewise.
3513 * d-lang.c (d_language_data): Likewise.
3514 * f-lang.c (f_language_data): Likewise.
3515 * findvar.c (default_read_var_value): Rename to...
3516 (language_defn::read_var_value): ...this.
3517 * findvar.c (read_var_value): Update header comment, and change to
3518 call member function instead of function pointer.
3519 * go-lang.c (go_language_data): Likewise.
3520 * language.c (unknown_language_data): Delete la_read_var_value
3521 initializer.
3522 (auto_language_data): Likewise.
3523 * language.h (struct language_data): Delete la_read_var_value
3524 field.
3525 (language_defn::read_var_value): New member function.
3526 (default_read_var_value): Delete declaration.
3527 * m2-lang.c (m2_language_data): Delete la_read_var_value
3528 initializer.
3529 * objc-lang.c (objc_language_data): Likewise.
3530 * opencl-lang.c (opencl_language_data): Likewise.
3531 * p-lang.c (pascal_language_data): Likewise.
3532 * rust-lang.c (rust_language_data): Likewise.
3533 * value.h (default_read_var_value): Delete declaration.
3534
3535 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3536
3537 * ada-lang.c (ada_print_array_index): Delete function, move
3538 implementation to...
3539 (ada_language::print_array_index): ...here.
3540 (ada_language_data): Delete la_print_array_index initializer.
3541 * c-lang.c (c_language_data): Likewise.
3542 (cplus_language_data): Likewise.
3543 (minimal_language_data): Likewise.
3544 * d-lang.c (d_language_data): Likewise.
3545 * f-lang.c (f_language_data): Likewise.
3546 * go-lang.c (go_language_data): Likewise.
3547 * language.c (default_print_array_index): Delete function, move
3548 implementation to...
3549 (language_defn::print_array_index): ...here.
3550 (unknown_language_data): Delete la_print_array_index initializer.
3551 (auto_language_data): Likewise.
3552 * language.h (struct language_data): Delete la_print_array_index
3553 field.
3554 (language_defn::print_array_index): New member function.
3555 (LA_PRINT_ARRAY_INDEX): Update.
3556 (default_print_array_index): Delete declaration.
3557 * m2-lang.c (m2_language_data): Delete la_print_array_index
3558 initializer.
3559 * objc-lang.c (objc_language_data): Likewise.
3560 * opencl-lang.c (opencl_language_data): Likewise.
3561 * p-lang.c (pascal_language_data): Likewise.
3562 * rust-lang.c (rust_language_data): Likewise.
3563
3564 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3565
3566 * gdb/ada-lang.c (ada_language_defn): Convert to...
3567 (ada_language_data): ...this.
3568 (class ada_language): New class.
3569 (ada_language_defn): New static global.
3570 * gdb/c-lang.c (c_language_defn): Convert to...
3571 (c_language_data): ...this.
3572 (class c_language): New class.
3573 (c_language_defn): New static global.
3574 (cplus_language_defn): Convert to...
3575 (cplus_language_data): ...this.
3576 (class cplus_language): New class.
3577 (cplus_language_defn): New static global.
3578 (asm_language_defn): Convert to...
3579 (asm_language_data): ...this.
3580 (class asm_language): New class.
3581 (asm_language_defn): New static global.
3582 (minimal_language_defn): Convert to...
3583 (minimal_language_data): ...this.
3584 (class minimal_language): New class.
3585 (minimal_language_defn): New static global.
3586 * gdb/d-lang.c (d_language_defn): Convert to...
3587 (d_language_data): ...this.
3588 (class d_language): New class.
3589 (d_language_defn): New static global.
3590 * gdb/f-lang.c (f_language_defn): Convert to...
3591 (f_language_data): ...this.
3592 (class f_language): New class.
3593 (f_language_defn): New static global.
3594 * gdb/go-lang.c (go_language_defn): Convert to...
3595 (go_language_data): ...this.
3596 (class go_language): New class.
3597 (go_language_defn): New static global.
3598 * gdb/language.c (unknown_language_defn): Remove declaration.
3599 (current_language): Initialize to nullptr, real initialization is
3600 moved to _initialize_language.
3601 (languages): Delete global.
3602 (language_defn::languages): Define.
3603 (set_language_command): Use language_defn::languages.
3604 (set_language): Likewise.
3605 (range_error): Likewise.
3606 (language_enum): Likewise.
3607 (language_def): Likewise.
3608 (add_set_language_command): Use language_def::languages for the
3609 language list, and language_def to lookup language pointers.
3610 (skip_language_trampoline): Use language_defn::languages.
3611 (unknown_language_defn): Convert to...
3612 (unknown_language_data): ...this.
3613 (class unknown_language): New class.
3614 (unknown_language_defn): New static global.
3615 (auto_language_defn): Convert to...
3616 (auto_language_data): ...this.
3617 (class auto_language): New class.
3618 (auto_language_defn): New static global.
3619 (language_gdbarch_post_init): Use language_defn::languages.
3620 (_initialize_language): Initialize current_language.
3621 * gdb/language.h (struct language_defn): Rename to...
3622 (struct language_data): ...this.
3623 (struct language_defn): New.
3624 (auto_language_defn): Delete.
3625 (unknown_language_defn): Delete.
3626 (minimal_language_defn): Delete.
3627 (ada_language_defn): Delete.
3628 (asm_language_defn): Delete.
3629 (c_language_defn): Delete.
3630 (cplus_language_defn): Delete.
3631 (d_language_defn): Delete.
3632 (f_language_defn): Delete.
3633 (go_language_defn): Delete.
3634 (m2_language_defn): Delete.
3635 (objc_language_defn): Delete.
3636 (opencl_language_defn): Delete.
3637 (pascal_language_defn): Delete.
3638 (rust_language_defn): Delete.
3639 * gdb/m2-lang.c (m2_language_defn): Convert to...
3640 (m2_language_data): ...this.
3641 (class m2_language): New class.
3642 (m2_language_defn): New static global.
3643 * gdb/objc-lang.c (objc_language_defn): Convert to...
3644 (objc_language_data): ...this.
3645 (class objc_language): New class.
3646 (objc_language_defn): New static global.
3647 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3648 (opencl_language_data): ...this.
3649 (class opencl_language): New class.
3650 (opencl_language_defn): New static global.
3651 * gdb/p-lang.c (pascal_language_defn): Convert to...
3652 (pascal_language_data): ...this.
3653 (class pascal_language): New class.
3654 (pascal_language_defn): New static global.
3655 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3656 language pointer, update comment format.
3657 * gdb/rust-lang.c (rust_language_defn): Convert to...
3658 (rust_language_data): ...this.
3659 (class rust_language): New class.
3660 (rust_language_defn): New static global.
3661
3662 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3663
3664 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3665 member variable.
3666 <m_stmt_at_address>: New member variable.
3667 (lnp_state_machine::record_line): Don't record some lines, update
3668 tracking of is_stmt at the same address.
3669 (lnp_state_machine::lnp_state_machine): Initialise new member
3670 variables.
3671
3672 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3673
3674 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3675 "-include gnu-nat-mig.h".
3676 * gnu-nat-mig.h: New file.
3677 * gnu-nat.c: Include "gnu-nat-mig.h".
3678 (exc_server, msg_reply_server, notify_server,
3679 process_reply_server): Remove declarations.
3680
3681 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3682
3683 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3684 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3685 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3686 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3687 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3688 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3689 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3690 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3691 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3692 to gnu_nat_target class.
3693 * gnu-nat.c: Likewise.
3694 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3695 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3696 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3697 object.
3698 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3699 instead of `gnu_target'.
3700
3701 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3702
3703 * i386-gnu-tdep.c: Include "gdbcore.h"
3704 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3705 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3706 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3707 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3708 i386_gnu_sigcontext_addr): New functions
3709 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3710 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3711 tdep.
3712
3713 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3714
3715 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3716 before fork_inferior call. Avoid calling it if target_is_pushed returns
3717 true.
3718
3719 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3720
3721 * gnu-nat.h (gnu_target): New variable declaration.
3722 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3723 gnu_target.
3724 * gnu-nat.c (gnu_target): New variable.
3725 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3726 add_thread_silent, and add_thread calls.
3727 (gnu_nat_target::create_inferior): Pass gnu_target to
3728 add_thread_silent, thread_change_ptid call.
3729 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3730 call.
3731
3732 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3733
3734 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3735 (gnu_nat_target::find_memory_regions): Remove unused
3736 `old_address' variable.
3737
3738 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3739
3740 * gnu-nat.c: Include "gdbarch.h".
3741
3742 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3743
3744 * reply_mig_hack.awk (Error return): Cast function through
3745 void *, to bypass compiler function call check.
3746
3747 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3748
3749 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3750 $(srcdir)/reply_mig_hack.awk.
3751
3752 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3753
3754 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3755
3756 2020-05-30 Jonny Grant <jg@jguk.org>
3757
3758 * configure.ac (ACX_BUGURL): change bug URL to https.
3759
3760 2020-05-30 Pedro Alves <palves@redhat.com>
3761
3762 * cp-support.c (replace_typedefs_template): New.
3763 (replace_typedefs_qualified_name): Handle
3764 DEMANGLE_COMPONENT_TEMPLATE.
3765
3766 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3767
3768 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3769 dwarf2/index-cache.h, dwarf2/index-write.c,
3770 dwarf2/index-write.h, dwarf2/line-header.c,
3771 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3772 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3773 variables and fields from `dwarf2_per_objfile` to just
3774 `per_objfile` throughout.
3775
3776 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3777
3778 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3779 <push_dwarf_reg_entry_value>: Add comment.
3780
3781 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3782 Keith Seitz <keiths@redhat.com>
3783
3784 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3785 instead of PyEval_ReleaseLock.
3786 (class gdbpy_gil): Move to earlier in file.
3787 (finalize_python): Set gdb_python_initialized.
3788 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3789 when not initialized.
3790
3791 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3792
3793 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3794 <push_dwarf_reg_entry_value>: Remove assert. Override
3795 per_objfile with caller_per_objfile.
3796
3797 2020-05-28 Tom de Vries <tdevries@suse.de>
3798
3799 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3800 PR gold/15646 workaround to symbol kind "type".
3801
3802 2020-05-27 Tom Tromey <tromey@adacore.com>
3803
3804 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3805
3806 2020-05-27 Tom Tromey <tromey@adacore.com>
3807
3808 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3809 Use htab_find_with_hash.
3810 <add_abbrev>: Remove "abbrev_number" parameter.
3811 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3812 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3813 (hash_abbrev): Add comment.
3814 (abbrev_table::lookup_abbrev): Move to header file.
3815 (abbrev_table::read): Update.
3816
3817 2020-05-27 Tom Tromey <tromey@adacore.com>
3818
3819 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3820 method.
3821 <canonical_name>: New member.
3822 <raw_name>: Rename from "name".
3823 (partial_die_info): Initialize canonical_name.
3824 (scan_partial_symbols): Check raw_name.
3825 (partial_die_parent_scope, partial_die_full_name)
3826 (add_partial_symbol, add_partial_subprogram)
3827 (add_partial_enumeration, load_partial_dies): Use "name" method.
3828 (partial_die_info::name): New method.
3829 (partial_die_info::read, guess_partial_die_structure_name)
3830 (partial_die_info::fixup): Update.
3831
3832 2020-05-27 Tom Tromey <tromey@adacore.com>
3833
3834 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3835 <get_ref_die_offset>: Inline.
3836 <get_ref_die_offset_complaint>: New method.
3837 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3838 (attribute::get_ref_die_offset_complaint): Rename from
3839 get_ref_die_offset. Just issue complaint.
3840
3841 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3842
3843 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3844
3845 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3846
3847 * exec.c (exec_file_attach): Use errno value of first openp failure.
3848
3849 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3850
3851 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3852 Don't close thread handle.
3853
3854 2020-05-27 Tom Tromey <tom@tromey.com>
3855 Simon Marchi <simon.marchi@efficios.com>
3856
3857 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3858 shared_ptr.
3859 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3860 member.
3861 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3862 dwarf2_per_bfd_objfile_data_key>: New globals.
3863 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3864 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3865 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3866 shared.
3867 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3868 short-circuit when sharing.
3869 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3870 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3871
3872 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3873
3874 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3875 to...
3876 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3877 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3878
3879 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3880
3881 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3882 build_name_components, find_name_components_bounds>:
3883 Add per_objfile parameter.
3884 (struct mapped_index) <symbol_name_at>: Likewise.
3885 (struct mapped_debug_names): Remove constructor.
3886 <dwarf2_per_objfile>: Remove field.
3887 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3888 (mapped_index_base::find_name_components_bounds,
3889 mapped_index_base::build_name_components,
3890 dw2_expand_symtabs_matching_symbol): Likewise.
3891 (class mock_mapped_index) <symbol_name_at>: Likewise.
3892 (check_match): Likewise.
3893 (check_find_bounds_finds): Likewise.
3894 (test_mapped_index_find_name_component_bounds): Update.
3895 (CHECK_MATCH): Update.
3896 (dw2_expand_symtabs_matching): Update.
3897 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3898 per_objfile parameter.
3899 <find_vec_in_debug_names>: Likewise.
3900 <m_per_objfile>: New field.
3901 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3902 parameter.
3903 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3904 (dw2_debug_names_iterator::next): Update.
3905 (dw2_debug_names_lookup_symbol): Update.
3906 (dw2_debug_names_expand_symtabs_for_function): Update.
3907 (dw2_debug_names_map_matching_symbols): Update.
3908 (dw2_debug_names_expand_symtabs_matching): Update.
3909 (dwarf2_read_debug_names): Update.
3910
3911 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3912
3913 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3914 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3915 move to dwarf2_per_objfile.
3916 <read_in_chain>: Remove.
3917 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3918 remove_all_cus, age_comp_units>: New methods.
3919 <m_dwarf2_cus>: New member.
3920 (struct dwarf2_per_cu_data) <cu>: Remove.
3921 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3922 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3923 moved to methods of dwarf2_per_objfile.
3924 (dwarf2_clear_marks): Remove.
3925 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3926 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3927 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3928 (dwarf2_per_objfile::remove_all_cus): New.
3929 (class free_cached_comp_units) <~free_cached_comp_units>:
3930 Update.
3931 (load_cu): Update.
3932 (dw2_do_instantiate_symtab): Adjust.
3933 (fill_in_sig_entry_from_dwo_entry): Adjust.
3934 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3935 (cutu_reader::cutu_reader): Likewise.
3936 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3937 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3938 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3939 and dwarf2_per_objfile::age_comp_units.
3940 (load_partial_comp_unit): Update.
3941 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3942 (process_queue): Likewise.
3943 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3944 backlink.
3945 (dwarf2_read_addr_index): Likewise.
3946 (follow_die_offset): Likewise.
3947 (dwarf2_fetch_die_loc_sect_off): Likewise.
3948 (dwarf2_fetch_constant_bytes): Likewise.
3949 (dwarf2_fetch_die_type_sect_off): Likewise.
3950 (follow_die_sig_1): Likewise.
3951 (load_full_type_unit): Likewise.
3952 (read_signatured_type): Likewise.
3953 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3954 (dwarf2_cu::~dwarf2_cu): Remove.
3955 (dwarf2_per_objfile::get_cu): New.
3956 (dwarf2_per_objfile::set_cu): New.
3957 (age_cached_comp_units): Rename to...
3958 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3959 to std::unordered_map.
3960 (free_one_cached_comp_unit): Rename to...
3961 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3962 to std::unordered_map.
3963 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3964 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3965 a dwarf2_per_objfile in data.
3966 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3967 (dwarf2_clear_marks): Remove.
3968
3969 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3970
3971 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3972 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3973 (init_tu_and_read_dwo_dies): Likewise.
3974 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3975 (cutu_reader::cutu_reader): Likewise.
3976 (load_partial_comp_unit): Likewise.
3977 (process_psymtab_comp_unit): Update.
3978 (build_type_psymtabs_1): Update.
3979 (process_skeletonless_type_unit): Update.
3980 (load_full_comp_unit): Update.
3981 (find_partial_die): Update.
3982 (dwarf2_read_addr_index): Update.
3983 (read_signatured_type): Update.
3984
3985 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3986
3987 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3988 m_header_read_in>: New fields.
3989 <get_header>: New method.
3990 * dwarf2/read.c (per_cu_header_read_in): Remove.
3991 (dwarf2_per_cu_data::get_header): New.
3992 (dwarf2_per_cu_data::addr_size): Update.
3993 (dwarf2_per_cu_data::offset_size): Update.
3994 (dwarf2_per_cu_data::ref_addr_size): Update.
3995
3996 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3997
3998 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3999 (dw2_do_instantiate_symtab): Update.
4000 (queue_and_load_all_dwo_tus): Change parameter from
4001 dwarf2_per_cu_data to dwarf2_cu.
4002 (dwarf2_fetch_die_loc_sect_off): Update.
4003 (dwarf2_fetch_constant_bytes): Update.
4004 (dwarf2_fetch_die_type_sect_off): Update.
4005
4006 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4007
4008 * dwarf2/read.c (process_full_comp_unit,
4009 process_full_type_unit): Remove per_cu, per_objfile paramters.
4010 Add dwarf2_cu parameter.
4011 (process_queue): Update.
4012
4013 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4014
4015 * dwarf2/read.c (create_cu_from_index_list): Replace
4016 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4017 (create_cus_from_index_list): Likewise.
4018 (create_cus_from_index): Likewise.
4019 (create_signatured_type_table_from_index): Likewise.
4020 (create_cus_from_debug_names_list): Likewise.
4021 (create_cus_from_debug_names): Likewise.
4022 (dwarf2_read_gdb_index): Update.
4023 (dwarf2_read_debug_names): Update.
4024
4025 2020-05-27 Tom Tromey <tom@tromey.com>
4026 Simon Marchi <simon.marchi@efficios.com>
4027
4028 * dwarf2/read.h (struct dwarf2_per_objfile)
4029 <get_type_for_signatured_type, set_type_for_signatured_type>:
4030 New methods.
4031 <m_type_map>: New member.
4032 (struct signatured_type) <type>: Remove.
4033 * dwarf2/read.c
4034 (dwarf2_per_objfile::get_type_for_signatured_type,
4035 dwarf2_per_objfile::set_type_for_signatured_type): New.
4036 (get_signatured_type): Use new methods.
4037
4038 2020-05-27 Tom Tromey <tom@tromey.com>
4039 Simon Marchi <simon.marchi@efficios.com>
4040
4041 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4042 (struct dwarf2_per_objfile) <type_units>: New member.
4043 <get_type_unit_group_unshareable>: New method.
4044 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4045 num_symtabs, symtabs>: Remove; move to
4046 type_unit_group_unshareable.
4047 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4048 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4049 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4050
4051 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4052
4053 * dwarf2/read.h (struct dwarf2_per_cu_data):
4054 <dwarf2_per_objfile>: Remove.
4055 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4056 dwarf2_per_objfile.
4057 (create_signatured_type_table_from_index): Likewise.
4058 (create_signatured_type_table_from_debug_names): Likewise.
4059 (create_debug_type_hash_table): Likewise.
4060 (fill_in_sig_entry_from_dwo_entry): Likewise.
4061 (create_type_unit_group): Likewise.
4062 (read_comp_units_from_section): Likewise.
4063 (create_cus_hash_table): Likewise.
4064
4065 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4066
4067 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4068 dwarf2_per_cu_data::dwarf2_per_objfile.
4069 (compute_compunit_symtab_includes): Likewise.
4070 (dwarf2_cu::start_symtab): Likewise.
4071
4072 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4073
4074 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4075 parameter.
4076 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4077 (read_namespace_alias): Update.
4078 (lookup_die_type): Update.
4079 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4080 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4081 Update.
4082 (disassemble_dwarf_expression): Update.
4083
4084 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4085
4086 * dwarf2/read.h (struct dwarf2_queue_item): Add
4087 dwarf2_per_objfile parameter, assign new parameter.
4088 <per_objfile>: New field.
4089 * dwarf2/read.c (free_one_cached_comp_unit): Add
4090 dwarf2_per_objfile parameter.
4091 (queue_comp_unit): Likewise.
4092 (dw2_do_instantiate_symtab): Update.
4093 (process_psymtab_comp_unit): Update.
4094 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4095 (process_imported_unit_die): Update.
4096 (queue_and_load_dwo_tu): Update.
4097 (follow_die_offset): Update.
4098 (follow_die_sig_1): Update.
4099
4100 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4101
4102 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4103 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4104 (read_call_site_scope): Assign per_objfile.
4105 (dwarf2_per_cu_data::objfile): Remove.
4106 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4107 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4108 dwarf2_per_objfile parameter.
4109 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4110 dwarf2_per_objfile parameter.
4111 (dwarf_expr_reg_to_entry_parameter): Add output
4112 dwarf2_per_objfile parameter.
4113 (locexpr_get_frame_base): Update.
4114 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4115 <push_dwarf_reg_entry_value>: Update.
4116 <call_site_to_target_addr>: Update.
4117 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4118 parameter.
4119 (value_of_dwarf_reg_entry): Update.
4120 (rw_pieced_value): Update.
4121 (indirect_synthetic_pointer): Update.
4122 (dwarf2_evaluate_property): Update.
4123 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4124 parameter.
4125 (locexpr_read_variable): Update.
4126 (locexpr_get_symbol_read_needs): Update.
4127 (loclist_read_variable): Update.
4128
4129 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4130
4131 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4132 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4133 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4134 parameter.
4135 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4136 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4137 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4138 parameter.
4139 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4140 sect_variable_value): Add dwarf2_per_objfile parameter.
4141 (class dwarf_evaluate_loc_desc) <dwarf_call,
4142 dwarf_variable_value>: Update.
4143 (fetch_const_value_from_synthetic_pointer): Add
4144 dwarf2_per_objfile parameter.
4145 (fetch_const_value_from_synthetic_pointer): Update.
4146 (coerced_pieced_ref): Update.
4147 (class symbol_needs_eval_context) <dwarf_call,
4148 dwarf_variable_value>: Update.
4149 (dwarf2_compile_expr_to_ax): Update.
4150
4151 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4152
4153 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4154 parameter.
4155 (dwarf2_evaluate_loc_desc_full): Update.
4156
4157 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4158
4159 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4160 parameter.
4161 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4162 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4163 dwarf2_per_objfile parameter.
4164 (decode_debug_loc_dwo_addresses): Likewise.
4165 (dwarf2_find_location_expression): Update.
4166 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4167 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4168 parameter.
4169 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4170 parameter.
4171 (locexpr_describe_location_1): Likewise.
4172 (locexpr_describe_location): Update.
4173
4174 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4175
4176 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4177 Remove.
4178 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4179 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4180 (dwarf2_compile_property_to_c): Update.
4181 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4182 use text offset from objfile.
4183 (locexpr_tracepoint_var_ref): Update.
4184 (locexpr_generate_c_location): Update.
4185 (loclist_describe_location): Update.
4186 (loclist_tracepoint_var_ref): Update.
4187 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4188 dwarf2_per_objfile parameter.
4189 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4190 use text offset from objfile.
4191 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4192
4193 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4194
4195 * dwarf2/expr.h (struct dwarf_expr_context)
4196 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4197 <offset>: Remove.
4198 <per_objfile>: New member.
4199 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4200 dwarf2_per_objfile parameter. Don't set offset, set
4201 per_objfile.
4202 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4203 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4204 a dwarf2_per_objfile object instead of an offset.
4205 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4206 constructor.
4207 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4208 to dwarf2_expr_executor constructor. Don't set offset.
4209 (dwarf2_fetch_cfa_info): Update.
4210 (struct dwarf2_frame_cache) <text_offset>: Remove.
4211 <per_objfile>: New field.
4212 (dwarf2_frame_cache): Update.
4213 (dwarf2_frame_prev_register): Update.
4214 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4215 <dwarf_evaluate_loc_desc>: Add constructor.
4216 (dwarf2_evaluate_loc_desc_full): Update.
4217 (dwarf2_locexpr_baton_eval): Update.
4218 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4219 Add constructor.
4220 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4221
4222 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4223
4224 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4225 addr_sized_int_type>: Move to dwarf2_cu.
4226 <int_type>: Move to dwarf2_per_objfile.
4227 (struct dwarf2_per_objfile) <int_type>: Move here.
4228 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4229 addr_sized_int_type>: Move here.
4230 (read_func_scope): Update.
4231 (read_array_type): Update.
4232 (read_tag_string_type): Update.
4233 (attr_to_dynamic_prop): Update.
4234 (dwarf2_per_cu_data::int_type): Rename to...
4235 (dwarf2_per_objfile::int_type): ... this.
4236 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4237 (dwarf2_cu::addr_sized_int_type): ... this.
4238 (read_subrange_type): Update.
4239 (dwarf2_per_cu_data::addr_type): Rename to...
4240 (dwarf2_cu::addr_type): ... this.
4241 (set_die_type): Update.
4242
4243 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4244
4245 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4246 data through per_cu->cu.
4247
4248 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4249
4250 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4251 dwarf2_per_cu_data parameter fo dwarf2_cu.
4252 (lookup_dwo_type_unit): Likewise.
4253 (read_cutu_die_from_dwo): Likewise.
4254 (lookup_dwo_unit): Likewise.
4255 (open_and_init_dwo_file): Likewise.
4256 (lookup_dwo_cutu): Likewise.
4257 (lookup_dwo_comp_unit): Likewise.
4258 (lookup_dwo_type_unit): Likewise.
4259 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4260 (cutu_reader::cutu_reader): Update.
4261
4262 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4263
4264 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4265 parameter.
4266 (process_full_type_unit): Likewise.
4267 (process_queue): Update.
4268
4269 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4270
4271 * dwarf2/read.c (recursively_compute_inclusions): Add
4272 dwarf2_per_objfile parameter.
4273 (compute_compunit_symtab_includes): Likewise.
4274 (process_cu_includes): Update.
4275
4276 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4277
4278 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4279 parameter.
4280 (create_type_unit_group): Update.
4281 (process_psymtab_comp_unit_reader): Update.
4282 (build_type_psymtabs_reader): Update.
4283
4284 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4285
4286 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4287 object through m_this_cu->cu.
4288
4289 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4290
4291 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4292 the info parameter.
4293 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4294
4295 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4296
4297 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4298 per_objfile parameter.
4299 (load_full_type_unit): Add per_objfile parameter.
4300 (read_signatured_type): Likewise.
4301 (load_full_comp_unit): Likewise.
4302 (load_cu): Likewise.
4303 (dw2_do_instantiate_symtab): Likewise.
4304 (dw2_get_file_names): Likewise.
4305 (dw2_map_symtabs_matching_filename): Update.
4306 (dw_expand_symtabs_matching_file_matcher): Update.
4307 (dw2_map_symbol_filenames): Update.
4308 (process_psymtab_comp_unit): Add per_objfile parameter.
4309 (build_type_psymtabs_1): Update.
4310 (process_skeletonless_type_unit): Update.
4311 (dwarf2_build_psymtabs_hard): Update.
4312 (load_partial_comp_unit): Add per_objfile parameter.
4313 (scan_partial_symbols): Update.
4314 (load_full_comp_unit): Add per_objfile parameter.
4315 (process_imported_unit_die): Update.
4316 (create_cus_hash_table): Update.
4317 (find_partial_die): Update.
4318 (dwarf2_read_addr_index): Update.
4319 (follow_die_offset): Update.
4320 (dwarf2_fetch_die_loc_sect_off): Update.
4321 (dwarf2_fetch_constant_bytes): Update.
4322 (dwarf2_fetch_die_type_sect_off): Update.
4323 (follow_die_sig_1): Update.
4324 (load_full_type_unit): Add per_objfile parameter.
4325 (read_signatured_type): Likewise.
4326
4327 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4328
4329 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4330 of objfile_name.
4331
4332 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4333
4334 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4335 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4336 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4337 field.
4338 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4339 (create_cus_from_index): Update.
4340 (dwarf2_read_gdb_index): Update.
4341 (create_cus_from_debug_names): Update.
4342 (dwarf2_read_debug_names): Update.
4343 (get_abbrev_section_for_cu): Update.
4344 (create_all_comp_units): Update.
4345 (read_attribute_value): Update.
4346 (get_debug_line_section): Update.
4347 * dwarf2/index-cache.c (index_cache::store): Update.
4348 * dwarf2/index-write.c (save_gdb_index_command): Update.
4349 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4350
4351 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4352
4353 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4354 member.
4355 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4356 dwarf2_per_cu_data::per_bfd.
4357 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4358 (create_type_unit_group): Likewise.
4359 (queue_comp_unit): Remove reference to
4360 per_cu->dwarf2_per_objfile.
4361 (maybe_queue_comp_unit): Likewise.
4362 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4363 (create_cus_hash_table): Assign new field.
4364
4365 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4366
4367 * dwarf2/read.c: Replace
4368 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4369 dwarf2_cu->per_objfile throughout.
4370
4371 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4372
4373 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4374 parameter, don't use per_cu->dwarf2_per_objfile.
4375 (dw2_instantiate_symtab): Likewise.
4376 (dw2_find_last_source_symtab): Update.
4377 (dw2_map_expand_apply): Update.
4378 (dw2_lookup_symbol): Update.
4379 (dw2_expand_symtabs_for_function): Update.
4380 (dw2_expand_all_symtabs): Update.
4381 (dw2_expand_symtabs_with_fullname): Update.
4382 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4383 don't use per_cu->dwarf2_per_objfile.
4384 (dw2_expand_marked_cus): Update.
4385 (dw2_find_pc_sect_compunit_symtab): Update.
4386 (dw2_debug_names_lookup_symbol): Update.
4387 (dw2_debug_names_expand_symtabs_for_function): Update.
4388 (dw2_debug_names_map_matching_symbols): Update.
4389 (dwarf2_psymtab::expand_psymtab): Update.
4390
4391 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4392
4393 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4394 <per_objfile>: New member.
4395 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4396 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4397 call to dwarf2_cu.
4398 (cutu_reader::cutu_reader): Update.
4399 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4400
4401 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4402
4403 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4404 struct dwarf2_per_objfile.
4405 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4406 dwarf2_per_bfd.
4407 * dwarf2/read.c (set_die_type): Update.
4408 (get_die_type_at_offset): Update.
4409
4410 2020-05-27 Tom Tromey <tom@tromey.com>
4411 Simon Marchi <simon.marchi@efficios.com>
4412
4413 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4414 method.
4415 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4416 get_symtab, set_symtab>: New methods.
4417 <m_symtabs>: New field.
4418 (struct dwarf2_psymtab): Derive from partial_symtab.
4419 <readin_p, get_compunit_symtab>: Declare methods.
4420 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4421 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4422 New methods.
4423 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4424 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4425 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4426 (dw2_symtab_iter_next, dw2_print_stats)
4427 (dw2_expand_symtabs_with_fullname)
4428 (dw2_expand_symtabs_matching_one)
4429 (dw_expand_symtabs_matching_file_matcher)
4430 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4431 (dw2_debug_names_iterator::next)
4432 (dw2_debug_names_map_matching_symbols)
4433 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4434 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4435 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4436 New methods.
4437 (get_compunit_symtab, process_full_comp_unit)
4438 (process_full_type_unit): Update.
4439 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4440
4441 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4442
4443 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4444 then introduce a new dwarf2_per_objfile type.
4445 <read_line_string>: Move to the new dwarf2_per_objfile type.
4446 <objfile>: Likewise.
4447 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4448 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4449 dwarf2_per_objfile->per_bfd.
4450 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4451 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4452 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4453 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4454 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4455 (dwarf2_per_objfile::locate_sections): Rename to...
4456 (dwarf2_per_bfd::locate_sections): ... this.
4457 (dwarf2_per_objfile::get_cutu): Rename to...
4458 (dwarf2_per_bfd::get_cutu): ... this.
4459 (dwarf2_per_objfile::get_cu): Rename to...
4460 (dwarf2_per_bfd::get_cu): ... this.
4461 (dwarf2_per_objfile::get_tu): Rename to...
4462 (dwarf2_per_bfd::get_tu): ... this.
4463 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4464 (dwarf2_per_bfd::allocate_per_cu): ... this.
4465 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4466 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4467 (get_gdb_index_contents_ftype): Change parameter from
4468 dwarf2_per_objfile to dwarf2_per_bfd.
4469 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4470 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4471
4472 2020-05-27 Tom Tromey <tom@tromey.com>
4473 Simon Marchi <simon.marchi@efficios.com>
4474
4475 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4476 (allocate_piece_closure): Set "per_objfile" member.
4477 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4478 (locexpr_describe_location, loclist_describe_location): Use new
4479 member.
4480 * dwarf2/read.c (read_call_site_scope)
4481 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4482 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4483 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4484 handle_data_member_location): Set per_objfile member.
4485 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4486 member.
4487 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4488
4489 2020-05-27 Tom Tromey <tom@tromey.com>
4490
4491 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4492 allocate_signatured_type>: Declare new methods.
4493 <m_num_psymtabs>: New member.
4494 (struct dwarf2_per_cu_data) <index>: New member.
4495 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4496 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4497 (create_cu_from_index_list): Use allocate_per_cu.
4498 (create_signatured_type_table_from_index)
4499 (create_signatured_type_table_from_debug_names)
4500 (create_debug_type_hash_table, add_type_unit)
4501 (read_comp_units_from_section): Use allocate_signatured_type.
4502
4503 2020-05-27 Tom Tromey <tom@tromey.com>
4504
4505 * psymtab.c (partial_map_expand_apply)
4506 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4507 (psym_lookup_global_symbol_language)
4508 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4509 (psym_print_stats, psym_expand_symtabs_for_function)
4510 (psym_map_symbol_filenames, psym_map_matching_symbols)
4511 (psym_expand_symtabs_matching)
4512 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4513 (maintenance_check_psymtabs): Update.
4514 * psympriv.h (struct partial_symtab) <readin_p,
4515 get_compunit_symtab>: Add objfile parameter.
4516 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4517 Likewise.
4518 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4519 get_compunit_symtab>: Likewise.
4520 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4521
4522 2020-05-27 Tom Tromey <tom@tromey.com>
4523
4524 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4525 member.
4526 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4527 (create_cu_from_index_list)
4528 (create_signatured_type_table_from_index)
4529 (create_signatured_type_table_from_debug_names)
4530 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4531 (dwarf2_create_include_psymtab)
4532 (create_debug_type_hash_table, add_type_unit)
4533 (create_type_unit_group, read_comp_units_from_section)
4534 (dwarf2_compute_name, create_cus_hash_table)
4535 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4536 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4537 obstack.
4538 (dw2_get_real_path): Likewise. Change argument to
4539 dwarf2_per_objfile.
4540
4541 2020-05-27 Luis Machado <luis.machado@linaro.org>
4542
4543 PR tdep/26000
4544 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4545 for ldrd (immediate).
4546
4547 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4548
4549 * command.h: Add comment giving the name of class_tui.
4550 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4551 create the fake command for the help for class_tui.
4552
4553 2020-05-26 Tom Tromey <tromey@adacore.com>
4554
4555 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4556 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4557 (val_atr): New function.
4558 (value_val_atr): Use it.
4559 * ada-valprint.c (print_optional_low_bound): Change low bound
4560 handling for enums.
4561 (val_print_packed_array_elements): Don't call discrete_position.
4562 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4563 discrete_position for enum types.
4564 * language.c (default_print_array_index): Change type.
4565 * language.h (struct language_defn) <la_print_array_index>: Add
4566 index_type parameter, change type of index_value.
4567 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4568 (default_print_array_index): Update.
4569 * valprint.c (maybe_print_array_index): Don't call
4570 value_from_longest. Update.
4571 (value_print_array_elements): Don't call discrete_position.
4572
4573 2020-05-26 Tom Tromey <tromey@adacore.com>
4574
4575 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4576 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4577
4578 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4579
4580 PR gdb/13519
4581 * avr-tdep.c (avr_integer_to_address): Return data or code
4582 address accordingly to the second 'type' argument of the
4583 function.
4584
4585 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4586
4587 * infcmd.c, inferior.h: (construct_inferior_arguments):
4588 Moved function from here to gdbsupport/common-inferior.{h,cc}
4589
4590 2020-05-23 Tom Tromey <tom@tromey.com>
4591
4592 Revert commit eca1f90c:
4593 * NEWS: Remove entry for completion styling.
4594 * completer.c (_rl_completion_prefix_display_length): Move
4595 declaration later.
4596 (gdb_fnprint): Revert.
4597 (gdb_display_match_list_1): Likewise.
4598 * cli/cli-style.c (completion_prefix_style)
4599 (completion_difference_style, completion_suffix_style): Remove.
4600 (_initialize_cli_style): Revert.
4601 * cli/cli-style.h (completion_prefix_style)
4602 (completion_difference_style, completion_suffix_style): Don't
4603 declare.
4604
4605 2020-05-24 Pedro Alves <palves@redhat.com>
4606
4607 * symtab.c (completion_list_add_name): Return boolean indication
4608 of whether the symbol matched.
4609 (completion_list_add_symbol): Don't try to remove C++ aliases if
4610 the symbol didn't match in the first place.
4611 * symtab.h (completion_list_add_name): Return bool.
4612
4613 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4614
4615 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4616 type::field.
4617
4618 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4619
4620 GDB 9.2 released.
4621
4622 2020-05-23 Tom Tromey <tom@tromey.com>
4623
4624 * NEWS: Add entry for completion styling.
4625 * completer.c (_rl_completion_prefix_display_length): Move
4626 declaration earlier.
4627 (gdb_fnprint): Use completion_style.
4628 (gdb_display_match_list_1): Likewise.
4629 * cli/cli-style.c (completion_prefix_style)
4630 (completion_difference_style, completion_suffix_style): New
4631 globals.
4632 (_initialize_cli_style): Register new globals.
4633 * cli/cli-style.h (completion_prefix_style)
4634 (completion_difference_style, completion_suffix_style): Declare.
4635
4636 2020-05-23 Pedro Alves <palves@redhat.com>
4637
4638 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4639 (parse_escape): Use ISDIGIT instead of isdigit.
4640 (puts_debug): Use gdb_isprint instead of isprint.
4641 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4642 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4643 ISSPACE instead of isspace.
4644 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4645 instead of isspace.
4646 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4647 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4648 instead of isxdigit and ISDIGIT instead of isdigit.
4649
4650 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4651
4652 * gdbtypes.h (struct type) <field>: New method.
4653 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4654 or type::field.
4655
4656 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4657
4658 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4659 (TYPE_FIELDS): Use type::fields. Change all call sites that
4660 modify the propery to use type::set_fields instead.
4661
4662 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4663
4664 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4665 type::num_fields instead.
4666
4667 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4668
4669 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4670 methods.
4671 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4672 that modify the number of fields to use type::set_num_fields
4673 instead.
4674
4675 2020-05-22 Tom Tromey <tromey@adacore.com>
4676
4677 * compile/compile-object-load.h (munmap_list_free): Don't
4678 declare.
4679
4680 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4681
4682 * annotate.c (annotate_source_line): Update return type, add call
4683 to update current symtab and line.
4684 * annotate.h (annotate_source_line): Update return type, and
4685 extend header comment.
4686 * source.c (info_line_command): Check annotation_level before
4687 calling annotate_source_line.
4688 * stack.c (print_frame_info): If calling annotate_source_line
4689 returns true, then don't print any other source line information.
4690
4691 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4692
4693 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4694
4695 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4696
4697 * coffread.c (patch_type): Remove NULL check before xfree.
4698 * corefile.c (set_gnutarget): Likewise.
4699 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4700 * exec.c (build_section_table): Likewise.
4701 * remote.c (remote_target::pass_signals): Likewise.
4702 * utils.c (n_spaces): Likewise.
4703 * cli/cli-script.c (document_command): Likewise.
4704 * i386-windows-tdep.c (core_process_module_section): Likewise.
4705 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4706
4707 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4708
4709 * symfile.c (reread_symbols): Clear objfile's section_offsets
4710 vector and section indices, re-compute them by calling
4711 sym_offsets.
4712
4713 2020-05-20 Tom Tromey <tromey@adacore.com>
4714
4715 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4716 (desc_one_bound, desc_index_type): Compute field name.
4717
4718 2020-05-20 Tom de Vries <tdevries@suse.de>
4719
4720 PR symtab/25833
4721 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4722
4723 2020-05-20 Alan Modra <amodra@gmail.com>
4724
4725 PR 25993
4726 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4727 bfd_set_filename.
4728 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4729 passed to bfd_set_filename.
4730 * symfile-mem.c (add_vsyscall_page): Likewise for string
4731 passed to symbol_file_add_from_memory.
4732 (symbol_file_add_from_memory): Make name param a const char* and
4733 don't strdup.
4734
4735 2020-05-20 Alan Modra <amodra@gmail.com>
4736
4737 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4738 rather than accessing bfd->filename directly.
4739 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4740 and use bfd_section_name.
4741 * dwarf2/frame.c (decode_frame_entry): Likewise.
4742 * exec.c (exec_set_section_address): Likewise.
4743 * solib-aix.c (solib_aix_bfd_open): Likewise.
4744 * stap-probe.c (get_stap_base_address): Likewise.
4745 * symfile.c (reread_symbols): Likewise.
4746
4747 2020-05-19 Tom Tromey <tromey@adacore.com>
4748
4749 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4750
4751 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4752
4753 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4754
4755 2020-05-19 Pedro Alves <palves@redhat.com>
4756
4757 * NEWS (set exec-file-mismatch): Adjust entry.
4758 * exec.c: Include "build-id.h".
4759 (validate_exec_file): Try to match build IDs instead of filenames.
4760 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4761 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4762 and pass down 'warn_if_slow'.
4763 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4764 gdb_bfd_open_closure to pass it down.
4765 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4766
4767 2020-05-19 Pedro Alves <palves@redhat.com>
4768
4769 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4770 * target.c (target_fileio_open_1): Rename to target_fileio_open
4771 and make extern. Use bool.
4772 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4773 (target_fileio_read_alloc_1): Adjust.
4774 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4775 (target_fileio_open_warn_if_slow): Delete declaration.
4776
4777 2020-05-19 Pedro Alves <palves@redhat.com>
4778
4779 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4780 Adjust all callers.
4781
4782 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4783
4784 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4785 whether disp is negative.
4786
4787 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4788
4789 * symfile.h (struct symfile_segment_data)
4790 <~symfile_segment_data>: Remove.
4791 <segment_info>: Change to std::vector.
4792 * symfile.c (default_symfile_segments): Update.
4793 * elfread.c (elf_symfile_segments): Update.
4794
4795 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4796
4797 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4798 <segments>: New.
4799 <segment_bases, segment_sizes>: Remove.
4800 * symfile.c (default_symfile_segments): Update.
4801 * elfread.c (elf_symfile_segments): Update.
4802 * remote.c (remote_target::get_offsets): Update.
4803 * solib-target.c (solib_target_relocate_section_addresses):
4804 Update.
4805
4806 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4807
4808 * symfile.h (struct symfile_segment_data): Initialize fields.
4809 <~symfile_segment_data>: Add.
4810 (symfile_segment_data_up): New.
4811 (struct sym_fns) <sym_segments>: Return a
4812 symfile_segment_data_up.
4813 (default_symfile_segments): Return a symfile_segment_data_up.
4814 (free_symfile_segment_data): Remove.
4815 (get_symfile_segment_data): Return a symfile_segment_data_up.
4816 * symfile.c (default_symfile_segments): Likewise.
4817 (get_symfile_segment_data): Likewise.
4818 (free_symfile_segment_data): Remove.
4819 (symfile_find_segment_sections): Update.
4820 * elfread.c (elf_symfile_segments): Return a
4821 symfile_segment_data_up.
4822 * remote.c (remote_target::get_offsets): Update.
4823 * solib-target.c (solib_target_relocate_section_addresses):
4824 Update.
4825 * symfile-debug.c (debug_sym_segments): Return a
4826 symfile_segment_data_up.
4827
4828 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4829
4830 PR build/25981
4831 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4832 Hardcode register numbers.
4833
4834 PR build/25981
4835 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4836 procfs_find_LDT_entry): Remove.
4837 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4838 procfs_find_LDT_entry): Remove.
4839 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4840 Remove.
4841
4842 2020-05-17 Pedro Alves <palves@redhat.com>
4843 Andrew Burgess <andrew.burgess@embecosm.com>
4844 Keno Fischer <keno@juliacomputing.com>
4845
4846 PR gdb/25741
4847 * breakpoint.c (build_target_condition_list): Update comments.
4848 (build_target_command_list): Update comments and skip matching
4849 locations.
4850 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4851 a separate function. Simplify "set breakpoint auto-hw off"
4852 handling.
4853 (insert_breakpoints): Update comment.
4854 (tracepoint_locations_match): New parameter. For breakpoints,
4855 compare location types too, if the caller wants to.
4856 (handle_automatic_hardware_breakpoints): New functions.
4857 (bp_location_is_less_than): Also sort by location type and
4858 hardware breakpoint length.
4859 (update_global_location_list): Handle "set breakpoint auto-hw on"
4860 here.
4861 (update_breakpoint_locations): Ask breakpoint_locations_match to
4862 ignore location types.
4863
4864 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4865
4866 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4867 type::name instead.
4868
4869 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4870
4871 * gdbtypes.h (struct type) <name, set_name>: New methods.
4872 (TYPE_CODE): Use type::name. Change all call sites used to set
4873 the name to use type::set_name instead.
4874
4875 2020-05-16 Tom Tromey <tom@tromey.com>
4876
4877 * top.c (quit_force): Update.
4878 * infrun.c (handle_no_resumed): Update.
4879 * top.h (all_uis): New function.
4880 (ALL_UIS): Remove.
4881
4882 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4883
4884 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4885
4886 2020-05-16 Pedro Alves <palves@redhat.com>
4887
4888 * ia64-linux-nat.c
4889 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4890 Declare method.
4891 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4892
4893 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4894
4895 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4896 (sparc64_adi_info): Likewise.
4897
4898 2020-05-15 Tom Tromey <tom@tromey.com>
4899
4900 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4901 block_objfile.
4902 (lookup_objfile_from_block): Remove.
4903 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4904 (lookup_global_symbol): Use block_objfile.
4905 * symtab.h (lookup_objfile_from_block): Don't declare.
4906 * printcmd.c (clear_dangling_display_expressions): Use
4907 block_objfile.
4908 * parse.c (operator_check_standard): Use block_objfile.
4909
4910 2020-05-15 Tom Tromey <tom@tromey.com>
4911
4912 * language.c (language_alloc_type_symbol): Set
4913 SYMBOL_SECTION.
4914 * symtab.c (initialize_objfile_symbol): Remove.
4915 (allocate_symbol): Remove.
4916 (allocate_template_symbol): Remove.
4917 * dwarf2/read.c (fixup_go_packaging): Use "new".
4918 (new_symbol): Use "new".
4919 (read_variable): Don't call initialize_objfile_symbol. Use
4920 "new".
4921 (read_func_scope): Use "new".
4922 * xcoffread.c (process_xcoff_symbol): Don't call
4923 initialize_objfile_symbol.
4924 (SYMBOL_DUP): Remove.
4925 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4926 "new".
4927 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4928 (allocate_template_symbol): Don't declare.
4929 (struct symbol): Add copy constructor. Change defaults.
4930 * jit.c (finalize_symtab): Use "new".
4931 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4932 Use "new".
4933 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4934 (common_block_end): Use "new".
4935 * mdebugread.c (parse_symbol): Use "new".
4936 (new_symbol): Likewise.
4937
4938 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4939
4940 * NEWS: Mention changes to help and apropos.
4941
4942 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4943
4944 * command.h (enum command_class): Improve comments, document
4945 that class_alias is for user-defined aliases, give the class
4946 name for each class, remove unused class_xdb.
4947 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4948 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4949 by a precise class.
4950 * infcmd.c (_initialize_infcmd): Likewise.
4951 * reverse.c (_initialize_reverse): Likewise.
4952 * stack.c (_initialize_stack): Likewise.
4953 * symfile.c (_initialize_symfile): Likewise.
4954 * tracepoint.c (_initialize_tracepoint): Likewise.
4955
4956 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4957
4958 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4959 when their aliased command is traversed.
4960 (help_cmd): Add fput_command_names_styled call to
4961 output command name and aliases when command has an alias.
4962
4963 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4964
4965 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4966 * cli/cli-decode.c (help_cmd_list): Declare as static,
4967 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4968 a command together with the command.
4969 (fput_command_name_styled, fput_command_names_styled): New functions.
4970 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4971 fput_command_name_styled.
4972 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4973 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4974
4975 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4976
4977 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4978 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4979 * command.h (cmd_show_list): Likewise.
4980 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4981 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4982
4983 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4984
4985 * unittests/command-def-selftests.c (traverse_command_structure):
4986 Verify all commands of a list have the same prefix command and
4987 that only the top cmdlist commands have a null prefix.
4988
4989 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4990
4991 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4992 as prefix, not one of its aliases.
4993 (set_cmd_prefix): Remove.
4994 (do_add_cmd): Centralize the setting of the prefix of a command, when
4995 command is defined after its full chain of prefix commands.
4996 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4997 (add_setshow_cmd_full): Likewise.
4998 (update_prefix_field_of_prefixed_commands): New function.
4999 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5000 update_prefix_field_of_prefixed_commands.
5001 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5002 addresses of remote_set_cmdlist and remote_show_cmdlist given
5003 as argument, not the address of an argument.
5004 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5005 * gdb/remote.c (_initialize_remote): Likewise.
5006
5007 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5008
5009 * cli/cli-cmds.c (alias_command): Check for an existing alias
5010 using lookup_cmd_composition, as valid_command_p is too strict
5011 and forbids aliases that are the prefix of an existing alias
5012 or command.
5013 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5014 command is properly recognised as a valid command.
5015
5016 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5017
5018 * unittests/help-doc-selftests.c: Rename to
5019 unittests/command-def-selftests.c
5020 * unittests/command-def-selftests.c (help_doc_tests): Update some
5021 comments.
5022 (command_structure_tests, traverse_command_structure): New namespace
5023 and function.
5024 (command_structure_invariants_tests): New function.
5025 (_initialize_command_def_selftests) Renamed from
5026 _initialize_help_doc_selftests, register command_structure_invariants
5027 selftest.
5028
5029 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5030
5031 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5032 an alias of 'show'.
5033
5034 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5035
5036 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5037 ada_is_fixed_point_type. Update all callers.
5038 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5039 all callers.
5040 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5041 Update all callers.
5042 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5043 print_fixed_point_type. Update all callers.
5044 * ada-valprint.c (ada_value_print_num): Replace call to
5045 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5046
5047 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5048
5049 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5050 processors.
5051 (cpu_supports_bts): Add CV_AMD case.
5052
5053 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5054 Simon Marchi <simon.marchi@efficios.com>
5055
5056 * infrun.c (stop_all_threads): Collect multiple wait events at
5057 each pass.
5058
5059 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5060
5061 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5062 type::code instead.
5063
5064 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5065
5066 * gdbtypes.h (struct type) <code, set_code>: New methods.
5067 (TYPE_CODE): Use type::code. Change all call sites used to set
5068 the code to use type::set_code instead.
5069
5070 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5071 Tom de Vries <tdevries@suse.de>
5072 Pedro Alves <palves@redhat.com>
5073
5074 PR threads/25478
5075 * infrun.c (stop_all_threads): Do NOT ignore
5076 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5077 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5078 received.
5079 (handle_no_resumed): Remove code handling a live inferior with no
5080 threads.
5081 * remote.c (has_single_non_exited_thread): New.
5082 (remote_target::update_thread_list): Do not delete a thread if is
5083 the last thread of the process.
5084 * thread.c (thread_select): Call delete_exited_threads instead of
5085 prune_threads.
5086
5087 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5088
5089 * infrun.c (stop_all_threads): Enable/disable thread events of all
5090 targets. Move a debug message denoting the end of the function
5091 into the SCOPED_EXIT block.
5092
5093 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5094
5095 * process-stratum-target.h: Include <set>.
5096 (all_non_exited_process_targets, switch_to_target_no_thread): New
5097 function declarations.
5098 * process-stratum-target.c (all_non_exited_process_targets)
5099 (switch_to_target_no_thread): New function implementations.
5100
5101 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5102
5103 * infrun.c (handle_inferior_event): Extract out a piece of code
5104 into...
5105 (mark_non_executing_threads): ...this new function.
5106
5107 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5108
5109 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5110 use.
5111
5112 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5113
5114 * regcache.c (regcache_read_pc_protected): New function
5115 implementation that returns 0 if the PC cannot read via
5116 'regcache_read_pc'.
5117 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5118 instead of 'regcache_read_pc'.
5119 (keep_going_pass_signal): Ditto.
5120
5121 2020-05-13 Tom Tromey <tromey@adacore.com>
5122
5123 * ada-lang.c (align_value): Remove.
5124 (ada_template_to_fixed_record_type_1): Use align_up.
5125
5126 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5127
5128 * async-event.c: Update the copyright year.
5129 * async-event.h: Update the copyright year.
5130
5131 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5132
5133 * objfiles.h (is_addr_in_objfile,
5134 shared_objfile_contains_address_p): Return bool.
5135 * objfile.c (is_addr_in_objfile,
5136 shared_objfile_contains_address_p): Return bool.
5137
5138 2020-05-11 Tom Tromey <tromey@adacore.com>
5139
5140 * cli/cli-cmds.c (info_command): Restore.
5141 (_initialize_cli_cmds): Use add_prefix_command for "info".
5142 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5143
5144 2020-05-11 Tom Tromey <tromey@adacore.com>
5145
5146 * ada-lang.c (ada_value_primitive_field): Now public.
5147 * ada-lang.h (ada_value_primitive_field): Declare.
5148 * ada-valprint.c (print_field_values): Use
5149 ada_value_primitive_field for wrapper fields.
5150
5151 2020-05-11 Tom de Vries <tdevries@suse.de>
5152
5153 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5154 MODULE_DOMAIN.
5155
5156 2020-05-11 Tom de Vries <tdevries@suse.de>
5157
5158 PR symtab/25941
5159 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5160 with length 0, if not gdb-produced.
5161 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5162
5163 2020-05-09 Tom de Vries <tdevries@suse.de>
5164
5165 PR gdb/25955
5166 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5167 calculation.
5168
5169 2020-05-09 Tom Tromey <tom@tromey.com>
5170
5171 * top.c (server_command): Now bool.
5172 * top.h (server_command): Now bool.
5173
5174 2020-05-08 Tom Tromey <tromey@adacore.com>
5175
5176 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5177 already being processed.
5178
5179 2020-05-08 Tom Tromey <tom@tromey.com>
5180
5181 * printcmd.c (struct display) <next>: Remove.
5182 <display>: New constructor.
5183 <exp_string>: Now a std::string.
5184 <enabled_p>: Now a bool.
5185 (display_number): Move definition earlier.
5186 (displays): Rename from display_chain. Now a std::vector.
5187 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5188 (display_command): Update.
5189 (do_one_display, disable_display)
5190 (enable_disable_display_command, do_enable_disable_display):
5191 Update.
5192 (free_display): Remove.
5193 (clear_displays): Rewrite.
5194 (delete_display): Update.
5195 (map_display_numbers): Use function_view. Remove "data"
5196 parameter. Update.
5197 (do_delete_display): Remove.
5198 (undisplay_command): Update.
5199 (do_one_display, do_displays, disable_display)
5200 (info_display_command): Update.
5201 (do_enable_disable_display): Remove.
5202 (enable_disable_display_command)
5203 (clear_dangling_display_expressions): Update.
5204
5205 2020-05-08 Tom Tromey <tom@tromey.com>
5206
5207 * symtab.c (set_symbol_cache_size)
5208 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5209 (maintenance_print_symbol_cache_statistics): Update.
5210 * symmisc.c (print_symbol_bcache_statistics)
5211 (print_objfile_statistics, maintenance_print_objfiles)
5212 (maintenance_info_symtabs, maintenance_check_symtabs)
5213 (maintenance_expand_symtabs, maintenance_info_line_tables):
5214 Update.
5215 * symfile-debug.c (set_debug_symfile): Update.
5216 * source.c (forget_cached_source_info): Update.
5217 * python/python.c (gdbpy_progspaces): Update.
5218 * psymtab.c (maintenance_info_psymtabs): Update.
5219 * probe.c (parse_probes): Update.
5220 * linespec.c (iterate_over_all_matching_symtabs)
5221 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5222 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5223 * exec.c (exec_target::close): Update.
5224 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5225 * breakpoint.c (print_one_breakpoint_location)
5226 (create_longjmp_master_breakpoint)
5227 (create_std_terminate_master_breakpoint): Update.
5228 * progspace.c (program_spaces): Now a std::vector.
5229 (maybe_new_address_space): Update.
5230 (add_program_space): Remove.
5231 (program_space::program_space): Update.
5232 (remove_program_space): Update.
5233 (number_of_program_spaces): Remove.
5234 (print_program_space, update_address_spaces): Update.
5235 * progspace.h (program_spaces): Change type.
5236 (ALL_PSPACES): Remove.
5237 (number_of_program_spaces): Don't declare.
5238 (struct program_space) <next>: Remove.
5239
5240 2020-05-08 Tom Tromey <tom@tromey.com>
5241
5242 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5243 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5244 (enable_break): Update.
5245 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5246 (frv_fdpic_find_canonical_descriptor): Update.
5247 (frv_fetch_objfile_link_map): Update.
5248 * progspace.c (program_space::free_all_objfiles): Update.
5249 (program_space::solibs): New method.
5250 * progspace.h (struct program_space) <solibs>: New method.
5251 * solist.h (master_so_list): Don't declare.
5252 (ALL_SO_LIBS): Remove.
5253 * solib.h (so_list_head): Remove.
5254 (update_solib_list): Update comment.
5255 * solib.c (master_so_list): Remove.
5256 (solib_used, update_solib_list, solib_add)
5257 (info_sharedlibrary_command, clear_solib)
5258 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5259
5260 2020-05-08 Tom Tromey <tom@tromey.com>
5261
5262 * extension.c (extension_languages): Now a std::array.
5263 (ALL_EXTENSION_LANGUAGES): Remove.
5264 (get_ext_lang_defn, get_ext_lang_of_file)
5265 (eval_ext_lang_from_control_command): Update.
5266 (finish_ext_lang_initialization)
5267 (auto_load_ext_lang_scripts_for_objfile)
5268 (ext_lang_type_printers::ext_lang_type_printers)
5269 (apply_ext_lang_type_printers)
5270 (ext_lang_type_printers::~ext_lang_type_printers)
5271 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5272 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5273 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5274 (get_matching_xmethod_workers, ext_lang_colorize)
5275 (ext_lang_before_prompt): Update.
5276 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5277
5278 2020-05-08 Tom Tromey <tom@tromey.com>
5279
5280 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5281 overload.
5282 <swap_string, m_string>: Remove.
5283 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5284 Update.
5285 * stabsread.c (define_symbol, read_type): Update.
5286 * linespec.c (find_linespec_symbols): Update.
5287 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5288 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5289 * dbxread.c (read_dbx_symtab): Update.
5290 * cp-support.h (cp_canonicalize_string_full)
5291 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5292 Return unique_xmalloc_ptr.
5293 * cp-support.c (inspect_type): Update.
5294 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5295 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5296 Likewise.
5297 * c-typeprint.c (print_name_maybe_canonical): Update.
5298 * break-catch-throw.c (check_status_exception_catchpoint):
5299 Update.
5300
5301 2020-05-08 Tom de Vries <tdevries@suse.de>
5302
5303 * infrun.c (follow_fork): Copy current_line and current_symtab to
5304 child thread.
5305
5306 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5307
5308 * async-event.c (struct async_signal_handler, struct
5309 async_event_handler): Reformat, remove typedef.
5310
5311 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5312
5313 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5314 access thistype->main_type->dyn_prop_list directly.
5315
5316 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5317
5318 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5319 (remove_dyn_prop): Remove. Update all users to use
5320 type::remove_dyn_prop.
5321 * gdbtypes.c (remove_dyn_prop): Rename to...
5322 (type::remove_dyn_prop): ... this.
5323
5324 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5325
5326 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5327 (add_dyn_prop): Remove. Update all users to use
5328 type::add_dyn_prop.
5329 * gdbtypes.c (add_dyn_prop): Rename to...
5330 (type::add_dyn_prop): ... this.
5331
5332 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5333
5334 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5335 (get_dyn_prop): Remove. Update all users to use
5336 type::dyn_prop.
5337 * gdbtypes.c (get_dyn_prop): Rename to...
5338 (type::dyn_prop): ... this.
5339
5340 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5341
5342 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5343
5344 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5345
5346 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5347 instruction, skip it if it's there.
5348
5349 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5350
5351 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5352
5353 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5354
5355 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5356 * gdbtypes.c (recursive_dump_type): Remove use of
5357 TYPE_INCOMPLETE.
5358
5359 2020-05-03 Tom Tromey <tom@tromey.com>
5360
5361 * breakpoint.c (catch_command, tcatch_command): Remove.
5362 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5363 add_show_prefix_cmd.
5364 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5365 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5366 Remove.
5367 (add_internal_problem_command): Use add_basic_prefix_cmd,
5368 add_show_prefix_cmd.
5369 * mips-tdep.c (set_mipsfpu_command): Remove.
5370 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5371 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5372 (_initialize_index_cache): Use add_basic_prefix_cmd.
5373 * memattr.c (dummy_cmd): Remove.
5374 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5375 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5376 (_initialize_tui_win): Use add_basic_prefix_cmd,
5377 add_show_prefix_cmd.
5378 * cli/cli-logging.c (set_logging_command): Remove.
5379 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5380 add_show_prefix_cmd.
5381 (show_logging_command): Remove.
5382 * target.c (target_command): Remove.
5383 (add_target): Use add_basic_prefix_cmd.
5384
5385 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5386
5387 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5388
5389 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5390
5391 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5392 info_command.
5393
5394 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5395
5396 * nbsd-nat.c (nbsd_enable_proc_events)
5397 (nbsd_nat_target::post_startup_inferior): Add.
5398 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5399 (nbsd_nat_target::update_thread_list): Rewrite.
5400 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5401 "PTRACE_LWP_CREATE".
5402 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5403
5404 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5405
5406 * stack.c (_initialize_stack): Remove duplicated creation
5407 of "frame" command and "f" alias.
5408
5409 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5410
5411 PR gdb/18706
5412 * gdbtypes.c (check_typedef): Calculate size of array of
5413 stubbed type.
5414
5415 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5416
5417 PR gdb/15559
5418 * i386-tdep.c (i386_push_dummy_call): Call
5419 i386_thiscall_push_dummy_call.
5420 (i386_thiscall_push_dummy_call): New function.
5421 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5422 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5423 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5424
5425 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5426
5427 * gdbarch.sh (do_read): Add shellcheck disable directive for
5428 warning SC2162.
5429
5430 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5431
5432 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5433 "referenced but not assigned" warning.
5434
5435 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5436
5437 * gdbarch.sh: Remove code that sets fallbackdefault.
5438
5439 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5440
5441 * gdbarch.sh: Use shell operators && and || instead of
5442 -a and -o.
5443
5444 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5445
5446 * gdbarch.sh: Use $(...) instead of `...`.
5447
5448 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5449
5450 * gdbarch.sh: Use double quotes around variables.
5451
5452 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5453
5454 * gdbarch.sh: Use %s with printf, instead of variables in the
5455 format string.
5456
5457 2020-04-29 Tom Tromey <tromey@adacore.com>
5458
5459 PR ada/25875:
5460 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5461 type fields here.
5462 (read_enumeration_type): Call
5463 update_enumeration_type_from_children later. Update comments.
5464 (process_enumeration_scope): Don't create type fields.
5465
5466 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5467
5468 * nbsd-tdep.c: Include "xml-syscall.h".
5469 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5470
5471 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5472
5473 * nbsd-nat.c: Include "sys/wait.h".
5474 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5475 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5476 (nbsd_nat_target::remove_exec_catchpoint)
5477 (nbsd_nat_target::set_syscall_catchpoint): Add.
5478 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5479 (nbsd_nat_target::insert_exec_catchpoint)
5480 (nbsd_nat_target::remove_exec_catchpoint)
5481 (nbsd_nat_target::set_syscall_catchpoint): Add.
5482 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5483 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5484 `nbsd_get_syscall_number'.
5485
5486 2020-04-29 Tom Tromey <tom@tromey.com>
5487
5488 * stack.c (print_block_frame_labels): Remove.
5489
5490 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5491
5492 PR gdb/17320
5493 * ada-valprint.c (val_print_packed_array_elements): Move array
5494 end bracket to new line.
5495 (ada_val_print_string): Remove extra spaces before first array
5496 element.
5497 * c-valprint.c (c_value_print_array): Likewise.
5498 * m2-valprint.c (m2_print_array_contents): Likewise.
5499 (m2_value_print_inner): Likewise.
5500 * p-valprint.c (pascal_value_print_inner): Likewise.
5501 * valprint.c (generic_val_print_array): Likewise.
5502 (value_print_array_elements): Move first array element and array
5503 end bracket to new line.
5504
5505 2020-04-29 Tom de Vries <tdevries@suse.de>
5506
5507 PR symtab/25889
5508 * linespec.c (find_method): Fix ix calculation.
5509
5510 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5511
5512 * syscalls/update-netbsd.sh: New file.
5513 * syscalls/netbsd.xml: Regenerate.
5514 * data-directory/Makefile.in: Register `netbsd.xml' in
5515 `SYSCALLS_FILES'.
5516
5517 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5518
5519 * syscalls/update-freebsd.sh: Add double quotes.
5520
5521 2020-04-28 Tom Tromey <tom@tromey.com>
5522
5523 * NEWS: Update.
5524 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5525 (cmdpy_init): Allow class_tui.
5526
5527 2020-04-28 Mark Williams <mark@myosotissp.com>
5528
5529 PR gdb/24480
5530 * dwarf2read.c: Add missing assingments to list_in_scope when
5531 start_symtab was already called.
5532
5533 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5534
5535 PR gdb/25881
5536 * dwarf2/read.c (offset_map_type): Use
5537 gdb:hash_enum<sect_offset> as hash function.
5538
5539 2020-04-28 Tom de Vries <tdevries@suse.de>
5540
5541 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5542 with DW_AT_signature.
5543
5544 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5545
5546 * configure.ac: Remove check for fs_base/gs_base in
5547 user_regs_struct.
5548 * configure: Re-generate.
5549 * config.in: Re-generate.
5550 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5551 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5552 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5553
5554 2020-04-27 Luis Machado <luis.machado@linaro.org>
5555
5556 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5557 problematic inline frame unwinding situation.
5558 * frame.c (frame_id_computed_p): New function.
5559 * frame.h (frame_id_computed_p): New prototype.
5560
5561 2020-04-26 Tom Tromey <tom@tromey.com>
5562
5563 * command.h (enum command_class) <class_pseudo>: Remove.
5564
5565 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5566
5567 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5568 and whitespace.
5569
5570 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5571
5572 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5573 `PT_GET_PROCESS_STATE' block.
5574
5575 2020-04-24 Tom Tromey <tom@tromey.com>
5576
5577 * symtab.h (symbol_get_demangled_name): Don't declare.
5578 * symtab.c (symbol_get_demangled_name): Remove.
5579 (general_symbol_info::natural_name)
5580 (general_symbol_info::demangled_name): Update.
5581
5582 2020-04-24 Tom Tromey <tom@tromey.com>
5583
5584 PR rust/25025:
5585 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5586
5587 2020-04-24 Tom Tromey <tom@tromey.com>
5588
5589 PR symtab/12707:
5590 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5591 exists.
5592 (new_symbol): Likewise.
5593 * compile/compile-object-load.c (get_out_value_type): Use
5594 symbol_matches_search_name.
5595
5596 2020-04-24 Tom Tromey <tom@tromey.com>
5597
5598 * dwarf2/read.c (add_partial_symbol): Do not call
5599 compute_and_set_names.
5600
5601 2020-04-24 Tom Tromey <tom@tromey.com>
5602
5603 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5604 overload.
5605
5606 2020-04-24 Tom Tromey <tom@tromey.com>
5607
5608 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5609 (add_psymbol_to_list): New overload. Make old overload call new
5610 one.
5611 * psympriv.h (add_psymbol_to_list): New overload.
5612
5613 2020-04-24 Tom Tromey <tom@tromey.com>
5614
5615 * dwarf2/read.c (partial_die_info::read) <case
5616 DW_AT_linkage_name>: Use value_as_string.
5617 (dwarf2_string_attr): Use value_as_string.
5618 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5619 method.
5620 * dwarf2/attribute.c (attribute::value_as_string): New method.
5621
5622 2020-04-24 Tom Tromey <tom@tromey.com>
5623
5624 * symtab.c (general_symbol_info::natural_name)
5625 (general_symbol_info::demangled_name): Check for language_rust.
5626
5627 2020-04-24 Tom Tromey <tom@tromey.com>
5628
5629 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5630 (dwarf2_physname): ... from here.
5631 (partial_die_info::read): Add Rust "{" hack.
5632
5633 2020-04-24 Tom Tromey <tom@tromey.com>
5634
5635 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5636 method.
5637 (symbol_set_demangled_name): Don't declare.
5638 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5639 symbol_set_demangled_name.
5640 (general_symbol_info::set_language)
5641 (general_symbol_info::compute_and_set_names): Update.
5642 * minsyms.c (minimal_symbol_reader::install): Update.
5643 * dwarf2/read.c (new_symbol): Update.
5644
5645 2020-04-24 Tom Tromey <tromey@adacore.com>
5646
5647 PR python/23662:
5648 * python/py-type.c (convert_field): Handle
5649 FIELD_LOC_KIND_DWARF_BLOCK.
5650 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5651 (typy_get_dynamic): Nw function.
5652 (type_object_getset): Add "dynamic".
5653 * NEWS: Add entry.
5654
5655 2020-04-24 Tom Tromey <tromey@adacore.com>
5656
5657 * ada-typeprint.c (print_choices, print_variant_part)
5658 (print_record_field_types_dynamic): New functions.
5659 (print_record_field_types): Use print_record_field_types_dynamic.
5660
5661 2020-04-24 Tom Tromey <tromey@adacore.com>
5662
5663 * dwarf2/read.c (handle_data_member_location): New overload.
5664 (dwarf2_add_field): Use it.
5665 (decode_locdesc): Add "computed" parameter. Update comment.
5666 * gdbtypes.c (is_dynamic_type_internal): Also look for
5667 FIELD_LOC_KIND_DWARF_BLOCK.
5668 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5669 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5670 virtual base classes.
5671 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5672 FIELD_LOC_KIND_DWARF_BLOCK.
5673
5674 2020-04-24 Tom Tromey <tromey@adacore.com>
5675
5676 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5677 * gdbtypes.c (is_dynamic_type_internal): Check
5678 TYPE_HAS_DYNAMIC_LENGTH.
5679 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5680 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5681 New macros.
5682 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5683 constant.
5684
5685 2020-04-24 Tom Tromey <tromey@adacore.com>
5686
5687 * dwarf2/read.c (struct variant_field): Rewrite.
5688 (struct variant_part_builder): New.
5689 (struct nextfield): Remove "variant" field. Add "offset".
5690 (struct field_info): Add "current_variant_part" and
5691 "variant_parts".
5692 (alloc_discriminant_info): Remove.
5693 (alloc_rust_variant): New function.
5694 (quirk_rust_enum): Update.
5695 (dwarf2_add_field): Set "offset" member. Don't handle
5696 DW_TAG_variant_part.
5697 (offset_map_type): New typedef.
5698 (convert_variant_range, create_one_variant)
5699 (create_one_variant_part, create_variant_parts)
5700 (add_variant_property): New functions.
5701 (dwarf2_attach_fields_to_type): Call add_variant_property.
5702 (read_structure_type): Don't handle DW_TAG_variant_part.
5703 (handle_variant_part, handle_variant): New functions.
5704 (handle_struct_member_die): Use them.
5705 (process_structure_scope): Don't handle variant parts.
5706 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5707 (struct discriminant_info): Remove.
5708 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5709 (struct main_type) <flag_discriminated_union>: Remove.
5710 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5711 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5712 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5713 Update.
5714 * valops.c (value_union_variant): Remove.
5715 * value.h (value_union_variant): Don't declare.
5716
5717 2020-04-24 Tom Tromey <tromey@adacore.com>
5718
5719 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5720 (ada_value_primitive_packed_val): Update.
5721 * ada-valprint.c (ada_value_print_1): Update.
5722 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5723 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5724 just an address. Use evaluate_for_locexpr_baton.
5725 (dwarf2_evaluate_property): Update.
5726 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5727 array_view.
5728 * findvar.c (default_read_var_value): Update.
5729 * gdbtypes.c (compute_variant_fields_inner)
5730 (resolve_dynamic_type_internal): Update.
5731 (resolve_dynamic_type): Change type of valaddr parameter.
5732 * gdbtypes.h (resolve_dynamic_type): Update.
5733 * valarith.c (value_subscripted_rvalue): Update.
5734 * value.c (value_from_contents_and_address): Update.
5735
5736 2020-04-24 Tom Tromey <tromey@adacore.com>
5737
5738 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5739 "push_initial_value" parameter.
5740 (dwarf2_evaluate_property): Likewise.
5741 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5742
5743 2020-04-24 Tom Tromey <tromey@adacore.com>
5744
5745 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5746 (variant::matches, compute_variant_fields_recurse)
5747 (compute_variant_fields_inner, compute_variant_fields): New
5748 functions.
5749 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5750 Use resolved_type after type is made.
5751 (operator==): Add new cases.
5752 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5753 (struct discriminant_range, struct variant, struct variant_part):
5754 New.
5755 (union dynamic_prop_data) <variant_parts, original_type>: New
5756 members.
5757 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5758 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5759 constants.
5760 * value.c (unpack_bits_as_long): Now public.
5761 * value.h (unpack_bits_as_long): Declare.
5762
5763 2020-04-24 Tom Tromey <tromey@adacore.com>
5764
5765 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5766 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5767
5768 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5769
5770 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5771
5772 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5773
5774 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5775 (remove_fork_catchpoint, post_startup_inferior)
5776 (post_attach): Move...
5777 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5778 (remove_fork_catchpoint, post_startup_inferior)
5779 (post_attach): ...here.
5780 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5781 (remove_fork_catchpoint, post_startup_inferior)
5782 (post_attach): Move...
5783 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5784 (remove_fork_catchpoint, post_startup_inferior)
5785 (post_attach): ...here.
5786
5787 2020-04-24 Tom Tromey <tromey@adacore.com>
5788
5789 * nat/windows-nat.h (struct windows_thread_info)
5790 <pc_adjusted>: New member.
5791 * windows-nat.c (windows_fetch_one_register): Check
5792 pc_adjusted.
5793 (windows_nat_target::get_windows_debug_event)
5794 (windows_nat_target::wait): Set pc_adjusted.
5795
5796 2020-04-24 Tom de Vries <tdevries@suse.de>
5797
5798 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5799 Run gdb-add-index inside temp dir.
5800
5801 2020-04-23 Tom Tromey <tromey@adacore.com>
5802
5803 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5804 in loop.
5805
5806 2020-04-23 Luis Machado <luis.machado@linaro.org>
5807
5808 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5809 get_frame_register instead of gdbarch_unwind_pc.
5810
5811 2020-04-23 Tom de Vries <tdevries@suse.de>
5812
5813 * symtab.c (lookup_global_symbol): Prefer def over decl.
5814
5815 2020-04-23 Tom de Vries <tdevries@suse.de>
5816
5817 PR symtab/25807
5818 * block.c (best_symbol, better_symbol): Promote to external.
5819 * block.h (best_symbol, better_symbol): Declare.
5820 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5821 decl.
5822
5823 2020-04-23 Tom Tromey <tromey@adacore.com>
5824
5825 PR ada/25837:
5826 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5827 "const char *", not a "const std::string &".
5828 <name_and_matcher::operator==>: Update.
5829 * unittests/lookup_name_info-selftests.c: Change type of
5830 "result".
5831
5832 2020-04-23 Tom Tromey <tom@tromey.com>
5833
5834 * inferior.h (iterate_over_inferiors): Don't declare.
5835 * inferior.c (iterate_over_inferiors): Remove.
5836 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5837 Remove.
5838 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5839 use iterate_over_inferiors.
5840 (darwin_resume_inferior_it)
5841 (struct resume_inferior_threads_param)
5842 (darwin_resume_inferior_threads_it): Remove.
5843 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5844
5845 2020-04-23 Tom de Vries <tdevries@suse.de>
5846
5847 * blockframe.c (find_pc_partial_function): Use
5848 find_pc_sect_compunit_symtab rather than
5849 objfile->sf->qf->find_pc_sect_compunit_symtab.
5850
5851 2020-04-22 Tom de Vries <tdevries@suse.de>
5852
5853 PR symtab/25764
5854 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5855 in psymtabs.
5856
5857 2020-04-22 Tom de Vries <tdevries@suse.de>
5858
5859 PR symtab/25801
5860 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5861 symtabs.
5862
5863 2020-04-22 Tom de Vries <tdevries@suse.de>
5864
5865 PR symtab/25700
5866 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5867 CU if already created.
5868
5869 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5870
5871 * infrun.c (displaced_step_fixup): Switch to the event_thread
5872 before calling displaced_step_restore, not after.
5873
5874 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5875
5876 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5877 its inferior is not recorded by us.
5878 (record_btrace_target_open): Replace call to
5879 all_non_exited_threads () with call to current_inferior
5880 ()->non_exited_threads ().
5881 (record_btrace_target::stop_recording): Likewise.
5882 (record_btrace_target::close): Likewise.
5883 (record_btrace_target::wait): Likewise.
5884 (record_btrace_target::record_stop_replaying): Likewise.
5885
5886 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5887
5888 * btrace.c (btrace_enable): Throw an error on double enables and
5889 when enabling recording fails.
5890 (btrace_disable): Throw an error if the thread is not recorded.
5891
5892 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5893
5894 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5895 request if we do not have a thread_info.
5896
5897 2020-04-21 Tom de Vries <tdevries@suse.de>
5898
5899 PR gdb/25471
5900 * thread.c
5901 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5902 exception in get_frame_id.
5903
5904 2020-04-20 Tom Tromey <tromey@adacore.com>
5905
5906 * python/python.c (struct gdbpy_event): Mark move constructor as
5907 noexcept.
5908 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5909 constructor as noexcept.
5910 * completer.h (struct completion_result): Mark move constructor as
5911 noexcept.
5912 * completer.c (completion_result::completion_result): Use
5913 initialization style. Don't call reset_match_list.
5914
5915 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5916
5917 * MAINTAINERS (Write After Approval): Add myself.
5918
5919 2020-04-18 Tom Tromey <tom@tromey.com>
5920
5921 * windows-tdep.c (init_w32_command_list)
5922 (w32_prefix_command_valid): Restore.
5923 (_initialize_windows_tdep): Call init_w32_command_list.
5924
5925 2020-04-18 Tom Tromey <tom@tromey.com>
5926
5927 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5928 * value.c (value_fn_field): Update.
5929 * valops.c (find_function_in_inferior)
5930 (value_allocate_space_in_inferior): Update.
5931 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5932 Update.
5933 * tui/tui-source.c (tui_source_window::set_contents): Update.
5934 * symtab.c (lookup_global_or_static_symbol)
5935 (find_function_start_sal_1, skip_prologue_sal)
5936 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5937 * symmisc.c (dump_msymbols, dump_symtab_1)
5938 (maintenance_print_one_line_table): Update.
5939 * symfile.c (init_entry_point_info, section_is_mapped)
5940 (list_overlays_command, simple_read_overlay_table)
5941 (simple_overlay_update_1): Update.
5942 * stap-probe.c (handle_stap_probe): Update.
5943 * stabsread.c (dbx_init_float_type, define_symbol)
5944 (read_one_struct_field, read_enum_type, read_range_type): Update.
5945 * source.c (info_line_command): Update.
5946 * python/python.c (gdbpy_source_objfile_script)
5947 (gdbpy_execute_objfile_script): Update.
5948 * python/py-type.c (save_objfile_types): Update.
5949 * python/py-objfile.c (py_free_objfile): Update.
5950 * python/py-inferior.c (python_new_objfile): Update.
5951 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5952 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5953 (maintenance_check_psymtabs): Update.
5954 * printcmd.c (info_address_command): Update.
5955 * objfiles.h (struct objfile) <arch>: New method, from
5956 get_objfile_arch.
5957 (get_objfile_arch): Don't declare.
5958 * objfiles.c (get_objfile_arch): Remove.
5959 (filter_overlapping_sections): Update.
5960 * minsyms.c (msymbol_is_function): Update.
5961 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5962 (output_nondebug_symbol): Update.
5963 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5964 (mdebug_expand_psymtab): Update.
5965 * machoread.c (macho_add_oso_symfile): Update.
5966 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5967 Update.
5968 * linux-fork.c (checkpoint_command): Update.
5969 * linespec.c (convert_linespec_to_sals): Update.
5970 * jit.c (finalize_symtab): Update.
5971 * infrun.c (insert_exception_resume_from_probe): Update.
5972 * ia64-tdep.c (ia64_find_unwind_table): Update.
5973 * hppa-tdep.c (internalize_unwinds): Update.
5974 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5975 Update.
5976 * gcore.c (call_target_sbrk): Update.
5977 * elfread.c (record_minimal_symbol, elf_symtab_read)
5978 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5979 (elf_gnu_ifunc_resolve_by_got): Update.
5980 * dwarf2/read.c (create_addrmap_from_index)
5981 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5982 (read_debug_names_from_section)
5983 (process_psymtab_comp_unit_reader, add_partial_symbol)
5984 (add_partial_subprogram, process_full_comp_unit)
5985 (read_file_scope, read_func_scope, read_lexical_block_scope)
5986 (read_call_site_scope, dwarf2_ranges_read)
5987 (dwarf2_record_block_ranges, dwarf2_add_field)
5988 (mark_common_block_symbol_computed, read_tag_pointer_type)
5989 (read_tag_string_type, dwarf2_init_float_type)
5990 (dwarf2_init_complex_target_type, read_base_type)
5991 (partial_die_info::read, partial_die_info::read)
5992 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5993 (dwarf2_fetch_die_loc_sect_off): Update.
5994 * dwarf2/loc.c (dwarf2_find_location_expression)
5995 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5996 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5997 (dwarf2_loc_desc_get_symbol_read_needs)
5998 (locexpr_describe_location_piece, locexpr_describe_location_1)
5999 (loclist_describe_location): Update.
6000 * dwarf2/index-write.c (write_debug_names): Update.
6001 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6002 * dtrace-probe.c (dtrace_process_dof): Update.
6003 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6004 (process_one_symbol): Update.
6005 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6006 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6007 (coff_read_enum_type): Update.
6008 * cli/cli-cmds.c (edit_command, list_command): Update.
6009 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6010 * breakpoint.c (create_overlay_event_breakpoint)
6011 (create_longjmp_master_breakpoint)
6012 (create_std_terminate_master_breakpoint)
6013 (create_exception_master_breakpoint, get_sal_arch): Update.
6014 * block.c (block_gdbarch): Update.
6015 * annotate.c (annotate_source_line): Update.
6016
6017 2020-04-17 Tom Tromey <tromey@adacore.com>
6018
6019 * auto-load.c (show_auto_load_cmd): Remove.
6020 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6021 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6022 (maintenance_print_arc_command): Remove.
6023 * tui/tui-win.c (tui_command): Remove.
6024 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6025 * tui/tui-layout.c (tui_layout_command): Remove.
6026 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6027 * python/python.c (user_set_python, user_show_python): Remove.
6028 (_initialize_python): Use add_basic_prefix_cmd,
6029 add_show_prefix_cmd.
6030 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6031 (install_gdb_commands): Use add_basic_prefix_cmd,
6032 add_show_prefix_cmd.
6033 (info_guile_command): Remove.
6034 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6035 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6036 add_show_prefix_cmd.
6037 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6038 Remove do_set and do_show parameters.
6039 * cli/cli-style.c (set_style, show_style): Remove.
6040 (_initialize_cli_style): Use add_basic_prefix_cmd,
6041 add_show_prefix_cmd.
6042 (cli_style_option::add_setshow_commands): Remove do_set and
6043 do_show parameters.
6044 (cli_style_option::add_setshow_commands): Use
6045 add_basic_prefix_cmd, add_show_prefix_cmd.
6046 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6047 (set_style_name): Remove.
6048 * cli/cli-dump.c (dump_command, append_command): Remove.
6049 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6050 (tekhex_dump_command, binary_dump_command)
6051 (binary_append_command): Remove.
6052 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6053 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6054 (init_w32_command_list): Remove; move into ...
6055 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6056 * valprint.c (set_print, show_print, set_print_raw)
6057 (show_print_raw): Remove.
6058 (_initialize_valprint): Use add_basic_prefix_cmd,
6059 add_show_prefix_cmd.
6060 * typeprint.c (set_print_type, show_print_type): Remove.
6061 (_initialize_typeprint): Use add_basic_prefix_cmd,
6062 add_show_prefix_cmd.
6063 * record.c (set_record_command, show_record_command): Remove.
6064 (_initialize_record): Use add_basic_prefix_cmd,
6065 add_show_prefix_cmd.
6066 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6067 add_show_prefix_cmd.
6068 (info_command, show_command, set_debug, show_debug): Remove.
6069 * top.h (set_history, show_history): Don't declare.
6070 * top.c (set_history, show_history): Remove.
6071 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6072 (unset_tdesc_cmd): Remove.
6073 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6074 add_show_prefix_cmd.
6075 * symtab.c (info_module_command): Remove.
6076 (_initialize_symtab): Use add_basic_prefix_cmd.
6077 * symfile.c (overlay_command): Remove.
6078 (_initialize_symfile): Use add_basic_prefix_cmd.
6079 * sparc64-tdep.c (info_adi_command): Remove.
6080 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6081 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6082 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6083 add_show_prefix_cmd.
6084 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6085 (_initialize_serial): Use add_basic_prefix_cmd,
6086 add_show_prefix_cmd.
6087 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6088 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6089 add_show_prefix_cmd.
6090 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6091 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6092 add_show_prefix_cmd.
6093 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6094 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6095 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6096 add_show_prefix_cmd.
6097 * remote.c (remote_command, set_remote_cmd): Remove.
6098 (_initialize_remote): Use add_basic_prefix_cmd.
6099 * record-full.c (set_record_full_command)
6100 (show_record_full_command): Remove.
6101 (_initialize_record_full): Use add_basic_prefix_cmd,
6102 add_show_prefix_cmd.
6103 * record-btrace.c (cmd_set_record_btrace)
6104 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6105 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6106 (cmd_show_record_btrace_pt): Remove.
6107 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6108 add_show_prefix_cmd.
6109 * ravenscar-thread.c (set_ravenscar_command)
6110 (show_ravenscar_command): Remove.
6111 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6112 add_show_prefix_cmd.
6113 * mips-tdep.c (show_mips_command, set_mips_command)
6114 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6115 add_show_prefix_cmd.
6116 * maint.c (maintenance_command, maintenance_info_command)
6117 (maintenance_check_command, maintenance_print_command)
6118 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6119 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6120 add_show_prefix_cmd.
6121 (show_per_command_cmd): Remove.
6122 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6123 Remove.
6124 (maintenance_show_test_settings_cmd): Remove.
6125 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6126 add_show_prefix_cmd.
6127 * maint-test-options.c (maintenance_test_options_command):
6128 Remove.
6129 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6130 * macrocmd.c (macro_command): Remove
6131 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6132 * language.c (set_check, show_check): Remove.
6133 (_initialize_language): Use add_basic_prefix_cmd,
6134 add_show_prefix_cmd.
6135 * infcmd.c (unset_command): Remove.
6136 (_initialize_infcmd): Use add_basic_prefix_cmd.
6137 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6138 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6139 add_show_prefix_cmd.
6140 * go32-nat.c (go32_info_dos_command): Remove.
6141 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6142 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6143 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6144 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6145 (_initialize_frame): Use add_basic_prefix_cmd,
6146 add_show_prefix_cmd.
6147 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6148 (_initialize_dcache): Use add_basic_prefix_cmd,
6149 add_show_prefix_cmd.
6150 * cp-support.c (maint_cplus_command): Remove.
6151 (_initialize_cp_support): Use add_basic_prefix_cmd.
6152 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6153 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6154 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6155 add_basic_prefix_cmd, add_show_prefix_cmd.
6156 * breakpoint.c (save_command): Remove.
6157 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6158 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6159 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6160 add_show_prefix_cmd.
6161 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6162 (set_ada_command, show_ada_command): Remove.
6163 (_initialize_ada_language): Use add_basic_prefix_cmd,
6164 add_show_prefix_cmd.
6165 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6166
6167 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6168
6169 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6170 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6171
6172 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6173
6174 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6175 warning messages.
6176
6177 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6178
6179 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6180 import table is not at beginning of .idata section.
6181
6182 2020-04-16 Pedro Alves <palves@redhat.com>
6183
6184 * inferior.c (delete_inferior): Use delete operator directly
6185 instead of delete_program_space.
6186 * progspace.c (add_program_space): New, factored out from
6187 program_space::program_space.
6188 (remove_program_space): New, factored out from
6189 delete_program_space.
6190 (program_space::program_space): Remove intro comment. Rewrite.
6191 (program_space::~program_space): Remove intro comment. Call
6192 remove_program_space.
6193 (delete_program_space): Delete.
6194 * progspace.h (program_space::program_space): Make explicit. Move
6195 intro comment here, adjusted.
6196 (program_space::~program_space): Move intro comment here,
6197 adjusted.
6198 (delete_program_space): Remove.
6199
6200 2020-04-16 Tom Tromey <tromey@adacore.com>
6201
6202 * windows-nat.c (windows_nat::handle_access_violation): New
6203 function.
6204 * nat/windows-nat.h (handle_access_violation): Declare.
6205 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6206 windows-nat.c. Call handle_access_violation.
6207
6208 2020-04-16 Tom de Vries <tdevries@suse.de>
6209
6210 PR symtab/25791
6211 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6212 CUs without psymtab.
6213
6214 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6215
6216 * python/python.c (do_start_initialization): Don't call
6217 PyEval_InitThreads for Python 3.9 and beyond.
6218
6219 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6220
6221 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6222 thread functions.
6223 (obsd_nat_target::wait): Likewise.
6224
6225 2020-04-15 Tom Tromey <tromey@adacore.com>
6226
6227 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6228 (DEBUG_EXCEPT): Use debug_printf.
6229
6230 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6231
6232 * completer.c (class completion_tracker::completion_hash_entry)
6233 <hash_name>: New member function.
6234 (completion_tracker::discard_completions): New callback to hash a
6235 completion_hash_entry, pass this to htab_create_alloc.
6236
6237 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6238
6239 * windows-nat.c (windows_make_so): Warn rather than stopping with
6240 an error if realpath() fails.
6241
6242 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6243
6244 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6245 (nbsd_nat_target::info_proc): Add do_status.
6246
6247 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6248 Tom de Vries <tdevries@suse.de>
6249
6250 PR symtab/25718
6251 * psympriv.h (struct partial_symtab::read_symtab)
6252 (struct partial_symtab::expand_psymtab)
6253 (struct partial_symtab::read_dependencies): Update comments.
6254 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6255 read_symtab for includer.
6256 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6257 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6258 (struct dwarf2_include_psymtab::m_readin): Remove.
6259 (struct dwarf2_include_psymtab::includer): New member function.
6260 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6261
6262 2020-04-14 Tom de Vries <tdevries@suse.de>
6263
6264 PR symtab/25720
6265 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6266 with NULL symbol_matcher and lookup_name.
6267 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6268 and lookup_name.
6269 * dwarf2/read.c (dw2_expand_symtabs_matching)
6270 (dw2_debug_names_expand_symtabs_matching): Same.
6271 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6272 Make lookup_name a pointer. Update comment.
6273 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6274 lookup_name being a pointer.
6275 * symfile.c (expand_symtabs_matching): Same.
6276 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6277 * linespec.c (iterate_over_all_matching_symtabs): Same.
6278
6279 2020-04-13 Tom Tromey <tom@tromey.com>
6280
6281 * run-on-main-thread.c: Update include.
6282 * unittests/main-thread-selftests.c: Update include.
6283 * tui/tui-win.c: Update include.
6284 * tui/tui-io.c: Update include.
6285 * tui/tui-interp.c: Update include.
6286 * tui/tui-hooks.c: Update include.
6287 * top.h: Update include.
6288 * top.c: Update include.
6289 * ser-base.c: Update include.
6290 * remote.c: Update include.
6291 * remote-notif.c: Update include.
6292 * remote-fileio.c: Update include.
6293 * record-full.c: Update include.
6294 * record-btrace.c: Update include.
6295 * python/python.c: Update include.
6296 * posix-hdep.c: Update include.
6297 * mingw-hdep.c: Update include.
6298 * mi/mi-main.c: Update include.
6299 * mi/mi-interp.c: Update include.
6300 * main.c: Update include.
6301 * linux-nat.c: Update include.
6302 * interps.c: Update include.
6303 * infrun.c: Update include.
6304 * inf-loop.c: Update include.
6305 * event-top.c: Update include.
6306 * event-loop.c: Move to ../gdbsupport/.
6307 * event-loop.h: Move to ../gdbsupport/.
6308 * async-event.h: Update include.
6309 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6310
6311 2020-04-13 Tom Tromey <tom@tromey.com>
6312
6313 * tui/tui-win.c: Include async-event.h.
6314 * remote.c: Include async-event.h.
6315 * remote-notif.c: Include async-event.h.
6316 * record-full.c: Include async-event.h.
6317 * record-btrace.c: Include async-event.h.
6318 * infrun.c: Include async-event.h.
6319 * event-top.c: Include async-event.h.
6320 * event-loop.h: Move some declarations to async-event.h.
6321 * event-loop.c: Don't include ser-event.h or top.h. Move some
6322 code to async-event.c.
6323 * async-event.h: New file.
6324 * async-event.c: New file.
6325 * Makefile.in (COMMON_SFILES): Add async-event.c.
6326 (HFILES_NO_SRCDIR): Add async-event.h.
6327
6328 2020-04-13 Tom Tromey <tom@tromey.com>
6329
6330 * utils.c (flush_streams): New function.
6331 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6332
6333 2020-04-13 Tom Tromey <tom@tromey.com>
6334
6335 * event-loop.c (handle_file_event): Use warning, not
6336 printf_unfiltered.
6337
6338 2020-04-13 Tom Tromey <tom@tromey.com>
6339
6340 * event-loop.c: Include <chrono>.
6341
6342 2020-04-13 Tom Tromey <tom@tromey.com>
6343
6344 * gdb_select.h: Move to ../gdbsupport/.
6345 * event-loop.c: Update include path.
6346 * top.c: Update include path.
6347 * ser-base.c: Update include path.
6348 * ui-file.c: Update include path.
6349 * ser-tcp.c: Update include path.
6350 * guile/scm-ports.c: Update include path.
6351 * posix-hdep.c: Update include path.
6352 * ser-unix.c: Update include path.
6353 * gdb_usleep.c: Update include path.
6354 * mingw-hdep.c: Update include path.
6355 * inflow.c: Update include path.
6356 * infrun.c: Update include path.
6357 * event-top.c: Update include path.
6358
6359 2020-04-13 Tom Tromey <tom@tromey.com>
6360
6361 * configure: Rebuild.
6362 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6363
6364 2020-04-13 Tom Tromey <tom@tromey.com>
6365
6366 * event-loop.h (start_event_loop): Don't declare.
6367 * event-loop.c (start_event_loop): Move...
6368 * main.c (start_event_loop): ...here. Now static.
6369
6370 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6371
6372 * MAINTAINERS: Update my email address.
6373
6374 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6375
6376 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6377 IP_ALL.
6378
6379 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6380
6381 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6382 (nbsd_nat_target::info_proc): Add do_cmdline.
6383
6384 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6385
6386 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6387 (nbsd_nat_target::info_proc): Add do_cwd.
6388
6389 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6390
6391 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6392
6393 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6394
6395 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6396 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6397 (nbsd_nat_target::info_proc): New functions.
6398 * nbsd-nat.c (kinfo_get_vmmap): New function.
6399 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6400 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6401 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6402 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6403 functions.
6404 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6405 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6406 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6407 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6408 (KINFO_VME_FLAG_GROWS_DOWN): New.
6409
6410 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6411
6412 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6413 bit shift.
6414
6415 2020-04-10 Tom Tromey <tromey@adacore.com>
6416
6417 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6418
6419 2020-04-10 Tom Tromey <tromey@adacore.com>
6420
6421 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6422 separate debug files.
6423
6424 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6425
6426 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6427 Move to...
6428 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6429 ... here.
6430 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6431 Check for STATUS_WX86_BREAKPOINT.
6432 (windows_nat_target::wait): Same.
6433
6434 2020-04-10 Tom de Vries <tdevries@suse.de>
6435
6436 PR cli/25808
6437 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6438
6439 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6440
6441 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6442 (Write After Approval): Remove Tom de Vries.
6443
6444 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6445
6446 revert partially:
6447 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6448
6449 * buildsym.c (record_line): Fix undefined behavior and preserve
6450 lines at eof.
6451
6452 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6453
6454 * auxv.h (svr4_auxv_parse): New.
6455 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6456 and generic_auxv_parse.
6457 (svr4_auxv_parse): Add.
6458 * obsd-tdep.c: Include "auxv.h".
6459 (obsd_auxv_parse): Remove.
6460 (obsd_init_abi): Remove comment.
6461 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6462 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6463 * nbsd-tdep.c: Include "auxv.h".
6464 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6465
6466 2020-04-08 Tom Tromey <tromey@adacore.com>
6467
6468 * nat/windows-nat.h (last_wait_event): Don't declare.
6469 (wait_for_debug_event): Update comment.
6470 * nat/windows-nat.c (last_wait_event): Now static.
6471
6472 2020-04-08 Tom Tromey <tromey@adacore.com>
6473
6474 * windows-nat.c (wait_for_debug_event): Move to
6475 nat/windows-nat.c.
6476 * nat/windows-nat.h (wait_for_debug_event): Declare.
6477 * nat/windows-nat.c (wait_for_debug_event): Move from
6478 windows-nat.c. No longer static.
6479
6480 2020-04-08 Tom Tromey <tromey@adacore.com>
6481
6482 * windows-nat.c (get_windows_debug_event): Use
6483 fetch_pending_stop.
6484 * nat/windows-nat.h (fetch_pending_stop): Declare.
6485 * nat/windows-nat.c (fetch_pending_stop): New function.
6486
6487 2020-04-08 Tom Tromey <tromey@adacore.com>
6488
6489 * windows-nat.c (windows_continue): Use matching_pending_stop and
6490 continue_last_debug_event.
6491 * nat/windows-nat.h (matching_pending_stop)
6492 (continue_last_debug_event): Declare.
6493 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6494 (matching_pending_stop, continue_last_debug_event): New
6495 functions.
6496
6497 2020-04-08 Tom Tromey <tromey@adacore.com>
6498
6499 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6500 (handle_exception_result): Move to nat/windows-nat.h.
6501 (DEBUG_EXCEPTION_SIMPLE): Remove.
6502 (windows_nat::handle_ms_vc_exception): New function.
6503 (handle_exception): Move to nat/windows-nat.c.
6504 (get_windows_debug_event): Update.
6505 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6506 nat/windows-nat.c.
6507 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6508 (handle_exception_result): Move from windows-nat.c.
6509 (handle_exception): Declare.
6510 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6511 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6512 windows-nat.c.
6513
6514 2020-04-08 Tom Tromey <tromey@adacore.com>
6515
6516 * windows-nat.c (exception_count, event_count): Remove.
6517 (handle_exception, get_windows_debug_event)
6518 (do_initial_windows_stuff): Update.
6519
6520 2020-04-08 Tom Tromey <tromey@adacore.com>
6521
6522 * windows-nat.c (windows_nat::handle_load_dll)
6523 (windows_nat::handle_unload_dll): Rename. No longer static.
6524 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6525 Declare.
6526
6527 2020-04-08 Tom Tromey <tromey@adacore.com>
6528
6529 * complaints.h (stop_whining): Declare at top-level.
6530 (complaint): Don't declare stop_whining.
6531
6532 2020-04-08 Tom Tromey <tromey@adacore.com>
6533
6534 * windows-nat.c (windows_nat::handle_output_debug_string):
6535 Rename. No longer static.
6536 * nat/windows-nat.h (handle_output_debug_string): Declare.
6537
6538 2020-04-08 Tom Tromey <tromey@adacore.com>
6539
6540 * windows-nat.c (current_process_handle, current_process_id)
6541 (main_thread_id, last_sig, current_event, last_wait_event)
6542 (current_windows_thread, desired_stop_thread_id, pending_stops)
6543 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6544 (display_selectors, fake_create_process)
6545 (get_windows_debug_event): Update.
6546 * nat/windows-nat.h (current_process_handle, current_process_id)
6547 (main_thread_id, last_sig, current_event, last_wait_event)
6548 (current_windows_thread, desired_stop_thread_id, pending_stops)
6549 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6550 * nat/windows-nat.c (current_process_handle, current_process_id)
6551 (main_thread_id, last_sig, current_event, last_wait_event)
6552 (current_windows_thread, desired_stop_thread_id, pending_stops)
6553 (siginfo_er): New globals. Move from windows-nat.c.
6554
6555 2020-04-08 Tom Tromey <tromey@adacore.com>
6556
6557 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6558 (handle_load_dll): Update.
6559 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6560
6561 2020-04-08 Tom Tromey <tromey@adacore.com>
6562
6563 * windows-nat.c (enum thread_disposition_type): Move to
6564 nat/windows-nat.h.
6565 (windows_nat::thread_rec): Rename from thread_rec. No longer
6566 static.
6567 (windows_add_thread, windows_nat_target::fetch_registers)
6568 (windows_nat_target::store_registers, handle_exception)
6569 (windows_nat_target::resume, get_windows_debug_event)
6570 (windows_nat_target::get_tib_address)
6571 (windows_nat_target::thread_name)
6572 (windows_nat_target::thread_alive): Update.
6573 * nat/windows-nat.h (enum thread_disposition_type): Move from
6574 windows-nat.c.
6575 (thread_rec): Declare.
6576
6577 2020-04-08 Tom Tromey <tromey@adacore.com>
6578
6579 * windows-nat.c: Add "using namespace".
6580 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6581 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6582
6583 2020-04-08 Tom Tromey <tromey@adacore.com>
6584
6585 * nat/windows-nat.h (struct windows_thread_info): Declare
6586 destructor.
6587 * nat/windows-nat.c (~windows_thread_info): New.
6588
6589 2020-04-08 Tom Tromey <tromey@adacore.com>
6590
6591 PR gdb/22992
6592 * windows-nat.c (current_event): Update comment.
6593 (last_wait_event, desired_stop_thread_id): New globals.
6594 (struct pending_stop): New.
6595 (pending_stops): New global.
6596 (windows_nat_target) <stopped_by_sw_breakpoint>
6597 <supports_stopped_by_sw_breakpoint>: New methods.
6598 (windows_fetch_one_register): Add assertions. Adjust PC.
6599 (windows_continue): Handle pending stops. Suspend other threads
6600 when stepping. Use last_wait_event
6601 (wait_for_debug_event): New function.
6602 (get_windows_debug_event): Use wait_for_debug_event. Handle
6603 pending stops. Queue spurious stops.
6604 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6605 (windows_nat_target::kill): Use wait_for_debug_event.
6606 * nat/windows-nat.h (struct windows_thread_info)
6607 <stopped_at_software_breakpoint>: New field.
6608 * nat/windows-nat.c (windows_thread_info::resume): Clear
6609 stopped_at_software_breakpoint.
6610
6611 2020-04-08 Tom Tromey <tromey@adacore.com>
6612
6613 * windows-nat.c (enum thread_disposition_type): New.
6614 (thread_rec): Replace "get_context" parameter with "disposition";
6615 change type.
6616 (windows_add_thread, windows_nat_target::fetch_registers)
6617 (windows_nat_target::store_registers, handle_exception)
6618 (windows_nat_target::resume, get_windows_debug_event)
6619 (windows_nat_target::get_tib_address)
6620 (windows_nat_target::thread_name)
6621 (windows_nat_target::thread_alive): Update.
6622
6623 2020-04-08 Tom Tromey <tromey@adacore.com>
6624
6625 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6626 (windows_continue): Use windows_continue::resume.
6627 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6628 resume>: Declare new methods.
6629 * nat/windows-nat.c: New file.
6630 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6631
6632 2020-04-08 Tom Tromey <tromey@adacore.com>
6633
6634 * windows-nat.c (windows_add_thread, windows_delete_thread)
6635 (windows_nat_target::fetch_registers)
6636 (windows_nat_target::store_registers, fake_create_process)
6637 (windows_nat_target::resume, windows_nat_target::resume)
6638 (get_windows_debug_event, windows_nat_target::wait)
6639 (windows_nat_target::pid_to_str)
6640 (windows_nat_target::get_tib_address)
6641 (windows_nat_target::get_ada_task_ptid)
6642 (windows_nat_target::thread_name)
6643 (windows_nat_target::thread_alive): Use lwp, not tid.
6644
6645 2020-04-08 Tom Tromey <tromey@adacore.com>
6646
6647 * windows-nat.c (handle_exception)
6648 (windows_nat_target::thread_name): Update.
6649 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6650 <name>: Now unique_xmalloc_ptr.
6651
6652 2020-04-08 Tom Tromey <tromey@adacore.com>
6653
6654 * windows-nat.c (thread_rec)
6655 (windows_nat_target::fetch_registers): Update.
6656 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6657 Update comment.
6658 <debug_registers_changed, reload_context>: Now bool.
6659
6660 2020-04-08 Tom Tromey <tromey@adacore.com>
6661
6662 * windows-nat.c (windows_add_thread): Use new.
6663 (windows_init_thread_list, windows_delete_thread): Use delete.
6664 (get_windows_debug_event): Update.
6665 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6666 destructor, and initializers.
6667
6668 2020-04-08 Tom Tromey <tromey@adacore.com>
6669
6670 * windows-nat.c (struct windows_thread_info): Remove.
6671 * nat/windows-nat.h: New file.
6672
6673 2020-04-08 Tom Tromey <tromey@adacore.com>
6674
6675 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6676 (thread_rec, windows_add_thread, windows_delete_thread)
6677 (windows_continue): Update.
6678
6679 2020-04-08 Tom Tromey <tromey@adacore.com>
6680
6681 * windows-nat.c (struct windows_thread_info): Remove typedef.
6682 (thread_head): Remove.
6683 (thread_list): New global.
6684 (thread_rec, windows_add_thread, windows_init_thread_list)
6685 (windows_delete_thread, windows_continue): Update.
6686
6687 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6688
6689 * windows-tdep.h (windows_init_abi): Add comment.
6690 (cygwin_init_abi): New declaration.
6691 * windows-tdep.c: Split signal enumeration in two, one for
6692 Windows and one for Cygwin.
6693 (windows_gdb_signal_to_target): Only deal with signal of the
6694 Windows OS ABI.
6695 (cygwin_gdb_signal_to_target): New function.
6696 (windows_init_abi): Rename to windows_init_abi_common, don't set
6697 gdb_signal_to_target gdbarch method. Add new new function with
6698 this name.
6699 (cygwin_init_abi): New function.
6700 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6701 comment. Don't call windows_init_abi.
6702 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6703 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6704 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6705 i386_windows_init_abi_common, don't call windows_init_abi. Add
6706 a new function of this name.
6707 (i386_cygwin_init_abi): New function.
6708 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6709 OS ABI Cygwin.
6710
6711 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6712
6713 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6714 parameter.c.
6715 (dwarf2_read_gdb_index): Update.
6716
6717 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6718
6719 * nbsd-tdep.c: Include "objfiles.h".
6720 (nbsd_skip_solib_resolver): New.
6721 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6722
6723 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6724
6725 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6726 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6727 with DW_LLE_base_addressx are being emitted in DWARFv5.
6728 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6729 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6730 unsigned integer.
6731
6732 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6733
6734 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6735 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6736 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6737 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6738 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6739 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6740 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6741
6742
6743 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6744
6745 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6746 (read_loclist_index): New function definition.
6747 (lookup_loclist_base): New function definition.
6748 (read_loclist_header): New function definition.
6749 (dwarf2_cu): Add loclist_base and loclist_header field.
6750 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6751 (read_full_die_1): Read the value of DW_AT_loclists_base.
6752 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6753 (read_attribute_value): Handle DW_FORM_loclistx.
6754 (skip_one_die): Handle DW_FORM_loclistx.
6755 (loclist_header): New structure declaration.
6756 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6757
6758 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6759
6760 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6761 constructor. Remove `addr` parameter from other constructor and
6762 add `per_cu` parameter.
6763 * dwarf2/read.c (create_partial_symtab): Update.
6764
6765 2020-04-07 Tom de Vries <tdevries@suse.de>
6766
6767 PR symtab/25796
6768 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6769 (partial_die_info::fixup): Inherit has_const_value.
6770
6771 2020-04-07 Tom de Vries <tdevries@suse.de>
6772
6773 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6774 symbols without address.
6775
6776 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6777
6778 * nbsd-nat.h (struct thread_info): Add forward declaration.
6779 (nbsd_nat_target::thread_alive): Add.
6780 (nbsd_nat_target::thread_name): Likewise.
6781 (nbsd_nat_target::update_thread_list): Likewise.
6782 (update_thread_list::post_attach): Likewise.
6783 (post_attach::pid_to_str): Likewise.
6784 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6785 (nbsd_thread_lister): Add.
6786 (nbsd_nat_target::thread_alive): Likewise.
6787 (nbsd_nat_target::thread_name): Likewise.
6788 (nbsd_add_threads): Likewise.
6789 (update_thread_list::post_attach): Likewise.
6790 (nbsd_nat_target::update_thread_list): Likewise.
6791 (post_attach::pid_to_str): Likewise.
6792
6793 2020-04-06 Tom Tromey <tromey@adacore.com>
6794
6795 * ada-valprint.c (print_variant_part): Extract the variant field.
6796 (print_field_values): Use the field as the outer value when
6797 recursing.
6798
6799 2020-04-06 Tom Tromey <tromey@adacore.com>
6800
6801 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6802 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6803 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6804 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6805 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6806
6807 2020-04-06 Tom Tromey <tromey@adacore.com>
6808
6809 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6810 TYPE_CODE_ERROR.
6811
6812 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6813
6814 * nbsd-tdep.c: Include "gdbarch.h".
6815 Define enum with NetBSD signal numbers.
6816 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6817 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6818 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6819 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6820 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6821 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6822 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6823 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6824 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6825 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6826 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6827 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6828
6829 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6830
6831 PR gdb/25325
6832 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6833
6834 2020-04-03 Tom Tromey <tromey@adacore.com>
6835
6836 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6837 Read constant block.
6838
6839 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6840
6841 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6842 (gdb_bfd_get_full_section_contents): New declaration.
6843 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6844 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6845 gdb_bfd_get_full_section_contents.
6846
6847 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6848
6849 * exec.c (build_section_table): Replace internal_error with
6850 gdb_assert.
6851 (section_table_xfer_memory_partial): Likewise.
6852 * mdebugread.c (parse_partial_symbols): Likewise.
6853 * psymtab.c (lookup_partial_symbol): Likewise.
6854 * utils.c (wrap_here): Likewise.
6855
6856 2020-04-02 Tom Tromey <tromey@adacore.com>
6857
6858 * f-lang.c (build_fortran_types): Use arch_type to initialize
6859 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6860
6861 2020-04-02 Tom Tromey <tromey@adacore.com>
6862
6863 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6864 of attributes.
6865
6866 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6867 Bernd Edlinger <bernd.edlinger@hotmail.de>
6868 Tom Tromey <tromey@adacore.com>
6869
6870 * buildsym.c (buildsym_compunit::record_line): Remove
6871 deduplication code.
6872
6873 2020-04-02 Tom de Vries <tdevries@suse.de>
6874
6875 PR ada/24671
6876 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6877
6878 2020-04-02 Tom de Vries <tdevries@suse.de>
6879
6880 * dwarf2/read.c (dwarf2_gdb_index_functions,
6881 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6882 NULL.
6883 * psymtab.c (psym_lookup_global_symbol_language): New function.
6884 (psym_functions): Init psym_lookup_global_symbol_language with
6885 psym_lookup_global_symbol_language.
6886 * symfile-debug.c (debug_sym_quick_functions): Init
6887 lookup_global_symbol_language with NULL.
6888 * symfile.c (set_initial_language): Remove fixme comment.
6889 * symfile.h (struct quick_symbol_functions): Add
6890 lookup_global_symbol_language.
6891 * symtab.c (find_quick_global_symbol_language): New function.
6892 (find_main_name): Use find_quick_global_symbol_language.
6893
6894 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6895
6896 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6897
6898 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6899
6900 * buildsym.c (record_line): Fix undefined behavior and preserve
6901 lines at eof.
6902
6903 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6904
6905 * buildsym.c (record_line): Fix the resizing condition.
6906
6907 2020-04-01 Tom Tromey <tom@tromey.com>
6908
6909 * value.h (value_literal_complex): Add comment.
6910 * valops.c (value_literal_complex): Refer to value.h.
6911
6912 2020-04-01 Tom Tromey <tom@tromey.com>
6913
6914 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6915 (scalar_type): New rule, from typebase.
6916 (typebase): Use scalar_type. Recognize complex types.
6917 (field_name): Handle FLOAT_KEYWORD.
6918 (ident_tokens): Add _Complex and __complex__.
6919
6920 2020-04-01 Tom Tromey <tom@tromey.com>
6921
6922 PR exp/25299:
6923 * valarith.c (promotion_type, complex_binop): New functions.
6924 (scalar_binop): Handle complex numbers. Use promotion_type.
6925 (value_pos, value_neg, value_complement): Handle complex numbers.
6926
6927 2020-04-01 Tom Tromey <tom@tromey.com>
6928
6929 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6930 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6931 (parse_number): Handle complex numbers.
6932
6933 2020-04-01 Tom Tromey <tom@tromey.com>
6934
6935 * c-valprint.c (c_decorations): Change complex suffix to "i".
6936
6937 2020-04-01 Tom Tromey <tom@tromey.com>
6938
6939 * valprint.c (generic_value_print_complex): Use accessors.
6940 * value.h (value_real_part, value_imaginary_part): Declare.
6941 * valops.c (value_real_part, value_imaginary_part): New
6942 functions.
6943 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6944
6945 2020-04-01 Tom Tromey <tom@tromey.com>
6946
6947 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6948 (read_range_type): Update.
6949 * mdebugread.c (basic_type): Update.
6950 * go-lang.c (build_go_types): Use init_complex_type.
6951 * gdbtypes.h (struct main_type) <complex_type>: New member.
6952 (init_complex_type): Update.
6953 (arch_complex_type): Don't declare.
6954 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6955 Make name if none given. Use alloc_type_copy. Look for cached
6956 complex type.
6957 (arch_complex_type): Remove.
6958 (gdbtypes_post_init): Use init_complex_type.
6959 * f-lang.c (build_fortran_types): Use init_complex_type.
6960 * dwarf2/read.c (read_base_type): Update.
6961 * d-lang.c (build_d_types): Use init_complex_type.
6962 * ctfread.c (read_base_type): Update.
6963
6964 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6965
6966 * infrun.c (stop_all_threads): Update assertion, plus when
6967 stopping threads, take into account that we might be trying
6968 to stop an all-stop target.
6969 (stop_waiting): Call 'stop_all_threads' if there exists a
6970 non-stop target.
6971
6972 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6973
6974 * target.h (exists_non_stop_target): New function declaration.
6975 * target.c (exists_non_stop_target): New function.
6976
6977 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6978
6979 PR gdb/24789
6980 * eval.c (is_integral_or_integral_reference): New function.
6981 (evaluate_subexp_standard): Allow integer references in
6982 pointer arithmetic.
6983
6984 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6985
6986 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6987 check for no ptid in the stop reply when the target is non-stop.
6988
6989 2020-04-01 Tom Tromey <tromey@adacore.com>
6990
6991 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6992 "name" parameter to rvalue reference. Initialize m_name_holder.
6993 <lookup_name_info>: New overloads.
6994 <name>: Return gdb::string_view.
6995 <c_str>: New method.
6996 <make_ignore_params>: Update.
6997 <search_name_hash>: Update.
6998 <language_lookup_name>: Return const char *.
6999 <m_name>: Change type.
7000 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7001 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7002 (lookup_name_info::match_any): Update.
7003 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7004 Update.
7005 * minsyms.c (linkage_name_str): Update.
7006 * language.c (default_symbol_name_matcher): Update.
7007 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7008 Update.
7009 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7010 (ada_lookup_name_info::ada_lookup_name_info): Update.
7011 (literal_symbol_name_matcher): Update.
7012
7013 2020-04-01 Tom Tromey <tromey@adacore.com>
7014
7015 * psymtab.c (psymtab_search_name): Remove function.
7016 (psym_lookup_symbol): Create search name and lookup name here.
7017 (lookup_partial_symbol): Remove "name" parameter; add
7018 lookup_name.
7019 (psym_expand_symtabs_for_function): Update.
7020
7021 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7022
7023 PR tui/25597:
7024 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7025
7026 2020-03-31 Tom Tromey <tromey@adacore.com>
7027
7028 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7029 memcpy.
7030
7031 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7032
7033 * features/riscv/32bit-csr.xml: Regenerated.
7034 * features/riscv/64bit-csr.xml: Regenerated.
7035
7036 2020-03-30 Tom Tromey <tromey@adacore.com>
7037
7038 * ada-valprint.c (print_variant_part): Update.
7039 * ada-lang.h (ada_which_variant_applies): Update.
7040 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7041 outer_valaddr parameters; replace with "outer" value parameter.
7042 (to_fixed_variant_branch_type): Update.
7043
7044 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7045
7046 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7047 <list>. Remove inclusion of observable.h.
7048 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7049 (struct arch_lwp_info): New struct.
7050 (class ppc_linux_dreg_interface): New class.
7051 (struct ppc_linux_process_info): New struct.
7052 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7053 <low_new_clone, low_forget_process, low_prepare_to_resume>
7054 <copy_thread_dreg_state, mark_thread_stale>
7055 <mark_debug_registers_changed, register_hw_breakpoint>
7056 <clear_hw_breakpoint, register_wp, clear_wp>
7057 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7058 <num_memory_accesses, get_trigger_type>
7059 <create_watchpoint_request, hwdebug_point_cmp>
7060 <init_arch_lwp_info, get_arch_lwp_info>
7061 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7062 methods.
7063 <struct ptid_hash>: New inner struct.
7064 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7065 members.
7066 (saved_dabr_value, hwdebug_info, max_slots_number)
7067 (struct hw_break_tuple, struct thread_points, ppc_threads)
7068 (have_ptrace_hwdebug_interface)
7069 (hwdebug_find_thread_points_by_tid)
7070 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7071 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7072 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7073 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7074 use m_dreg_interface.
7075 (hwdebug_point_cmp): Change to...
7076 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7077 reference arguments instead of pointers.
7078 (ppc_linux_nat_target::ranged_break_num_registers): Use
7079 m_dreg_interface.
7080 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7081 m_dreg_interface. Call register_hw_breakpoint.
7082 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7083 m_dreg_interface. Call clear_hw_breakpoint.
7084 (get_trigger_type): Change to...
7085 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7086 comment.
7087 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7088 use m_dreg_interface. Call register_hw_breakpoint.
7089 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7090 use m_dreg_interface. Call clear_hw_breakpoint.
7091 (can_use_watchpoint_cond_accel): Change to...
7092 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7093 method. Update comment, use m_dreg_interface and
7094 m_process_info.
7095 (calculate_dvc): Change to...
7096 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7097 m_dreg_interface.
7098 (num_memory_accesses): Change to...
7099 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7100 (check_condition): Change to...
7101 (ppc_linux_nat_target::check_condition): ...this method.
7102 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7103 comment, use m_dreg_interface.
7104 (create_watchpoint_request): Change to...
7105 (ppc_linux_nat_target::create_watchpoint_request): ...this
7106 method. Use m_dreg_interface.
7107 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7108 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7109 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7110 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7111 (ppc_linux_nat_target::low_forget_process)
7112 (ppc_linux_nat_target::low_new_fork)
7113 (ppc_linux_nat_target::low_new_clone)
7114 (ppc_linux_nat_target::low_delete_thread)
7115 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7116 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7117 only call mark_thread_stale.
7118 (ppc_linux_thread_exit): Remove.
7119 (ppc_linux_nat_target::stopped_data_address): Change to...
7120 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7121 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7122 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7123 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7124 comment. Call low_stopped_data_address.
7125 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7126 m_dreg_interface.
7127 (ppc_linux_nat_target::masked_watch_num_registers): Use
7128 m_dreg_interface.
7129 (ppc_linux_nat_target::copy_thread_dreg_state)
7130 (ppc_linux_nat_target::mark_thread_stale)
7131 (ppc_linux_nat_target::mark_debug_registers_changed)
7132 (ppc_linux_nat_target::register_hw_breakpoint)
7133 (ppc_linux_nat_target::clear_hw_breakpoint)
7134 (ppc_linux_nat_target::register_wp)
7135 (ppc_linux_nat_target::clear_wp)
7136 (ppc_linux_nat_target::init_arch_lwp_info)
7137 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7138 (_initialize_ppc_linux_nat): Remove observer callback.
7139
7140 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7141
7142 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7143 (ppc_linux_nat_target::auxv_parse)
7144 (ppc_linux_nat_target::read_description)
7145 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7146 Move up.
7147
7148 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7149
7150 * linux-nat.h (low_new_clone): New method.
7151 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7152
7153 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7154
7155 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7156 (dbx_expand_psymtab): ... this.
7157 (start_psymtab): Update.
7158 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7159 (mdebug_expand_psymtab): ... this.
7160 (parse_partial_symbols): Update.
7161 (new_psymtab): Update.
7162 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7163 (xcoff_expand_psymtab): ... this.
7164 (xcoff_start_psymtab): Update.
7165
7166 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7167
7168 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7169 <expand_dependencies>: ... this.
7170 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7171 (partial_symtab::expand_dependencies): ... this.
7172 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7173 Update.
7174 (dwarf2_psymtab::expand_psymtab): Update.
7175 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7176 * mdebugread.c (psymtab_to_symtab_1): Update.
7177 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7178
7179 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7180
7181 * psympriv.h (discard_psymtab): Remove.
7182 * dbxread.c (dbx_end_psymtab): Update.
7183 * xcoffread.c (xcoff_end_psymtab): Update.
7184
7185 2020-03-28 Tom Tromey <tom@tromey.com>
7186
7187 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7188 comment.
7189
7190 2020-03-28 Tom Tromey <tom@tromey.com>
7191
7192 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7193
7194 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7195
7196 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7197
7198 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7199
7200 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7201
7202 2020-03-26 Tom Tromey <tom@tromey.com>
7203
7204 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7205 (mark_common_block_symbol_computed, read_tag_string_type)
7206 (attr_to_dynamic_prop, read_subrange_type): Update.
7207 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7208 to be methods on struct attribute.
7209 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7210 (read_call_site_scope, partial_die_info::read)
7211 (partial_die_info::read, lookup_die_type, follow_die_ref):
7212 Update.
7213 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7214 from dwarf2_get_ref_die_offset.
7215 (attribute::constant_value): New method, from
7216 dwarf2_get_attr_constant_value.
7217 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7218 Declare method.
7219 <constant_value>: New method.
7220
7221 2020-03-26 Tom Tromey <tom@tromey.com>
7222
7223 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7224 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7225 (dwarf_type_encoding_name): Move to stringify.c.
7226 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7227 * dwarf2/stringify.c: New file.
7228 * dwarf2/stringify.h: New file.
7229
7230 2020-03-26 Tom Tromey <tom@tromey.com>
7231
7232 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7233 Rewrite.
7234
7235 2020-03-26 Tom Tromey <tom@tromey.com>
7236
7237 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7238 methods.
7239 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7240 (lookup_ranges_base): Likewise.
7241 (read_cutu_die_from_dwo, read_full_die_1): Update.
7242
7243 2020-03-26 Tom Tromey <tom@tromey.com>
7244
7245 * dwarf2/read.c (read_import_statement, read_file_scope)
7246 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7247 (read_lexical_block_scope, read_call_site_scope)
7248 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7249 (handle_struct_member_die, process_structure_scope)
7250 (update_enumeration_type_from_children)
7251 (process_enumeration_scope, read_array_type, read_common_block)
7252 (read_namespace, read_module, read_subroutine_type): Update.
7253 (sibling_die): Remove.
7254
7255 2020-03-26 Tom Tromey <tom@tromey.com>
7256
7257 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7258 (build_type_psymtabs_reader, read_structure_type)
7259 (read_enumeration_type, read_full_die_1): Update.
7260 (dwarf2_attr_no_follow): Move to die.h.
7261 * dwarf2/die.h (struct die_info) <attr>: New method.
7262
7263 2020-03-26 Tom Tromey <tom@tromey.com>
7264
7265 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7266 <base_address>: Now an optional.
7267 (dwarf2_find_base_address, dwarf2_rnglists_process)
7268 (dwarf2_ranges_process, fill_in_loclist_baton)
7269 (dwarf2_symbol_mark_computed): Update.
7270
7271 2020-03-26 Tom Tromey <tom@tromey.com>
7272
7273 * dwarf2/read.c (struct die_info): Move to die.h.
7274 * dwarf2/die.h: New file.
7275
7276 2020-03-26 Tom Tromey <tom@tromey.com>
7277
7278 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7279 * dwarf2/read.c
7280 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7281 Move to line-header.c.
7282 (read_checked_initial_length_and_offset, read_formatted_entries):
7283 Likewise.
7284 (dwarf_decode_line_header): Split into two.
7285 * dwarf2/line-header.c
7286 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7287 Move from read.c.
7288 (read_checked_initial_length_and_offset, read_formatted_entries):
7289 Likewise.
7290 (dwarf_decode_line_header): New function, split from read.c.
7291
7292 2020-03-26 Tom Tromey <tom@tromey.com>
7293
7294 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7295 Declare method.
7296 * dwarf2/read.c (read_attribute_value): Update.
7297 (dwarf2_per_objfile::read_line_string): Rename from
7298 read_indirect_line_string.
7299 (read_formatted_entries): Update.
7300
7301 2020-03-26 Tom Tromey <tom@tromey.com>
7302
7303 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7304 variable.
7305
7306 2020-03-26 Tom Tromey <tom@tromey.com>
7307
7308 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7309 const.
7310 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7311 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7312 parameter const.
7313
7314 2020-03-26 Tom Tromey <tom@tromey.com>
7315
7316 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7317 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7318 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7319 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7320
7321 2020-03-26 Tom Tromey <tom@tromey.com>
7322
7323 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7324 file_names_size, file_full_name, file_file_name>: Use const.
7325 <file_name_at, file_names>: Add const overload.
7326 * dwarf2/line-header.c (line_header::file_file_name)
7327 (line_header::file_full_name): Update.
7328
7329 2020-03-26 Tom Tromey <tom@tromey.com>
7330
7331 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7332 (macro_start_file, consume_improper_spaces)
7333 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7334 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7335 (dwarf_decode_macros): Move to macro.c.
7336 * dwarf2/macro.c: New file.
7337 * dwarf2/macro.h: New file.
7338 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7339
7340 2020-03-26 Tom Tromey <tom@tromey.com>
7341
7342 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7343 method.
7344 * dwarf2/section.c: New method. From
7345 read_indirect_string_at_offset_from.
7346 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7347 (read_indirect_string_at_offset_from): Move to section.c.
7348 (read_indirect_string_at_offset): Rewrite.
7349 (read_indirect_line_string_at_offset): Remove.
7350 (read_indirect_string, read_indirect_line_string)
7351 (dwarf_decode_macro_bytes): Update.
7352
7353 2020-03-26 Tom Tromey <tom@tromey.com>
7354
7355 * dwarf2/section.h (struct dwarf2_section_info)
7356 <overload_complaint>: Declare.
7357 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7358 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7359 Rename from dwarf2_section_buffer_overflow_complaint.
7360 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7361 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7362
7363 2020-03-26 Tom Tromey <tom@tromey.com>
7364
7365 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7366 Declare.
7367 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7368 Move from read.c.
7369 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7370 to section.c.
7371
7372 2020-03-26 Tom Tromey <tom@tromey.com>
7373
7374 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7375
7376 2020-03-26 Tom Tromey <tom@tromey.com>
7377
7378 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7379 "builder".
7380 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7381 parameter.
7382 (dwarf_decode_macros): Update.
7383
7384 2020-03-26 Tom Tromey <tom@tromey.com>
7385
7386 * dwarf2/read.c (read_attribute_value): Update.
7387 (read_indirect_string_from_dwz): Move to dwz.c; change into
7388 method.
7389 (dwarf_decode_macro_bytes): Update.
7390 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7391 * dwarf2/dwz.c: New file.
7392 * Makefile.in (COMMON_SFILES): Add dwz.c.
7393
7394 2020-03-26 Tom Tromey <tom@tromey.com>
7395
7396 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7397 * dwarf2/read.c: Add include.
7398 * dwarf2/index-write.c: Add include.
7399 * dwarf2/index-cache.c: Add include.
7400 * dwarf2/dwz.h: New file.
7401
7402 2020-03-25 Tom Tromey <tom@tromey.com>
7403
7404 * compile/compile-object-load.c (get_out_value_type): Mention
7405 correct symbol name in error message.
7406
7407 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7408
7409 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7410
7411 2020-03-25 Tom de Vries <tdevries@suse.de>
7412
7413 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7414 * symmisc.c (dump_symtab_1): Print user and includes fields.
7415 (maintenance_info_symtabs): Same.
7416
7417 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7418
7419 PR gdb/25534
7420 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7421 (riscv_regcache_cooked_write): New function.
7422 (riscv_push_dummy_call): Use new function.
7423 (riscv_return_value): Likewise.
7424
7425 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7426
7427 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7428 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7429 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7430 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7431 * infrun.c (follow_fork): Likewise.
7432 (follow_fork_inferior): Likewise.
7433 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7434 * linux-nat.h (class linux_nat_target): Likewise.
7435 * remote.c (class remote_target) <follow_fork>: Likewise.
7436 (remote_target::follow_fork): Likewise.
7437 * target-delegates.c: Re-generate.
7438 * target.c (default_follow_fork): Likewise.
7439 (target_follow_fork): Likewise.
7440 * target.h (struct target_ops) <follow_fork>: Likewise.
7441 (target_follow_fork): Likewise.
7442
7443 2020-03-24 Tom de Vries <tdevries@suse.de>
7444
7445 * psymtab.c (maintenance_info_psymtabs): Print user field.
7446
7447 2020-03-20 Tom Tromey <tromey@adacore.com>
7448
7449 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7450 const.
7451 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7452 const.
7453
7454 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7455
7456 * ptrace.m4: Don't check for ptrace declaration.
7457 * config.in: Re-generate.
7458 * configure: Re-generate.
7459 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7460 not defined.
7461
7462 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7463
7464 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7465 `PTRACE_TYPE_RET'.
7466 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7467 * sparc-nat.c (gdb_ptrace): Likewise.
7468 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7469
7470 2020-03-20 Tom Tromey <tromey@adacore.com>
7471
7472 * c-exp.y (lex_one_token): Fix assert.
7473
7474 2020-03-20 Tom Tromey <tromey@adacore.com>
7475
7476 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7477 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7478 strncpy call.
7479
7480 2020-03-20 Tom Tromey <tromey@adacore.com>
7481
7482 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7483
7484 2020-03-20 Tom Tromey <tromey@adacore.com>
7485
7486 * ada-valprint.c (print_variant_part): Remove parameters; switch
7487 to value-based API.
7488 (print_field_values): Likewise.
7489 (ada_val_print_struct_union): Likewise.
7490 (ada_value_print_1): Update.
7491
7492 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7493
7494 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7495 nbsd_nat_target instead of inf_ptrace_target.
7496 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7497 nbsd_nat_target.
7498
7499 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7500
7501 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7502 it to the ptrace call.
7503 * (store_registers): Likewise.
7504
7505 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7506
7507 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7508 it to the ptrace call.
7509 * (store_registers): Likewise.
7510
7511 2020-03-19 Luis Machado <luis.machado@linaro.org>
7512
7513 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7514 valid, fetch vg value from ptrace.
7515
7516 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7517 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7518 * inf-ptrace.c: Likewise.
7519 * (gdb_ptrace): Add.
7520 * (inf_ptrace_target::resume): Update.
7521 * (inf_ptrace_target::xfer_partial): Likewise.
7522 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7523 * (inf_ptrace_peek_poke): Update.
7524
7525 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7526
7527 * x86-bsd-nat.c (gdb_ptrace): New.
7528 * (x86bsd_dr_set): Add new argument `ptid'.
7529 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7530 x86bsd_dr_set_addr): Update.
7531
7532 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7533
7534 * remote.c (remote_target::process_stop_reply): Handle events for
7535 all threads differently.
7536
7537 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7538
7539 * completer.c (completion_tracker::remove_completion): Define new
7540 function.
7541 * completer.h (completion_tracker::remove_completion): Declare new
7542 function.
7543 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7544 when adding a C++ function symbol.
7545
7546 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7547
7548 * completer.c (completion_tracker::completion_hash_entry): Define
7549 new class.
7550 (advance_to_filename_complete_word_point): Call
7551 recompute_lowest_common_denominator.
7552 (completion_tracker::completion_tracker): Call discard_completions
7553 to setup the hash table.
7554 (completion_tracker::discard_completions): Allow for being called
7555 from the constructor, pass new equal function, and element deleter
7556 when constructing the hash table. Initialise new class member
7557 variables.
7558 (completion_tracker::maybe_add_completion): Remove use of
7559 m_entries_vec, and store more information into m_entries_hash.
7560 (completion_tracker::recompute_lcd_visitor): New function, most
7561 content taken from...
7562 (completion_tracker::recompute_lowest_common_denominator):
7563 ...here, this now just visits each item in the hash calling the
7564 above visitor.
7565 (completion_tracker::build_completion_result): Remove use of
7566 m_entries_vec, call recompute_lowest_common_denominator.
7567 * completer.h (completion_tracker::have_completions): Remove use
7568 of m_entries_vec.
7569 (completion_tracker::completion_hash_entry): Declare new class.
7570 (completion_tracker::recompute_lowest_common_denominator): Change
7571 function signature.
7572 (completion_tracker::recompute_lcd_visitor): Declare new function.
7573 (completion_tracker::m_entries_vec): Delete.
7574 (completion_tracker::m_entries_hash): Initialize to NULL.
7575 (completion_tracker::m_lowest_common_denominator_valid): New
7576 member variable.
7577 (completion_tracker::m_lowest_common_denominator_max_length): New
7578 member variable.
7579
7580 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7581
7582 * regformats/regdef.h: Put reg in gdb namespace.
7583
7584 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7585
7586 * i386-bsd-nat.c (gdb_ptrace): New.
7587 * (i386bsd_fetch_inferior_registers,
7588 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7589 * (i386bsd_fetch_inferior_registers,
7590 i386bsd_store_inferior_registers) Use gdb_ptrace.
7591
7592 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7593
7594 * amd64-bsd-nat.c (gdb_ptrace): New.
7595 * (amd64bsd_fetch_inferior_registers,
7596 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7597 * (amd64bsd_fetch_inferior_registers,
7598 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7599
7600 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7601
7602 * user-regs.c (user_reg::read): Rename to...
7603 (user_reg::xread): ...this.
7604 * (append_user_reg): Rename argument `read' to `xread'.
7605 * (user_reg_add_builtin): Likewise.
7606 * (user_reg_add): Likewise.
7607 * (value_of_user_reg): Likewise.
7608
7609 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7610
7611 * sparc-nat.c (gdb_ptrace): New.
7612 * sparc-nat.c (sparc_fetch_inferior_registers)
7613 (sparc_store_inferior_registers) Remove obsolete comment.
7614 * sparc-nat.c (sparc_fetch_inferior_registers)
7615 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7616 * sparc-nat.c (sparc_fetch_inferior_registers)
7617 (sparc_store_inferior_registers) Use gdb_ptrace.
7618
7619 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7620
7621 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7622 it to the ptrace call.
7623 * sh-nbsd-nat.c (store_registers): Likewise.
7624
7625 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7626
7627 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7628 nbsd_nat_target instead of inf_ptrace_target.
7629 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7630 nbsd_nat_target.
7631
7632 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7633
7634 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7635
7636 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7637
7638 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7639 <sys/sysctl.h>.
7640 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7641
7642 2020-03-17 Tom de Vries <tdevries@suse.de>
7643
7644 PR gdb/23710
7645 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7646 fields.
7647 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7648 fields.
7649 (process_imported_unit_die): Skip import of c++ CUs.
7650
7651 2020-03-16 Tom Tromey <tom@tromey.com>
7652
7653 * p-valprint.c (pascal_object_print_value): Initialize
7654 base_value.
7655
7656 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7657 Shahab Vahedi <shahab@synopsys.com>
7658
7659 * Makefile.in: Add arch/arc.o
7660 * configure.tgt: Likewise.
7661 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7662 (_initialize_arc_tdep): Don't initialize old target descriptions.
7663 (arc_read_description): New function to cache target descriptions.
7664 * arc-tdep.h (arc_read_description): Add proto type.
7665 * arch/arc.c: New file.
7666 * arch/arc.h: Likewise.
7667 * features/Makefile: Replace old target descriptions with new.
7668 * features/arc-arcompact.c: Remove.
7669 * features/arc-arcompact.xml: Likewise.
7670 * features/arc-v2.c: Likewise
7671 * features/arc-v2.xml: Likewise
7672 * features/arc/aux-arcompact.xml: New file.
7673 * features/arc/aux-v2.xml: Likewise.
7674 * features/arc/core-arcompact.xml: Likewise.
7675 * features/arc/core-v2.xml: Likewise.
7676 * features/arc/aux-arcompact.c: Generate.
7677 * features/arc/aux-v2.c: Likewise.
7678 * features/arc/core-arcompact.c: Likewise.
7679 * features/arc/core-v2.c: Likewise.
7680 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7681
7682 2020-03-16 Tom Tromey <tromey@adacore.com>
7683
7684 PR gdb/25663:
7685 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7686 putting value into bcache.
7687
7688 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7689
7690 PR gdb/21500
7691 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7692 to...
7693 (amd64_windows_init_abi_common): ... this. Don't set size of
7694 long type.
7695 (amd64_windows_init_abi): New function.
7696 (amd64_cygwin_init_abi): New function.
7697 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7698 the Cygwin OS ABI.
7699 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7700 comment.
7701
7702 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7703
7704 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7705 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7706 (pe_import_directory_entry): New struct type.
7707 (is_linked_with_cygwin_dll): New function.
7708 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7709 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7710 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7711
7712 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7713
7714 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7715 i386_cygwin_core_osabi_sniffer.
7716
7717 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7718
7719 * i386-cygwin-tdep.c: Rename to...
7720 * i386-windows-tdep.c: ... this.
7721 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7722 i386-windows-tdep.c.
7723 * configure.tgt: Likewise.
7724
7725 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7726
7727 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7728 * osabi.c (gdb_osabi_names): Add "Windows".
7729 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7730 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7731 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7732 i386_cygwin_osabi_sniffer.
7733 (_initialize_i386_cygwin_tdep): Register OS ABI
7734 GDB_OSABI_WINDOWS for i386.
7735 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7736 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7737 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7738 for x86-64.
7739 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7740 when the target matches '*-*-mingw*'.
7741
7742 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7743
7744 * defs.h (enum gdb_osabi): Move to...
7745 * osabi.h (enum gdb_osabi): ... here.
7746 * gdbarch.sh: Include osabi.h in gdbarch.h.
7747 * gdbarch.h: Re-generate.
7748
7749 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7750
7751 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7752 function.
7753 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7754
7755 2020-03-14 Tom Tromey <tom@tromey.com>
7756
7757 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7758 for C++.
7759 (c_type_print_modifier): Likewise. Add "language" parameter.
7760 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7761 (c_type_print_base_1): Update.
7762 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7763 constants.
7764 * type-stack.c (type_stack::insert): Handle tp_atomic and
7765 tp_restrict.
7766 (type_stack::follow_type_instance_flags): Likewise.
7767 (type_stack::follow_types): Likewise. Merge type-following code.
7768 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7769 (space_identifier, cv_with_space_id)
7770 (const_or_volatile_or_space_identifier_noopt)
7771 (const_or_volatile_or_space_identifier): Remove.
7772 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7773 rules.
7774 (ptr_operator, typebase): Update.
7775 (enum token_flag) <FLAG_C>: New constant.
7776 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7777 "_Atomic".
7778 (lex_one_token): Handle FLAG_C.
7779
7780 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7781
7782 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7783 it to the ptrace call.
7784 * m68k-bsd-nat.c (store_registers): Likewise.
7785
7786 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7787
7788 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7789 gdb_byte *.
7790 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7791 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7792 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7793
7794 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7795
7796 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7797 nbsd_nat_target instead of inf_ptrace_target.
7798 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7799 nbsd_nat_target.
7800
7801 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7802
7803 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7804 register_t.
7805
7806 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7807
7808 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7809 it to the ptrace call.
7810 * alpha-bsd-nat.c (store_registers): Likewise.
7811
7812 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7813
7814 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7815 includes.
7816 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7817 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7818 fill_fpregset): Likewise.
7819
7820 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7821
7822 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7823 nbsd_nat_target instead of inf_ptrace_target.
7824 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7825 nbsd_nat_target.
7826
7827 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7828
7829 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7830 register_t.
7831
7832 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7833
7834 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7835 it to the ptrace call.
7836 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7837 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7838 * arm-nbsd-nat.c (store_register): Likewise.
7839 * arm-nbsd-nat.c (store_regs): Likewise.
7840 * arm-nbsd-nat.c (store_fp_register): Likewise.
7841 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7842
7843 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7844
7845 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7846 nbsd_nat_target instead of inf_ptrace_target.
7847 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7848 nbsd_nat_target.
7849
7850 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7851
7852 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7853 it to the ptrace call.
7854 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7855
7856 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7857
7858 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7859 it to the ptrace call.
7860 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7861
7862 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7863
7864 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7865 gdb_byte *.
7866 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7867
7868 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7869
7870 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7871 instead of inf_ptrace_target.
7872 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7873 nbsd_nat_target.
7874
7875 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7876
7877 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7878 register_t.
7879
7880 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7881
7882 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7883 register_t.
7884
7885 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7886
7887 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7888 register_t.
7889
7890 2020-03-13 Tom Tromey <tom@tromey.com>
7891
7892 * value.h (val_print): Don't declare.
7893 * valprint.h (val_print_array_elements)
7894 (val_print_scalar_formatted, generic_val_print): Don't declare.
7895 * valprint.c (generic_val_print_array): Take a struct value.
7896 (generic_val_print_ptr, generic_val_print_memberptr)
7897 (generic_val_print_bool, generic_val_print_int)
7898 (generic_val_print_char, generic_val_print_complex)
7899 (generic_val_print): Remove.
7900 (generic_value_print): Update.
7901 (do_val_print): Remove unused parameters. Don't call
7902 la_val_print.
7903 (val_print): Remove.
7904 (common_val_print): Update. Don't call value_check_printable.
7905 (val_print_scalar_formatted, val_print_array_elements): Remove.
7906 * rust-lang.c (rust_val_print): Remove.
7907 (rust_language_defn): Update.
7908 * p-valprint.c (pascal_val_print): Remove.
7909 (pascal_value_print_inner): Update.
7910 (pascal_object_print_val_fields, pascal_object_print_val):
7911 Remove.
7912 (pascal_object_print_static_field): Update.
7913 * p-lang.h (pascal_val_print): Don't declare.
7914 * p-lang.c (pascal_language_defn): Update.
7915 * opencl-lang.c (opencl_language_defn): Update.
7916 * objc-lang.c (objc_language_defn): Update.
7917 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7918 * m2-lang.h (m2_val_print): Don't declare.
7919 * m2-lang.c (m2_language_defn): Update.
7920 * language.h (struct language_defn) <la_val_print>: Remove.
7921 * language.c (unk_lang_value_print_inner): Rename. Change
7922 argument types.
7923 (unknown_language_defn, auto_language_defn): Update.
7924 * go-valprint.c (go_val_print): Remove.
7925 * go-lang.h (go_val_print): Don't declare.
7926 * go-lang.c (go_language_defn): Update.
7927 * f-valprint.c (f_val_print): Remove.
7928 * f-lang.h (f_value_print): Don't declare.
7929 * f-lang.c (f_language_defn): Update.
7930 * d-valprint.c (d_val_print): Remove.
7931 * d-lang.h (d_value_print): Don't declare.
7932 * d-lang.c (d_language_defn): Update.
7933 * cp-valprint.c (cp_print_value_fields)
7934 (cp_print_value_fields_rtti, cp_print_value): Remove.
7935 (cp_print_static_field): Update.
7936 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7937 (c_val_print_struct, c_val_print_union, c_val_print_int)
7938 (c_val_print_memberptr, c_val_print): Remove.
7939 * c-lang.h (c_val_print_array, cp_print_value_fields)
7940 (cp_print_value_fields_rtti): Don't declare.
7941 * c-lang.c (c_language_defn, cplus_language_defn)
7942 (asm_language_defn, minimal_language_defn): Update.
7943 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7944 (ada_val_print_enum): Take a struct value.
7945 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7946 (ada_val_print): Remove.
7947 (ada_value_print_1): Update.
7948 (printable_val_type): Remove.
7949 * ada-lang.h (ada_val_print): Don't declare.
7950 * ada-lang.c (ada_language_defn): Update.
7951
7952 2020-03-13 Tom Tromey <tom@tromey.com>
7953
7954 * valprint.c (do_val_print): Update.
7955 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7956 a struct value.
7957 (value_to_value_object_no_release): Declare.
7958 * python/py-value.c (value_to_value_object_no_release): New
7959 function.
7960 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7961 struct value.
7962 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7963 function.
7964 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7965 a struct value.
7966 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7967 Declare.
7968 (gdbscm_apply_val_pretty_printer): Take a struct value.
7969 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7970 value.
7971 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7972 value.
7973 * extension-priv.h (struct extension_language_ops)
7974 <apply_val_pretty_printer>: Take a struct value.
7975 * cp-valprint.c (cp_print_value): Create a struct value.
7976 (cp_print_value): Update.
7977
7978 2020-03-13 Tom Tromey <tom@tromey.com>
7979
7980 * ada-valprint.c (print_field_values): Call common_val_print.
7981
7982 2020-03-13 Tom Tromey <tom@tromey.com>
7983
7984 * ada-valprint.c (val_print_packed_array_elements): Remove
7985 bitoffset and val parameters. Call common_val_print.
7986 (ada_val_print_string): Remove offset, address, and original_value
7987 parameters.
7988 (ada_val_print_array): Update.
7989 (ada_value_print_array): New function.
7990 (ada_value_print_1): Call it.
7991
7992 2020-03-13 Tom Tromey <tom@tromey.com>
7993
7994 * ada-valprint.c (ada_value_print): Use common_val_print.
7995
7996 2020-03-13 Tom Tromey <tom@tromey.com>
7997
7998 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7999
8000 2020-03-13 Tom Tromey <tom@tromey.com>
8001
8002 * ada-valprint.c (ada_value_print_num): New function.
8003 (ada_value_print_1): Use it.
8004
8005 2020-03-13 Tom Tromey <tom@tromey.com>
8006
8007 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8008
8009 2020-03-13 Tom Tromey <tom@tromey.com>
8010
8011 * ada-valprint.c (ada_value_print_ptr): New function.
8012 (ada_value_print_1): Use it.
8013
8014 2020-03-13 Tom Tromey <tom@tromey.com>
8015
8016 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8017 call common_val_print.
8018 (ada_val_print_1): Update.
8019 (ada_value_print_1): New function.
8020 (ada_value_print_inner): Rewrite.
8021
8022 2020-03-13 Tom Tromey <tom@tromey.com>
8023
8024 * cp-valprint.c (cp_print_value_fields): Update.
8025 (cp_print_value): New function.
8026
8027 2020-03-13 Tom Tromey <tom@tromey.com>
8028
8029 * m2-valprint.c (m2_value_print_inner): Use
8030 cp_print_value_fields.
8031 * cp-valprint.c (cp_print_value_fields): New function.
8032 * c-valprint.c (c_value_print_struct): New function.
8033 (c_value_print_inner): Use c_value_print_struct.
8034 * c-lang.h (cp_print_value_fields): Declare.
8035
8036 2020-03-13 Tom Tromey <tom@tromey.com>
8037
8038 * c-valprint.c (c_value_print_array): New function.
8039 (c_value_print_inner): Use it.
8040
8041 2020-03-13 Tom Tromey <tom@tromey.com>
8042
8043 * c-valprint.c (c_value_print_memberptr): New function.
8044 (c_value_print_inner): Use it.
8045
8046 2020-03-13 Tom Tromey <tom@tromey.com>
8047
8048 * c-valprint.c (c_value_print_int): New function.
8049 (c_value_print_inner): Use it.
8050
8051 2020-03-13 Tom Tromey <tom@tromey.com>
8052
8053 * c-valprint.c (c_value_print_ptr): New function.
8054 (c_value_print_inner): Use it.
8055
8056 2020-03-13 Tom Tromey <tom@tromey.com>
8057
8058 * c-valprint.c (c_value_print_inner): Rewrite.
8059
8060 2020-03-13 Tom Tromey <tom@tromey.com>
8061
8062 * valprint.c (generic_value_print_complex): New function.
8063 (generic_value_print): Use it.
8064
8065 2020-03-13 Tom Tromey <tom@tromey.com>
8066
8067 * valprint.c (generic_val_print_float): Don't call
8068 val_print_scalar_formatted.
8069 (generic_val_print, generic_value_print): Update.
8070
8071 2020-03-13 Tom Tromey <tom@tromey.com>
8072
8073 * valprint.c (generic_value_print_char): New function
8074 (generic_value_print): Use it.
8075
8076 2020-03-13 Tom Tromey <tom@tromey.com>
8077
8078 * valprint.c (generic_value_print_int): New function.
8079 (generic_value_print): Use it.
8080
8081 2020-03-13 Tom Tromey <tom@tromey.com>
8082
8083 * valprint.c (generic_value_print_bool): New function.
8084 (generic_value_print): Use it.
8085
8086 2020-03-13 Tom Tromey <tom@tromey.com>
8087
8088 * valprint.c (generic_val_print_func): Simplify.
8089 (generic_val_print, generic_value_print): Update.
8090
8091 2020-03-13 Tom Tromey <tom@tromey.com>
8092
8093 * valprint.c (generic_val_print_flags): Remove.
8094 (generic_val_print, generic_value_print): Update.
8095 (val_print_type_code_flags): Add original_value parameter.
8096
8097 2020-03-13 Tom Tromey <tom@tromey.com>
8098
8099 * valprint.c (generic_val_print): Update.
8100 (generic_value_print): Update.
8101 * valprint.c (generic_val_print_enum): Don't call
8102 val_print_scalar_formatted.
8103
8104 2020-03-13 Tom Tromey <tom@tromey.com>
8105
8106 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8107 * valprint.c (generic_value_print_ptr): New function.
8108
8109 2020-03-13 Tom Tromey <tom@tromey.com>
8110
8111 * valprint.c (generic_value_print): Rewrite.
8112
8113 2020-03-13 Tom Tromey <tom@tromey.com>
8114
8115 * p-valprint.c (pascal_object_print_value_fields)
8116 (pascal_object_print_value): New functions.
8117
8118 2020-03-13 Tom Tromey <tom@tromey.com>
8119
8120 * p-valprint.c (pascal_value_print_inner): Rewrite.
8121
8122 2020-03-13 Tom Tromey <tom@tromey.com>
8123
8124 * f-valprint.c (f_value_print_innner): Rewrite.
8125
8126 2020-03-13 Tom Tromey <tom@tromey.com>
8127
8128 * m2-valprint.c (m2_print_unbounded_array): New overload.
8129 (m2_print_unbounded_array): Update.
8130 (m2_print_array_contents): Take a struct value.
8131 (m2_value_print_inner): Rewrite.
8132
8133 2020-03-13 Tom Tromey <tom@tromey.com>
8134
8135 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8136 (d_value_print_inner): New function.
8137 * d-lang.h (d_value_print_inner): Declare.
8138 * d-lang.c (d_language_defn): Use d_value_print_inner.
8139
8140 2020-03-13 Tom Tromey <tom@tromey.com>
8141
8142 * go-valprint.c (go_value_print_inner): New function.
8143 * go-lang.h (go_value_print_inner): Declare.
8144 * go-lang.c (go_language_defn): Use go_value_print_inner.
8145
8146 2020-03-13 Tom Tromey <tom@tromey.com>
8147
8148 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8149 API.
8150 (rust_val_print): Rewrite.
8151 (rust_value_print_inner): New function, from rust_val_print.
8152 (rust_language_defn): Use rust_value_print_inner.
8153
8154 2020-03-13 Tom Tromey <tom@tromey.com>
8155
8156 * ada-valprint.c (ada_value_print_inner): New function.
8157 * ada-lang.h (ada_value_print_inner): Declare.
8158 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8159
8160 2020-03-13 Tom Tromey <tom@tromey.com>
8161
8162 * f-valprint.c (f_value_print_innner): New function.
8163 * f-lang.h (f_value_print_innner): Declare.
8164 * f-lang.c (f_language_defn): Use f_value_print_innner.
8165
8166 2020-03-13 Tom Tromey <tom@tromey.com>
8167
8168 * p-valprint.c (pascal_value_print_inner): New function.
8169 * p-lang.h (pascal_value_print_inner): Declare.
8170 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8171
8172 2020-03-13 Tom Tromey <tom@tromey.com>
8173
8174 * m2-valprint.c (m2_value_print_inner): New function.
8175 * m2-lang.h (m2_value_print_inner): Declare.
8176 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8177
8178 2020-03-13 Tom Tromey <tom@tromey.com>
8179
8180 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8181 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8182 * c-valprint.c (c_value_print_inner): New function.
8183 * c-lang.h (c_value_print_inner): Declare.
8184 * c-lang.c (c_language_defn, cplus_language_defn)
8185 (asm_language_defn, minimal_language_defn): Use
8186 c_value_print_inner.
8187
8188 2020-03-13 Tom Tromey <tom@tromey.com>
8189
8190 * p-valprint.c (pascal_object_print_value_fields): Now static.
8191 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8192
8193 2020-03-13 Tom Tromey <tom@tromey.com>
8194
8195 * c-valprint.c (c_val_print_array): Simplify.
8196
8197 2020-03-13 Tom Tromey <tom@tromey.com>
8198
8199 * valprint.c (value_print_array_elements): New function.
8200 * valprint.h (value_print_array_elements): Declare.
8201
8202 2020-03-13 Tom Tromey <tom@tromey.com>
8203
8204 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8205 * mips-tdep.c (mips_print_register): Use
8206 value_print_scalar_formatted.
8207
8208 2020-03-13 Tom Tromey <tom@tromey.com>
8209
8210 * valprint.h (value_print_scalar_formatted): Declare.
8211 * valprint.c (value_print_scalar_formatted): New function.
8212
8213 2020-03-13 Tom Tromey <tom@tromey.com>
8214
8215 * valprint.h (generic_value_print): Declare.
8216 * valprint.c (generic_value_print): New function.
8217
8218 2020-03-13 Tom Tromey <tom@tromey.com>
8219
8220 * valprint.c (do_val_print): Call la_value_print_inner, if
8221 available.
8222 * rust-lang.c (rust_language_defn): Update.
8223 * p-lang.c (pascal_language_defn): Update.
8224 * opencl-lang.c (opencl_language_defn): Update.
8225 * objc-lang.c (objc_language_defn): Update.
8226 * m2-lang.c (m2_language_defn): Update.
8227 * language.h (struct language_defn) <la_value_print_inner>: New
8228 member.
8229 * language.c (unknown_language_defn, auto_language_defn): Update.
8230 * go-lang.c (go_language_defn): Update.
8231 * f-lang.c (f_language_defn): Update.
8232 * d-lang.c (d_language_defn): Update.
8233 * c-lang.c (c_language_defn, cplus_language_defn)
8234 (asm_language_defn, minimal_language_defn): Update.
8235 * ada-lang.c (ada_language_defn): Update.
8236
8237 2020-03-13 Tom Tromey <tom@tromey.com>
8238
8239 * c-valprint.c (c_value_print): Use common_val_print.
8240
8241 2020-03-13 Tom Tromey <tom@tromey.com>
8242
8243 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8244
8245 2020-03-13 Tom Tromey <tom@tromey.com>
8246
8247 * f-valprint.c (f77_print_array_1, f_val_print): Use
8248 common_val_print.
8249
8250 2020-03-13 Tom Tromey <tom@tromey.com>
8251
8252 * riscv-tdep.c (riscv_print_one_register_info): Use
8253 common_val_print.
8254
8255 2020-03-13 Tom Tromey <tom@tromey.com>
8256
8257 * mi/mi-main.c (output_register): Use common_val_print.
8258
8259 2020-03-13 Tom Tromey <tom@tromey.com>
8260
8261 * infcmd.c (default_print_one_register_info): Use
8262 common_val_print.
8263
8264 2020-03-13 Tom Tromey <tom@tromey.com>
8265
8266 * valprint.h (common_val_print_checked): Declare.
8267 * valprint.c (common_val_print_checked): New function.
8268 * stack.c (print_frame_arg): Use common_val_print_checked.
8269
8270 2020-03-13 Tom Tromey <tom@tromey.com>
8271
8272 * valprint.c (do_val_print): New function, from val_print.
8273 (val_print): Use do_val_print.
8274 (common_val_print): Use do_val_print.
8275
8276 2020-03-13 Tom Tromey <tom@tromey.com>
8277
8278 * valprint.c (value_print): Use scoped_value_mark.
8279
8280 2020-03-13 Tom de Vries <tdevries@suse.de>
8281
8282 PR symtab/25646
8283 * psymtab.c (partial_symtab::partial_symtab): Don't set
8284 globals_offset and statics_offset. Push element onto
8285 current_global_psymbols and current_static_psymbols stacks.
8286 (concat): New function.
8287 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8288 element from current_global_psymbols and current_static_psymbols
8289 stacks. Concat popped elements to global_psymbols and
8290 static_symbols.
8291 (add_psymbol_to_list): Use current_global_psymbols and
8292 current_static_psymbols stacks.
8293 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8294 current_static_psymbols fields.
8295
8296 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8297
8298 * corelow.c (sniff_core_bfd): Remove.
8299 (class core_target) <m_core_vec>: Remove.
8300 (core_target::core_target): Update.
8301 (core_file_fns): Remove.
8302 (deprecated_add_core_fns): Remove.
8303 (default_core_sniffer): Remove.
8304 (sniff_core_bfd): Remove.
8305 (default_check_format): Remove.
8306 (gdb_check_format): Remove.
8307 (core_target_open): Update.
8308 (core_target::get_core_register_section): Update.
8309 (get_core_registers_cb): Update.
8310 (core_target::fetch_registers): Update.
8311 * gdbcore.h (struct core_fns): Remove.
8312 (deprecated_add_core_fns): Remove.
8313 (default_core_sniffer): Remove.
8314 (default_check_format): Remove.
8315
8316 2020-03-12 Tom Tromey <tom@tromey.com>
8317
8318 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8319 CORE_ADDR.
8320 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8321
8322 2020-03-12 Tom Tromey <tom@tromey.com>
8323
8324 * remote.c (remote_target::download_tracepoint)
8325 (remote_target::enable_tracepoint)
8326 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8327 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8328 sprintf_vma.
8329
8330 2020-03-12 Tom Tromey <tom@tromey.com>
8331
8332 * symfile-mem.c: Update CORE_ADDR size assert.
8333
8334 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8335
8336 * selftest.m4: Move to gdbsupport/.
8337 * acinclude.m4: Update path to selftest.m4.
8338
8339 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8340
8341 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8342 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8343 gdbarch-selfselftests.c and selftest-arch.c.
8344 (SUBDIR_UNITTESTS_OBS): Rename to...
8345 (SELFTESTS_OBS): ... this.
8346 (COMMON_SFILES): Remove disasm-selftests.c and
8347 gdbarch-selftests.c.
8348 * configure.ac: Don't add selftest-arch.{c,o} to
8349 CONFIG_{SRCS,OBS}.
8350 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8351 preprocessor conditions.
8352
8353 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8354
8355 * configure.ac: Don't source bfd/development.sh.
8356 * selftest.m4: Modify comment.
8357 * configure: Re-generate.
8358
8359 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8360
8361 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8362 not "true" or "false".
8363 * configure: Re-generate.
8364
8365 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8366
8367 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8368 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8369 renamed to arm_nbsd_supply_gregset.
8370 (fetch_register): Update to call arm_nbsd_supply_gregset.
8371 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8372 (arm_netbsd_nat_target::fetch_registers): Update.
8373 (fetch_elfcore_registers): Removed.
8374 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8375 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8376 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8377 not require NetBSD system headers.
8378 (arm_nbsd_regset): New struct.
8379 (arm_nbsd_iterate_over_regset_sections): New function.
8380 (arm_netbsd_init_abi_common): Updated to call
8381 set_gdbarch_iterate_over_regset_sections.
8382 * arm-nbsd-tdep.h: New file.
8383
8384 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8385
8386 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8387 recursion.
8388
8389 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8390
8391 * configure: Re-generate.
8392
8393 2020-03-11 Tom Tromey <tromey@adacore.com>
8394
8395 * ada-typeprint.c (print_choices): Fix comment.
8396
8397 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8398
8399 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8400 previous item in the list, when the list has no items.
8401
8402 2020-03-11 Tom de Vries <tdevries@suse.de>
8403
8404 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8405 PROP_LOCLIST handling code.
8406
8407 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8408
8409 * buildsym-legacy.c (record_line): Pass extra parameter to
8410 record_line.
8411 * buildsym.c (buildsym_compunit::record_line): Take an extra
8412 parameter, reduce duplication in the line table, and record the
8413 is_stmt flag in the line table.
8414 * buildsym.h (buildsym_compunit::record_line): Add extra
8415 parameter.
8416 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8417 non-statement lines.
8418 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8419 this to the symtab builder.
8420 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8421 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8422 through to dwarf_record_line_1.
8423 * infrun.c (process_event_stop_test): When stepping, don't stop at
8424 a non-statement instruction, and only refresh the step info when
8425 we land in the middle of a line's range. Also add an extra
8426 comment.
8427 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8428 field.
8429 * record-btrace.c (btrace_find_line_range): Only record lines
8430 marked as is-statement.
8431 * stack.c (frame_show_address): Show the frame address if we are
8432 in a non-statement sal.
8433 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8434 (maintenance_print_one_line_table): Print a header for the is_stmt
8435 column, and include is_stmt information in the output.
8436 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8437 preference to non-statements.
8438 (find_pcs_for_symtab_line): Prefer is-statement entries.
8439 (find_line_common): Likewise.
8440 * symtab.h (struct linetable_entry): Add is_stmt field.
8441 (struct symtab_and_line): Likewise.
8442 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8443 arranging the line table.
8444
8445 2020-03-07 Tom de Vries <tdevries@suse.de>
8446
8447 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8448 DIE.
8449
8450 2020-03-07 Tom Tromey <tom@tromey.com>
8451
8452 * valops.c (value_literal_complex): Remove obsolete comment.
8453 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8454 comment.
8455
8456 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8457
8458 * infrun.h: Forward-declare thread_info.
8459 (set_step_info): Add thread_info parameter, add doc.
8460 * infrun.c (set_step_info): Add thread_info parameter, move doc
8461 to header.
8462 * infrun.c (process_event_stop_test): Pass thread to
8463 set_step_info call.
8464 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8465 set_step_info.
8466 (prepare_one_step): Add thread_info parameter, pass it to
8467 set_step_frame and prepare_one_step (recursive) call.
8468 (step_1): Pass thread to prepare_one_step call.
8469 (step_command_fsm::should_stop): Pass thread to
8470 prepare_one_step.
8471 (until_next_fsm): Pass thread to set_step_frame call.
8472 (finish_command): Pass thread to set_step_info call.
8473
8474 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8475
8476 * windows-tdep.c (windows_solib_create_inferior_hook):
8477 Check if inferior is running.
8478
8479 2020-03-06 Tom de Vries <tdevries@suse.de>
8480
8481 * NEWS: Fix "the the".
8482 * ctfread.c: Same.
8483
8484 2020-03-06 Tom de Vries <tdevries@suse.de>
8485
8486 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8487
8488 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8489
8490 * .dir-locals.el: Add a comment referencing the other copies of
8491 this file.
8492
8493 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8494
8495 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8496 psargs.
8497
8498 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8499
8500 * .gitattributes: New file.
8501
8502 2020-03-04 Tom Tromey <tom@tromey.com>
8503
8504 * symmisc.c (print_symbol_bcache_statistics)
8505 (print_objfile_statistics): Update.
8506 * symfile.c (allocate_symtab): Use intern.
8507 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8508 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8509 macro_cache>: Remove.
8510 <string_cache>: New member.
8511 (struct objfile) <intern>: New methods.
8512 * elfread.c (elf_symtab_read): Use intern.
8513 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8514 (dwarf2_compute_name, dwarf2_physname)
8515 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8516 names.
8517 (guess_partial_die_structure_name): Update.
8518 (partial_die_info::fixup): Intern name.
8519 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8520 name.
8521 (dwarf2_name): Intern name. Update.
8522 * buildsym.c (buildsym_compunit::get_macro_table): Use
8523 string_cache.
8524
8525 2020-03-04 Tom Tromey <tom@tromey.com>
8526
8527 * jit.c (bfd_open_from_target_memory): Make "target" const.
8528 * corefile.c (gnutarget): Now const.
8529 * gdbcore.h (gnutarget): Now const.
8530
8531 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8532
8533 * NEWS: Mention support for WOW64 processes.
8534 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8535 (amd64_windows_segment_register_p): Remove static.
8536 (_initialize_amd64_windows_nat): Update.
8537 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8538 * i386-windows-nat.c (context_offset): Update.
8539 (i386_mappings): Rename and remove static.
8540 (i386_windows_segment_register_p): Remove static.
8541 (_initialize_i386_windows_nat): Update.
8542 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8543 (STATUS_WX86_SINGLE_STEP): New macro.
8544 (EnumProcessModulesEx): New macro.
8545 (Wow64SuspendThread): New macro.
8546 (Wow64GetThreadContext): New macro.
8547 (Wow64SetThreadContext): New macro.
8548 (Wow64GetThreadSelectorEntry): New macro.
8549 (windows_set_context_register_offsets): Add static.
8550 (windows_set_segment_register_p): Likewise.
8551 (windows_add_thread): Adapt for WOW64 processes.
8552 (windows_fetch_one_register): Likewise.
8553 (windows_nat_target::fetch_registers): Likewise.
8554 (windows_store_one_register): Likewise.
8555 (display_selector): Likewise.
8556 (display_selectors): Likewise.
8557 (handle_exception): Likewise.
8558 (windows_continue): Likewise.
8559 (windows_nat_target::resume): Likewise.
8560 (windows_add_all_dlls): Likewise.
8561 (do_initial_windows_stuff): Likewise.
8562 (windows_nat_target::attach): Likewise.
8563 (windows_get_exec_module_filename): Likewise.
8564 (windows_nat_target::create_inferior): Likewise.
8565 (windows_xfer_siginfo): Likewise.
8566 (_initialize_loadable): Initialize Wow64SuspendThread,
8567 Wow64GetThreadContext, Wow64SetThreadContext,
8568 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8569 * windows-nat.h (windows_set_context_register_offsets):
8570 Remove declaration.
8571 (windows_set_segment_register_p): Likewise.
8572 (i386_windows_segment_register_p): Add declaration.
8573 (amd64_windows_segment_register_p): Likewise.
8574
8575 2020-03-04 Luis Machado <luis.machado@linaro.org>
8576
8577 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8578 in "info registers" for AArch64/ARM.
8579
8580 The change caused "info registers" to not print GPR's.
8581
8582 gdb/ChangeLog:
8583
8584 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8585
8586 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8587 when reg->group is empty and reggroup is not.
8588
8589 2020-03-03 Tom Tromey <tromey@adacore.com>
8590
8591 * dwarf2/frame.c (struct dwarf2_frame_cache)
8592 <checked_tailcall_bottom, entry_cfa_sp_offset,
8593 entry_cfa_sp_offset_p>: Remove members.
8594 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8595 (dwarf2_frame_prev_register): Don't call
8596 dwarf2_tailcall_sniffer_first.
8597 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8598 * frame-unwind.c (add_unwinder): New fuction.
8599 (frame_unwind_init): Use it. Add tailcall unwinder.
8600
8601 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8602 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8603
8604 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8605 value should be printed as true.
8606
8607 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8608
8609 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8610 (windows_init_abi): Set and use windows_so_ops.
8611
8612 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8613
8614 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8615 when verifying if dealing with a convenience variable.
8616
8617 2020-03-03 Luis Machado <luis.machado@linaro.org>
8618
8619 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8620
8621 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8622
8623 * infrun.c (gdbarch_supports_displaced_stepping): New.
8624 (use_displaced_stepping): Break up conditions in smaller pieces.
8625 Use gdbarch_supports_displaced_stepping.
8626 (displaced_step_prepare_throw): Use
8627 gdbarch_supports_displaced_stepping.
8628
8629 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8630
8631 * NEWS: Mention new behaviour of the history filename.
8632 * top.c (write_history_p): Add comment.
8633 (show_write_history_p): Add header comment, give a different
8634 message when history writing is on, but the history filename is
8635 empty.
8636 (history_filename): Add comment.
8637 (history_filename_empty): New function.
8638 (show_history_filename): Add header comment, give a different
8639 message when the filename is empty.
8640 (init_history): Compare history_filename against nullptr, and only
8641 read history if the filename is not empty.
8642 (set_history_filename): Add header comment, and only make
8643 non-empty filenames absolute.
8644 (init_main): Make the filename argument to 'set history filename'
8645 optional.
8646
8647 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8648
8649 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8650 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8651 (fetch_fp_register): Update.
8652 (fetch_fp_regs): Update.
8653 (store_fp_register): Update.
8654 (store_fp_regs): Update.
8655 (arm_netbsd_nat_target::read_description): New function.
8656 (fetch_elfcore_registers): Update.
8657
8658 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8659
8660 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8661 general_thread if the stop reply is missing a thread-id.
8662 (remote_target::process_stop_reply): Use the first non-exited
8663 thread if the target didn't pass a thread-id.
8664 * infrun.c (do_target_wait): Move call to
8665 switch_to_inferior_no_thread to ....
8666 (do_target_wait_1): ... here.
8667
8668 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8669
8670 * debuginfod-support.c: Include defs.h first.
8671
8672 2020-02-28 Tom de Vries <tdevries@suse.de>
8673
8674 * symfile.c (set_initial_language): Use default language for lookup.
8675
8676 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8677
8678 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8679 reader variable, pass `this` to read_cutu_die_from_dwo.
8680
8681 2020-02-27 Aaron Merey <amerey@redhat.com>
8682
8683 * source.c (open_source_file): Check for nullptr when computing
8684 srcpath.
8685
8686 2020-02-27 Tom Tromey <tromey@adacore.com>
8687
8688 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8689 member.
8690 (dwarf2_add_field): Don't update nfields.
8691 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8692
8693 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8694
8695 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8696 abs.
8697
8698 2020-02-26 Tom Tromey <tom@tromey.com>
8699
8700 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8701 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8702 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8703 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8704 per_cu_data.
8705
8706 2020-02-26 Tom Tromey <tom@tromey.com>
8707
8708 * dwarf2/index-write.c (psym_index_map): Change type.
8709 (add_address_entry_worker, write_one_signatured_type)
8710 (recursively_count_psymbols, recursively_write_psymbols)
8711 (class debug_names, psyms_seen_size, write_gdbindex)
8712 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8713
8714 2020-02-26 Aaron Merey <amerey@redhat.com>
8715
8716 * Makefile.in: Handle optional debuginfod support.
8717 * NEWS: Update.
8718 * README: Add --with-debuginfod summary.
8719 * config.in: Regenerate.
8720 * configure: Regenerate.
8721 * configure.ac: Handle optional debuginfod support.
8722 * debuginfod-support.c: debuginfod helper functions.
8723 * debuginfod-support.h: Ditto.
8724 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8725 summary.
8726 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8727 when a dwz file cannot be found.
8728 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8729 debuginfo file cannot be found.
8730 * source.c (open_source_file): Query debuginfod servers when a
8731 source file cannot be found.
8732 * top.c (print_gdb_configuration): Include
8733 --{with,without}-debuginfod in the output.
8734
8735 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8736
8737 * thread.c (thr_try_catch_cmd): Print thread name.
8738
8739 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8740
8741 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8742 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8743 dwarf2_fetch_die_type_sect_off): Move to...
8744 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8745 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8746 dwarf2_fetch_die_type_sect_off): ... here.
8747 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8748 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8749 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8750
8751 2020-02-26 Tom de Vries <tdevries@suse.de>
8752
8753 PR gdb/25603
8754 * symfile.c (set_initial_language): Exit-early if
8755 language_mode == language_mode_manual.
8756
8757 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8758
8759 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8760 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8761 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8762
8763 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8764
8765 * gdbtypes.c (create_array_type_with_stride): Handle negative
8766 array strides.
8767 * valarith.c (value_subscripted_rvalue): Likewise.
8768
8769 2020-02-25 Luis Machado <luis.machado@linaro.org>
8770
8771 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8772
8773 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8774
8775 * loc.h (dwarf2_get_die_type): Move to...
8776 * read.h (dwarf2_get_die_type): ... here.
8777 * read.c (dwarf2_get_die_type): Move doc to header.
8778
8779 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8780
8781 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8782 'gnulib/Makefile.in' to the list.
8783
8784 2020-02-24 Tom Tromey <tom@tromey.com>
8785
8786 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8787 Remove.
8788 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8789 XOBNEWVEC.
8790
8791 2020-02-24 Tom Tromey <tom@tromey.com>
8792
8793 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8794 New method.
8795 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8796 (dw2_do_instantiate_symtab, dw2_get_file_names)
8797 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8798
8799 2020-02-24 Tom Tromey <tom@tromey.com>
8800
8801 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8802 make_scoped_restore.
8803 (dwarf2_psymtab::read_symtab): Don't clear
8804 reading_partial_symbols.
8805
8806 2020-02-24 Tom de Vries <tdevries@suse.de>
8807
8808 PR gdb/25592
8809 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8810
8811 2020-02-24 Tom de Vries <tdevries@suse.de>
8812
8813 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8814 commands layout next/prev/regs.
8815
8816 2020-02-22 Tom Tromey <tom@tromey.com>
8817
8818 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8819 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8820
8821 2020-02-22 Tom Tromey <tom@tromey.com>
8822
8823 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8824
8825 2020-02-22 Tom Tromey <tom@tromey.com>
8826
8827 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8828 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8829 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8830 * tui/tui.c (_initialize_tui): Add usage text.
8831
8832 2020-02-22 Tom Tromey <tom@tromey.com>
8833
8834 * tui/tui-win.c (tui_set_focus_command)
8835 (tui_set_win_height_command): Use error_no_arg.
8836 (_initialize_tui_win): Update help text.
8837 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8838
8839 2020-02-22 Tom Tromey <tom@tromey.com>
8840
8841 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8842 * tui/tui-disasm.h (struct tui_disasm_window)
8843 <display_start_addr>: Declare.
8844 * tui/tui-source.h (struct tui_source_window)
8845 <display_start_addr>: Declare.
8846 * tui/tui-winsource.h (struct tui_source_window_base)
8847 <show_source_line, display_start_addr>: New methods.
8848 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8849 Rename and move to protected section.
8850 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8851 (tui_source_window_base::do_erase_source_content): Update.
8852 (tui_source_window_base::show_source_line): Now a method.
8853 (tui_source_window_base::show_source_content)
8854 (tui_source_window_base::tui_source_window_base)
8855 (tui_source_window_base::rerender)
8856 (tui_source_window_base::refill)
8857 (tui_source_window_base::do_scroll_horizontal)
8858 (tui_source_window_base::set_is_exec_point_at)
8859 (tui_source_window_base::update_breakpoint_info)
8860 (tui_source_window_base::update_exec_info): Update.
8861 * tui/tui-source.c (tui_source_window::set_contents)
8862 (tui_source_window::showing_source_p)
8863 (tui_source_window::do_scroll_vertical)
8864 (tui_source_window::location_matches_p)
8865 (tui_source_window::line_is_displayed): Update.
8866 (tui_source_window::display_start_addr): New method.
8867 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8868 (tui_disasm_window::do_scroll_vertical)
8869 (tui_disasm_window::location_matches_p): Update.
8870 (tui_disasm_window::display_start_addr): New method.
8871
8872 2020-02-22 Tom Tromey <tom@tromey.com>
8873
8874 * NEWS: Add entry for gdb.register_window_type.
8875 * tui/tui-layout.h (window_factory): New typedef.
8876 (tui_register_window): Declare.
8877 * tui/tui-layout.c (saved_tui_windows): New global.
8878 (tui_apply_current_layout): Use it.
8879 (tui_register_window): New function.
8880 * python/python.c (do_start_initialization): Call
8881 gdbpy_initialize_tui.
8882 (python_GdbMethods): Add "register_window_type" function.
8883 * python/python-internal.h (gdbpy_register_tui_window)
8884 (gdbpy_initialize_tui): Declare.
8885 * python/py-tui.c: New file.
8886 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8887
8888 2020-02-22 Tom Tromey <tom@tromey.com>
8889
8890 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8891
8892 2020-02-22 Tom Tromey <tom@tromey.com>
8893
8894 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8895 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8896 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8897 (tui_set_win_focus_to): Move from tui-win.c.
8898
8899 2020-02-22 Tom Tromey <tom@tromey.com>
8900
8901 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8902 functions.
8903 (known_window_types): New global.
8904 (tui_get_window_by_name): Reimplement.
8905 (initialize_known_windows): New function.
8906 (validate_window_name): Rewrite.
8907 (_initialize_tui_layout): Call initialize_known_windows.
8908
8909 2020-02-22 Tom Tromey <tom@tromey.com>
8910
8911 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8912 Remove constants.
8913 * tui/tui-winsource.h (struct tui_source_window_base)
8914 <tui_source_window_base>: Remove parameter.
8915 * tui/tui-winsource.c
8916 (tui_source_window_base::tui_source_window_base): Remove
8917 parameter.
8918 (tui_source_window_base::refill): Update.
8919 * tui/tui-stack.h (struct tui_locator_window)
8920 <tui_locator_window>: Update.
8921 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8922 Default the constructor.
8923 * tui/tui-regs.h (struct tui_data_item_window)
8924 <tui_data_item_window>: Default the constructor.
8925 (struct tui_data_window) <tui_data_window>: Likewise.
8926 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8927 Default the constructor.
8928 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8929 Default the constructor.
8930 <type>: Remove.
8931 (struct tui_win_info) <tui_win_info>: Default the constructor.
8932 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8933 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8934 Default the constructor.
8935
8936 2020-02-22 Tom Tromey <tom@tromey.com>
8937
8938 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8939 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8940 * tui/tui-win.c (tui_resize_all): Don't call
8941 tui_delete_invisible_windows.
8942 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8943 done.
8944 (tui_set_layout): Update.
8945 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8946 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8947 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8948
8949 2020-02-22 Tom Tromey <tom@tromey.com>
8950
8951 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8952 correctly.
8953
8954 2020-02-22 Tom Tromey <tom@tromey.com>
8955
8956 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8957
8958 2020-02-22 Tom Tromey <tom@tromey.com>
8959
8960 * tui/tui-winsource.h (struct tui_source_window_iterator)
8961 <inner_iterator>: New etytypedef.
8962 <tui_source_window_iterator>: Take "end" parameter.
8963 <tui_source_window_iterator>: Take iterator.
8964 <operator*, advance>: Update.
8965 <m_iter>: Change type.
8966 <m_end>: New field.
8967 (struct tui_source_windows) <begin, end>: Update.
8968 * tui/tui-layout.c (tui_windows): New global.
8969 (tui_apply_current_layout): Clear tui_windows.
8970 (tui_layout_window::apply): Update tui_windows.
8971 * tui/tui-data.h (tui_windows): Declare.
8972 (all_tui_windows): Now inline function.
8973 (class tui_window_iterator, struct all_tui_windows): Remove.
8974
8975 2020-02-22 Tom Tromey <tom@tromey.com>
8976
8977 PR tui/17850:
8978 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8979 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8980 "height" argument.
8981 (class tui_layout_window) <get_sizes>: Likewise.
8982 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8983 argument.
8984 <get_sizes>: Add "height" argument.
8985 <m_vertical>: New field.
8986 * tui/tui-layout.c (tui_layout_split::clone): Update.
8987 (tui_layout_split::get_sizes): Add "height" argument.
8988 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8989 (tui_new_layout_command): Parse "-horizontal".
8990 (_initialize_tui_layout): Update help string.
8991 (tui_layout_split::specification): Add "-horizontal" when needed.
8992 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8993 argument.
8994 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8995 New methods.
8996
8997 2020-02-22 Tom Tromey <tom@tromey.com>
8998
8999 * tui/tui-layout.h (enum tui_adjust_result): New.
9000 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9001 (class tui_layout_window) <adjust_size>: Return
9002 tui_adjust_result. Rewrite.
9003 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9004 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9005
9006 2020-02-22 Tom Tromey <tom@tromey.com>
9007
9008 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9009 parameter and return types.
9010 (class tui_layout_base) <specification>: Add "depth".
9011 (class tui_layout_window) <specification>: Add "depth".
9012 (class tui_layout_split) <specification>: Add "depth".
9013 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9014 and return types.
9015 (tui_new_layout_command): Parse sub-layouts.
9016 (_initialize_tui_layout): Update help string.
9017 (tui_layout_window::specification): Add "depth".
9018 (add_layout_command): Update.
9019
9020 2020-02-22 Tom Tromey <tom@tromey.com>
9021
9022 * NEWS: Add "tui new-layout" item.
9023 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9024 Add new-layout command to help text.
9025 (validate_window_name): New function.
9026 (tui_new_layout_command): New function.
9027 (_initialize_tui_layout): Register "new-layout".
9028 (tui_layout_window::specification): New method.
9029 (tui_layout_window::specification): New method.
9030 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9031 method.
9032 (class tui_layout_window) <specification>: New method.
9033 (class tui_layout_split) <specification>: New method.
9034
9035 2020-02-22 Tom Tromey <tom@tromey.com>
9036
9037 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9038 * tui/tui-win.c (window_name_completer): Update comment.
9039 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9040 Declare method.
9041 (class tui_layout_window) <replace_window>: Likewise.
9042 (class tui_layout_split) <replace_window>: Likewise.
9043 (tui_set_layout): Don't declare.
9044 (tui_set_initial_layout): Declare function.
9045 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9046 (asm_regs_layout): New globals.
9047 (tui_current_layout, show_layout): Remove.
9048 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9049 (find_layout, tui_apply_layout): New function.
9050 (layout_completer): Remove.
9051 (tui_next_layout): Reimplement.
9052 (tui_next_layout_command): New function.
9053 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9054 (tui_regs_layout): Reimplement.
9055 (tui_regs_layout_command): New function.
9056 (extract_display_start_addr): Rewrite.
9057 (next_layout, prev_layout): Remove.
9058 (tui_layout_window::replace_window): New method.
9059 (tui_layout_split::replace_window): New method.
9060 (destroy_layout): New function.
9061 (layout_list): New global.
9062 (add_layout_command): New function.
9063 (initialize_layouts): Update.
9064 (tui_layout_command): New function.
9065 (_initialize_tui_layout): Install "layout" commands.
9066 * tui/tui-data.h (enum tui_layout_type): Remove.
9067 (tui_current_layout): Don't declare.
9068
9069 2020-02-22 Tom Tromey <tom@tromey.com>
9070
9071 * tui/tui-regs.c (tui_reg_layout): Remove.
9072 (tui_reg_command): Use tui_regs_layout.
9073 * tui/tui-layout.h (tui_reg_command): Declare.
9074 * tui/tui-layout.c (tui_reg_command): New function.
9075
9076 2020-02-22 Tom Tromey <tom@tromey.com>
9077
9078 * tui/tui.c (tui_rl_delete_other_windows): Call
9079 tui_remove_some_windows.
9080 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9081 Declare method.
9082 (class tui_layout_window) <remove_windows>: New method.
9083 (class tui_layout_split) <remove_windows>: Declare.
9084 (tui_remove_some_windows): Declare.
9085 * tui/tui-layout.c (tui_remove_some_windows): New function.
9086 (tui_layout_split::remove_windows): New method.
9087
9088 2020-02-22 Tom Tromey <tom@tromey.com>
9089
9090 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9091 * tui/tui-layout.h (tui_next_layout): Declare.
9092 * tui/tui-layout.c (tui_next_layout): New function.
9093
9094 2020-02-22 Tom Tromey <tom@tromey.com>
9095
9096 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9097 correct coordinates.
9098
9099 2020-02-22 Tom Tromey <tom@tromey.com>
9100
9101 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9102 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9103 DATA_WIN case.
9104
9105 2020-02-22 Tom Tromey <tom@tromey.com>
9106
9107 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9108 TUI_DISASM_WIN, not tui_win_list.
9109
9110 2020-02-22 Tom Tromey <tom@tromey.com>
9111
9112 * valprint.c (generic_val_print_enum_1)
9113 (val_print_type_code_flags): Style member names.
9114 * rust-lang.c (val_print_struct, rust_print_enum)
9115 (rust_print_struct_def, rust_internal_print_type): Style member
9116 names.
9117 * p-valprint.c (pascal_object_print_value_fields): Style member
9118 names. Only call fprintf_symbol_filtered for static members.
9119 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9120 * f-valprint.c (f_val_print): Style member names.
9121 * f-typeprint.c (f_type_print_base): Style member names.
9122 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9123 call fprintf_symbol_filtered for static members.
9124 (cp_print_class_member): Style member names.
9125 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9126 member names.
9127 * ada-valprint.c (ada_print_scalar): Style enum names.
9128 (ada_val_print_enum): Likewise.
9129 * ada-typeprint.c (print_enum_type): Style enum names.
9130
9131 2020-02-21 Tom Tromey <tom@tromey.com>
9132
9133 * psympriv.h (struct partial_symtab): Update comment.
9134
9135 2020-02-21 Tom Tromey <tromey@adacore.com>
9136
9137 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9138 type is CORE_ADDR.
9139
9140 2020-02-21 Tom de Vries <tdevries@suse.de>
9141
9142 PR gdb/25534
9143 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9144 if dependencies[i]->user != NULL.
9145
9146 2020-02-21 Ali Tamur <tamur@google.com>
9147
9148 * dwarf2/read.c (dwarf2_name): Add null check.
9149
9150 2020-02-20 Tom Tromey <tom@tromey.com>
9151
9152 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9153 ">=", in binary search.
9154 (dwarf2_find_containing_comp_unit): New overload.
9155 (run_test): New self-test.
9156 (_initialize_dwarf2_read): Register new test.
9157
9158 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9159
9160 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9161 * riscv-tdep.h: Likewise.
9162 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9163 rv32-only CSR.
9164 * features/riscv/64bit-csr.xml: Regenerated.
9165
9166 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9167 Tom Tromey <tom@tromey.com>
9168
9169 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9170 of 'fputc_unfiltered'.
9171 (putchar_unfiltered): Call 'fputc_unfiltered'.
9172 (fputc_unfiltered): Call 'fputs_unfiltered'.
9173
9174 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9175
9176 * config.in: Regenerate.
9177 * configure: Regenerate.
9178 * configure.ac: Add --with-python-libdir option.
9179 * main.c: Use WITH_PYTHON_LIBDIR.
9180
9181 2020-02-19 Tom Tromey <tom@tromey.com>
9182
9183 * symtab.c (general_symbol_info::compute_and_set_names): Use
9184 obstack_strndup. Simplify call to symbol_set_demangled_name.
9185
9186 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9187
9188 * dwarf2/read.c (allocate_signatured_type_table,
9189 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9190 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9191 Remove objfile parameter, update all callers.
9192
9193 2020-02-19 Doug Evans <dje@google.com>
9194
9195 PR rust/25535
9196 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9197 rust_enum_variant calculation.
9198
9199 2020-02-19 Tom Tromey <tromey@adacore.com>
9200
9201 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9202
9203 2020-02-19 Tom Tromey <tromey@adacore.com>
9204
9205 * ada-lang.c (cache_symbol): Use obstack_strdup.
9206
9207 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9208
9209 * configure: Regenerate.
9210
9211 2020-02-19 Tom Tromey <tromey@adacore.com>
9212
9213 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9214 NULL check.
9215
9216 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9217
9218 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9219
9220 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9221
9222 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9223 if GDBSERVER is not defined.
9224 (riscv_tdesc_cache): Likewise, also store const target_desc.
9225 (STATIC_IN_GDB): Define.
9226 (riscv_create_target_description): Update declaration with
9227 STATIC_IN_GDB.
9228 (riscv_lookup_target_description): New function, only define if
9229 GDBSERVER is not defined.
9230 * arch/riscv.h (riscv_create_target_description): Declare only
9231 when GDBSERVER is defined.
9232 (riscv_lookup_target_description): New declaration when GDBSERVER
9233 is not defined.
9234 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9235 (riscv_linux_read_features): ...this, and return
9236 riscv_gdbarch_features instead of target_desc.
9237 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9238 (riscv_linux_read_description): Rename to...
9239 (riscv_linux_read_features): ...this.
9240 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9241 Update to use riscv_gdbarch_features and
9242 riscv_lookup_target_description.
9243 * riscv-tdep.c (riscv_find_default_target_description): Use
9244 riscv_lookup_target_description instead of
9245 riscv_create_target_description.
9246
9247 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9248
9249 * valprint.c (generic_val_print_enum_1): When printing a flag
9250 enum with value 0 and there is no enumerator with value 0, print
9251 just "0" instead of "(unknown: 0x0)".
9252
9253 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9254
9255 * valprint.c (generic_val_print_enum_1): Print unknown part of
9256 flag enum in hex.
9257
9258 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9259
9260 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9261 flag enums to contain duplicate enumerators.
9262 * valprint.c (generic_val_print_enum_1): Update comment.
9263
9264 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9265
9266 * dwarf2/read.c: Include "count-one-bits.h".
9267 (update_enumeration_type_from_children): If an enumerator has
9268 multiple bits set, don't treat the enumeration as a "flag enum".
9269 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9270 of flag enums have 0 or 1 bit set.
9271
9272 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9273
9274 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9275 conversion.
9276 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9277 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9278 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9279 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9280 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9281
9282 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9283
9284 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9285
9286 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9287
9288 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9289 displaced_step_closure_up.
9290 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9291 (struct displaced_step_closure_up):
9292 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9293 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9294 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9295 Likewise.
9296 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9297 * gdbarch.c, gdbarch.h: Re-generate.
9298 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9299 displaced_step_closure_up.
9300 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9301 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9302 * infrun.h (displaced_step_closure_up): New type alias.
9303 (struct displaced_step_inferior_state) <step_closure>: Change
9304 type to displaced_step_closure_up.
9305 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9306 displaced_step_closure_up.
9307 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9308
9309 2020-02-14 Tom Tromey <tom@tromey.com>
9310
9311 * minidebug.c (gnu_debug_key): New global.
9312 (find_separate_debug_file_in_section): Use it.
9313
9314 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9315
9316 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9317 std::unique_ptr.
9318 * gdbarch.c: Re-generate.
9319 * gdbarch.h: Re-generate.
9320 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9321 change.
9322 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9323 type to std::unique_ptr.
9324 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9325 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9326 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9327 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9328 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9329 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9330 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9331 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9332 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9333
9334 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9335
9336 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9337 std::unique_ptr.
9338 (displaced_step_clear): Rename to...
9339 (displaced_step_reset): ... this. Just call displaced->reset ().
9340 (displaced_step_clear_cleanup): Rename to...
9341 (displaced_step_reset_cleanup): ... this.
9342 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9343 (displaced_step_fixup): Likewise.
9344 (resume_1): Likewise.
9345 (handle_inferior_event): Restore child's memory before calling
9346 displaced_step_fixup on the parent.
9347 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9348 to std::unique_ptr.
9349 <step_closure>: Change type to std::unique_ptr.
9350
9351 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9352
9353 * arm-tdep.c: Include count-one-bits.h.
9354 (cleanup_block_store_pc): Use count_one_bits.
9355 (cleanup_block_load_pc): Use count_one_bits.
9356 (arm_copy_block_xfer): Use count_one_bits.
9357 (thumb2_copy_block_xfer): Use count_one_bits.
9358 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9359 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9360 (thumb_get_next_pcs_raw): Use count_one_bits.
9361 (arm_get_next_pcs_raw): Use count_one_bits_l.
9362 * arch/arm.c (bitcount): Remove.
9363 * arch/arm.h (bitcount): Remove.
9364
9365 2020-02-14 Tom Tromey <tromey@adacore.com>
9366
9367 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9368 Update.
9369 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9370 * dwarf2/loc.c (call_site_find_chain_1): Return
9371 unique_xmalloc_ptr.
9372 (call_site_find_chain): Likewise.
9373
9374 2020-02-14 Richard Biener <rguenther@suse.de>
9375
9376 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9377 on expression with division operators.
9378
9379 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9380
9381 * MAINTAINERS (Write After Approval): Adding myself.
9382
9383 2020-02-12 Tom Tromey <tom@tromey.com>
9384
9385 * event-loop.c (event_data, gdb_event, event_handler_func):
9386 Remove.
9387
9388 2020-02-12 Tom Tromey <tom@tromey.com>
9389
9390 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9391 (dwarf2_frame_objfile_data): Add comment.
9392 (find_comp_unit, set_comp_unit): New functions.
9393 (dwarf2_frame_find_fde): Use find_comp_unit.
9394 (dwarf2_build_frame_info): Use set_comp_unit.
9395
9396 2020-02-12 Tom Tromey <tom@tromey.com>
9397
9398 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9399 (comp_unit): Don't initialize objfile.
9400 (execute_cfa_program): Add text_offset parameter.
9401 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9402 (dwarf2_frame_cache): Update.
9403 (dwarf2_build_frame_info): Don't set "objfile" member.
9404
9405 2020-02-12 Tom Tromey <tom@tromey.com>
9406
9407 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9408 (decode_frame_entry): Likewise.
9409 (dwarf2_build_frame_info): Update.
9410
9411 2020-02-12 Tom Tromey <tom@tromey.com>
9412
9413 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9414 (decode_frame_entry_1): Use the comp_unit obstack.
9415
9416 2020-02-12 Tom Tromey <tom@tromey.com>
9417
9418 * dwarf2/frame.c (struct comp_unit): Add initializers and
9419 constructor.
9420 (dwarf2_frame_objfile_data): Store a comp_unit.
9421 (dwarf2_frame_find_fde): Update.
9422 (dwarf2_build_frame_info): Use "new".
9423
9424 2020-02-12 Tom Tromey <tom@tromey.com>
9425
9426 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9427 (dwarf2_fde_table): Typedef for std::vector.
9428 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9429 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9430 (decode_frame_entry): Update.
9431 (dwarf2_build_frame_info): Use "new".
9432
9433 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9434
9435 * arm-tdep.c (arm_gdbarch_init): Update.
9436 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9437 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9438 have_neon, is_m>: Change to bool.
9439
9440 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9441
9442 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9443
9444 2020-02-12 Tom Tromey <tom@tromey.com>
9445
9446 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9447
9448 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9449
9450 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9451 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9452
9453 2020-02-11 Tom Tromey <tom@tromey.com>
9454
9455 * psymtab.h: Update comment.
9456
9457 2020-02-11 Tom Tromey <tom@tromey.com>
9458
9459 * gdb_obstack.h (struct auto_obstack): Use
9460 DISABLE_COPY_AND_ASSIGN.
9461
9462 2020-02-11 Tom Tromey <tom@tromey.com>
9463
9464 * dwarf2/frame.h (struct objfile): Don't forward declare.
9465
9466 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9467
9468 * cris-tdep.c (cris_supply_gregset): Change signature to match
9469 what struct regset expects.
9470 (cris_regset): New struct.
9471 (fetch_core_registers): Remove.
9472 (cris_iterate_over_regset_sections): New function.
9473 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9474 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9475
9476 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9477
9478 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9479 registers.
9480
9481 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9482
9483 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9484
9485 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9486
9487 * configure: Re-generate.
9488
9489 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9490
9491 * configure: Re-generate.
9492
9493 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9494
9495 * acinclude: Update warning.m4 path.
9496 * warning.m4: Move to gdbsupport.
9497
9498 2020-02-11 Tom Tromey <tromey@adacore.com>
9499
9500 * remote.c (remote_console_output): Update.
9501 * printcmd.c (printf_command): Update.
9502 * event-loop.c (gdb_wait_for_event): Update.
9503 * linux-nat.c (sigchld_handler): Update.
9504 * remote-sim.c (gdb_os_write_stdout): Update.
9505 (gdb_os_flush_stdout): Update.
9506 (gdb_os_flush_stderr): Update.
9507 (gdb_os_write_stderr): Update.
9508 * exceptions.c (print_exception): Update.
9509 * remote-fileio.c (remote_fileio_func_read): Update.
9510 (remote_fileio_func_write): Update.
9511 * tui/tui.c (tui_enable): Update.
9512 * tui/tui-interp.c (tui_interp::init): Update.
9513 * utils.c (init_page_info): Update.
9514 (putchar_unfiltered, fputc_unfiltered): Update.
9515 (gdb_flush): Update.
9516 (emit_style_escape): Update.
9517 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9518 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9519 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9520 (stderr_file::write): Update.
9521 (stderr_file::puts): Update.
9522 * ui-file.h (ui_file_isatty, ui_file_write)
9523 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9524 (ui_file_puts): Don't declare.
9525
9526 2020-02-10 Tom de Vries <tdevries@suse.de>
9527
9528 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9529 sentinel to char *.
9530
9531 2020-02-09 Tom de Vries <tdevries@suse.de>
9532
9533 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9534 filename if it matches "<artificial>".
9535
9536 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9537
9538 * windows-tdep.c (struct enum_value_name): New struct.
9539 (create_enum): New function.
9540 (windows_get_siginfo_type): Create and use enum types.
9541
9542 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9543
9544 * NEWS: Mention $_siginfo support for Windows.
9545 * windows-nat.c (handle_exception): Set siginfo_er.
9546 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9547 (windows_xfer_siginfo): New function.
9548 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9549 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9550 (init_windows_gdbarch_data): New function.
9551 (get_windows_gdbarch_data): New function.
9552 (windows_get_siginfo_type): New function.
9553 (windows_init_abi): Register windows_get_siginfo_type.
9554 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9555
9556 2020-02-08 Tom Tromey <tom@tromey.com>
9557
9558 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9559 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9560 <keep>: Declare method.
9561 <m_keep>: Remove member.
9562 <~cutu_reader>: Remove.
9563 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9564 (cutu_reader::cutu_reader): Update.
9565 (cutu_reader::keep): Rename from ~cutu_reader.
9566 (process_psymtab_comp_unit, build_type_psymtabs_1)
9567 (process_skeletonless_type_unit, load_partial_comp_unit)
9568 (load_full_comp_unit, dwarf2_read_addr_index)
9569 (read_signatured_type): Update.
9570
9571 2020-02-08 Tom Tromey <tom@tromey.com>
9572
9573 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9574 "want_partial_unit" parameter.
9575 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9576 Inline check for DW_TAG_partial_unit.
9577 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9578
9579 2020-02-08 Tom Tromey <tom@tromey.com>
9580
9581 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9582 read.c.
9583 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9584 read.c.
9585
9586 2020-02-08 Tom Tromey <tom@tromey.com>
9587
9588 * dwarf2/read.c (read_address): Move to comp-unit.c.
9589 (dwarf2_rnglists_process, dwarf2_ranges_process)
9590 (read_attribute_value, dwarf_decode_lines_1)
9591 (var_decode_location, decode_locdesc): Update.
9592 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9593 read.c. Remove "cu" parameter.
9594 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9595 method.
9596
9597 2020-02-08 Tom Tromey <tom@tromey.com>
9598
9599 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9600 (read_indirect_line_string): Update.
9601 * dwarf2/comp-unit.c (read_offset): Remove.
9602 (read_comp_unit_head): Update.
9603 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9604 method.
9605 (read_offset): Don't declare.
9606
9607 2020-02-08 Tom Tromey <tom@tromey.com>
9608
9609 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9610 * dwarf2/read.c (struct comp_unit_head): Move to
9611 dwarf2/comp-unit.h.
9612 (enum class rcuh_kind): Move to comp-unit.h.
9613 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9614 (read_comp_unit_head, error_check_comp_unit_head)
9615 (read_and_check_comp_unit_head): Move to comp-unit.c.
9616 (read_offset, dwarf_unit_type_name): Likewise.
9617 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9618 (cutu_reader::cutu_reader, read_call_site_scope)
9619 (find_partial_die, follow_die_offset): Update.
9620 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9621
9622 2020-02-08 Tom Tromey <tom@tromey.com>
9623
9624 * dwarf2/read.c (read_offset_1): Move to leb.c.
9625 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9626 (dwarf_decode_macro_bytes): Update.
9627 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9628 * dwarf2/leb.h (read_offset): Declare.
9629
9630 2020-02-08 Tom Tromey <tom@tromey.com>
9631
9632 * dwarf2/read.c (dwarf2_section_size): Remove.
9633 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9634 Update.
9635 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9636
9637 2020-02-08 Tom Tromey <tom@tromey.com>
9638
9639 * dwarf2/read.c (read_initial_length): Move to leb.c.
9640 * dwarf2/leb.h (read_initial_length): Declare.
9641 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9642 handle_nonstd parameter.
9643 * dwarf2/frame.c (read_initial_length): Remove.
9644 (decode_frame_entry_1): Update.
9645
9646 2020-02-08 Tom Tromey <tom@tromey.com>
9647
9648 * dwarf2/loc.c (dwarf2_find_location_expression)
9649 (dwarf_evaluate_loc_desc::get_tls_address)
9650 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9651 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9652 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9653 (dwarf2_compile_property_to_c)
9654 (dwarf2_loc_desc_get_symbol_read_needs)
9655 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9656 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9657 (loclist_describe_location, loclist_tracepoint_var_ref)
9658 (loclist_generate_c_location): Update.
9659 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9660 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9661 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9662 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9663 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9664 (dwarf2_per_cu_data::addr_size)
9665 (dwarf2_per_cu_data::ref_addr_size)
9666 (dwarf2_per_cu_data::text_offset)
9667 (dwarf2_per_cu_data::addr_type): Now methods.
9668 (per_cu_header_read_in): Make per_cu "const".
9669 (dwarf2_version): Remove.
9670 (dwarf2_per_cu_data::int_type): Now a method.
9671 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9672 (set_die_type, read_array_type, read_subrange_index_type)
9673 (read_tag_string_type, read_subrange_type): Update.
9674 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9675 offset_size, ref_addr_size, text_offset, addr_type, version,
9676 objfile, int_type, addr_sized_int_type>: Declare methods.
9677
9678 2020-02-08 Tom Tromey <tom@tromey.com>
9679
9680 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9681 Move earlier.
9682
9683 2020-02-08 Tom Tromey <tom@tromey.com>
9684
9685 * dwarf2/read.h (dwarf_line_debug): Declare.
9686 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9687 * dwarf2/read.c: Move line_header code to new files.
9688 (dwarf_line_debug): No longer static.
9689 * dwarf2/line-header.c: New file.
9690 * dwarf2/line-header.h: New file.
9691
9692 2020-02-08 Tom Tromey <tom@tromey.com>
9693
9694 * dwarf2/read.c (struct line_header) <file_full_name,
9695 file_file_name>: Return unique_xmalloc_ptr.
9696 (line_header::file_file_name): Update.
9697 (line_header::file_full_name): Update.
9698 (dw2_get_file_names_reader): Update.
9699 (macro_start_file): Update.
9700
9701 2020-02-08 Tom Tromey <tom@tromey.com>
9702
9703 * dwarf2/read.c (struct line_header) <file_full_name,
9704 file_file_name>: Declare methods.
9705 (dw2_get_file_names_reader): Update.
9706 (file_file_name): Now a method.
9707 (file_full_name): Likewise.
9708 (macro_start_file): Update.
9709
9710 2020-02-08 Tom Tromey <tom@tromey.com>
9711
9712 * dwarf2/read.c (dwarf_always_disassemble)
9713 (show_dwarf_always_disassemble): Move to loc.c.
9714 (_initialize_dwarf2_read): Move "always-disassemble" registration
9715 to loc.c.
9716 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9717 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9718 static.
9719 (show_dwarf_always_disassemble): Move from read.c.
9720 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9721
9722 2020-02-08 Tom Tromey <tom@tromey.com>
9723
9724 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9725 (create_quick_file_names_table): Return htab_up.
9726 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9727 Update.
9728 * dwarf2/read.h (struct dwarf2_per_objfile)
9729 <quick_file_names_table>: Now htab_up.
9730
9731 2020-02-08 Tom Tromey <tom@tromey.com>
9732
9733 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9734
9735 2020-02-08 Tom Tromey <tom@tromey.com>
9736
9737 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9738 Rewrite.
9739 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9740 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9741 (abbrev_table::abbrev_table): No longer inline.
9742 (ABBREV_HASH_SIZE): Remove.
9743 (abbrev_table::m_abbrevs): Now an htab_up.
9744
9745 2020-02-08 Tom Tromey <tom@tromey.com>
9746
9747 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9748 (cutu_reader): Update.
9749 (build_type_psymtabs_1): Update.
9750 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9751 (abbrev_table::alloc_abbrev): Update.
9752 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9753 (abbrev_table::read): New static method, renamed from
9754 abbrev_table_read_table.
9755 (abbrev_table::alloc_abbrev)
9756 (abbrev_table::add_abbrev): Now private.
9757 (abbrev_table::abbrev_table): Now private.
9758 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9759
9760 2020-02-08 Tom Tromey <tom@tromey.com>
9761
9762 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9763 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9764 htab_up.
9765
9766 2020-02-08 Tom Tromey <tom@tromey.com>
9767
9768 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9769 htab_up.
9770 (lookup_dwo_unit_in_dwp): Update.
9771 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9772 on obstack.
9773
9774 2020-02-08 Tom Tromey <tom@tromey.com>
9775
9776 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9777 obstack.
9778
9779 2020-02-08 Tom Tromey <tom@tromey.com>
9780
9781 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9782 line_header_hash.
9783 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9784 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9785 Change type to htab_up.
9786
9787 2020-02-08 Tom Tromey <tom@tromey.com>
9788
9789 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9790 htab_up. Don't allocate on obstack.
9791 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9792 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9793 Change type to htab_up.
9794
9795 2020-02-08 Tom Tromey <tom@tromey.com>
9796
9797 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9798 Change type to htab_up.
9799 * dwarf2/read.c (create_signatured_type_table_from_index)
9800 (create_signatured_type_table_from_debug_names)
9801 (create_all_type_units, add_type_unit)
9802 (lookup_dwo_signatured_type, lookup_signatured_type)
9803 (process_skeletonless_type_unit): Update.
9804 (create_debug_type_hash_table, create_debug_types_hash_table):
9805 Change type of types_htab.
9806 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9807 htab_up. Don't allocate on obstack.
9808 (create_cus_hash_table): Change type of cus_htab parameter.
9809 (struct dwo_file) <cus, tus>: Now htab_up.
9810 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9811 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9812 (queue_and_load_all_dwo_tus): Update.
9813 * dwarf2/index-write.c (write_gdbindex): Update.
9814 (write_debug_names): Update.
9815
9816 2020-02-08 Tom Tromey <tom@tromey.com>
9817
9818 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9819 dwarf2/read.c. Remove "next" member. Add constructor ntad
9820 destructor.
9821 (struct dwarf2_per_objfile) <queue>: New member.
9822 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9823 dwarf2/read.h.
9824 (dwarf2_queue, dwarf2_queue_tail): Remove.
9825 (class dwarf2_queue_guard): Add parameter to constructor. Use
9826 DISABLE_COPY_AND_ASSIGN.
9827 <m_per_objfile>: New member.
9828 <~dwarf2_queue_guard>: Rewrite.
9829 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9830 Update.
9831 (~dwarf2_queue_item): New.
9832
9833 2020-02-08 Tom Tromey <tom@tromey.com>
9834
9835 * dwarf2/read.c (struct die_info) <has_children>: New member.
9836 (dw2_get_file_names_reader): Remove has_children.
9837 (dw2_get_file_names): Update.
9838 (read_cutu_die_from_dwo): Remove has_children.
9839 (cutu_reader::init_tu_and_read_dwo_dies)
9840 (cutu_reader::cutu_reader): Update.
9841 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9842 Remove has_children.
9843 (build_type_psymtabs_1, process_skeletonless_type_unit)
9844 (load_partial_comp_unit, load_full_comp_unit): Update.
9845 (create_dwo_cu_reader): Remove has_children.
9846 (create_cus_hash_table, read_die_and_children): Update.
9847 (read_full_die_1,read_full_die): Remove has_children.
9848 (read_signatured_type): Update.
9849 (class cutu_reader) <has_children>: Remove.
9850
9851 2020-02-08 Tom Tromey <tom@tromey.com>
9852
9853 * dwarf2/expr.c: Rename from dwarf2expr.c.
9854 * dwarf2/expr.h: Rename from dwarf2expr.h.
9855 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9856 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9857 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9858 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9859 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9860 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9861 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9862 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9863 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9864 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9865 * dwarf2/loc.c: Rename from dwarf2loc.c.
9866 * dwarf2/loc.h: Rename from dwarf2loc.h.
9867 * dwarf2/read.c: Rename from dwarf2read.c.
9868 * dwarf2/read.h: Rename from dwarf2read.h.
9869 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9870 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9871 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9872 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9873 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9874 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9875 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9876 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9877 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9878 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9879 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9880 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9881 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9882 Update.
9883 * Makefile.in (COMMON_SFILES): Update.
9884 (HFILES_NO_SRCDIR): Update.
9885
9886 2020-02-08 Tom Tromey <tom@tromey.com>
9887
9888 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9889 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9890
9891 2020-02-08 Tom Tromey <tom@tromey.com>
9892
9893 * dwarf2read.h (struct die_info): Don't declare.
9894
9895 2020-02-08 Tom Tromey <tom@tromey.com>
9896
9897 * dwarf2read.h (die_info_ptr): Remove typedef.
9898
9899 2020-02-08 Tom Tromey <tom@tromey.com>
9900
9901 * dwarf2read.c (read_call_site_scope)
9902 (handle_data_member_location, dwarf2_add_member_fn)
9903 (mark_common_block_symbol_computed, read_common_block)
9904 (attr_to_dynamic_prop, partial_die_info::read)
9905 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9906 (dwarf2_symbol_mark_computed, set_die_type): Update.
9907 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9908 method.
9909 (attr_form_is_block): Don't declare.
9910 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9911
9912 2020-02-08 Tom Tromey <tom@tromey.com>
9913
9914 * dwarf2read.c (dwarf2_find_base_address, )
9915 (read_call_site_scope, rust_containing_type)
9916 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9917 (handle_data_member_location, dwarf2_add_member_fn)
9918 (get_alignment, read_structure_type, process_structure_scope)
9919 (mark_common_block_symbol_computed, read_common_block)
9920 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9921 (partial_die_info::read, read_attribute_value, new_symbol)
9922 (lookup_die_type, dwarf2_get_ref_die_offset)
9923 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9924 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9925 (dwarf2_symbol_mark_computed): Update.
9926 * dwarf2/attribute.h (struct attribute) <value_as_address,
9927 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9928 methods.
9929 (value_as_address, attr_form_is_section_offset)
9930 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9931 * dwarf2/attribute.c (attribute::value_as_address)
9932 (attribute::form_is_section_offset, attribute::form_is_constant)
9933 (attribute::form_is_ref): Now methods.
9934
9935 2020-02-08 Tom Tromey <tom@tromey.com>
9936
9937 * dwarf2read.c (struct attribute, DW_STRING)
9938 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9939 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9940 (attr_form_is_block, attr_form_is_section_offset)
9941 (attr_form_is_constant, attr_form_is_ref): Move.
9942 * dwarf2/attribute.h: New file.
9943 * dwarf2/attribute.c: New file, from dwarf2read.c.
9944 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9945
9946 2020-02-08 Tom Tromey <tom@tromey.com>
9947
9948 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9949 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9950 Move.
9951 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9952 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9953 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9954 abbrev.c.
9955 * dwarf2/abbrev.h: New file.
9956 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9957 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9958
9959 2020-02-08 Tom Tromey <tom@tromey.com>
9960
9961 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9962 (dwarf2_section_size, dwarf2_get_section_info)
9963 (create_signatured_type_table_from_debug_names)
9964 (create_addrmap_from_aranges, read_debug_names_from_section)
9965 (get_gdb_index_contents_from_section, read_comp_unit_head)
9966 (error_check_comp_unit_head, read_abbrev_offset)
9967 (create_debug_type_hash_table, init_cu_die_reader)
9968 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9969 (read_comp_units_from_section, create_cus_hash_table)
9970 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9971 (create_dwp_v2_section, dwarf2_rnglists_process)
9972 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9973 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9974 (read_indirect_string_from_dwz, read_addr_index_1)
9975 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9976 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9977 (fill_in_loclist_baton): Update.
9978 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9979 get_containing_section, get_bfd_owner, get_bfd_section,
9980 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9981 (dwarf2_read_section, get_section_name, get_section_file_name)
9982 (get_containing_section, get_section_bfd_owner)
9983 (get_section_bfd_section, get_section_name, get_section_file_name)
9984 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9985 declare.
9986 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9987 (dwarf2_section_info::get_bfd_owner)
9988 (dwarf2_section_info::get_bfd_section)
9989 (dwarf2_section_info::get_name)
9990 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9991 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9992 (dwarf2_section_info::read): Now methods.
9993 * dwarf-index-write.c (class debug_names): Update.
9994
9995 2020-02-08 Tom Tromey <tom@tromey.com>
9996
9997 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9998 Move to dwarf2/section.h.
9999 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10000 (get_section_bfd_section, get_section_name)
10001 (get_section_file_name, get_section_id, get_section_flags)
10002 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10003 dwarf2/section.c.
10004 * dwarf2/section.h: New file.
10005 * dwarf2/section.c: New file, from dwarf2read.c.
10006 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10007
10008 2020-02-08 Tom Tromey <tom@tromey.com>
10009
10010 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10011 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10012 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10013 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10014 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10015 * dwarf2/leb.h: New file, from dwarf2read.c.
10016 * dwarf2/leb.c: New file, from dwarf2read.c.
10017 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10018 Remove.
10019 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10020 (COMMON_SFILES): Add dwarf2/leb.c.
10021
10022 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10023
10024 GDB 9.1 released.
10025
10026 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10027
10028 PR gdb/25190:
10029 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10030 * gdb/remote.c (remote_console_output): Update.
10031 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10032 (ui_file_puts): ...this.
10033 * gdb/ui-file.h (ui_file_puts): Add declaration.
10034 * gdb/utils.c (emit_style_escape): Update.
10035 (flush_wrap_buffer): Update.
10036 (fputs_maybe_filtered): Update.
10037 (fputs_unfiltered): Add function.
10038
10039 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10040
10041 * gdb/event-loop.c (gdb_wait_for_event): Update.
10042 * gdb/printcmd.c (printf_command): Update.
10043 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10044 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10045 (gdb_os_flush_stderr): Update.
10046 * gdb/remote.c (remote_console_output): Update.
10047 * gdb/ui-file.c (gdb_flush): Rename to...
10048 (ui_file_flush): ...this.
10049 (stderr_file::write): Update.
10050 (stderr_file::puts): Update.
10051 * gdb/ui-file.h (gdb_flush): Rename to...
10052 (ui_file_flush): ...this.
10053 * gdb/utils.c (gdb_flush): Add function.
10054 * gdb/utils.h (gdb_flush): Add declaration.
10055
10056 2020-02-07 Tom Tromey <tromey@adacore.com>
10057
10058 PR breakpoints/24915:
10059 * source.c (find_and_open_source): Do not check basenames_may_differ.
10060
10061 2020-02-07 Tom Tromey <tom@tromey.com>
10062
10063 * README: Update gdbserver documentation.
10064 * gdbserver: Move to top level.
10065 * configure.tgt (build_gdbserver): Remove.
10066 * configure.ac: Remove --enable-gdbserver.
10067 * configure: Rebuild.
10068 * Makefile.in (distclean): Don't mention gdbserver.
10069
10070 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10071
10072 * source-cache.c (source_cache::ensure): Surround
10073 get_plain_source_lines with a try/catch.
10074 (source_cache::get_line_charpos): Get rid of try/catch
10075 and only check for the return value of "ensure".
10076 * tui/tui-source.c (tui_source_window::set_contents):
10077 Simplify "nlines" calculation.
10078
10079 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10080
10081 * MAINTAINERS (Write After Approval): Add myself.
10082
10083 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10084
10085 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10086 function call.
10087
10088 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10089
10090 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10091
10092 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10093
10094 * nat/riscv-linux-tdesc.h: New file.
10095 * nat/riscv-linux-tdesc.c: New file, taking code from...
10096 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10097 ... here.
10098 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10099 NATDEPFILES.
10100
10101 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10102
10103 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10104 we don't set the fake simulator ptid to the null_ptid.
10105
10106 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10107
10108 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10109 * gdbthread.h (class thread_info) <resumed>: Likewise.
10110 * infrun.c (resume_1): Likewise.
10111 (proceed): Likewise.
10112 (infrun_thread_stop_requested): Likewise.
10113 (stop_all_threads): Likewise.
10114 (handle_inferior_event): Likewise.
10115 (restart_threads): Likewise.
10116 (finish_step_over): Likewise.
10117 (keep_going_stepped_thread): Likewise.
10118 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10119 (linux_handle_extended_wait): Likewise.
10120 * record-btrace.c (get_thread_current_frame_id): Likewise.
10121 * record-full.c (record_full_wait_1): Likewise.
10122 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10123 * target.c (target_resume): Likewise.
10124 * thread.c (set_running_thread): Likewise.
10125
10126 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10127
10128 * f-valprint.c (f77_print_array_1): Changed datatype of index
10129 variable to LONGEST from int to enable it to contain bound
10130 values correctly.
10131
10132 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10133
10134 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10135 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10136 offsets according to FLEN determined.
10137 (riscv_linux_nat_target::read_description): Determine FLEN
10138 dynamically.
10139 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10140 according to FLEN determined.
10141 (riscv_linux_nat_target::store_registers): Likewise.
10142
10143 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10144
10145 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10146 when reg->group is empty and reggroup is not.
10147
10148 2020-01-31 Tom Tromey <tromey@adacore.com>
10149
10150 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10151 Call beneath target's mourn_inferior after unpushing.
10152
10153 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10154
10155 PR tui/9765
10156 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10157 have enough lines to fill the screen, still return the lowest
10158 address we found.
10159
10160 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10161
10162 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10163 '-', '<', and '>' commands.
10164
10165 2020-01-29 Pedro Alves <palves@redhat.com>
10166 Sergio Durigan Junior <sergiodj@redhat.com>
10167
10168 * infcmd.c (construct_inferior_arguments): Assert that
10169 'argc' is greater than 0.
10170
10171 2020-01-29 Luis Machado <luis.machado@linaro.org>
10172
10173 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10174 (BRK_INSN_MASK): Define to 0xd4200000.
10175 (aarch64_program_breakpoint_here_p): New function.
10176 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10177 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10178 breakpoint.c.
10179 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10180 breakpoint.h
10181 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10182 call gdbarch_program_breakpoint_here_p.
10183 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10184 default_program_breakpoint_here_p, changed return type to bool and
10185 simplified.
10186 * breakpoint.h (program_breakpoint_here): Moved prototype to
10187 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10188 return type to bool.
10189 * gdbarch.c: Regenerate.
10190 * gdbarch.h: Regenerate.
10191 * gdbarch.sh (program_breakpoint_here_p): New method.
10192 * infrun.c (handle_signal_stop): Call
10193 gdbarch_program_breakpoint_here_p.
10194
10195 2020-01-26 Tom Tromey <tom@tromey.com>
10196
10197 * ctfread.c (struct ctf_fp_info): Reindent.
10198 (_initialize_ctfread): Remove.
10199
10200 2020-01-26 Tom Tromey <tom@tromey.com>
10201
10202 * psymtab.c (partial_map_expand_apply)
10203 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10204 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10205 (psym_print_stats, psym_expand_symtabs_for_function)
10206 (psym_map_symbol_filenames, psym_map_matching_symbols)
10207 (psym_expand_symtabs_matching)
10208 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10209 (maintenance_check_psymtabs): Use new methods.
10210 * psympriv.h (struct partial_symtab) <readin_p,
10211 get_compunit_symtab>: New methods.
10212 <readin, compunit_symtab>: Remove members.
10213 (struct standard_psymtab): New.
10214 (struct legacy_psymtab): Derive from standard_psymtab.
10215 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10216 standard_psymtab.
10217 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10218
10219 2020-01-26 Tom Tromey <tom@tromey.com>
10220
10221 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10222 read_dependencies. Add assert.
10223 * psymtab.c (partial_symtab::read_dependencies): New method.
10224 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10225 method.
10226 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10227 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10228 read_dependencies.
10229 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10230 Add assert.
10231
10232 2020-01-26 Tom Tromey <tom@tromey.com>
10233
10234 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10235 Call expand_psymtab.
10236 (xcoff_read_symtab): Call expand_psymtab.
10237 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10238 legacy_expand_psymtab.
10239 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10240 method.
10241 (struct legacy_psymtab) <expand_psymtab>: Implement.
10242 <legacy_expand_psymtab>: New member.
10243 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10244 (parse_partial_symbols): Set legacy_expand_psymtab.
10245 (psymtab_to_symtab_1): Change argument order. Call
10246 expand_psymtab.
10247 (new_psymtab): Set legacy_expand_psymtab.
10248 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10249 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10250 expand_psymtab.
10251 (dwarf2_psymtab::expand_psymtab): Rename from
10252 psymtab_to_symtab_1. Call expand_psymtab.
10253 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10254 (dbx_end_psymtab): Likewise.
10255 (dbx_psymtab_to_symtab_1): Change argument order. Call
10256 expand_psymtab.
10257 (dbx_read_symtab): Call expand_psymtab.
10258 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10259 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10260 (ctf_psymtab::read_symtab): Call expand_psymtab.
10261
10262 2020-01-26 Tom Tromey <tom@tromey.com>
10263
10264 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10265 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10266 messages.
10267 * mdebugread.c (mdebug_read_symtab): Remove prints.
10268 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10269 assert.
10270 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10271
10272 2020-01-26 Tom Tromey <tom@tromey.com>
10273
10274 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10275 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10276 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10277 legacy_symtab.
10278 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10279 * psymtab.c (psymtab_to_symtab): Call method.
10280 (dump_psymtab): Update.
10281 * psympriv.h (struct partial_symtab): Add virtual destructor.
10282 <read_symtab>: New method.
10283 (struct legacy_symtab): New.
10284 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10285 (struct pst_map) <pst>: Now a legacy_psymtab.
10286 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10287 (new_psymtab): Use legacy_psymtab.
10288 * dwarf2read.h (struct dwarf2_psymtab): New.
10289 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10290 * dwarf2read.c (dwarf2_create_include_psymtab)
10291 (dwarf2_build_include_psymtabs, create_type_unit_group)
10292 (create_partial_symtab, process_psymtab_comp_unit_reader)
10293 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10294 (set_partial_user): Use dwarf2_psymtab.
10295 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10296 (psymtab_to_symtab_1, process_full_comp_unit)
10297 (process_full_type_unit, dwarf2_ranges_read)
10298 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10299 (dwarf_decode_lines): Use dwarf2_psymtab.
10300 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10301 (add_address_entry_worker, write_one_signatured_type)
10302 (recursively_count_psymbols, recursively_write_psymbols)
10303 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10304 (write_debug_names): Likewise.
10305 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10306 <pst>: Now a legacy_psymtab.
10307 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10308 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10309 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10310 * ctfread.c (struct ctf_psymtab): New.
10311 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10312 ctf_psymtab.
10313 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10314 (create_partial_symtab): Return a ctf_psymtab.
10315 (scan_partial_symbols): Update.
10316
10317 2020-01-26 Tom Tromey <tom@tromey.com>
10318
10319 * xcoffread.c (xcoff_start_psymtab): Use new.
10320 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10321 renamed from start_psymtab_common.
10322 * psympriv.h (struct partial_symtab): Add new constructor.
10323 (start_psymtab_common): Don't declare.
10324 * mdebugread.c (parse_partial_symbols): Use new.
10325 * dwarf2read.c (create_partial_symtab): Use new.
10326 * dbxread.c (start_psymtab): Use new.
10327 * ctfread.c (create_partial_symtab): Use new.
10328
10329 2020-01-26 Tom Tromey <tom@tromey.com>
10330
10331 * xcoffread.c (xcoff_end_psymtab): Use new.
10332 * psymtab.c (start_psymtab_common): Use new.
10333 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10334 Update.
10335 * psympriv.h (struct partial_symtab): Add parameters to
10336 constructor. Don't inline.
10337 (allocate_psymtab): Don't declare.
10338 * mdebugread.c (new_psymtab): Use new.
10339 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10340 * dbxread.c (dbx_end_psymtab): Use new.
10341
10342 2020-01-26 Tom Tromey <tom@tromey.com>
10343
10344 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10345 allocate_psymtab. Update documentation.
10346 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10347 allocate_psymtab. Do not use new.
10348 (allocate_psymtab): Use new. Update.
10349
10350 2020-01-26 Tom Tromey <tom@tromey.com>
10351
10352 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10353 * psymtab.c (psym_print_stats): Update.
10354 * psympriv.h (struct partial_symtab) <readin,
10355 psymtabs_addrmap_supported, anonymous>: Now bool.
10356 * mdebugread.c (psymtab_to_symtab_1): Update.
10357 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10358 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10359 (process_full_comp_unit, process_full_type_unit): Update.
10360 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10361 * ctfread.c (psymtab_to_symtab): Update.
10362
10363 2020-01-26 Tom Tromey <tom@tromey.com>
10364
10365 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10366 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10367 * psymtab.c (psymtab_storage): Delete psymtabs.
10368 (psymtab_storage::allocate_psymtab): Use new.
10369 (psymtab_storage::discard_psymtab): Use delete.
10370 * psympriv.h (struct partial_symtab): Add constructor and
10371 initializers.
10372
10373 2020-01-26 Tom Tromey <tom@tromey.com>
10374
10375 * machoread.c: Do not include psympriv.h.
10376
10377 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10378
10379 * NEWS: Mention the new option and the set/show commands.
10380
10381 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10382
10383 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10384 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10385 (validate_exec_file): New variables, enums, functions.
10386 (exec_file_locate_attach, print_section_info): Style the filenames.
10387 (_initialize_exec): Install show_exec_file_mismatch_command and
10388 set_exec_file_mismatch_command.
10389 * gdbcore.h (validate_exec_file): Declare.
10390 * infcmd.c (attach_command): Call validate_exec_file.
10391 * remote.c ( remote_target::remote_add_inferior): Likewise.
10392
10393 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10394
10395 * frame.c (find_frame_sal): Move call to get_next_frame into more
10396 inner scope.
10397 * inline-frame.c (inilne_state) <inline_state>: Update argument
10398 types.
10399 (inilne_state) <skipped_symbol>: Rename to...
10400 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10401 (skip_inline_frames): Build vector of skipped symbols and use this
10402 to reate the inline_state.
10403 (inline_skipped_symbol): Add a comment and some assertions, fetch
10404 skipped symbol from the list.
10405
10406 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10407
10408 * buildsym.c (lte_is_less_than): Delete.
10409 (buildsym_compunit::end_symtab_with_blockvector): Create local
10410 lambda function to sort line table entries, and use
10411 std::stable_sort instead of std::sort.
10412 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10413 markers when looking for a previous line.
10414
10415 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10416
10417 * dwarf2read.c (lnp_state_machine::record_line): Include
10418 end_sequence parameter in debug print out. Record the line if we
10419 are at an end_sequence marker even if it's not the start of a
10420 statement.
10421 * symmisc.c (maintenance_print_one_line_table): Print end of
10422 sequence markers with 'END' not '0'.
10423
10424 2020-01-24 Pedro Alves <palves@redhat.com>
10425
10426 PR gdb/25410
10427 * thread.c (scoped_restore_current_thread::restore): Use
10428 switch_to_inferior_no_thread.
10429 * exec.c: Include "progspace-and-thread.h".
10430 (add_target_sections, remove_target_sections):
10431 scoped_restore_current_pspace_and_thread instead of
10432 scoped_restore_current_thread.
10433 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10434 and aspace to the inferior before calling clone_program_space.
10435 Remove stale comment.
10436
10437 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10438
10439 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10440 (arm_netbsd_nat_target::fetch_registers): ...this.
10441 (arm_nbsd_nat_target::store_registers): Rename to...
10442 (arm_netbsd_nat_target::store_registers): ...this.
10443
10444 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10445
10446 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10447 register_t.
10448
10449 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10450
10451 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10452 Update comment.
10453 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10454 Likewise.
10455 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10456 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10457 the correct replacement (iterate_over_regset_sections).
10458 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10459 Update comment.
10460
10461 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10462
10463 PR gdb/23718
10464 * gdb/python/python.c (execute_gdb_command): Call
10465 async_enable_stdin in catch block.
10466
10467 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10468
10469 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10470 SWITCH_THRU_ALL_UIS.
10471
10472 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10473
10474 PR tui/9765
10475 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10476 comment, add extra parameter, and update to store previous symbol
10477 when appropriate.
10478 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10479 add extra parameter.
10480 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10481 remove unneeded parameter, add try/catch around gdb_print_insn,
10482 rewrite to add items to asm_lines vector.
10483 (tui_find_backward_disassembly_start_address): New function.
10484 (tui_find_disassembly_address): Updated throughout.
10485 (tui_disasm_window::set_contents): Update for changes to
10486 tui_disassemble.
10487 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10488 number of lines to scroll.
10489
10490 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10491
10492 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10493 (SECT_OFF_DATA): Likewise.
10494 (SECT_OFF_RODATA): Likewise.
10495 (SECT_OFF_TEXT): Likewise.
10496 (SECT_OFF_BSS): Likewise.
10497 (struct objfile) <text_section_offset, data_section_offset>: New
10498 methods.
10499 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10500 objfile::text_section_offset.
10501 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10502 * coffread.c (coff_symtab_read): Likewise.
10503 (enter_linenos): Likewise.
10504 (process_coff_symbol): Likewise.
10505 * ctfread.c (get_objfile_text_range): Likewise.
10506 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10507 Use objfile::data_section_offset.
10508 * dwarf2-frame.c (execute_cfa_program): Use
10509 objfile::text_section_offset.
10510 (dwarf2_frame_find_fde): Likewise.
10511 * dwarf2read.c (create_addrmap_from_index): Likewise.
10512 (create_addrmap_from_aranges): Likewise.
10513 (dw2_find_pc_sect_compunit_symtab): Likewise.
10514 (process_psymtab_comp_unit_reader): Likewise.
10515 (add_partial_symbol): Likewise.
10516 (add_partial_subprogram): Likewise.
10517 (process_full_comp_unit): Likewise.
10518 (read_file_scope): Likewise.
10519 (read_func_scope): Likewise.
10520 (read_lexical_block_scope): Likewise.
10521 (read_call_site_scope): Likewise.
10522 (dwarf2_rnglists_process): Likewise.
10523 (dwarf2_ranges_process): Likewise.
10524 (dwarf2_ranges_read): Likewise.
10525 (dwarf_decode_lines_1): Likewise.
10526 (new_symbol): Likewise.
10527 (dwarf2_fetch_die_loc_sect_off): Likewise.
10528 (dwarf2_per_cu_text_offset): Likewise.
10529 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10530 * hppa-tdep.c (read_unwind_info): Likewise.
10531 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10532 * psympriv.h (struct partial_symtab): Likewise.
10533 * psymtab.c (find_pc_sect_psymtab): Likewise.
10534 * solib-svr4.c (enable_break): Likewise.
10535 * stap-probe.c (relocate_address): Use
10536 objfile::data_section_offset.
10537 * xcoffread.c (enter_line_range): Use
10538 objfile::text_section_offset.
10539 (read_xcoff_symtab): Likewise.
10540
10541 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10542
10543 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10544 declaration to narrower scopes.
10545
10546 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10547
10548 * darwin-nat.h (struct darwin_exception_msg, enum
10549 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10550 Move up.
10551 (class darwin_nat_target) <wait_1, check_new_threads,
10552 decode_exception_message, decode_message, stop_inferior,
10553 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10554 * darwin-nat.c (darwin_check_new_threads): Rename to...
10555 (darwin_nat_target::check_new_threads): ... this.
10556 (darwin_suspend_inferior_it): Remove.
10557 (darwin_decode_exception_message): Rename to...
10558 (darwin_nat_target::decode_exception_message): ... this.
10559 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10560 (darwin_decode_message): Rename to...
10561 (darwin_nat_target::decode_message): ... this.
10562 (cancel_breakpoint): Rename to...
10563 (darwin_nat_target::cancel_breakpoint): ... this.
10564 (darwin_wait): Rename to...
10565 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10566 instead of iterate_over_inferiors.
10567 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10568 (darwin_stop_inferior): Rename to...
10569 (darwin_nat_target::stop_inferior): ... this.
10570 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10571 (darwin_init_thread_list): Rename to...
10572 (darwin_nat_target::init_thread_list): ... this.
10573 (darwin_ptrace_him): Rename to...
10574 (darwin_nat_target::ptrace_him): ... this.
10575 (darwin_nat_target::create_inferior): Pass lambda function to
10576 fork_inferior.
10577 (darwin_nat_target::detach): Call stop_inferior instead of
10578 darwin_stop_inferior.
10579 * fork-inferior.h (fork_inferior): Change init_trace_fun
10580 parameter to gdb::function_view.
10581 * fork-inferior.c (fork_inferior): Likewise.
10582
10583 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10584
10585 * i386-cygwin-tdep.c (core_process_module_section): Update.
10586 * windows-nat.c (struct lm_info_windows): Add text_offset.
10587 (windows_xfer_shared_libraries): Update.
10588 * windows-tdep.c (windows_xfer_shared_library):
10589 Add text_offset_cached argument.
10590 * windows-tdep.h (windows_xfer_shared_library): Update.
10591
10592 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10593
10594 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10595
10596 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10597
10598 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10599 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10600 replace with range-based for.
10601 (gdbsim_interrupt_inferior): Remove.
10602 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10603 with a range-based for. Inline code from
10604 gdbsim_interrupt_inferior.
10605
10606 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10607
10608 * infrun.c (proceed): Fix indentation.
10609
10610 2020-01-21 Tom Tromey <tromey@adacore.com>
10611
10612 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10613 * python/python.c (python_extension_ops): Update.
10614 (gdbpy_colorize): New function.
10615 * python/lib/gdb/__init__.py (colorize): New function.
10616 * extension.h (ext_lang_colorize): Declare.
10617 * extension.c (ext_lang_colorize): New function.
10618 * extension-priv.h (struct extension_language_ops) <colorize>: New
10619 member.
10620 * cli/cli-style.c (_initialize_cli_style): Update help text.
10621
10622 2020-01-21 Luis Machado <luis.machado@linaro.org>
10623
10624 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10625 <cond>: Change type to bool.
10626 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10627 (aarch64_displaced_step_cb): Likewise.
10628 (aarch64_displaced_step_tb): Likewise.
10629
10630 2020-01-21 Luis Machado <luis.machado@linaro.org>
10631
10632 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10633 output.
10634
10635 2020-01-21 Luis Machado <luis.machado@linaro.org>
10636
10637 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10638 <pc_adjust>: Adjust the documentation.
10639 (aarch64_displaced_step_fixup): Check if PC really moved before
10640 adjusting it.
10641
10642 2020-01-19 Tom Tromey <tom@tromey.com>
10643
10644 * disasm.c (~gdb_disassembler): New destructor.
10645 (gdb_buffered_insn_length): Call disassemble_free_target.
10646 * disasm.h (class gdb_disassembler): Declare destructor. Use
10647 DISABLE_COPY_AND_ASSIGN.
10648
10649 2020-01-19 Tom Tromey <tom@tromey.com>
10650
10651 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10652 (die_reader_func_ftype): Remove.
10653 (cutu_reader): New class.
10654 (dw2_get_file_names_reader): Remove "data" parameter.
10655 (dw2_get_file_names): Use cutu_reader.
10656 (create_debug_type_hash_table): Update.
10657 (read_cutu_die_from_dwo): Update comment.
10658 (lookup_dwo_unit): Add dwo_name parameter.
10659 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10660 die_reader_func_ftype and data parameters.
10661 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10662 Remove die_reader_func_ftype and data parameters.
10663 (~cutu_reader): New; from init_cutu_and_read_dies.
10664 (cutu_reader::cutu_reader): Rename from
10665 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10666 and data parameters.
10667 (init_cutu_and_read_dies_simple): Remove.
10668 (struct process_psymtab_comp_unit_data): Remove.
10669 (process_psymtab_comp_unit_reader): Remove data parameter; add
10670 want_partial_unit and pretend_language parameters.
10671 (process_psymtab_comp_unit): Use cutu_reader.
10672 (build_type_psymtabs_reader): Remove data parameter.
10673 (build_type_psymtabs_1): Use cutu_reader.
10674 (process_skeletonless_type_unit): Likewise.
10675 (load_partial_comp_unit_reader): Remove.
10676 (load_partial_comp_unit): Use cutu_reader.
10677 (load_full_comp_unit_reader): Remove.
10678 (load_full_comp_unit): Use cutu_reader.
10679 (struct create_dwo_cu_data): Remove.
10680 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10681 dwo_unit parameters.
10682 (create_cus_hash_table): Use cutu_reader.
10683 (struct dwarf2_read_addr_index_data): Remove.
10684 (dwarf2_read_addr_index_reader): Remove.
10685 (dwarf2_read_addr_index): Use cutu_reader.
10686 (read_signatured_type_reader): Remove.
10687 (read_signatured_type): Use cutu_reader.
10688
10689 2020-01-19 Tom Tromey <tom@tromey.com>
10690
10691 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10692 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10693 (tui_wrefresh): Declare.
10694 * tui/tui-wingeneral.c (suppress_output): New global.
10695 (tui_suppress_output, ~tui_suppress_output): New constructor and
10696 destructor.
10697 (tui_wrefresh): New function.
10698 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10699 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10700 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10701 method.
10702 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10703 tui_wrefresh.
10704 (tui_data_window::no_refresh): New method.
10705 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10706 (tui_reg_command): Use tui_suppress_output
10707 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10708 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10709 method.
10710 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10711
10712 2020-01-19 Tom Tromey <tom@tromey.com>
10713
10714 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10715 Handle case where symtab is null.
10716
10717 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10718
10719 * linux-fork.c (one_fork_p): Simplify.
10720
10721 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10722
10723 * top.c (struct qt_args): Remove.
10724 (kill_or_detach): Change return type to void, replace `void *`
10725 parameter with a proper one.
10726 (print_inferior_quit_action): Likewise.
10727 (quit_confirm): Use range-based for loop to iterate over inferiors.
10728 (quit_force): Likewise.
10729
10730 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10731
10732 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10733 `void *` parameter with proper parameters.
10734 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10735 (print_one_inferior): Change return type to void, replace `void *`
10736 parameter with proper parameters.
10737 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10738 inferiors.
10739 (get_other_inferior): Remove.
10740 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10741 inferiors.
10742
10743 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10744
10745 * mi/mi-interp.c (report_initial_inferior): Remove.
10746 (mi_interp::init): Use range-based for to iterate over inferiors.
10747
10748 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10749
10750 * python/py-inferior.c (build_inferior_list): Remove.
10751 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10752
10753 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10754
10755 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10756 (btrace_stitch_trace): Likewise.
10757 * charset.c (intermediate_encoding): Likewise (vaild).
10758 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10759 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10760 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10761
10762 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10763
10764 * windows-tdep.c (windows_get_tlb_type):
10765 Add rtl_user_process_parameters type.
10766
10767 2020-01-16 Pedro Alves <palves@redhat.com>
10768 Norbert Lange <nolange79@gmail.com>
10769
10770 PR build/24805
10771 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10772 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10773 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10774 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10775 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10776 (ps_plog): Redeclare exported functions with default visibility.
10777
10778 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10779
10780 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10781 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10782
10783 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10784
10785 * infcmd.c (post_create_inferior): Use get_thread_regcache
10786 instead of get_current_regcache.
10787
10788 2020-01-14 Tom Tromey <tom@tromey.com>
10789
10790 PR symtab/12535:
10791 * python/python.c (gdbpy_decode_line): Treat empty string the same
10792 as no argument.
10793
10794 2020-01-14 Tom Tromey <tom@tromey.com>
10795
10796 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10797
10798 2020-01-14 Tom Tromey <tom@tromey.com>
10799
10800 * nat/linux-btrace.c: Don't include <config.h>.
10801 * nat/linux-ptrace.c: Don't include <config.h>.
10802 * nat/x86-linux-dregs.c: Don't include <config.h>.
10803
10804 2020-01-14 Tom Tromey <tom@tromey.com>
10805
10806 * configure: Rebuild.
10807 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10808
10809 2020-01-14 Tom Tromey <tom@tromey.com>
10810
10811 * nat/x86-linux-dregs.c: Include configh.h.
10812 * nat/linux-ptrace.c: Include configh.h.
10813 * nat/linux-btrace.c: Include configh.h.
10814 * defs.h: Include config.h, bfd.h.
10815 * configure.ac: Don't source common.host.
10816 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10817 * configure: Rebuild.
10818 * acinclude.m4: Update path.
10819 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10820 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10821 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10822 (CLIBS): Add LIBSUPPORT.
10823 (CDEPS): Likewise.
10824 (COMMON_SFILES): Remove gdbsupport files.
10825 (HFILES_NO_SRCDIR): Likewise.
10826 (stamp-version): Update path to create-version.sh.
10827 (ALLDEPFILES): Remove gdbsupport files.
10828
10829 2020-01-14 Tom Tromey <tom@tromey.com>
10830
10831 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10832 USE_WIN32API when needed.
10833 * configure.ac (USE_WIN32API): Don't define.
10834 (WIN32LIBS): Use WIN32APILIBS.
10835 * configure: Rebuild.
10836
10837 2020-01-14 Tom Tromey <tom@tromey.com>
10838
10839 * configure: Rebuild.
10840 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10841
10842 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10843
10844 * skip.c (skip_function_command): Make skip w/o arguments use the
10845 name of the inlined function if pc is inside any inlined function.
10846
10847 2020-01-14 Luis Machado <luis.machado@linaro.org>
10848
10849 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10850 * infrun.c (resume_1): Likewise.
10851 (handle_inferior_event): Remove stale comment.
10852 * linux-nat.c (linux_nat_target::resume): Update comments.
10853 (save_stop_reason): Likewise.
10854 (linux_nat_filter_event): Likewise.
10855 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10856
10857 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10858
10859 * elfread.c (record_minimal_symbol): Set section index to 0 for
10860 non-allocatable sections.
10861
10862
10863 2020-01-13 Ali Tamur <tamur@google.com>
10864
10865 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10866 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10867 to gdb::optional. Update comments.
10868 (dwo_file): Update comments.
10869 (read_attribute): Update API to take an additional out parameter,
10870 need_reprocess. This is used to mark attributes that need other
10871 attributes (e.g. str_offsets_base) for correct computation which may not
10872 have been read yet.
10873 (read_attribute_reprocess): New function declaration.
10874 (read_addr_index): Likewise.
10875 (read_dwo_str_index): Likewise.
10876 (read_stub_str_index): Likewise.
10877 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10878 (lookup_addr_base): New function definition.
10879 (lookup_ranges_base): Likewise.
10880 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10881 lookup_ranges_base.
10882 (init_cutu_and_read_dies): Update comments.
10883 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10884 unit. This is used to inherit parent's str_offsets_base and addr_base.
10885 Update comments.
10886 (init_cutu_and_read_dies_simple): Reflect API changes.
10887 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10888 (create_cus_hash_table): Change API to take parent compile unit.
10889 Reflect API changes.
10890 (open_and_init_dwo_file): Reflect API changes.
10891 (dwarf2_get_pc_bounds): Update comments.
10892 (dwarf2_record_block_ranges): Likewise.
10893 (read_full_die_1): Change implementation to reprocess attributes that
10894 need str_offsets_base and addr_base.
10895 (partial_die_info::read): Likewise.
10896 (read_attribute_reprocess): New function definition.
10897 (read_attribute_value): Change API to take an additional out parameter,
10898 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10899 when a non-dwo compile unit has index based attributes.
10900 (read_attribute): Reflect API changes.
10901 (read_addr_index_1): Reflect API changes. Update comments.
10902 (dwarf2_read_addr_index_data): Reflect API changes.
10903 (dwarf2_read_addr_index): Likewise.
10904 (read_str_index): Change API and implementation. This becomes a helper
10905 to be used by the new string index related methods. Update error
10906 message and comments.
10907 (read_dwo_str_index): New function definition.
10908 (read_stub_str_index): Likewise.
10909 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10910 * symfile.h (dwarf2_debug_sections): Likewise.
10911 * xcoffread.c (dwarf2_debug_sections): Likewise.
10912
10913 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10914
10915 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10916 core_reg_sect type to gdb_byte *.
10917 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10918 * cris-tdep.c (fetch_core_registers): Likewise.
10919 * corelow.c (core_target::get_core_register_section): Change
10920 type of `contents` to gdb::byte_vector.
10921
10922 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10923
10924 * tui/tui-wingeneral.c (box_win): Position the title in the center
10925 of the border.
10926
10927 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10928
10929 * corelow.c (core_target::get_core_register_section): Use
10930 std::vector instead of alloca.
10931
10932 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10933
10934 * warning.m4: Add -Wmissing-declarations to build_warnings.
10935 * configure: Re-generate.
10936
10937 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10938
10939 * python/python.c (init__gdb_module): Add declaration.
10940
10941 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10942
10943 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10944 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10945 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10946 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10947 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10948 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10949 * ada-exp.y (_initialize_ada_exp): Add declaration.
10950 * ada-lang.c (_initialize_ada_language): Add declaration.
10951 * ada-tasks.c (_initialize_tasks): Add declaration.
10952 * agent.c (_initialize_agent): Add declaration.
10953 * aix-thread.c (_initialize_aix_thread): Add declaration.
10954 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10955 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10956 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10957 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10958 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10959 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10960 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10961 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10962 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10963 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10964 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10965 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10966 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10967 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10968 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10969 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10970 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10971 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10972 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10973 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10974 * annotate.c (_initialize_annotate): Add declaration.
10975 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10976 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10977 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10978 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10979 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10980 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10981 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10982 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10983 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10984 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10985 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10986 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10987 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10988 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10989 * auto-load.c (_initialize_auto_load): Add declaration.
10990 * auxv.c (_initialize_auxv): Add declaration.
10991 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10992 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10993 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10994 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10995 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10996 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10997 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10998 * breakpoint.c (_initialize_breakpoint): Add declaration.
10999 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11000 * btrace.c (_initialize_btrace): Add declaration.
11001 * charset.c (_initialize_charset): Add declaration.
11002 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11003 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11004 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11005 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11006 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11007 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11008 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11009 * coffread.c (_initialize_coffread): Add declaration.
11010 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11011 * compile/compile.c (_initialize_compile): Add declaration.
11012 * complaints.c (_initialize_complaints): Add declaration.
11013 * completer.c (_initialize_completer): Add declaration.
11014 * copying.c (_initialize_copying): Add declaration.
11015 * corefile.c (_initialize_core): Add declaration.
11016 * corelow.c (_initialize_corelow): Add declaration.
11017 * cp-abi.c (_initialize_cp_abi): Add declaration.
11018 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11019 * cp-support.c (_initialize_cp_support): Add declaration.
11020 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11021 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11022 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11023 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11024 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11025 * ctfread.c (_initialize_ctfread): Add declaration.
11026 * d-lang.c (_initialize_d_language): Add declaration.
11027 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11028 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11029 * dbxread.c (_initialize_dbxread): Add declaration.
11030 * dcache.c (_initialize_dcache): Add declaration.
11031 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11032 * disasm.c (_initialize_disasm): Add declaration.
11033 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11034 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11035 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11036 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11037 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11038 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11039 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11040 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11041 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11042 * elfread.c (_initialize_elfread): Add declaration.
11043 * exec.c (_initialize_exec): Add declaration.
11044 * extension.c (_initialize_extension): Add declaration.
11045 * f-lang.c (_initialize_f_language): Add declaration.
11046 * f-valprint.c (_initialize_f_valprint): Add declaration.
11047 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11048 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11049 * filesystem.c (_initialize_filesystem): Add declaration.
11050 * findcmd.c (_initialize_mem_search): Add declaration.
11051 * findvar.c (_initialize_findvar): Add declaration.
11052 * fork-child.c (_initialize_fork_child): Add declaration.
11053 * frame-base.c (_initialize_frame_base): Add declaration.
11054 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11055 * frame.c (_initialize_frame): Add declaration.
11056 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11057 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11058 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11059 * gcore.c (_initialize_gcore): Add declaration.
11060 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11061 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11062 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11063 * gdbarch.c (_initialize_gdbarch): Add declaration.
11064 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11065 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11066 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11067 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11068 * go-lang.c (_initialize_go_language): Add declaration.
11069 * go32-nat.c (_initialize_go32_nat): Add declaration.
11070 * guile/guile.c (_initialize_guile): Add declaration.
11071 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11072 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11073 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11074 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11075 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11076 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11077 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11078 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11079 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11080 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11081 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11082 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11083 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11084 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11085 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11086 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11087 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11088 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11089 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11090 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11091 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11092 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11093 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11094 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11095 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11096 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11097 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11098 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11099 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11100 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11101 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11102 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11103 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11104 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11105 * infcall.c (_initialize_infcall): Add declaration.
11106 * infcmd.c (_initialize_infcmd): Add declaration.
11107 * inflow.c (_initialize_inflow): Add declaration.
11108 * infrun.c (_initialize_infrun): Add declaration.
11109 * interps.c (_initialize_interpreter): Add declaration.
11110 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11111 * jit.c (_initialize_jit): Add declaration.
11112 * language.c (_initialize_language): Add declaration.
11113 * linux-fork.c (_initialize_linux_fork): Add declaration.
11114 * linux-nat.c (_initialize_linux_nat): Add declaration.
11115 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11116 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11117 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11118 * m2-lang.c (_initialize_m2_language): Add declaration.
11119 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11120 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11121 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11122 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11123 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11124 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11125 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11126 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11127 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11128 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11129 * machoread.c (_initialize_machoread): Add declaration.
11130 * macrocmd.c (_initialize_macrocmd): Add declaration.
11131 * macroscope.c (_initialize_macroscope): Add declaration.
11132 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11133 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11134 * maint.c (_initialize_maint_cmds): Add declaration.
11135 * mdebugread.c (_initialize_mdebugread): Add declaration.
11136 * memattr.c (_initialize_mem): Add declaration.
11137 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11138 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11139 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11140 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11141 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11142 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11143 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11144 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11145 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11146 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11147 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11148 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11149 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11150 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11151 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11152 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11153 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11154 * mipsread.c (_initialize_mipsread): Add declaration.
11155 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11156 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11157 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11158 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11159 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11160 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11161 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11162 * nto-procfs.c (_initialize_procfs): Add declaration.
11163 * objc-lang.c (_initialize_objc_language): Add declaration.
11164 * observable.c (_initialize_observer): Add declaration.
11165 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11166 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11167 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11168 * osabi.c (_initialize_gdb_osabi): Add declaration.
11169 * osdata.c (_initialize_osdata): Add declaration.
11170 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11171 * parse.c (_initialize_parse): Add declaration.
11172 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11173 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11174 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11175 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11176 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11177 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11178 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11179 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11180 * printcmd.c (_initialize_printcmd): Add declaration.
11181 * probe.c (_initialize_probe): Add declaration.
11182 * proc-api.c (_initialize_proc_api): Add declaration.
11183 * proc-events.c (_initialize_proc_events): Add declaration.
11184 * proc-service.c (_initialize_proc_service): Add declaration.
11185 * procfs.c (_initialize_procfs): Add declaration.
11186 * producer.c (_initialize_producer): Add declaration.
11187 * psymtab.c (_initialize_psymtab): Add declaration.
11188 * python/python.c (_initialize_python): Add declaration.
11189 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11190 * record-btrace.c (_initialize_record_btrace): Add declaration.
11191 * record-full.c (_initialize_record_full): Add declaration.
11192 * record.c (_initialize_record): Add declaration.
11193 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11194 * regcache.c (_initialize_regcache): Add declaration.
11195 * reggroups.c (_initialize_reggroup): Add declaration.
11196 * remote-notif.c (_initialize_notif): Add declaration.
11197 * remote-sim.c (_initialize_remote_sim): Add declaration.
11198 * remote.c (_initialize_remote): Add declaration.
11199 * reverse.c (_initialize_reverse): Add declaration.
11200 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11201 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11202 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11203 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11204 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11205 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11206 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11207 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11208 Add declaration.
11209 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11210 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11211 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11212 * rust-exp.y (_initialize_rust_exp): Add declaration.
11213 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11214 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11215 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11216 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11217 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11218 * score-tdep.c (_initialize_score_tdep): Add declaration.
11219 * ser-go32.c (_initialize_ser_dos): Add declaration.
11220 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11221 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11222 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11223 * ser-uds.c (_initialize_ser_socket): Add declaration.
11224 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11225 * serial.c (_initialize_serial): Add declaration.
11226 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11227 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11228 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11229 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11230 * skip.c (_initialize_step_skip): Add declaration.
11231 * sol-thread.c (_initialize_sol_thread): Add declaration.
11232 * solib-aix.c (_initialize_solib_aix): Add declaration.
11233 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11234 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11235 * solib-frv.c (_initialize_frv_solib): Add declaration.
11236 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11237 * solib-target.c (_initialize_solib_target): Add declaration.
11238 * solib.c (_initialize_solib): Add declaration.
11239 * source-cache.c (_initialize_source_cache): Add declaration.
11240 * source.c (_initialize_source): Add declaration.
11241 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11242 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11243 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11244 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11245 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11246 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11247 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11248 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11249 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11250 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11251 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11252 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11253 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11254 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11255 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11256 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11257 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11258 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11259 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11260 * stabsread.c (_initialize_stabsread): Add declaration.
11261 * stack.c (_initialize_stack): Add declaration.
11262 * stap-probe.c (_initialize_stap_probe): Add declaration.
11263 * std-regs.c (_initialize_frame_reg): Add declaration.
11264 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11265 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11266 * symfile.c (_initialize_symfile): Add declaration.
11267 * symmisc.c (_initialize_symmisc): Add declaration.
11268 * symtab.c (_initialize_symtab): Add declaration.
11269 * target.c (_initialize_target): Add declaration.
11270 * target-connection.c (_initialize_target_connection): Add
11271 declaration.
11272 * target-dcache.c (_initialize_target_dcache): Add declaration.
11273 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11274 * thread.c (_initialize_thread): Add declaration.
11275 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11276 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11277 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11278 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11279 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11280 * tracectf.c (_initialize_ctf): Add declaration.
11281 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11282 * tracefile.c (_initialize_tracefile): Add declaration.
11283 * tracepoint.c (_initialize_tracepoint): Add declaration.
11284 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11285 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11286 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11287 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11288 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11289 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11290 * tui/tui.c (_initialize_tui): Add declaration.
11291 * typeprint.c (_initialize_typeprint): Add declaration.
11292 * ui-style.c (_initialize_ui_style): Add declaration.
11293 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11294 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11295 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11296 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11297 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11298 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11299 * unittests/filtered_iterator-selftests.c
11300 (_initialize_filtered_iterator_selftests): Add declaration.
11301 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11302 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11303 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11304 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11305 * unittests/main-thread-selftests.c
11306 (_initialize_main_thread_selftests): Add declaration.
11307 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11308 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11309 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11310 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11311 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11312 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11313 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11314 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11315 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11316 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11317 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11318 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11319 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11320 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11321 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11322 declaration.
11323 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11324 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11325 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11326 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11327 * user-regs.c (_initialize_user_regs): Add declaration.
11328 * utils.c (_initialize_utils): Add declaration.
11329 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11330 * valops.c (_initialize_valops): Add declaration.
11331 * valprint.c (_initialize_valprint): Add declaration.
11332 * value.c (_initialize_values): Add declaration.
11333 * varobj.c (_initialize_varobj): Add declaration.
11334 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11335 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11336 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11337 * windows-nat.c (_initialize_windows_nat): Add declaration.
11338 (_initialize_check_for_gdb_ini): Add declaration.
11339 (_initialize_loadable): Add declaration.
11340 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11341 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11342 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11343 * xcoffread.c (_initialize_xcoffread): Add declaration.
11344 * xml-support.c (_initialize_xml_support): Add declaration.
11345 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11346 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11347 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11348 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11349
11350 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11351
11352 * regformats/regdat.sh: Generate declaration for init function.
11353
11354 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11355
11356 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11357 up.
11358 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11359 close_one_inferior>: New methods.
11360 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11361 pass down target to find_inferior_pid.
11362 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11363 Pass down target to find_inferior_ptid.
11364 (gdbsim_target::create_inferior): Pass down target to
11365 add_thread_silent.
11366 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11367 target down to find_inferior_ptid and switch_to_thread.
11368 (gdbsim_target::close): Update to call close_one_inferior.
11369 (struct resume_data): Remove.
11370 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11371 directly, rather than through a void pointer.
11372 (gdbsim_target::resume): Update to call resume_one_inferior.
11373
11374 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11375
11376 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11377
11378 2020-01-12 Pedro Alves <palves@redhat.com>
11379
11380 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11381 directly for the current inferior instead of
11382 discard_all_inferiors.
11383 (discard_all_inferiors): Delete.
11384
11385 2020-01-11 Tom Tromey <tom@tromey.com>
11386
11387 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11388 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11389 deprecated_safe_get_selected_frame.
11390
11391 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11392
11393 * inferior.c (print_inferior): Switch inferior before printing it.
11394
11395 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11396 Pedro Alves <palves@redhat.com>
11397
11398 * progspace-and-thread.c (switch_to_program_space_and_thread):
11399 Assert there's an inferior for PSPACE. Use
11400 switch_to_inferior_no_thread to switch the inferior too.
11401 * progspace.c (program_space::~program_space): Call
11402 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11403 (program_space::free_all_objfiles): Don't call clear_symtab_users
11404 here.
11405 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11406
11407 2020-01-10 Pedro Alves <palves@redhat.com>
11408
11409 * NEWS: Mention multi-target debugging, "info connections", and
11410 "add-inferior -no-connection".
11411
11412 2020-01-10 Pedro Alves <palves@redhat.com>
11413
11414 * infrun.c: Include "target-connection.h".
11415 (check_multi_target_resumption): New.
11416 (proceed): Call it.
11417 * target-connection.c (make_target_connection_string): Make
11418 extern.
11419 * target-connection.h (make_target_connection_string): Declare.
11420
11421 2020-01-10 Pedro Alves <palves@redhat.com>
11422
11423 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11424 * inferior.c (uiout_field_connection): New function.
11425 (print_inferior): Add new "connection-id" column.
11426 (add_inferior_command): Show connection number/string of added
11427 inferior.
11428 * process-stratum-target.h
11429 (process_stratum_target::connection_string): New virtual method.
11430 (process_stratum_target::connection_number): New field.
11431 * remote.c (remote_target::connection_string): New override.
11432 * target-connection.c: New file.
11433 * target-connection.h: New file.
11434 * target.c (decref_target): Remove process_stratum targets from
11435 the connection list.
11436 (target_stack::push): Add process_stratum targets to the
11437 connection list.
11438
11439 2020-01-10 Pedro Alves <palves@redhat.com>
11440
11441 Revert:
11442 2016-04-12 Pedro Alves <palves@redhat.com>
11443 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11444 Remove references to name.
11445 * serial.h (struct serial) <name>: Delete.
11446
11447 2020-01-10 Pedro Alves <palves@redhat.com>
11448
11449 * gdbarch-selftests.c (register_to_value_test): Remove "target
11450 already pushed" check.
11451
11452 2020-01-10 Pedro Alves <palves@redhat.com>
11453 John Baldwin <jhb@FreeBSD.org>
11454
11455 * aarch64-linux-nat.c
11456 (aarch64_linux_nat_target::thread_architecture): Adjust.
11457 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11458 (task_command_1): Likewise.
11459 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11460 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11461 (aix_thread_target::store_registers)
11462 (aix_thread_target::thread_alive): Adjust.
11463 * amd64-fbsd-tdep.c: Include "inferior.h".
11464 (amd64fbsd_get_thread_local_address): Pass down target.
11465 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11466 thread's gdbarch instead of target_gdbarch.
11467 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11468 get_last_target_status.
11469 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11470 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11471 inferiors.
11472 (update_inserted_breakpoint_locations): Skip if inferiors with no
11473 execution.
11474 (update_global_location_list): When handling moribund locations,
11475 find representative inferior for location's pspace, and use thread
11476 count of its process_stratum target.
11477 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11478 * bsd-uthread.c (bsd_uthread_target::wait): Use
11479 as_process_stratum_target and adjust thread_change_ptid and
11480 add_thread calls.
11481 (bsd_uthread_target::update_thread_list): Use
11482 as_process_stratum_target and adjust find_thread_ptid,
11483 thread_change_ptid and add_thread calls.
11484 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11485 find_thread_ptid call.
11486 * corelow.c (add_to_thread_list): Adjust add_thread call.
11487 (core_target_open): Adjust add_thread_silent and thread_count
11488 calls.
11489 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11490 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11491 * event-top.c (async_disconnect): Pop targets from all inferiors.
11492 * exec.c (add_target_sections): Push exec target on all inferiors
11493 sharing the program space.
11494 (remove_target_sections): Remove the exec target from all
11495 inferiors sharing the program space.
11496 (exec_on_vfork): New.
11497 * exec.h (exec_on_vfork): Declare.
11498 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11499 Pass it down.
11500 (fbsd_nat_target::update_thread_list): Adjust.
11501 (fbsd_nat_target::resume): Adjust.
11502 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11503 down.
11504 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11505 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11506 get_thread_arch_regcache call.
11507 * fork-child.c (gdb_startup_inferior): Pass target down to
11508 startup_inferior and set_executing.
11509 * gdbthread.h (struct process_stratum_target): Forward declare.
11510 (add_thread, add_thread_silent, add_thread_with_info)
11511 (in_thread_list): Add process_stratum_target parameter.
11512 (find_thread_ptid(inferior*, ptid_t)): New overload.
11513 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11514 parameter.
11515 (all_threads()): Delete overload.
11516 (all_threads, all_non_exited_threads): Add process_stratum_target
11517 parameter.
11518 (all_threads_safe): Use brace initialization.
11519 (thread_count): Add process_stratum_target parameter.
11520 (set_resumed, set_running, set_stop_requested, set_executing)
11521 (threads_are_executing, finish_thread_state): Add
11522 process_stratum_target parameter.
11523 (switch_to_thread): Use is_current_thread.
11524 * i386-fbsd-tdep.c: Include "inferior.h".
11525 (i386fbsd_get_thread_local_address): Pass down target.
11526 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11527 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11528 have_inferiors check.
11529 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11530 (inf_ptrace_target::attach): Adjust.
11531 * infcall.c (run_inferior_call): Adjust.
11532 * infcmd.c (run_command_1): Pass target to
11533 scoped_finish_thread_state.
11534 (proceed_thread_callback): Skip inferiors with no execution.
11535 (continue_command): Rename 'all_threads' local to avoid hiding
11536 'all_threads' function. Adjust get_last_target_status call.
11537 (prepare_one_step): Adjust set_running call.
11538 (signal_command): Use user_visible_resume_target. Compare thread
11539 pointers instead of inferior_ptid.
11540 (info_program_command): Adjust to pass down target.
11541 (attach_command): Mark target's 'thread_executing' flag.
11542 (stop_current_target_threads_ns): New, factored out from ...
11543 (interrupt_target_1): ... this. Switch inferior before making
11544 target calls.
11545 * inferior-iter.h
11546 (struct all_inferiors_iterator, struct all_inferiors_range)
11547 (struct all_inferiors_safe_range)
11548 (struct all_non_exited_inferiors_range): Filter on
11549 process_stratum_target too. Remove explicit.
11550 * inferior.c (inferior::inferior): Push dummy target on target
11551 stack.
11552 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11553 Add process_stratum_target parameter, and pass it down.
11554 (have_live_inferiors): Adjust.
11555 (switch_to_inferior_and_push_target): New.
11556 (add_inferior_command, clone_inferior_command): Handle
11557 "-no-connection" parameter. Use
11558 switch_to_inferior_and_push_target.
11559 (_initialize_inferior): Mention "-no-connection" option in
11560 the help of "add-inferior" and "clone-inferior" commands.
11561 * inferior.h: Include "process-stratum-target.h".
11562 (interrupt_target_1): Use bool.
11563 (struct inferior) <push_target, unpush_target, target_is_pushed,
11564 find_target_beneath, top_target, process_target, target_at,
11565 m_stack>: New.
11566 (discard_all_inferiors): Delete.
11567 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11568 (all_inferiors, all_non_exited_inferiors): Add
11569 process_stratum_target parameter.
11570 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11571 (target_last_proc_target): New global.
11572 (follow_fork_inferior): Push target on new inferior. Pass target
11573 to add_thread_silent. Call exec_on_vfork. Handle target's
11574 reference count.
11575 (follow_fork): Adjust get_last_target_status call. Also consider
11576 target.
11577 (follow_exec): Push target on new inferior.
11578 (struct execution_control_state) <target>: New field.
11579 (user_visible_resume_target): New.
11580 (do_target_resume): Call target_async.
11581 (resume_1): Set target's threads_executing flag. Consider resume
11582 target.
11583 (commit_resume_all_targets): New.
11584 (proceed): Also consider resume target. Skip threads of inferiors
11585 with no execution. Commit resumtion in all targets.
11586 (start_remote): Pass current inferior to wait_for_inferior.
11587 (infrun_thread_stop_requested): Consider target as well. Pass
11588 thread_info pointer to clear_inline_frame_state instead of ptid.
11589 (infrun_thread_thread_exit): Consider target as well.
11590 (random_pending_event_thread): New inferior parameter. Use it.
11591 (do_target_wait): Rename to ...
11592 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11593 down.
11594 (threads_are_resumed_pending_p, do_target_wait): New.
11595 (prepare_for_detach): Adjust calls.
11596 (wait_for_inferior): New inferior parameter. Handle it. Use
11597 do_target_wait_1 instead of do_target_wait.
11598 (fetch_inferior_event): Adjust. Switch to representative
11599 inferior. Pass target down.
11600 (set_last_target_status): Add process_stratum_target parameter.
11601 Save target in global.
11602 (get_last_target_status): Add process_stratum_target parameter and
11603 handle it.
11604 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11605 (context_switch): Check inferior_ptid == null_ptid before calling
11606 inferior_thread().
11607 (get_inferior_stop_soon): Pass down target.
11608 (wait_one): Rename to ...
11609 (poll_one_curr_target): ... this.
11610 (struct wait_one_event): New.
11611 (wait_one): New.
11612 (stop_all_threads): Adjust.
11613 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11614 event's target.
11615 (switch_back_to_stepped_thread): Also consider target.
11616 (print_stop_event): Update.
11617 (normal_stop): Update. Also consider the resume target.
11618 * infrun.h (wait_for_inferior): Remove declaration.
11619 (user_visible_resume_target): New declaration.
11620 (get_last_target_status, set_last_target_status): New
11621 process_stratum_target parameter.
11622 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11623 process_stratum_target parameter, and use it.
11624 (clear_inline_frame_state (thread_info*)): New.
11625 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11626 process_stratum_target parameter.
11627 (clear_inline_frame_state (thread_info*)): Declare.
11628 * linux-fork.c (delete_checkpoint_command): Pass target down to
11629 find_thread_ptid.
11630 (checkpoint_command): Adjust.
11631 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11632 instead of just tweaking inferior_ptid.
11633 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11634 (exit_lwp): Pass target down to find_thread_ptid.
11635 (attach_proc_task_lwp_callback): Pass target down to
11636 add_thread/set_running/set_executing.
11637 (linux_nat_target::attach): Pass target down to
11638 thread_change_ptid.
11639 (get_detach_signal): Pass target down to find_thread_ptid.
11640 Consider last target status's target.
11641 (linux_resume_one_lwp_throw, resume_lwp)
11642 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11643 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11644 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11645 (linux_nat_target::async_wait_fd): New.
11646 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11647 target down.
11648 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11649 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11650 * linux-thread-db.c (struct thread_db_info::process_target): New
11651 field.
11652 (add_thread_db_info): Save target.
11653 (get_thread_db_info): New process_stratum_target parameter. Also
11654 match target.
11655 (delete_thread_db_info): New process_stratum_target parameter.
11656 Also match target.
11657 (thread_from_lwp): Adjust to pass down target.
11658 (thread_db_notice_clone): Pass down target.
11659 (check_thread_db_callback): Pass down target.
11660 (try_thread_db_load_1): Always push the thread_db target.
11661 (try_thread_db_load, record_thread): Pass target down.
11662 (thread_db_target::detach): Pass target down. Always unpush the
11663 thread_db target.
11664 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11665 target down. Always unpush the thread_db target.
11666 (find_new_threads_callback, thread_db_find_new_threads_2)
11667 (thread_db_target::update_thread_list): Pass target down.
11668 (thread_db_target::pid_to_str): Pass current inferior down.
11669 (thread_db_target::get_thread_local_address): Pass target down.
11670 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11671 target down.
11672 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11673 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11674 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11675 (procfs_init_inferior): Rename to ...
11676 (procfs_target::procfs_init_inferior): ... this and adjust.
11677 (procfs_target::create_inferior, procfs_notice_thread)
11678 (procfs_do_thread_registers): Adjust.
11679 * ppc-fbsd-tdep.c: Include "inferior.h".
11680 (ppcfbsd_get_thread_local_address): Pass down target.
11681 * proc-service.c (ps_xfer_memory): Switch current inferior and
11682 program space as well.
11683 (get_ps_regcache): Pass target down.
11684 * process-stratum-target.c
11685 (process_stratum_target::thread_address_space)
11686 (process_stratum_target::thread_architecture): Pass target down.
11687 * process-stratum-target.h
11688 (process_stratum_target::threads_executing): New field.
11689 (as_process_stratum_target): New.
11690 * ravenscar-thread.c
11691 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11692 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11693 down.
11694 * record-btrace.c (record_btrace_target::info_record): Adjust.
11695 (record_btrace_target::record_method)
11696 (record_btrace_target::record_is_replaying)
11697 (record_btrace_target::fetch_registers)
11698 (get_thread_current_frame_id, record_btrace_target::resume)
11699 (record_btrace_target::wait, record_btrace_target::stop): Pass
11700 target down.
11701 * record-full.c (record_full_wait_1): Switch to event thread.
11702 Pass target down.
11703 * regcache.c (regcache::regcache)
11704 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11705 process_stratum_target parameter and handle it.
11706 (current_thread_target): New global.
11707 (get_thread_regcache): Add process_stratum_target parameter and
11708 handle it. Switch inferior before calling target method.
11709 (get_thread_regcache): Pass target down.
11710 (get_thread_regcache_for_ptid): Pass target down.
11711 (registers_changed_ptid): Add process_stratum_target parameter and
11712 handle it.
11713 (registers_changed_thread, registers_changed): Pass target down.
11714 (test_get_thread_arch_aspace_regcache): New.
11715 (current_regcache_test): Define a couple local test_target_ops
11716 instances and use them for testing.
11717 (readwrite_regcache): Pass process_stratum_target parameter.
11718 (cooked_read_test, cooked_write_test): Pass mock_target down.
11719 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11720 (get_thread_arch_aspace_regcache): Add process_stratum_target
11721 parameter.
11722 (regcache::target): New method.
11723 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11724 (regcache::registers_changed_ptid): Add process_stratum_target
11725 parameter.
11726 (regcache::m_target): New field.
11727 (registers_changed_ptid): Add process_stratum_target parameter.
11728 * remote.c (remote_state::supports_vCont_probed): New field.
11729 (remote_target::async_wait_fd): New method.
11730 (remote_unpush_and_throw): Add remote_target parameter.
11731 (get_current_remote_target): Adjust.
11732 (remote_target::remote_add_inferior): Push target.
11733 (remote_target::remote_add_thread)
11734 (remote_target::remote_notice_new_inferior)
11735 (get_remote_thread_info): Pass target down.
11736 (remote_target::update_thread_list): Skip threads of inferiors
11737 bound to other targets. (remote_target::close): Don't discard
11738 inferiors. (remote_target::add_current_inferior_and_thread)
11739 (remote_target::process_initial_stop_replies)
11740 (remote_target::start_remote)
11741 (remote_target::remote_serial_quit_handler): Pass down target.
11742 (remote_target::remote_unpush_target): New remote_target
11743 parameter. Unpush the target from all inferiors.
11744 (remote_target::remote_unpush_and_throw): New remote_target
11745 parameter. Pass it down.
11746 (remote_target::open_1): Check whether the current inferior has
11747 execution instead of checking whether any inferior is live. Pass
11748 target down.
11749 (remote_target::remote_detach_1): Pass down target. Use
11750 remote_unpush_target.
11751 (extended_remote_target::attach): Pass down target.
11752 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11753 (remote_target::append_resumption): Pass down target.
11754 (remote_target::append_pending_thread_resumptions)
11755 (remote_target::remote_resume_with_hc, remote_target::resume)
11756 (remote_target::commit_resume): Pass down target.
11757 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11758 (remote_target::interrupt_query)
11759 (remote_target::remove_new_fork_children)
11760 (remote_target::check_pending_events_prevent_wildcard_vcont)
11761 (remote_target::remote_parse_stop_reply)
11762 (remote_target::process_stop_reply): Pass down target.
11763 (first_remote_resumed_thread): New remote_target parameter. Pass
11764 it down.
11765 (remote_target::wait_as): Pass down target.
11766 (unpush_and_perror): New remote_target parameter. Pass it down.
11767 (remote_target::readchar, remote_target::remote_serial_write)
11768 (remote_target::getpkt_or_notif_sane_1)
11769 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11770 down target.
11771 (remote_target::mourn_inferior): Pass down target. Use
11772 remote_unpush_target.
11773 (remote_target::core_of_thread)
11774 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11775 (remote_target::pid_to_exec_file)
11776 (remote_target::thread_handle_to_thread_info): Pass down target.
11777 (remote_target::async_wait_fd): New.
11778 * riscv-fbsd-tdep.c: Include "inferior.h".
11779 (riscv_fbsd_get_thread_local_address): Pass down target.
11780 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11781 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11782 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11783 Adjust.
11784 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11785 * solib-svr4.c (enable_break): Pass down target.
11786 * spu-multiarch.c (parse_spufs_run): Pass down target.
11787 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11788 * target-delegates.c: Regenerate.
11789 * target.c (g_target_stack): Delete.
11790 (current_top_target): Return the current inferior's top target.
11791 (target_has_execution_1): Refer to the passed-in inferior's top
11792 target.
11793 (target_supports_terminal_ours): Check whether the initial
11794 inferior was already created.
11795 (decref_target): New.
11796 (target_stack::push): Incref/decref the target.
11797 (push_target, push_target, unpush_target): Adjust.
11798 (target_stack::unpush): Defref target.
11799 (target_is_pushed): Return bool. Adjust to refer to the current
11800 inferior's target stack.
11801 (dispose_inferior): Delete, and inline parts ...
11802 (target_preopen): ... here. Only dispose of the current inferior.
11803 (target_detach): Hold strong target reference while detaching.
11804 Pass target down.
11805 (target_thread_name): Add assertion.
11806 (target_resume): Pass down target.
11807 (target_ops::beneath, find_target_at): Adjust to refer to the
11808 current inferior's target stack.
11809 (get_dummy_target): New.
11810 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11811 has a thread running.
11812 (initialize_targets): Rename to ...
11813 (_initialize_target): ... this.
11814 * target.h: Include "gdbsupport/refcounted-object.h".
11815 (struct target_ops): Inherit refcounted_object.
11816 (target_ops::shortname, target_ops::longname): Make const.
11817 (target_ops::async_wait_fd): New method.
11818 (decref_target): Declare.
11819 (struct target_ops_ref_policy): New.
11820 (target_ops_ref): New typedef.
11821 (get_dummy_target): Declare function.
11822 (target_is_pushed): Return bool.
11823 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11824 (all_matching_threads_iterator::all_matching_threads_iterator):
11825 Handle filter target.
11826 * thread-iter.h (struct all_matching_threads_iterator, struct
11827 all_matching_threads_range, class all_non_exited_threads_range):
11828 Filter by target too. Remove explicit.
11829 * thread.c (threads_executing): Delete.
11830 (inferior_thread): Pass down current inferior.
11831 (clear_thread_inferior_resources): Pass down thread pointer
11832 instead of ptid_t.
11833 (add_thread_silent, add_thread_with_info, add_thread): Add
11834 process_stratum_target parameter. Use it for thread and inferior
11835 searches.
11836 (is_current_thread): New.
11837 (thread_info::deletable): Use it.
11838 (find_thread_ptid, thread_count, in_thread_list)
11839 (thread_change_ptid, set_resumed, set_running): New
11840 process_stratum_target parameter. Pass it down.
11841 (set_executing): New process_stratum_target parameter. Pass it
11842 down. Adjust reference to 'threads_executing'.
11843 (threads_are_executing): New process_stratum_target parameter.
11844 Adjust reference to 'threads_executing'.
11845 (set_stop_requested, finish_thread_state): New
11846 process_stratum_target parameter. Pass it down.
11847 (switch_to_thread): Also match inferior.
11848 (switch_to_thread): New process_stratum_target parameter. Pass it
11849 down.
11850 (update_threads_executing): Reimplement.
11851 * top.c (quit_force): Pop targets from all inferior.
11852 (gdb_init): Don't call initialize_targets.
11853 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11854 Declare.
11855 (windows_add_thread, windows_delete_thread): Adjust.
11856 (get_windows_debug_event): Rename to ...
11857 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11858 * tracefile-tfile.c (tfile_target_open): Pass down target.
11859 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11860 Forward declare.
11861 (switch_to_thread): Add process_stratum_target parameter.
11862 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11863 parameter. Use it.
11864 (mi_on_resume): Pass target down.
11865 * nat/fork-inferior.c (startup_inferior): Add
11866 process_stratum_target parameter. Pass it down.
11867 * nat/fork-inferior.h (startup_inferior): Add
11868 process_stratum_target parameter.
11869 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11870
11871 2020-01-10 Pedro Alves <palves@redhat.com>
11872
11873 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11874 directly. Instead find the first thread in the thread list and
11875 use switch_to_thread.
11876
11877 2020-01-10 Pedro Alves <palves@redhat.com>
11878
11879 * remote.c (remote_target::remote_add_inferior): Don't bind a
11880 process to the current inferior if the current inferior is already
11881 bound to a process.
11882
11883 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11884 Pedro Alves <palves@redhat.com>
11885
11886 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11887 If no process is specified, return null_ptid instead of
11888 inferior_ptid.
11889 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11890 TARGET_WAITKIND_SIGNALLED with no pid.
11891
11892 2020-01-10 Pedro Alves <palves@redhat.com>
11893
11894 * remote.c (first_remote_resumed_thread): New.
11895 (remote_target::wait_as): Use it as default event_ptid instead of
11896 inferior_ptid.
11897
11898 2020-01-10 Pedro Alves <palves@redhat.com>
11899
11900 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11901
11902 2020-01-10 Pedro Alves <palves@redhat.com>
11903
11904 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11905 not -1.
11906
11907 2020-01-10 Pedro Alves <palves@redhat.com>
11908
11909 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11910 ptid to get_last_target_status.
11911 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11912 ptid to get_last_target_status.
11913 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11914 get_last_target_status.
11915 (info_program_command): Don't pass a target_waitstatus to
11916 get_last_target_status.
11917 * infrun.c (init_wait_for_inferior): Use
11918 nullify_last_target_wait_ptid.
11919 (get_last_target_status): Handle nullptr arguments.
11920 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11921 (print_stop_event): Don't pass a ptid to get_last_target_status.
11922 (normal_stop): Don't pass a ptid to get_last_target_status.
11923 * infrun.h (get_last_target_status, set_last_target_status): Move
11924 comments here and update.
11925 (nullify_last_target_wait_ptid): Declare.
11926 * linux-fork.c (fork_load_infrun_state): Remove local extern
11927 declaration of nullify_last_target_wait_ptid.
11928 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11929 to get_last_target_status.
11930
11931 2020-01-10 Pedro Alves <palves@redhat.com>
11932
11933 * gdbthread.h (scoped_restore_current_thread)
11934 <dont_restore, restore, m_dont_restore>: Declare.
11935 * thread.c (thread_alive): Add assertion. Return bool.
11936 (switch_to_thread_if_alive): New.
11937 (prune_threads): Switch inferior/thread.
11938 (print_thread_info_1): Switch thread before calling target methods.
11939 (scoped_restore_current_thread::restore): New, factored out from
11940 ...
11941 (scoped_restore_current_thread::~scoped_restore_current_thread):
11942 ... this.
11943 (scoped_restore_current_thread::scoped_restore_current_thread):
11944 Add assertion.
11945 (thread_apply_all_command, thread_select): Use
11946 switch_to_thread_if_alive.
11947 * infrun.c (proceed, restart_threads, handle_signal_stop)
11948 (switch_back_to_stepped_thread): Switch current thread before
11949 calling target methods.
11950
11951 2020-01-10 Pedro Alves <palves@redhat.com>
11952
11953 * inferior.c (switch_to_inferior_no_thread): New function,
11954 factored out from ...
11955 (inferior_command): ... here.
11956 * inferior.h (switch_to_inferior_no_thread): Declare.
11957 * mi/mi-main.c (run_one_inferior): Use
11958 switch_to_inferior_no_thread.
11959
11960 2020-01-10 Pedro Alves <palves@redhat.com>
11961
11962 * infcmd.c (kill_command): Remove dead code.
11963
11964 2020-01-10 Pedro Alves <palves@redhat.com>
11965
11966 * remote.c (remote_target::mourn_inferior): No longer check
11967 whether the target is running.
11968
11969 2020-01-10 Pedro Alves <palves@redhat.com>
11970
11971 * corelow.c (core_target::has_execution): Change parameter type to
11972 inferior pointer.
11973 * inferior.c (number_of_live_inferiors): Use
11974 inferior::has_execution instead of target_has_execution_1.
11975 * inferior.h (inferior::has_execution): New.
11976 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11977 inferior::has_execution instead of target_has_execution_1.
11978 * process-stratum-target.c
11979 (process_stratum_target::has_execution): Change parameter type to
11980 inferior pointer. Check the inferior's PID instead of
11981 inferior_ptid.
11982 * process-stratum-target.h
11983 (process_stratum_target::has_execution): Change parameter type to
11984 inferior pointer.
11985 * record-full.c (record_full_core_target::has_execution): Change
11986 parameter type to inferior pointer.
11987 * target.c (target_has_execution_1): Change parameter type to
11988 inferior pointer.
11989 (target_has_execution_current): Adjust.
11990 * target.h (target_ops::has_execution): Change parameter type to
11991 inferior pointer.
11992 (target_has_execution_1): Change parameter type to inferior
11993 pointer. Change return type to bool.
11994 * tracefile.h (tracefile_target::has_execution): Change parameter
11995 type to inferior pointer.
11996
11997 2020-01-10 Pedro Alves <palves@redhat.com>
11998
11999 * exceptions.c (print_flush): Remove current_top_target() check.
12000
12001 2020-01-10 Pedro Alves <palves@redhat.com>
12002
12003 * remote.c (show_remote_exec_file): Show the current inferior's
12004 exec-file instead of the command variable's value.
12005
12006 2020-01-10 Pedro Alves <palves@redhat.com>
12007
12008 * record-full.c (record_full_resume_ptid): New global.
12009 (record_full_target::resume): Set it.
12010 (record_full_wait_1): Use record_full_resume_ptid instead of
12011 inferior_ptid.
12012
12013 2020-01-10 Pedro Alves <palves@redhat.com>
12014
12015 * gdbthread.h (scoped_restore_current_thread)
12016 <dont_restore, restore, m_dont_restore>: Declare.
12017 * thread.c (thread_alive): Add assertion. Return bool.
12018 (switch_to_thread_if_alive): New.
12019 (prune_threads): Switch inferior/thread.
12020 (print_thread_info_1): Switch thread before calling target methods.
12021 (scoped_restore_current_thread::restore): New, factored out from
12022 ...
12023 (scoped_restore_current_thread::~scoped_restore_current_thread):
12024 ... this.
12025 (scoped_restore_current_thread::scoped_restore_current_thread):
12026 Add assertion.
12027 (thread_apply_all_command, thread_select): Use
12028 switch_to_thread_if_alive.
12029
12030 2020-01-10 George Barrett <bob@bob131.so>
12031
12032 * stap-probe.c (stap_modify_semaphore): Don't check for null
12033 semaphores.
12034 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12035 for null semaphores.
12036
12037 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12038
12039 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12040 all source windows, and maintain horizontal scroll status while
12041 doing so.
12042
12043 2020-01-09 Tom Tromey <tom@tromey.com>
12044
12045 PR tui/18932:
12046 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12047 update_source_window, not print_source_lines.
12048
12049 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12050
12051 * tui/tui.c (tui_enable): Register tui hooks after calling
12052 tui_display_main.
12053
12054 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12055
12056 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12057
12058 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12059
12060 * thread.c (print_thread_info_1): Fix indentation.
12061
12062 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12063
12064 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12065 unique_xmalloc_ptr outside the if to always free the demangled name.
12066
12067 2020-01-08 Tom Tromey <tromey@adacore.com>
12068
12069 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12070 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12071 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12072 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12073 Remove.
12074 (section_offsets): New typedef.
12075 * symtab.c (fixup_section, get_msymbol_address): Update.
12076 * symmisc.c (dump_msymbols): Update.
12077 * symfile.h (relative_addr_info_to_section_offsets)
12078 (symfile_map_offsets_to_segments): Update.
12079 * symfile.c (build_section_addr_info_from_objfile)
12080 (init_objfile_sect_indices): Update.
12081 (struct place_section_arg): Change type of "offsets".
12082 (place_section): Update.
12083 (relative_addr_info_to_section_offsets): Change type of
12084 "section_offsets". Remove "num_sections" parameter.
12085 (default_symfile_offsets, syms_from_objfile_1)
12086 (set_objfile_default_section_offset): Update.
12087 (reread_symbols): No need to preserve section offsets by hand.
12088 (symfile_map_offsets_to_segments): Change type of "offsets".
12089 * stap-probe.c (relocate_address): Update.
12090 * stabsread.h (process_one_symbol): Update.
12091 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12092 (solib_target_relocate_section_addresses): Update.
12093 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12094 Update.
12095 * solib-frv.c (frv_relocate_main_executable): Update.
12096 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12097 * solib-aix.c (solib_aix_get_section_offsets): Change return
12098 type.
12099 (solib_aix_solib_create_inferior_hook): Update.
12100 * remote.c (remote_target::get_offsets): Update.
12101 * psymtab.c (find_pc_sect_psymtab): Update.
12102 * psympriv.h (struct partial_symbol) <address, text_low,
12103 text_high>: Update.
12104 * objfiles.h (obj_section_offset): Update.
12105 (struct objfile) <section_offsets>: Change type.
12106 <num_sections>: Remove.
12107 (objfile_relocate): Update.
12108 * objfiles.c (entry_point_address_query): Update
12109 (relocate_one_symbol): Change type of "section_offsets".
12110 (objfile_relocate1, objfile_relocate1): Change type of
12111 "new_offsets".
12112 (objfile_rebase1): Update.
12113 * mipsread.c (mipscoff_symfile_read): Update.
12114 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12115 parameter.
12116 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12117 (parse_external, psymtab_to_symtab_1): Update.
12118 * machoread.c (macho_symfile_offsets): Update.
12119 * ia64-tdep.c (ia64_find_unwind_table): Update.
12120 * hppa-tdep.c (read_unwind_info): Update.
12121 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12122 * dwarf2read.c (create_addrmap_from_index)
12123 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12124 (process_psymtab_comp_unit_reader, add_partial_symbol)
12125 (add_partial_subprogram, process_full_comp_unit)
12126 (read_file_scope, read_func_scope, read_lexical_block_scope)
12127 (read_call_site_scope, dwarf2_rnglists_process)
12128 (dwarf2_ranges_process, dwarf2_ranges_read)
12129 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12130 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12131 Update.
12132 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12133 Update.
12134 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12135 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12136 (process_one_symbol): Change type of "section_offsets".
12137 * ctfread.c (get_objfile_text_range): Update.
12138 * coffread.c (coff_symtab_read, enter_linenos)
12139 (process_coff_symbol): Update.
12140 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12141 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12142
12143 2020-01-08 Tom Tromey <tromey@adacore.com>
12144
12145 * dwarf2read.c (parse_macro_definition): Use std::string.
12146 (parse_macro_definition): Likewise.
12147
12148 2020-01-08 Tom Tromey <tromey@adacore.com>
12149
12150 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12151 (ATTR_ALLOC_CHUNK): Remove.
12152
12153 2020-01-08 Tom Tromey <tromey@adacore.com>
12154
12155 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12156
12157 2020-01-08 Tom Tromey <tromey@adacore.com>
12158
12159 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12160 (dwarf2_compute_name, open_dwo_file): Likewise.
12161 (process_enumeration_scope): Use std::vector.
12162 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12163 (partial_die_info::fixup, dwarf2_start_subfile)
12164 (guess_full_die_structure_name, dwarf2_name): Likewise.
12165 (determine_prefix): Update.
12166 (guess_full_die_structure_name): Make return type const.
12167 (partial_die_full_name): Return unique_xmalloc_ptr.
12168 (DW_FIELD_ALLOC_CHUNK): Remove.
12169
12170 2020-01-07 Tom Tromey <tromey@adacore.com>
12171
12172 PR build/24937:
12173 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12174
12175 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12176
12177 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12178
12179 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12180
12181 * stack.c (print_frame_info): Move disassemble_next_line code
12182 inside source_print block.
12183
12184 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12185
12186 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12187 gdb/signals.h, as we are now using native signal symbols.
12188
12189 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12190
12191 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12192 overflow by an early check of content vs threshold.
12193 * tui/tui-source.c (tui_source_window::line_is_displayed):
12194 Likewise.
12195
12196 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12197
12198 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12199
12200 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12201
12202 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12203 export table if no section contains it's RVA.
12204
12205 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12206
12207 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12208
12209 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12210
12211 * source.c (print_source_lines_base): Set last_line_listed.
12212
12213 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12214
12215 * tui/tui-disasm.c: Remove trailing spaces.
12216
12217 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12218 Pedro Alves <palves@redhat.com>
12219
12220 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12221 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12222 (windows_gdb_signal_to_target): New function, uses the above
12223 enumeration to convert GDB internal signal codes to equivalent
12224 Windows codes.
12225 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12226 * windows-nat.c: Include "gdb_wait.h".
12227 (get_windows_debug_event): Extract the fatal exception from the
12228 exit status and convert to the equivalent Posix signal number.
12229 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12230 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12231 * gdbsupport/gdb_wait.c: New file, implements
12232 windows_status_to_termsig.
12233 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12234 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12235
12236 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12237
12238 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12239 show_layout.
12240
12241 2020-01-05 Luis Machado <luis.machado@linaro.org>
12242
12243 * aarch64-linux-nat.c
12244 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12245 and bfd_mach_aarch64.
12246
12247 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12248
12249 * ui-file.c (stdio_file::can_emit_style_escape)
12250 (tee_file::can_emit_style_escape): Ensure style is used also on
12251 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12252 to gdb_stdout.
12253 * main.c (set_gdb_data_directory): Use file style to output the
12254 warning that the given pathname is not a directory.
12255 * top.c (show_history_filename, gdb_safe_append_history)
12256 (show_gdb_datadir): Use file style.
12257
12258 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12259
12260 * solib-target.c (struct lm_info_target):
12261 Change offsets to be a unique_xmalloc_ptr.
12262 (solib_target_relocate_section_addresses): Update.
12263
12264 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12265
12266 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12267
12268 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12269
12270 * MAINTAINERS (Write After Approval): Add myself.
12271
12272 2020-01-02 Luis Machado <luis.machado@linaro.org>
12273
12274 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12275 Cell BE architecture.
12276 * target.h (struct target_ops) <thread_architecture>: Likewise.
12277
12278 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12279
12280 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12281
12282 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12283
12284 * MAINTAINERS (Write After Approval): Add myself.
12285
12286 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12287
12288 * gdbarch.sh: Update copyright year range of generated files.
12289
12290 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12291
12292 Update copyright year range in all GDB files.
12293
12294 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12295
12296 * copyright.py: Convert to Python 3.
12297
12298 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12299
12300 * copyright.py: Adapt after move of gnulib directory from gdb
12301 directory to toplevel directory.
12302
12303 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12304
12305 * copyright.py (main): Exit if run from the wrong directory.
12306
12307 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12308
12309 * top.c (print_gdb_version): Change copyright year to 2020.
12310
12311 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12312
12313 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12314
12315 For older changes see ChangeLog-2019.
12316 \f
12317 Local Variables:
12318 mode: change-log
12319 left-margin: 8
12320 fill-column: 74
12321 version-control: never
12322 coding: utf-8
12323 End: