arc: Add GNU/Linux support for ARC
[binutils-gdb.git] / gdb / ChangeLog
1 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2
3 * configure.tgt: ARC support for GNU/Linux.
4 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5 * arc-linux-tdep.c: New file.
6 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
7 * arc-tdep.c (arc_write_pc): Use it.
8
9 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
10
11 * arc-tdep.c (arc_check_for_hardware_loop): New.
12 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
13
14 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
15
16 * arc-tdep.h: Include "gdbarch.h".
17
18 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
19
20 * arch/arc.h
21 (arc_gdbarch_features): New class to stir the selection of target XML.
22 (arc_create_target_description): Use FEATURES to choose XML target.
23 (arc_lookup_target_description): Use arc_create_target_description
24 to create _new_ target descriptions or return the already created
25 ones if the FEATURES is the same.
26 * arch/arc.c: Implementation of prototypes described above.
27 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
28 (arc_gdbarch_features_init): Initialize the FEATURES struct.
29 * arc-tdep.c (*_feature_name): Make feature names consistent.
30 (arc_register_feature): A new struct to hold information about
31 registers of a particular target/feature.
32 (arc_check_tdesc_feature): Check if XML provides registers in
33 compliance with ARC_REGISTER_FEATURE structs.
34 (arc_update_acc_reg_names): Add aliases for r58 and r59.
35 (determine_*_reg_feature_set): Which feature name to look for.
36 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
37 (mach_type_to_arc_isa): Convert from a set of binutils machine types
38 to expected ISA enums to be used in arc_gdbarch_features structs.
39 * features/Makefile (FEATURE_XMLFILES): Add new files.
40 * gdb/features/arc/v1-aux.c: New file.
41 * gdb/features/arc/v1-aux.xml: Likewise.
42 * gdb/features/arc/v1-core.c: Likewise.
43 * gdb/features/arc/v1-core.xml: Likewise.
44 * gdb/features/arc/v2-aux.c: Likewise.
45 * gdb/features/arc/v2-aux.xml: Likewise.
46 * gdb/features/arc/v2-core.c: Likewise.
47 * gdb/features/arc/v2-core.xml: Likewise.
48 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
49
50 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
51 Andrew Burgess <andrew.burgess@embecosm.com>
52
53 PR m2/26372
54 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
55 an assert. Remove single element array indexing pattern as the
56 MULTI_SUBSCRIPT support will handle this case too.
57
58 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
59
60 * value.h (valprint_check_validity): Move declaration from
61 here...
62 * valprint.h (valprint_check_validity): ... to here.
63
64 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
65
66 * debug.h: New file.
67 * debug.c (debug_prefixed_vprintf): New function.
68 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
69 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
70
71 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
72
73 * infrun.h (infrun_debug_printf_1): New function declaration.
74 (infrun_debug_printf): New macro.
75 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
76 throughout.
77 (infrun_debug_printf): New function.
78 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
79 (handle_jit_event): Likewise.
80
81 2020-08-21 Mark Wielaard <mark@klomp.org>
82
83 * ada-lex.l: Extend register warnings diagnostics comment for g++.
84
85 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
86
87 * frame.c (enum class frame_id_status): New.
88 (struct frame_info) <this_id::p>: Change type to frame_id_status.
89 (fprintf_frame): Update.
90 (compute_frame_id): Set frame id status to "computing" on entry.
91 Set it back to "not_computed" on failure and to "computed" on
92 success.
93 (get_frame_id): Assert the frame id is not being computed.
94 (create_sentinel_frame): Use frame_id_status::COMPUTED.
95 (create_new_frame): Likewise.
96 (frame_cleanup_after_sniffer): Update assert.
97
98 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
99
100 * regcache.c (pid_ptid_regcache_map): New type.
101 (target_ptid_regcache_map): Remove.
102 (target_pid_ptid_regcache_map): New type.
103 (regcaches): Change type to target_pid_ptid_regcache_map.
104 (get_thread_arch_aspace_regcache): Update.
105 (regcache_thread_ptid_changed): Update, handle pid-like ptid
106 case.
107 (regcaches_size): Update.
108 (regcache_count): Update.
109 (registers_changed_ptid_target_pid_test): New.
110 (_initialize_regcache): Register new test.
111
112 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
113
114 * regcache.c (regcache_count): New.
115 (struct regcache_test_data): New.
116 (regcache_test_data_up): New.
117 (populate_regcaches_for_test): New.
118 (regcaches_test): Remove.
119 (get_thread_arch_aspace_regcache_test): New.
120 (registers_changed_ptid_all_test): New.
121 (registers_changed_ptid_target_test): New.
122 (registers_changed_ptid_target_ptid_test): New.
123 (regcache_thread_ptid_changed): Remove regcache_count lambda.
124 (_initialize_regcache): Register new tests.
125
126 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
127
128 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
129 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
130 gdbarch and aspace parameter. Use current inferior's aspace.
131 Validate regcache's arch value.
132 (regcaches_test): Update.
133
134 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
135
136 * regcache.c (regcaches_test): Call registers_changed.
137
138 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
139
140 * infrun.c (process_event_stop_test): Fix typo "breapoint".
141
142 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
143
144 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
145 to find the end of prologue for flang compiled binaries.
146 * arm-tdep.c (arm_skip_prologue): Likewise.
147 * i386-tdep.c (i386_skip_prologue): Likewise.
148 * producer.c (producer_is_llvm): New function.
149 (producer_parsing_tests): Added new tests for clang/flang.
150 * producer.h (producer_is_llvm): New declaration.
151
152 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
153
154 * linux-nat.c (linux_nat_debug_printf): New function.
155 (linux_nat_debug_printf_1): New macro. Use throughout the file.
156
157 2020-08-18 Aaron Merey <amerey@redhat.com>
158
159 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
160 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
161 (CLIBS): Add DEBUGINFOD_LIBS.
162
163 2020-08-17 Sergei Trofimovich <siarheit@google.com>
164
165 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
166 'gdbarch_num_regs'.
167
168 2020-08-17 Tom Tromey <tromey@adacore.com>
169
170 * ada-varobj.c (ada_varobj_decode_var): Handle case where
171 ada_get_decoded_value returns NULL.
172
173 2020-08-17 Tom Tromey <tromey@adacore.com>
174
175 * python/py-inferior.c (infpy_search_memory): Use
176 gdb_py_object_from_ulongest.
177 * python/py-infevents.c (create_inferior_call_event_object)
178 (create_memory_changed_event_object): Use
179 gdb_py_object_from_ulongest.
180 * python/py-linetable.c (ltpy_entry_get_pc): Use
181 gdb_py_object_from_ulongest.
182
183 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
184
185 * loc.c (class symbol_needs_eval_context): Fix indentation.
186
187 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
188
189 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
190 bool.
191
192 2020-08-17 Tom de Vries <tdevries@suse.de>
193
194 PR gdb/26393
195 * gdbtypes.c (dump_dynamic_prop): New function.
196 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
197
198 2020-08-15 Tom de Vries <tdevries@suse.de>
199
200 PR backtrace/26390
201 * stack.c (print_frame_args): Temporarily set the selected
202 frame to FRAME while printing the frame's arguments.
203
204 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
205
206 PR breakpoints/26385
207 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
208 Always clear watchpoint with PTRACE_SET_DEBUGREG.
209
210 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
211
212 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
213 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
214 and >= to check return value instead of == -1 and != -1.
215
216 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
217
218 * utils.h (class gdb_argv) <as_array_view>: New method.
219 * utils.c (gdb_argv_as_array_view_test): New.
220 (_initialize_utils): Register selftest.
221 * maint.c (maintenance_selftest): Use the new method.
222
223 2020-08-13 Kamil Rytarowski <n54@gmx.com>
224
225 * target.h (supports_dumpcore, dumpcore): New
226 function declarations.
227 * target.c (supports_dumpcore, dumpcore): New
228 functions.
229 * target-delegates.c: Rebuild.
230 * gcore.c (gcore_command): Use target_supports_dumpcore ()
231 and target_dumpcore ().
232
233 2020-08-13 Aaron Merey <amerey@redhat.com>
234
235 * debuginfod-support.c: Replace global variables with user_data.
236
237 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
238
239 * maint.c (maintenance_selftest): Split args and pass array_view
240 to run_tests.
241
242 2020-08-12 Luis Machado <luis.machado@linaro.org>
243
244 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
245 type's length.
246 Use %s and pulongest to print the length.
247
248 2020-08-12 Pedro Alves <palves@redhat.com>
249
250 * NEWS: Move "Multi-target debugging support" item to the
251 "Changes since GDB 9" section.
252
253 2020-08-12 Pedro Alves <palves@redhat.com>
254
255 PR gdb/26336
256 * progspace.c (program_space::remove_objfile): Invalidate the
257 frame cache.
258
259 2020-08-11 Tom de Vries <tdevries@suse.de>
260
261 * MAINTAINERS: Mark ms1 as deleted.
262
263 2020-08-10 Luis Machado <luis.machado@linaro.org>
264
265 PR gdb/26310
266
267 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
268 act accordingly.
269 (aarch64_analyze_prologue_test): Add more unit tests to exercise
270 movz/str/stur/stp skipping behavior.
271
272 2020-08-10 Luis Machado <luis.machado@linaro.org>
273
274 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
275 struct user_sve_header instead of struct sve_context.
276
277 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
278
279 * read.h (dwarf2_fetch_die_loc_sect_off,
280 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
281 `void *` parameter with function_view.
282 * read.c (dwarf2_fetch_die_loc_sect_off,
283 dwarf2_fetch_die_loc_cu_off): Likewise.
284 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
285 (per_cu_dwarf_call): Adjust.
286 (get_frame_address_in_block_wrapper): Remove.
287 (indirect_synthetic_pointer): Adjust.
288 (get_ax_pc): Remove.
289 (dwarf2_compile_expr_to_ax): Adjust.
290
291 2020-08-08 Tom de Vries <tdevries@suse.de>
292
293 PR build/26344
294 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
295 constructor.
296 * regcache.c (get_thread_arch_aspace_regcache): Same.
297
298 2020-08-07 Tom Tromey <tromey@adacore.com>
299
300 * ravenscar-thread.c
301 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
302 New method.
303 (ravenscar_thread_target::wait): Check
304 runtime_initialized.
305 (ravenscar_thread_target::prepare_to_store)
306 (ravenscar_thread_target::stopped_by_sw_breakpoint)
307 (ravenscar_thread_target::stopped_by_hw_breakpoint)
308 (ravenscar_thread_target::stopped_by_watchpoint)
309 (ravenscar_thread_target::stopped_data_address)
310 (ravenscar_thread_target::core_of_thread): Use
311 scoped_restore_current_thread and
312 set_base_thread_from_ravenscar_task.
313
314 2020-08-07 Tom Tromey <tromey@adacore.com>
315
316 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
317
318 2020-08-07 Tom Tromey <tromey@adacore.com>
319
320 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
321 update_inferior_ptid before update_thread_list.
322 (temporarily_change_regcache_ptid): New class.
323 (ravenscar_thread_target::fetch_registers)
324 (ravenscar_thread_target::store_registers)
325 (ravenscar_thread_target::prepare_to_store): Use base thread when
326 forwarding operation.
327
328 2020-08-07 Tom Tromey <tromey@adacore.com>
329
330 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
331 "is_pid" case.
332
333 2020-08-07 Tom Tromey <tromey@adacore.com>
334
335 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
336 New methods.
337 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
338 first.
339 (ravenscar_thread_target::add_thread): Rename from
340 ravenscar_add_thread.
341 (ravenscar_thread_target::update_thread_list): Use a lambda.
342 (ravenscar_thread_target::xfer_partial): New method.
343
344 2020-08-07 Tom Tromey <tromey@adacore.com>
345
346 * ada-lang.h (ada_task_list_iterator_ftype): Now a
347 gdb::function_view.
348 (iterate_over_live_ada_tasks): Change type of argument.
349 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
350 of argument.
351
352 2020-08-07 Tom Tromey <tromey@adacore.com>
353
354 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
355 Remove.
356 (ravenscar_thread_target::extra_thread_info): Remove.
357 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
358 defer to target beneath for non-Ravenscar threads.
359
360 2020-08-07 Tom Tromey <tromey@adacore.com>
361
362 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
363 get_base_thread_from_ravenscar_task>: Now methods.
364 <m_cpu_map>: New member.
365 (ravenscar_thread_target::get_thread_base_cpu): Rename from
366 ravenscar_get_thread_base_cpu. Check m_cpu_map.
367 (ravenscar_thread_target::task_is_currently_active): Update.
368 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
369 Now a method.
370 (ravenscar_thread_target::add_active_thread): Put initial thread
371 into the m_cpu_map.
372
373 2020-08-07 Tom Tromey <tromey@adacore.com>
374
375 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
376 event_ptid.
377
378 2020-08-07 Tom Tromey <tromey@adacore.com>
379
380 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
381 runtime_initialized.
382
383 2020-08-07 Tom Tromey <tromey@adacore.com>
384
385 * ravenscar-thread.c (ravenscar_thread_target): Don't call
386 add_active_thread.
387 (ravenscar_thread_target::add_active_thread): Now public.
388 (ravenscar_inferior_created): Call add_active_thread after pushing
389 the target.
390
391 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
392
393 * regcache.c (ptid_regcache_map): New type.
394 (target_ptid_regcache_map): New type.
395 (regcaches): Change type to target_ptid_regcache_map.
396 (get_thread_arch_aspace_regcache): Update to regcaches' new
397 type.
398 (regcache_thread_ptid_changed): Likewise.
399 (registers_changed_ptid): Likewise.
400 (regcaches_size): Likewise.
401 (regcaches_test): Update.
402 (regcache_thread_ptid_changed): Update.
403 * regcache.h (regcache_up): New type.
404 * gdbsupport/ptid.h (hash_ptid): New struct.
405
406 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
407
408 * observable.h (thread_ptid_changed): Add parameter
409 `process_stratum_target *`.
410 * infrun.c (infrun_thread_ptid_changed): Add parameter
411 `process_stratum_target *` and use it.
412 (selftests): New namespace.
413 (infrun_thread_ptid_changed): New function.
414 (_initialize_infrun): Register selftest.
415 * regcache.c (regcache_thread_ptid_changed): Add parameter
416 `process_stratum_target *` and use it.
417 (regcache_thread_ptid_changed): New function.
418 (_initialize_regcache): Register selftest.
419 * thread.c (thread_change_ptid): Pass target to
420 thread_ptid_changed observable.
421
422 2020-08-06 Caroline Tice <cmtice@google.com>
423
424 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
425 (struct dwp_sections): Update field comments. Add loclists and
426 rnglists fields.
427 (struct virtual_v2_dwo_sections): Rename struct to
428 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
429 size & offset fields for loclists and rnglists.
430 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
431 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
432 skipping dummy type units.
433 (create_dwp_hash_table): Update the large comment above the function to
434 discuss Version 5 DWP files as well, with references. Update all the
435 version checks in the function to check for version 5 as well. Add new
436 section at the end to create dwp hash table for version 5.
437 (create_dwp_v2_section): Rename function to
438 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
439 Add V5 to error message text.
440 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
441 into calls to create_dwp_v2_or_v5_section.
442 (create_dwo_unit_in_dwp_v5): New function.
443 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
444 check for version2; add else clause to handle version 5.
445 (open_and_init_dwo_file): Add code to check dwarf version & only call
446 create_debug_types_hash_table (with sections.types) if version is not 5;
447 else call create_debug_type_hash_table, with sections.info.
448 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
449 version 5.
450 (dwarf2_locate_v5_dwp_sections): New function.
451 (open_and_init_dwp_file): Add else-if clause for version 5 to call
452 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
453
454 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
455
456 * regcache.h (class regcache): Remove friend
457 registers_changed_ptid.
458 <regcache_thread_ptid_changed>: Remove.
459 <regcaches>: Remove.
460 * regcache.c (regcache::regcaches): Rename to...
461 (regcaches): ... this. Make static.
462 (get_thread_arch_aspace_regcache): Update.
463 (regcache::regcache_thread_ptid_changed): Rename to...
464 (regcache_thread_ptid_changed): ... this. Update.
465 (class regcache_access): Remove.
466 (regcaches_test): Update.
467 (_initialize_regcache): Update.
468 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
469 <forward_list>.
470
471 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
472
473 * regcache.h (class regcache) <current_regcache>: Rename to...
474 <regcaches>: ... this. Move doc here.
475 * regcache.c (regcache::current_regcache) Rename to...
476 (regcache::regcaches): ... this. Move doc to header.
477 (get_thread_arch_aspace_regcache): Update.
478 (regcache::regcache_thread_ptid_changed): Update.
479 (registers_changed_ptid): Update.
480 (class regcache_access) <current_regcache_size>: Rename to...
481 <regcaches_size>: ... this.
482 (current_regcache_test): Rename to...
483 (regcaches_test): ... this.
484 (_initialize_regcache): Update.
485
486 2020-08-06 Victor Collod <vcollod@nvidia.com>
487
488 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
489
490 2020-08-05 Kevin Buettner <kevinb@redhat.com>
491
492 * corelow.c (core_target::build_file_mappings): Don't output
493 null pathname in warning.
494
495 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
496
497 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
498 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
499 gdb.dwarf2/dw2-single-line-discriminators.exp,
500 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
501
502 2020-08-05 Tom Tromey <tromey@adacore.com>
503
504 PR rust/26197:
505 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
506 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
507 Fix off-by-one and type size errors in ordinary case.
508
509 2020-08-05 Tom de Vries <tdevries@suse.de>
510
511 * gdbtypes.c (type_not_allocated, type_not_associated): Use
512 "prop->const_val () == 0" instead of "prop->const_val () != 0".
513
514 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
515
516 * frame.h (frame_id_p): Return bool.
517 (frame_id_artificial_p): Return bool.
518 (frame_id_eq): Return bool.
519 (has_stack_frames): Return bool.
520 (get_selected_frame): Fix typo in comment.
521 (get_frame_pc_if_available): Return bool.
522 (get_frame_address_in_block_if_available): Return bool.
523 (get_frame_func_if_available): Return bool.
524 (read_frame_register_unsigned): Return bool.
525 (get_frame_register_bytes): Return bool.
526 (safe_frame_unwind_memory): Return bool.
527 (deprecated_frame_register_read): Return bool.
528 (frame_unwinder_is): Return bool.
529 * frame.c (struct frame_info) <prev_arch::p>: Change type to
530 bool.
531 <this_id::p>: Likewise.
532 <prev_p>: Likewise.
533 (frame_stash_add): Return bool.
534 (get_frame_id): Use bool.
535 (frame_id_build_special) Use bool.
536 (frame_id_build_unavailable_stack): Use bool.
537 (frame_id_build): Use bool.
538 (frame_id_p): Return bool, use true/false instead of 1/0.
539 (frame_id_artificial_p): Likewise.
540 (frame_id_eq): Likewise.
541 (frame_id_inner): Likewise.
542 (get_frame_func_if_available): Likewise.
543 (read_frame_register_unsigned): Likewise.
544 (deprecated_frame_register_read): Likewise.
545 (get_frame_register_bytes): Likewise.
546 (has_stack_frames): Likewise.
547 (inside_main_func): Likewise.
548 (inside_entry_func): Likewise.
549 (get_frame_pc_if_available): Likewise.
550 (get_frame_address_in_block_if_available): Likewise.
551 (frame_unwinder_is): Likewise.
552 (safe_frame_unwind_memory): Likewise.
553 (frame_unwind_arch): Likewise.
554
555 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
556
557 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
558 type to cached_copy_status.
559 (fprintf_frame): Adjust.
560 (get_frame_func_if_available): Adjust.
561 (frame_cleanup_after_sniffer): Adjust.
562
563 2020-08-04 Mark Wielaard <mark@klomp.org>
564
565 * MAINTAINERS (Write After Approval): Update email address.
566
567 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
568
569 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
570 dynamic_prop::const_val.
571
572 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
573
574 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
575 dynamic_prop::kind.
576
577 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
578
579 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
580
581 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
582
583 * configure.tgt: Set gdb_sim for bpf-*-* targets.
584
585 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
586 Jose E. Marchesi <jose.marchesi@oracle.com>
587
588 * configure.tgt: Add entry for bpf-*-*.
589 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
590 (ALLDEPFILES): Add bpf-tdep.c.
591 * bpf-tdep.c: New file.
592 * MAINTAINERS: Add bpf target and maintainer.
593 * NEWS: Mention the support for the new target.
594
595 2020-08-04 Tom de Vries <tdevries@suse.de>
596
597 PR symtab/23270
598 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
599 Error.
600
601 2020-08-03 John Baldwin <jhb@FreeBSD.org>
602
603 * syscalls/freebsd.xml: Regenerate.
604
605 2020-08-03 John Baldwin <jhb@FreeBSD.org>
606
607 * syscalls/update-freebsd.sh: Fix usage and year range.
608
609 2020-08-03 Tom de Vries <tdevries@suse.de>
610
611 PR symtab/26333
612 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
613 DW_LNE_lo_user/DW_LNE_hi_user range.
614
615 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
616
617 PR ada/26318
618 * ada-lang.c (ada_modulus): Return 0 if property is not of const
619 kind.
620
621 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
622
623 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
624
625 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
626
627 * breakpoint.c (set_breakpoint_condition): Update the condition
628 expressions after checking that the input condition string parses
629 successfully and does not contain junk at the end.
630
631 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
632
633 * breakpoint.c (set_breakpoint_condition): Update the
634 condition string after parsing the new condition successfully.
635
636 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
637
638 * proc-api.c (_STRUCTURED_PROC): Don't define.
639 * proc-events.c: Likewise.
640 * proc-flags.c: Likewise.
641 * proc-why.c: Likewise.
642 * procfs.c: Likewise.
643
644 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
645 * configure, config.in: Regenerate.
646
647 2020-07-30 Tom de Vries <tdevries@suse.de>
648
649 PR build/26320
650 * ui-style.h (struct ui_file_style::color): Wrap m_value and
651 m_red/m_green/m_blue in a union.
652
653 2020-07-29 Tom de Vries <tdevries@suse.de>
654
655 PR tdep/26280
656 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
657
658 2020-07-28 Tom Tromey <tromey@adacore.com>
659
660 PR symtab/26270:
661 * symtab.h (find_pc_partial_function_sym): Declare.
662 * cli/cli-cmds.c (disassemble_command): Use
663 find_pc_partial_function_sym. Check asm_demangle.
664 * blockframe.c (cache_pc_function_sym): New global.
665 (cache_pc_function_name): Remove.
666 (clear_pc_function_cache): Update.
667 (find_pc_partial_function_sym): New function, from
668 find_pc_partial_function.
669 (find_pc_partial_function): Rewrite using
670 find_pc_partial_function_sym.
671
672 2020-07-28 Tom Tromey <tromey@adacore.com>
673
674 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
675 help. Add usage.
676
677 2020-07-28 Tom Tromey <tromey@adacore.com>
678
679 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
680 <DW_OP_GNU_variable_value>: Cast to address type.
681
682 2020-07-28 Kamil Rytarowski <n54@gmx.com>
683
684 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
685 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
686 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
687 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
688 (nbsd_get_siginfo_type): New.
689 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
690 (_initialize_nbsd_tdep): New.
691
692 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
693
694 PR binutils/26301
695 * configure: Regenerated.
696
697 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
698
699 PR binutils/26301
700 * configure: Regenerated.
701
702 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
703
704 * python/py-frame.c: Remove 'user-regs.h' include.
705 (frapy_read_register): Rewrite to make use of
706 gdbpy_parse_register_id.
707 * python/py-registers.c (gdbpy_parse_register_id): New function,
708 moved here from python/py-unwind.c. Updated the return type, and
709 also accepts register descriptor objects.
710 * python/py-unwind.c: Remove 'user-regs.h' include.
711 (pyuw_parse_register_id): Moved to python/py-registers.c.
712 (unwind_infopy_add_saved_register): Update to use
713 gdbpy_parse_register_id.
714 (pending_framepy_read_register): Likewise.
715 * python/python-internal.h (gdbpy_parse_register_id): Declare.
716
717 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
718
719 * python/py-registers.c: Add 'user-regs.h' include.
720 (register_descriptor_iter_find): New function.
721 (register_descriptor_iterator_object_methods): New static global
722 methods array.
723 (register_descriptor_iterator_object_type): Add pointer to methods
724 array.
725
726 2020-07-27 John Baldwin <jhb@FreeBSD.org>
727
728 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
729 for all architectures on FreeBSD 11.3 and later.
730
731 2020-07-27 Tom Tromey <tromey@adacore.com>
732
733 * gcore.h (load_corefile): Don't declare.
734
735 2020-07-27 Tom de Vries <tdevries@suse.de>
736
737 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
738 * config.in: Regenerate.
739 * configure: Regenerate.
740
741 2020-07-26 Eli Zaretskii <eliz@gnu.org>
742
743 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
744 ws2tcpip.h. When checking whether socklen_t type is defined, use
745 ws2tcpip.h if it is available and sys/socket.h isn't.
746 * configure: Regenerate.
747 * config.in: Regenerate.
748
749 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
750
751 PR fortran/23051
752 PR fortran/26139
753 * valops.c (value_ind): Pass address to
754 readjust_indirect_value_type.
755 * value.c (readjust_indirect_value_type): Make parameter
756 non-const, and add extra address parameter. Resolve original type
757 before using it.
758 * value.h (readjust_indirect_value_type): Update function
759 signature and comment.
760
761 2020-07-25 Tom de Vries <tdevries@suse.de>
762
763 PR symtab/26243
764 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
765 entries.
766
767 2020-07-24 Aaron Merey <amerey@redhat.com>
768
769 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
770 * configure: Rebuild.
771
772 2020-07-23 Kevin Buettner <kevinb@redhat.com>
773
774 PR corefiles/26294
775 * corelow.c (_initialize_corelow): Add period to help text
776 for "maintenance print core-file-backed-mappings".
777
778 2020-07-23 Pedro Alves <pedro@palves.net>
779
780 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
781 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
782 meanwhile.
783 * frame.c (frame_cache_generation, get_frame_cache_generation):
784 New.
785 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
786 (get_prev_frame_if_no_cycle): On exception, don't touch
787 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
788 * frame.h (get_frame_cache_generation): Declare.
789
790 2020-07-23 Tom de Vries <tdevries@suse.de>
791
792 PR tui/26282
793 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
794 New default constructor.
795
796 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
797
798 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
799 exclude non-statement entries.
800
801 2020-07-22 Kevin Buettner <kevinb@redhat.com>
802
803 * NEWS (New commands): Mention new command
804 "maintenance print core-file-backed-mappings".
805
806 2020-07-22 Kevin Buettner <kevinb@redhat.com>
807
808 * corelow.c (gdbcmd.h): Include.
809 (core_target::info_proc_mappings): New method.
810 (get_current_core_target): New function.
811 (maintenance_print_core_file_backed_mappings): New function.
812 (_initialize_corelow): Add core-file-backed-mappings to
813 "maint print" commands.
814
815 2020-07-22 Kevin Buettner <kevinb@redhat.com>
816
817 * linux-tdep.c (dump_note_entry_p): New function.
818 (linux_dump_mapping_p_ftype): New typedef.
819 (linux_find_memory_regions_full): Add new parameter,
820 should_dump_mapping_p.
821 (linux_find_memory_regions): Adjust call to
822 linux_find_memory_regions_full.
823 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
824 call to linux_find_memory_regions_full.
825
826 2020-07-22 Kevin Buettner <kevinb@redhat.com>
827
828 * corelow.c (solist.h, unordered_map): Include.
829 (class core_target): Add field m_core_file_mappings and
830 method build_file_mappings.
831 (core_target::core_target): Call build_file_mappings.
832 (core_target::~core_target): Free memory associated with
833 m_core_file_mappings.
834 (core_target::build_file_mappings): New method.
835 (core_target::xfer_partial): Use m_core_file_mappings
836 for memory transfers.
837 * linux-tdep.c (linux_read_core_file_mappings): New
838 function.
839 (linux_core_info_proc_mappings): Rewrite to use
840 linux_read_core_file_mappings.
841 (linux_init_abi): Register linux_read_core_file_mappings.
842
843 2020-07-22 Kevin Buettner <kevinb@redhat.com>
844
845 * arch-utils.c (default_read_core_file_mappings): New function.
846 * arch-utils.c (default_read_core_file_mappings): Declare.
847 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
848 * gdbarch.h, gdbarch.c: Regenerate.
849
850 2020-07-22 Kevin Buettner <kevinb@redhat.com>
851
852 PR corefiles/25631
853 * corelow.c (core_target:xfer_partial): Revise
854 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
855 case after first checking the stratum beneath the core
856 target.
857 (has_all_memory): Return true.
858 * target.c (raw_memory_xfer_partial): Revise comment
859 regarding use of has_all_memory.
860
861 2020-07-22 Kevin Buettner <kevinb@redhat.com>
862
863 * exec.h (section_table_xfer_memory): Revise declaration,
864 replacing section name parameter with an optional callback
865 predicate.
866 * exec.c (section_table_xfer_memory): Likewise.
867 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
868 of section_table_xfer_memory.
869
870 2020-07-22 Tom Tromey <tromey@adacore.com>
871
872 * mi/mi-cmd-stack.c (list_args_or_locals): Use
873 lookup_symbol_search_name.
874
875 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
876
877 * python/py-registers.c (gdbpy_register_object_data_init): Remove
878 redundant local variable.
879 (gdbpy_get_register_descriptor): Extract descriptor vector as a
880 reference, not pointer, update code accordingly.
881
882 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
883 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
884
885 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
886 * jit.c (jit_breakpoint_re_set_internal): Use the
887 `skip_jit_symbol_lookup` field.
888
889 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
890 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
891
892 * jit.c (jit_read_descriptor): Define the descriptor address once,
893 use twice.
894 (jit_breakpoint_deleted): Move the declaration of the loop variable
895 `iter` into the loop header.
896 (jit_breakpoint_re_set_internal): Move the declaration of the local
897 variable `objf_data` to the first point of definition.
898 (jit_event_handler): Move the declaration of local variables
899 `code_entry`, `entry_addr`, and `objf` to their first point of use.
900 Rename `objf` to `jited`.
901
902 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
903
904 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
905 Remove.
906 * jit.c (get_jiter_objfile_data): Update.
907
908 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
909 Simon Marchi <simon.marchi@polymtl.ca>
910
911 * jit.c (struct jit_program_space_data): Remove.
912 (jit_program_space_key): Remove.
913 (jiter_objfile_data::~jiter_objfile_data): Remove program space
914 stuff.
915 (get_jit_program_space_data): Remove.
916 (jit_breakpoint_deleted): Iterate on all of the program space's
917 objfiles.
918 (jit_inferior_init): Likewise.
919 (jit_breakpoint_re_set_internal): Likewise. Also change return
920 type to void.
921 (jit_breakpoint_re_set): Pass current_program_space to
922 jit_breakpoint_re_set_internal.
923
924 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
925
926 * jit.h (struct jiter_objfile_data) <cached_code_address,
927 jit_breakpoint>: Move to here from ...
928 * jit.c (jit_program_space_data): ... here.
929 (jiter_objfile_data::~jiter_objfile_data): Update.
930 (jit_breakpoint_deleted): Update.
931 (jit_breakpoint_re_set_internal): Update.
932
933 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
934
935 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
936 checks.
937 (jit_read_descriptor): Remove NULL check.
938 (jit_event_handler): Add an assertion.
939
940 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
941
942 * jit.h (struct jit_objfile_data): Split into...
943 (struct jiter_objfile_data): ... this ...
944 (struct jited_objfile_data): ... and this.
945 * objfiles.h (struct objfile) <jit_data>: Remove.
946 <jiter_data, jited_data>: New fields.
947 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
948 (jiter_objfile_data::~jiter_objfile_data): ... this.
949 (get_jit_objfile_data): Rename to ...
950 (get_jiter_objfile_data): ... this.
951 (add_objfile_entry): Update.
952 (jit_read_descriptor): Use get_jiter_objfile_data.
953 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
954 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
955 (jit_inferior_exit_hook): Use objfile's jited_data field.
956
957 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
958
959 * jit.h: Forward-declare `struct minimal_symbol`.
960 (struct jit_objfile_data): Migrate to here from jit.c; also add a
961 constructor, destructor, and an objfile* field.
962 * jit.c (jit_objfile_data): Remove.
963 (struct jit_objfile_data): Migrate from here to jit.h.
964 (jit_objfile_data::~jit_objfile_data): New destructor
965 implementation with code moved from free_objfile_data.
966 (free_objfile_data): Delete.
967 (get_jit_objfile_data): Update to use the jit_data field of objfile.
968 (jit_find_objf_with_entry_addr): Ditto.
969 (jit_inferior_exit_hook): Ditto.
970 (_initialize_jit): Remove the call to
971 register_objfile_data_with_cleanup.
972 * objfiles.h (struct objfile) <jit_data>: New field.
973
974 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
975
976 * jit.h: Forward-declare `struct objfile`.
977 (jit_event_handler): Add a second parameter, the JITer objfile.
978 * jit.c (jit_read_descriptor): Change the signature to take the
979 JITer objfile as an argument instead of the jit_program_space_data.
980 (jit_inferior_init): Update the call to jit_read_descriptor.
981 (jit_event_handler): Use the new JITer objfile argument when calling
982 jit_read_descriptor.
983 * breakpoint.c (handle_jit_event): Update the call to
984 jit_event_handler to pass the JITer objfile.
985
986 2020-07-21 John Baldwin <jhb@FreeBSD.org>
987
988 * gdbarch.c: Regenerate.
989 * gdbarch.h: Regenerate.
990 * gdbarch.sh (handle_segmentation_fault): Remove method.
991 * infrun.c (handle_segmentation_fault): Remove.
992 (print_signal_received_reason): Remove call to
993 handle_segmentation_fault.
994
995 2020-07-21 John Baldwin <jhb@FreeBSD.org>
996
997 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
998 Rename to sparc64_linux_report_signal_info and add siggnal
999 argument.
1000 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1001 instead of sparc64_linux_handle_segmentation_fault.
1002
1003 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1004
1005 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1006 i386_linux_report_signal_info instead of
1007 i386_linux_handle_segmentation_fault.
1008 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1009 to i386_linux_report_signal_info and add siggnal argument.
1010 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1011 of i386_linux_handle_segmentation_fault.
1012 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1013 to i386_linux_report_signal_info and add siggnal argument.
1014
1015 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1016
1017 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1018 hook if present.
1019
1020 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1021
1022 * gdbarch.c: Regenerate.
1023 * gdbarch.h: Regenerate.
1024 * gdbarch.sh (report_signal_info): New method.
1025 * infrun.c (print_signal_received_reason): Invoke gdbarch
1026 report_signal_info hook if present.
1027
1028 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1029
1030 * python/py-registers.c : Add 'unordered_map' include.
1031 (gdbpy_new_reggroup): Renamed to...
1032 (gdbpy_get_reggroup): ...this. Update to only create register
1033 group descriptors when needed.
1034 (gdbpy_reggroup_iter_next): Update.
1035
1036 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1037
1038 * python/py-registers.c (gdbpy_register_object_data): New static
1039 global.
1040 (gdbpy_register_object_data_init): New function.
1041 (gdbpy_new_register_descriptor): Renamed to...
1042 (gdbpy_get_register_descriptor): ...this, and update to reuse
1043 existing register descriptors where possible.
1044 (gdbpy_register_descriptor_iter_next): Update.
1045 (gdbpy_initialize_registers): Register new gdbarch data.
1046
1047 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1048
1049 * linux-nat.c (stopped_pids): Make static.
1050
1051 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1052
1053 PR ada/26235
1054 * gdbtypes.c (ada_discrete_type_low_bound,
1055 ada_discrete_type_high_bound): Handle undefined bounds.
1056
1057 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1058
1059 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1060 declaration.
1061 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1062 function.
1063
1064 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1065
1066 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1067 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1068 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1069 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1070 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1071 method.
1072
1073 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1074
1075 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1076 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1077 which are deprecated in Guile 3.0.
1078 * configure.ac (try_guile_versions): Add "guile-3.0".
1079 * configure (try_guile_versions): Regenerate.
1080 * NEWS: Update entry.
1081
1082 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1083 Doug Evans <dje@google.com>
1084
1085 PR gdb/21104
1086 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1087 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1088 USING_GUILE_BEFORE_2_2.
1089 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1090 Change type to 'scm_t_port_type *'.
1091 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1092 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1093 parameter and honor it. Update callers.
1094 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1095 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1096 functions.
1097 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1098 USING_GUILE_BEFORE_2_2.
1099 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1100 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1101 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1102 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1103 and 'SCM_PORT_TYPE'.
1104 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1105 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1106 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1107 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1108 [!USING_GUILE_BEFORE_2_2]: New functions.
1109 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1110 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1111 'gdbscm_memory_port_read'.
1112 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1113 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1114 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1115 function.
1116 (ioscm_init_memory_port): Remove.
1117 (ioscm_init_memory_port_stream): New function
1118 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1119 function.
1120 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1121 Return scm_from_uint (0).
1122 (gdbscm_set_memory_port_read_buffer_size_x)
1123 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1124 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1125 Return scm_from_uint (0).
1126 (gdbscm_set_memory_port_write_buffer_size_x)
1127 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1128 * configure.ac (try_guile_versions): Add "guile-2.2".
1129 * configure: Regenerate.
1130 * NEWS: Add entry.
1131
1132 2020-07-18 Tom Tromey <tom@tromey.com>
1133
1134 * linux-nat.c (linux_multi_process): Remove.
1135 (linux_nat_target::supports_multi_process): Return true.
1136
1137 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1138
1139 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1140 (riscv_lookup_target_description): Return pointer out of
1141 unique_ptr.
1142 * target-descriptions.c (allocate_target_description): Add
1143 comment.
1144 (target_desc_deleter::operator()): Likewise.
1145 * target-descriptions.h (struct target_desc_deleter): Moved to
1146 gdbsupport/tdesc.h.
1147 (target_desc_up): Likewise.
1148
1149 2020-07-17 Tom Tromey <tromey@adacore.com>
1150
1151 * linux-nat.c (linux_nat_target::supports_non_stop)
1152 (linux_nat_target::always_non_stop_p): Use "true".
1153 (linux_nat_target::supports_disable_randomization): Use "true" and
1154 "false".
1155
1156 2020-07-16 Caroline Tice <cmtice@google.com>
1157
1158 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1159 (RNGLIST_HEADER_SIZE64): New constant definition.
1160 (struct dwop_section_names): Add rnglists_dwo.
1161 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1162 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1163 (struct dwo_sections): Add rnglists field.
1164 (read_attribut_reprocess): Add tag parameter.
1165 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1166 (cu_debug_rnglists_section): New function (decl & definition).
1167 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1168 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1169 die whose range is being checked; get rnglist section from
1170 cu_debug_rnglists_section, to get from either objfile or dwo file as
1171 appropriate. Add cases for DW_RLE_base_addressx,
1172 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1173 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1174 test inside if-condition and updating complaint message.
1175 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1176 dwarf2_rnglists_process.
1177 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1178 dwarf2_ranges_process.
1179 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1180 need_ranges_base and update comment appropriately. Also pass die tag
1181 to dwarf2_ranges_read.
1182 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1183 need_ranges_base and update comment appropriately. Also pass die tag
1184 to dwarf2_ranges_process.
1185 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1186 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1187 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1188 need_ranges_base and update comment appropriately. Also pass die tag
1189 to read_attribute_reprocess and dwarf2_ranges_read.
1190 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1191 and update function comment appropriately.
1192 (read_loclist_index): Call read_loclists_rnglists_header instead of
1193 read_loclist_header.
1194 (read_rnglist_index): New function.
1195 (read_attribute_reprocess): Add tag parameter. Add code for
1196 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1197 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1198
1199 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1200
1201 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1202 being resolved.
1203
1204 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1205
1206 * arch-utils.c (show_architecture): Update formatting of messages.
1207
1208 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1209
1210 * gdbtypes.h (struct type) <bounds>: Handle array and string
1211 types.
1212 * ada-lang.c (assign_aggregate): Use type::bounds on
1213 array/string type.
1214 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1215 * c-varobj.c (c_number_of_children): Likewise.
1216 (c_describe_child): Likewise.
1217 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1218 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1219 (f_type_print_base): Likewise.
1220 * f-valprint.c (f77_array_offset_tbl): Likewise.
1221 (f77_get_upperbound): Likewise.
1222 (f77_print_array_1): Likewise.
1223 * guile/scm-type.c (gdbscm_type_range): Likewise.
1224 * m2-typeprint.c (m2_array): Likewise.
1225 (m2_is_long_set_of_type): Likewise.
1226 * m2-valprint.c (get_long_set_bounds): Likewise.
1227 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1228 * python/py-type.c (typy_range): Likewise.
1229 * rust-lang.c (rust_internal_print_type): Likewise.
1230 * type-stack.c (type_stack::follow_types): Likewise.
1231 * valarith.c (value_subscripted_rvalue): Likewise.
1232 * valops.c (value_cast): Likewise.
1233
1234 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1235
1236 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1237 callers to use the equivalent accessor methods.
1238
1239 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1240
1241 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1242 (struct type) <bit_stride>: New method.
1243 (TYPE_BIT_STRIDE): Remove.
1244 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1245
1246 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1247
1248 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1249 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1250 callers to use the equivalent accessor methods instead.
1251
1252 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1253
1254 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1255 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1256 callers to use the equivalent accessor methods instead.
1257
1258 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1259
1260 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1261 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1262 to use dynamic_prop::kind.
1263
1264 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1265
1266 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1267 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1268 to get the bound property's kind and check against
1269 PROP_UNDEFINED.
1270
1271 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1272
1273 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1274 all callers to use type::range_bounds followed by
1275 dynamic_prop::{low,high}.
1276
1277 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1278
1279 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1280 const_val, set_const_val, baton, set_locexpr, set_loclist,
1281 set_addr_offset, variant_parts, set_variant_parts,
1282 original_type, set_original_type>: New methods.
1283 <kind>: Rename to...
1284 <m_kind>: ... this. Update all users to use the new methods
1285 instead.
1286 <data>: Rename to...
1287 <m_data>: ... this. Update all users to use the new methods
1288 instead.
1289
1290 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1291
1292 * gdbtypes.c (get_discrete_bounds): Return failure if
1293 the range type's bounds are not both defined and constant
1294 values.
1295 (get_array_bounds): Update comment. Remove undefined bound check.
1296
1297 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1298
1299 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1300 the type::bounds method directly.
1301
1302 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1303
1304 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1305 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1306 are used to set the range type's bounds to use set_bounds.
1307
1308 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1309
1310 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1311
1312 2020-07-10 Pedro Alves <pedro@palves.net>
1313
1314 * gdbthread.h (inferior_ref): Define.
1315 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1316 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1317 * thread.c
1318 (scoped_restore_current_thread::restore):
1319 Adjust to gdb::ref_ptr.
1320 (scoped_restore_current_thread::~scoped_restore_current_thread):
1321 Remove manual decref handling.
1322 (scoped_restore_current_thread::scoped_restore_current_thread):
1323 Adjust to use
1324 inferior_ref::new_reference/thread_info_ref::new_reference.
1325 Incref the thread before calling get_frame_id instead of after.
1326 Let TARGET_CLOSE_ERROR propagate.
1327
1328 2020-07-10 Pedro Alves <pedro@palves.net>
1329
1330 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1331 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1332 NOT_AVAILABLE_ERROR.
1333 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1334 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1335
1336 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1337 Pedro Alves <pedro@palves.net>
1338
1339 PR gdb/26199
1340 * infrun.c (threads_are_resumed_pending_p): Delete.
1341 (do_target_wait): Remove threads_are_executing and
1342 threads_are_resumed_pending_p checks from the inferior_matches
1343 lambda. Update comments.
1344
1345 2020-07-10 Pedro Alves <pedro@palves.net>
1346
1347 PR gdb/26199
1348 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1349 executing threads.
1350
1351 2020-07-10 Pedro Alves <pedro@palves.net>
1352
1353 PR gdb/26199
1354 * infrun.c (handle_no_resumed): Handle multiple targets.
1355
1356 2020-07-10 Pedro Alves <pedro@palves.net>
1357
1358 PR gdb/26199
1359 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1360 target_is_async_p.
1361
1362 2020-07-10 Pedro Alves <pedro@palves.net>
1363
1364 PR gdb/26199
1365 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1366 threads, not all threads.
1367
1368 2020-07-10 Pedro Alves <pedro@palves.net>
1369
1370 PR gdb/26199
1371 * remote.c (remote_target::open_1): Pass remote target pointer as
1372 data to create_async_event_handler.
1373 (remote_async_inferior_event_handler): Mark async event handler
1374 before returning if the remote target still has either pending
1375 events or unacknowledged notifications.
1376
1377 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1378
1379 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1380 declaration.
1381 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1382 function.
1383
1384 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1385
1386 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1387 inferior_ptid.
1388
1389 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1390
1391 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1392 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1393 AT_FREEBSD_PS_STRINGS.
1394
1395 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1396
1397 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1398 of debugfile path on Windows.
1399
1400 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1401
1402 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1403 argument to 'data'.
1404
1405 2020-07-08 Tom Tromey <tromey@adacore.com>
1406
1407 * ada-lang.c (ada_exception_message_1): Use read_memory.
1408
1409 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1410
1411 PR python/22748
1412 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1413 special handling for inline frames.
1414 * findvar.c (value_of_register_lazy): Skip inline frames when
1415 creating lazy register values.
1416 * frame.c (frame_id_computed_p): Delete definition.
1417 * frame.h (frame_id_computed_p): Delete declaration.
1418
1419 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1420
1421 * NEWS: Mention additions to Python API.
1422 * python/py-arch.c (archpy_register_groups): New function.
1423 (arch_object_methods): Add 'register_groups' method.
1424 * python/py-registers.c (reggroup_iterator_object): New struct.
1425 (reggroup_object): New struct.
1426 (gdbpy_new_reggroup): New function.
1427 (gdbpy_reggroup_to_string): New function.
1428 (gdbpy_reggroup_name): New function.
1429 (gdbpy_reggroup_iter): New function.
1430 (gdbpy_reggroup_iter_next): New function.
1431 (gdbpy_new_reggroup_iterator): New function
1432 (gdbpy_initialize_registers): Register new types.
1433 (reggroup_iterator_object_type): Define new Python type.
1434 (gdbpy_reggroup_getset): New static global.
1435 (reggroup_object_type): Define new Python type.
1436 * python/python-internal.h
1437
1438 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1439
1440 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1441 * python/py-arch.c (archpy_registers): New function.
1442 (arch_object_methods): Add 'registers' method.
1443 * python/py-registers.c: New file.
1444 * python/python-internal.h
1445 (gdbpy_new_register_descriptor_iterator): Declare.
1446 (gdbpy_initialize_registers): Declare.
1447 * python/python.c (do_start_initialization): Call
1448 gdbpy_initialize_registers.
1449 * NEWS: Mention additions to the Python API.
1450
1451 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1452
1453 * NEWS: Mention new Python API method.
1454 * python/py-unwind.c (pending_framepy_architecture): New function.
1455 (pending_frame_object_methods): Add architecture method.
1456
1457 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1458
1459 * gdbarch.c: Regenerate.
1460 * gdbarch.h: Regenerate.
1461 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1462 (gdbarch_data): Use internal_error for the case where
1463 deprecated_set_gdbarch_data was originally needed.
1464 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1465 and use passed in obstack.
1466 (libunwind_frame_set_descr): Should no longer get back NULL from
1467 gdbarch_data.
1468 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1469 type.
1470 * user-regs.c (user_regs_init): Update parameters, and use passed
1471 in obstack.
1472 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1473 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1474
1475 2020-07-06 Tom de Vries <tdevries@suse.de>
1476
1477 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1478 End-Of-Sequence in lte_is_less_than.
1479 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1480 "gdb: Don't reorder line table entries too much when sorting".
1481
1482 2020-07-06 Tom de Vries <tdevries@suse.de>
1483
1484 PR tui/26205
1485 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1486
1487 2020-07-05 Tom de Vries <tdevries@suse.de>
1488
1489 PR build/26187
1490 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1491 std::uncaught_exceptions instead of deprecated
1492 std::uncaught_exception.
1493
1494 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1495
1496 * macroexp.h (macro_stringify): Return
1497 gdb::unique_xmalloc_ptr<char>.
1498 * macroexp.c (macro_stringify): Likewise.
1499 * macrotab.c (fixup_definition): Update.
1500
1501 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1502
1503 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1504 (lex_one_token): Update.
1505 * macroexp.c (struct macro_buffer) <release>: Return
1506 gdb::unique_xmalloc_ptr<char>.
1507 (macro_stringify): Update.
1508 (macro_expand): Update.
1509 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1510 * macroexp.h (macro_expand_next): Likewise.
1511
1512 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1513
1514 * macroexp.h (macro_lookup_ftype): Remove.
1515 (macro_expand, macro_expand_once, macro_expand_next): Remove
1516 lookup function parameters, add scope parameter.
1517 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1518 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1519 * macroscope.h (standard_macro_lookup): Change parameter type
1520 to macro_scope.
1521 * macroscope.c (standard_macro_lookup): Likewise.
1522 * c-exp.y (lex_one_token): Update.
1523 * macrocmd.c (macro_expand_command): Likewise.
1524 (macro_expand_once_command): Likewise.
1525
1526 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1527
1528 * inf-loop.c (inferior_event_handler): Remove client_data param.
1529 * inf-loop.h (inferior_event_handler): Likewise.
1530 * infcmd.c (step_1): Adjust.
1531 * infrun.c (proceed): Adjust.
1532 (fetch_inferior_event): Remove client_data param.
1533 (infrun_async_inferior_event_handler): Adjust.
1534 * infrun.h (fetch_inferior_event): Remove `void *` param.
1535 * linux-nat.c (handle_target_event): Adjust.
1536 * record-btrace.c (record_btrace_handle_async_inferior_event):
1537 Adjust.
1538 * record-full.c (record_full_async_inferior_event_handler):
1539 Adjust.
1540 * remote.c (remote_async_inferior_event_handler): Adjust.
1541
1542 2020-07-01 Tom Tromey <tom@tromey.com>
1543
1544 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1545 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1546
1547 2020-07-01 Tom Tromey <tom@tromey.com>
1548
1549 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1550 tui_gen_win_info.
1551 (tui_win_info::make_window): Merge with
1552 tui_gen_win_info::make_window.
1553 (tui_win_info::make_visible): Move from tui_gen_win_info.
1554 * tui/tui-win.c (tui_win_info::max_width): Move from
1555 tui_gen_win_info.
1556 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1557 type.
1558 <window_factory>: Likewise.
1559 * tui/tui-layout.c (tui_win_info::resize): Move from
1560 tui_gen_win_info.
1561 (make_standard_window): Change return type.
1562 (get_locator_window, tui_get_window_by_name): Likewise.
1563 (tui_layout_window::apply): Remove a cast.
1564 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1565 (struct tui_win_info): Merge with tui_gen_win_info.
1566 (struct tui_gen_win_info): Remove.
1567
1568 2020-07-01 Tom Tromey <tom@tromey.com>
1569
1570 * tui/tui-stack.h (struct tui_locator_window): Derive from
1571 tui_win_info.
1572 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1573 <can_box>: New method.
1574
1575 2020-07-01 Tom Tromey <tom@tromey.com>
1576
1577 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1578
1579 2020-07-01 Tom Tromey <tom@tromey.com>
1580
1581 * tui/tui-regs.c (tui_data_window::display_registers_from)
1582 (tui_data_window::display_registers_from)
1583 (tui_data_window::first_data_item_displayed)
1584 (tui_data_window::delete_data_content_windows): Update.
1585 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1586 Remove.
1587 (tui_data_window::check_register_values): Update.
1588 (tui_data_item_window::rerender): Add parameters. Update.
1589 (tui_data_item_window::refresh_window): Remove.
1590 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1591 virtual.
1592 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1593 tui_gen_win_info.
1594 <refresh_window, max_height, min_height>: Remove.
1595 <rerender>: Add parameters.
1596 <x, y, visible>: New members.
1597 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1598 <m_item_width>: New member.
1599
1600 2020-07-01 Tom Tromey <tom@tromey.com>
1601
1602 * tui/tui-regs.c (tui_data_window::show_register_group)
1603 (tui_data_window::check_register_values): Update.
1604 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1605 from item_no.
1606
1607 2020-07-01 Tom Tromey <tom@tromey.com>
1608
1609 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1610 useless "if".
1611
1612 2020-07-01 Tom Tromey <tom@tromey.com>
1613
1614 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1615 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1616
1617 2020-07-01 Tom Tromey <tom@tromey.com>
1618
1619 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1620 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1621 (struct tui_line_or_address): Move from tui-data.h.
1622 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1623 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1624 (tui_cmd_window, tui_source_window_base, tui_source_window)
1625 (tui_disasm_window): Don't declare.
1626 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1627 to tui-winsource.h.
1628 (SINGLE_KEY): Move to tui-stack.c.
1629
1630 2020-07-01 Tom Tromey <tom@tromey.com>
1631
1632 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1633 std::string.
1634 * tui/tui-regs.c (class tab_expansion_file): New.
1635 (tab_expansion_file::write): New method.
1636 (tui_register_format): Change return type. Use
1637 tab_expansion_file.
1638 (tui_get_register, tui_data_window::display_registers_from)
1639 (tui_data_item_window::rerender): Update.
1640 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1641 * tui/tui-io.c (tui_expand_tabs): Remove.
1642
1643 2020-07-01 Tom Tromey <tom@tromey.com>
1644
1645 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1646
1647 2020-07-01 Fangrui Song <maskray@google.com>
1648
1649 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1650
1651 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1652
1653 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1654 forms for DW_AT_associated and DW_AT_allocated attributes,
1655 which is already checked in function attr_to_dynamic_prop.
1656
1657 2020-06-30 Tom Tromey <tromey@adacore.com>
1658
1659 * dwarf2/read.c (quirk_rust_enum): Correctly call
1660 alloc_rust_variant for default-less enum.
1661
1662 2020-06-30 Tom Tromey <tromey@adacore.com>
1663
1664 PR build/26183:
1665 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1666 gdb::to_string.
1667
1668 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1669
1670 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1671 * gdbarch.h: Re-generate.
1672
1673 2020-06-28 Tom Tromey <tom@tromey.com>
1674
1675 * command.h (cmd_types): Remove.
1676 (cmd_type): Don't declare.
1677 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1678 typedef.
1679 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1680 * cli/cli-decode.c (cmd_type): Remove.
1681
1682 2020-06-27 Pedro Alves <palves@redhat.com>
1683
1684 * fork-child.c (prefork_hook): Adjust.
1685 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1686 Delete.
1687 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1688 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1689 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1690 Remove declarations.
1691 (struct inferior) <set_tty, tty>: New methods.
1692 (struct inferior) <terminal>: Rename to ...
1693 (struct inferior) <m_terminal>: ... this and make private.
1694 * main.c (captured_main_1): Adjust.
1695 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1696 (mi_cmd_inferior_tty_show): Adjust.
1697 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1698 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1699
1700 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1701
1702 * configure.ac: Add --enable-libctf: handle --disable-static
1703 properly.
1704 * acinclude.m4: sinclude ../config/enable.m4.
1705 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1706 (LIBCTF): Substitute in.
1707 (CTF_DEPS): New, likewise.
1708 (CLIBS): libctf needs symbols from libbfd: move earlier.
1709 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1710 flags.
1711 * ctfread.c: Surround in ENABLE_LIBCTF.
1712 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1713 * configure: Regenerate.
1714 * config.in: Likewise.
1715
1716 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1717
1718 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1719
1720 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1721
1722 * inferior.h (struct inferior) <terminal>: Change type to
1723 gdb::unique_xmalloc_ptr<char>.
1724 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1725 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1726 field, adjust to unique pointer.
1727 (get_inferior_io_terminal): Adjust to unique pointer.
1728
1729 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1730
1731 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1732 registers, not just the known core set of registers.
1733
1734 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1735
1736 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1737 fflags, frm, and fcsr registers.
1738 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1739 restore groups.
1740 (riscv_tdesc_unknown_reg): New function.
1741 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1742 tdesc_use_registers.
1743 * riscv-tdep.h (struct gdbarch_tdep): Add
1744 unknown_csrs_first_regnum, unknown_csrs_count,
1745 duplicate_fflags_regnum, duplicate_frm_regnum, and
1746 duplicate_fcsr_regnum fields.
1747
1748 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1749
1750 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1751 callback, use the callback (when not null) to help number unknown
1752 registers.
1753 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1754 (tdesc_use_registers): Add extra parameter to declaration.
1755
1756 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1757
1758 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1759 in the file.
1760 (class riscv_pending_register_alias): Likewise.
1761 (riscv_register_feature::register_info): Change 'required_p' field
1762 to 'required', and change its type. Add 'check' member function.
1763 (riscv_register_feature::register_info::check): Define new member
1764 function.
1765 (riscv_xreg_feature): Change initialisation of 'required' field.
1766 (riscv_freg_feature): Likewise.
1767 (riscv_virtual_feature): Likewise.
1768 (riscv_csr_feature): Likewise.
1769 (riscv_check_tdesc_feature): Take extra parameter, the csr
1770 tdesc_feature, rewrite the function to use the new
1771 riscv_register_feature::register_info::check function.
1772 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1773
1774 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1775
1776 * features/Makefile: Remove all references to the deleted files
1777 below.
1778 * features/riscv/32bit-csr.c: Deleted.
1779 * features/riscv/32bit-csr.xml: Deleted.
1780 * features/riscv/64bit-csr.c: Deleted.
1781 * features/riscv/64bit-csr.xml: Deleted.
1782 * features/riscv/rebuild-csr-xml.sh: Deleted.
1783
1784 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1785
1786 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1787 whitespace error for declaration of names member variable.
1788 (struct riscv_register_feature): Add new prefer_first_name member
1789 variable, and fix whitespace error in declaration of registers.
1790 (riscv_xreg_feature): Initialize prefer_first_name field.
1791 (riscv_freg_feature): Likewise.
1792 (riscv_virtual_feature): Likewise.
1793 (riscv_csr_feature): Likewise.
1794 (riscv_register_name): Expand on comments. Remove register name
1795 modifications for CSR and virtual registers.
1796
1797 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1798
1799 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1800 errors.
1801
1802 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1803
1804 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1805 riscv-opc.h.
1806 (class riscv_pending_register_alias): New class.
1807 (riscv_check_tdesc_feature): Take vector of pending aliases and
1808 populate it as appropriate.
1809 (riscv_setup_register_aliases): Delete.
1810 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1811 to riscv_check_tdesc_feature in all cases. Use the vector to
1812 create the register aliases.
1813
1814 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1815
1816 * sol2-tdep.c (sol2_static_transform_name): Remove.
1817 (sol2_init_abi): Don't register it.
1818 * gdbarch.sh (static_transform_name): Remove.
1819 * gdbarch.c, gdbarch.h: Regenerate.
1820
1821 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1822 gdbarch_static_transform_name.
1823 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1824 * stabsread.c (define_symbol) <'X'>: Remove.
1825 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1826 handling.
1827 <'V'>: Likewise.
1828 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1829 <'S'>: Remove call to gdbarch_static_transform_name.
1830
1831 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1832
1833 * procfs.c (procfs_pre_trace): New function.
1834 (procfs_target::create_inferior): Pass it to fork_inferior.
1835
1836 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1837
1838 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1839 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1840 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1841 sol2-tdep.o, sparc-sol2-tdep.o.
1842 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1843 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1844 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1845 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1846
1847 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1848
1849 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1850 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1851 Call sol2_init_abi.
1852 Remove calls to set_gdbarch_skip_solib_resolver,
1853 set_gdbarch_core_pid_to_str.
1854 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1855 (i386_sol2_static_transform_name): Remove.
1856 (i386_sol2_init_abi): Call sol2_init_abi.
1857 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1858 set_gdbarch_static_transform_name,
1859 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1860 Use sol2_sigtramp_p.
1861 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1862 (sol2_sigtramp_p): New function.
1863 (sol2_static_transform_name): New function.
1864 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1865 (sol2_init_abi): New function.
1866 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1867 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1868 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1869 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1870 (sparc_sol2_static_transform_name): Remove.
1871 (sparc32_sol2_init_abi): Call sol2_init_abi.
1872 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1873 set_gdbarch_static_transform_name,
1874 set_gdbarch_skip_solib_resolver,
1875 set_gdbarch_core_pid_to_str.
1876 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1877 (sparc_sol2_static_transform_name): Remove
1878 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1879 call sol2_sigtramp_p.
1880 (sparc64_sol2_init_abi): Call sol2_init_abi.
1881 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1882 set_gdbarch_static_transform_name,
1883 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1884
1885 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1886
1887 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1888 * exec.c (validate_exec_file): If from_tty, set both
1889 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1890 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1891 and from_tty, unconditionally ask a confirmation.
1892
1893 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1894
1895 * target-descriptions.c (tdesc_architecture_name): Protect against
1896 NULL pointer dereference.
1897 (maint_print_xml_tdesc_cmd): New function.
1898 (_initialize_target_descriptions): Register new 'maint print
1899 xml-tdesc' command and give it the filename completer.
1900 * NEWS: Mention new 'maint print xml-tdesc' command.
1901
1902 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1903
1904 * target-descriptions.c (class tdesc_compatible_info): New class.
1905 (struct target_desc): Change type of compatible vector.
1906 (tdesc_compatible_p): Update for change in type of
1907 target_desc::compatible.
1908 (tdesc_compatible_info_list): New function.
1909 (tdesc_compatible_info_arch_name): New function.
1910 (tdesc_add_compatible): Update for change in type of
1911 target_desc::compatible.
1912 (print_c_tdesc::visit_pre): Likewise.
1913
1914 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1915
1916 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1917 whitespace to underscore.
1918 (maint_print_c_tdesc_cmd): Use fake filename for target
1919 descriptions that came from the target.
1920 (_initialize_target_descriptions): Add filename command completion
1921 for 'maint print c-tdesc'.
1922
1923 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1924
1925 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1926 lines.
1927
1928 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1929
1930 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1931 lines.
1932 (dwarf2_find_location_expression): Likewise.
1933 (call_site_parameter_matches): Likewise.
1934 (dwarf2_compile_expr_to_ax): Likewise.
1935 (disassemble_dwarf_expression): Likewise.
1936 (loclist_describe_location): Likewise.
1937
1938 2020-06-23 Pedro Alves <palves@redhat.com>
1939
1940 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1941 progspace-and-thread.h. Include scoped-mock-context.h instead.
1942 (register_to_value_test): Use scoped_mock_context.
1943 * regcache.c: Include "scoped-mock-context.h".
1944 (cooked_read_test): Don't error out if a target is already pushed.
1945 Use scoped_mock_context. Adjust.
1946 * scoped-mock-context.h: New file.
1947
1948 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1949
1950 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1951 initializer.
1952 (ada_language::is_string_type_p): New member function.
1953 * c-lang.c (c_language_data): Delete la_is_string_type_p
1954 initializer.
1955 (cplus_language_data): Likewise.
1956 (asm_language_data): Likewise.
1957 (minimal_language_data): Likewise.
1958 * d-lang.c (d_language_data): Likewise.
1959 * f-lang.c (f_is_string_type_p): Delete function, implementation
1960 moved to f_language::is_string_type_p.
1961 (f_language_data): Delete la_is_string_type_p initializer.
1962 (f_language::is_string_type_p): New member function,
1963 implementation from f_is_string_type_p.
1964 * go-lang.c (go_is_string_type_p): Delete function, implementation
1965 moved to go_language::is_string_type_p.
1966 (go_language_data): Delete la_is_string_type_p initializer.
1967 (go_language::is_string_type_p): New member function,
1968 implementation from go_is_string_type_p.
1969 * language.c (language_defn::is_string_type_p): Define new member
1970 function.
1971 (default_is_string_type_p): Make static, add comment copied from
1972 header file.
1973 (unknown_language_data): Delete la_is_string_type_p initializer.
1974 (unknown_language::is_string_type_p): New member function.
1975 (auto_language_data): Delete la_is_string_type_p initializer.
1976 (auto_language::is_string_type_p): New member function.
1977 * language.h (language_data): Delete la_is_string_type_p field.
1978 (language_defn::is_string_type_p): Declare new function.
1979 (default_is_string_type_p): Delete desclaration, move comment to
1980 definition.
1981 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1982 moved to m2_language::is_string_type_p.
1983 (m2_language_data): Delete la_is_string_type_p initializer.
1984 (m2_language::is_string_type_p): New member function,
1985 implementation from m2_is_string_type_p.
1986 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1987 initializer.
1988 * opencl-lang.c (opencl_language_data): Likewise.
1989 * p-lang.c (pascal_is_string_type_p): Delete function,
1990 implementation moved to pascal_language::is_string_type_p.
1991 (pascal_language_data): Delete la_is_string_type_p initializer.
1992 (pascal_language::is_string_type_p): New member function,
1993 implementation from pascal_is_string_type_p.
1994 * rust-lang.c (rust_is_string_type_p): Delete function,
1995 implementation moved to rust_language::is_string_type_p.
1996 (rust_language_data): Delete la_is_string_type_p initializer.
1997 (rust_language::is_string_type_p): New member function,
1998 implementation from rust_is_string_type_p.
1999 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2000 is_string_type_p.
2001
2002 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2003
2004 * ada-lang.c (ada_language_data): Delete la_print_typedef
2005 initializer.
2006 (ada_language::print_typedef): New member function.
2007 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2008 (cplus_language_data): Likewise.
2009 (asm_language_data): Likewise.
2010 (minimal_language_data): Likewise.
2011 * d-lang.c (d_language_data): Likewise.
2012 * f-lang.c (f_language_data): Likewise.
2013 (f_language::print_typedef): New member function.
2014 * go-lang.c (go_language_data): Delete la_print_typedef
2015 initializer.
2016 * language.c (language_defn::print_typedef): Define member
2017 function.
2018 (unknown_language_data): Delete la_print_typedef initializer.
2019 (unknown_language::print_typedef): New member function.
2020 (auto_language_data): Delete la_print_typedef initializer.
2021 (auto_language::print_typedef): New member function.
2022 * language.h (language_data): Delete la_print_typedef field.
2023 (language_defn::print_typedef): Declare new member function.
2024 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2025 (default_print_typedef): Delete declaration.
2026 * m2-lang.c (m2_language_data): Delete la_print_typedef
2027 initializer.
2028 (m2_language::print_typedef): New member function.
2029 * objc-lang.c (objc_language_data): Delete la_print_typedef
2030 initializer.
2031 * opencl-lang.c (opencl_language_data): Likewise.
2032 * p-lang.c (pascal_language_data): Likewise.
2033 (pascal_language::print_typedef): New member function.
2034 * rust-lang.c (rust_print_typedef): Delete function,
2035 implementation moved to rust_language::print_typedef.
2036 (rust_language): Delete la_print_typedef initializer.
2037 (rust_language::print_typedef): New member function,
2038 implementation from rust_print_typedef.
2039 * typeprint.c (default_print_typedef): Delete.
2040
2041 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2042
2043 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2044 (ada_language::printstr): New member function.
2045 * c-lang.c (c_language_data): Delete la_printstr initializer.
2046 (cplus_language_data): Likewise.
2047 (asm_language_data): Likewise.
2048 (minimal_language_data): Likewise.
2049 * d-lang.c (d_language_data): Likewise.
2050 * f-lang.c (f_printstr): Rename to f_language::printstr.
2051 (f_language_data): Delete la_printstr initializer.
2052 (f_language::printstr): New member function, implementation from
2053 f_printstr.
2054 * go-lang.c (go_language_data): Delete la_printstr initializer.
2055 * language.c (language_defn::printstr): Define new member
2056 function.
2057 (unk_lang_printstr): Delete.
2058 (unknown_language_data): Delete la_printstr initializer.
2059 (unknown_language::printstr): New member function.
2060 (auto_language_data): Delete la_printstr initializer.
2061 (auto_language::printstr): New member function.
2062 * language.h (language_data): Delete la_printstr field.
2063 (language_defn::printstr): Declare new member function.
2064 (LA_PRINT_STRING): Update call to printstr.
2065 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2066 (m2_language_data): Delete la_printstr initializer.
2067 (m2_language::printstr): New member function, implementation from
2068 m2_printstr.
2069 * objc-lang.c (objc_language_data): Delete la_printstr
2070 initializer.
2071 * opencl-lang.c (opencl_language_data): Likewise.
2072 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2073 (pascal_language_data): Delete la_printstr initializer.
2074 (pascal_language::printstr): New member function, implementation
2075 from pascal_printstr.
2076 * p-lang.h (pascal_printstr): Delete declaration.
2077 * rust-lang.c (rust_printstr): Update header comment.
2078 (rust_language_data): Delete la_printstr initializer.
2079 (rust_language::printstr): New member function.
2080
2081 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2082
2083 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2084 (ada_language::printchar): New member function.
2085 * c-lang.c (c_language_data): Delete la_printchar initializer.
2086 (cplus_language_data): Likewise.
2087 (asm_language_data): Likewise.
2088 (minimal_language_data): Likewise.
2089 * d-lang.c (d_language_data): Likewise.
2090 * f-lang.c (f_printchar): Rename to f_language::printchar.
2091 (f_language_data): Delete la_printchar initializer.
2092 (f_language::printchar): New member function, implementation from
2093 f_printchar.
2094 * go-lang.c (go_language_data): Delete la_printchar initializer.
2095 * language.c (unk_lang_printchar): Delete.
2096 (language_defn::printchar): Define new member function.
2097 (unknown_language_data): Delete la_printchar initializer.
2098 (unknown_language::printchar): New member function.
2099 (auto_language_data): Delete la_printchar initializer.
2100 (auto_language::printchar): New member function.
2101 * language.h (language_data): Delete la_printchar field.
2102 (language_defn::printchar): Declare new member function.
2103 (LA_PRINT_CHAR): Update call to printchar.
2104 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2105 (m2_language::printchar): New member function.
2106 * objc-lang.c (objc_language_data): Delete la_printchar
2107 initializer.
2108 * opencl-lang.c (opencl_language_data): Likewise.
2109 * p-lang.c (pascal_language_data): Delete la_printchar
2110 initializer.
2111 (pascal_language::printchar): New member function.
2112 * rust-lang.c (rust_printchar): Rename to
2113 rust_language::printchar.
2114 (rust_language_data): Delete la_printchar initializer.
2115 (rust_language::printchar): New member function, implementation
2116 from rust_printchar.
2117
2118 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2119
2120 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2121 (ada_language_data): Delete la_emitchar initializer.
2122 (ada_language::emitchar): New member function, implementation from
2123 emit_char.
2124 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2125 (cplus_language_data): Likewise.
2126 (asm_language_data): Likewise.
2127 (minimal_language_data): Likewise.
2128 * d-lang.c (d_language_data): Likewise.
2129 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2130 (f_language_data): Delete la_emitchar initializer.
2131 (f_language::emitchar): New member function, implementation from
2132 f_emit_char.
2133 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2134 * language.c (unk_lang_emit_char): Delete.
2135 (language_defn::emitchar): New member function definition.
2136 (unknown_language_data): Delete la_emitchar initializer.
2137 (unknown_language::emitchar): New member function.
2138 (auto_language_data): Delete la_emitchar initializer.
2139 (auto_language::emitchar): New member function.
2140 * language.h (language_data): Delete la_emitchar field.
2141 (language_defn::emitchar): New member field declaration.
2142 (LA_EMIT_CHAR): Update call to emitchar.
2143 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2144 (m2_language_data): Delete la_emitchar initializer.
2145 (m2_language::emitchar): New member function, implementation from
2146 m2_emit_char.
2147 * objc-lang.c (objc_language_data): Delete la_emitchar
2148 initializer.
2149 * opencl-lang.c (opencl_language_data): Likewise.
2150 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2151 (pascal_language_data): Delete la_emitchar initializer.
2152 (pascal_language::emitchar): New member function, implementation
2153 from pascal_emit_char.
2154 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2155 (rust_language_data): Delete la_emitchar initializer.
2156 (rust_language::emitchar): New member function, implementation
2157 from rust_emitchar.
2158
2159 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2160
2161 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2162 (ada_language_data): Delete la_post_parser initializer.
2163 (ada_language::post_parser): New member function.
2164 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2165 (cplus_language_data): Likewise.
2166 (asm_language_data): Likewise.
2167 (minimal_language_data): Likewise.
2168 * d-lang.c (d_language_data): Likewise.
2169 * f-lang.c (f_language_data): Likewise.
2170 * go-lang.c (go_language_data): Likewise.
2171 * language.c (unknown_language_data): Likewise.
2172 (auto_language_data): Likewise.
2173 * language.h (language_data): Delete la_post_parser field.
2174 (language_defn::post_parser): New member function.
2175 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2176 * objc-lang.c (objc_language_data): Likewise.
2177 * opencl-lang.c (opencl_language_data): Likewise.
2178 * p-lang.c (pascal_language_data): Likewise.
2179 * parse.c (parse_exp_in_context): Update call to post_parser.
2180 (null_post_parser): Delete definition.
2181 * parser-defs.h (null_post_parser): Delete declaration.
2182 * rust-lang.c (rust_language_data): Delete la_post_parser
2183 initializer.
2184
2185 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2186
2187 * ada-lang.c (parse): Rename to ada_language::parser.
2188 (ada_language_data): Delete la_parser initializer.
2189 (ada_language::parser): New member function, implementation from
2190 parse.
2191 * c-lang.c (c_language_data): Delete la_parser initializer.
2192 (cplus_language_data): Likewise.
2193 (asm_language_data): Likewise.
2194 (minimal_language_data): Likewise.
2195 * d-lang.c (d_language_data): Likewise.
2196 (d_language::parser): New member function.
2197 * f-lang.c (f_language_data): Delete la_parser initializer.
2198 (f_language::parser): New member function.
2199 * go-lang.c (go_language_data): Delete la_parser initializer.
2200 (go_language::parser): New member function.
2201 * language.c (unk_lang_parser): Delete.
2202 (language_defn::parser): Define new member function.
2203 (unknown_language_data): Delete la_parser initializer.
2204 (unknown_language::parser): New member function.
2205 (auto_language_data): Delete la_parser initializer.
2206 (auto_language::parser): New member function.
2207 * language.h (language_data): Delete la_parser field.
2208 (language_defn::parser): Declare new member function.
2209 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2210 (m2_language::parser): New member function.
2211 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2212 * opencl-lang.c (opencl_language_data): Likewise.
2213 * p-lang.c (pascal_language_data): Likewise.
2214 (pascal_language::parser): New member function.
2215 * parse.c (parse_exp_in_context): Update call to parser.
2216 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2217 (rust_language::parser): New member function.
2218
2219 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2220
2221 * top.c (print_gdb_configuration): Print --with-python-libdir
2222 configuration value.
2223
2224 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2225
2226 * NEWS: Mention change to the alias command.
2227
2228 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2229
2230 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2231 (alias_command_completer)
2232 (make_alias_options_def_group): New functions.
2233 (alias_opts, alias_option_defs): New struct and array.
2234 (alias_usage_error): Update usage.
2235 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2236 Use option framework.
2237 (_initialize_cli_cmds): Update alias command help.
2238 Update aliases command help.
2239 (show_user):
2240 Add NULL for new default_args lookup_cmd argument.
2241 (valid_command_p): Rename to validate_aliased_command.
2242 Add NULL for new default_args lookup_cmd argument. Verify that the
2243 aliased_command has no default args.
2244 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2245 (lookup_cmd_1, lookup_cmd): New argument default_args.
2246 (add_alias_cmd):
2247 Add NULL for new default_args lookup_cmd argument.
2248 (print_help_for_command): Show default args under the layout
2249 alias some_alias = some_aliased_cmd some_alias_default_arg.
2250 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2251 xfree default_args in destructor.
2252 * cli/cli-script.c (process_next_line, do_define_command):
2253 Add NULL for new default_args lookup_cmd argument.
2254 * command.h: Declare new default_args argument in lookup_cmd
2255 and lookup_cmd_1.
2256 * completer.c (complete_line_internal_1):
2257 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2258 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2259 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2260 Likewise.
2261 * infcmd.c (_initialize_infcmd): Likewise.
2262 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2263 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2264 * python/py-param.c (add_setshow_generic): Likewise.
2265 * remote.c (_initialize_remote): Likewise.
2266 * top.c (execute_command): Prepend default_args if command has some.
2267 (set_verbose):
2268 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2269 * tracepoint.c (validate_actionline, encode_actions_1):
2270 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2271
2272 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2273
2274 * jit.c (jit_read_descriptor): Use bool as the return type.
2275 (jit_breakpoint_re_set_internal): Use bool as the return type.
2276 Invert the return value logic; return true if the jit breakpoint
2277 has been successfully initialized.
2278 (jit_inferior_init): Update the call to
2279 jit_breakpoint_re_set_internal.
2280
2281 2020-06-22 Pedro Alves <palves@redhat.com>
2282
2283 PR gdb/25939
2284 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2285 Use the current inferior instead. Don't return
2286 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2287 wait again.
2288 * sol-thread.c (sol_thread_target::wait): Don't reference
2289 inferior_ptid.
2290 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2291 (sol_update_thread_list_callback): Use the current inferior's pid
2292 instead of inferior_ptid.
2293
2294 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2295
2296 * procfs.c: Cleanup many comments.
2297
2298 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2299 (AFTER_WATCHFLAG): Replace by value.
2300
2301 (MAIN_PROC_NAME_FORMAT): Inline ...
2302 (create_procinfo): ... here.
2303
2304 (procfs_debug_inferior): Remove SYS_exec handling.
2305 (syscall_is_exec): Likewise.
2306 (procfs_set_exec_trap): Likewise.
2307
2308 (syscall_is_lwp_exit): Inline in callers.
2309 (syscall_is_exit): Likewise.
2310 (syscall_is_exec): Likewise.
2311 (syscall_is_lwp_create): Likewise.
2312
2313 (invalidate_cache): Remove #if 0 code.
2314
2315 (make_signal_thread_runnable): Remove.
2316 (procfs_target::resume): Remove #if 0 code.
2317
2318 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2319
2320 PR gdb/25939
2321 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2322 call ...
2323 (procfs_target::create_inferior): ... here.
2324
2325 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2326
2327 * exec.c (validate_exec_file): Ensure the build-id is up to
2328 date by calling reopen_exec_file (that checks file timestamp
2329 to decide to re-read the file).
2330
2331 2020-06-18 Pedro Alves <palves@redhat.com>
2332
2333 PR gdb/25412
2334 * gdbthread.h (delete_thread, delete_thread_silent)
2335 (find_thread_ptid): Update comments.
2336 * thread.c (current_thread_): New global.
2337 (is_current_thread): Move higher, and reimplement.
2338 (inferior_thread): Reimplement.
2339 (set_thread_exited): Use bool. Add assertions.
2340 (add_thread_silent): Simplify thread-reuse handling by always
2341 calling delete_thread.
2342 (delete_thread): Remove intro comment.
2343 (find_thread_ptid): Skip exited threads.
2344 (switch_to_thread_no_regs): Write to current_thread_.
2345 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2346 INFERIOR_PTID. Clear current_thread_.
2347
2348 2020-06-18 Pedro Alves <palves@redhat.com>
2349
2350 * aix-thread.c (pd_update): Use switch_to_thread.
2351
2352 2020-06-18 Pedro Alves <palves@redhat.com>
2353
2354 * ravenscar-thread.c (ravenscar_thread_target): Update.
2355 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2356 (ravenscar_thread_target::add_active_thread): ... this. Don't
2357 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2358 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2359
2360 2020-06-18 Pedro Alves <palves@redhat.com>
2361
2362 * nat/windows-nat.c (current_windows_thread): Remove.
2363 * nat/windows-nat.h (current_windows_thread): Remove.
2364 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2365 Adjust.
2366 (display_selectors): Adjust to fetch the current
2367 windows_thread_info based on inferior_ptid.
2368 (fake_create_process): No longer write to current_windows_thread.
2369 (windows_nat_target::get_windows_debug_event):
2370 Don't set inferior_ptid or current_windows_thread.
2371 (windows_nat_target::wait): Adjust to not rely on
2372 current_windows_thread.
2373 (do_initial_windows_stuff): Now a method of windows_nat_target.
2374 Switch to the last_ptid thread.
2375 (windows_nat_target::attach): Adjust.
2376 (windows_nat_target::detach): Use switch_to_no_thread instead of
2377 writing to inferior_ptid directly.
2378 (windows_nat_target::create_inferior): Adjust.
2379
2380 2020-06-18 Pedro Alves <palves@redhat.com>
2381
2382 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2383
2384 2020-06-18 Pedro Alves <palves@redhat.com>
2385
2386 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2387 after creating it, instead of writing to inferior_ptid. Don't
2388 write to inferior_ptid.
2389
2390 2020-06-18 Pedro Alves <palves@redhat.com>
2391
2392 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2393
2394 2020-06-18 Pedro Alves <palves@redhat.com>
2395
2396 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2397 it, instead of writing to inferior_ptid.
2398
2399 2020-06-18 Pedro Alves <palves@redhat.com>
2400
2401 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2402 to inferior_ptid.
2403
2404 2020-06-18 Pedro Alves <palves@redhat.com>
2405
2406 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2407 instead of writing to inferior_ptid directly.
2408
2409 2020-06-18 Pedro Alves <palves@redhat.com>
2410
2411 * corelow.c (core_target::close): Use switch_to_no_thread instead
2412 of writing to inferior_ptid directly.
2413 (add_to_thread_list, core_target_open): Use switch_to_thread
2414 instead of writing to inferior_ptid directly.
2415
2416 2020-06-18 Pedro Alves <palves@redhat.com>
2417
2418 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2419 inferior_ptid.
2420 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2421 inferior_ptid.
2422 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2423 inferior_ptid directly.
2424 (darwin_nat_target::init_thread_list): Switch to thread, instead
2425 of writing to inferior_ptid.
2426 (darwin_nat_target::attach): Don't write to inferior_ptid.
2427 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2428
2429 2020-06-18 Pedro Alves <palves@redhat.com>
2430
2431 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2432 thread.
2433 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2434 Instead use switch_to_thread.
2435 (gnu_nat_target::detach): Use switch_to_no_thread
2436 instead of writing to inferior_ptid directly. Used passed-in
2437 inferior instead of looking up the inferior by pid.
2438
2439 2020-06-18 Pedro Alves <palves@redhat.com>
2440
2441 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2442 inferior_ptid.
2443
2444 2020-06-18 Pedro Alves <palves@redhat.com>
2445
2446 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2447 inferior_ptid.
2448 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2449 thread.
2450 (nto_procfs_target::detach): Avoid referencing
2451 inferior_ptid. Use switch_to_no_thread instead of writing to
2452 inferior_ptid directly.
2453 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2454 instead of writing to inferior_ptid directly.
2455 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2456 to thread.
2457
2458 2020-06-18 Pedro Alves <palves@redhat.com>
2459
2460 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2461 after creating it, instead of writing to inferior_ptid.
2462 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2463 to inferior_ptid directly.
2464 (gdbsim_target::wait): Don't write to inferior_ptid.
2465
2466 2020-06-18 Pedro Alves <palves@redhat.com>
2467
2468 * remote.c (remote_target::remote_notice_new_inferior): Use
2469 switch_to_thread instead of writing to inferior_ptid directly.
2470 (remote_target::add_current_inferior_and_thread): Use
2471 switch_to_no_thread instead of writing to inferior_ptid directly.
2472 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2473 and switch_to_thread instead of using set_current_inferior or
2474 writing to inferior_ptid directly.
2475
2476 2020-06-18 Pedro Alves <palves@redhat.com>
2477
2478 * tracectf.c (ctf_target_open): Switch to added thread instead of
2479 writing to inferior_ptid directly.
2480 (ctf_target::close): Use switch_to_no_thread instead of writing to
2481 inferior_ptid directly.
2482
2483 2020-06-18 Pedro Alves <palves@redhat.com>
2484
2485 * tracefile-tfile.c (tfile_target_open): Don't write to
2486 inferior_ptid directly, instead switch to added thread.
2487 (tfile_target::close): Use switch_to_no_thread instead of writing
2488 to inferior_ptid directly.
2489
2490 2020-06-18 Pedro Alves <palves@redhat.com>
2491
2492 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2493 (procfs_target::detach): Use switch_to_no_thread
2494 instead of writing to inferior_ptid directly.
2495 (do_attach): Change return type to void. Switch to the added
2496 thread.
2497 (procfs_target::create_inferior): Switch to the added thread.
2498 (procfs_do_thread_registers): Don't write to inferior_ptid.
2499
2500 2020-06-18 Pedro Alves <palves@redhat.com>
2501
2502 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2503 of writing to inferior_ptid.
2504 (scoped_restore_exited_inferior): Delete.
2505 (handle_vfork_child_exec_or_exit): Simplify using
2506 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2507 instead of writing to inferior_ptid.
2508 (THREAD_STOPPED_BY): Delete.
2509 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2510 (thread_stopped_by_hw_breakpoint): Delete.
2511 (save_waitstatus): Use
2512 scoped_restore_current_thread+switch_to_thread, and call
2513 target_stopped_by_watchpoint instead of
2514 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2515 instead of thread_stopped_by_sw_breakpoint, and
2516 target_stopped_by_hw_breakpoint instead of
2517 thread_stopped_by_hw_breakpoint.
2518 (handle_inferior_event)
2519 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2520 inferior_ptid directly, nor
2521 set_current_inferior/set_current_program_space. Use
2522 switch_to_thread / switch_to_inferior_no_thread instead.
2523
2524 2020-06-18 Pedro Alves <palves@redhat.com>
2525
2526 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2527 instead of writing to inferior_ptid.
2528
2529 2020-06-18 Pedro Alves <palves@redhat.com>
2530
2531 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2532 added thread.
2533 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2534 to the added thread.
2535 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2536 instead of writing to inferior_ptid.
2537
2538 2020-06-18 Pedro Alves <palves@redhat.com>
2539
2540 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2541 (register_to_value_test): Mock a program_space too. Heap-allocate
2542 the address space. Don't write to inferior_ptid. Use
2543 switch_to_thread instead.
2544
2545 2020-06-18 Pedro Alves <palves@redhat.com>
2546
2547 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2548 Delete.
2549 (find_signalled_thread()): New, factored out from
2550 linux_make_corefile_notes and adjusted to handle exited threads.
2551 (linux_make_corefile_notes): Adjust to use the new
2552 find_signalled_thread.
2553
2554 2020-06-18 Pedro Alves <palves@redhat.com>
2555
2556 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2557 of saving/restoring inferior_ptid.
2558
2559 2020-06-17 Tom Tromey <tom@tromey.com>
2560
2561 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2562 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2563 declare.
2564 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2565
2566 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2567
2568 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2569 of partial symtabs.
2570
2571 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2572
2573 * regformats/reg-arm.dat: Remove.
2574 * regformats/reg-bfin.dat: Remove.
2575 * regformats/reg-cris.dat: Remove.
2576 * regformats/reg-crisv32.dat: Remove.
2577 * regformats/reg-m32r.dat: Remove.
2578 * regformats/reg-tilegx.dat: Remove.
2579 * regformats/reg-tilegx32.dat: Remove.
2580
2581 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2582
2583 * features/Makefile (WHICH): Remove arm files.
2584 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2585 * regformats/arm/arm-with-neon.dat: Remove.
2586 * regformats/arm/arm-with-vfpv2.dat: Remove.
2587 * regformats/arm/arm-with-vfpv3.dat: Remove.
2588
2589 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2590
2591 * features/Makefile (XMLTOC): Remove rx.xml.
2592
2593 2020-06-17 Pedro Alves <palves@redhat.com>
2594
2595 * gdbthread.h (thread_control_state) <trap_expected> Update
2596 comments.
2597
2598 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2599
2600 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2601 ada_language::lookup_symbol_nonlocal.
2602 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2603 (ada_language::lookup_symbol_nonlocal): New member function,
2604 implementation from ada_lookup_symbol_nonlocal.
2605 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2606 initializer.
2607 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2608 initializer.
2609 (cplus_language::lookup_symbol_nonlocal): New member function.
2610 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2611 (minimal_language_data) Likewise.
2612 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2613 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2614 initializer.
2615 (d_language::lookup_symbol_nonlocal): New member function.
2616 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2617 initializer.
2618 (f_language::lookup_symbol_nonlocal): New member function.
2619 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2620 initializer.
2621 * language.c (unknown_language_data): Likewise.
2622 (auto_language_data): Likewise.
2623 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2624 field.
2625 (language_defn::lookup_symbol_nonlocal): New member function.
2626 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2627 initializer.
2628 * objc-lang.c (objc_language_data): Likewise.
2629 * opencl-lang.c (opencl_language_data): Likewise.
2630 * p-lang.c (pascal_language_data): Likewise.
2631 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2632 rust_language::lookup_symbol_nonlocal.
2633 (rust_language_data): Delete la_lookup_symbol_nonlocal
2634 initializer.
2635 (rust_language::lookup_symbol_nonlocal): New member function,
2636 implementation from rust_lookup_symbol_nonlocal.
2637 * symtab.c (lookup_symbol_aux): Update call to
2638 lookup_symbol_nonlocal.
2639 (basic_lookup_symbol_nonlocal): Rename to...
2640 (language_defn::lookup_symbol_nonlocal): ...this, and update
2641 header comment. Remove language_defn parameter, and replace with
2642 uses of `this'.
2643 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2644
2645 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2646
2647 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2648 initializer.
2649 (ada_language::value_print_inner): New member function.
2650 * c-lang.c (c_language_data): Delete la_value_print_inner
2651 initializer.
2652 (cplus_language_data): Likewise.
2653 (asm_language_data): Likewise.
2654 (minimal_language_data): Likewise.
2655 * d-lang.c (d_language_data): Likewise.
2656 (d_language::value_print_inner): New member function.
2657 * f-lang.c (f_language_data): Delete la_value_print_inner
2658 initializer.
2659 (f_language::value_print_inner): New member function.
2660 * f-lang.h (f_value_print_innner): Rename to...
2661 (f_value_print_inner): ...this (note spelling of 'inner').
2662 * f-valprint.c (f_value_print_innner): Rename to...
2663 (f_value_print_inner): ...this (note spelling of 'inner').
2664 * go-lang.c (go_language_data): Delete la_value_print_inner
2665 initializer.
2666 (go_language::value_print_inner): New member function.
2667 * language.c (language_defn::value_print_inner): Define new member
2668 function.
2669 (unk_lang_value_print_inner): Delete.
2670 (unknown_language_data): Delete la_value_print_inner initializer.
2671 (unknown_language::value_print_inner): New member function.
2672 (auto_language_data): Delete la_value_print_inner initializer.
2673 (auto_language::value_print_inner): New member function.
2674 * language.h (language_data): Delete la_value_print_inner field.
2675 (language_defn::value_print_inner): Delcare new member function.
2676 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2677 initializer.
2678 (m2_language::value_print_inner): New member function.
2679 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2680 initializer.
2681 * opencl-lang.c (opencl_language_data): Likewise.
2682 * p-lang.c (pascal_language_data): Likewise.
2683 (pascal_language::value_print_inner): New member function.
2684 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2685 initializer.
2686 (rust_language::value_print_inner): New member function.
2687 * valprint.c (do_val_print): Update call to value_print_inner.
2688
2689 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2690
2691 * ada-lang.c (ada_language_data): Delete la_value_print
2692 initializer.
2693 (ada_language::value_print): New member function.
2694 * c-lang.c (c_language_data): Delete la_value_print initializer.
2695 (cplus_language_data): Likewise.
2696 (asm_language_data): Likewise.
2697 (minimal_language_data): Likewise.
2698 * d-lang.c (d_language_data): Likewise.
2699 * f-lang.c (f_language_data): Likewise.
2700 * go-lang.c (go_language_data): Likewise.
2701 * language.c (unk_lang_value_print): Delete.
2702 (language_defn::value_print): Define new member function.
2703 (unknown_language_data): Delete la_value_print initializer.
2704 (unknown_language::value_print): New member function.
2705 (auto_language_data): Delete la_value_print initializer.
2706 (auto_language::value_print): New member function.
2707 * language.h (language_data): Delete la_value_print field.
2708 (language_defn::value_print): Declare new member function.
2709 (LA_VALUE_PRINT): Update call to value_print.
2710 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2711 * objc-lang.c (objc_language_data): Likewise.
2712 * opencl-lang.c (opencl_language_data): Likewise.
2713 * p-lang.c (pascal_language_data): Likewise.
2714 (pascal_language::value_print): New member function.
2715 * rust-lang.c (rust_language_data): Delete la_value_print
2716 initializer.
2717
2718 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2719
2720 * ada-lang.c (ada_watch_location_expression): Rename to
2721 ada_language::watch_location_expression.
2722 (ada_language_data): Delete la_watch_location_expression
2723 initializer.
2724 (ada_language::watch_location_expression): New member function,
2725 implementation from ada_watch_location_expression.
2726 * breakpoint.c (watch_command_1): Update call to
2727 watch_location_expression.
2728 * c-lang.c (c_watch_location_expression): Rename to
2729 language_defn::watch_location_expression.
2730 (c_language_data): Delete la_watch_location_expression
2731 initializer.
2732 (cplus_language_data): Likewise.
2733 (asm_language_data): Likewise.
2734 (minimal_language_data): Likewise.
2735 * c-lang.h (c_watch_location_expression): Delete declaration.
2736 * d-lang.c (d_language_data): Delete la_watch_location_expression
2737 initializer.
2738 * f-lang.c (f_language_data): Likewise.
2739 * go-lang.c (go_language_data): Likewise.
2740 * language.c (language_defn::watch_location_expression): Member
2741 function implementation from c_watch_location_expression.
2742 (unknown_language_data): Delete la_watch_location_expression
2743 initializer.
2744 (auto_language_data): Likewise.
2745 * language.h (language_data): Delete la_watch_location_expression
2746 field.
2747 (language_defn::watch_location_expression): Declare new member
2748 function.
2749 * m2-lang.c (m2_language_data): Delete
2750 la_watch_location_expression initializer.
2751 * objc-lang.c (objc_language_data): Likewise.
2752 * opencl-lang.c (opencl_language_data): Likewise.
2753 * p-lang.c (pascal_language_data): Likewise.
2754 * rust-lang.c (rust_watch_location_expression): Rename to
2755 rust_language::watch_location_expression.
2756 (rust_language_data): Delete la_watch_location_expression
2757 initializer.
2758 (rust_language::watch_location_expression): New member function,
2759 implementation from rust_watch_location_expression.
2760
2761 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2762
2763 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2764 ada_language::collect_symbol_completion_matches.
2765 (ada_language_data): Delete la_collect_symbol_completion_matches
2766 initializer.
2767 (ada_language::collect_symbol_completion_matches): New member
2768 function, implementation from
2769 ada_collect_symbol_completion_matches.
2770 * c-lang.c (c_language_data): Delete
2771 la_collect_symbol_completion_matches initializer.
2772 (cplus_language_data): Likewise.
2773 (asm_language_data): Likewise.
2774 (minimal_language_data): Likewise.
2775 * d-lang.c (d_language_data): Likewise.
2776 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2777 f_language::collect_symbol_completion_matches.
2778 (f_language_data): Delete la_collect_symbol_completion_matches
2779 initializer.
2780 (f_language::collect_symbol_completion_matches) New member
2781 function, implementation from f_collect_symbol_completion_matches.
2782 * go-lang.c (go_language_data): Delete
2783 la_collect_symbol_completion_matches initializer.
2784 * language.c (unknown_language_data): Likewise.
2785 (auto_language_data): Likewise.
2786 * language.h (language_data): Delete
2787 la_collect_symbol_completion_matches field.
2788 (language_defn::collect_symbol_completion_matches): New member
2789 function.
2790 * m2-lang.c (m2_language_data): Delete
2791 la_collect_symbol_completion_matches initializer.
2792 * objc-lang.c (objc_language_data): Likewise.
2793 * opencl-lang.c (opencl_language_data): Likewise.
2794 * p-lang.c (pascal_language_data): Likewise.
2795 * rust-lang.c (rust_language_data): Likewise.
2796 * symtab.c (default_collect_symbol_completion_matches): Delete.
2797 (collect_symbol_completion_matches): Update call to
2798 collect_symbol_completion_matches.
2799 (collect_symbol_completion_matches_type): Likewise.
2800 * symtab.h (default_collect_symbol_completion_matches): Delete
2801 declaration.
2802
2803 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2804
2805 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2806 (ada_language_data): Delete la_word_break_characters initializer.
2807 (ada_language::word_break_characters): New member function.
2808 * c-lang.c (c_language_data): Delete la_word_break_characters
2809 initializer.
2810 (cplus_language_data): Likewise.
2811 (asm_language_data): Likewise.
2812 (minimal_language_data): Likewise.
2813 * completer.c: Update global comment.
2814 (advance_to_expression_complete_word_point): Update call to
2815 word_break_characters.
2816 (complete_files_symbols): Likewise.
2817 (complete_line_internal_1): Likewise.
2818 (default_completer_handle_brkchars): Likewise.
2819 (skip_quoted_chars): Likewise.
2820 * d-lang.c (d_language_data): Delete la_word_break_characters
2821 initializer.
2822 * f-lang.c (f_word_break_characters): Delete.
2823 (f_language_data): Delete la_word_break_characters initializer.
2824 (f_language::word_break_characters): New member function.
2825 * go-lang.c (go_language_data): Delete la_word_break_characters
2826 initializer.
2827 * language.c (unknown_language_data): Likewise.
2828 (auto_language_data): Likewise.
2829 * language.h (default_word_break_characters): Move declaration to
2830 earlier in the file.
2831 (language_data): Delete la_word_break_characters field.
2832 (language_defn::word_break_characters): New member function.
2833 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2834 initializer.
2835 * objc-lang.c (objc_language_data): Likewise.
2836 * opencl-lang.c (opencl_language_data): Likewise.
2837 * p-lang.c (pascal_language_data): Likewise.
2838 * rust-lang.c (rust_language_data): Likewise.
2839
2840 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2841
2842 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2843 (ada_language_data): Delete la_get_symbol_name_matcher
2844 initializer.
2845 (language_defn::get_symbol_name_matcher_inner): New member
2846 function.
2847 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2848 initializer.
2849 (cplus_language_data): Likewise.
2850 (cplus_language::get_symbol_name_matcher_inner): New member
2851 function.
2852 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2853 (minimal_language_data): Likewise.
2854 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2855 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2856 initializer.
2857 * dictionary.c (iter_match_first_hashed): Update call to
2858 get_symbol_name_matcher.
2859 (iter_match_next_hashed): Likewise.
2860 (iter_match_next_linear): Likewise.
2861 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2862 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2863 initializer.
2864 (f_language::get_symbol_name_matcher_inner): New member function.
2865 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2866 initializer.
2867 * language.c (default_symbol_name_matcher): Update header comment,
2868 make static.
2869 (language_defn::get_symbol_name_matcher): New definition.
2870 (language_defn::get_symbol_name_matcher_inner): Likewise.
2871 (get_symbol_name_matcher): Delete.
2872 (unknown_language_data): Delete la_get_symbol_name_matcher
2873 initializer.
2874 (auto_language_data): Likewise.
2875 * language.h (language_data): Delete la_get_symbol_name_matcher
2876 field.
2877 (language_defn::get_symbol_name_matcher): New member function.
2878 (language_defn::get_symbol_name_matcher_inner): Likewise.
2879 (default_symbol_name_matcher): Delete declaration.
2880 * linespec.c (find_methods): Update call to
2881 get_symbol_name_matcher.
2882 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2883 initializer.
2884 * minsyms.c (lookup_minimal_symbol): Update call to
2885 get_symbol_name_matcher.
2886 (iterate_over_minimal_symbols): Likewise.
2887 * objc-lang.c (objc_language_data): Delete
2888 la_get_symbol_name_matcher initializer.
2889 * opencl-lang.c (opencl_language_data): Likewise.
2890 * p-lang.c (pascal_language_data): Likewise.
2891 * psymtab.c (psymbol_name_matches): Update call to
2892 get_symbol_name_matcher.
2893 * rust-lang.c (rust_language_data): Delete
2894 la_get_symbol_name_matcher initializer.
2895 * symtab.c (symbol_matches_search_name): Update call to
2896 get_symbol_name_matcher.
2897 (compare_symbol_name): Likewise.
2898
2899 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2900
2901 * ada-lang.c (ada_language_data): Delete la_compute_program
2902 initializer.
2903 * c-lang.c (c_language_data): Likewise.
2904 (c_language::compute_program): New member function.
2905 (cplus_language_data): Delete la_compute_program initializer.
2906 (cplus_language::compute_program): New member function.
2907 (asm_language_data): Delete la_compute_program initializer.
2908 (minimal_language_data): Likewise.
2909 * c-lang.h (c_compute_program): Update comment.
2910 (cplus_compute_program): Likewise.
2911 * compile/compile-c-support.c (c_compute_program): Likewise.
2912 (cplus_compute_program): Likewise.
2913 * compile/compile.c (compile_to_object): Update call to
2914 la_compute_program.
2915 * d-lang.c (d_language_data): Delete la_compute_program
2916 initializer.
2917 * f-lang.c (f_language_data): Likewise.
2918 * go-lang.c (go_language_data): Likewise.
2919 * language.c (unknown_language_data): Likewise.
2920 (auto_language_data): Likewise.
2921 * language.h (language_data): Delete la_compute_program field.
2922 (language_defn::compute_program): New member function.
2923 * m2-lang.c (m2_language_data): Delete la_compute_program
2924 initializer.
2925 * objc-lang.c (objc_language_data): Likewise.
2926 * opencl-lang.c (opencl_language_data): Likewise.
2927 * p-lang.c (pascal_language_data): Likewise.
2928 * rust-lang.c (rust_language_data): Likewise.
2929
2930 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2931
2932 * ada-lang.c (ada_language_data) Delete
2933 la_class_name_from_physname initializer.
2934 * c-lang.c (c_language_data): Likewise.
2935 (cplus_language_data): Likewise.
2936 (cplus_language::class_name_from_physname): New member function.
2937 (asm_language_data): Delete la_class_name_from_physname
2938 initializer.
2939 (minimal_language_data): Likewise.
2940 * d-lang.c (d_language_data): Likewise.
2941 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2942 method on language_defn class.
2943 (guess_full_die_structure_name): Likewise.
2944 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2945 initializer.
2946 * go-lang.c (go_language_data): Likewise.
2947 * language.c (language_class_name_from_physname): Delete.
2948 (unk_lang_class_name): Delete.
2949 (unknown_language_data): Delete la_class_name_from_physname
2950 initializer.
2951 (auto_language_data): Likewise.
2952 * language.h (language_data): Delete la_class_name_from_physname
2953 field.
2954 (language_defn::class_name_from_physname): New function.
2955 (language_class_name_from_physname): Delete declaration.
2956 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2957 initializer.
2958 * objc-lang.c (objc_language_data): Likewise.
2959 * opencl-lang.c (opencl_language_data): Likewise.
2960 * p-lang.c (pascal_language_data): Likewise.
2961 * rust-lang.c (rust_language_data): Likewise.
2962
2963 2020-06-16 Tom Tromey <tom@tromey.com>
2964
2965 * tui/tui-data.h (STATUS_NAME): New macro.
2966 * tui/tui-layout.c (tui_remove_some_windows)
2967 (initialize_known_windows, tui_register_window)
2968 (tui_layout_split::remove_windows, initialize_layouts)
2969 (tui_new_layout_command): Don't use hard-coded window names.
2970
2971 2020-06-16 Tom Tromey <tom@tromey.com>
2972
2973 PR tui/25348:
2974 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2975 tui_initialize_readline. Only run once. Call rl_initialize.
2976 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2977 tui_initialize_readline.
2978 * tui/tui-io.c (tui_setup_io): Call
2979 tui_ensure_readline_initialized.
2980 * tui/tui-interp.c (tui_interp::init): Update.
2981
2982 2020-06-16 Tom Tromey <tom@tromey.com>
2983
2984 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2985 Also preserve the status window.
2986
2987 2020-06-16 Tom Tromey <tom@tromey.com>
2988
2989 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2990 where m_window==nullptr.
2991
2992 2020-06-15 Tom Tromey <tromey@adacore.com>
2993
2994 * windows-nat.c (windows_nat::handle_output_debug_string):
2995 Update.
2996 (windows_nat::handle_ms_vc_exception): Update.
2997 * target.h (target_read_string): Change API.
2998 * target.c (target_read_string): Change API.
2999 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3000 Update.
3001 * solib-frv.c (frv_current_sos): Update.
3002 * solib-dsbt.c (dsbt_current_sos): Update.
3003 * solib-darwin.c (darwin_current_sos): Update.
3004 * linux-thread-db.c (inferior_has_bug): Update.
3005 * expprint.c (print_subexp_standard): Update.
3006 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3007 (ada_exception_message_1): Update.
3008
3009 2020-06-15 Tom Tromey <tromey@adacore.com>
3010
3011 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3012
3013 2020-06-15 Tom Tromey <tromey@adacore.com>
3014
3015 * valprint.c (read_string): Update comment.
3016 * target.c (MIN): Remove.
3017 (target_read_string): Rewrite.
3018
3019 2020-06-15 Tom Tromey <tromey@adacore.com>
3020
3021 * corefile.c (read_memory_string): Remove.
3022 * ada-valprint.c (ada_value_print_ptr): Update.
3023 * ada-lang.h (ada_tag_name): Change return type.
3024 * ada-lang.c (type_from_tag): Update.
3025 (ada_tag_name_from_tsd): Change return type. Use
3026 target_read_string.
3027 (ada_tag_name): Likewise.
3028 * gdbcore.h (read_memory_string): Don't declare.
3029
3030 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3031
3032 * symtab.c (rbreak_command): Ignore Windows drive colon.
3033
3034 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3035
3036 * NEWS: Mention removed GDBserver host support.
3037
3038 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3039
3040 * features/riscv/rebuild-csr-xml.sh: Updated.
3041
3042 2020-06-11 Tom Tromey <tom@tromey.com>
3043
3044 PR gdb/18318:
3045 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3046
3047 2020-06-09 Jonny Grant <jg@jguk.org>
3048 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3049
3050 * main.c (captured_main_1): Don't print new line after help.
3051 (print_gdb_help): add mailing list and IRC channel information
3052 to --help. Add new lines between items in the footer. Remove
3053 quotes around bug url.
3054
3055 2020-06-11 Keith Seitz <keiths@redhat.com>
3056
3057 PR gdb/21356
3058 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3059 Resolve typedefs for type length calculations.
3060
3061 2020-06-10 Tom de Vries <tdevries@suse.de>
3062
3063 PR ada/24713
3064 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3065 (write_psymbols): Enable .gdb_index for ada.
3066 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3067 ada.
3068
3069 2020-06-10 Tom de Vries <tdevries@suse.de>
3070
3071 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3072 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3073 namei" instead of "const char *name" argument.
3074 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3075 dw2_symtab_iter_init.
3076
3077 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3078
3079 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3080 to use type::field and field::type instead.
3081
3082 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3083
3084 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3085 to use field::type instead.
3086
3087 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3088
3089 * gdbtypes.h (struct field) <type, set_type>: New methods.
3090 Rename `type` field to...
3091 <m_type>: ... this. Change references throughout to use type or
3092 set_type methods.
3093 (FIELD_TYPE): Use field::type. Change call sites that modify
3094 the field's type to use field::set_type instead.
3095
3096 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3097
3098 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3099 to use type::index_type instead.
3100
3101 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3102
3103 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3104 methods.
3105 (TYPE_INDEX_TYPE): Use type::index_type.
3106 * gdbtypes.c (create_array_type_with_stride): Likewise.
3107
3108 2020-06-07 Tom Tromey <tom@tromey.com>
3109
3110 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3111 parameter.
3112 (generic_value_print): Update.
3113
3114 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3115
3116 Revert commit 982a38f60b0.
3117 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3118
3119 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3120
3121 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3122 avoid use after free.
3123
3124 2020-06-05 Tom de Vries <tdevries@suse.de>
3125
3126 * NEWS: Fix typos.
3127
3128 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3129
3130 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3131 the per_bfd object.
3132 (dwarf2_read_debug_names): Likewise.
3133 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3134 object when re-using a per_bfd object with an index.
3135
3136 2020-06-03 Tom de Vries <tdevries@suse.de>
3137
3138 PR symtab/26046
3139 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3140 children for C++.
3141 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3142 DW_TAG_subprogram.
3143
3144 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3145
3146 * ada-lang.c (ada_language_data): Delete skip_trampoline
3147 initializer.
3148 * c-lang.c (c_language_data): Likewise.
3149 (cplus_language_data): Likewise.
3150 (cplus_language::skip_trampoline): New member function.
3151 (asm_language_data): Delete skip_trampoline initializer.
3152 (minimal_language_data): Likewise.
3153 * d-lang.c (d_language_data): Likewise.
3154 * f-lang.c (f_language_data): Likewise.
3155 * go-lang.c (go_language_data): Likewise.
3156 * language.c (unk_lang_trampoline): Delete function.
3157 (skip_language_trampoline): Update.
3158 (unknown_language_data): Delete skip_trampoline initializer.
3159 (auto_language_data): Likewise.
3160 * language.h (language_data): Delete skip_trampoline field.
3161 (language_defn::skip_trampoline): New function.
3162 * m2-lang.c (m2_language_data): Delete skip_trampoline
3163 initializer.
3164 * objc-lang.c (objc_skip_trampoline): Delete function, move
3165 implementation to objc_language::skip_trampoline.
3166 (objc_language_data): Delete skip_trampoline initializer.
3167 (objc_language::skip_trampoline): New member function with
3168 implementation from objc_skip_trampoline.
3169 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3170 initializer.
3171 * p-lang.c (pascal_language_data): Likewise.
3172 * rust-lang.c (rust_language_data): Likewise.
3173
3174 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3175
3176 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3177 (ada_language::demangle): New member function.
3178 * c-lang.c (c_language_data): Delete la_demangle initializer.
3179 (cplus_language_data): Delete la_demangle initializer.
3180 (cplus_language::demangle): New member function.
3181 (asm_language_data): Delete la_demangle initializer.
3182 (minimal_language_data): Delete la_demangle initializer.
3183 * d-lang.c (d_language_data): Delete la_demangle initializer.
3184 (d_language::demangle): New member function.
3185 * f-lang.c (f_language_data): Delete la_demangle initializer.
3186 (f_language::demangle): New member function.
3187 * go-lang.c (go_language_data): Delete la_demangle initializer.
3188 (go_language::demangle): New member function.
3189 * language.c (language_demangle): Update.
3190 (unk_lang_demangle): Delete.
3191 (unknown_language_data): Delete la_demangle initializer.
3192 (unknown_language::demangle): New member function.
3193 (auto_language_data): Delete la_demangle initializer.
3194 (auto_language::demangle): New member function.
3195 * language.h (language_data): Delete la_demangle field.
3196 (language_defn::demangle): New function.
3197 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3198 * objc-lang.c (objc_language_data): Delete la_demangle
3199 initializer.
3200 (objc_language::demangle): New member function.
3201 * opencl-lang.c (opencl_language_data): Delete la_demangle
3202 initializer.
3203 * p-lang.c (pascal_language_data): Likewise.
3204 * rust-lang.c (rust_language_data): Likewise.
3205 (rust_language::demangle): New member function.
3206
3207 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3208
3209 * ada-lang.c (ada_language_data): Delete la_print_type
3210 initializer.
3211 (ada_language::print_type): New member function.
3212 * c-lang.c (c_language_data): Delete la_print_type initializer.
3213 (c_language::print_type): New member function.
3214 (cplus_language_data): Delete la_print_type initializer.
3215 (cplus_language::print_type): New member function.
3216 (asm_language_data): Delete la_print_type initializer.
3217 (asm_language::print_type): New member function.
3218 (minimal_language_data): Delete la_print_type initializer.
3219 (minimal_language::print_type): New member function.
3220 * d-lang.c (d_language_data): Delete la_print_type initializer.
3221 (d_language::print_type): New member function.
3222 * f-lang.c (f_language_data): Delete la_print_type initializer.
3223 (f_language::print_type): New member function.
3224 * go-lang.c (go_language_data): Delete la_print_type initializer.
3225 (go_language::print_type): New member function.
3226 * language.c (unk_lang_print_type): Delete.
3227 (unknown_language_data): Delete la_print_type initializer.
3228 (unknown_language::print_type): New member function.
3229 (auto_language_data): Delete la_print_type initializer.
3230 (auto_language::print_type): New member function.
3231 * language.h (language_data): Delete la_print_type field.
3232 (language_defn::print_type): New function.
3233 (LA_PRINT_TYPE): Update.
3234 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3235 (m2_language::print_type): New member function.
3236 * objc-lang.c (objc_language_data): Delete la_print_type
3237 initializer.
3238 (objc_language::print_type): New member function.
3239 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3240 to opencl_language::print_type.
3241 (opencl_language_data): Delete la_print_type initializer.
3242 (opencl_language::print_type): New member function, implementation
3243 from opencl_print_type.
3244 * p-lang.c (pascal_language_data): Delete la_print_type
3245 initializer.
3246 (pascal_language::print_type): New member function.
3247 * rust-lang.c (rust_print_type): Delete, implementation moved to
3248 rust_language::print_type.
3249 (rust_language_data): Delete la_print_type initializer.
3250 (rust_language::print_type): New member function, implementation
3251 from rust_print_type.
3252
3253 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3254
3255 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3256 implementation moves to...
3257 (ada_language::sniff_from_mangled_name): ...here. Update return
3258 type.
3259 (ada_language_data): Delete la_sniff_from_mangled_name
3260 initializer.
3261 * c-lang.c (c_language_data): Likewise.
3262 (cplus_language_data): Likewise.
3263 (cplus_language::sniff_from_mangled_name): New member function,
3264 implementation taken from gdb_sniff_from_mangled_name.
3265 (asm_language_data): Delete la_sniff_from_mangled_name
3266 initializer.
3267 (minimal_language_data): Likewise.
3268 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3269 implementation moves to cplus_language::sniff_from_mangled_name.
3270 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3271 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3272 moves to...
3273 (d_language::sniff_from_mangled_name): ...here.
3274 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3275 * f-lang.c (f_language_data): Likewise.
3276 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3277 moves to...
3278 (go_language::sniff_from_mangled_name): ...here.
3279 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3280 * language.c (language_sniff_from_mangled_name): Delete.
3281 (unknown_language_data): Delete la_sniff_from_mangled_name
3282 initializer.
3283 (auto_language_data): Likewise.
3284 * language.h (language_data): Delete la_sniff_from_mangled_name
3285 field.
3286 (language_defn::sniff_from_mangled_name): New function.
3287 (language_sniff_from_mangled_name): Delete declaration.
3288 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3289 field.
3290 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3291 implementation moves to...
3292 (objc_language::sniff_from_mangled_name): ...here.
3293 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3294 * opencl-lang.c (opencl_language_data): Likewise.
3295 * p-lang.c (pascal_language_data): Likewise.
3296 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3297 implementation moves to...
3298 (rust_language::sniff_from_mangled_name): ...here.
3299 (rust_language_data): Delete la_sniff_from_mangled_name
3300 initializer.
3301 * symtab.c (symbol_find_demangled_name): Call
3302 sniff_from_mangled_name member function.
3303
3304 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3305
3306 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3307 initializer.
3308 * c-lang.c (c_language_data): Likewise.
3309 (cplus_language_data): Likewise.
3310 (cplus_language::search_name_hash): New member function.
3311 (asm_language_data): Delete la_search_name_hash initializer.
3312 (minimal_language_data): Likewise.
3313 * d-lang.c (d_language_data): Likewise.
3314 * dictionary.c (default_search_name_hash): Rename to...
3315 (language_defn::search_name_hash): ...this.
3316 * f-lang.c (f_language_data): Likewise.
3317 (f_language::search_name_hash): New member function.
3318 * go-lang.c (go_language_data): Delete la_search_name_hash
3319 initializer.
3320 * language.c (unknown_language_data): Likewise.
3321 (auto_language_data): Likewise.
3322 * language.h (struct language_data): Delete la_search_name_hash
3323 field.
3324 (language_defn::search_name_hash): Declare new member function.
3325 (default_search_name_hash): Delete declaration.
3326 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3327 initializer.
3328 * objc-lang.c (objc_language_data): Likewise.
3329 * opencl-lang.c (opencl_language_data): Likewise.
3330 * p-lang.c (pascal_language_data): Likewise.
3331 * rust-lang.c (rust_language_data): Likewise.
3332 * symtab.c (search_name_hash): Update call.
3333
3334 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3335
3336 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3337 initializer.
3338 * c-lang.c (class compile_instance): Declare.
3339 (c_language_data): Delete la_get_compile_instance initializer.
3340 (c_language::get_compile_instance): New member function.
3341 (cplus_language_data): Delete la_get_compile_instance initializer.
3342 (cplus_language::get_compile_instance): New member function.
3343 (asm_language_data): Delete la_get_compile_instance initializer.
3344 (minimal_language_data): Likewise.
3345 * c-lang.h (c_get_compile_context): Update comment.
3346 (cplus_get_compile_context): Update comment.
3347 * compile/compile.c (compile_to_object): Update calls, don't rely
3348 on function pointer being NULL.
3349 * d-lang.c (d_language_data): Delete la_get_compile_instance
3350 initializer.
3351 * f-lang.c (f_language_data): Likewise.
3352 * go-lang.c (go_language_data): Likewise.
3353 * language.c (unknown_language_data): Likewise.
3354 (auto_language_data): Likewise.
3355 * language.h (language_data): Delete la_get_compile_instance field.
3356 (language_defn::get_compile_instance): New member function.
3357 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3358 initializer.
3359 * objc-lang.c (objc_language_data): Likewise.
3360 * opencl-lang.c (opencl_language_data): Likewise.
3361 * p-lang.c (pascal_language_data): Likewise.
3362 * rust-lang.c (rust_language_data): Likewise.
3363
3364 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3365
3366 * ada-lang.c (ada_add_all_symbols): Update comment.
3367 (ada_iterate_over_symbols): Delete, move implementation to...
3368 (ada_language::iterate_over_symbols): ...here, a new member
3369 function, rewrite to use range based for loop.
3370 (ada_language_data): Delete la_iterate_over_symbols initializer.
3371 * c-lang.c (c_language_data): Likewise.
3372 (cplus_language_data): Likewise.
3373 (asm_language_data): Likewise.
3374 (minimal_language_data): Likewise.
3375 * d-lang.c (d_language_data): Likewise.
3376 * f-lang.c (f_language_data): Likewise.
3377 * go-lang.c (go_language_data): Likewise.
3378 * language.c (unknown_language_data): Likewise.
3379 (auto_language_data): Likewise.
3380 * language.h (language_data): Delete la_iterate_over_symbols field.
3381 (language_defn::iterate_over_symbols): New member function.
3382 (LA_ITERATE_OVER_SYMBOLS): Update.
3383 * linespec.c (iterate_over_all_matching_symtabs): Update.
3384 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3385 initializer.
3386 * objc-lang.c (objc_language_data): Likewise.
3387 * opencl-lang.c (opencl_language_data): Likewise.
3388 * p-lang.c (pascal_language_data): Likewise.
3389 * rust-lang.c (rust_language_data): Likewise.
3390
3391 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3392
3393 * ada-lang.c (ada_language_data): Delete
3394 la_lookup_transparent_type initializer.
3395 * c-lang.c (c_language_data): Likewise.
3396 (cplus_language_data): Likewise.
3397 (cplus_language::lookup_transparent_type): New member function.
3398 (asm_language_data): Delete la_lookup_transparent_type
3399 initializer.
3400 (minimal_language_data): Likewise.
3401 * d-lang.c (d_language_data): Likewise.
3402 * f-lang.c (f_language_data): Likewise.
3403 * go-lang.c (go_language_data): Likewise.
3404 * language.c (unknown_language_data): Likewise.
3405 (auto_language_data): Likewise.
3406 * language.h (struct language_data): Delete
3407 la_lookup_transparent_type field.
3408 (language_defn::lookup_transparent_type): New member function.
3409 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3410 initializer.
3411 * objc-lang.c (objc_language_data): Likewise.
3412 * opencl-lang.c (opencl_language_data): Likewise.
3413 * p-lang.c (pascal_language_data): Likewise.
3414 * rust-lang.c (rust_language_data): Likewise.
3415 * symtab.c (symbol_matches_domain): Update call.
3416
3417 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3418
3419 * ada-lang.c (ada_language_arch_info): Delete function, move
3420 implementation to...
3421 (ada_language::language_arch_info): ...here, a new member
3422 function.
3423 (ada_language_data): Delete la_language_arch_info.
3424 * c-lang.c (c_language_data): Likewise.
3425 (c_language::language_arch_info): New member function.
3426 (cplus_language_arch_info): Delete function, move
3427 implementation to...
3428 (cplus_language::language_arch_info): ...here, a new member
3429 function.
3430 (cplus_language_data): Delete la_language_arch_info.
3431 (asm_language_data): Likewise.
3432 (asm_language::language_arch_info): New member function.
3433 (minimal_language_data): Delete la_language_arch_info.
3434 (minimal_language::language_arch_info): New member function.
3435 * d-lang.c (d_language_arch_info): Delete function, move
3436 implementation to...
3437 (d_language::language_arch_info): ...here, a new member
3438 function.
3439 (d_language_data): Delete la_language_arch_info.
3440 * f-lang.c (f_language_arch_info): Delete function, move
3441 implementation to...
3442 (f_language::language_arch_info): ...here, a new member
3443 function.
3444 (f_language_data): Delete la_language_arch_info.
3445 * go-lang.c (go_language_arch_info): Delete function, move
3446 implementation to...
3447 (go_language::language_arch_info): ...here, a new member
3448 function.
3449 (go_language_data): Delete la_language_arch_info.
3450 * language.c (unknown_language_data): Likewise.
3451 (unknown_language::language_arch_info): New member function.
3452 (auto_language_data): Delete la_language_arch_info.
3453 (auto_language::language_arch_info): New member function.
3454 (language_gdbarch_post_init): Update call to
3455 la_language_arch_info.
3456 * language.h (language_data): Delete la_language_arch_info
3457 function pointer.
3458 (language_defn::language_arch_info): New function.
3459 * m2-lang.c (m2_language_arch_info): Delete function, move
3460 implementation to...
3461 (m2_language::language_arch_info): ...here, a new member
3462 function.
3463 (m2_language_data): Delete la_language_arch_info.
3464 * objc-lang.c (objc_language_arch_info): Delete function, move
3465 implementation to...
3466 (objc_language::language_arch_info): ...here, a new member
3467 function.
3468 (objc_language_data): Delete la_language_arch_info.
3469 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3470 implementation to...
3471 (opencl_language::language_arch_info): ...here, a new member
3472 function.
3473 (opencl_language_data): Delete la_language_arch_info.
3474 * p-lang.c (pascal_language_arch_info): Delete function, move
3475 implementation to...
3476 (pascal_language::language_arch_info): ...here, a new member
3477 function.
3478 (pascal_language_data): Delete la_language_arch_info.
3479 * rust-lang.c (rust_language_arch_info): Delete function, move
3480 implementation to...
3481 (rust_language::language_arch_info): ...here, a new member
3482 function.
3483 (rust_language_data): Delete la_language_arch_info.
3484
3485 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3486
3487 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3488 initializer.
3489 * c-lang.c (c_language_data): Likewise.
3490 (cplus_language_data): Likewise.
3491 (cplus_language::pass_by_reference_info): New method.
3492 (asm_language_data): Delete la_pass_by_reference initializer.
3493 (minimal_language_data): Likewise.
3494 * cp-abi.c (cp_pass_by_reference): Remove use of
3495 default_pass_by_reference.
3496 * d-lang.c (d_language_data): Likewise.
3497 * f-lang.c (f_language_data): Likewise.
3498 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3499 default_pass_by_reference.
3500 * go-lang.c (go_language_data): Likewise.
3501 * language.c (language_pass_by_reference): Update.
3502 (default_pass_by_reference): Delete.
3503 (unknown_language_data): Delete la_pass_by_reference
3504 initializer.
3505 (auto_language_data): Likewise.
3506 * language.h (struct language_data): Delete la_pass_by_reference
3507 field.
3508 (language_defn::pass_by_reference_info): New member function.
3509 (default_pass_by_reference): Delete declaration.
3510 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3511 initializer.
3512 * objc-lang.c (objc_language_data): Likewise.
3513 * opencl-lang.c (opencl_language_data): Likewise.
3514 * p-lang.c (pascal_language_data): Likewise.
3515 * rust-lang.c (rust_language_data): Likewise.
3516
3517 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3518
3519 * ada-lang.c (ada_read_var_value): Delete function, move
3520 implementation to...
3521 (ada_language::read_var_value): ...here.
3522 (ada_language_data): Delete la_read_var_value initializer.
3523 * c-lang.c (c_language_data): Likewise.
3524 (cplus_language_data): Likewise.
3525 (minimal_language_data): Likewise.
3526 * d-lang.c (d_language_data): Likewise.
3527 * f-lang.c (f_language_data): Likewise.
3528 * findvar.c (default_read_var_value): Rename to...
3529 (language_defn::read_var_value): ...this.
3530 * findvar.c (read_var_value): Update header comment, and change to
3531 call member function instead of function pointer.
3532 * go-lang.c (go_language_data): Likewise.
3533 * language.c (unknown_language_data): Delete la_read_var_value
3534 initializer.
3535 (auto_language_data): Likewise.
3536 * language.h (struct language_data): Delete la_read_var_value
3537 field.
3538 (language_defn::read_var_value): New member function.
3539 (default_read_var_value): Delete declaration.
3540 * m2-lang.c (m2_language_data): Delete la_read_var_value
3541 initializer.
3542 * objc-lang.c (objc_language_data): Likewise.
3543 * opencl-lang.c (opencl_language_data): Likewise.
3544 * p-lang.c (pascal_language_data): Likewise.
3545 * rust-lang.c (rust_language_data): Likewise.
3546 * value.h (default_read_var_value): Delete declaration.
3547
3548 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3549
3550 * ada-lang.c (ada_print_array_index): Delete function, move
3551 implementation to...
3552 (ada_language::print_array_index): ...here.
3553 (ada_language_data): Delete la_print_array_index initializer.
3554 * c-lang.c (c_language_data): Likewise.
3555 (cplus_language_data): Likewise.
3556 (minimal_language_data): Likewise.
3557 * d-lang.c (d_language_data): Likewise.
3558 * f-lang.c (f_language_data): Likewise.
3559 * go-lang.c (go_language_data): Likewise.
3560 * language.c (default_print_array_index): Delete function, move
3561 implementation to...
3562 (language_defn::print_array_index): ...here.
3563 (unknown_language_data): Delete la_print_array_index initializer.
3564 (auto_language_data): Likewise.
3565 * language.h (struct language_data): Delete la_print_array_index
3566 field.
3567 (language_defn::print_array_index): New member function.
3568 (LA_PRINT_ARRAY_INDEX): Update.
3569 (default_print_array_index): Delete declaration.
3570 * m2-lang.c (m2_language_data): Delete la_print_array_index
3571 initializer.
3572 * objc-lang.c (objc_language_data): Likewise.
3573 * opencl-lang.c (opencl_language_data): Likewise.
3574 * p-lang.c (pascal_language_data): Likewise.
3575 * rust-lang.c (rust_language_data): Likewise.
3576
3577 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3578
3579 * gdb/ada-lang.c (ada_language_defn): Convert to...
3580 (ada_language_data): ...this.
3581 (class ada_language): New class.
3582 (ada_language_defn): New static global.
3583 * gdb/c-lang.c (c_language_defn): Convert to...
3584 (c_language_data): ...this.
3585 (class c_language): New class.
3586 (c_language_defn): New static global.
3587 (cplus_language_defn): Convert to...
3588 (cplus_language_data): ...this.
3589 (class cplus_language): New class.
3590 (cplus_language_defn): New static global.
3591 (asm_language_defn): Convert to...
3592 (asm_language_data): ...this.
3593 (class asm_language): New class.
3594 (asm_language_defn): New static global.
3595 (minimal_language_defn): Convert to...
3596 (minimal_language_data): ...this.
3597 (class minimal_language): New class.
3598 (minimal_language_defn): New static global.
3599 * gdb/d-lang.c (d_language_defn): Convert to...
3600 (d_language_data): ...this.
3601 (class d_language): New class.
3602 (d_language_defn): New static global.
3603 * gdb/f-lang.c (f_language_defn): Convert to...
3604 (f_language_data): ...this.
3605 (class f_language): New class.
3606 (f_language_defn): New static global.
3607 * gdb/go-lang.c (go_language_defn): Convert to...
3608 (go_language_data): ...this.
3609 (class go_language): New class.
3610 (go_language_defn): New static global.
3611 * gdb/language.c (unknown_language_defn): Remove declaration.
3612 (current_language): Initialize to nullptr, real initialization is
3613 moved to _initialize_language.
3614 (languages): Delete global.
3615 (language_defn::languages): Define.
3616 (set_language_command): Use language_defn::languages.
3617 (set_language): Likewise.
3618 (range_error): Likewise.
3619 (language_enum): Likewise.
3620 (language_def): Likewise.
3621 (add_set_language_command): Use language_def::languages for the
3622 language list, and language_def to lookup language pointers.
3623 (skip_language_trampoline): Use language_defn::languages.
3624 (unknown_language_defn): Convert to...
3625 (unknown_language_data): ...this.
3626 (class unknown_language): New class.
3627 (unknown_language_defn): New static global.
3628 (auto_language_defn): Convert to...
3629 (auto_language_data): ...this.
3630 (class auto_language): New class.
3631 (auto_language_defn): New static global.
3632 (language_gdbarch_post_init): Use language_defn::languages.
3633 (_initialize_language): Initialize current_language.
3634 * gdb/language.h (struct language_defn): Rename to...
3635 (struct language_data): ...this.
3636 (struct language_defn): New.
3637 (auto_language_defn): Delete.
3638 (unknown_language_defn): Delete.
3639 (minimal_language_defn): Delete.
3640 (ada_language_defn): Delete.
3641 (asm_language_defn): Delete.
3642 (c_language_defn): Delete.
3643 (cplus_language_defn): Delete.
3644 (d_language_defn): Delete.
3645 (f_language_defn): Delete.
3646 (go_language_defn): Delete.
3647 (m2_language_defn): Delete.
3648 (objc_language_defn): Delete.
3649 (opencl_language_defn): Delete.
3650 (pascal_language_defn): Delete.
3651 (rust_language_defn): Delete.
3652 * gdb/m2-lang.c (m2_language_defn): Convert to...
3653 (m2_language_data): ...this.
3654 (class m2_language): New class.
3655 (m2_language_defn): New static global.
3656 * gdb/objc-lang.c (objc_language_defn): Convert to...
3657 (objc_language_data): ...this.
3658 (class objc_language): New class.
3659 (objc_language_defn): New static global.
3660 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3661 (opencl_language_data): ...this.
3662 (class opencl_language): New class.
3663 (opencl_language_defn): New static global.
3664 * gdb/p-lang.c (pascal_language_defn): Convert to...
3665 (pascal_language_data): ...this.
3666 (class pascal_language): New class.
3667 (pascal_language_defn): New static global.
3668 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3669 language pointer, update comment format.
3670 * gdb/rust-lang.c (rust_language_defn): Convert to...
3671 (rust_language_data): ...this.
3672 (class rust_language): New class.
3673 (rust_language_defn): New static global.
3674
3675 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3676
3677 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3678 member variable.
3679 <m_stmt_at_address>: New member variable.
3680 (lnp_state_machine::record_line): Don't record some lines, update
3681 tracking of is_stmt at the same address.
3682 (lnp_state_machine::lnp_state_machine): Initialise new member
3683 variables.
3684
3685 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3686
3687 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3688 "-include gnu-nat-mig.h".
3689 * gnu-nat-mig.h: New file.
3690 * gnu-nat.c: Include "gnu-nat-mig.h".
3691 (exc_server, msg_reply_server, notify_server,
3692 process_reply_server): Remove declarations.
3693
3694 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3695
3696 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3697 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3698 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3699 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3700 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3701 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3702 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3703 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3704 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3705 to gnu_nat_target class.
3706 * gnu-nat.c: Likewise.
3707 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3708 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3709 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3710 object.
3711 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3712 instead of `gnu_target'.
3713
3714 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3715
3716 * i386-gnu-tdep.c: Include "gdbcore.h"
3717 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3718 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3719 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3720 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3721 i386_gnu_sigcontext_addr): New functions
3722 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3723 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3724 tdep.
3725
3726 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3727
3728 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3729 before fork_inferior call. Avoid calling it if target_is_pushed returns
3730 true.
3731
3732 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3733
3734 * gnu-nat.h (gnu_target): New variable declaration.
3735 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3736 gnu_target.
3737 * gnu-nat.c (gnu_target): New variable.
3738 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3739 add_thread_silent, and add_thread calls.
3740 (gnu_nat_target::create_inferior): Pass gnu_target to
3741 add_thread_silent, thread_change_ptid call.
3742 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3743 call.
3744
3745 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3746
3747 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3748 (gnu_nat_target::find_memory_regions): Remove unused
3749 `old_address' variable.
3750
3751 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3752
3753 * gnu-nat.c: Include "gdbarch.h".
3754
3755 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3756
3757 * reply_mig_hack.awk (Error return): Cast function through
3758 void *, to bypass compiler function call check.
3759
3760 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3761
3762 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3763 $(srcdir)/reply_mig_hack.awk.
3764
3765 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3766
3767 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3768
3769 2020-05-30 Jonny Grant <jg@jguk.org>
3770
3771 * configure.ac (ACX_BUGURL): change bug URL to https.
3772
3773 2020-05-30 Pedro Alves <palves@redhat.com>
3774
3775 * cp-support.c (replace_typedefs_template): New.
3776 (replace_typedefs_qualified_name): Handle
3777 DEMANGLE_COMPONENT_TEMPLATE.
3778
3779 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3780
3781 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3782 dwarf2/index-cache.h, dwarf2/index-write.c,
3783 dwarf2/index-write.h, dwarf2/line-header.c,
3784 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3785 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3786 variables and fields from `dwarf2_per_objfile` to just
3787 `per_objfile` throughout.
3788
3789 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3790
3791 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3792 <push_dwarf_reg_entry_value>: Add comment.
3793
3794 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3795 Keith Seitz <keiths@redhat.com>
3796
3797 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3798 instead of PyEval_ReleaseLock.
3799 (class gdbpy_gil): Move to earlier in file.
3800 (finalize_python): Set gdb_python_initialized.
3801 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3802 when not initialized.
3803
3804 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3805
3806 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3807 <push_dwarf_reg_entry_value>: Remove assert. Override
3808 per_objfile with caller_per_objfile.
3809
3810 2020-05-28 Tom de Vries <tdevries@suse.de>
3811
3812 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3813 PR gold/15646 workaround to symbol kind "type".
3814
3815 2020-05-27 Tom Tromey <tromey@adacore.com>
3816
3817 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3818
3819 2020-05-27 Tom Tromey <tromey@adacore.com>
3820
3821 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3822 Use htab_find_with_hash.
3823 <add_abbrev>: Remove "abbrev_number" parameter.
3824 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3825 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3826 (hash_abbrev): Add comment.
3827 (abbrev_table::lookup_abbrev): Move to header file.
3828 (abbrev_table::read): Update.
3829
3830 2020-05-27 Tom Tromey <tromey@adacore.com>
3831
3832 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3833 method.
3834 <canonical_name>: New member.
3835 <raw_name>: Rename from "name".
3836 (partial_die_info): Initialize canonical_name.
3837 (scan_partial_symbols): Check raw_name.
3838 (partial_die_parent_scope, partial_die_full_name)
3839 (add_partial_symbol, add_partial_subprogram)
3840 (add_partial_enumeration, load_partial_dies): Use "name" method.
3841 (partial_die_info::name): New method.
3842 (partial_die_info::read, guess_partial_die_structure_name)
3843 (partial_die_info::fixup): Update.
3844
3845 2020-05-27 Tom Tromey <tromey@adacore.com>
3846
3847 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3848 <get_ref_die_offset>: Inline.
3849 <get_ref_die_offset_complaint>: New method.
3850 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3851 (attribute::get_ref_die_offset_complaint): Rename from
3852 get_ref_die_offset. Just issue complaint.
3853
3854 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3855
3856 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3857
3858 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3859
3860 * exec.c (exec_file_attach): Use errno value of first openp failure.
3861
3862 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3863
3864 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3865 Don't close thread handle.
3866
3867 2020-05-27 Tom Tromey <tom@tromey.com>
3868 Simon Marchi <simon.marchi@efficios.com>
3869
3870 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3871 shared_ptr.
3872 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3873 member.
3874 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3875 dwarf2_per_bfd_objfile_data_key>: New globals.
3876 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3877 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3878 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3879 shared.
3880 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3881 short-circuit when sharing.
3882 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3883 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3884
3885 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3886
3887 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3888 to...
3889 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3890 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3891
3892 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3893
3894 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3895 build_name_components, find_name_components_bounds>:
3896 Add per_objfile parameter.
3897 (struct mapped_index) <symbol_name_at>: Likewise.
3898 (struct mapped_debug_names): Remove constructor.
3899 <dwarf2_per_objfile>: Remove field.
3900 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3901 (mapped_index_base::find_name_components_bounds,
3902 mapped_index_base::build_name_components,
3903 dw2_expand_symtabs_matching_symbol): Likewise.
3904 (class mock_mapped_index) <symbol_name_at>: Likewise.
3905 (check_match): Likewise.
3906 (check_find_bounds_finds): Likewise.
3907 (test_mapped_index_find_name_component_bounds): Update.
3908 (CHECK_MATCH): Update.
3909 (dw2_expand_symtabs_matching): Update.
3910 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3911 per_objfile parameter.
3912 <find_vec_in_debug_names>: Likewise.
3913 <m_per_objfile>: New field.
3914 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3915 parameter.
3916 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3917 (dw2_debug_names_iterator::next): Update.
3918 (dw2_debug_names_lookup_symbol): Update.
3919 (dw2_debug_names_expand_symtabs_for_function): Update.
3920 (dw2_debug_names_map_matching_symbols): Update.
3921 (dw2_debug_names_expand_symtabs_matching): Update.
3922 (dwarf2_read_debug_names): Update.
3923
3924 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3925
3926 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3927 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3928 move to dwarf2_per_objfile.
3929 <read_in_chain>: Remove.
3930 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3931 remove_all_cus, age_comp_units>: New methods.
3932 <m_dwarf2_cus>: New member.
3933 (struct dwarf2_per_cu_data) <cu>: Remove.
3934 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3935 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3936 moved to methods of dwarf2_per_objfile.
3937 (dwarf2_clear_marks): Remove.
3938 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3939 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3940 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3941 (dwarf2_per_objfile::remove_all_cus): New.
3942 (class free_cached_comp_units) <~free_cached_comp_units>:
3943 Update.
3944 (load_cu): Update.
3945 (dw2_do_instantiate_symtab): Adjust.
3946 (fill_in_sig_entry_from_dwo_entry): Adjust.
3947 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3948 (cutu_reader::cutu_reader): Likewise.
3949 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3950 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3951 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3952 and dwarf2_per_objfile::age_comp_units.
3953 (load_partial_comp_unit): Update.
3954 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3955 (process_queue): Likewise.
3956 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3957 backlink.
3958 (dwarf2_read_addr_index): Likewise.
3959 (follow_die_offset): Likewise.
3960 (dwarf2_fetch_die_loc_sect_off): Likewise.
3961 (dwarf2_fetch_constant_bytes): Likewise.
3962 (dwarf2_fetch_die_type_sect_off): Likewise.
3963 (follow_die_sig_1): Likewise.
3964 (load_full_type_unit): Likewise.
3965 (read_signatured_type): Likewise.
3966 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3967 (dwarf2_cu::~dwarf2_cu): Remove.
3968 (dwarf2_per_objfile::get_cu): New.
3969 (dwarf2_per_objfile::set_cu): New.
3970 (age_cached_comp_units): Rename to...
3971 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3972 to std::unordered_map.
3973 (free_one_cached_comp_unit): Rename to...
3974 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3975 to std::unordered_map.
3976 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3977 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3978 a dwarf2_per_objfile in data.
3979 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3980 (dwarf2_clear_marks): Remove.
3981
3982 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3983
3984 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3985 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3986 (init_tu_and_read_dwo_dies): Likewise.
3987 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3988 (cutu_reader::cutu_reader): Likewise.
3989 (load_partial_comp_unit): Likewise.
3990 (process_psymtab_comp_unit): Update.
3991 (build_type_psymtabs_1): Update.
3992 (process_skeletonless_type_unit): Update.
3993 (load_full_comp_unit): Update.
3994 (find_partial_die): Update.
3995 (dwarf2_read_addr_index): Update.
3996 (read_signatured_type): Update.
3997
3998 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3999
4000 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4001 m_header_read_in>: New fields.
4002 <get_header>: New method.
4003 * dwarf2/read.c (per_cu_header_read_in): Remove.
4004 (dwarf2_per_cu_data::get_header): New.
4005 (dwarf2_per_cu_data::addr_size): Update.
4006 (dwarf2_per_cu_data::offset_size): Update.
4007 (dwarf2_per_cu_data::ref_addr_size): Update.
4008
4009 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4010
4011 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4012 (dw2_do_instantiate_symtab): Update.
4013 (queue_and_load_all_dwo_tus): Change parameter from
4014 dwarf2_per_cu_data to dwarf2_cu.
4015 (dwarf2_fetch_die_loc_sect_off): Update.
4016 (dwarf2_fetch_constant_bytes): Update.
4017 (dwarf2_fetch_die_type_sect_off): Update.
4018
4019 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4020
4021 * dwarf2/read.c (process_full_comp_unit,
4022 process_full_type_unit): Remove per_cu, per_objfile paramters.
4023 Add dwarf2_cu parameter.
4024 (process_queue): Update.
4025
4026 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4027
4028 * dwarf2/read.c (create_cu_from_index_list): Replace
4029 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4030 (create_cus_from_index_list): Likewise.
4031 (create_cus_from_index): Likewise.
4032 (create_signatured_type_table_from_index): Likewise.
4033 (create_cus_from_debug_names_list): Likewise.
4034 (create_cus_from_debug_names): Likewise.
4035 (dwarf2_read_gdb_index): Update.
4036 (dwarf2_read_debug_names): Update.
4037
4038 2020-05-27 Tom Tromey <tom@tromey.com>
4039 Simon Marchi <simon.marchi@efficios.com>
4040
4041 * dwarf2/read.h (struct dwarf2_per_objfile)
4042 <get_type_for_signatured_type, set_type_for_signatured_type>:
4043 New methods.
4044 <m_type_map>: New member.
4045 (struct signatured_type) <type>: Remove.
4046 * dwarf2/read.c
4047 (dwarf2_per_objfile::get_type_for_signatured_type,
4048 dwarf2_per_objfile::set_type_for_signatured_type): New.
4049 (get_signatured_type): Use new methods.
4050
4051 2020-05-27 Tom Tromey <tom@tromey.com>
4052 Simon Marchi <simon.marchi@efficios.com>
4053
4054 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4055 (struct dwarf2_per_objfile) <type_units>: New member.
4056 <get_type_unit_group_unshareable>: New method.
4057 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4058 num_symtabs, symtabs>: Remove; move to
4059 type_unit_group_unshareable.
4060 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4061 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4062 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4063
4064 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4065
4066 * dwarf2/read.h (struct dwarf2_per_cu_data):
4067 <dwarf2_per_objfile>: Remove.
4068 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4069 dwarf2_per_objfile.
4070 (create_signatured_type_table_from_index): Likewise.
4071 (create_signatured_type_table_from_debug_names): Likewise.
4072 (create_debug_type_hash_table): Likewise.
4073 (fill_in_sig_entry_from_dwo_entry): Likewise.
4074 (create_type_unit_group): Likewise.
4075 (read_comp_units_from_section): Likewise.
4076 (create_cus_hash_table): Likewise.
4077
4078 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4079
4080 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4081 dwarf2_per_cu_data::dwarf2_per_objfile.
4082 (compute_compunit_symtab_includes): Likewise.
4083 (dwarf2_cu::start_symtab): Likewise.
4084
4085 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4086
4087 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4088 parameter.
4089 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4090 (read_namespace_alias): Update.
4091 (lookup_die_type): Update.
4092 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4093 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4094 Update.
4095 (disassemble_dwarf_expression): Update.
4096
4097 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4098
4099 * dwarf2/read.h (struct dwarf2_queue_item): Add
4100 dwarf2_per_objfile parameter, assign new parameter.
4101 <per_objfile>: New field.
4102 * dwarf2/read.c (free_one_cached_comp_unit): Add
4103 dwarf2_per_objfile parameter.
4104 (queue_comp_unit): Likewise.
4105 (dw2_do_instantiate_symtab): Update.
4106 (process_psymtab_comp_unit): Update.
4107 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4108 (process_imported_unit_die): Update.
4109 (queue_and_load_dwo_tu): Update.
4110 (follow_die_offset): Update.
4111 (follow_die_sig_1): Update.
4112
4113 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4114
4115 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4116 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4117 (read_call_site_scope): Assign per_objfile.
4118 (dwarf2_per_cu_data::objfile): Remove.
4119 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4120 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4121 dwarf2_per_objfile parameter.
4122 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4123 dwarf2_per_objfile parameter.
4124 (dwarf_expr_reg_to_entry_parameter): Add output
4125 dwarf2_per_objfile parameter.
4126 (locexpr_get_frame_base): Update.
4127 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4128 <push_dwarf_reg_entry_value>: Update.
4129 <call_site_to_target_addr>: Update.
4130 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4131 parameter.
4132 (value_of_dwarf_reg_entry): Update.
4133 (rw_pieced_value): Update.
4134 (indirect_synthetic_pointer): Update.
4135 (dwarf2_evaluate_property): Update.
4136 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4137 parameter.
4138 (locexpr_read_variable): Update.
4139 (locexpr_get_symbol_read_needs): Update.
4140 (loclist_read_variable): Update.
4141
4142 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4143
4144 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4145 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4146 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4147 parameter.
4148 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4149 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4150 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4151 parameter.
4152 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4153 sect_variable_value): Add dwarf2_per_objfile parameter.
4154 (class dwarf_evaluate_loc_desc) <dwarf_call,
4155 dwarf_variable_value>: Update.
4156 (fetch_const_value_from_synthetic_pointer): Add
4157 dwarf2_per_objfile parameter.
4158 (fetch_const_value_from_synthetic_pointer): Update.
4159 (coerced_pieced_ref): Update.
4160 (class symbol_needs_eval_context) <dwarf_call,
4161 dwarf_variable_value>: Update.
4162 (dwarf2_compile_expr_to_ax): Update.
4163
4164 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4165
4166 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4167 parameter.
4168 (dwarf2_evaluate_loc_desc_full): Update.
4169
4170 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4171
4172 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4173 parameter.
4174 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4175 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4176 dwarf2_per_objfile parameter.
4177 (decode_debug_loc_dwo_addresses): Likewise.
4178 (dwarf2_find_location_expression): Update.
4179 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4180 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4181 parameter.
4182 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4183 parameter.
4184 (locexpr_describe_location_1): Likewise.
4185 (locexpr_describe_location): Update.
4186
4187 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4188
4189 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4190 Remove.
4191 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4192 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4193 (dwarf2_compile_property_to_c): Update.
4194 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4195 use text offset from objfile.
4196 (locexpr_tracepoint_var_ref): Update.
4197 (locexpr_generate_c_location): Update.
4198 (loclist_describe_location): Update.
4199 (loclist_tracepoint_var_ref): Update.
4200 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4201 dwarf2_per_objfile parameter.
4202 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4203 use text offset from objfile.
4204 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4205
4206 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4207
4208 * dwarf2/expr.h (struct dwarf_expr_context)
4209 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4210 <offset>: Remove.
4211 <per_objfile>: New member.
4212 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4213 dwarf2_per_objfile parameter. Don't set offset, set
4214 per_objfile.
4215 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4216 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4217 a dwarf2_per_objfile object instead of an offset.
4218 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4219 constructor.
4220 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4221 to dwarf2_expr_executor constructor. Don't set offset.
4222 (dwarf2_fetch_cfa_info): Update.
4223 (struct dwarf2_frame_cache) <text_offset>: Remove.
4224 <per_objfile>: New field.
4225 (dwarf2_frame_cache): Update.
4226 (dwarf2_frame_prev_register): Update.
4227 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4228 <dwarf_evaluate_loc_desc>: Add constructor.
4229 (dwarf2_evaluate_loc_desc_full): Update.
4230 (dwarf2_locexpr_baton_eval): Update.
4231 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4232 Add constructor.
4233 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4234
4235 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4236
4237 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4238 addr_sized_int_type>: Move to dwarf2_cu.
4239 <int_type>: Move to dwarf2_per_objfile.
4240 (struct dwarf2_per_objfile) <int_type>: Move here.
4241 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4242 addr_sized_int_type>: Move here.
4243 (read_func_scope): Update.
4244 (read_array_type): Update.
4245 (read_tag_string_type): Update.
4246 (attr_to_dynamic_prop): Update.
4247 (dwarf2_per_cu_data::int_type): Rename to...
4248 (dwarf2_per_objfile::int_type): ... this.
4249 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4250 (dwarf2_cu::addr_sized_int_type): ... this.
4251 (read_subrange_type): Update.
4252 (dwarf2_per_cu_data::addr_type): Rename to...
4253 (dwarf2_cu::addr_type): ... this.
4254 (set_die_type): Update.
4255
4256 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4257
4258 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4259 data through per_cu->cu.
4260
4261 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4262
4263 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4264 dwarf2_per_cu_data parameter fo dwarf2_cu.
4265 (lookup_dwo_type_unit): Likewise.
4266 (read_cutu_die_from_dwo): Likewise.
4267 (lookup_dwo_unit): Likewise.
4268 (open_and_init_dwo_file): Likewise.
4269 (lookup_dwo_cutu): Likewise.
4270 (lookup_dwo_comp_unit): Likewise.
4271 (lookup_dwo_type_unit): Likewise.
4272 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4273 (cutu_reader::cutu_reader): Update.
4274
4275 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4276
4277 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4278 parameter.
4279 (process_full_type_unit): Likewise.
4280 (process_queue): Update.
4281
4282 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4283
4284 * dwarf2/read.c (recursively_compute_inclusions): Add
4285 dwarf2_per_objfile parameter.
4286 (compute_compunit_symtab_includes): Likewise.
4287 (process_cu_includes): Update.
4288
4289 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4290
4291 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4292 parameter.
4293 (create_type_unit_group): Update.
4294 (process_psymtab_comp_unit_reader): Update.
4295 (build_type_psymtabs_reader): Update.
4296
4297 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4298
4299 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4300 object through m_this_cu->cu.
4301
4302 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4303
4304 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4305 the info parameter.
4306 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4307
4308 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4309
4310 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4311 per_objfile parameter.
4312 (load_full_type_unit): Add per_objfile parameter.
4313 (read_signatured_type): Likewise.
4314 (load_full_comp_unit): Likewise.
4315 (load_cu): Likewise.
4316 (dw2_do_instantiate_symtab): Likewise.
4317 (dw2_get_file_names): Likewise.
4318 (dw2_map_symtabs_matching_filename): Update.
4319 (dw_expand_symtabs_matching_file_matcher): Update.
4320 (dw2_map_symbol_filenames): Update.
4321 (process_psymtab_comp_unit): Add per_objfile parameter.
4322 (build_type_psymtabs_1): Update.
4323 (process_skeletonless_type_unit): Update.
4324 (dwarf2_build_psymtabs_hard): Update.
4325 (load_partial_comp_unit): Add per_objfile parameter.
4326 (scan_partial_symbols): Update.
4327 (load_full_comp_unit): Add per_objfile parameter.
4328 (process_imported_unit_die): Update.
4329 (create_cus_hash_table): Update.
4330 (find_partial_die): Update.
4331 (dwarf2_read_addr_index): Update.
4332 (follow_die_offset): Update.
4333 (dwarf2_fetch_die_loc_sect_off): Update.
4334 (dwarf2_fetch_constant_bytes): Update.
4335 (dwarf2_fetch_die_type_sect_off): Update.
4336 (follow_die_sig_1): Update.
4337 (load_full_type_unit): Add per_objfile parameter.
4338 (read_signatured_type): Likewise.
4339
4340 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4341
4342 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4343 of objfile_name.
4344
4345 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4346
4347 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4348 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4349 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4350 field.
4351 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4352 (create_cus_from_index): Update.
4353 (dwarf2_read_gdb_index): Update.
4354 (create_cus_from_debug_names): Update.
4355 (dwarf2_read_debug_names): Update.
4356 (get_abbrev_section_for_cu): Update.
4357 (create_all_comp_units): Update.
4358 (read_attribute_value): Update.
4359 (get_debug_line_section): Update.
4360 * dwarf2/index-cache.c (index_cache::store): Update.
4361 * dwarf2/index-write.c (save_gdb_index_command): Update.
4362 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4363
4364 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4365
4366 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4367 member.
4368 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4369 dwarf2_per_cu_data::per_bfd.
4370 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4371 (create_type_unit_group): Likewise.
4372 (queue_comp_unit): Remove reference to
4373 per_cu->dwarf2_per_objfile.
4374 (maybe_queue_comp_unit): Likewise.
4375 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4376 (create_cus_hash_table): Assign new field.
4377
4378 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4379
4380 * dwarf2/read.c: Replace
4381 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4382 dwarf2_cu->per_objfile throughout.
4383
4384 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4385
4386 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4387 parameter, don't use per_cu->dwarf2_per_objfile.
4388 (dw2_instantiate_symtab): Likewise.
4389 (dw2_find_last_source_symtab): Update.
4390 (dw2_map_expand_apply): Update.
4391 (dw2_lookup_symbol): Update.
4392 (dw2_expand_symtabs_for_function): Update.
4393 (dw2_expand_all_symtabs): Update.
4394 (dw2_expand_symtabs_with_fullname): Update.
4395 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4396 don't use per_cu->dwarf2_per_objfile.
4397 (dw2_expand_marked_cus): Update.
4398 (dw2_find_pc_sect_compunit_symtab): Update.
4399 (dw2_debug_names_lookup_symbol): Update.
4400 (dw2_debug_names_expand_symtabs_for_function): Update.
4401 (dw2_debug_names_map_matching_symbols): Update.
4402 (dwarf2_psymtab::expand_psymtab): Update.
4403
4404 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4405
4406 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4407 <per_objfile>: New member.
4408 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4409 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4410 call to dwarf2_cu.
4411 (cutu_reader::cutu_reader): Update.
4412 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4413
4414 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4415
4416 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4417 struct dwarf2_per_objfile.
4418 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4419 dwarf2_per_bfd.
4420 * dwarf2/read.c (set_die_type): Update.
4421 (get_die_type_at_offset): Update.
4422
4423 2020-05-27 Tom Tromey <tom@tromey.com>
4424 Simon Marchi <simon.marchi@efficios.com>
4425
4426 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4427 method.
4428 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4429 get_symtab, set_symtab>: New methods.
4430 <m_symtabs>: New field.
4431 (struct dwarf2_psymtab): Derive from partial_symtab.
4432 <readin_p, get_compunit_symtab>: Declare methods.
4433 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4434 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4435 New methods.
4436 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4437 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4438 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4439 (dw2_symtab_iter_next, dw2_print_stats)
4440 (dw2_expand_symtabs_with_fullname)
4441 (dw2_expand_symtabs_matching_one)
4442 (dw_expand_symtabs_matching_file_matcher)
4443 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4444 (dw2_debug_names_iterator::next)
4445 (dw2_debug_names_map_matching_symbols)
4446 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4447 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4448 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4449 New methods.
4450 (get_compunit_symtab, process_full_comp_unit)
4451 (process_full_type_unit): Update.
4452 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4453
4454 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4455
4456 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4457 then introduce a new dwarf2_per_objfile type.
4458 <read_line_string>: Move to the new dwarf2_per_objfile type.
4459 <objfile>: Likewise.
4460 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4461 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4462 dwarf2_per_objfile->per_bfd.
4463 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4464 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4465 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4466 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4467 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4468 (dwarf2_per_objfile::locate_sections): Rename to...
4469 (dwarf2_per_bfd::locate_sections): ... this.
4470 (dwarf2_per_objfile::get_cutu): Rename to...
4471 (dwarf2_per_bfd::get_cutu): ... this.
4472 (dwarf2_per_objfile::get_cu): Rename to...
4473 (dwarf2_per_bfd::get_cu): ... this.
4474 (dwarf2_per_objfile::get_tu): Rename to...
4475 (dwarf2_per_bfd::get_tu): ... this.
4476 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4477 (dwarf2_per_bfd::allocate_per_cu): ... this.
4478 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4479 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4480 (get_gdb_index_contents_ftype): Change parameter from
4481 dwarf2_per_objfile to dwarf2_per_bfd.
4482 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4483 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4484
4485 2020-05-27 Tom Tromey <tom@tromey.com>
4486 Simon Marchi <simon.marchi@efficios.com>
4487
4488 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4489 (allocate_piece_closure): Set "per_objfile" member.
4490 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4491 (locexpr_describe_location, loclist_describe_location): Use new
4492 member.
4493 * dwarf2/read.c (read_call_site_scope)
4494 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4495 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4496 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4497 handle_data_member_location): Set per_objfile member.
4498 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4499 member.
4500 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4501
4502 2020-05-27 Tom Tromey <tom@tromey.com>
4503
4504 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4505 allocate_signatured_type>: Declare new methods.
4506 <m_num_psymtabs>: New member.
4507 (struct dwarf2_per_cu_data) <index>: New member.
4508 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4509 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4510 (create_cu_from_index_list): Use allocate_per_cu.
4511 (create_signatured_type_table_from_index)
4512 (create_signatured_type_table_from_debug_names)
4513 (create_debug_type_hash_table, add_type_unit)
4514 (read_comp_units_from_section): Use allocate_signatured_type.
4515
4516 2020-05-27 Tom Tromey <tom@tromey.com>
4517
4518 * psymtab.c (partial_map_expand_apply)
4519 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4520 (psym_lookup_global_symbol_language)
4521 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4522 (psym_print_stats, psym_expand_symtabs_for_function)
4523 (psym_map_symbol_filenames, psym_map_matching_symbols)
4524 (psym_expand_symtabs_matching)
4525 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4526 (maintenance_check_psymtabs): Update.
4527 * psympriv.h (struct partial_symtab) <readin_p,
4528 get_compunit_symtab>: Add objfile parameter.
4529 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4530 Likewise.
4531 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4532 get_compunit_symtab>: Likewise.
4533 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4534
4535 2020-05-27 Tom Tromey <tom@tromey.com>
4536
4537 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4538 member.
4539 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4540 (create_cu_from_index_list)
4541 (create_signatured_type_table_from_index)
4542 (create_signatured_type_table_from_debug_names)
4543 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4544 (dwarf2_create_include_psymtab)
4545 (create_debug_type_hash_table, add_type_unit)
4546 (create_type_unit_group, read_comp_units_from_section)
4547 (dwarf2_compute_name, create_cus_hash_table)
4548 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4549 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4550 obstack.
4551 (dw2_get_real_path): Likewise. Change argument to
4552 dwarf2_per_objfile.
4553
4554 2020-05-27 Luis Machado <luis.machado@linaro.org>
4555
4556 PR tdep/26000
4557 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4558 for ldrd (immediate).
4559
4560 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4561
4562 * command.h: Add comment giving the name of class_tui.
4563 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4564 create the fake command for the help for class_tui.
4565
4566 2020-05-26 Tom Tromey <tromey@adacore.com>
4567
4568 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4569 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4570 (val_atr): New function.
4571 (value_val_atr): Use it.
4572 * ada-valprint.c (print_optional_low_bound): Change low bound
4573 handling for enums.
4574 (val_print_packed_array_elements): Don't call discrete_position.
4575 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4576 discrete_position for enum types.
4577 * language.c (default_print_array_index): Change type.
4578 * language.h (struct language_defn) <la_print_array_index>: Add
4579 index_type parameter, change type of index_value.
4580 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4581 (default_print_array_index): Update.
4582 * valprint.c (maybe_print_array_index): Don't call
4583 value_from_longest. Update.
4584 (value_print_array_elements): Don't call discrete_position.
4585
4586 2020-05-26 Tom Tromey <tromey@adacore.com>
4587
4588 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4589 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4590
4591 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4592
4593 PR gdb/13519
4594 * avr-tdep.c (avr_integer_to_address): Return data or code
4595 address accordingly to the second 'type' argument of the
4596 function.
4597
4598 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4599
4600 * infcmd.c, inferior.h: (construct_inferior_arguments):
4601 Moved function from here to gdbsupport/common-inferior.{h,cc}
4602
4603 2020-05-23 Tom Tromey <tom@tromey.com>
4604
4605 Revert commit eca1f90c:
4606 * NEWS: Remove entry for completion styling.
4607 * completer.c (_rl_completion_prefix_display_length): Move
4608 declaration later.
4609 (gdb_fnprint): Revert.
4610 (gdb_display_match_list_1): Likewise.
4611 * cli/cli-style.c (completion_prefix_style)
4612 (completion_difference_style, completion_suffix_style): Remove.
4613 (_initialize_cli_style): Revert.
4614 * cli/cli-style.h (completion_prefix_style)
4615 (completion_difference_style, completion_suffix_style): Don't
4616 declare.
4617
4618 2020-05-24 Pedro Alves <palves@redhat.com>
4619
4620 * symtab.c (completion_list_add_name): Return boolean indication
4621 of whether the symbol matched.
4622 (completion_list_add_symbol): Don't try to remove C++ aliases if
4623 the symbol didn't match in the first place.
4624 * symtab.h (completion_list_add_name): Return bool.
4625
4626 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4627
4628 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4629 type::field.
4630
4631 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4632
4633 GDB 9.2 released.
4634
4635 2020-05-23 Tom Tromey <tom@tromey.com>
4636
4637 * NEWS: Add entry for completion styling.
4638 * completer.c (_rl_completion_prefix_display_length): Move
4639 declaration earlier.
4640 (gdb_fnprint): Use completion_style.
4641 (gdb_display_match_list_1): Likewise.
4642 * cli/cli-style.c (completion_prefix_style)
4643 (completion_difference_style, completion_suffix_style): New
4644 globals.
4645 (_initialize_cli_style): Register new globals.
4646 * cli/cli-style.h (completion_prefix_style)
4647 (completion_difference_style, completion_suffix_style): Declare.
4648
4649 2020-05-23 Pedro Alves <palves@redhat.com>
4650
4651 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4652 (parse_escape): Use ISDIGIT instead of isdigit.
4653 (puts_debug): Use gdb_isprint instead of isprint.
4654 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4655 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4656 ISSPACE instead of isspace.
4657 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4658 instead of isspace.
4659 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4660 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4661 instead of isxdigit and ISDIGIT instead of isdigit.
4662
4663 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4664
4665 * gdbtypes.h (struct type) <field>: New method.
4666 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4667 or type::field.
4668
4669 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4670
4671 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4672 (TYPE_FIELDS): Use type::fields. Change all call sites that
4673 modify the propery to use type::set_fields instead.
4674
4675 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4676
4677 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4678 type::num_fields instead.
4679
4680 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4681
4682 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4683 methods.
4684 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4685 that modify the number of fields to use type::set_num_fields
4686 instead.
4687
4688 2020-05-22 Tom Tromey <tromey@adacore.com>
4689
4690 * compile/compile-object-load.h (munmap_list_free): Don't
4691 declare.
4692
4693 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4694
4695 * annotate.c (annotate_source_line): Update return type, add call
4696 to update current symtab and line.
4697 * annotate.h (annotate_source_line): Update return type, and
4698 extend header comment.
4699 * source.c (info_line_command): Check annotation_level before
4700 calling annotate_source_line.
4701 * stack.c (print_frame_info): If calling annotate_source_line
4702 returns true, then don't print any other source line information.
4703
4704 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4705
4706 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4707
4708 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4709
4710 * coffread.c (patch_type): Remove NULL check before xfree.
4711 * corefile.c (set_gnutarget): Likewise.
4712 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4713 * exec.c (build_section_table): Likewise.
4714 * remote.c (remote_target::pass_signals): Likewise.
4715 * utils.c (n_spaces): Likewise.
4716 * cli/cli-script.c (document_command): Likewise.
4717 * i386-windows-tdep.c (core_process_module_section): Likewise.
4718 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4719
4720 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4721
4722 * symfile.c (reread_symbols): Clear objfile's section_offsets
4723 vector and section indices, re-compute them by calling
4724 sym_offsets.
4725
4726 2020-05-20 Tom Tromey <tromey@adacore.com>
4727
4728 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4729 (desc_one_bound, desc_index_type): Compute field name.
4730
4731 2020-05-20 Tom de Vries <tdevries@suse.de>
4732
4733 PR symtab/25833
4734 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4735
4736 2020-05-20 Alan Modra <amodra@gmail.com>
4737
4738 PR 25993
4739 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4740 bfd_set_filename.
4741 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4742 passed to bfd_set_filename.
4743 * symfile-mem.c (add_vsyscall_page): Likewise for string
4744 passed to symbol_file_add_from_memory.
4745 (symbol_file_add_from_memory): Make name param a const char* and
4746 don't strdup.
4747
4748 2020-05-20 Alan Modra <amodra@gmail.com>
4749
4750 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4751 rather than accessing bfd->filename directly.
4752 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4753 and use bfd_section_name.
4754 * dwarf2/frame.c (decode_frame_entry): Likewise.
4755 * exec.c (exec_set_section_address): Likewise.
4756 * solib-aix.c (solib_aix_bfd_open): Likewise.
4757 * stap-probe.c (get_stap_base_address): Likewise.
4758 * symfile.c (reread_symbols): Likewise.
4759
4760 2020-05-19 Tom Tromey <tromey@adacore.com>
4761
4762 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4763
4764 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4765
4766 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4767
4768 2020-05-19 Pedro Alves <palves@redhat.com>
4769
4770 * NEWS (set exec-file-mismatch): Adjust entry.
4771 * exec.c: Include "build-id.h".
4772 (validate_exec_file): Try to match build IDs instead of filenames.
4773 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4774 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4775 and pass down 'warn_if_slow'.
4776 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4777 gdb_bfd_open_closure to pass it down.
4778 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4779
4780 2020-05-19 Pedro Alves <palves@redhat.com>
4781
4782 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4783 * target.c (target_fileio_open_1): Rename to target_fileio_open
4784 and make extern. Use bool.
4785 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4786 (target_fileio_read_alloc_1): Adjust.
4787 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4788 (target_fileio_open_warn_if_slow): Delete declaration.
4789
4790 2020-05-19 Pedro Alves <palves@redhat.com>
4791
4792 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4793 Adjust all callers.
4794
4795 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4796
4797 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4798 whether disp is negative.
4799
4800 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4801
4802 * symfile.h (struct symfile_segment_data)
4803 <~symfile_segment_data>: Remove.
4804 <segment_info>: Change to std::vector.
4805 * symfile.c (default_symfile_segments): Update.
4806 * elfread.c (elf_symfile_segments): Update.
4807
4808 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4809
4810 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4811 <segments>: New.
4812 <segment_bases, segment_sizes>: Remove.
4813 * symfile.c (default_symfile_segments): Update.
4814 * elfread.c (elf_symfile_segments): Update.
4815 * remote.c (remote_target::get_offsets): Update.
4816 * solib-target.c (solib_target_relocate_section_addresses):
4817 Update.
4818
4819 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4820
4821 * symfile.h (struct symfile_segment_data): Initialize fields.
4822 <~symfile_segment_data>: Add.
4823 (symfile_segment_data_up): New.
4824 (struct sym_fns) <sym_segments>: Return a
4825 symfile_segment_data_up.
4826 (default_symfile_segments): Return a symfile_segment_data_up.
4827 (free_symfile_segment_data): Remove.
4828 (get_symfile_segment_data): Return a symfile_segment_data_up.
4829 * symfile.c (default_symfile_segments): Likewise.
4830 (get_symfile_segment_data): Likewise.
4831 (free_symfile_segment_data): Remove.
4832 (symfile_find_segment_sections): Update.
4833 * elfread.c (elf_symfile_segments): Return a
4834 symfile_segment_data_up.
4835 * remote.c (remote_target::get_offsets): Update.
4836 * solib-target.c (solib_target_relocate_section_addresses):
4837 Update.
4838 * symfile-debug.c (debug_sym_segments): Return a
4839 symfile_segment_data_up.
4840
4841 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4842
4843 PR build/25981
4844 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4845 Hardcode register numbers.
4846
4847 PR build/25981
4848 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4849 procfs_find_LDT_entry): Remove.
4850 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4851 procfs_find_LDT_entry): Remove.
4852 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4853 Remove.
4854
4855 2020-05-17 Pedro Alves <palves@redhat.com>
4856 Andrew Burgess <andrew.burgess@embecosm.com>
4857 Keno Fischer <keno@juliacomputing.com>
4858
4859 PR gdb/25741
4860 * breakpoint.c (build_target_condition_list): Update comments.
4861 (build_target_command_list): Update comments and skip matching
4862 locations.
4863 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4864 a separate function. Simplify "set breakpoint auto-hw off"
4865 handling.
4866 (insert_breakpoints): Update comment.
4867 (tracepoint_locations_match): New parameter. For breakpoints,
4868 compare location types too, if the caller wants to.
4869 (handle_automatic_hardware_breakpoints): New functions.
4870 (bp_location_is_less_than): Also sort by location type and
4871 hardware breakpoint length.
4872 (update_global_location_list): Handle "set breakpoint auto-hw on"
4873 here.
4874 (update_breakpoint_locations): Ask breakpoint_locations_match to
4875 ignore location types.
4876
4877 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4878
4879 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4880 type::name instead.
4881
4882 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4883
4884 * gdbtypes.h (struct type) <name, set_name>: New methods.
4885 (TYPE_CODE): Use type::name. Change all call sites used to set
4886 the name to use type::set_name instead.
4887
4888 2020-05-16 Tom Tromey <tom@tromey.com>
4889
4890 * top.c (quit_force): Update.
4891 * infrun.c (handle_no_resumed): Update.
4892 * top.h (all_uis): New function.
4893 (ALL_UIS): Remove.
4894
4895 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4896
4897 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4898
4899 2020-05-16 Pedro Alves <palves@redhat.com>
4900
4901 * ia64-linux-nat.c
4902 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4903 Declare method.
4904 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4905
4906 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4907
4908 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4909 (sparc64_adi_info): Likewise.
4910
4911 2020-05-15 Tom Tromey <tom@tromey.com>
4912
4913 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4914 block_objfile.
4915 (lookup_objfile_from_block): Remove.
4916 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4917 (lookup_global_symbol): Use block_objfile.
4918 * symtab.h (lookup_objfile_from_block): Don't declare.
4919 * printcmd.c (clear_dangling_display_expressions): Use
4920 block_objfile.
4921 * parse.c (operator_check_standard): Use block_objfile.
4922
4923 2020-05-15 Tom Tromey <tom@tromey.com>
4924
4925 * language.c (language_alloc_type_symbol): Set
4926 SYMBOL_SECTION.
4927 * symtab.c (initialize_objfile_symbol): Remove.
4928 (allocate_symbol): Remove.
4929 (allocate_template_symbol): Remove.
4930 * dwarf2/read.c (fixup_go_packaging): Use "new".
4931 (new_symbol): Use "new".
4932 (read_variable): Don't call initialize_objfile_symbol. Use
4933 "new".
4934 (read_func_scope): Use "new".
4935 * xcoffread.c (process_xcoff_symbol): Don't call
4936 initialize_objfile_symbol.
4937 (SYMBOL_DUP): Remove.
4938 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4939 "new".
4940 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4941 (allocate_template_symbol): Don't declare.
4942 (struct symbol): Add copy constructor. Change defaults.
4943 * jit.c (finalize_symtab): Use "new".
4944 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4945 Use "new".
4946 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4947 (common_block_end): Use "new".
4948 * mdebugread.c (parse_symbol): Use "new".
4949 (new_symbol): Likewise.
4950
4951 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4952
4953 * NEWS: Mention changes to help and apropos.
4954
4955 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4956
4957 * command.h (enum command_class): Improve comments, document
4958 that class_alias is for user-defined aliases, give the class
4959 name for each class, remove unused class_xdb.
4960 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4961 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4962 by a precise class.
4963 * infcmd.c (_initialize_infcmd): Likewise.
4964 * reverse.c (_initialize_reverse): Likewise.
4965 * stack.c (_initialize_stack): Likewise.
4966 * symfile.c (_initialize_symfile): Likewise.
4967 * tracepoint.c (_initialize_tracepoint): Likewise.
4968
4969 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4970
4971 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4972 when their aliased command is traversed.
4973 (help_cmd): Add fput_command_names_styled call to
4974 output command name and aliases when command has an alias.
4975
4976 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4977
4978 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4979 * cli/cli-decode.c (help_cmd_list): Declare as static,
4980 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4981 a command together with the command.
4982 (fput_command_name_styled, fput_command_names_styled): New functions.
4983 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4984 fput_command_name_styled.
4985 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4986 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4987
4988 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4989
4990 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4991 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4992 * command.h (cmd_show_list): Likewise.
4993 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4994 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4995
4996 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4997
4998 * unittests/command-def-selftests.c (traverse_command_structure):
4999 Verify all commands of a list have the same prefix command and
5000 that only the top cmdlist commands have a null prefix.
5001
5002 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5003
5004 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5005 as prefix, not one of its aliases.
5006 (set_cmd_prefix): Remove.
5007 (do_add_cmd): Centralize the setting of the prefix of a command, when
5008 command is defined after its full chain of prefix commands.
5009 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5010 (add_setshow_cmd_full): Likewise.
5011 (update_prefix_field_of_prefixed_commands): New function.
5012 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5013 update_prefix_field_of_prefixed_commands.
5014 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5015 addresses of remote_set_cmdlist and remote_show_cmdlist given
5016 as argument, not the address of an argument.
5017 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5018 * gdb/remote.c (_initialize_remote): Likewise.
5019
5020 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5021
5022 * cli/cli-cmds.c (alias_command): Check for an existing alias
5023 using lookup_cmd_composition, as valid_command_p is too strict
5024 and forbids aliases that are the prefix of an existing alias
5025 or command.
5026 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5027 command is properly recognised as a valid command.
5028
5029 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5030
5031 * unittests/help-doc-selftests.c: Rename to
5032 unittests/command-def-selftests.c
5033 * unittests/command-def-selftests.c (help_doc_tests): Update some
5034 comments.
5035 (command_structure_tests, traverse_command_structure): New namespace
5036 and function.
5037 (command_structure_invariants_tests): New function.
5038 (_initialize_command_def_selftests) Renamed from
5039 _initialize_help_doc_selftests, register command_structure_invariants
5040 selftest.
5041
5042 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5043
5044 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5045 an alias of 'show'.
5046
5047 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5048
5049 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5050 ada_is_fixed_point_type. Update all callers.
5051 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5052 all callers.
5053 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5054 Update all callers.
5055 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5056 print_fixed_point_type. Update all callers.
5057 * ada-valprint.c (ada_value_print_num): Replace call to
5058 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5059
5060 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5061
5062 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5063 processors.
5064 (cpu_supports_bts): Add CV_AMD case.
5065
5066 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5067 Simon Marchi <simon.marchi@efficios.com>
5068
5069 * infrun.c (stop_all_threads): Collect multiple wait events at
5070 each pass.
5071
5072 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5073
5074 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5075 type::code instead.
5076
5077 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5078
5079 * gdbtypes.h (struct type) <code, set_code>: New methods.
5080 (TYPE_CODE): Use type::code. Change all call sites used to set
5081 the code to use type::set_code instead.
5082
5083 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5084 Tom de Vries <tdevries@suse.de>
5085 Pedro Alves <palves@redhat.com>
5086
5087 PR threads/25478
5088 * infrun.c (stop_all_threads): Do NOT ignore
5089 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5090 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5091 received.
5092 (handle_no_resumed): Remove code handling a live inferior with no
5093 threads.
5094 * remote.c (has_single_non_exited_thread): New.
5095 (remote_target::update_thread_list): Do not delete a thread if is
5096 the last thread of the process.
5097 * thread.c (thread_select): Call delete_exited_threads instead of
5098 prune_threads.
5099
5100 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5101
5102 * infrun.c (stop_all_threads): Enable/disable thread events of all
5103 targets. Move a debug message denoting the end of the function
5104 into the SCOPED_EXIT block.
5105
5106 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5107
5108 * process-stratum-target.h: Include <set>.
5109 (all_non_exited_process_targets, switch_to_target_no_thread): New
5110 function declarations.
5111 * process-stratum-target.c (all_non_exited_process_targets)
5112 (switch_to_target_no_thread): New function implementations.
5113
5114 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5115
5116 * infrun.c (handle_inferior_event): Extract out a piece of code
5117 into...
5118 (mark_non_executing_threads): ...this new function.
5119
5120 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5121
5122 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5123 use.
5124
5125 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5126
5127 * regcache.c (regcache_read_pc_protected): New function
5128 implementation that returns 0 if the PC cannot read via
5129 'regcache_read_pc'.
5130 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5131 instead of 'regcache_read_pc'.
5132 (keep_going_pass_signal): Ditto.
5133
5134 2020-05-13 Tom Tromey <tromey@adacore.com>
5135
5136 * ada-lang.c (align_value): Remove.
5137 (ada_template_to_fixed_record_type_1): Use align_up.
5138
5139 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5140
5141 * async-event.c: Update the copyright year.
5142 * async-event.h: Update the copyright year.
5143
5144 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5145
5146 * objfiles.h (is_addr_in_objfile,
5147 shared_objfile_contains_address_p): Return bool.
5148 * objfile.c (is_addr_in_objfile,
5149 shared_objfile_contains_address_p): Return bool.
5150
5151 2020-05-11 Tom Tromey <tromey@adacore.com>
5152
5153 * cli/cli-cmds.c (info_command): Restore.
5154 (_initialize_cli_cmds): Use add_prefix_command for "info".
5155 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5156
5157 2020-05-11 Tom Tromey <tromey@adacore.com>
5158
5159 * ada-lang.c (ada_value_primitive_field): Now public.
5160 * ada-lang.h (ada_value_primitive_field): Declare.
5161 * ada-valprint.c (print_field_values): Use
5162 ada_value_primitive_field for wrapper fields.
5163
5164 2020-05-11 Tom de Vries <tdevries@suse.de>
5165
5166 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5167 MODULE_DOMAIN.
5168
5169 2020-05-11 Tom de Vries <tdevries@suse.de>
5170
5171 PR symtab/25941
5172 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5173 with length 0, if not gdb-produced.
5174 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5175
5176 2020-05-09 Tom de Vries <tdevries@suse.de>
5177
5178 PR gdb/25955
5179 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5180 calculation.
5181
5182 2020-05-09 Tom Tromey <tom@tromey.com>
5183
5184 * top.c (server_command): Now bool.
5185 * top.h (server_command): Now bool.
5186
5187 2020-05-08 Tom Tromey <tromey@adacore.com>
5188
5189 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5190 already being processed.
5191
5192 2020-05-08 Tom Tromey <tom@tromey.com>
5193
5194 * printcmd.c (struct display) <next>: Remove.
5195 <display>: New constructor.
5196 <exp_string>: Now a std::string.
5197 <enabled_p>: Now a bool.
5198 (display_number): Move definition earlier.
5199 (displays): Rename from display_chain. Now a std::vector.
5200 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5201 (display_command): Update.
5202 (do_one_display, disable_display)
5203 (enable_disable_display_command, do_enable_disable_display):
5204 Update.
5205 (free_display): Remove.
5206 (clear_displays): Rewrite.
5207 (delete_display): Update.
5208 (map_display_numbers): Use function_view. Remove "data"
5209 parameter. Update.
5210 (do_delete_display): Remove.
5211 (undisplay_command): Update.
5212 (do_one_display, do_displays, disable_display)
5213 (info_display_command): Update.
5214 (do_enable_disable_display): Remove.
5215 (enable_disable_display_command)
5216 (clear_dangling_display_expressions): Update.
5217
5218 2020-05-08 Tom Tromey <tom@tromey.com>
5219
5220 * symtab.c (set_symbol_cache_size)
5221 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5222 (maintenance_print_symbol_cache_statistics): Update.
5223 * symmisc.c (print_symbol_bcache_statistics)
5224 (print_objfile_statistics, maintenance_print_objfiles)
5225 (maintenance_info_symtabs, maintenance_check_symtabs)
5226 (maintenance_expand_symtabs, maintenance_info_line_tables):
5227 Update.
5228 * symfile-debug.c (set_debug_symfile): Update.
5229 * source.c (forget_cached_source_info): Update.
5230 * python/python.c (gdbpy_progspaces): Update.
5231 * psymtab.c (maintenance_info_psymtabs): Update.
5232 * probe.c (parse_probes): Update.
5233 * linespec.c (iterate_over_all_matching_symtabs)
5234 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5235 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5236 * exec.c (exec_target::close): Update.
5237 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5238 * breakpoint.c (print_one_breakpoint_location)
5239 (create_longjmp_master_breakpoint)
5240 (create_std_terminate_master_breakpoint): Update.
5241 * progspace.c (program_spaces): Now a std::vector.
5242 (maybe_new_address_space): Update.
5243 (add_program_space): Remove.
5244 (program_space::program_space): Update.
5245 (remove_program_space): Update.
5246 (number_of_program_spaces): Remove.
5247 (print_program_space, update_address_spaces): Update.
5248 * progspace.h (program_spaces): Change type.
5249 (ALL_PSPACES): Remove.
5250 (number_of_program_spaces): Don't declare.
5251 (struct program_space) <next>: Remove.
5252
5253 2020-05-08 Tom Tromey <tom@tromey.com>
5254
5255 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5256 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5257 (enable_break): Update.
5258 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5259 (frv_fdpic_find_canonical_descriptor): Update.
5260 (frv_fetch_objfile_link_map): Update.
5261 * progspace.c (program_space::free_all_objfiles): Update.
5262 (program_space::solibs): New method.
5263 * progspace.h (struct program_space) <solibs>: New method.
5264 * solist.h (master_so_list): Don't declare.
5265 (ALL_SO_LIBS): Remove.
5266 * solib.h (so_list_head): Remove.
5267 (update_solib_list): Update comment.
5268 * solib.c (master_so_list): Remove.
5269 (solib_used, update_solib_list, solib_add)
5270 (info_sharedlibrary_command, clear_solib)
5271 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5272
5273 2020-05-08 Tom Tromey <tom@tromey.com>
5274
5275 * extension.c (extension_languages): Now a std::array.
5276 (ALL_EXTENSION_LANGUAGES): Remove.
5277 (get_ext_lang_defn, get_ext_lang_of_file)
5278 (eval_ext_lang_from_control_command): Update.
5279 (finish_ext_lang_initialization)
5280 (auto_load_ext_lang_scripts_for_objfile)
5281 (ext_lang_type_printers::ext_lang_type_printers)
5282 (apply_ext_lang_type_printers)
5283 (ext_lang_type_printers::~ext_lang_type_printers)
5284 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5285 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5286 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5287 (get_matching_xmethod_workers, ext_lang_colorize)
5288 (ext_lang_before_prompt): Update.
5289 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5290
5291 2020-05-08 Tom Tromey <tom@tromey.com>
5292
5293 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5294 overload.
5295 <swap_string, m_string>: Remove.
5296 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5297 Update.
5298 * stabsread.c (define_symbol, read_type): Update.
5299 * linespec.c (find_linespec_symbols): Update.
5300 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5301 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5302 * dbxread.c (read_dbx_symtab): Update.
5303 * cp-support.h (cp_canonicalize_string_full)
5304 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5305 Return unique_xmalloc_ptr.
5306 * cp-support.c (inspect_type): Update.
5307 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5308 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5309 Likewise.
5310 * c-typeprint.c (print_name_maybe_canonical): Update.
5311 * break-catch-throw.c (check_status_exception_catchpoint):
5312 Update.
5313
5314 2020-05-08 Tom de Vries <tdevries@suse.de>
5315
5316 * infrun.c (follow_fork): Copy current_line and current_symtab to
5317 child thread.
5318
5319 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5320
5321 * async-event.c (struct async_signal_handler, struct
5322 async_event_handler): Reformat, remove typedef.
5323
5324 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5325
5326 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5327 access thistype->main_type->dyn_prop_list directly.
5328
5329 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5330
5331 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5332 (remove_dyn_prop): Remove. Update all users to use
5333 type::remove_dyn_prop.
5334 * gdbtypes.c (remove_dyn_prop): Rename to...
5335 (type::remove_dyn_prop): ... this.
5336
5337 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5338
5339 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5340 (add_dyn_prop): Remove. Update all users to use
5341 type::add_dyn_prop.
5342 * gdbtypes.c (add_dyn_prop): Rename to...
5343 (type::add_dyn_prop): ... this.
5344
5345 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5346
5347 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5348 (get_dyn_prop): Remove. Update all users to use
5349 type::dyn_prop.
5350 * gdbtypes.c (get_dyn_prop): Rename to...
5351 (type::dyn_prop): ... this.
5352
5353 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5354
5355 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5356
5357 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5358
5359 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5360 instruction, skip it if it's there.
5361
5362 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5363
5364 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5365
5366 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5367
5368 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5369 * gdbtypes.c (recursive_dump_type): Remove use of
5370 TYPE_INCOMPLETE.
5371
5372 2020-05-03 Tom Tromey <tom@tromey.com>
5373
5374 * breakpoint.c (catch_command, tcatch_command): Remove.
5375 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5376 add_show_prefix_cmd.
5377 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5378 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5379 Remove.
5380 (add_internal_problem_command): Use add_basic_prefix_cmd,
5381 add_show_prefix_cmd.
5382 * mips-tdep.c (set_mipsfpu_command): Remove.
5383 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5384 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5385 (_initialize_index_cache): Use add_basic_prefix_cmd.
5386 * memattr.c (dummy_cmd): Remove.
5387 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5388 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5389 (_initialize_tui_win): Use add_basic_prefix_cmd,
5390 add_show_prefix_cmd.
5391 * cli/cli-logging.c (set_logging_command): Remove.
5392 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5393 add_show_prefix_cmd.
5394 (show_logging_command): Remove.
5395 * target.c (target_command): Remove.
5396 (add_target): Use add_basic_prefix_cmd.
5397
5398 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5399
5400 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5401
5402 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5403
5404 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5405 info_command.
5406
5407 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5408
5409 * nbsd-nat.c (nbsd_enable_proc_events)
5410 (nbsd_nat_target::post_startup_inferior): Add.
5411 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5412 (nbsd_nat_target::update_thread_list): Rewrite.
5413 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5414 "PTRACE_LWP_CREATE".
5415 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5416
5417 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5418
5419 * stack.c (_initialize_stack): Remove duplicated creation
5420 of "frame" command and "f" alias.
5421
5422 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5423
5424 PR gdb/18706
5425 * gdbtypes.c (check_typedef): Calculate size of array of
5426 stubbed type.
5427
5428 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5429
5430 PR gdb/15559
5431 * i386-tdep.c (i386_push_dummy_call): Call
5432 i386_thiscall_push_dummy_call.
5433 (i386_thiscall_push_dummy_call): New function.
5434 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5435 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5436 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5437
5438 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5439
5440 * gdbarch.sh (do_read): Add shellcheck disable directive for
5441 warning SC2162.
5442
5443 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5444
5445 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5446 "referenced but not assigned" warning.
5447
5448 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5449
5450 * gdbarch.sh: Remove code that sets fallbackdefault.
5451
5452 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5453
5454 * gdbarch.sh: Use shell operators && and || instead of
5455 -a and -o.
5456
5457 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5458
5459 * gdbarch.sh: Use $(...) instead of `...`.
5460
5461 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5462
5463 * gdbarch.sh: Use double quotes around variables.
5464
5465 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5466
5467 * gdbarch.sh: Use %s with printf, instead of variables in the
5468 format string.
5469
5470 2020-04-29 Tom Tromey <tromey@adacore.com>
5471
5472 PR ada/25875:
5473 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5474 type fields here.
5475 (read_enumeration_type): Call
5476 update_enumeration_type_from_children later. Update comments.
5477 (process_enumeration_scope): Don't create type fields.
5478
5479 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5480
5481 * nbsd-tdep.c: Include "xml-syscall.h".
5482 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5483
5484 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5485
5486 * nbsd-nat.c: Include "sys/wait.h".
5487 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5488 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5489 (nbsd_nat_target::remove_exec_catchpoint)
5490 (nbsd_nat_target::set_syscall_catchpoint): Add.
5491 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5492 (nbsd_nat_target::insert_exec_catchpoint)
5493 (nbsd_nat_target::remove_exec_catchpoint)
5494 (nbsd_nat_target::set_syscall_catchpoint): Add.
5495 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5496 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5497 `nbsd_get_syscall_number'.
5498
5499 2020-04-29 Tom Tromey <tom@tromey.com>
5500
5501 * stack.c (print_block_frame_labels): Remove.
5502
5503 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5504
5505 PR gdb/17320
5506 * ada-valprint.c (val_print_packed_array_elements): Move array
5507 end bracket to new line.
5508 (ada_val_print_string): Remove extra spaces before first array
5509 element.
5510 * c-valprint.c (c_value_print_array): Likewise.
5511 * m2-valprint.c (m2_print_array_contents): Likewise.
5512 (m2_value_print_inner): Likewise.
5513 * p-valprint.c (pascal_value_print_inner): Likewise.
5514 * valprint.c (generic_val_print_array): Likewise.
5515 (value_print_array_elements): Move first array element and array
5516 end bracket to new line.
5517
5518 2020-04-29 Tom de Vries <tdevries@suse.de>
5519
5520 PR symtab/25889
5521 * linespec.c (find_method): Fix ix calculation.
5522
5523 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5524
5525 * syscalls/update-netbsd.sh: New file.
5526 * syscalls/netbsd.xml: Regenerate.
5527 * data-directory/Makefile.in: Register `netbsd.xml' in
5528 `SYSCALLS_FILES'.
5529
5530 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5531
5532 * syscalls/update-freebsd.sh: Add double quotes.
5533
5534 2020-04-28 Tom Tromey <tom@tromey.com>
5535
5536 * NEWS: Update.
5537 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5538 (cmdpy_init): Allow class_tui.
5539
5540 2020-04-28 Mark Williams <mark@myosotissp.com>
5541
5542 PR gdb/24480
5543 * dwarf2read.c: Add missing assingments to list_in_scope when
5544 start_symtab was already called.
5545
5546 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5547
5548 PR gdb/25881
5549 * dwarf2/read.c (offset_map_type): Use
5550 gdb:hash_enum<sect_offset> as hash function.
5551
5552 2020-04-28 Tom de Vries <tdevries@suse.de>
5553
5554 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5555 with DW_AT_signature.
5556
5557 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5558
5559 * configure.ac: Remove check for fs_base/gs_base in
5560 user_regs_struct.
5561 * configure: Re-generate.
5562 * config.in: Re-generate.
5563 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5564 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5565 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5566
5567 2020-04-27 Luis Machado <luis.machado@linaro.org>
5568
5569 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5570 problematic inline frame unwinding situation.
5571 * frame.c (frame_id_computed_p): New function.
5572 * frame.h (frame_id_computed_p): New prototype.
5573
5574 2020-04-26 Tom Tromey <tom@tromey.com>
5575
5576 * command.h (enum command_class) <class_pseudo>: Remove.
5577
5578 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5579
5580 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5581 and whitespace.
5582
5583 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5584
5585 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5586 `PT_GET_PROCESS_STATE' block.
5587
5588 2020-04-24 Tom Tromey <tom@tromey.com>
5589
5590 * symtab.h (symbol_get_demangled_name): Don't declare.
5591 * symtab.c (symbol_get_demangled_name): Remove.
5592 (general_symbol_info::natural_name)
5593 (general_symbol_info::demangled_name): Update.
5594
5595 2020-04-24 Tom Tromey <tom@tromey.com>
5596
5597 PR rust/25025:
5598 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5599
5600 2020-04-24 Tom Tromey <tom@tromey.com>
5601
5602 PR symtab/12707:
5603 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5604 exists.
5605 (new_symbol): Likewise.
5606 * compile/compile-object-load.c (get_out_value_type): Use
5607 symbol_matches_search_name.
5608
5609 2020-04-24 Tom Tromey <tom@tromey.com>
5610
5611 * dwarf2/read.c (add_partial_symbol): Do not call
5612 compute_and_set_names.
5613
5614 2020-04-24 Tom Tromey <tom@tromey.com>
5615
5616 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5617 overload.
5618
5619 2020-04-24 Tom Tromey <tom@tromey.com>
5620
5621 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5622 (add_psymbol_to_list): New overload. Make old overload call new
5623 one.
5624 * psympriv.h (add_psymbol_to_list): New overload.
5625
5626 2020-04-24 Tom Tromey <tom@tromey.com>
5627
5628 * dwarf2/read.c (partial_die_info::read) <case
5629 DW_AT_linkage_name>: Use value_as_string.
5630 (dwarf2_string_attr): Use value_as_string.
5631 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5632 method.
5633 * dwarf2/attribute.c (attribute::value_as_string): New method.
5634
5635 2020-04-24 Tom Tromey <tom@tromey.com>
5636
5637 * symtab.c (general_symbol_info::natural_name)
5638 (general_symbol_info::demangled_name): Check for language_rust.
5639
5640 2020-04-24 Tom Tromey <tom@tromey.com>
5641
5642 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5643 (dwarf2_physname): ... from here.
5644 (partial_die_info::read): Add Rust "{" hack.
5645
5646 2020-04-24 Tom Tromey <tom@tromey.com>
5647
5648 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5649 method.
5650 (symbol_set_demangled_name): Don't declare.
5651 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5652 symbol_set_demangled_name.
5653 (general_symbol_info::set_language)
5654 (general_symbol_info::compute_and_set_names): Update.
5655 * minsyms.c (minimal_symbol_reader::install): Update.
5656 * dwarf2/read.c (new_symbol): Update.
5657
5658 2020-04-24 Tom Tromey <tromey@adacore.com>
5659
5660 PR python/23662:
5661 * python/py-type.c (convert_field): Handle
5662 FIELD_LOC_KIND_DWARF_BLOCK.
5663 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5664 (typy_get_dynamic): Nw function.
5665 (type_object_getset): Add "dynamic".
5666 * NEWS: Add entry.
5667
5668 2020-04-24 Tom Tromey <tromey@adacore.com>
5669
5670 * ada-typeprint.c (print_choices, print_variant_part)
5671 (print_record_field_types_dynamic): New functions.
5672 (print_record_field_types): Use print_record_field_types_dynamic.
5673
5674 2020-04-24 Tom Tromey <tromey@adacore.com>
5675
5676 * dwarf2/read.c (handle_data_member_location): New overload.
5677 (dwarf2_add_field): Use it.
5678 (decode_locdesc): Add "computed" parameter. Update comment.
5679 * gdbtypes.c (is_dynamic_type_internal): Also look for
5680 FIELD_LOC_KIND_DWARF_BLOCK.
5681 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5682 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5683 virtual base classes.
5684 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5685 FIELD_LOC_KIND_DWARF_BLOCK.
5686
5687 2020-04-24 Tom Tromey <tromey@adacore.com>
5688
5689 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5690 * gdbtypes.c (is_dynamic_type_internal): Check
5691 TYPE_HAS_DYNAMIC_LENGTH.
5692 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5693 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5694 New macros.
5695 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5696 constant.
5697
5698 2020-04-24 Tom Tromey <tromey@adacore.com>
5699
5700 * dwarf2/read.c (struct variant_field): Rewrite.
5701 (struct variant_part_builder): New.
5702 (struct nextfield): Remove "variant" field. Add "offset".
5703 (struct field_info): Add "current_variant_part" and
5704 "variant_parts".
5705 (alloc_discriminant_info): Remove.
5706 (alloc_rust_variant): New function.
5707 (quirk_rust_enum): Update.
5708 (dwarf2_add_field): Set "offset" member. Don't handle
5709 DW_TAG_variant_part.
5710 (offset_map_type): New typedef.
5711 (convert_variant_range, create_one_variant)
5712 (create_one_variant_part, create_variant_parts)
5713 (add_variant_property): New functions.
5714 (dwarf2_attach_fields_to_type): Call add_variant_property.
5715 (read_structure_type): Don't handle DW_TAG_variant_part.
5716 (handle_variant_part, handle_variant): New functions.
5717 (handle_struct_member_die): Use them.
5718 (process_structure_scope): Don't handle variant parts.
5719 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5720 (struct discriminant_info): Remove.
5721 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5722 (struct main_type) <flag_discriminated_union>: Remove.
5723 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5724 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5725 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5726 Update.
5727 * valops.c (value_union_variant): Remove.
5728 * value.h (value_union_variant): Don't declare.
5729
5730 2020-04-24 Tom Tromey <tromey@adacore.com>
5731
5732 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5733 (ada_value_primitive_packed_val): Update.
5734 * ada-valprint.c (ada_value_print_1): Update.
5735 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5736 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5737 just an address. Use evaluate_for_locexpr_baton.
5738 (dwarf2_evaluate_property): Update.
5739 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5740 array_view.
5741 * findvar.c (default_read_var_value): Update.
5742 * gdbtypes.c (compute_variant_fields_inner)
5743 (resolve_dynamic_type_internal): Update.
5744 (resolve_dynamic_type): Change type of valaddr parameter.
5745 * gdbtypes.h (resolve_dynamic_type): Update.
5746 * valarith.c (value_subscripted_rvalue): Update.
5747 * value.c (value_from_contents_and_address): Update.
5748
5749 2020-04-24 Tom Tromey <tromey@adacore.com>
5750
5751 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5752 "push_initial_value" parameter.
5753 (dwarf2_evaluate_property): Likewise.
5754 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5755
5756 2020-04-24 Tom Tromey <tromey@adacore.com>
5757
5758 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5759 (variant::matches, compute_variant_fields_recurse)
5760 (compute_variant_fields_inner, compute_variant_fields): New
5761 functions.
5762 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5763 Use resolved_type after type is made.
5764 (operator==): Add new cases.
5765 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5766 (struct discriminant_range, struct variant, struct variant_part):
5767 New.
5768 (union dynamic_prop_data) <variant_parts, original_type>: New
5769 members.
5770 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5771 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5772 constants.
5773 * value.c (unpack_bits_as_long): Now public.
5774 * value.h (unpack_bits_as_long): Declare.
5775
5776 2020-04-24 Tom Tromey <tromey@adacore.com>
5777
5778 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5779 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5780
5781 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5782
5783 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5784
5785 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5786
5787 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5788 (remove_fork_catchpoint, post_startup_inferior)
5789 (post_attach): Move...
5790 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5791 (remove_fork_catchpoint, post_startup_inferior)
5792 (post_attach): ...here.
5793 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5794 (remove_fork_catchpoint, post_startup_inferior)
5795 (post_attach): Move...
5796 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5797 (remove_fork_catchpoint, post_startup_inferior)
5798 (post_attach): ...here.
5799
5800 2020-04-24 Tom Tromey <tromey@adacore.com>
5801
5802 * nat/windows-nat.h (struct windows_thread_info)
5803 <pc_adjusted>: New member.
5804 * windows-nat.c (windows_fetch_one_register): Check
5805 pc_adjusted.
5806 (windows_nat_target::get_windows_debug_event)
5807 (windows_nat_target::wait): Set pc_adjusted.
5808
5809 2020-04-24 Tom de Vries <tdevries@suse.de>
5810
5811 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5812 Run gdb-add-index inside temp dir.
5813
5814 2020-04-23 Tom Tromey <tromey@adacore.com>
5815
5816 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5817 in loop.
5818
5819 2020-04-23 Luis Machado <luis.machado@linaro.org>
5820
5821 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5822 get_frame_register instead of gdbarch_unwind_pc.
5823
5824 2020-04-23 Tom de Vries <tdevries@suse.de>
5825
5826 * symtab.c (lookup_global_symbol): Prefer def over decl.
5827
5828 2020-04-23 Tom de Vries <tdevries@suse.de>
5829
5830 PR symtab/25807
5831 * block.c (best_symbol, better_symbol): Promote to external.
5832 * block.h (best_symbol, better_symbol): Declare.
5833 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5834 decl.
5835
5836 2020-04-23 Tom Tromey <tromey@adacore.com>
5837
5838 PR ada/25837:
5839 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5840 "const char *", not a "const std::string &".
5841 <name_and_matcher::operator==>: Update.
5842 * unittests/lookup_name_info-selftests.c: Change type of
5843 "result".
5844
5845 2020-04-23 Tom Tromey <tom@tromey.com>
5846
5847 * inferior.h (iterate_over_inferiors): Don't declare.
5848 * inferior.c (iterate_over_inferiors): Remove.
5849 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5850 Remove.
5851 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5852 use iterate_over_inferiors.
5853 (darwin_resume_inferior_it)
5854 (struct resume_inferior_threads_param)
5855 (darwin_resume_inferior_threads_it): Remove.
5856 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5857
5858 2020-04-23 Tom de Vries <tdevries@suse.de>
5859
5860 * blockframe.c (find_pc_partial_function): Use
5861 find_pc_sect_compunit_symtab rather than
5862 objfile->sf->qf->find_pc_sect_compunit_symtab.
5863
5864 2020-04-22 Tom de Vries <tdevries@suse.de>
5865
5866 PR symtab/25764
5867 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5868 in psymtabs.
5869
5870 2020-04-22 Tom de Vries <tdevries@suse.de>
5871
5872 PR symtab/25801
5873 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5874 symtabs.
5875
5876 2020-04-22 Tom de Vries <tdevries@suse.de>
5877
5878 PR symtab/25700
5879 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5880 CU if already created.
5881
5882 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5883
5884 * infrun.c (displaced_step_fixup): Switch to the event_thread
5885 before calling displaced_step_restore, not after.
5886
5887 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5888
5889 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5890 its inferior is not recorded by us.
5891 (record_btrace_target_open): Replace call to
5892 all_non_exited_threads () with call to current_inferior
5893 ()->non_exited_threads ().
5894 (record_btrace_target::stop_recording): Likewise.
5895 (record_btrace_target::close): Likewise.
5896 (record_btrace_target::wait): Likewise.
5897 (record_btrace_target::record_stop_replaying): Likewise.
5898
5899 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5900
5901 * btrace.c (btrace_enable): Throw an error on double enables and
5902 when enabling recording fails.
5903 (btrace_disable): Throw an error if the thread is not recorded.
5904
5905 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5906
5907 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5908 request if we do not have a thread_info.
5909
5910 2020-04-21 Tom de Vries <tdevries@suse.de>
5911
5912 PR gdb/25471
5913 * thread.c
5914 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5915 exception in get_frame_id.
5916
5917 2020-04-20 Tom Tromey <tromey@adacore.com>
5918
5919 * python/python.c (struct gdbpy_event): Mark move constructor as
5920 noexcept.
5921 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5922 constructor as noexcept.
5923 * completer.h (struct completion_result): Mark move constructor as
5924 noexcept.
5925 * completer.c (completion_result::completion_result): Use
5926 initialization style. Don't call reset_match_list.
5927
5928 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5929
5930 * MAINTAINERS (Write After Approval): Add myself.
5931
5932 2020-04-18 Tom Tromey <tom@tromey.com>
5933
5934 * windows-tdep.c (init_w32_command_list)
5935 (w32_prefix_command_valid): Restore.
5936 (_initialize_windows_tdep): Call init_w32_command_list.
5937
5938 2020-04-18 Tom Tromey <tom@tromey.com>
5939
5940 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5941 * value.c (value_fn_field): Update.
5942 * valops.c (find_function_in_inferior)
5943 (value_allocate_space_in_inferior): Update.
5944 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5945 Update.
5946 * tui/tui-source.c (tui_source_window::set_contents): Update.
5947 * symtab.c (lookup_global_or_static_symbol)
5948 (find_function_start_sal_1, skip_prologue_sal)
5949 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5950 * symmisc.c (dump_msymbols, dump_symtab_1)
5951 (maintenance_print_one_line_table): Update.
5952 * symfile.c (init_entry_point_info, section_is_mapped)
5953 (list_overlays_command, simple_read_overlay_table)
5954 (simple_overlay_update_1): Update.
5955 * stap-probe.c (handle_stap_probe): Update.
5956 * stabsread.c (dbx_init_float_type, define_symbol)
5957 (read_one_struct_field, read_enum_type, read_range_type): Update.
5958 * source.c (info_line_command): Update.
5959 * python/python.c (gdbpy_source_objfile_script)
5960 (gdbpy_execute_objfile_script): Update.
5961 * python/py-type.c (save_objfile_types): Update.
5962 * python/py-objfile.c (py_free_objfile): Update.
5963 * python/py-inferior.c (python_new_objfile): Update.
5964 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5965 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5966 (maintenance_check_psymtabs): Update.
5967 * printcmd.c (info_address_command): Update.
5968 * objfiles.h (struct objfile) <arch>: New method, from
5969 get_objfile_arch.
5970 (get_objfile_arch): Don't declare.
5971 * objfiles.c (get_objfile_arch): Remove.
5972 (filter_overlapping_sections): Update.
5973 * minsyms.c (msymbol_is_function): Update.
5974 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5975 (output_nondebug_symbol): Update.
5976 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5977 (mdebug_expand_psymtab): Update.
5978 * machoread.c (macho_add_oso_symfile): Update.
5979 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5980 Update.
5981 * linux-fork.c (checkpoint_command): Update.
5982 * linespec.c (convert_linespec_to_sals): Update.
5983 * jit.c (finalize_symtab): Update.
5984 * infrun.c (insert_exception_resume_from_probe): Update.
5985 * ia64-tdep.c (ia64_find_unwind_table): Update.
5986 * hppa-tdep.c (internalize_unwinds): Update.
5987 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5988 Update.
5989 * gcore.c (call_target_sbrk): Update.
5990 * elfread.c (record_minimal_symbol, elf_symtab_read)
5991 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5992 (elf_gnu_ifunc_resolve_by_got): Update.
5993 * dwarf2/read.c (create_addrmap_from_index)
5994 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5995 (read_debug_names_from_section)
5996 (process_psymtab_comp_unit_reader, add_partial_symbol)
5997 (add_partial_subprogram, process_full_comp_unit)
5998 (read_file_scope, read_func_scope, read_lexical_block_scope)
5999 (read_call_site_scope, dwarf2_ranges_read)
6000 (dwarf2_record_block_ranges, dwarf2_add_field)
6001 (mark_common_block_symbol_computed, read_tag_pointer_type)
6002 (read_tag_string_type, dwarf2_init_float_type)
6003 (dwarf2_init_complex_target_type, read_base_type)
6004 (partial_die_info::read, partial_die_info::read)
6005 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6006 (dwarf2_fetch_die_loc_sect_off): Update.
6007 * dwarf2/loc.c (dwarf2_find_location_expression)
6008 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6009 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6010 (dwarf2_loc_desc_get_symbol_read_needs)
6011 (locexpr_describe_location_piece, locexpr_describe_location_1)
6012 (loclist_describe_location): Update.
6013 * dwarf2/index-write.c (write_debug_names): Update.
6014 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6015 * dtrace-probe.c (dtrace_process_dof): Update.
6016 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6017 (process_one_symbol): Update.
6018 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6019 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6020 (coff_read_enum_type): Update.
6021 * cli/cli-cmds.c (edit_command, list_command): Update.
6022 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6023 * breakpoint.c (create_overlay_event_breakpoint)
6024 (create_longjmp_master_breakpoint)
6025 (create_std_terminate_master_breakpoint)
6026 (create_exception_master_breakpoint, get_sal_arch): Update.
6027 * block.c (block_gdbarch): Update.
6028 * annotate.c (annotate_source_line): Update.
6029
6030 2020-04-17 Tom Tromey <tromey@adacore.com>
6031
6032 * auto-load.c (show_auto_load_cmd): Remove.
6033 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6034 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6035 (maintenance_print_arc_command): Remove.
6036 * tui/tui-win.c (tui_command): Remove.
6037 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6038 * tui/tui-layout.c (tui_layout_command): Remove.
6039 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6040 * python/python.c (user_set_python, user_show_python): Remove.
6041 (_initialize_python): Use add_basic_prefix_cmd,
6042 add_show_prefix_cmd.
6043 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6044 (install_gdb_commands): Use add_basic_prefix_cmd,
6045 add_show_prefix_cmd.
6046 (info_guile_command): Remove.
6047 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6048 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6049 add_show_prefix_cmd.
6050 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6051 Remove do_set and do_show parameters.
6052 * cli/cli-style.c (set_style, show_style): Remove.
6053 (_initialize_cli_style): Use add_basic_prefix_cmd,
6054 add_show_prefix_cmd.
6055 (cli_style_option::add_setshow_commands): Remove do_set and
6056 do_show parameters.
6057 (cli_style_option::add_setshow_commands): Use
6058 add_basic_prefix_cmd, add_show_prefix_cmd.
6059 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6060 (set_style_name): Remove.
6061 * cli/cli-dump.c (dump_command, append_command): Remove.
6062 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6063 (tekhex_dump_command, binary_dump_command)
6064 (binary_append_command): Remove.
6065 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6066 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6067 (init_w32_command_list): Remove; move into ...
6068 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6069 * valprint.c (set_print, show_print, set_print_raw)
6070 (show_print_raw): Remove.
6071 (_initialize_valprint): Use add_basic_prefix_cmd,
6072 add_show_prefix_cmd.
6073 * typeprint.c (set_print_type, show_print_type): Remove.
6074 (_initialize_typeprint): Use add_basic_prefix_cmd,
6075 add_show_prefix_cmd.
6076 * record.c (set_record_command, show_record_command): Remove.
6077 (_initialize_record): Use add_basic_prefix_cmd,
6078 add_show_prefix_cmd.
6079 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6080 add_show_prefix_cmd.
6081 (info_command, show_command, set_debug, show_debug): Remove.
6082 * top.h (set_history, show_history): Don't declare.
6083 * top.c (set_history, show_history): Remove.
6084 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6085 (unset_tdesc_cmd): Remove.
6086 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6087 add_show_prefix_cmd.
6088 * symtab.c (info_module_command): Remove.
6089 (_initialize_symtab): Use add_basic_prefix_cmd.
6090 * symfile.c (overlay_command): Remove.
6091 (_initialize_symfile): Use add_basic_prefix_cmd.
6092 * sparc64-tdep.c (info_adi_command): Remove.
6093 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6094 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6095 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6096 add_show_prefix_cmd.
6097 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6098 (_initialize_serial): Use add_basic_prefix_cmd,
6099 add_show_prefix_cmd.
6100 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6101 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6102 add_show_prefix_cmd.
6103 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6104 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6105 add_show_prefix_cmd.
6106 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6107 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6108 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6109 add_show_prefix_cmd.
6110 * remote.c (remote_command, set_remote_cmd): Remove.
6111 (_initialize_remote): Use add_basic_prefix_cmd.
6112 * record-full.c (set_record_full_command)
6113 (show_record_full_command): Remove.
6114 (_initialize_record_full): Use add_basic_prefix_cmd,
6115 add_show_prefix_cmd.
6116 * record-btrace.c (cmd_set_record_btrace)
6117 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6118 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6119 (cmd_show_record_btrace_pt): Remove.
6120 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6121 add_show_prefix_cmd.
6122 * ravenscar-thread.c (set_ravenscar_command)
6123 (show_ravenscar_command): Remove.
6124 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6125 add_show_prefix_cmd.
6126 * mips-tdep.c (show_mips_command, set_mips_command)
6127 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6128 add_show_prefix_cmd.
6129 * maint.c (maintenance_command, maintenance_info_command)
6130 (maintenance_check_command, maintenance_print_command)
6131 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6132 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6133 add_show_prefix_cmd.
6134 (show_per_command_cmd): Remove.
6135 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6136 Remove.
6137 (maintenance_show_test_settings_cmd): Remove.
6138 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6139 add_show_prefix_cmd.
6140 * maint-test-options.c (maintenance_test_options_command):
6141 Remove.
6142 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6143 * macrocmd.c (macro_command): Remove
6144 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6145 * language.c (set_check, show_check): Remove.
6146 (_initialize_language): Use add_basic_prefix_cmd,
6147 add_show_prefix_cmd.
6148 * infcmd.c (unset_command): Remove.
6149 (_initialize_infcmd): Use add_basic_prefix_cmd.
6150 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6151 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6152 add_show_prefix_cmd.
6153 * go32-nat.c (go32_info_dos_command): Remove.
6154 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6155 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6156 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6157 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6158 (_initialize_frame): Use add_basic_prefix_cmd,
6159 add_show_prefix_cmd.
6160 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6161 (_initialize_dcache): Use add_basic_prefix_cmd,
6162 add_show_prefix_cmd.
6163 * cp-support.c (maint_cplus_command): Remove.
6164 (_initialize_cp_support): Use add_basic_prefix_cmd.
6165 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6166 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6167 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6168 add_basic_prefix_cmd, add_show_prefix_cmd.
6169 * breakpoint.c (save_command): Remove.
6170 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6171 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6172 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6173 add_show_prefix_cmd.
6174 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6175 (set_ada_command, show_ada_command): Remove.
6176 (_initialize_ada_language): Use add_basic_prefix_cmd,
6177 add_show_prefix_cmd.
6178 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6179
6180 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6181
6182 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6183 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6184
6185 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6186
6187 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6188 warning messages.
6189
6190 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6191
6192 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6193 import table is not at beginning of .idata section.
6194
6195 2020-04-16 Pedro Alves <palves@redhat.com>
6196
6197 * inferior.c (delete_inferior): Use delete operator directly
6198 instead of delete_program_space.
6199 * progspace.c (add_program_space): New, factored out from
6200 program_space::program_space.
6201 (remove_program_space): New, factored out from
6202 delete_program_space.
6203 (program_space::program_space): Remove intro comment. Rewrite.
6204 (program_space::~program_space): Remove intro comment. Call
6205 remove_program_space.
6206 (delete_program_space): Delete.
6207 * progspace.h (program_space::program_space): Make explicit. Move
6208 intro comment here, adjusted.
6209 (program_space::~program_space): Move intro comment here,
6210 adjusted.
6211 (delete_program_space): Remove.
6212
6213 2020-04-16 Tom Tromey <tromey@adacore.com>
6214
6215 * windows-nat.c (windows_nat::handle_access_violation): New
6216 function.
6217 * nat/windows-nat.h (handle_access_violation): Declare.
6218 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6219 windows-nat.c. Call handle_access_violation.
6220
6221 2020-04-16 Tom de Vries <tdevries@suse.de>
6222
6223 PR symtab/25791
6224 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6225 CUs without psymtab.
6226
6227 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6228
6229 * python/python.c (do_start_initialization): Don't call
6230 PyEval_InitThreads for Python 3.9 and beyond.
6231
6232 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6233
6234 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6235 thread functions.
6236 (obsd_nat_target::wait): Likewise.
6237
6238 2020-04-15 Tom Tromey <tromey@adacore.com>
6239
6240 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6241 (DEBUG_EXCEPT): Use debug_printf.
6242
6243 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6244
6245 * completer.c (class completion_tracker::completion_hash_entry)
6246 <hash_name>: New member function.
6247 (completion_tracker::discard_completions): New callback to hash a
6248 completion_hash_entry, pass this to htab_create_alloc.
6249
6250 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6251
6252 * windows-nat.c (windows_make_so): Warn rather than stopping with
6253 an error if realpath() fails.
6254
6255 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6256
6257 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6258 (nbsd_nat_target::info_proc): Add do_status.
6259
6260 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6261 Tom de Vries <tdevries@suse.de>
6262
6263 PR symtab/25718
6264 * psympriv.h (struct partial_symtab::read_symtab)
6265 (struct partial_symtab::expand_psymtab)
6266 (struct partial_symtab::read_dependencies): Update comments.
6267 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6268 read_symtab for includer.
6269 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6270 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6271 (struct dwarf2_include_psymtab::m_readin): Remove.
6272 (struct dwarf2_include_psymtab::includer): New member function.
6273 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6274
6275 2020-04-14 Tom de Vries <tdevries@suse.de>
6276
6277 PR symtab/25720
6278 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6279 with NULL symbol_matcher and lookup_name.
6280 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6281 and lookup_name.
6282 * dwarf2/read.c (dw2_expand_symtabs_matching)
6283 (dw2_debug_names_expand_symtabs_matching): Same.
6284 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6285 Make lookup_name a pointer. Update comment.
6286 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6287 lookup_name being a pointer.
6288 * symfile.c (expand_symtabs_matching): Same.
6289 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6290 * linespec.c (iterate_over_all_matching_symtabs): Same.
6291
6292 2020-04-13 Tom Tromey <tom@tromey.com>
6293
6294 * run-on-main-thread.c: Update include.
6295 * unittests/main-thread-selftests.c: Update include.
6296 * tui/tui-win.c: Update include.
6297 * tui/tui-io.c: Update include.
6298 * tui/tui-interp.c: Update include.
6299 * tui/tui-hooks.c: Update include.
6300 * top.h: Update include.
6301 * top.c: Update include.
6302 * ser-base.c: Update include.
6303 * remote.c: Update include.
6304 * remote-notif.c: Update include.
6305 * remote-fileio.c: Update include.
6306 * record-full.c: Update include.
6307 * record-btrace.c: Update include.
6308 * python/python.c: Update include.
6309 * posix-hdep.c: Update include.
6310 * mingw-hdep.c: Update include.
6311 * mi/mi-main.c: Update include.
6312 * mi/mi-interp.c: Update include.
6313 * main.c: Update include.
6314 * linux-nat.c: Update include.
6315 * interps.c: Update include.
6316 * infrun.c: Update include.
6317 * inf-loop.c: Update include.
6318 * event-top.c: Update include.
6319 * event-loop.c: Move to ../gdbsupport/.
6320 * event-loop.h: Move to ../gdbsupport/.
6321 * async-event.h: Update include.
6322 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6323
6324 2020-04-13 Tom Tromey <tom@tromey.com>
6325
6326 * tui/tui-win.c: Include async-event.h.
6327 * remote.c: Include async-event.h.
6328 * remote-notif.c: Include async-event.h.
6329 * record-full.c: Include async-event.h.
6330 * record-btrace.c: Include async-event.h.
6331 * infrun.c: Include async-event.h.
6332 * event-top.c: Include async-event.h.
6333 * event-loop.h: Move some declarations to async-event.h.
6334 * event-loop.c: Don't include ser-event.h or top.h. Move some
6335 code to async-event.c.
6336 * async-event.h: New file.
6337 * async-event.c: New file.
6338 * Makefile.in (COMMON_SFILES): Add async-event.c.
6339 (HFILES_NO_SRCDIR): Add async-event.h.
6340
6341 2020-04-13 Tom Tromey <tom@tromey.com>
6342
6343 * utils.c (flush_streams): New function.
6344 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6345
6346 2020-04-13 Tom Tromey <tom@tromey.com>
6347
6348 * event-loop.c (handle_file_event): Use warning, not
6349 printf_unfiltered.
6350
6351 2020-04-13 Tom Tromey <tom@tromey.com>
6352
6353 * event-loop.c: Include <chrono>.
6354
6355 2020-04-13 Tom Tromey <tom@tromey.com>
6356
6357 * gdb_select.h: Move to ../gdbsupport/.
6358 * event-loop.c: Update include path.
6359 * top.c: Update include path.
6360 * ser-base.c: Update include path.
6361 * ui-file.c: Update include path.
6362 * ser-tcp.c: Update include path.
6363 * guile/scm-ports.c: Update include path.
6364 * posix-hdep.c: Update include path.
6365 * ser-unix.c: Update include path.
6366 * gdb_usleep.c: Update include path.
6367 * mingw-hdep.c: Update include path.
6368 * inflow.c: Update include path.
6369 * infrun.c: Update include path.
6370 * event-top.c: Update include path.
6371
6372 2020-04-13 Tom Tromey <tom@tromey.com>
6373
6374 * configure: Rebuild.
6375 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6376
6377 2020-04-13 Tom Tromey <tom@tromey.com>
6378
6379 * event-loop.h (start_event_loop): Don't declare.
6380 * event-loop.c (start_event_loop): Move...
6381 * main.c (start_event_loop): ...here. Now static.
6382
6383 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6384
6385 * MAINTAINERS: Update my email address.
6386
6387 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6388
6389 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6390 IP_ALL.
6391
6392 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6393
6394 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6395 (nbsd_nat_target::info_proc): Add do_cmdline.
6396
6397 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6398
6399 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6400 (nbsd_nat_target::info_proc): Add do_cwd.
6401
6402 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6403
6404 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6405
6406 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6407
6408 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6409 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6410 (nbsd_nat_target::info_proc): New functions.
6411 * nbsd-nat.c (kinfo_get_vmmap): New function.
6412 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6413 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6414 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6415 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6416 functions.
6417 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6418 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6419 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6420 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6421 (KINFO_VME_FLAG_GROWS_DOWN): New.
6422
6423 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6424
6425 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6426 bit shift.
6427
6428 2020-04-10 Tom Tromey <tromey@adacore.com>
6429
6430 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6431
6432 2020-04-10 Tom Tromey <tromey@adacore.com>
6433
6434 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6435 separate debug files.
6436
6437 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6438
6439 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6440 Move to...
6441 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6442 ... here.
6443 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6444 Check for STATUS_WX86_BREAKPOINT.
6445 (windows_nat_target::wait): Same.
6446
6447 2020-04-10 Tom de Vries <tdevries@suse.de>
6448
6449 PR cli/25808
6450 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6451
6452 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6453
6454 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6455 (Write After Approval): Remove Tom de Vries.
6456
6457 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6458
6459 revert partially:
6460 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6461
6462 * buildsym.c (record_line): Fix undefined behavior and preserve
6463 lines at eof.
6464
6465 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6466
6467 * auxv.h (svr4_auxv_parse): New.
6468 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6469 and generic_auxv_parse.
6470 (svr4_auxv_parse): Add.
6471 * obsd-tdep.c: Include "auxv.h".
6472 (obsd_auxv_parse): Remove.
6473 (obsd_init_abi): Remove comment.
6474 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6475 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6476 * nbsd-tdep.c: Include "auxv.h".
6477 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6478
6479 2020-04-08 Tom Tromey <tromey@adacore.com>
6480
6481 * nat/windows-nat.h (last_wait_event): Don't declare.
6482 (wait_for_debug_event): Update comment.
6483 * nat/windows-nat.c (last_wait_event): Now static.
6484
6485 2020-04-08 Tom Tromey <tromey@adacore.com>
6486
6487 * windows-nat.c (wait_for_debug_event): Move to
6488 nat/windows-nat.c.
6489 * nat/windows-nat.h (wait_for_debug_event): Declare.
6490 * nat/windows-nat.c (wait_for_debug_event): Move from
6491 windows-nat.c. No longer static.
6492
6493 2020-04-08 Tom Tromey <tromey@adacore.com>
6494
6495 * windows-nat.c (get_windows_debug_event): Use
6496 fetch_pending_stop.
6497 * nat/windows-nat.h (fetch_pending_stop): Declare.
6498 * nat/windows-nat.c (fetch_pending_stop): New function.
6499
6500 2020-04-08 Tom Tromey <tromey@adacore.com>
6501
6502 * windows-nat.c (windows_continue): Use matching_pending_stop and
6503 continue_last_debug_event.
6504 * nat/windows-nat.h (matching_pending_stop)
6505 (continue_last_debug_event): Declare.
6506 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6507 (matching_pending_stop, continue_last_debug_event): New
6508 functions.
6509
6510 2020-04-08 Tom Tromey <tromey@adacore.com>
6511
6512 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6513 (handle_exception_result): Move to nat/windows-nat.h.
6514 (DEBUG_EXCEPTION_SIMPLE): Remove.
6515 (windows_nat::handle_ms_vc_exception): New function.
6516 (handle_exception): Move to nat/windows-nat.c.
6517 (get_windows_debug_event): Update.
6518 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6519 nat/windows-nat.c.
6520 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6521 (handle_exception_result): Move from windows-nat.c.
6522 (handle_exception): Declare.
6523 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6524 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6525 windows-nat.c.
6526
6527 2020-04-08 Tom Tromey <tromey@adacore.com>
6528
6529 * windows-nat.c (exception_count, event_count): Remove.
6530 (handle_exception, get_windows_debug_event)
6531 (do_initial_windows_stuff): Update.
6532
6533 2020-04-08 Tom Tromey <tromey@adacore.com>
6534
6535 * windows-nat.c (windows_nat::handle_load_dll)
6536 (windows_nat::handle_unload_dll): Rename. No longer static.
6537 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6538 Declare.
6539
6540 2020-04-08 Tom Tromey <tromey@adacore.com>
6541
6542 * complaints.h (stop_whining): Declare at top-level.
6543 (complaint): Don't declare stop_whining.
6544
6545 2020-04-08 Tom Tromey <tromey@adacore.com>
6546
6547 * windows-nat.c (windows_nat::handle_output_debug_string):
6548 Rename. No longer static.
6549 * nat/windows-nat.h (handle_output_debug_string): Declare.
6550
6551 2020-04-08 Tom Tromey <tromey@adacore.com>
6552
6553 * windows-nat.c (current_process_handle, current_process_id)
6554 (main_thread_id, last_sig, current_event, last_wait_event)
6555 (current_windows_thread, desired_stop_thread_id, pending_stops)
6556 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6557 (display_selectors, fake_create_process)
6558 (get_windows_debug_event): Update.
6559 * nat/windows-nat.h (current_process_handle, current_process_id)
6560 (main_thread_id, last_sig, current_event, last_wait_event)
6561 (current_windows_thread, desired_stop_thread_id, pending_stops)
6562 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6563 * nat/windows-nat.c (current_process_handle, current_process_id)
6564 (main_thread_id, last_sig, current_event, last_wait_event)
6565 (current_windows_thread, desired_stop_thread_id, pending_stops)
6566 (siginfo_er): New globals. Move from windows-nat.c.
6567
6568 2020-04-08 Tom Tromey <tromey@adacore.com>
6569
6570 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6571 (handle_load_dll): Update.
6572 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6573
6574 2020-04-08 Tom Tromey <tromey@adacore.com>
6575
6576 * windows-nat.c (enum thread_disposition_type): Move to
6577 nat/windows-nat.h.
6578 (windows_nat::thread_rec): Rename from thread_rec. No longer
6579 static.
6580 (windows_add_thread, windows_nat_target::fetch_registers)
6581 (windows_nat_target::store_registers, handle_exception)
6582 (windows_nat_target::resume, get_windows_debug_event)
6583 (windows_nat_target::get_tib_address)
6584 (windows_nat_target::thread_name)
6585 (windows_nat_target::thread_alive): Update.
6586 * nat/windows-nat.h (enum thread_disposition_type): Move from
6587 windows-nat.c.
6588 (thread_rec): Declare.
6589
6590 2020-04-08 Tom Tromey <tromey@adacore.com>
6591
6592 * windows-nat.c: Add "using namespace".
6593 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6594 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6595
6596 2020-04-08 Tom Tromey <tromey@adacore.com>
6597
6598 * nat/windows-nat.h (struct windows_thread_info): Declare
6599 destructor.
6600 * nat/windows-nat.c (~windows_thread_info): New.
6601
6602 2020-04-08 Tom Tromey <tromey@adacore.com>
6603
6604 PR gdb/22992
6605 * windows-nat.c (current_event): Update comment.
6606 (last_wait_event, desired_stop_thread_id): New globals.
6607 (struct pending_stop): New.
6608 (pending_stops): New global.
6609 (windows_nat_target) <stopped_by_sw_breakpoint>
6610 <supports_stopped_by_sw_breakpoint>: New methods.
6611 (windows_fetch_one_register): Add assertions. Adjust PC.
6612 (windows_continue): Handle pending stops. Suspend other threads
6613 when stepping. Use last_wait_event
6614 (wait_for_debug_event): New function.
6615 (get_windows_debug_event): Use wait_for_debug_event. Handle
6616 pending stops. Queue spurious stops.
6617 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6618 (windows_nat_target::kill): Use wait_for_debug_event.
6619 * nat/windows-nat.h (struct windows_thread_info)
6620 <stopped_at_software_breakpoint>: New field.
6621 * nat/windows-nat.c (windows_thread_info::resume): Clear
6622 stopped_at_software_breakpoint.
6623
6624 2020-04-08 Tom Tromey <tromey@adacore.com>
6625
6626 * windows-nat.c (enum thread_disposition_type): New.
6627 (thread_rec): Replace "get_context" parameter with "disposition";
6628 change type.
6629 (windows_add_thread, windows_nat_target::fetch_registers)
6630 (windows_nat_target::store_registers, handle_exception)
6631 (windows_nat_target::resume, get_windows_debug_event)
6632 (windows_nat_target::get_tib_address)
6633 (windows_nat_target::thread_name)
6634 (windows_nat_target::thread_alive): Update.
6635
6636 2020-04-08 Tom Tromey <tromey@adacore.com>
6637
6638 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6639 (windows_continue): Use windows_continue::resume.
6640 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6641 resume>: Declare new methods.
6642 * nat/windows-nat.c: New file.
6643 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6644
6645 2020-04-08 Tom Tromey <tromey@adacore.com>
6646
6647 * windows-nat.c (windows_add_thread, windows_delete_thread)
6648 (windows_nat_target::fetch_registers)
6649 (windows_nat_target::store_registers, fake_create_process)
6650 (windows_nat_target::resume, windows_nat_target::resume)
6651 (get_windows_debug_event, windows_nat_target::wait)
6652 (windows_nat_target::pid_to_str)
6653 (windows_nat_target::get_tib_address)
6654 (windows_nat_target::get_ada_task_ptid)
6655 (windows_nat_target::thread_name)
6656 (windows_nat_target::thread_alive): Use lwp, not tid.
6657
6658 2020-04-08 Tom Tromey <tromey@adacore.com>
6659
6660 * windows-nat.c (handle_exception)
6661 (windows_nat_target::thread_name): Update.
6662 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6663 <name>: Now unique_xmalloc_ptr.
6664
6665 2020-04-08 Tom Tromey <tromey@adacore.com>
6666
6667 * windows-nat.c (thread_rec)
6668 (windows_nat_target::fetch_registers): Update.
6669 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6670 Update comment.
6671 <debug_registers_changed, reload_context>: Now bool.
6672
6673 2020-04-08 Tom Tromey <tromey@adacore.com>
6674
6675 * windows-nat.c (windows_add_thread): Use new.
6676 (windows_init_thread_list, windows_delete_thread): Use delete.
6677 (get_windows_debug_event): Update.
6678 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6679 destructor, and initializers.
6680
6681 2020-04-08 Tom Tromey <tromey@adacore.com>
6682
6683 * windows-nat.c (struct windows_thread_info): Remove.
6684 * nat/windows-nat.h: New file.
6685
6686 2020-04-08 Tom Tromey <tromey@adacore.com>
6687
6688 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6689 (thread_rec, windows_add_thread, windows_delete_thread)
6690 (windows_continue): Update.
6691
6692 2020-04-08 Tom Tromey <tromey@adacore.com>
6693
6694 * windows-nat.c (struct windows_thread_info): Remove typedef.
6695 (thread_head): Remove.
6696 (thread_list): New global.
6697 (thread_rec, windows_add_thread, windows_init_thread_list)
6698 (windows_delete_thread, windows_continue): Update.
6699
6700 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6701
6702 * windows-tdep.h (windows_init_abi): Add comment.
6703 (cygwin_init_abi): New declaration.
6704 * windows-tdep.c: Split signal enumeration in two, one for
6705 Windows and one for Cygwin.
6706 (windows_gdb_signal_to_target): Only deal with signal of the
6707 Windows OS ABI.
6708 (cygwin_gdb_signal_to_target): New function.
6709 (windows_init_abi): Rename to windows_init_abi_common, don't set
6710 gdb_signal_to_target gdbarch method. Add new new function with
6711 this name.
6712 (cygwin_init_abi): New function.
6713 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6714 comment. Don't call windows_init_abi.
6715 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6716 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6717 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6718 i386_windows_init_abi_common, don't call windows_init_abi. Add
6719 a new function of this name.
6720 (i386_cygwin_init_abi): New function.
6721 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6722 OS ABI Cygwin.
6723
6724 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6725
6726 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6727 parameter.c.
6728 (dwarf2_read_gdb_index): Update.
6729
6730 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6731
6732 * nbsd-tdep.c: Include "objfiles.h".
6733 (nbsd_skip_solib_resolver): New.
6734 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6735
6736 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6737
6738 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6739 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6740 with DW_LLE_base_addressx are being emitted in DWARFv5.
6741 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6742 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6743 unsigned integer.
6744
6745 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6746
6747 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6748 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6749 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6750 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6751 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6752 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6753 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6754
6755
6756 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6757
6758 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6759 (read_loclist_index): New function definition.
6760 (lookup_loclist_base): New function definition.
6761 (read_loclist_header): New function definition.
6762 (dwarf2_cu): Add loclist_base and loclist_header field.
6763 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6764 (read_full_die_1): Read the value of DW_AT_loclists_base.
6765 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6766 (read_attribute_value): Handle DW_FORM_loclistx.
6767 (skip_one_die): Handle DW_FORM_loclistx.
6768 (loclist_header): New structure declaration.
6769 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6770
6771 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6772
6773 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6774 constructor. Remove `addr` parameter from other constructor and
6775 add `per_cu` parameter.
6776 * dwarf2/read.c (create_partial_symtab): Update.
6777
6778 2020-04-07 Tom de Vries <tdevries@suse.de>
6779
6780 PR symtab/25796
6781 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6782 (partial_die_info::fixup): Inherit has_const_value.
6783
6784 2020-04-07 Tom de Vries <tdevries@suse.de>
6785
6786 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6787 symbols without address.
6788
6789 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6790
6791 * nbsd-nat.h (struct thread_info): Add forward declaration.
6792 (nbsd_nat_target::thread_alive): Add.
6793 (nbsd_nat_target::thread_name): Likewise.
6794 (nbsd_nat_target::update_thread_list): Likewise.
6795 (update_thread_list::post_attach): Likewise.
6796 (post_attach::pid_to_str): Likewise.
6797 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6798 (nbsd_thread_lister): Add.
6799 (nbsd_nat_target::thread_alive): Likewise.
6800 (nbsd_nat_target::thread_name): Likewise.
6801 (nbsd_add_threads): Likewise.
6802 (update_thread_list::post_attach): Likewise.
6803 (nbsd_nat_target::update_thread_list): Likewise.
6804 (post_attach::pid_to_str): Likewise.
6805
6806 2020-04-06 Tom Tromey <tromey@adacore.com>
6807
6808 * ada-valprint.c (print_variant_part): Extract the variant field.
6809 (print_field_values): Use the field as the outer value when
6810 recursing.
6811
6812 2020-04-06 Tom Tromey <tromey@adacore.com>
6813
6814 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6815 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6816 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6817 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6818 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6819
6820 2020-04-06 Tom Tromey <tromey@adacore.com>
6821
6822 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6823 TYPE_CODE_ERROR.
6824
6825 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6826
6827 * nbsd-tdep.c: Include "gdbarch.h".
6828 Define enum with NetBSD signal numbers.
6829 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6830 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6831 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6832 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6833 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6834 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6835 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6836 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6837 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6838 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6839 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6840 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6841
6842 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6843
6844 PR gdb/25325
6845 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6846
6847 2020-04-03 Tom Tromey <tromey@adacore.com>
6848
6849 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6850 Read constant block.
6851
6852 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6853
6854 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6855 (gdb_bfd_get_full_section_contents): New declaration.
6856 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6857 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6858 gdb_bfd_get_full_section_contents.
6859
6860 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6861
6862 * exec.c (build_section_table): Replace internal_error with
6863 gdb_assert.
6864 (section_table_xfer_memory_partial): Likewise.
6865 * mdebugread.c (parse_partial_symbols): Likewise.
6866 * psymtab.c (lookup_partial_symbol): Likewise.
6867 * utils.c (wrap_here): Likewise.
6868
6869 2020-04-02 Tom Tromey <tromey@adacore.com>
6870
6871 * f-lang.c (build_fortran_types): Use arch_type to initialize
6872 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6873
6874 2020-04-02 Tom Tromey <tromey@adacore.com>
6875
6876 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6877 of attributes.
6878
6879 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6880 Bernd Edlinger <bernd.edlinger@hotmail.de>
6881 Tom Tromey <tromey@adacore.com>
6882
6883 * buildsym.c (buildsym_compunit::record_line): Remove
6884 deduplication code.
6885
6886 2020-04-02 Tom de Vries <tdevries@suse.de>
6887
6888 PR ada/24671
6889 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6890
6891 2020-04-02 Tom de Vries <tdevries@suse.de>
6892
6893 * dwarf2/read.c (dwarf2_gdb_index_functions,
6894 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6895 NULL.
6896 * psymtab.c (psym_lookup_global_symbol_language): New function.
6897 (psym_functions): Init psym_lookup_global_symbol_language with
6898 psym_lookup_global_symbol_language.
6899 * symfile-debug.c (debug_sym_quick_functions): Init
6900 lookup_global_symbol_language with NULL.
6901 * symfile.c (set_initial_language): Remove fixme comment.
6902 * symfile.h (struct quick_symbol_functions): Add
6903 lookup_global_symbol_language.
6904 * symtab.c (find_quick_global_symbol_language): New function.
6905 (find_main_name): Use find_quick_global_symbol_language.
6906
6907 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6908
6909 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6910
6911 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6912
6913 * buildsym.c (record_line): Fix undefined behavior and preserve
6914 lines at eof.
6915
6916 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6917
6918 * buildsym.c (record_line): Fix the resizing condition.
6919
6920 2020-04-01 Tom Tromey <tom@tromey.com>
6921
6922 * value.h (value_literal_complex): Add comment.
6923 * valops.c (value_literal_complex): Refer to value.h.
6924
6925 2020-04-01 Tom Tromey <tom@tromey.com>
6926
6927 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6928 (scalar_type): New rule, from typebase.
6929 (typebase): Use scalar_type. Recognize complex types.
6930 (field_name): Handle FLOAT_KEYWORD.
6931 (ident_tokens): Add _Complex and __complex__.
6932
6933 2020-04-01 Tom Tromey <tom@tromey.com>
6934
6935 PR exp/25299:
6936 * valarith.c (promotion_type, complex_binop): New functions.
6937 (scalar_binop): Handle complex numbers. Use promotion_type.
6938 (value_pos, value_neg, value_complement): Handle complex numbers.
6939
6940 2020-04-01 Tom Tromey <tom@tromey.com>
6941
6942 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6943 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6944 (parse_number): Handle complex numbers.
6945
6946 2020-04-01 Tom Tromey <tom@tromey.com>
6947
6948 * c-valprint.c (c_decorations): Change complex suffix to "i".
6949
6950 2020-04-01 Tom Tromey <tom@tromey.com>
6951
6952 * valprint.c (generic_value_print_complex): Use accessors.
6953 * value.h (value_real_part, value_imaginary_part): Declare.
6954 * valops.c (value_real_part, value_imaginary_part): New
6955 functions.
6956 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6957
6958 2020-04-01 Tom Tromey <tom@tromey.com>
6959
6960 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6961 (read_range_type): Update.
6962 * mdebugread.c (basic_type): Update.
6963 * go-lang.c (build_go_types): Use init_complex_type.
6964 * gdbtypes.h (struct main_type) <complex_type>: New member.
6965 (init_complex_type): Update.
6966 (arch_complex_type): Don't declare.
6967 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6968 Make name if none given. Use alloc_type_copy. Look for cached
6969 complex type.
6970 (arch_complex_type): Remove.
6971 (gdbtypes_post_init): Use init_complex_type.
6972 * f-lang.c (build_fortran_types): Use init_complex_type.
6973 * dwarf2/read.c (read_base_type): Update.
6974 * d-lang.c (build_d_types): Use init_complex_type.
6975 * ctfread.c (read_base_type): Update.
6976
6977 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6978
6979 * infrun.c (stop_all_threads): Update assertion, plus when
6980 stopping threads, take into account that we might be trying
6981 to stop an all-stop target.
6982 (stop_waiting): Call 'stop_all_threads' if there exists a
6983 non-stop target.
6984
6985 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6986
6987 * target.h (exists_non_stop_target): New function declaration.
6988 * target.c (exists_non_stop_target): New function.
6989
6990 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6991
6992 PR gdb/24789
6993 * eval.c (is_integral_or_integral_reference): New function.
6994 (evaluate_subexp_standard): Allow integer references in
6995 pointer arithmetic.
6996
6997 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6998
6999 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7000 check for no ptid in the stop reply when the target is non-stop.
7001
7002 2020-04-01 Tom Tromey <tromey@adacore.com>
7003
7004 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7005 "name" parameter to rvalue reference. Initialize m_name_holder.
7006 <lookup_name_info>: New overloads.
7007 <name>: Return gdb::string_view.
7008 <c_str>: New method.
7009 <make_ignore_params>: Update.
7010 <search_name_hash>: Update.
7011 <language_lookup_name>: Return const char *.
7012 <m_name>: Change type.
7013 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7014 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7015 (lookup_name_info::match_any): Update.
7016 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7017 Update.
7018 * minsyms.c (linkage_name_str): Update.
7019 * language.c (default_symbol_name_matcher): Update.
7020 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7021 Update.
7022 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7023 (ada_lookup_name_info::ada_lookup_name_info): Update.
7024 (literal_symbol_name_matcher): Update.
7025
7026 2020-04-01 Tom Tromey <tromey@adacore.com>
7027
7028 * psymtab.c (psymtab_search_name): Remove function.
7029 (psym_lookup_symbol): Create search name and lookup name here.
7030 (lookup_partial_symbol): Remove "name" parameter; add
7031 lookup_name.
7032 (psym_expand_symtabs_for_function): Update.
7033
7034 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7035
7036 PR tui/25597:
7037 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7038
7039 2020-03-31 Tom Tromey <tromey@adacore.com>
7040
7041 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7042 memcpy.
7043
7044 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7045
7046 * features/riscv/32bit-csr.xml: Regenerated.
7047 * features/riscv/64bit-csr.xml: Regenerated.
7048
7049 2020-03-30 Tom Tromey <tromey@adacore.com>
7050
7051 * ada-valprint.c (print_variant_part): Update.
7052 * ada-lang.h (ada_which_variant_applies): Update.
7053 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7054 outer_valaddr parameters; replace with "outer" value parameter.
7055 (to_fixed_variant_branch_type): Update.
7056
7057 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7058
7059 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7060 <list>. Remove inclusion of observable.h.
7061 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7062 (struct arch_lwp_info): New struct.
7063 (class ppc_linux_dreg_interface): New class.
7064 (struct ppc_linux_process_info): New struct.
7065 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7066 <low_new_clone, low_forget_process, low_prepare_to_resume>
7067 <copy_thread_dreg_state, mark_thread_stale>
7068 <mark_debug_registers_changed, register_hw_breakpoint>
7069 <clear_hw_breakpoint, register_wp, clear_wp>
7070 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7071 <num_memory_accesses, get_trigger_type>
7072 <create_watchpoint_request, hwdebug_point_cmp>
7073 <init_arch_lwp_info, get_arch_lwp_info>
7074 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7075 methods.
7076 <struct ptid_hash>: New inner struct.
7077 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7078 members.
7079 (saved_dabr_value, hwdebug_info, max_slots_number)
7080 (struct hw_break_tuple, struct thread_points, ppc_threads)
7081 (have_ptrace_hwdebug_interface)
7082 (hwdebug_find_thread_points_by_tid)
7083 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7084 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7085 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7086 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7087 use m_dreg_interface.
7088 (hwdebug_point_cmp): Change to...
7089 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7090 reference arguments instead of pointers.
7091 (ppc_linux_nat_target::ranged_break_num_registers): Use
7092 m_dreg_interface.
7093 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7094 m_dreg_interface. Call register_hw_breakpoint.
7095 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7096 m_dreg_interface. Call clear_hw_breakpoint.
7097 (get_trigger_type): Change to...
7098 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7099 comment.
7100 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7101 use m_dreg_interface. Call register_hw_breakpoint.
7102 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7103 use m_dreg_interface. Call clear_hw_breakpoint.
7104 (can_use_watchpoint_cond_accel): Change to...
7105 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7106 method. Update comment, use m_dreg_interface and
7107 m_process_info.
7108 (calculate_dvc): Change to...
7109 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7110 m_dreg_interface.
7111 (num_memory_accesses): Change to...
7112 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7113 (check_condition): Change to...
7114 (ppc_linux_nat_target::check_condition): ...this method.
7115 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7116 comment, use m_dreg_interface.
7117 (create_watchpoint_request): Change to...
7118 (ppc_linux_nat_target::create_watchpoint_request): ...this
7119 method. Use m_dreg_interface.
7120 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7121 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7122 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7123 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7124 (ppc_linux_nat_target::low_forget_process)
7125 (ppc_linux_nat_target::low_new_fork)
7126 (ppc_linux_nat_target::low_new_clone)
7127 (ppc_linux_nat_target::low_delete_thread)
7128 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7129 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7130 only call mark_thread_stale.
7131 (ppc_linux_thread_exit): Remove.
7132 (ppc_linux_nat_target::stopped_data_address): Change to...
7133 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7134 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7135 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7136 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7137 comment. Call low_stopped_data_address.
7138 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7139 m_dreg_interface.
7140 (ppc_linux_nat_target::masked_watch_num_registers): Use
7141 m_dreg_interface.
7142 (ppc_linux_nat_target::copy_thread_dreg_state)
7143 (ppc_linux_nat_target::mark_thread_stale)
7144 (ppc_linux_nat_target::mark_debug_registers_changed)
7145 (ppc_linux_nat_target::register_hw_breakpoint)
7146 (ppc_linux_nat_target::clear_hw_breakpoint)
7147 (ppc_linux_nat_target::register_wp)
7148 (ppc_linux_nat_target::clear_wp)
7149 (ppc_linux_nat_target::init_arch_lwp_info)
7150 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7151 (_initialize_ppc_linux_nat): Remove observer callback.
7152
7153 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7154
7155 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7156 (ppc_linux_nat_target::auxv_parse)
7157 (ppc_linux_nat_target::read_description)
7158 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7159 Move up.
7160
7161 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7162
7163 * linux-nat.h (low_new_clone): New method.
7164 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7165
7166 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7167
7168 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7169 (dbx_expand_psymtab): ... this.
7170 (start_psymtab): Update.
7171 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7172 (mdebug_expand_psymtab): ... this.
7173 (parse_partial_symbols): Update.
7174 (new_psymtab): Update.
7175 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7176 (xcoff_expand_psymtab): ... this.
7177 (xcoff_start_psymtab): Update.
7178
7179 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7180
7181 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7182 <expand_dependencies>: ... this.
7183 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7184 (partial_symtab::expand_dependencies): ... this.
7185 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7186 Update.
7187 (dwarf2_psymtab::expand_psymtab): Update.
7188 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7189 * mdebugread.c (psymtab_to_symtab_1): Update.
7190 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7191
7192 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7193
7194 * psympriv.h (discard_psymtab): Remove.
7195 * dbxread.c (dbx_end_psymtab): Update.
7196 * xcoffread.c (xcoff_end_psymtab): Update.
7197
7198 2020-03-28 Tom Tromey <tom@tromey.com>
7199
7200 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7201 comment.
7202
7203 2020-03-28 Tom Tromey <tom@tromey.com>
7204
7205 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7206
7207 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7208
7209 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7210
7211 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7212
7213 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7214
7215 2020-03-26 Tom Tromey <tom@tromey.com>
7216
7217 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7218 (mark_common_block_symbol_computed, read_tag_string_type)
7219 (attr_to_dynamic_prop, read_subrange_type): Update.
7220 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7221 to be methods on struct attribute.
7222 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7223 (read_call_site_scope, partial_die_info::read)
7224 (partial_die_info::read, lookup_die_type, follow_die_ref):
7225 Update.
7226 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7227 from dwarf2_get_ref_die_offset.
7228 (attribute::constant_value): New method, from
7229 dwarf2_get_attr_constant_value.
7230 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7231 Declare method.
7232 <constant_value>: New method.
7233
7234 2020-03-26 Tom Tromey <tom@tromey.com>
7235
7236 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7237 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7238 (dwarf_type_encoding_name): Move to stringify.c.
7239 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7240 * dwarf2/stringify.c: New file.
7241 * dwarf2/stringify.h: New file.
7242
7243 2020-03-26 Tom Tromey <tom@tromey.com>
7244
7245 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7246 Rewrite.
7247
7248 2020-03-26 Tom Tromey <tom@tromey.com>
7249
7250 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7251 methods.
7252 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7253 (lookup_ranges_base): Likewise.
7254 (read_cutu_die_from_dwo, read_full_die_1): Update.
7255
7256 2020-03-26 Tom Tromey <tom@tromey.com>
7257
7258 * dwarf2/read.c (read_import_statement, read_file_scope)
7259 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7260 (read_lexical_block_scope, read_call_site_scope)
7261 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7262 (handle_struct_member_die, process_structure_scope)
7263 (update_enumeration_type_from_children)
7264 (process_enumeration_scope, read_array_type, read_common_block)
7265 (read_namespace, read_module, read_subroutine_type): Update.
7266 (sibling_die): Remove.
7267
7268 2020-03-26 Tom Tromey <tom@tromey.com>
7269
7270 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7271 (build_type_psymtabs_reader, read_structure_type)
7272 (read_enumeration_type, read_full_die_1): Update.
7273 (dwarf2_attr_no_follow): Move to die.h.
7274 * dwarf2/die.h (struct die_info) <attr>: New method.
7275
7276 2020-03-26 Tom Tromey <tom@tromey.com>
7277
7278 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7279 <base_address>: Now an optional.
7280 (dwarf2_find_base_address, dwarf2_rnglists_process)
7281 (dwarf2_ranges_process, fill_in_loclist_baton)
7282 (dwarf2_symbol_mark_computed): Update.
7283
7284 2020-03-26 Tom Tromey <tom@tromey.com>
7285
7286 * dwarf2/read.c (struct die_info): Move to die.h.
7287 * dwarf2/die.h: New file.
7288
7289 2020-03-26 Tom Tromey <tom@tromey.com>
7290
7291 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7292 * dwarf2/read.c
7293 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7294 Move to line-header.c.
7295 (read_checked_initial_length_and_offset, read_formatted_entries):
7296 Likewise.
7297 (dwarf_decode_line_header): Split into two.
7298 * dwarf2/line-header.c
7299 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7300 Move from read.c.
7301 (read_checked_initial_length_and_offset, read_formatted_entries):
7302 Likewise.
7303 (dwarf_decode_line_header): New function, split from read.c.
7304
7305 2020-03-26 Tom Tromey <tom@tromey.com>
7306
7307 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7308 Declare method.
7309 * dwarf2/read.c (read_attribute_value): Update.
7310 (dwarf2_per_objfile::read_line_string): Rename from
7311 read_indirect_line_string.
7312 (read_formatted_entries): Update.
7313
7314 2020-03-26 Tom Tromey <tom@tromey.com>
7315
7316 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7317 variable.
7318
7319 2020-03-26 Tom Tromey <tom@tromey.com>
7320
7321 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7322 const.
7323 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7324 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7325 parameter const.
7326
7327 2020-03-26 Tom Tromey <tom@tromey.com>
7328
7329 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7330 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7331 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7332 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7333
7334 2020-03-26 Tom Tromey <tom@tromey.com>
7335
7336 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7337 file_names_size, file_full_name, file_file_name>: Use const.
7338 <file_name_at, file_names>: Add const overload.
7339 * dwarf2/line-header.c (line_header::file_file_name)
7340 (line_header::file_full_name): Update.
7341
7342 2020-03-26 Tom Tromey <tom@tromey.com>
7343
7344 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7345 (macro_start_file, consume_improper_spaces)
7346 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7347 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7348 (dwarf_decode_macros): Move to macro.c.
7349 * dwarf2/macro.c: New file.
7350 * dwarf2/macro.h: New file.
7351 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7352
7353 2020-03-26 Tom Tromey <tom@tromey.com>
7354
7355 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7356 method.
7357 * dwarf2/section.c: New method. From
7358 read_indirect_string_at_offset_from.
7359 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7360 (read_indirect_string_at_offset_from): Move to section.c.
7361 (read_indirect_string_at_offset): Rewrite.
7362 (read_indirect_line_string_at_offset): Remove.
7363 (read_indirect_string, read_indirect_line_string)
7364 (dwarf_decode_macro_bytes): Update.
7365
7366 2020-03-26 Tom Tromey <tom@tromey.com>
7367
7368 * dwarf2/section.h (struct dwarf2_section_info)
7369 <overload_complaint>: Declare.
7370 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7371 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7372 Rename from dwarf2_section_buffer_overflow_complaint.
7373 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7374 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7375
7376 2020-03-26 Tom Tromey <tom@tromey.com>
7377
7378 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7379 Declare.
7380 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7381 Move from read.c.
7382 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7383 to section.c.
7384
7385 2020-03-26 Tom Tromey <tom@tromey.com>
7386
7387 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7388
7389 2020-03-26 Tom Tromey <tom@tromey.com>
7390
7391 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7392 "builder".
7393 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7394 parameter.
7395 (dwarf_decode_macros): Update.
7396
7397 2020-03-26 Tom Tromey <tom@tromey.com>
7398
7399 * dwarf2/read.c (read_attribute_value): Update.
7400 (read_indirect_string_from_dwz): Move to dwz.c; change into
7401 method.
7402 (dwarf_decode_macro_bytes): Update.
7403 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7404 * dwarf2/dwz.c: New file.
7405 * Makefile.in (COMMON_SFILES): Add dwz.c.
7406
7407 2020-03-26 Tom Tromey <tom@tromey.com>
7408
7409 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7410 * dwarf2/read.c: Add include.
7411 * dwarf2/index-write.c: Add include.
7412 * dwarf2/index-cache.c: Add include.
7413 * dwarf2/dwz.h: New file.
7414
7415 2020-03-25 Tom Tromey <tom@tromey.com>
7416
7417 * compile/compile-object-load.c (get_out_value_type): Mention
7418 correct symbol name in error message.
7419
7420 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7421
7422 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7423
7424 2020-03-25 Tom de Vries <tdevries@suse.de>
7425
7426 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7427 * symmisc.c (dump_symtab_1): Print user and includes fields.
7428 (maintenance_info_symtabs): Same.
7429
7430 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7431
7432 PR gdb/25534
7433 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7434 (riscv_regcache_cooked_write): New function.
7435 (riscv_push_dummy_call): Use new function.
7436 (riscv_return_value): Likewise.
7437
7438 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7439
7440 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7441 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7442 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7443 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7444 * infrun.c (follow_fork): Likewise.
7445 (follow_fork_inferior): Likewise.
7446 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7447 * linux-nat.h (class linux_nat_target): Likewise.
7448 * remote.c (class remote_target) <follow_fork>: Likewise.
7449 (remote_target::follow_fork): Likewise.
7450 * target-delegates.c: Re-generate.
7451 * target.c (default_follow_fork): Likewise.
7452 (target_follow_fork): Likewise.
7453 * target.h (struct target_ops) <follow_fork>: Likewise.
7454 (target_follow_fork): Likewise.
7455
7456 2020-03-24 Tom de Vries <tdevries@suse.de>
7457
7458 * psymtab.c (maintenance_info_psymtabs): Print user field.
7459
7460 2020-03-20 Tom Tromey <tromey@adacore.com>
7461
7462 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7463 const.
7464 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7465 const.
7466
7467 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7468
7469 * ptrace.m4: Don't check for ptrace declaration.
7470 * config.in: Re-generate.
7471 * configure: Re-generate.
7472 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7473 not defined.
7474
7475 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7476
7477 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7478 `PTRACE_TYPE_RET'.
7479 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7480 * sparc-nat.c (gdb_ptrace): Likewise.
7481 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7482
7483 2020-03-20 Tom Tromey <tromey@adacore.com>
7484
7485 * c-exp.y (lex_one_token): Fix assert.
7486
7487 2020-03-20 Tom Tromey <tromey@adacore.com>
7488
7489 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7490 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7491 strncpy call.
7492
7493 2020-03-20 Tom Tromey <tromey@adacore.com>
7494
7495 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7496
7497 2020-03-20 Tom Tromey <tromey@adacore.com>
7498
7499 * ada-valprint.c (print_variant_part): Remove parameters; switch
7500 to value-based API.
7501 (print_field_values): Likewise.
7502 (ada_val_print_struct_union): Likewise.
7503 (ada_value_print_1): Update.
7504
7505 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7506
7507 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7508 nbsd_nat_target instead of inf_ptrace_target.
7509 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7510 nbsd_nat_target.
7511
7512 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7513
7514 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7515 it to the ptrace call.
7516 * (store_registers): Likewise.
7517
7518 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7519
7520 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7521 it to the ptrace call.
7522 * (store_registers): Likewise.
7523
7524 2020-03-19 Luis Machado <luis.machado@linaro.org>
7525
7526 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7527 valid, fetch vg value from ptrace.
7528
7529 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7530 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7531 * inf-ptrace.c: Likewise.
7532 * (gdb_ptrace): Add.
7533 * (inf_ptrace_target::resume): Update.
7534 * (inf_ptrace_target::xfer_partial): Likewise.
7535 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7536 * (inf_ptrace_peek_poke): Update.
7537
7538 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7539
7540 * x86-bsd-nat.c (gdb_ptrace): New.
7541 * (x86bsd_dr_set): Add new argument `ptid'.
7542 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7543 x86bsd_dr_set_addr): Update.
7544
7545 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7546
7547 * remote.c (remote_target::process_stop_reply): Handle events for
7548 all threads differently.
7549
7550 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7551
7552 * completer.c (completion_tracker::remove_completion): Define new
7553 function.
7554 * completer.h (completion_tracker::remove_completion): Declare new
7555 function.
7556 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7557 when adding a C++ function symbol.
7558
7559 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7560
7561 * completer.c (completion_tracker::completion_hash_entry): Define
7562 new class.
7563 (advance_to_filename_complete_word_point): Call
7564 recompute_lowest_common_denominator.
7565 (completion_tracker::completion_tracker): Call discard_completions
7566 to setup the hash table.
7567 (completion_tracker::discard_completions): Allow for being called
7568 from the constructor, pass new equal function, and element deleter
7569 when constructing the hash table. Initialise new class member
7570 variables.
7571 (completion_tracker::maybe_add_completion): Remove use of
7572 m_entries_vec, and store more information into m_entries_hash.
7573 (completion_tracker::recompute_lcd_visitor): New function, most
7574 content taken from...
7575 (completion_tracker::recompute_lowest_common_denominator):
7576 ...here, this now just visits each item in the hash calling the
7577 above visitor.
7578 (completion_tracker::build_completion_result): Remove use of
7579 m_entries_vec, call recompute_lowest_common_denominator.
7580 * completer.h (completion_tracker::have_completions): Remove use
7581 of m_entries_vec.
7582 (completion_tracker::completion_hash_entry): Declare new class.
7583 (completion_tracker::recompute_lowest_common_denominator): Change
7584 function signature.
7585 (completion_tracker::recompute_lcd_visitor): Declare new function.
7586 (completion_tracker::m_entries_vec): Delete.
7587 (completion_tracker::m_entries_hash): Initialize to NULL.
7588 (completion_tracker::m_lowest_common_denominator_valid): New
7589 member variable.
7590 (completion_tracker::m_lowest_common_denominator_max_length): New
7591 member variable.
7592
7593 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7594
7595 * regformats/regdef.h: Put reg in gdb namespace.
7596
7597 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7598
7599 * i386-bsd-nat.c (gdb_ptrace): New.
7600 * (i386bsd_fetch_inferior_registers,
7601 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7602 * (i386bsd_fetch_inferior_registers,
7603 i386bsd_store_inferior_registers) Use gdb_ptrace.
7604
7605 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7606
7607 * amd64-bsd-nat.c (gdb_ptrace): New.
7608 * (amd64bsd_fetch_inferior_registers,
7609 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7610 * (amd64bsd_fetch_inferior_registers,
7611 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7612
7613 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7614
7615 * user-regs.c (user_reg::read): Rename to...
7616 (user_reg::xread): ...this.
7617 * (append_user_reg): Rename argument `read' to `xread'.
7618 * (user_reg_add_builtin): Likewise.
7619 * (user_reg_add): Likewise.
7620 * (value_of_user_reg): Likewise.
7621
7622 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7623
7624 * sparc-nat.c (gdb_ptrace): New.
7625 * sparc-nat.c (sparc_fetch_inferior_registers)
7626 (sparc_store_inferior_registers) Remove obsolete comment.
7627 * sparc-nat.c (sparc_fetch_inferior_registers)
7628 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7629 * sparc-nat.c (sparc_fetch_inferior_registers)
7630 (sparc_store_inferior_registers) Use gdb_ptrace.
7631
7632 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7633
7634 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7635 it to the ptrace call.
7636 * sh-nbsd-nat.c (store_registers): Likewise.
7637
7638 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7639
7640 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7641 nbsd_nat_target instead of inf_ptrace_target.
7642 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7643 nbsd_nat_target.
7644
7645 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7646
7647 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7648
7649 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7650
7651 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7652 <sys/sysctl.h>.
7653 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7654
7655 2020-03-17 Tom de Vries <tdevries@suse.de>
7656
7657 PR gdb/23710
7658 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7659 fields.
7660 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7661 fields.
7662 (process_imported_unit_die): Skip import of c++ CUs.
7663
7664 2020-03-16 Tom Tromey <tom@tromey.com>
7665
7666 * p-valprint.c (pascal_object_print_value): Initialize
7667 base_value.
7668
7669 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7670 Shahab Vahedi <shahab@synopsys.com>
7671
7672 * Makefile.in: Add arch/arc.o
7673 * configure.tgt: Likewise.
7674 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7675 (_initialize_arc_tdep): Don't initialize old target descriptions.
7676 (arc_read_description): New function to cache target descriptions.
7677 * arc-tdep.h (arc_read_description): Add proto type.
7678 * arch/arc.c: New file.
7679 * arch/arc.h: Likewise.
7680 * features/Makefile: Replace old target descriptions with new.
7681 * features/arc-arcompact.c: Remove.
7682 * features/arc-arcompact.xml: Likewise.
7683 * features/arc-v2.c: Likewise
7684 * features/arc-v2.xml: Likewise
7685 * features/arc/aux-arcompact.xml: New file.
7686 * features/arc/aux-v2.xml: Likewise.
7687 * features/arc/core-arcompact.xml: Likewise.
7688 * features/arc/core-v2.xml: Likewise.
7689 * features/arc/aux-arcompact.c: Generate.
7690 * features/arc/aux-v2.c: Likewise.
7691 * features/arc/core-arcompact.c: Likewise.
7692 * features/arc/core-v2.c: Likewise.
7693 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7694
7695 2020-03-16 Tom Tromey <tromey@adacore.com>
7696
7697 PR gdb/25663:
7698 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7699 putting value into bcache.
7700
7701 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7702
7703 PR gdb/21500
7704 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7705 to...
7706 (amd64_windows_init_abi_common): ... this. Don't set size of
7707 long type.
7708 (amd64_windows_init_abi): New function.
7709 (amd64_cygwin_init_abi): New function.
7710 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7711 the Cygwin OS ABI.
7712 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7713 comment.
7714
7715 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7716
7717 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7718 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7719 (pe_import_directory_entry): New struct type.
7720 (is_linked_with_cygwin_dll): New function.
7721 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7722 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7723 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7724
7725 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7726
7727 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7728 i386_cygwin_core_osabi_sniffer.
7729
7730 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7731
7732 * i386-cygwin-tdep.c: Rename to...
7733 * i386-windows-tdep.c: ... this.
7734 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7735 i386-windows-tdep.c.
7736 * configure.tgt: Likewise.
7737
7738 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7739
7740 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7741 * osabi.c (gdb_osabi_names): Add "Windows".
7742 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7743 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7744 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7745 i386_cygwin_osabi_sniffer.
7746 (_initialize_i386_cygwin_tdep): Register OS ABI
7747 GDB_OSABI_WINDOWS for i386.
7748 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7749 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7750 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7751 for x86-64.
7752 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7753 when the target matches '*-*-mingw*'.
7754
7755 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7756
7757 * defs.h (enum gdb_osabi): Move to...
7758 * osabi.h (enum gdb_osabi): ... here.
7759 * gdbarch.sh: Include osabi.h in gdbarch.h.
7760 * gdbarch.h: Re-generate.
7761
7762 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7763
7764 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7765 function.
7766 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7767
7768 2020-03-14 Tom Tromey <tom@tromey.com>
7769
7770 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7771 for C++.
7772 (c_type_print_modifier): Likewise. Add "language" parameter.
7773 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7774 (c_type_print_base_1): Update.
7775 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7776 constants.
7777 * type-stack.c (type_stack::insert): Handle tp_atomic and
7778 tp_restrict.
7779 (type_stack::follow_type_instance_flags): Likewise.
7780 (type_stack::follow_types): Likewise. Merge type-following code.
7781 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7782 (space_identifier, cv_with_space_id)
7783 (const_or_volatile_or_space_identifier_noopt)
7784 (const_or_volatile_or_space_identifier): Remove.
7785 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7786 rules.
7787 (ptr_operator, typebase): Update.
7788 (enum token_flag) <FLAG_C>: New constant.
7789 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7790 "_Atomic".
7791 (lex_one_token): Handle FLAG_C.
7792
7793 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7794
7795 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7796 it to the ptrace call.
7797 * m68k-bsd-nat.c (store_registers): Likewise.
7798
7799 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7800
7801 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7802 gdb_byte *.
7803 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7804 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7805 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7806
7807 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7808
7809 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7810 nbsd_nat_target instead of inf_ptrace_target.
7811 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7812 nbsd_nat_target.
7813
7814 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7815
7816 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7817 register_t.
7818
7819 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7820
7821 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7822 it to the ptrace call.
7823 * alpha-bsd-nat.c (store_registers): Likewise.
7824
7825 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7826
7827 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7828 includes.
7829 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7830 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7831 fill_fpregset): Likewise.
7832
7833 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7834
7835 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7836 nbsd_nat_target instead of inf_ptrace_target.
7837 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7838 nbsd_nat_target.
7839
7840 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7841
7842 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7843 register_t.
7844
7845 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7846
7847 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7848 it to the ptrace call.
7849 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7850 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7851 * arm-nbsd-nat.c (store_register): Likewise.
7852 * arm-nbsd-nat.c (store_regs): Likewise.
7853 * arm-nbsd-nat.c (store_fp_register): Likewise.
7854 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7855
7856 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7857
7858 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7859 nbsd_nat_target instead of inf_ptrace_target.
7860 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7861 nbsd_nat_target.
7862
7863 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7864
7865 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7866 it to the ptrace call.
7867 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7868
7869 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7870
7871 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7872 it to the ptrace call.
7873 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7874
7875 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7876
7877 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7878 gdb_byte *.
7879 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7880
7881 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7882
7883 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7884 instead of inf_ptrace_target.
7885 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7886 nbsd_nat_target.
7887
7888 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7889
7890 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7891 register_t.
7892
7893 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7894
7895 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7896 register_t.
7897
7898 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7899
7900 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7901 register_t.
7902
7903 2020-03-13 Tom Tromey <tom@tromey.com>
7904
7905 * value.h (val_print): Don't declare.
7906 * valprint.h (val_print_array_elements)
7907 (val_print_scalar_formatted, generic_val_print): Don't declare.
7908 * valprint.c (generic_val_print_array): Take a struct value.
7909 (generic_val_print_ptr, generic_val_print_memberptr)
7910 (generic_val_print_bool, generic_val_print_int)
7911 (generic_val_print_char, generic_val_print_complex)
7912 (generic_val_print): Remove.
7913 (generic_value_print): Update.
7914 (do_val_print): Remove unused parameters. Don't call
7915 la_val_print.
7916 (val_print): Remove.
7917 (common_val_print): Update. Don't call value_check_printable.
7918 (val_print_scalar_formatted, val_print_array_elements): Remove.
7919 * rust-lang.c (rust_val_print): Remove.
7920 (rust_language_defn): Update.
7921 * p-valprint.c (pascal_val_print): Remove.
7922 (pascal_value_print_inner): Update.
7923 (pascal_object_print_val_fields, pascal_object_print_val):
7924 Remove.
7925 (pascal_object_print_static_field): Update.
7926 * p-lang.h (pascal_val_print): Don't declare.
7927 * p-lang.c (pascal_language_defn): Update.
7928 * opencl-lang.c (opencl_language_defn): Update.
7929 * objc-lang.c (objc_language_defn): Update.
7930 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7931 * m2-lang.h (m2_val_print): Don't declare.
7932 * m2-lang.c (m2_language_defn): Update.
7933 * language.h (struct language_defn) <la_val_print>: Remove.
7934 * language.c (unk_lang_value_print_inner): Rename. Change
7935 argument types.
7936 (unknown_language_defn, auto_language_defn): Update.
7937 * go-valprint.c (go_val_print): Remove.
7938 * go-lang.h (go_val_print): Don't declare.
7939 * go-lang.c (go_language_defn): Update.
7940 * f-valprint.c (f_val_print): Remove.
7941 * f-lang.h (f_value_print): Don't declare.
7942 * f-lang.c (f_language_defn): Update.
7943 * d-valprint.c (d_val_print): Remove.
7944 * d-lang.h (d_value_print): Don't declare.
7945 * d-lang.c (d_language_defn): Update.
7946 * cp-valprint.c (cp_print_value_fields)
7947 (cp_print_value_fields_rtti, cp_print_value): Remove.
7948 (cp_print_static_field): Update.
7949 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7950 (c_val_print_struct, c_val_print_union, c_val_print_int)
7951 (c_val_print_memberptr, c_val_print): Remove.
7952 * c-lang.h (c_val_print_array, cp_print_value_fields)
7953 (cp_print_value_fields_rtti): Don't declare.
7954 * c-lang.c (c_language_defn, cplus_language_defn)
7955 (asm_language_defn, minimal_language_defn): Update.
7956 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7957 (ada_val_print_enum): Take a struct value.
7958 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7959 (ada_val_print): Remove.
7960 (ada_value_print_1): Update.
7961 (printable_val_type): Remove.
7962 * ada-lang.h (ada_val_print): Don't declare.
7963 * ada-lang.c (ada_language_defn): Update.
7964
7965 2020-03-13 Tom Tromey <tom@tromey.com>
7966
7967 * valprint.c (do_val_print): Update.
7968 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7969 a struct value.
7970 (value_to_value_object_no_release): Declare.
7971 * python/py-value.c (value_to_value_object_no_release): New
7972 function.
7973 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7974 struct value.
7975 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7976 function.
7977 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7978 a struct value.
7979 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7980 Declare.
7981 (gdbscm_apply_val_pretty_printer): Take a struct value.
7982 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7983 value.
7984 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7985 value.
7986 * extension-priv.h (struct extension_language_ops)
7987 <apply_val_pretty_printer>: Take a struct value.
7988 * cp-valprint.c (cp_print_value): Create a struct value.
7989 (cp_print_value): Update.
7990
7991 2020-03-13 Tom Tromey <tom@tromey.com>
7992
7993 * ada-valprint.c (print_field_values): Call common_val_print.
7994
7995 2020-03-13 Tom Tromey <tom@tromey.com>
7996
7997 * ada-valprint.c (val_print_packed_array_elements): Remove
7998 bitoffset and val parameters. Call common_val_print.
7999 (ada_val_print_string): Remove offset, address, and original_value
8000 parameters.
8001 (ada_val_print_array): Update.
8002 (ada_value_print_array): New function.
8003 (ada_value_print_1): Call it.
8004
8005 2020-03-13 Tom Tromey <tom@tromey.com>
8006
8007 * ada-valprint.c (ada_value_print): Use common_val_print.
8008
8009 2020-03-13 Tom Tromey <tom@tromey.com>
8010
8011 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8012
8013 2020-03-13 Tom Tromey <tom@tromey.com>
8014
8015 * ada-valprint.c (ada_value_print_num): New function.
8016 (ada_value_print_1): Use it.
8017
8018 2020-03-13 Tom Tromey <tom@tromey.com>
8019
8020 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8021
8022 2020-03-13 Tom Tromey <tom@tromey.com>
8023
8024 * ada-valprint.c (ada_value_print_ptr): New function.
8025 (ada_value_print_1): Use it.
8026
8027 2020-03-13 Tom Tromey <tom@tromey.com>
8028
8029 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8030 call common_val_print.
8031 (ada_val_print_1): Update.
8032 (ada_value_print_1): New function.
8033 (ada_value_print_inner): Rewrite.
8034
8035 2020-03-13 Tom Tromey <tom@tromey.com>
8036
8037 * cp-valprint.c (cp_print_value_fields): Update.
8038 (cp_print_value): New function.
8039
8040 2020-03-13 Tom Tromey <tom@tromey.com>
8041
8042 * m2-valprint.c (m2_value_print_inner): Use
8043 cp_print_value_fields.
8044 * cp-valprint.c (cp_print_value_fields): New function.
8045 * c-valprint.c (c_value_print_struct): New function.
8046 (c_value_print_inner): Use c_value_print_struct.
8047 * c-lang.h (cp_print_value_fields): Declare.
8048
8049 2020-03-13 Tom Tromey <tom@tromey.com>
8050
8051 * c-valprint.c (c_value_print_array): New function.
8052 (c_value_print_inner): Use it.
8053
8054 2020-03-13 Tom Tromey <tom@tromey.com>
8055
8056 * c-valprint.c (c_value_print_memberptr): New function.
8057 (c_value_print_inner): Use it.
8058
8059 2020-03-13 Tom Tromey <tom@tromey.com>
8060
8061 * c-valprint.c (c_value_print_int): New function.
8062 (c_value_print_inner): Use it.
8063
8064 2020-03-13 Tom Tromey <tom@tromey.com>
8065
8066 * c-valprint.c (c_value_print_ptr): New function.
8067 (c_value_print_inner): Use it.
8068
8069 2020-03-13 Tom Tromey <tom@tromey.com>
8070
8071 * c-valprint.c (c_value_print_inner): Rewrite.
8072
8073 2020-03-13 Tom Tromey <tom@tromey.com>
8074
8075 * valprint.c (generic_value_print_complex): New function.
8076 (generic_value_print): Use it.
8077
8078 2020-03-13 Tom Tromey <tom@tromey.com>
8079
8080 * valprint.c (generic_val_print_float): Don't call
8081 val_print_scalar_formatted.
8082 (generic_val_print, generic_value_print): Update.
8083
8084 2020-03-13 Tom Tromey <tom@tromey.com>
8085
8086 * valprint.c (generic_value_print_char): New function
8087 (generic_value_print): Use it.
8088
8089 2020-03-13 Tom Tromey <tom@tromey.com>
8090
8091 * valprint.c (generic_value_print_int): New function.
8092 (generic_value_print): Use it.
8093
8094 2020-03-13 Tom Tromey <tom@tromey.com>
8095
8096 * valprint.c (generic_value_print_bool): New function.
8097 (generic_value_print): Use it.
8098
8099 2020-03-13 Tom Tromey <tom@tromey.com>
8100
8101 * valprint.c (generic_val_print_func): Simplify.
8102 (generic_val_print, generic_value_print): Update.
8103
8104 2020-03-13 Tom Tromey <tom@tromey.com>
8105
8106 * valprint.c (generic_val_print_flags): Remove.
8107 (generic_val_print, generic_value_print): Update.
8108 (val_print_type_code_flags): Add original_value parameter.
8109
8110 2020-03-13 Tom Tromey <tom@tromey.com>
8111
8112 * valprint.c (generic_val_print): Update.
8113 (generic_value_print): Update.
8114 * valprint.c (generic_val_print_enum): Don't call
8115 val_print_scalar_formatted.
8116
8117 2020-03-13 Tom Tromey <tom@tromey.com>
8118
8119 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8120 * valprint.c (generic_value_print_ptr): New function.
8121
8122 2020-03-13 Tom Tromey <tom@tromey.com>
8123
8124 * valprint.c (generic_value_print): Rewrite.
8125
8126 2020-03-13 Tom Tromey <tom@tromey.com>
8127
8128 * p-valprint.c (pascal_object_print_value_fields)
8129 (pascal_object_print_value): New functions.
8130
8131 2020-03-13 Tom Tromey <tom@tromey.com>
8132
8133 * p-valprint.c (pascal_value_print_inner): Rewrite.
8134
8135 2020-03-13 Tom Tromey <tom@tromey.com>
8136
8137 * f-valprint.c (f_value_print_innner): Rewrite.
8138
8139 2020-03-13 Tom Tromey <tom@tromey.com>
8140
8141 * m2-valprint.c (m2_print_unbounded_array): New overload.
8142 (m2_print_unbounded_array): Update.
8143 (m2_print_array_contents): Take a struct value.
8144 (m2_value_print_inner): Rewrite.
8145
8146 2020-03-13 Tom Tromey <tom@tromey.com>
8147
8148 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8149 (d_value_print_inner): New function.
8150 * d-lang.h (d_value_print_inner): Declare.
8151 * d-lang.c (d_language_defn): Use d_value_print_inner.
8152
8153 2020-03-13 Tom Tromey <tom@tromey.com>
8154
8155 * go-valprint.c (go_value_print_inner): New function.
8156 * go-lang.h (go_value_print_inner): Declare.
8157 * go-lang.c (go_language_defn): Use go_value_print_inner.
8158
8159 2020-03-13 Tom Tromey <tom@tromey.com>
8160
8161 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8162 API.
8163 (rust_val_print): Rewrite.
8164 (rust_value_print_inner): New function, from rust_val_print.
8165 (rust_language_defn): Use rust_value_print_inner.
8166
8167 2020-03-13 Tom Tromey <tom@tromey.com>
8168
8169 * ada-valprint.c (ada_value_print_inner): New function.
8170 * ada-lang.h (ada_value_print_inner): Declare.
8171 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8172
8173 2020-03-13 Tom Tromey <tom@tromey.com>
8174
8175 * f-valprint.c (f_value_print_innner): New function.
8176 * f-lang.h (f_value_print_innner): Declare.
8177 * f-lang.c (f_language_defn): Use f_value_print_innner.
8178
8179 2020-03-13 Tom Tromey <tom@tromey.com>
8180
8181 * p-valprint.c (pascal_value_print_inner): New function.
8182 * p-lang.h (pascal_value_print_inner): Declare.
8183 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8184
8185 2020-03-13 Tom Tromey <tom@tromey.com>
8186
8187 * m2-valprint.c (m2_value_print_inner): New function.
8188 * m2-lang.h (m2_value_print_inner): Declare.
8189 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8190
8191 2020-03-13 Tom Tromey <tom@tromey.com>
8192
8193 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8194 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8195 * c-valprint.c (c_value_print_inner): New function.
8196 * c-lang.h (c_value_print_inner): Declare.
8197 * c-lang.c (c_language_defn, cplus_language_defn)
8198 (asm_language_defn, minimal_language_defn): Use
8199 c_value_print_inner.
8200
8201 2020-03-13 Tom Tromey <tom@tromey.com>
8202
8203 * p-valprint.c (pascal_object_print_value_fields): Now static.
8204 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8205
8206 2020-03-13 Tom Tromey <tom@tromey.com>
8207
8208 * c-valprint.c (c_val_print_array): Simplify.
8209
8210 2020-03-13 Tom Tromey <tom@tromey.com>
8211
8212 * valprint.c (value_print_array_elements): New function.
8213 * valprint.h (value_print_array_elements): Declare.
8214
8215 2020-03-13 Tom Tromey <tom@tromey.com>
8216
8217 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8218 * mips-tdep.c (mips_print_register): Use
8219 value_print_scalar_formatted.
8220
8221 2020-03-13 Tom Tromey <tom@tromey.com>
8222
8223 * valprint.h (value_print_scalar_formatted): Declare.
8224 * valprint.c (value_print_scalar_formatted): New function.
8225
8226 2020-03-13 Tom Tromey <tom@tromey.com>
8227
8228 * valprint.h (generic_value_print): Declare.
8229 * valprint.c (generic_value_print): New function.
8230
8231 2020-03-13 Tom Tromey <tom@tromey.com>
8232
8233 * valprint.c (do_val_print): Call la_value_print_inner, if
8234 available.
8235 * rust-lang.c (rust_language_defn): Update.
8236 * p-lang.c (pascal_language_defn): Update.
8237 * opencl-lang.c (opencl_language_defn): Update.
8238 * objc-lang.c (objc_language_defn): Update.
8239 * m2-lang.c (m2_language_defn): Update.
8240 * language.h (struct language_defn) <la_value_print_inner>: New
8241 member.
8242 * language.c (unknown_language_defn, auto_language_defn): Update.
8243 * go-lang.c (go_language_defn): Update.
8244 * f-lang.c (f_language_defn): Update.
8245 * d-lang.c (d_language_defn): Update.
8246 * c-lang.c (c_language_defn, cplus_language_defn)
8247 (asm_language_defn, minimal_language_defn): Update.
8248 * ada-lang.c (ada_language_defn): Update.
8249
8250 2020-03-13 Tom Tromey <tom@tromey.com>
8251
8252 * c-valprint.c (c_value_print): Use common_val_print.
8253
8254 2020-03-13 Tom Tromey <tom@tromey.com>
8255
8256 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8257
8258 2020-03-13 Tom Tromey <tom@tromey.com>
8259
8260 * f-valprint.c (f77_print_array_1, f_val_print): Use
8261 common_val_print.
8262
8263 2020-03-13 Tom Tromey <tom@tromey.com>
8264
8265 * riscv-tdep.c (riscv_print_one_register_info): Use
8266 common_val_print.
8267
8268 2020-03-13 Tom Tromey <tom@tromey.com>
8269
8270 * mi/mi-main.c (output_register): Use common_val_print.
8271
8272 2020-03-13 Tom Tromey <tom@tromey.com>
8273
8274 * infcmd.c (default_print_one_register_info): Use
8275 common_val_print.
8276
8277 2020-03-13 Tom Tromey <tom@tromey.com>
8278
8279 * valprint.h (common_val_print_checked): Declare.
8280 * valprint.c (common_val_print_checked): New function.
8281 * stack.c (print_frame_arg): Use common_val_print_checked.
8282
8283 2020-03-13 Tom Tromey <tom@tromey.com>
8284
8285 * valprint.c (do_val_print): New function, from val_print.
8286 (val_print): Use do_val_print.
8287 (common_val_print): Use do_val_print.
8288
8289 2020-03-13 Tom Tromey <tom@tromey.com>
8290
8291 * valprint.c (value_print): Use scoped_value_mark.
8292
8293 2020-03-13 Tom de Vries <tdevries@suse.de>
8294
8295 PR symtab/25646
8296 * psymtab.c (partial_symtab::partial_symtab): Don't set
8297 globals_offset and statics_offset. Push element onto
8298 current_global_psymbols and current_static_psymbols stacks.
8299 (concat): New function.
8300 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8301 element from current_global_psymbols and current_static_psymbols
8302 stacks. Concat popped elements to global_psymbols and
8303 static_symbols.
8304 (add_psymbol_to_list): Use current_global_psymbols and
8305 current_static_psymbols stacks.
8306 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8307 current_static_psymbols fields.
8308
8309 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8310
8311 * corelow.c (sniff_core_bfd): Remove.
8312 (class core_target) <m_core_vec>: Remove.
8313 (core_target::core_target): Update.
8314 (core_file_fns): Remove.
8315 (deprecated_add_core_fns): Remove.
8316 (default_core_sniffer): Remove.
8317 (sniff_core_bfd): Remove.
8318 (default_check_format): Remove.
8319 (gdb_check_format): Remove.
8320 (core_target_open): Update.
8321 (core_target::get_core_register_section): Update.
8322 (get_core_registers_cb): Update.
8323 (core_target::fetch_registers): Update.
8324 * gdbcore.h (struct core_fns): Remove.
8325 (deprecated_add_core_fns): Remove.
8326 (default_core_sniffer): Remove.
8327 (default_check_format): Remove.
8328
8329 2020-03-12 Tom Tromey <tom@tromey.com>
8330
8331 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8332 CORE_ADDR.
8333 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8334
8335 2020-03-12 Tom Tromey <tom@tromey.com>
8336
8337 * remote.c (remote_target::download_tracepoint)
8338 (remote_target::enable_tracepoint)
8339 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8340 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8341 sprintf_vma.
8342
8343 2020-03-12 Tom Tromey <tom@tromey.com>
8344
8345 * symfile-mem.c: Update CORE_ADDR size assert.
8346
8347 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8348
8349 * selftest.m4: Move to gdbsupport/.
8350 * acinclude.m4: Update path to selftest.m4.
8351
8352 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8353
8354 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8355 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8356 gdbarch-selfselftests.c and selftest-arch.c.
8357 (SUBDIR_UNITTESTS_OBS): Rename to...
8358 (SELFTESTS_OBS): ... this.
8359 (COMMON_SFILES): Remove disasm-selftests.c and
8360 gdbarch-selftests.c.
8361 * configure.ac: Don't add selftest-arch.{c,o} to
8362 CONFIG_{SRCS,OBS}.
8363 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8364 preprocessor conditions.
8365
8366 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8367
8368 * configure.ac: Don't source bfd/development.sh.
8369 * selftest.m4: Modify comment.
8370 * configure: Re-generate.
8371
8372 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8373
8374 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8375 not "true" or "false".
8376 * configure: Re-generate.
8377
8378 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8379
8380 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8381 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8382 renamed to arm_nbsd_supply_gregset.
8383 (fetch_register): Update to call arm_nbsd_supply_gregset.
8384 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8385 (arm_netbsd_nat_target::fetch_registers): Update.
8386 (fetch_elfcore_registers): Removed.
8387 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8388 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8389 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8390 not require NetBSD system headers.
8391 (arm_nbsd_regset): New struct.
8392 (arm_nbsd_iterate_over_regset_sections): New function.
8393 (arm_netbsd_init_abi_common): Updated to call
8394 set_gdbarch_iterate_over_regset_sections.
8395 * arm-nbsd-tdep.h: New file.
8396
8397 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8398
8399 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8400 recursion.
8401
8402 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8403
8404 * configure: Re-generate.
8405
8406 2020-03-11 Tom Tromey <tromey@adacore.com>
8407
8408 * ada-typeprint.c (print_choices): Fix comment.
8409
8410 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8411
8412 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8413 previous item in the list, when the list has no items.
8414
8415 2020-03-11 Tom de Vries <tdevries@suse.de>
8416
8417 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8418 PROP_LOCLIST handling code.
8419
8420 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8421
8422 * buildsym-legacy.c (record_line): Pass extra parameter to
8423 record_line.
8424 * buildsym.c (buildsym_compunit::record_line): Take an extra
8425 parameter, reduce duplication in the line table, and record the
8426 is_stmt flag in the line table.
8427 * buildsym.h (buildsym_compunit::record_line): Add extra
8428 parameter.
8429 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8430 non-statement lines.
8431 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8432 this to the symtab builder.
8433 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8434 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8435 through to dwarf_record_line_1.
8436 * infrun.c (process_event_stop_test): When stepping, don't stop at
8437 a non-statement instruction, and only refresh the step info when
8438 we land in the middle of a line's range. Also add an extra
8439 comment.
8440 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8441 field.
8442 * record-btrace.c (btrace_find_line_range): Only record lines
8443 marked as is-statement.
8444 * stack.c (frame_show_address): Show the frame address if we are
8445 in a non-statement sal.
8446 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8447 (maintenance_print_one_line_table): Print a header for the is_stmt
8448 column, and include is_stmt information in the output.
8449 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8450 preference to non-statements.
8451 (find_pcs_for_symtab_line): Prefer is-statement entries.
8452 (find_line_common): Likewise.
8453 * symtab.h (struct linetable_entry): Add is_stmt field.
8454 (struct symtab_and_line): Likewise.
8455 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8456 arranging the line table.
8457
8458 2020-03-07 Tom de Vries <tdevries@suse.de>
8459
8460 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8461 DIE.
8462
8463 2020-03-07 Tom Tromey <tom@tromey.com>
8464
8465 * valops.c (value_literal_complex): Remove obsolete comment.
8466 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8467 comment.
8468
8469 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8470
8471 * infrun.h: Forward-declare thread_info.
8472 (set_step_info): Add thread_info parameter, add doc.
8473 * infrun.c (set_step_info): Add thread_info parameter, move doc
8474 to header.
8475 * infrun.c (process_event_stop_test): Pass thread to
8476 set_step_info call.
8477 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8478 set_step_info.
8479 (prepare_one_step): Add thread_info parameter, pass it to
8480 set_step_frame and prepare_one_step (recursive) call.
8481 (step_1): Pass thread to prepare_one_step call.
8482 (step_command_fsm::should_stop): Pass thread to
8483 prepare_one_step.
8484 (until_next_fsm): Pass thread to set_step_frame call.
8485 (finish_command): Pass thread to set_step_info call.
8486
8487 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8488
8489 * windows-tdep.c (windows_solib_create_inferior_hook):
8490 Check if inferior is running.
8491
8492 2020-03-06 Tom de Vries <tdevries@suse.de>
8493
8494 * NEWS: Fix "the the".
8495 * ctfread.c: Same.
8496
8497 2020-03-06 Tom de Vries <tdevries@suse.de>
8498
8499 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8500
8501 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8502
8503 * .dir-locals.el: Add a comment referencing the other copies of
8504 this file.
8505
8506 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8507
8508 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8509 psargs.
8510
8511 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8512
8513 * .gitattributes: New file.
8514
8515 2020-03-04 Tom Tromey <tom@tromey.com>
8516
8517 * symmisc.c (print_symbol_bcache_statistics)
8518 (print_objfile_statistics): Update.
8519 * symfile.c (allocate_symtab): Use intern.
8520 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8521 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8522 macro_cache>: Remove.
8523 <string_cache>: New member.
8524 (struct objfile) <intern>: New methods.
8525 * elfread.c (elf_symtab_read): Use intern.
8526 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8527 (dwarf2_compute_name, dwarf2_physname)
8528 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8529 names.
8530 (guess_partial_die_structure_name): Update.
8531 (partial_die_info::fixup): Intern name.
8532 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8533 name.
8534 (dwarf2_name): Intern name. Update.
8535 * buildsym.c (buildsym_compunit::get_macro_table): Use
8536 string_cache.
8537
8538 2020-03-04 Tom Tromey <tom@tromey.com>
8539
8540 * jit.c (bfd_open_from_target_memory): Make "target" const.
8541 * corefile.c (gnutarget): Now const.
8542 * gdbcore.h (gnutarget): Now const.
8543
8544 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8545
8546 * NEWS: Mention support for WOW64 processes.
8547 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8548 (amd64_windows_segment_register_p): Remove static.
8549 (_initialize_amd64_windows_nat): Update.
8550 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8551 * i386-windows-nat.c (context_offset): Update.
8552 (i386_mappings): Rename and remove static.
8553 (i386_windows_segment_register_p): Remove static.
8554 (_initialize_i386_windows_nat): Update.
8555 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8556 (STATUS_WX86_SINGLE_STEP): New macro.
8557 (EnumProcessModulesEx): New macro.
8558 (Wow64SuspendThread): New macro.
8559 (Wow64GetThreadContext): New macro.
8560 (Wow64SetThreadContext): New macro.
8561 (Wow64GetThreadSelectorEntry): New macro.
8562 (windows_set_context_register_offsets): Add static.
8563 (windows_set_segment_register_p): Likewise.
8564 (windows_add_thread): Adapt for WOW64 processes.
8565 (windows_fetch_one_register): Likewise.
8566 (windows_nat_target::fetch_registers): Likewise.
8567 (windows_store_one_register): Likewise.
8568 (display_selector): Likewise.
8569 (display_selectors): Likewise.
8570 (handle_exception): Likewise.
8571 (windows_continue): Likewise.
8572 (windows_nat_target::resume): Likewise.
8573 (windows_add_all_dlls): Likewise.
8574 (do_initial_windows_stuff): Likewise.
8575 (windows_nat_target::attach): Likewise.
8576 (windows_get_exec_module_filename): Likewise.
8577 (windows_nat_target::create_inferior): Likewise.
8578 (windows_xfer_siginfo): Likewise.
8579 (_initialize_loadable): Initialize Wow64SuspendThread,
8580 Wow64GetThreadContext, Wow64SetThreadContext,
8581 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8582 * windows-nat.h (windows_set_context_register_offsets):
8583 Remove declaration.
8584 (windows_set_segment_register_p): Likewise.
8585 (i386_windows_segment_register_p): Add declaration.
8586 (amd64_windows_segment_register_p): Likewise.
8587
8588 2020-03-04 Luis Machado <luis.machado@linaro.org>
8589
8590 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8591 in "info registers" for AArch64/ARM.
8592
8593 The change caused "info registers" to not print GPR's.
8594
8595 gdb/ChangeLog:
8596
8597 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8598
8599 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8600 when reg->group is empty and reggroup is not.
8601
8602 2020-03-03 Tom Tromey <tromey@adacore.com>
8603
8604 * dwarf2/frame.c (struct dwarf2_frame_cache)
8605 <checked_tailcall_bottom, entry_cfa_sp_offset,
8606 entry_cfa_sp_offset_p>: Remove members.
8607 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8608 (dwarf2_frame_prev_register): Don't call
8609 dwarf2_tailcall_sniffer_first.
8610 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8611 * frame-unwind.c (add_unwinder): New fuction.
8612 (frame_unwind_init): Use it. Add tailcall unwinder.
8613
8614 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8615 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8616
8617 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8618 value should be printed as true.
8619
8620 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8621
8622 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8623 (windows_init_abi): Set and use windows_so_ops.
8624
8625 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8626
8627 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8628 when verifying if dealing with a convenience variable.
8629
8630 2020-03-03 Luis Machado <luis.machado@linaro.org>
8631
8632 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8633
8634 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8635
8636 * infrun.c (gdbarch_supports_displaced_stepping): New.
8637 (use_displaced_stepping): Break up conditions in smaller pieces.
8638 Use gdbarch_supports_displaced_stepping.
8639 (displaced_step_prepare_throw): Use
8640 gdbarch_supports_displaced_stepping.
8641
8642 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8643
8644 * NEWS: Mention new behaviour of the history filename.
8645 * top.c (write_history_p): Add comment.
8646 (show_write_history_p): Add header comment, give a different
8647 message when history writing is on, but the history filename is
8648 empty.
8649 (history_filename): Add comment.
8650 (history_filename_empty): New function.
8651 (show_history_filename): Add header comment, give a different
8652 message when the filename is empty.
8653 (init_history): Compare history_filename against nullptr, and only
8654 read history if the filename is not empty.
8655 (set_history_filename): Add header comment, and only make
8656 non-empty filenames absolute.
8657 (init_main): Make the filename argument to 'set history filename'
8658 optional.
8659
8660 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8661
8662 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8663 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8664 (fetch_fp_register): Update.
8665 (fetch_fp_regs): Update.
8666 (store_fp_register): Update.
8667 (store_fp_regs): Update.
8668 (arm_netbsd_nat_target::read_description): New function.
8669 (fetch_elfcore_registers): Update.
8670
8671 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8672
8673 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8674 general_thread if the stop reply is missing a thread-id.
8675 (remote_target::process_stop_reply): Use the first non-exited
8676 thread if the target didn't pass a thread-id.
8677 * infrun.c (do_target_wait): Move call to
8678 switch_to_inferior_no_thread to ....
8679 (do_target_wait_1): ... here.
8680
8681 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8682
8683 * debuginfod-support.c: Include defs.h first.
8684
8685 2020-02-28 Tom de Vries <tdevries@suse.de>
8686
8687 * symfile.c (set_initial_language): Use default language for lookup.
8688
8689 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8690
8691 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8692 reader variable, pass `this` to read_cutu_die_from_dwo.
8693
8694 2020-02-27 Aaron Merey <amerey@redhat.com>
8695
8696 * source.c (open_source_file): Check for nullptr when computing
8697 srcpath.
8698
8699 2020-02-27 Tom Tromey <tromey@adacore.com>
8700
8701 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8702 member.
8703 (dwarf2_add_field): Don't update nfields.
8704 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8705
8706 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8707
8708 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8709 abs.
8710
8711 2020-02-26 Tom Tromey <tom@tromey.com>
8712
8713 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8714 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8715 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8716 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8717 per_cu_data.
8718
8719 2020-02-26 Tom Tromey <tom@tromey.com>
8720
8721 * dwarf2/index-write.c (psym_index_map): Change type.
8722 (add_address_entry_worker, write_one_signatured_type)
8723 (recursively_count_psymbols, recursively_write_psymbols)
8724 (class debug_names, psyms_seen_size, write_gdbindex)
8725 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8726
8727 2020-02-26 Aaron Merey <amerey@redhat.com>
8728
8729 * Makefile.in: Handle optional debuginfod support.
8730 * NEWS: Update.
8731 * README: Add --with-debuginfod summary.
8732 * config.in: Regenerate.
8733 * configure: Regenerate.
8734 * configure.ac: Handle optional debuginfod support.
8735 * debuginfod-support.c: debuginfod helper functions.
8736 * debuginfod-support.h: Ditto.
8737 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8738 summary.
8739 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8740 when a dwz file cannot be found.
8741 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8742 debuginfo file cannot be found.
8743 * source.c (open_source_file): Query debuginfod servers when a
8744 source file cannot be found.
8745 * top.c (print_gdb_configuration): Include
8746 --{with,without}-debuginfod in the output.
8747
8748 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8749
8750 * thread.c (thr_try_catch_cmd): Print thread name.
8751
8752 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8753
8754 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8755 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8756 dwarf2_fetch_die_type_sect_off): Move to...
8757 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8758 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8759 dwarf2_fetch_die_type_sect_off): ... here.
8760 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8761 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8762 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8763
8764 2020-02-26 Tom de Vries <tdevries@suse.de>
8765
8766 PR gdb/25603
8767 * symfile.c (set_initial_language): Exit-early if
8768 language_mode == language_mode_manual.
8769
8770 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8771
8772 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8773 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8774 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8775
8776 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8777
8778 * gdbtypes.c (create_array_type_with_stride): Handle negative
8779 array strides.
8780 * valarith.c (value_subscripted_rvalue): Likewise.
8781
8782 2020-02-25 Luis Machado <luis.machado@linaro.org>
8783
8784 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8785
8786 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8787
8788 * loc.h (dwarf2_get_die_type): Move to...
8789 * read.h (dwarf2_get_die_type): ... here.
8790 * read.c (dwarf2_get_die_type): Move doc to header.
8791
8792 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8793
8794 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8795 'gnulib/Makefile.in' to the list.
8796
8797 2020-02-24 Tom Tromey <tom@tromey.com>
8798
8799 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8800 Remove.
8801 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8802 XOBNEWVEC.
8803
8804 2020-02-24 Tom Tromey <tom@tromey.com>
8805
8806 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8807 New method.
8808 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8809 (dw2_do_instantiate_symtab, dw2_get_file_names)
8810 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8811
8812 2020-02-24 Tom Tromey <tom@tromey.com>
8813
8814 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8815 make_scoped_restore.
8816 (dwarf2_psymtab::read_symtab): Don't clear
8817 reading_partial_symbols.
8818
8819 2020-02-24 Tom de Vries <tdevries@suse.de>
8820
8821 PR gdb/25592
8822 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8823
8824 2020-02-24 Tom de Vries <tdevries@suse.de>
8825
8826 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8827 commands layout next/prev/regs.
8828
8829 2020-02-22 Tom Tromey <tom@tromey.com>
8830
8831 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8832 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8833
8834 2020-02-22 Tom Tromey <tom@tromey.com>
8835
8836 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8837
8838 2020-02-22 Tom Tromey <tom@tromey.com>
8839
8840 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8841 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8842 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8843 * tui/tui.c (_initialize_tui): Add usage text.
8844
8845 2020-02-22 Tom Tromey <tom@tromey.com>
8846
8847 * tui/tui-win.c (tui_set_focus_command)
8848 (tui_set_win_height_command): Use error_no_arg.
8849 (_initialize_tui_win): Update help text.
8850 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8851
8852 2020-02-22 Tom Tromey <tom@tromey.com>
8853
8854 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8855 * tui/tui-disasm.h (struct tui_disasm_window)
8856 <display_start_addr>: Declare.
8857 * tui/tui-source.h (struct tui_source_window)
8858 <display_start_addr>: Declare.
8859 * tui/tui-winsource.h (struct tui_source_window_base)
8860 <show_source_line, display_start_addr>: New methods.
8861 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8862 Rename and move to protected section.
8863 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8864 (tui_source_window_base::do_erase_source_content): Update.
8865 (tui_source_window_base::show_source_line): Now a method.
8866 (tui_source_window_base::show_source_content)
8867 (tui_source_window_base::tui_source_window_base)
8868 (tui_source_window_base::rerender)
8869 (tui_source_window_base::refill)
8870 (tui_source_window_base::do_scroll_horizontal)
8871 (tui_source_window_base::set_is_exec_point_at)
8872 (tui_source_window_base::update_breakpoint_info)
8873 (tui_source_window_base::update_exec_info): Update.
8874 * tui/tui-source.c (tui_source_window::set_contents)
8875 (tui_source_window::showing_source_p)
8876 (tui_source_window::do_scroll_vertical)
8877 (tui_source_window::location_matches_p)
8878 (tui_source_window::line_is_displayed): Update.
8879 (tui_source_window::display_start_addr): New method.
8880 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8881 (tui_disasm_window::do_scroll_vertical)
8882 (tui_disasm_window::location_matches_p): Update.
8883 (tui_disasm_window::display_start_addr): New method.
8884
8885 2020-02-22 Tom Tromey <tom@tromey.com>
8886
8887 * NEWS: Add entry for gdb.register_window_type.
8888 * tui/tui-layout.h (window_factory): New typedef.
8889 (tui_register_window): Declare.
8890 * tui/tui-layout.c (saved_tui_windows): New global.
8891 (tui_apply_current_layout): Use it.
8892 (tui_register_window): New function.
8893 * python/python.c (do_start_initialization): Call
8894 gdbpy_initialize_tui.
8895 (python_GdbMethods): Add "register_window_type" function.
8896 * python/python-internal.h (gdbpy_register_tui_window)
8897 (gdbpy_initialize_tui): Declare.
8898 * python/py-tui.c: New file.
8899 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8900
8901 2020-02-22 Tom Tromey <tom@tromey.com>
8902
8903 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8904
8905 2020-02-22 Tom Tromey <tom@tromey.com>
8906
8907 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8908 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8909 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8910 (tui_set_win_focus_to): Move from tui-win.c.
8911
8912 2020-02-22 Tom Tromey <tom@tromey.com>
8913
8914 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8915 functions.
8916 (known_window_types): New global.
8917 (tui_get_window_by_name): Reimplement.
8918 (initialize_known_windows): New function.
8919 (validate_window_name): Rewrite.
8920 (_initialize_tui_layout): Call initialize_known_windows.
8921
8922 2020-02-22 Tom Tromey <tom@tromey.com>
8923
8924 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8925 Remove constants.
8926 * tui/tui-winsource.h (struct tui_source_window_base)
8927 <tui_source_window_base>: Remove parameter.
8928 * tui/tui-winsource.c
8929 (tui_source_window_base::tui_source_window_base): Remove
8930 parameter.
8931 (tui_source_window_base::refill): Update.
8932 * tui/tui-stack.h (struct tui_locator_window)
8933 <tui_locator_window>: Update.
8934 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8935 Default the constructor.
8936 * tui/tui-regs.h (struct tui_data_item_window)
8937 <tui_data_item_window>: Default the constructor.
8938 (struct tui_data_window) <tui_data_window>: Likewise.
8939 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8940 Default the constructor.
8941 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8942 Default the constructor.
8943 <type>: Remove.
8944 (struct tui_win_info) <tui_win_info>: Default the constructor.
8945 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8946 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8947 Default the constructor.
8948
8949 2020-02-22 Tom Tromey <tom@tromey.com>
8950
8951 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8952 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8953 * tui/tui-win.c (tui_resize_all): Don't call
8954 tui_delete_invisible_windows.
8955 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8956 done.
8957 (tui_set_layout): Update.
8958 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8959 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8960 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8961
8962 2020-02-22 Tom Tromey <tom@tromey.com>
8963
8964 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8965 correctly.
8966
8967 2020-02-22 Tom Tromey <tom@tromey.com>
8968
8969 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8970
8971 2020-02-22 Tom Tromey <tom@tromey.com>
8972
8973 * tui/tui-winsource.h (struct tui_source_window_iterator)
8974 <inner_iterator>: New etytypedef.
8975 <tui_source_window_iterator>: Take "end" parameter.
8976 <tui_source_window_iterator>: Take iterator.
8977 <operator*, advance>: Update.
8978 <m_iter>: Change type.
8979 <m_end>: New field.
8980 (struct tui_source_windows) <begin, end>: Update.
8981 * tui/tui-layout.c (tui_windows): New global.
8982 (tui_apply_current_layout): Clear tui_windows.
8983 (tui_layout_window::apply): Update tui_windows.
8984 * tui/tui-data.h (tui_windows): Declare.
8985 (all_tui_windows): Now inline function.
8986 (class tui_window_iterator, struct all_tui_windows): Remove.
8987
8988 2020-02-22 Tom Tromey <tom@tromey.com>
8989
8990 PR tui/17850:
8991 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8992 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8993 "height" argument.
8994 (class tui_layout_window) <get_sizes>: Likewise.
8995 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8996 argument.
8997 <get_sizes>: Add "height" argument.
8998 <m_vertical>: New field.
8999 * tui/tui-layout.c (tui_layout_split::clone): Update.
9000 (tui_layout_split::get_sizes): Add "height" argument.
9001 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9002 (tui_new_layout_command): Parse "-horizontal".
9003 (_initialize_tui_layout): Update help string.
9004 (tui_layout_split::specification): Add "-horizontal" when needed.
9005 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9006 argument.
9007 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9008 New methods.
9009
9010 2020-02-22 Tom Tromey <tom@tromey.com>
9011
9012 * tui/tui-layout.h (enum tui_adjust_result): New.
9013 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9014 (class tui_layout_window) <adjust_size>: Return
9015 tui_adjust_result. Rewrite.
9016 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9017 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9018
9019 2020-02-22 Tom Tromey <tom@tromey.com>
9020
9021 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9022 parameter and return types.
9023 (class tui_layout_base) <specification>: Add "depth".
9024 (class tui_layout_window) <specification>: Add "depth".
9025 (class tui_layout_split) <specification>: Add "depth".
9026 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9027 and return types.
9028 (tui_new_layout_command): Parse sub-layouts.
9029 (_initialize_tui_layout): Update help string.
9030 (tui_layout_window::specification): Add "depth".
9031 (add_layout_command): Update.
9032
9033 2020-02-22 Tom Tromey <tom@tromey.com>
9034
9035 * NEWS: Add "tui new-layout" item.
9036 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9037 Add new-layout command to help text.
9038 (validate_window_name): New function.
9039 (tui_new_layout_command): New function.
9040 (_initialize_tui_layout): Register "new-layout".
9041 (tui_layout_window::specification): New method.
9042 (tui_layout_window::specification): New method.
9043 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9044 method.
9045 (class tui_layout_window) <specification>: New method.
9046 (class tui_layout_split) <specification>: New method.
9047
9048 2020-02-22 Tom Tromey <tom@tromey.com>
9049
9050 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9051 * tui/tui-win.c (window_name_completer): Update comment.
9052 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9053 Declare method.
9054 (class tui_layout_window) <replace_window>: Likewise.
9055 (class tui_layout_split) <replace_window>: Likewise.
9056 (tui_set_layout): Don't declare.
9057 (tui_set_initial_layout): Declare function.
9058 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9059 (asm_regs_layout): New globals.
9060 (tui_current_layout, show_layout): Remove.
9061 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9062 (find_layout, tui_apply_layout): New function.
9063 (layout_completer): Remove.
9064 (tui_next_layout): Reimplement.
9065 (tui_next_layout_command): New function.
9066 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9067 (tui_regs_layout): Reimplement.
9068 (tui_regs_layout_command): New function.
9069 (extract_display_start_addr): Rewrite.
9070 (next_layout, prev_layout): Remove.
9071 (tui_layout_window::replace_window): New method.
9072 (tui_layout_split::replace_window): New method.
9073 (destroy_layout): New function.
9074 (layout_list): New global.
9075 (add_layout_command): New function.
9076 (initialize_layouts): Update.
9077 (tui_layout_command): New function.
9078 (_initialize_tui_layout): Install "layout" commands.
9079 * tui/tui-data.h (enum tui_layout_type): Remove.
9080 (tui_current_layout): Don't declare.
9081
9082 2020-02-22 Tom Tromey <tom@tromey.com>
9083
9084 * tui/tui-regs.c (tui_reg_layout): Remove.
9085 (tui_reg_command): Use tui_regs_layout.
9086 * tui/tui-layout.h (tui_reg_command): Declare.
9087 * tui/tui-layout.c (tui_reg_command): New function.
9088
9089 2020-02-22 Tom Tromey <tom@tromey.com>
9090
9091 * tui/tui.c (tui_rl_delete_other_windows): Call
9092 tui_remove_some_windows.
9093 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9094 Declare method.
9095 (class tui_layout_window) <remove_windows>: New method.
9096 (class tui_layout_split) <remove_windows>: Declare.
9097 (tui_remove_some_windows): Declare.
9098 * tui/tui-layout.c (tui_remove_some_windows): New function.
9099 (tui_layout_split::remove_windows): New method.
9100
9101 2020-02-22 Tom Tromey <tom@tromey.com>
9102
9103 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9104 * tui/tui-layout.h (tui_next_layout): Declare.
9105 * tui/tui-layout.c (tui_next_layout): New function.
9106
9107 2020-02-22 Tom Tromey <tom@tromey.com>
9108
9109 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9110 correct coordinates.
9111
9112 2020-02-22 Tom Tromey <tom@tromey.com>
9113
9114 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9115 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9116 DATA_WIN case.
9117
9118 2020-02-22 Tom Tromey <tom@tromey.com>
9119
9120 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9121 TUI_DISASM_WIN, not tui_win_list.
9122
9123 2020-02-22 Tom Tromey <tom@tromey.com>
9124
9125 * valprint.c (generic_val_print_enum_1)
9126 (val_print_type_code_flags): Style member names.
9127 * rust-lang.c (val_print_struct, rust_print_enum)
9128 (rust_print_struct_def, rust_internal_print_type): Style member
9129 names.
9130 * p-valprint.c (pascal_object_print_value_fields): Style member
9131 names. Only call fprintf_symbol_filtered for static members.
9132 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9133 * f-valprint.c (f_val_print): Style member names.
9134 * f-typeprint.c (f_type_print_base): Style member names.
9135 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9136 call fprintf_symbol_filtered for static members.
9137 (cp_print_class_member): Style member names.
9138 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9139 member names.
9140 * ada-valprint.c (ada_print_scalar): Style enum names.
9141 (ada_val_print_enum): Likewise.
9142 * ada-typeprint.c (print_enum_type): Style enum names.
9143
9144 2020-02-21 Tom Tromey <tom@tromey.com>
9145
9146 * psympriv.h (struct partial_symtab): Update comment.
9147
9148 2020-02-21 Tom Tromey <tromey@adacore.com>
9149
9150 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9151 type is CORE_ADDR.
9152
9153 2020-02-21 Tom de Vries <tdevries@suse.de>
9154
9155 PR gdb/25534
9156 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9157 if dependencies[i]->user != NULL.
9158
9159 2020-02-21 Ali Tamur <tamur@google.com>
9160
9161 * dwarf2/read.c (dwarf2_name): Add null check.
9162
9163 2020-02-20 Tom Tromey <tom@tromey.com>
9164
9165 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9166 ">=", in binary search.
9167 (dwarf2_find_containing_comp_unit): New overload.
9168 (run_test): New self-test.
9169 (_initialize_dwarf2_read): Register new test.
9170
9171 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9172
9173 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9174 * riscv-tdep.h: Likewise.
9175 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9176 rv32-only CSR.
9177 * features/riscv/64bit-csr.xml: Regenerated.
9178
9179 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9180 Tom Tromey <tom@tromey.com>
9181
9182 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9183 of 'fputc_unfiltered'.
9184 (putchar_unfiltered): Call 'fputc_unfiltered'.
9185 (fputc_unfiltered): Call 'fputs_unfiltered'.
9186
9187 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9188
9189 * config.in: Regenerate.
9190 * configure: Regenerate.
9191 * configure.ac: Add --with-python-libdir option.
9192 * main.c: Use WITH_PYTHON_LIBDIR.
9193
9194 2020-02-19 Tom Tromey <tom@tromey.com>
9195
9196 * symtab.c (general_symbol_info::compute_and_set_names): Use
9197 obstack_strndup. Simplify call to symbol_set_demangled_name.
9198
9199 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9200
9201 * dwarf2/read.c (allocate_signatured_type_table,
9202 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9203 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9204 Remove objfile parameter, update all callers.
9205
9206 2020-02-19 Doug Evans <dje@google.com>
9207
9208 PR rust/25535
9209 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9210 rust_enum_variant calculation.
9211
9212 2020-02-19 Tom Tromey <tromey@adacore.com>
9213
9214 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9215
9216 2020-02-19 Tom Tromey <tromey@adacore.com>
9217
9218 * ada-lang.c (cache_symbol): Use obstack_strdup.
9219
9220 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9221
9222 * configure: Regenerate.
9223
9224 2020-02-19 Tom Tromey <tromey@adacore.com>
9225
9226 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9227 NULL check.
9228
9229 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9230
9231 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9232
9233 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9234
9235 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9236 if GDBSERVER is not defined.
9237 (riscv_tdesc_cache): Likewise, also store const target_desc.
9238 (STATIC_IN_GDB): Define.
9239 (riscv_create_target_description): Update declaration with
9240 STATIC_IN_GDB.
9241 (riscv_lookup_target_description): New function, only define if
9242 GDBSERVER is not defined.
9243 * arch/riscv.h (riscv_create_target_description): Declare only
9244 when GDBSERVER is defined.
9245 (riscv_lookup_target_description): New declaration when GDBSERVER
9246 is not defined.
9247 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9248 (riscv_linux_read_features): ...this, and return
9249 riscv_gdbarch_features instead of target_desc.
9250 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9251 (riscv_linux_read_description): Rename to...
9252 (riscv_linux_read_features): ...this.
9253 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9254 Update to use riscv_gdbarch_features and
9255 riscv_lookup_target_description.
9256 * riscv-tdep.c (riscv_find_default_target_description): Use
9257 riscv_lookup_target_description instead of
9258 riscv_create_target_description.
9259
9260 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9261
9262 * valprint.c (generic_val_print_enum_1): When printing a flag
9263 enum with value 0 and there is no enumerator with value 0, print
9264 just "0" instead of "(unknown: 0x0)".
9265
9266 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9267
9268 * valprint.c (generic_val_print_enum_1): Print unknown part of
9269 flag enum in hex.
9270
9271 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9272
9273 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9274 flag enums to contain duplicate enumerators.
9275 * valprint.c (generic_val_print_enum_1): Update comment.
9276
9277 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9278
9279 * dwarf2/read.c: Include "count-one-bits.h".
9280 (update_enumeration_type_from_children): If an enumerator has
9281 multiple bits set, don't treat the enumeration as a "flag enum".
9282 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9283 of flag enums have 0 or 1 bit set.
9284
9285 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9286
9287 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9288 conversion.
9289 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9290 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9291 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9292 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9293 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9294
9295 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9296
9297 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9298
9299 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9300
9301 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9302 displaced_step_closure_up.
9303 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9304 (struct displaced_step_closure_up):
9305 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9306 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9307 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9308 Likewise.
9309 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9310 * gdbarch.c, gdbarch.h: Re-generate.
9311 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9312 displaced_step_closure_up.
9313 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9314 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9315 * infrun.h (displaced_step_closure_up): New type alias.
9316 (struct displaced_step_inferior_state) <step_closure>: Change
9317 type to displaced_step_closure_up.
9318 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9319 displaced_step_closure_up.
9320 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9321
9322 2020-02-14 Tom Tromey <tom@tromey.com>
9323
9324 * minidebug.c (gnu_debug_key): New global.
9325 (find_separate_debug_file_in_section): Use it.
9326
9327 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9328
9329 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9330 std::unique_ptr.
9331 * gdbarch.c: Re-generate.
9332 * gdbarch.h: Re-generate.
9333 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9334 change.
9335 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9336 type to std::unique_ptr.
9337 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9338 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9339 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9340 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9341 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9342 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9343 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9344 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9345 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9346
9347 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9348
9349 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9350 std::unique_ptr.
9351 (displaced_step_clear): Rename to...
9352 (displaced_step_reset): ... this. Just call displaced->reset ().
9353 (displaced_step_clear_cleanup): Rename to...
9354 (displaced_step_reset_cleanup): ... this.
9355 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9356 (displaced_step_fixup): Likewise.
9357 (resume_1): Likewise.
9358 (handle_inferior_event): Restore child's memory before calling
9359 displaced_step_fixup on the parent.
9360 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9361 to std::unique_ptr.
9362 <step_closure>: Change type to std::unique_ptr.
9363
9364 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9365
9366 * arm-tdep.c: Include count-one-bits.h.
9367 (cleanup_block_store_pc): Use count_one_bits.
9368 (cleanup_block_load_pc): Use count_one_bits.
9369 (arm_copy_block_xfer): Use count_one_bits.
9370 (thumb2_copy_block_xfer): Use count_one_bits.
9371 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9372 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9373 (thumb_get_next_pcs_raw): Use count_one_bits.
9374 (arm_get_next_pcs_raw): Use count_one_bits_l.
9375 * arch/arm.c (bitcount): Remove.
9376 * arch/arm.h (bitcount): Remove.
9377
9378 2020-02-14 Tom Tromey <tromey@adacore.com>
9379
9380 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9381 Update.
9382 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9383 * dwarf2/loc.c (call_site_find_chain_1): Return
9384 unique_xmalloc_ptr.
9385 (call_site_find_chain): Likewise.
9386
9387 2020-02-14 Richard Biener <rguenther@suse.de>
9388
9389 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9390 on expression with division operators.
9391
9392 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9393
9394 * MAINTAINERS (Write After Approval): Adding myself.
9395
9396 2020-02-12 Tom Tromey <tom@tromey.com>
9397
9398 * event-loop.c (event_data, gdb_event, event_handler_func):
9399 Remove.
9400
9401 2020-02-12 Tom Tromey <tom@tromey.com>
9402
9403 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9404 (dwarf2_frame_objfile_data): Add comment.
9405 (find_comp_unit, set_comp_unit): New functions.
9406 (dwarf2_frame_find_fde): Use find_comp_unit.
9407 (dwarf2_build_frame_info): Use set_comp_unit.
9408
9409 2020-02-12 Tom Tromey <tom@tromey.com>
9410
9411 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9412 (comp_unit): Don't initialize objfile.
9413 (execute_cfa_program): Add text_offset parameter.
9414 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9415 (dwarf2_frame_cache): Update.
9416 (dwarf2_build_frame_info): Don't set "objfile" member.
9417
9418 2020-02-12 Tom Tromey <tom@tromey.com>
9419
9420 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9421 (decode_frame_entry): Likewise.
9422 (dwarf2_build_frame_info): Update.
9423
9424 2020-02-12 Tom Tromey <tom@tromey.com>
9425
9426 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9427 (decode_frame_entry_1): Use the comp_unit obstack.
9428
9429 2020-02-12 Tom Tromey <tom@tromey.com>
9430
9431 * dwarf2/frame.c (struct comp_unit): Add initializers and
9432 constructor.
9433 (dwarf2_frame_objfile_data): Store a comp_unit.
9434 (dwarf2_frame_find_fde): Update.
9435 (dwarf2_build_frame_info): Use "new".
9436
9437 2020-02-12 Tom Tromey <tom@tromey.com>
9438
9439 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9440 (dwarf2_fde_table): Typedef for std::vector.
9441 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9442 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9443 (decode_frame_entry): Update.
9444 (dwarf2_build_frame_info): Use "new".
9445
9446 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9447
9448 * arm-tdep.c (arm_gdbarch_init): Update.
9449 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9450 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9451 have_neon, is_m>: Change to bool.
9452
9453 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9454
9455 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9456
9457 2020-02-12 Tom Tromey <tom@tromey.com>
9458
9459 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9460
9461 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9462
9463 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9464 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9465
9466 2020-02-11 Tom Tromey <tom@tromey.com>
9467
9468 * psymtab.h: Update comment.
9469
9470 2020-02-11 Tom Tromey <tom@tromey.com>
9471
9472 * gdb_obstack.h (struct auto_obstack): Use
9473 DISABLE_COPY_AND_ASSIGN.
9474
9475 2020-02-11 Tom Tromey <tom@tromey.com>
9476
9477 * dwarf2/frame.h (struct objfile): Don't forward declare.
9478
9479 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9480
9481 * cris-tdep.c (cris_supply_gregset): Change signature to match
9482 what struct regset expects.
9483 (cris_regset): New struct.
9484 (fetch_core_registers): Remove.
9485 (cris_iterate_over_regset_sections): New function.
9486 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9487 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9488
9489 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9490
9491 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9492 registers.
9493
9494 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9495
9496 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9497
9498 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9499
9500 * configure: Re-generate.
9501
9502 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9503
9504 * configure: Re-generate.
9505
9506 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9507
9508 * acinclude: Update warning.m4 path.
9509 * warning.m4: Move to gdbsupport.
9510
9511 2020-02-11 Tom Tromey <tromey@adacore.com>
9512
9513 * remote.c (remote_console_output): Update.
9514 * printcmd.c (printf_command): Update.
9515 * event-loop.c (gdb_wait_for_event): Update.
9516 * linux-nat.c (sigchld_handler): Update.
9517 * remote-sim.c (gdb_os_write_stdout): Update.
9518 (gdb_os_flush_stdout): Update.
9519 (gdb_os_flush_stderr): Update.
9520 (gdb_os_write_stderr): Update.
9521 * exceptions.c (print_exception): Update.
9522 * remote-fileio.c (remote_fileio_func_read): Update.
9523 (remote_fileio_func_write): Update.
9524 * tui/tui.c (tui_enable): Update.
9525 * tui/tui-interp.c (tui_interp::init): Update.
9526 * utils.c (init_page_info): Update.
9527 (putchar_unfiltered, fputc_unfiltered): Update.
9528 (gdb_flush): Update.
9529 (emit_style_escape): Update.
9530 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9531 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9532 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9533 (stderr_file::write): Update.
9534 (stderr_file::puts): Update.
9535 * ui-file.h (ui_file_isatty, ui_file_write)
9536 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9537 (ui_file_puts): Don't declare.
9538
9539 2020-02-10 Tom de Vries <tdevries@suse.de>
9540
9541 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9542 sentinel to char *.
9543
9544 2020-02-09 Tom de Vries <tdevries@suse.de>
9545
9546 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9547 filename if it matches "<artificial>".
9548
9549 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9550
9551 * windows-tdep.c (struct enum_value_name): New struct.
9552 (create_enum): New function.
9553 (windows_get_siginfo_type): Create and use enum types.
9554
9555 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9556
9557 * NEWS: Mention $_siginfo support for Windows.
9558 * windows-nat.c (handle_exception): Set siginfo_er.
9559 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9560 (windows_xfer_siginfo): New function.
9561 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9562 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9563 (init_windows_gdbarch_data): New function.
9564 (get_windows_gdbarch_data): New function.
9565 (windows_get_siginfo_type): New function.
9566 (windows_init_abi): Register windows_get_siginfo_type.
9567 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9568
9569 2020-02-08 Tom Tromey <tom@tromey.com>
9570
9571 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9572 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9573 <keep>: Declare method.
9574 <m_keep>: Remove member.
9575 <~cutu_reader>: Remove.
9576 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9577 (cutu_reader::cutu_reader): Update.
9578 (cutu_reader::keep): Rename from ~cutu_reader.
9579 (process_psymtab_comp_unit, build_type_psymtabs_1)
9580 (process_skeletonless_type_unit, load_partial_comp_unit)
9581 (load_full_comp_unit, dwarf2_read_addr_index)
9582 (read_signatured_type): Update.
9583
9584 2020-02-08 Tom Tromey <tom@tromey.com>
9585
9586 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9587 "want_partial_unit" parameter.
9588 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9589 Inline check for DW_TAG_partial_unit.
9590 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9591
9592 2020-02-08 Tom Tromey <tom@tromey.com>
9593
9594 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9595 read.c.
9596 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9597 read.c.
9598
9599 2020-02-08 Tom Tromey <tom@tromey.com>
9600
9601 * dwarf2/read.c (read_address): Move to comp-unit.c.
9602 (dwarf2_rnglists_process, dwarf2_ranges_process)
9603 (read_attribute_value, dwarf_decode_lines_1)
9604 (var_decode_location, decode_locdesc): Update.
9605 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9606 read.c. Remove "cu" parameter.
9607 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9608 method.
9609
9610 2020-02-08 Tom Tromey <tom@tromey.com>
9611
9612 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9613 (read_indirect_line_string): Update.
9614 * dwarf2/comp-unit.c (read_offset): Remove.
9615 (read_comp_unit_head): Update.
9616 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9617 method.
9618 (read_offset): Don't declare.
9619
9620 2020-02-08 Tom Tromey <tom@tromey.com>
9621
9622 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9623 * dwarf2/read.c (struct comp_unit_head): Move to
9624 dwarf2/comp-unit.h.
9625 (enum class rcuh_kind): Move to comp-unit.h.
9626 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9627 (read_comp_unit_head, error_check_comp_unit_head)
9628 (read_and_check_comp_unit_head): Move to comp-unit.c.
9629 (read_offset, dwarf_unit_type_name): Likewise.
9630 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9631 (cutu_reader::cutu_reader, read_call_site_scope)
9632 (find_partial_die, follow_die_offset): Update.
9633 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9634
9635 2020-02-08 Tom Tromey <tom@tromey.com>
9636
9637 * dwarf2/read.c (read_offset_1): Move to leb.c.
9638 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9639 (dwarf_decode_macro_bytes): Update.
9640 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9641 * dwarf2/leb.h (read_offset): Declare.
9642
9643 2020-02-08 Tom Tromey <tom@tromey.com>
9644
9645 * dwarf2/read.c (dwarf2_section_size): Remove.
9646 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9647 Update.
9648 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9649
9650 2020-02-08 Tom Tromey <tom@tromey.com>
9651
9652 * dwarf2/read.c (read_initial_length): Move to leb.c.
9653 * dwarf2/leb.h (read_initial_length): Declare.
9654 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9655 handle_nonstd parameter.
9656 * dwarf2/frame.c (read_initial_length): Remove.
9657 (decode_frame_entry_1): Update.
9658
9659 2020-02-08 Tom Tromey <tom@tromey.com>
9660
9661 * dwarf2/loc.c (dwarf2_find_location_expression)
9662 (dwarf_evaluate_loc_desc::get_tls_address)
9663 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9664 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9665 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9666 (dwarf2_compile_property_to_c)
9667 (dwarf2_loc_desc_get_symbol_read_needs)
9668 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9669 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9670 (loclist_describe_location, loclist_tracepoint_var_ref)
9671 (loclist_generate_c_location): Update.
9672 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9673 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9674 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9675 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9676 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9677 (dwarf2_per_cu_data::addr_size)
9678 (dwarf2_per_cu_data::ref_addr_size)
9679 (dwarf2_per_cu_data::text_offset)
9680 (dwarf2_per_cu_data::addr_type): Now methods.
9681 (per_cu_header_read_in): Make per_cu "const".
9682 (dwarf2_version): Remove.
9683 (dwarf2_per_cu_data::int_type): Now a method.
9684 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9685 (set_die_type, read_array_type, read_subrange_index_type)
9686 (read_tag_string_type, read_subrange_type): Update.
9687 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9688 offset_size, ref_addr_size, text_offset, addr_type, version,
9689 objfile, int_type, addr_sized_int_type>: Declare methods.
9690
9691 2020-02-08 Tom Tromey <tom@tromey.com>
9692
9693 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9694 Move earlier.
9695
9696 2020-02-08 Tom Tromey <tom@tromey.com>
9697
9698 * dwarf2/read.h (dwarf_line_debug): Declare.
9699 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9700 * dwarf2/read.c: Move line_header code to new files.
9701 (dwarf_line_debug): No longer static.
9702 * dwarf2/line-header.c: New file.
9703 * dwarf2/line-header.h: New file.
9704
9705 2020-02-08 Tom Tromey <tom@tromey.com>
9706
9707 * dwarf2/read.c (struct line_header) <file_full_name,
9708 file_file_name>: Return unique_xmalloc_ptr.
9709 (line_header::file_file_name): Update.
9710 (line_header::file_full_name): Update.
9711 (dw2_get_file_names_reader): Update.
9712 (macro_start_file): Update.
9713
9714 2020-02-08 Tom Tromey <tom@tromey.com>
9715
9716 * dwarf2/read.c (struct line_header) <file_full_name,
9717 file_file_name>: Declare methods.
9718 (dw2_get_file_names_reader): Update.
9719 (file_file_name): Now a method.
9720 (file_full_name): Likewise.
9721 (macro_start_file): Update.
9722
9723 2020-02-08 Tom Tromey <tom@tromey.com>
9724
9725 * dwarf2/read.c (dwarf_always_disassemble)
9726 (show_dwarf_always_disassemble): Move to loc.c.
9727 (_initialize_dwarf2_read): Move "always-disassemble" registration
9728 to loc.c.
9729 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9730 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9731 static.
9732 (show_dwarf_always_disassemble): Move from read.c.
9733 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9734
9735 2020-02-08 Tom Tromey <tom@tromey.com>
9736
9737 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9738 (create_quick_file_names_table): Return htab_up.
9739 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9740 Update.
9741 * dwarf2/read.h (struct dwarf2_per_objfile)
9742 <quick_file_names_table>: Now htab_up.
9743
9744 2020-02-08 Tom Tromey <tom@tromey.com>
9745
9746 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9747
9748 2020-02-08 Tom Tromey <tom@tromey.com>
9749
9750 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9751 Rewrite.
9752 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9753 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9754 (abbrev_table::abbrev_table): No longer inline.
9755 (ABBREV_HASH_SIZE): Remove.
9756 (abbrev_table::m_abbrevs): Now an htab_up.
9757
9758 2020-02-08 Tom Tromey <tom@tromey.com>
9759
9760 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9761 (cutu_reader): Update.
9762 (build_type_psymtabs_1): Update.
9763 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9764 (abbrev_table::alloc_abbrev): Update.
9765 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9766 (abbrev_table::read): New static method, renamed from
9767 abbrev_table_read_table.
9768 (abbrev_table::alloc_abbrev)
9769 (abbrev_table::add_abbrev): Now private.
9770 (abbrev_table::abbrev_table): Now private.
9771 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9772
9773 2020-02-08 Tom Tromey <tom@tromey.com>
9774
9775 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9776 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9777 htab_up.
9778
9779 2020-02-08 Tom Tromey <tom@tromey.com>
9780
9781 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9782 htab_up.
9783 (lookup_dwo_unit_in_dwp): Update.
9784 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9785 on obstack.
9786
9787 2020-02-08 Tom Tromey <tom@tromey.com>
9788
9789 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9790 obstack.
9791
9792 2020-02-08 Tom Tromey <tom@tromey.com>
9793
9794 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9795 line_header_hash.
9796 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9797 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9798 Change type to htab_up.
9799
9800 2020-02-08 Tom Tromey <tom@tromey.com>
9801
9802 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9803 htab_up. Don't allocate on obstack.
9804 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9805 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9806 Change type to htab_up.
9807
9808 2020-02-08 Tom Tromey <tom@tromey.com>
9809
9810 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9811 Change type to htab_up.
9812 * dwarf2/read.c (create_signatured_type_table_from_index)
9813 (create_signatured_type_table_from_debug_names)
9814 (create_all_type_units, add_type_unit)
9815 (lookup_dwo_signatured_type, lookup_signatured_type)
9816 (process_skeletonless_type_unit): Update.
9817 (create_debug_type_hash_table, create_debug_types_hash_table):
9818 Change type of types_htab.
9819 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9820 htab_up. Don't allocate on obstack.
9821 (create_cus_hash_table): Change type of cus_htab parameter.
9822 (struct dwo_file) <cus, tus>: Now htab_up.
9823 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9824 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9825 (queue_and_load_all_dwo_tus): Update.
9826 * dwarf2/index-write.c (write_gdbindex): Update.
9827 (write_debug_names): Update.
9828
9829 2020-02-08 Tom Tromey <tom@tromey.com>
9830
9831 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9832 dwarf2/read.c. Remove "next" member. Add constructor ntad
9833 destructor.
9834 (struct dwarf2_per_objfile) <queue>: New member.
9835 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9836 dwarf2/read.h.
9837 (dwarf2_queue, dwarf2_queue_tail): Remove.
9838 (class dwarf2_queue_guard): Add parameter to constructor. Use
9839 DISABLE_COPY_AND_ASSIGN.
9840 <m_per_objfile>: New member.
9841 <~dwarf2_queue_guard>: Rewrite.
9842 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9843 Update.
9844 (~dwarf2_queue_item): New.
9845
9846 2020-02-08 Tom Tromey <tom@tromey.com>
9847
9848 * dwarf2/read.c (struct die_info) <has_children>: New member.
9849 (dw2_get_file_names_reader): Remove has_children.
9850 (dw2_get_file_names): Update.
9851 (read_cutu_die_from_dwo): Remove has_children.
9852 (cutu_reader::init_tu_and_read_dwo_dies)
9853 (cutu_reader::cutu_reader): Update.
9854 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9855 Remove has_children.
9856 (build_type_psymtabs_1, process_skeletonless_type_unit)
9857 (load_partial_comp_unit, load_full_comp_unit): Update.
9858 (create_dwo_cu_reader): Remove has_children.
9859 (create_cus_hash_table, read_die_and_children): Update.
9860 (read_full_die_1,read_full_die): Remove has_children.
9861 (read_signatured_type): Update.
9862 (class cutu_reader) <has_children>: Remove.
9863
9864 2020-02-08 Tom Tromey <tom@tromey.com>
9865
9866 * dwarf2/expr.c: Rename from dwarf2expr.c.
9867 * dwarf2/expr.h: Rename from dwarf2expr.h.
9868 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9869 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9870 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9871 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9872 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9873 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9874 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9875 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9876 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9877 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9878 * dwarf2/loc.c: Rename from dwarf2loc.c.
9879 * dwarf2/loc.h: Rename from dwarf2loc.h.
9880 * dwarf2/read.c: Rename from dwarf2read.c.
9881 * dwarf2/read.h: Rename from dwarf2read.h.
9882 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9883 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9884 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9885 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9886 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9887 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9888 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9889 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9890 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9891 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9892 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9893 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9894 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9895 Update.
9896 * Makefile.in (COMMON_SFILES): Update.
9897 (HFILES_NO_SRCDIR): Update.
9898
9899 2020-02-08 Tom Tromey <tom@tromey.com>
9900
9901 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9902 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9903
9904 2020-02-08 Tom Tromey <tom@tromey.com>
9905
9906 * dwarf2read.h (struct die_info): Don't declare.
9907
9908 2020-02-08 Tom Tromey <tom@tromey.com>
9909
9910 * dwarf2read.h (die_info_ptr): Remove typedef.
9911
9912 2020-02-08 Tom Tromey <tom@tromey.com>
9913
9914 * dwarf2read.c (read_call_site_scope)
9915 (handle_data_member_location, dwarf2_add_member_fn)
9916 (mark_common_block_symbol_computed, read_common_block)
9917 (attr_to_dynamic_prop, partial_die_info::read)
9918 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9919 (dwarf2_symbol_mark_computed, set_die_type): Update.
9920 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9921 method.
9922 (attr_form_is_block): Don't declare.
9923 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9924
9925 2020-02-08 Tom Tromey <tom@tromey.com>
9926
9927 * dwarf2read.c (dwarf2_find_base_address, )
9928 (read_call_site_scope, rust_containing_type)
9929 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9930 (handle_data_member_location, dwarf2_add_member_fn)
9931 (get_alignment, read_structure_type, process_structure_scope)
9932 (mark_common_block_symbol_computed, read_common_block)
9933 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9934 (partial_die_info::read, read_attribute_value, new_symbol)
9935 (lookup_die_type, dwarf2_get_ref_die_offset)
9936 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9937 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9938 (dwarf2_symbol_mark_computed): Update.
9939 * dwarf2/attribute.h (struct attribute) <value_as_address,
9940 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9941 methods.
9942 (value_as_address, attr_form_is_section_offset)
9943 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9944 * dwarf2/attribute.c (attribute::value_as_address)
9945 (attribute::form_is_section_offset, attribute::form_is_constant)
9946 (attribute::form_is_ref): Now methods.
9947
9948 2020-02-08 Tom Tromey <tom@tromey.com>
9949
9950 * dwarf2read.c (struct attribute, DW_STRING)
9951 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9952 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9953 (attr_form_is_block, attr_form_is_section_offset)
9954 (attr_form_is_constant, attr_form_is_ref): Move.
9955 * dwarf2/attribute.h: New file.
9956 * dwarf2/attribute.c: New file, from dwarf2read.c.
9957 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9958
9959 2020-02-08 Tom Tromey <tom@tromey.com>
9960
9961 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9962 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9963 Move.
9964 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9965 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9966 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9967 abbrev.c.
9968 * dwarf2/abbrev.h: New file.
9969 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9970 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9971
9972 2020-02-08 Tom Tromey <tom@tromey.com>
9973
9974 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9975 (dwarf2_section_size, dwarf2_get_section_info)
9976 (create_signatured_type_table_from_debug_names)
9977 (create_addrmap_from_aranges, read_debug_names_from_section)
9978 (get_gdb_index_contents_from_section, read_comp_unit_head)
9979 (error_check_comp_unit_head, read_abbrev_offset)
9980 (create_debug_type_hash_table, init_cu_die_reader)
9981 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9982 (read_comp_units_from_section, create_cus_hash_table)
9983 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9984 (create_dwp_v2_section, dwarf2_rnglists_process)
9985 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9986 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9987 (read_indirect_string_from_dwz, read_addr_index_1)
9988 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9989 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9990 (fill_in_loclist_baton): Update.
9991 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9992 get_containing_section, get_bfd_owner, get_bfd_section,
9993 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9994 (dwarf2_read_section, get_section_name, get_section_file_name)
9995 (get_containing_section, get_section_bfd_owner)
9996 (get_section_bfd_section, get_section_name, get_section_file_name)
9997 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9998 declare.
9999 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10000 (dwarf2_section_info::get_bfd_owner)
10001 (dwarf2_section_info::get_bfd_section)
10002 (dwarf2_section_info::get_name)
10003 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10004 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10005 (dwarf2_section_info::read): Now methods.
10006 * dwarf-index-write.c (class debug_names): Update.
10007
10008 2020-02-08 Tom Tromey <tom@tromey.com>
10009
10010 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10011 Move to dwarf2/section.h.
10012 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10013 (get_section_bfd_section, get_section_name)
10014 (get_section_file_name, get_section_id, get_section_flags)
10015 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10016 dwarf2/section.c.
10017 * dwarf2/section.h: New file.
10018 * dwarf2/section.c: New file, from dwarf2read.c.
10019 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10020
10021 2020-02-08 Tom Tromey <tom@tromey.com>
10022
10023 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10024 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10025 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10026 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10027 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10028 * dwarf2/leb.h: New file, from dwarf2read.c.
10029 * dwarf2/leb.c: New file, from dwarf2read.c.
10030 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10031 Remove.
10032 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10033 (COMMON_SFILES): Add dwarf2/leb.c.
10034
10035 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10036
10037 GDB 9.1 released.
10038
10039 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10040
10041 PR gdb/25190:
10042 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10043 * gdb/remote.c (remote_console_output): Update.
10044 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10045 (ui_file_puts): ...this.
10046 * gdb/ui-file.h (ui_file_puts): Add declaration.
10047 * gdb/utils.c (emit_style_escape): Update.
10048 (flush_wrap_buffer): Update.
10049 (fputs_maybe_filtered): Update.
10050 (fputs_unfiltered): Add function.
10051
10052 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10053
10054 * gdb/event-loop.c (gdb_wait_for_event): Update.
10055 * gdb/printcmd.c (printf_command): Update.
10056 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10057 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10058 (gdb_os_flush_stderr): Update.
10059 * gdb/remote.c (remote_console_output): Update.
10060 * gdb/ui-file.c (gdb_flush): Rename to...
10061 (ui_file_flush): ...this.
10062 (stderr_file::write): Update.
10063 (stderr_file::puts): Update.
10064 * gdb/ui-file.h (gdb_flush): Rename to...
10065 (ui_file_flush): ...this.
10066 * gdb/utils.c (gdb_flush): Add function.
10067 * gdb/utils.h (gdb_flush): Add declaration.
10068
10069 2020-02-07 Tom Tromey <tromey@adacore.com>
10070
10071 PR breakpoints/24915:
10072 * source.c (find_and_open_source): Do not check basenames_may_differ.
10073
10074 2020-02-07 Tom Tromey <tom@tromey.com>
10075
10076 * README: Update gdbserver documentation.
10077 * gdbserver: Move to top level.
10078 * configure.tgt (build_gdbserver): Remove.
10079 * configure.ac: Remove --enable-gdbserver.
10080 * configure: Rebuild.
10081 * Makefile.in (distclean): Don't mention gdbserver.
10082
10083 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10084
10085 * source-cache.c (source_cache::ensure): Surround
10086 get_plain_source_lines with a try/catch.
10087 (source_cache::get_line_charpos): Get rid of try/catch
10088 and only check for the return value of "ensure".
10089 * tui/tui-source.c (tui_source_window::set_contents):
10090 Simplify "nlines" calculation.
10091
10092 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10093
10094 * MAINTAINERS (Write After Approval): Add myself.
10095
10096 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10097
10098 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10099 function call.
10100
10101 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10102
10103 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10104
10105 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10106
10107 * nat/riscv-linux-tdesc.h: New file.
10108 * nat/riscv-linux-tdesc.c: New file, taking code from...
10109 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10110 ... here.
10111 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10112 NATDEPFILES.
10113
10114 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10115
10116 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10117 we don't set the fake simulator ptid to the null_ptid.
10118
10119 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10120
10121 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10122 * gdbthread.h (class thread_info) <resumed>: Likewise.
10123 * infrun.c (resume_1): Likewise.
10124 (proceed): Likewise.
10125 (infrun_thread_stop_requested): Likewise.
10126 (stop_all_threads): Likewise.
10127 (handle_inferior_event): Likewise.
10128 (restart_threads): Likewise.
10129 (finish_step_over): Likewise.
10130 (keep_going_stepped_thread): Likewise.
10131 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10132 (linux_handle_extended_wait): Likewise.
10133 * record-btrace.c (get_thread_current_frame_id): Likewise.
10134 * record-full.c (record_full_wait_1): Likewise.
10135 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10136 * target.c (target_resume): Likewise.
10137 * thread.c (set_running_thread): Likewise.
10138
10139 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10140
10141 * f-valprint.c (f77_print_array_1): Changed datatype of index
10142 variable to LONGEST from int to enable it to contain bound
10143 values correctly.
10144
10145 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10146
10147 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10148 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10149 offsets according to FLEN determined.
10150 (riscv_linux_nat_target::read_description): Determine FLEN
10151 dynamically.
10152 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10153 according to FLEN determined.
10154 (riscv_linux_nat_target::store_registers): Likewise.
10155
10156 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10157
10158 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10159 when reg->group is empty and reggroup is not.
10160
10161 2020-01-31 Tom Tromey <tromey@adacore.com>
10162
10163 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10164 Call beneath target's mourn_inferior after unpushing.
10165
10166 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10167
10168 PR tui/9765
10169 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10170 have enough lines to fill the screen, still return the lowest
10171 address we found.
10172
10173 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10174
10175 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10176 '-', '<', and '>' commands.
10177
10178 2020-01-29 Pedro Alves <palves@redhat.com>
10179 Sergio Durigan Junior <sergiodj@redhat.com>
10180
10181 * infcmd.c (construct_inferior_arguments): Assert that
10182 'argc' is greater than 0.
10183
10184 2020-01-29 Luis Machado <luis.machado@linaro.org>
10185
10186 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10187 (BRK_INSN_MASK): Define to 0xd4200000.
10188 (aarch64_program_breakpoint_here_p): New function.
10189 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10190 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10191 breakpoint.c.
10192 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10193 breakpoint.h
10194 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10195 call gdbarch_program_breakpoint_here_p.
10196 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10197 default_program_breakpoint_here_p, changed return type to bool and
10198 simplified.
10199 * breakpoint.h (program_breakpoint_here): Moved prototype to
10200 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10201 return type to bool.
10202 * gdbarch.c: Regenerate.
10203 * gdbarch.h: Regenerate.
10204 * gdbarch.sh (program_breakpoint_here_p): New method.
10205 * infrun.c (handle_signal_stop): Call
10206 gdbarch_program_breakpoint_here_p.
10207
10208 2020-01-26 Tom Tromey <tom@tromey.com>
10209
10210 * ctfread.c (struct ctf_fp_info): Reindent.
10211 (_initialize_ctfread): Remove.
10212
10213 2020-01-26 Tom Tromey <tom@tromey.com>
10214
10215 * psymtab.c (partial_map_expand_apply)
10216 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10217 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10218 (psym_print_stats, psym_expand_symtabs_for_function)
10219 (psym_map_symbol_filenames, psym_map_matching_symbols)
10220 (psym_expand_symtabs_matching)
10221 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10222 (maintenance_check_psymtabs): Use new methods.
10223 * psympriv.h (struct partial_symtab) <readin_p,
10224 get_compunit_symtab>: New methods.
10225 <readin, compunit_symtab>: Remove members.
10226 (struct standard_psymtab): New.
10227 (struct legacy_psymtab): Derive from standard_psymtab.
10228 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10229 standard_psymtab.
10230 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10231
10232 2020-01-26 Tom Tromey <tom@tromey.com>
10233
10234 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10235 read_dependencies. Add assert.
10236 * psymtab.c (partial_symtab::read_dependencies): New method.
10237 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10238 method.
10239 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10240 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10241 read_dependencies.
10242 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10243 Add assert.
10244
10245 2020-01-26 Tom Tromey <tom@tromey.com>
10246
10247 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10248 Call expand_psymtab.
10249 (xcoff_read_symtab): Call expand_psymtab.
10250 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10251 legacy_expand_psymtab.
10252 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10253 method.
10254 (struct legacy_psymtab) <expand_psymtab>: Implement.
10255 <legacy_expand_psymtab>: New member.
10256 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10257 (parse_partial_symbols): Set legacy_expand_psymtab.
10258 (psymtab_to_symtab_1): Change argument order. Call
10259 expand_psymtab.
10260 (new_psymtab): Set legacy_expand_psymtab.
10261 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10262 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10263 expand_psymtab.
10264 (dwarf2_psymtab::expand_psymtab): Rename from
10265 psymtab_to_symtab_1. Call expand_psymtab.
10266 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10267 (dbx_end_psymtab): Likewise.
10268 (dbx_psymtab_to_symtab_1): Change argument order. Call
10269 expand_psymtab.
10270 (dbx_read_symtab): Call expand_psymtab.
10271 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10272 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10273 (ctf_psymtab::read_symtab): Call expand_psymtab.
10274
10275 2020-01-26 Tom Tromey <tom@tromey.com>
10276
10277 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10278 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10279 messages.
10280 * mdebugread.c (mdebug_read_symtab): Remove prints.
10281 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10282 assert.
10283 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10284
10285 2020-01-26 Tom Tromey <tom@tromey.com>
10286
10287 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10288 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10289 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10290 legacy_symtab.
10291 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10292 * psymtab.c (psymtab_to_symtab): Call method.
10293 (dump_psymtab): Update.
10294 * psympriv.h (struct partial_symtab): Add virtual destructor.
10295 <read_symtab>: New method.
10296 (struct legacy_symtab): New.
10297 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10298 (struct pst_map) <pst>: Now a legacy_psymtab.
10299 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10300 (new_psymtab): Use legacy_psymtab.
10301 * dwarf2read.h (struct dwarf2_psymtab): New.
10302 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10303 * dwarf2read.c (dwarf2_create_include_psymtab)
10304 (dwarf2_build_include_psymtabs, create_type_unit_group)
10305 (create_partial_symtab, process_psymtab_comp_unit_reader)
10306 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10307 (set_partial_user): Use dwarf2_psymtab.
10308 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10309 (psymtab_to_symtab_1, process_full_comp_unit)
10310 (process_full_type_unit, dwarf2_ranges_read)
10311 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10312 (dwarf_decode_lines): Use dwarf2_psymtab.
10313 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10314 (add_address_entry_worker, write_one_signatured_type)
10315 (recursively_count_psymbols, recursively_write_psymbols)
10316 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10317 (write_debug_names): Likewise.
10318 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10319 <pst>: Now a legacy_psymtab.
10320 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10321 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10322 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10323 * ctfread.c (struct ctf_psymtab): New.
10324 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10325 ctf_psymtab.
10326 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10327 (create_partial_symtab): Return a ctf_psymtab.
10328 (scan_partial_symbols): Update.
10329
10330 2020-01-26 Tom Tromey <tom@tromey.com>
10331
10332 * xcoffread.c (xcoff_start_psymtab): Use new.
10333 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10334 renamed from start_psymtab_common.
10335 * psympriv.h (struct partial_symtab): Add new constructor.
10336 (start_psymtab_common): Don't declare.
10337 * mdebugread.c (parse_partial_symbols): Use new.
10338 * dwarf2read.c (create_partial_symtab): Use new.
10339 * dbxread.c (start_psymtab): Use new.
10340 * ctfread.c (create_partial_symtab): Use new.
10341
10342 2020-01-26 Tom Tromey <tom@tromey.com>
10343
10344 * xcoffread.c (xcoff_end_psymtab): Use new.
10345 * psymtab.c (start_psymtab_common): Use new.
10346 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10347 Update.
10348 * psympriv.h (struct partial_symtab): Add parameters to
10349 constructor. Don't inline.
10350 (allocate_psymtab): Don't declare.
10351 * mdebugread.c (new_psymtab): Use new.
10352 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10353 * dbxread.c (dbx_end_psymtab): Use new.
10354
10355 2020-01-26 Tom Tromey <tom@tromey.com>
10356
10357 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10358 allocate_psymtab. Update documentation.
10359 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10360 allocate_psymtab. Do not use new.
10361 (allocate_psymtab): Use new. Update.
10362
10363 2020-01-26 Tom Tromey <tom@tromey.com>
10364
10365 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10366 * psymtab.c (psym_print_stats): Update.
10367 * psympriv.h (struct partial_symtab) <readin,
10368 psymtabs_addrmap_supported, anonymous>: Now bool.
10369 * mdebugread.c (psymtab_to_symtab_1): Update.
10370 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10371 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10372 (process_full_comp_unit, process_full_type_unit): Update.
10373 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10374 * ctfread.c (psymtab_to_symtab): Update.
10375
10376 2020-01-26 Tom Tromey <tom@tromey.com>
10377
10378 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10379 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10380 * psymtab.c (psymtab_storage): Delete psymtabs.
10381 (psymtab_storage::allocate_psymtab): Use new.
10382 (psymtab_storage::discard_psymtab): Use delete.
10383 * psympriv.h (struct partial_symtab): Add constructor and
10384 initializers.
10385
10386 2020-01-26 Tom Tromey <tom@tromey.com>
10387
10388 * machoread.c: Do not include psympriv.h.
10389
10390 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10391
10392 * NEWS: Mention the new option and the set/show commands.
10393
10394 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10395
10396 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10397 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10398 (validate_exec_file): New variables, enums, functions.
10399 (exec_file_locate_attach, print_section_info): Style the filenames.
10400 (_initialize_exec): Install show_exec_file_mismatch_command and
10401 set_exec_file_mismatch_command.
10402 * gdbcore.h (validate_exec_file): Declare.
10403 * infcmd.c (attach_command): Call validate_exec_file.
10404 * remote.c ( remote_target::remote_add_inferior): Likewise.
10405
10406 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10407
10408 * frame.c (find_frame_sal): Move call to get_next_frame into more
10409 inner scope.
10410 * inline-frame.c (inilne_state) <inline_state>: Update argument
10411 types.
10412 (inilne_state) <skipped_symbol>: Rename to...
10413 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10414 (skip_inline_frames): Build vector of skipped symbols and use this
10415 to reate the inline_state.
10416 (inline_skipped_symbol): Add a comment and some assertions, fetch
10417 skipped symbol from the list.
10418
10419 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10420
10421 * buildsym.c (lte_is_less_than): Delete.
10422 (buildsym_compunit::end_symtab_with_blockvector): Create local
10423 lambda function to sort line table entries, and use
10424 std::stable_sort instead of std::sort.
10425 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10426 markers when looking for a previous line.
10427
10428 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10429
10430 * dwarf2read.c (lnp_state_machine::record_line): Include
10431 end_sequence parameter in debug print out. Record the line if we
10432 are at an end_sequence marker even if it's not the start of a
10433 statement.
10434 * symmisc.c (maintenance_print_one_line_table): Print end of
10435 sequence markers with 'END' not '0'.
10436
10437 2020-01-24 Pedro Alves <palves@redhat.com>
10438
10439 PR gdb/25410
10440 * thread.c (scoped_restore_current_thread::restore): Use
10441 switch_to_inferior_no_thread.
10442 * exec.c: Include "progspace-and-thread.h".
10443 (add_target_sections, remove_target_sections):
10444 scoped_restore_current_pspace_and_thread instead of
10445 scoped_restore_current_thread.
10446 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10447 and aspace to the inferior before calling clone_program_space.
10448 Remove stale comment.
10449
10450 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10451
10452 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10453 (arm_netbsd_nat_target::fetch_registers): ...this.
10454 (arm_nbsd_nat_target::store_registers): Rename to...
10455 (arm_netbsd_nat_target::store_registers): ...this.
10456
10457 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10458
10459 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10460 register_t.
10461
10462 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10463
10464 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10465 Update comment.
10466 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10467 Likewise.
10468 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10469 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10470 the correct replacement (iterate_over_regset_sections).
10471 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10472 Update comment.
10473
10474 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10475
10476 PR gdb/23718
10477 * gdb/python/python.c (execute_gdb_command): Call
10478 async_enable_stdin in catch block.
10479
10480 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10481
10482 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10483 SWITCH_THRU_ALL_UIS.
10484
10485 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10486
10487 PR tui/9765
10488 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10489 comment, add extra parameter, and update to store previous symbol
10490 when appropriate.
10491 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10492 add extra parameter.
10493 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10494 remove unneeded parameter, add try/catch around gdb_print_insn,
10495 rewrite to add items to asm_lines vector.
10496 (tui_find_backward_disassembly_start_address): New function.
10497 (tui_find_disassembly_address): Updated throughout.
10498 (tui_disasm_window::set_contents): Update for changes to
10499 tui_disassemble.
10500 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10501 number of lines to scroll.
10502
10503 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10504
10505 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10506 (SECT_OFF_DATA): Likewise.
10507 (SECT_OFF_RODATA): Likewise.
10508 (SECT_OFF_TEXT): Likewise.
10509 (SECT_OFF_BSS): Likewise.
10510 (struct objfile) <text_section_offset, data_section_offset>: New
10511 methods.
10512 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10513 objfile::text_section_offset.
10514 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10515 * coffread.c (coff_symtab_read): Likewise.
10516 (enter_linenos): Likewise.
10517 (process_coff_symbol): Likewise.
10518 * ctfread.c (get_objfile_text_range): Likewise.
10519 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10520 Use objfile::data_section_offset.
10521 * dwarf2-frame.c (execute_cfa_program): Use
10522 objfile::text_section_offset.
10523 (dwarf2_frame_find_fde): Likewise.
10524 * dwarf2read.c (create_addrmap_from_index): Likewise.
10525 (create_addrmap_from_aranges): Likewise.
10526 (dw2_find_pc_sect_compunit_symtab): Likewise.
10527 (process_psymtab_comp_unit_reader): Likewise.
10528 (add_partial_symbol): Likewise.
10529 (add_partial_subprogram): Likewise.
10530 (process_full_comp_unit): Likewise.
10531 (read_file_scope): Likewise.
10532 (read_func_scope): Likewise.
10533 (read_lexical_block_scope): Likewise.
10534 (read_call_site_scope): Likewise.
10535 (dwarf2_rnglists_process): Likewise.
10536 (dwarf2_ranges_process): Likewise.
10537 (dwarf2_ranges_read): Likewise.
10538 (dwarf_decode_lines_1): Likewise.
10539 (new_symbol): Likewise.
10540 (dwarf2_fetch_die_loc_sect_off): Likewise.
10541 (dwarf2_per_cu_text_offset): Likewise.
10542 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10543 * hppa-tdep.c (read_unwind_info): Likewise.
10544 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10545 * psympriv.h (struct partial_symtab): Likewise.
10546 * psymtab.c (find_pc_sect_psymtab): Likewise.
10547 * solib-svr4.c (enable_break): Likewise.
10548 * stap-probe.c (relocate_address): Use
10549 objfile::data_section_offset.
10550 * xcoffread.c (enter_line_range): Use
10551 objfile::text_section_offset.
10552 (read_xcoff_symtab): Likewise.
10553
10554 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10555
10556 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10557 declaration to narrower scopes.
10558
10559 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10560
10561 * darwin-nat.h (struct darwin_exception_msg, enum
10562 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10563 Move up.
10564 (class darwin_nat_target) <wait_1, check_new_threads,
10565 decode_exception_message, decode_message, stop_inferior,
10566 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10567 * darwin-nat.c (darwin_check_new_threads): Rename to...
10568 (darwin_nat_target::check_new_threads): ... this.
10569 (darwin_suspend_inferior_it): Remove.
10570 (darwin_decode_exception_message): Rename to...
10571 (darwin_nat_target::decode_exception_message): ... this.
10572 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10573 (darwin_decode_message): Rename to...
10574 (darwin_nat_target::decode_message): ... this.
10575 (cancel_breakpoint): Rename to...
10576 (darwin_nat_target::cancel_breakpoint): ... this.
10577 (darwin_wait): Rename to...
10578 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10579 instead of iterate_over_inferiors.
10580 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10581 (darwin_stop_inferior): Rename to...
10582 (darwin_nat_target::stop_inferior): ... this.
10583 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10584 (darwin_init_thread_list): Rename to...
10585 (darwin_nat_target::init_thread_list): ... this.
10586 (darwin_ptrace_him): Rename to...
10587 (darwin_nat_target::ptrace_him): ... this.
10588 (darwin_nat_target::create_inferior): Pass lambda function to
10589 fork_inferior.
10590 (darwin_nat_target::detach): Call stop_inferior instead of
10591 darwin_stop_inferior.
10592 * fork-inferior.h (fork_inferior): Change init_trace_fun
10593 parameter to gdb::function_view.
10594 * fork-inferior.c (fork_inferior): Likewise.
10595
10596 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10597
10598 * i386-cygwin-tdep.c (core_process_module_section): Update.
10599 * windows-nat.c (struct lm_info_windows): Add text_offset.
10600 (windows_xfer_shared_libraries): Update.
10601 * windows-tdep.c (windows_xfer_shared_library):
10602 Add text_offset_cached argument.
10603 * windows-tdep.h (windows_xfer_shared_library): Update.
10604
10605 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10606
10607 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10608
10609 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10610
10611 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10612 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10613 replace with range-based for.
10614 (gdbsim_interrupt_inferior): Remove.
10615 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10616 with a range-based for. Inline code from
10617 gdbsim_interrupt_inferior.
10618
10619 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10620
10621 * infrun.c (proceed): Fix indentation.
10622
10623 2020-01-21 Tom Tromey <tromey@adacore.com>
10624
10625 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10626 * python/python.c (python_extension_ops): Update.
10627 (gdbpy_colorize): New function.
10628 * python/lib/gdb/__init__.py (colorize): New function.
10629 * extension.h (ext_lang_colorize): Declare.
10630 * extension.c (ext_lang_colorize): New function.
10631 * extension-priv.h (struct extension_language_ops) <colorize>: New
10632 member.
10633 * cli/cli-style.c (_initialize_cli_style): Update help text.
10634
10635 2020-01-21 Luis Machado <luis.machado@linaro.org>
10636
10637 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10638 <cond>: Change type to bool.
10639 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10640 (aarch64_displaced_step_cb): Likewise.
10641 (aarch64_displaced_step_tb): Likewise.
10642
10643 2020-01-21 Luis Machado <luis.machado@linaro.org>
10644
10645 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10646 output.
10647
10648 2020-01-21 Luis Machado <luis.machado@linaro.org>
10649
10650 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10651 <pc_adjust>: Adjust the documentation.
10652 (aarch64_displaced_step_fixup): Check if PC really moved before
10653 adjusting it.
10654
10655 2020-01-19 Tom Tromey <tom@tromey.com>
10656
10657 * disasm.c (~gdb_disassembler): New destructor.
10658 (gdb_buffered_insn_length): Call disassemble_free_target.
10659 * disasm.h (class gdb_disassembler): Declare destructor. Use
10660 DISABLE_COPY_AND_ASSIGN.
10661
10662 2020-01-19 Tom Tromey <tom@tromey.com>
10663
10664 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10665 (die_reader_func_ftype): Remove.
10666 (cutu_reader): New class.
10667 (dw2_get_file_names_reader): Remove "data" parameter.
10668 (dw2_get_file_names): Use cutu_reader.
10669 (create_debug_type_hash_table): Update.
10670 (read_cutu_die_from_dwo): Update comment.
10671 (lookup_dwo_unit): Add dwo_name parameter.
10672 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10673 die_reader_func_ftype and data parameters.
10674 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10675 Remove die_reader_func_ftype and data parameters.
10676 (~cutu_reader): New; from init_cutu_and_read_dies.
10677 (cutu_reader::cutu_reader): Rename from
10678 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10679 and data parameters.
10680 (init_cutu_and_read_dies_simple): Remove.
10681 (struct process_psymtab_comp_unit_data): Remove.
10682 (process_psymtab_comp_unit_reader): Remove data parameter; add
10683 want_partial_unit and pretend_language parameters.
10684 (process_psymtab_comp_unit): Use cutu_reader.
10685 (build_type_psymtabs_reader): Remove data parameter.
10686 (build_type_psymtabs_1): Use cutu_reader.
10687 (process_skeletonless_type_unit): Likewise.
10688 (load_partial_comp_unit_reader): Remove.
10689 (load_partial_comp_unit): Use cutu_reader.
10690 (load_full_comp_unit_reader): Remove.
10691 (load_full_comp_unit): Use cutu_reader.
10692 (struct create_dwo_cu_data): Remove.
10693 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10694 dwo_unit parameters.
10695 (create_cus_hash_table): Use cutu_reader.
10696 (struct dwarf2_read_addr_index_data): Remove.
10697 (dwarf2_read_addr_index_reader): Remove.
10698 (dwarf2_read_addr_index): Use cutu_reader.
10699 (read_signatured_type_reader): Remove.
10700 (read_signatured_type): Use cutu_reader.
10701
10702 2020-01-19 Tom Tromey <tom@tromey.com>
10703
10704 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10705 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10706 (tui_wrefresh): Declare.
10707 * tui/tui-wingeneral.c (suppress_output): New global.
10708 (tui_suppress_output, ~tui_suppress_output): New constructor and
10709 destructor.
10710 (tui_wrefresh): New function.
10711 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10712 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10713 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10714 method.
10715 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10716 tui_wrefresh.
10717 (tui_data_window::no_refresh): New method.
10718 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10719 (tui_reg_command): Use tui_suppress_output
10720 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10721 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10722 method.
10723 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10724
10725 2020-01-19 Tom Tromey <tom@tromey.com>
10726
10727 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10728 Handle case where symtab is null.
10729
10730 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10731
10732 * linux-fork.c (one_fork_p): Simplify.
10733
10734 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10735
10736 * top.c (struct qt_args): Remove.
10737 (kill_or_detach): Change return type to void, replace `void *`
10738 parameter with a proper one.
10739 (print_inferior_quit_action): Likewise.
10740 (quit_confirm): Use range-based for loop to iterate over inferiors.
10741 (quit_force): Likewise.
10742
10743 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10744
10745 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10746 `void *` parameter with proper parameters.
10747 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10748 (print_one_inferior): Change return type to void, replace `void *`
10749 parameter with proper parameters.
10750 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10751 inferiors.
10752 (get_other_inferior): Remove.
10753 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10754 inferiors.
10755
10756 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10757
10758 * mi/mi-interp.c (report_initial_inferior): Remove.
10759 (mi_interp::init): Use range-based for to iterate over inferiors.
10760
10761 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10762
10763 * python/py-inferior.c (build_inferior_list): Remove.
10764 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10765
10766 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10767
10768 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10769 (btrace_stitch_trace): Likewise.
10770 * charset.c (intermediate_encoding): Likewise (vaild).
10771 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10772 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10773 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10774
10775 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10776
10777 * windows-tdep.c (windows_get_tlb_type):
10778 Add rtl_user_process_parameters type.
10779
10780 2020-01-16 Pedro Alves <palves@redhat.com>
10781 Norbert Lange <nolange79@gmail.com>
10782
10783 PR build/24805
10784 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10785 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10786 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10787 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10788 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10789 (ps_plog): Redeclare exported functions with default visibility.
10790
10791 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10792
10793 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10794 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10795
10796 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10797
10798 * infcmd.c (post_create_inferior): Use get_thread_regcache
10799 instead of get_current_regcache.
10800
10801 2020-01-14 Tom Tromey <tom@tromey.com>
10802
10803 PR symtab/12535:
10804 * python/python.c (gdbpy_decode_line): Treat empty string the same
10805 as no argument.
10806
10807 2020-01-14 Tom Tromey <tom@tromey.com>
10808
10809 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10810
10811 2020-01-14 Tom Tromey <tom@tromey.com>
10812
10813 * nat/linux-btrace.c: Don't include <config.h>.
10814 * nat/linux-ptrace.c: Don't include <config.h>.
10815 * nat/x86-linux-dregs.c: Don't include <config.h>.
10816
10817 2020-01-14 Tom Tromey <tom@tromey.com>
10818
10819 * configure: Rebuild.
10820 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10821
10822 2020-01-14 Tom Tromey <tom@tromey.com>
10823
10824 * nat/x86-linux-dregs.c: Include configh.h.
10825 * nat/linux-ptrace.c: Include configh.h.
10826 * nat/linux-btrace.c: Include configh.h.
10827 * defs.h: Include config.h, bfd.h.
10828 * configure.ac: Don't source common.host.
10829 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10830 * configure: Rebuild.
10831 * acinclude.m4: Update path.
10832 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10833 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10834 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10835 (CLIBS): Add LIBSUPPORT.
10836 (CDEPS): Likewise.
10837 (COMMON_SFILES): Remove gdbsupport files.
10838 (HFILES_NO_SRCDIR): Likewise.
10839 (stamp-version): Update path to create-version.sh.
10840 (ALLDEPFILES): Remove gdbsupport files.
10841
10842 2020-01-14 Tom Tromey <tom@tromey.com>
10843
10844 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10845 USE_WIN32API when needed.
10846 * configure.ac (USE_WIN32API): Don't define.
10847 (WIN32LIBS): Use WIN32APILIBS.
10848 * configure: Rebuild.
10849
10850 2020-01-14 Tom Tromey <tom@tromey.com>
10851
10852 * configure: Rebuild.
10853 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10854
10855 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10856
10857 * skip.c (skip_function_command): Make skip w/o arguments use the
10858 name of the inlined function if pc is inside any inlined function.
10859
10860 2020-01-14 Luis Machado <luis.machado@linaro.org>
10861
10862 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10863 * infrun.c (resume_1): Likewise.
10864 (handle_inferior_event): Remove stale comment.
10865 * linux-nat.c (linux_nat_target::resume): Update comments.
10866 (save_stop_reason): Likewise.
10867 (linux_nat_filter_event): Likewise.
10868 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10869
10870 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10871
10872 * elfread.c (record_minimal_symbol): Set section index to 0 for
10873 non-allocatable sections.
10874
10875
10876 2020-01-13 Ali Tamur <tamur@google.com>
10877
10878 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10879 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10880 to gdb::optional. Update comments.
10881 (dwo_file): Update comments.
10882 (read_attribute): Update API to take an additional out parameter,
10883 need_reprocess. This is used to mark attributes that need other
10884 attributes (e.g. str_offsets_base) for correct computation which may not
10885 have been read yet.
10886 (read_attribute_reprocess): New function declaration.
10887 (read_addr_index): Likewise.
10888 (read_dwo_str_index): Likewise.
10889 (read_stub_str_index): Likewise.
10890 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10891 (lookup_addr_base): New function definition.
10892 (lookup_ranges_base): Likewise.
10893 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10894 lookup_ranges_base.
10895 (init_cutu_and_read_dies): Update comments.
10896 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10897 unit. This is used to inherit parent's str_offsets_base and addr_base.
10898 Update comments.
10899 (init_cutu_and_read_dies_simple): Reflect API changes.
10900 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10901 (create_cus_hash_table): Change API to take parent compile unit.
10902 Reflect API changes.
10903 (open_and_init_dwo_file): Reflect API changes.
10904 (dwarf2_get_pc_bounds): Update comments.
10905 (dwarf2_record_block_ranges): Likewise.
10906 (read_full_die_1): Change implementation to reprocess attributes that
10907 need str_offsets_base and addr_base.
10908 (partial_die_info::read): Likewise.
10909 (read_attribute_reprocess): New function definition.
10910 (read_attribute_value): Change API to take an additional out parameter,
10911 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10912 when a non-dwo compile unit has index based attributes.
10913 (read_attribute): Reflect API changes.
10914 (read_addr_index_1): Reflect API changes. Update comments.
10915 (dwarf2_read_addr_index_data): Reflect API changes.
10916 (dwarf2_read_addr_index): Likewise.
10917 (read_str_index): Change API and implementation. This becomes a helper
10918 to be used by the new string index related methods. Update error
10919 message and comments.
10920 (read_dwo_str_index): New function definition.
10921 (read_stub_str_index): Likewise.
10922 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10923 * symfile.h (dwarf2_debug_sections): Likewise.
10924 * xcoffread.c (dwarf2_debug_sections): Likewise.
10925
10926 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10927
10928 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10929 core_reg_sect type to gdb_byte *.
10930 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10931 * cris-tdep.c (fetch_core_registers): Likewise.
10932 * corelow.c (core_target::get_core_register_section): Change
10933 type of `contents` to gdb::byte_vector.
10934
10935 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10936
10937 * tui/tui-wingeneral.c (box_win): Position the title in the center
10938 of the border.
10939
10940 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10941
10942 * corelow.c (core_target::get_core_register_section): Use
10943 std::vector instead of alloca.
10944
10945 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10946
10947 * warning.m4: Add -Wmissing-declarations to build_warnings.
10948 * configure: Re-generate.
10949
10950 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10951
10952 * python/python.c (init__gdb_module): Add declaration.
10953
10954 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10955
10956 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10957 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10958 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10959 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10960 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10961 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10962 * ada-exp.y (_initialize_ada_exp): Add declaration.
10963 * ada-lang.c (_initialize_ada_language): Add declaration.
10964 * ada-tasks.c (_initialize_tasks): Add declaration.
10965 * agent.c (_initialize_agent): Add declaration.
10966 * aix-thread.c (_initialize_aix_thread): Add declaration.
10967 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10968 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10969 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10970 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10971 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10972 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10973 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10974 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10975 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10976 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10977 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10978 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10979 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10980 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10981 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10982 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10983 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10984 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10985 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10986 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10987 * annotate.c (_initialize_annotate): Add declaration.
10988 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10989 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10990 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10991 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10992 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10993 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10994 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10995 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10996 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10997 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10998 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10999 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11000 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11001 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11002 * auto-load.c (_initialize_auto_load): Add declaration.
11003 * auxv.c (_initialize_auxv): Add declaration.
11004 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11005 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11006 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11007 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11008 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11009 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11010 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11011 * breakpoint.c (_initialize_breakpoint): Add declaration.
11012 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11013 * btrace.c (_initialize_btrace): Add declaration.
11014 * charset.c (_initialize_charset): Add declaration.
11015 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11016 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11017 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11018 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11019 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11020 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11021 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11022 * coffread.c (_initialize_coffread): Add declaration.
11023 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11024 * compile/compile.c (_initialize_compile): Add declaration.
11025 * complaints.c (_initialize_complaints): Add declaration.
11026 * completer.c (_initialize_completer): Add declaration.
11027 * copying.c (_initialize_copying): Add declaration.
11028 * corefile.c (_initialize_core): Add declaration.
11029 * corelow.c (_initialize_corelow): Add declaration.
11030 * cp-abi.c (_initialize_cp_abi): Add declaration.
11031 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11032 * cp-support.c (_initialize_cp_support): Add declaration.
11033 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11034 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11035 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11036 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11037 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11038 * ctfread.c (_initialize_ctfread): Add declaration.
11039 * d-lang.c (_initialize_d_language): Add declaration.
11040 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11041 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11042 * dbxread.c (_initialize_dbxread): Add declaration.
11043 * dcache.c (_initialize_dcache): Add declaration.
11044 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11045 * disasm.c (_initialize_disasm): Add declaration.
11046 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11047 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11048 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11049 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11050 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11051 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11052 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11053 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11054 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11055 * elfread.c (_initialize_elfread): Add declaration.
11056 * exec.c (_initialize_exec): Add declaration.
11057 * extension.c (_initialize_extension): Add declaration.
11058 * f-lang.c (_initialize_f_language): Add declaration.
11059 * f-valprint.c (_initialize_f_valprint): Add declaration.
11060 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11061 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11062 * filesystem.c (_initialize_filesystem): Add declaration.
11063 * findcmd.c (_initialize_mem_search): Add declaration.
11064 * findvar.c (_initialize_findvar): Add declaration.
11065 * fork-child.c (_initialize_fork_child): Add declaration.
11066 * frame-base.c (_initialize_frame_base): Add declaration.
11067 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11068 * frame.c (_initialize_frame): Add declaration.
11069 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11070 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11071 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11072 * gcore.c (_initialize_gcore): Add declaration.
11073 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11074 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11075 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11076 * gdbarch.c (_initialize_gdbarch): Add declaration.
11077 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11078 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11079 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11080 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11081 * go-lang.c (_initialize_go_language): Add declaration.
11082 * go32-nat.c (_initialize_go32_nat): Add declaration.
11083 * guile/guile.c (_initialize_guile): Add declaration.
11084 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11085 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11086 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11087 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11088 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11089 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11090 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11091 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11092 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11093 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11094 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11095 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11096 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11097 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11098 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11099 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11100 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11101 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11102 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11103 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11104 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11105 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11106 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11107 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11108 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11109 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11110 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11111 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11112 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11113 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11114 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11115 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11116 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11117 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11118 * infcall.c (_initialize_infcall): Add declaration.
11119 * infcmd.c (_initialize_infcmd): Add declaration.
11120 * inflow.c (_initialize_inflow): Add declaration.
11121 * infrun.c (_initialize_infrun): Add declaration.
11122 * interps.c (_initialize_interpreter): Add declaration.
11123 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11124 * jit.c (_initialize_jit): Add declaration.
11125 * language.c (_initialize_language): Add declaration.
11126 * linux-fork.c (_initialize_linux_fork): Add declaration.
11127 * linux-nat.c (_initialize_linux_nat): Add declaration.
11128 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11129 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11130 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11131 * m2-lang.c (_initialize_m2_language): Add declaration.
11132 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11133 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11134 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11135 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11136 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11137 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11138 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11139 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11140 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11141 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11142 * machoread.c (_initialize_machoread): Add declaration.
11143 * macrocmd.c (_initialize_macrocmd): Add declaration.
11144 * macroscope.c (_initialize_macroscope): Add declaration.
11145 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11146 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11147 * maint.c (_initialize_maint_cmds): Add declaration.
11148 * mdebugread.c (_initialize_mdebugread): Add declaration.
11149 * memattr.c (_initialize_mem): Add declaration.
11150 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11151 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11152 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11153 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11154 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11155 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11156 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11157 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11158 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11159 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11160 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11161 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11162 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11163 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11164 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11165 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11166 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11167 * mipsread.c (_initialize_mipsread): Add declaration.
11168 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11169 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11170 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11171 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11172 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11173 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11174 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11175 * nto-procfs.c (_initialize_procfs): Add declaration.
11176 * objc-lang.c (_initialize_objc_language): Add declaration.
11177 * observable.c (_initialize_observer): Add declaration.
11178 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11179 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11180 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11181 * osabi.c (_initialize_gdb_osabi): Add declaration.
11182 * osdata.c (_initialize_osdata): Add declaration.
11183 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11184 * parse.c (_initialize_parse): Add declaration.
11185 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11186 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11187 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11188 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11189 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11190 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11191 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11192 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11193 * printcmd.c (_initialize_printcmd): Add declaration.
11194 * probe.c (_initialize_probe): Add declaration.
11195 * proc-api.c (_initialize_proc_api): Add declaration.
11196 * proc-events.c (_initialize_proc_events): Add declaration.
11197 * proc-service.c (_initialize_proc_service): Add declaration.
11198 * procfs.c (_initialize_procfs): Add declaration.
11199 * producer.c (_initialize_producer): Add declaration.
11200 * psymtab.c (_initialize_psymtab): Add declaration.
11201 * python/python.c (_initialize_python): Add declaration.
11202 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11203 * record-btrace.c (_initialize_record_btrace): Add declaration.
11204 * record-full.c (_initialize_record_full): Add declaration.
11205 * record.c (_initialize_record): Add declaration.
11206 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11207 * regcache.c (_initialize_regcache): Add declaration.
11208 * reggroups.c (_initialize_reggroup): Add declaration.
11209 * remote-notif.c (_initialize_notif): Add declaration.
11210 * remote-sim.c (_initialize_remote_sim): Add declaration.
11211 * remote.c (_initialize_remote): Add declaration.
11212 * reverse.c (_initialize_reverse): Add declaration.
11213 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11214 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11215 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11216 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11217 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11218 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11219 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11220 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11221 Add declaration.
11222 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11223 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11224 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11225 * rust-exp.y (_initialize_rust_exp): Add declaration.
11226 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11227 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11228 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11229 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11230 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11231 * score-tdep.c (_initialize_score_tdep): Add declaration.
11232 * ser-go32.c (_initialize_ser_dos): Add declaration.
11233 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11234 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11235 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11236 * ser-uds.c (_initialize_ser_socket): Add declaration.
11237 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11238 * serial.c (_initialize_serial): Add declaration.
11239 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11240 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11241 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11242 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11243 * skip.c (_initialize_step_skip): Add declaration.
11244 * sol-thread.c (_initialize_sol_thread): Add declaration.
11245 * solib-aix.c (_initialize_solib_aix): Add declaration.
11246 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11247 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11248 * solib-frv.c (_initialize_frv_solib): Add declaration.
11249 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11250 * solib-target.c (_initialize_solib_target): Add declaration.
11251 * solib.c (_initialize_solib): Add declaration.
11252 * source-cache.c (_initialize_source_cache): Add declaration.
11253 * source.c (_initialize_source): Add declaration.
11254 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11255 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11256 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11257 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11258 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11259 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11260 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11261 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11262 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11263 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11264 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11265 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11266 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11267 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11268 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11269 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11270 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11271 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11272 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11273 * stabsread.c (_initialize_stabsread): Add declaration.
11274 * stack.c (_initialize_stack): Add declaration.
11275 * stap-probe.c (_initialize_stap_probe): Add declaration.
11276 * std-regs.c (_initialize_frame_reg): Add declaration.
11277 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11278 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11279 * symfile.c (_initialize_symfile): Add declaration.
11280 * symmisc.c (_initialize_symmisc): Add declaration.
11281 * symtab.c (_initialize_symtab): Add declaration.
11282 * target.c (_initialize_target): Add declaration.
11283 * target-connection.c (_initialize_target_connection): Add
11284 declaration.
11285 * target-dcache.c (_initialize_target_dcache): Add declaration.
11286 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11287 * thread.c (_initialize_thread): Add declaration.
11288 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11289 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11290 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11291 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11292 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11293 * tracectf.c (_initialize_ctf): Add declaration.
11294 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11295 * tracefile.c (_initialize_tracefile): Add declaration.
11296 * tracepoint.c (_initialize_tracepoint): Add declaration.
11297 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11298 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11299 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11300 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11301 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11302 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11303 * tui/tui.c (_initialize_tui): Add declaration.
11304 * typeprint.c (_initialize_typeprint): Add declaration.
11305 * ui-style.c (_initialize_ui_style): Add declaration.
11306 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11307 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11308 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11309 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11310 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11311 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11312 * unittests/filtered_iterator-selftests.c
11313 (_initialize_filtered_iterator_selftests): Add declaration.
11314 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11315 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11316 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11317 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11318 * unittests/main-thread-selftests.c
11319 (_initialize_main_thread_selftests): Add declaration.
11320 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11321 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11322 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11323 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11324 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11325 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11326 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11327 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11328 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11329 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11330 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11331 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11332 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11333 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11334 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11335 declaration.
11336 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11337 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11338 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11339 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11340 * user-regs.c (_initialize_user_regs): Add declaration.
11341 * utils.c (_initialize_utils): Add declaration.
11342 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11343 * valops.c (_initialize_valops): Add declaration.
11344 * valprint.c (_initialize_valprint): Add declaration.
11345 * value.c (_initialize_values): Add declaration.
11346 * varobj.c (_initialize_varobj): Add declaration.
11347 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11348 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11349 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11350 * windows-nat.c (_initialize_windows_nat): Add declaration.
11351 (_initialize_check_for_gdb_ini): Add declaration.
11352 (_initialize_loadable): Add declaration.
11353 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11354 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11355 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11356 * xcoffread.c (_initialize_xcoffread): Add declaration.
11357 * xml-support.c (_initialize_xml_support): Add declaration.
11358 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11359 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11360 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11361 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11362
11363 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11364
11365 * regformats/regdat.sh: Generate declaration for init function.
11366
11367 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11368
11369 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11370 up.
11371 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11372 close_one_inferior>: New methods.
11373 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11374 pass down target to find_inferior_pid.
11375 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11376 Pass down target to find_inferior_ptid.
11377 (gdbsim_target::create_inferior): Pass down target to
11378 add_thread_silent.
11379 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11380 target down to find_inferior_ptid and switch_to_thread.
11381 (gdbsim_target::close): Update to call close_one_inferior.
11382 (struct resume_data): Remove.
11383 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11384 directly, rather than through a void pointer.
11385 (gdbsim_target::resume): Update to call resume_one_inferior.
11386
11387 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11388
11389 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11390
11391 2020-01-12 Pedro Alves <palves@redhat.com>
11392
11393 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11394 directly for the current inferior instead of
11395 discard_all_inferiors.
11396 (discard_all_inferiors): Delete.
11397
11398 2020-01-11 Tom Tromey <tom@tromey.com>
11399
11400 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11401 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11402 deprecated_safe_get_selected_frame.
11403
11404 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11405
11406 * inferior.c (print_inferior): Switch inferior before printing it.
11407
11408 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11409 Pedro Alves <palves@redhat.com>
11410
11411 * progspace-and-thread.c (switch_to_program_space_and_thread):
11412 Assert there's an inferior for PSPACE. Use
11413 switch_to_inferior_no_thread to switch the inferior too.
11414 * progspace.c (program_space::~program_space): Call
11415 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11416 (program_space::free_all_objfiles): Don't call clear_symtab_users
11417 here.
11418 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11419
11420 2020-01-10 Pedro Alves <palves@redhat.com>
11421
11422 * NEWS: Mention multi-target debugging, "info connections", and
11423 "add-inferior -no-connection".
11424
11425 2020-01-10 Pedro Alves <palves@redhat.com>
11426
11427 * infrun.c: Include "target-connection.h".
11428 (check_multi_target_resumption): New.
11429 (proceed): Call it.
11430 * target-connection.c (make_target_connection_string): Make
11431 extern.
11432 * target-connection.h (make_target_connection_string): Declare.
11433
11434 2020-01-10 Pedro Alves <palves@redhat.com>
11435
11436 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11437 * inferior.c (uiout_field_connection): New function.
11438 (print_inferior): Add new "connection-id" column.
11439 (add_inferior_command): Show connection number/string of added
11440 inferior.
11441 * process-stratum-target.h
11442 (process_stratum_target::connection_string): New virtual method.
11443 (process_stratum_target::connection_number): New field.
11444 * remote.c (remote_target::connection_string): New override.
11445 * target-connection.c: New file.
11446 * target-connection.h: New file.
11447 * target.c (decref_target): Remove process_stratum targets from
11448 the connection list.
11449 (target_stack::push): Add process_stratum targets to the
11450 connection list.
11451
11452 2020-01-10 Pedro Alves <palves@redhat.com>
11453
11454 Revert:
11455 2016-04-12 Pedro Alves <palves@redhat.com>
11456 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11457 Remove references to name.
11458 * serial.h (struct serial) <name>: Delete.
11459
11460 2020-01-10 Pedro Alves <palves@redhat.com>
11461
11462 * gdbarch-selftests.c (register_to_value_test): Remove "target
11463 already pushed" check.
11464
11465 2020-01-10 Pedro Alves <palves@redhat.com>
11466 John Baldwin <jhb@FreeBSD.org>
11467
11468 * aarch64-linux-nat.c
11469 (aarch64_linux_nat_target::thread_architecture): Adjust.
11470 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11471 (task_command_1): Likewise.
11472 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11473 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11474 (aix_thread_target::store_registers)
11475 (aix_thread_target::thread_alive): Adjust.
11476 * amd64-fbsd-tdep.c: Include "inferior.h".
11477 (amd64fbsd_get_thread_local_address): Pass down target.
11478 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11479 thread's gdbarch instead of target_gdbarch.
11480 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11481 get_last_target_status.
11482 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11483 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11484 inferiors.
11485 (update_inserted_breakpoint_locations): Skip if inferiors with no
11486 execution.
11487 (update_global_location_list): When handling moribund locations,
11488 find representative inferior for location's pspace, and use thread
11489 count of its process_stratum target.
11490 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11491 * bsd-uthread.c (bsd_uthread_target::wait): Use
11492 as_process_stratum_target and adjust thread_change_ptid and
11493 add_thread calls.
11494 (bsd_uthread_target::update_thread_list): Use
11495 as_process_stratum_target and adjust find_thread_ptid,
11496 thread_change_ptid and add_thread calls.
11497 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11498 find_thread_ptid call.
11499 * corelow.c (add_to_thread_list): Adjust add_thread call.
11500 (core_target_open): Adjust add_thread_silent and thread_count
11501 calls.
11502 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11503 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11504 * event-top.c (async_disconnect): Pop targets from all inferiors.
11505 * exec.c (add_target_sections): Push exec target on all inferiors
11506 sharing the program space.
11507 (remove_target_sections): Remove the exec target from all
11508 inferiors sharing the program space.
11509 (exec_on_vfork): New.
11510 * exec.h (exec_on_vfork): Declare.
11511 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11512 Pass it down.
11513 (fbsd_nat_target::update_thread_list): Adjust.
11514 (fbsd_nat_target::resume): Adjust.
11515 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11516 down.
11517 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11518 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11519 get_thread_arch_regcache call.
11520 * fork-child.c (gdb_startup_inferior): Pass target down to
11521 startup_inferior and set_executing.
11522 * gdbthread.h (struct process_stratum_target): Forward declare.
11523 (add_thread, add_thread_silent, add_thread_with_info)
11524 (in_thread_list): Add process_stratum_target parameter.
11525 (find_thread_ptid(inferior*, ptid_t)): New overload.
11526 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11527 parameter.
11528 (all_threads()): Delete overload.
11529 (all_threads, all_non_exited_threads): Add process_stratum_target
11530 parameter.
11531 (all_threads_safe): Use brace initialization.
11532 (thread_count): Add process_stratum_target parameter.
11533 (set_resumed, set_running, set_stop_requested, set_executing)
11534 (threads_are_executing, finish_thread_state): Add
11535 process_stratum_target parameter.
11536 (switch_to_thread): Use is_current_thread.
11537 * i386-fbsd-tdep.c: Include "inferior.h".
11538 (i386fbsd_get_thread_local_address): Pass down target.
11539 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11540 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11541 have_inferiors check.
11542 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11543 (inf_ptrace_target::attach): Adjust.
11544 * infcall.c (run_inferior_call): Adjust.
11545 * infcmd.c (run_command_1): Pass target to
11546 scoped_finish_thread_state.
11547 (proceed_thread_callback): Skip inferiors with no execution.
11548 (continue_command): Rename 'all_threads' local to avoid hiding
11549 'all_threads' function. Adjust get_last_target_status call.
11550 (prepare_one_step): Adjust set_running call.
11551 (signal_command): Use user_visible_resume_target. Compare thread
11552 pointers instead of inferior_ptid.
11553 (info_program_command): Adjust to pass down target.
11554 (attach_command): Mark target's 'thread_executing' flag.
11555 (stop_current_target_threads_ns): New, factored out from ...
11556 (interrupt_target_1): ... this. Switch inferior before making
11557 target calls.
11558 * inferior-iter.h
11559 (struct all_inferiors_iterator, struct all_inferiors_range)
11560 (struct all_inferiors_safe_range)
11561 (struct all_non_exited_inferiors_range): Filter on
11562 process_stratum_target too. Remove explicit.
11563 * inferior.c (inferior::inferior): Push dummy target on target
11564 stack.
11565 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11566 Add process_stratum_target parameter, and pass it down.
11567 (have_live_inferiors): Adjust.
11568 (switch_to_inferior_and_push_target): New.
11569 (add_inferior_command, clone_inferior_command): Handle
11570 "-no-connection" parameter. Use
11571 switch_to_inferior_and_push_target.
11572 (_initialize_inferior): Mention "-no-connection" option in
11573 the help of "add-inferior" and "clone-inferior" commands.
11574 * inferior.h: Include "process-stratum-target.h".
11575 (interrupt_target_1): Use bool.
11576 (struct inferior) <push_target, unpush_target, target_is_pushed,
11577 find_target_beneath, top_target, process_target, target_at,
11578 m_stack>: New.
11579 (discard_all_inferiors): Delete.
11580 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11581 (all_inferiors, all_non_exited_inferiors): Add
11582 process_stratum_target parameter.
11583 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11584 (target_last_proc_target): New global.
11585 (follow_fork_inferior): Push target on new inferior. Pass target
11586 to add_thread_silent. Call exec_on_vfork. Handle target's
11587 reference count.
11588 (follow_fork): Adjust get_last_target_status call. Also consider
11589 target.
11590 (follow_exec): Push target on new inferior.
11591 (struct execution_control_state) <target>: New field.
11592 (user_visible_resume_target): New.
11593 (do_target_resume): Call target_async.
11594 (resume_1): Set target's threads_executing flag. Consider resume
11595 target.
11596 (commit_resume_all_targets): New.
11597 (proceed): Also consider resume target. Skip threads of inferiors
11598 with no execution. Commit resumtion in all targets.
11599 (start_remote): Pass current inferior to wait_for_inferior.
11600 (infrun_thread_stop_requested): Consider target as well. Pass
11601 thread_info pointer to clear_inline_frame_state instead of ptid.
11602 (infrun_thread_thread_exit): Consider target as well.
11603 (random_pending_event_thread): New inferior parameter. Use it.
11604 (do_target_wait): Rename to ...
11605 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11606 down.
11607 (threads_are_resumed_pending_p, do_target_wait): New.
11608 (prepare_for_detach): Adjust calls.
11609 (wait_for_inferior): New inferior parameter. Handle it. Use
11610 do_target_wait_1 instead of do_target_wait.
11611 (fetch_inferior_event): Adjust. Switch to representative
11612 inferior. Pass target down.
11613 (set_last_target_status): Add process_stratum_target parameter.
11614 Save target in global.
11615 (get_last_target_status): Add process_stratum_target parameter and
11616 handle it.
11617 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11618 (context_switch): Check inferior_ptid == null_ptid before calling
11619 inferior_thread().
11620 (get_inferior_stop_soon): Pass down target.
11621 (wait_one): Rename to ...
11622 (poll_one_curr_target): ... this.
11623 (struct wait_one_event): New.
11624 (wait_one): New.
11625 (stop_all_threads): Adjust.
11626 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11627 event's target.
11628 (switch_back_to_stepped_thread): Also consider target.
11629 (print_stop_event): Update.
11630 (normal_stop): Update. Also consider the resume target.
11631 * infrun.h (wait_for_inferior): Remove declaration.
11632 (user_visible_resume_target): New declaration.
11633 (get_last_target_status, set_last_target_status): New
11634 process_stratum_target parameter.
11635 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11636 process_stratum_target parameter, and use it.
11637 (clear_inline_frame_state (thread_info*)): New.
11638 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11639 process_stratum_target parameter.
11640 (clear_inline_frame_state (thread_info*)): Declare.
11641 * linux-fork.c (delete_checkpoint_command): Pass target down to
11642 find_thread_ptid.
11643 (checkpoint_command): Adjust.
11644 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11645 instead of just tweaking inferior_ptid.
11646 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11647 (exit_lwp): Pass target down to find_thread_ptid.
11648 (attach_proc_task_lwp_callback): Pass target down to
11649 add_thread/set_running/set_executing.
11650 (linux_nat_target::attach): Pass target down to
11651 thread_change_ptid.
11652 (get_detach_signal): Pass target down to find_thread_ptid.
11653 Consider last target status's target.
11654 (linux_resume_one_lwp_throw, resume_lwp)
11655 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11656 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11657 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11658 (linux_nat_target::async_wait_fd): New.
11659 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11660 target down.
11661 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11662 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11663 * linux-thread-db.c (struct thread_db_info::process_target): New
11664 field.
11665 (add_thread_db_info): Save target.
11666 (get_thread_db_info): New process_stratum_target parameter. Also
11667 match target.
11668 (delete_thread_db_info): New process_stratum_target parameter.
11669 Also match target.
11670 (thread_from_lwp): Adjust to pass down target.
11671 (thread_db_notice_clone): Pass down target.
11672 (check_thread_db_callback): Pass down target.
11673 (try_thread_db_load_1): Always push the thread_db target.
11674 (try_thread_db_load, record_thread): Pass target down.
11675 (thread_db_target::detach): Pass target down. Always unpush the
11676 thread_db target.
11677 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11678 target down. Always unpush the thread_db target.
11679 (find_new_threads_callback, thread_db_find_new_threads_2)
11680 (thread_db_target::update_thread_list): Pass target down.
11681 (thread_db_target::pid_to_str): Pass current inferior down.
11682 (thread_db_target::get_thread_local_address): Pass target down.
11683 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11684 target down.
11685 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11686 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11687 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11688 (procfs_init_inferior): Rename to ...
11689 (procfs_target::procfs_init_inferior): ... this and adjust.
11690 (procfs_target::create_inferior, procfs_notice_thread)
11691 (procfs_do_thread_registers): Adjust.
11692 * ppc-fbsd-tdep.c: Include "inferior.h".
11693 (ppcfbsd_get_thread_local_address): Pass down target.
11694 * proc-service.c (ps_xfer_memory): Switch current inferior and
11695 program space as well.
11696 (get_ps_regcache): Pass target down.
11697 * process-stratum-target.c
11698 (process_stratum_target::thread_address_space)
11699 (process_stratum_target::thread_architecture): Pass target down.
11700 * process-stratum-target.h
11701 (process_stratum_target::threads_executing): New field.
11702 (as_process_stratum_target): New.
11703 * ravenscar-thread.c
11704 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11705 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11706 down.
11707 * record-btrace.c (record_btrace_target::info_record): Adjust.
11708 (record_btrace_target::record_method)
11709 (record_btrace_target::record_is_replaying)
11710 (record_btrace_target::fetch_registers)
11711 (get_thread_current_frame_id, record_btrace_target::resume)
11712 (record_btrace_target::wait, record_btrace_target::stop): Pass
11713 target down.
11714 * record-full.c (record_full_wait_1): Switch to event thread.
11715 Pass target down.
11716 * regcache.c (regcache::regcache)
11717 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11718 process_stratum_target parameter and handle it.
11719 (current_thread_target): New global.
11720 (get_thread_regcache): Add process_stratum_target parameter and
11721 handle it. Switch inferior before calling target method.
11722 (get_thread_regcache): Pass target down.
11723 (get_thread_regcache_for_ptid): Pass target down.
11724 (registers_changed_ptid): Add process_stratum_target parameter and
11725 handle it.
11726 (registers_changed_thread, registers_changed): Pass target down.
11727 (test_get_thread_arch_aspace_regcache): New.
11728 (current_regcache_test): Define a couple local test_target_ops
11729 instances and use them for testing.
11730 (readwrite_regcache): Pass process_stratum_target parameter.
11731 (cooked_read_test, cooked_write_test): Pass mock_target down.
11732 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11733 (get_thread_arch_aspace_regcache): Add process_stratum_target
11734 parameter.
11735 (regcache::target): New method.
11736 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11737 (regcache::registers_changed_ptid): Add process_stratum_target
11738 parameter.
11739 (regcache::m_target): New field.
11740 (registers_changed_ptid): Add process_stratum_target parameter.
11741 * remote.c (remote_state::supports_vCont_probed): New field.
11742 (remote_target::async_wait_fd): New method.
11743 (remote_unpush_and_throw): Add remote_target parameter.
11744 (get_current_remote_target): Adjust.
11745 (remote_target::remote_add_inferior): Push target.
11746 (remote_target::remote_add_thread)
11747 (remote_target::remote_notice_new_inferior)
11748 (get_remote_thread_info): Pass target down.
11749 (remote_target::update_thread_list): Skip threads of inferiors
11750 bound to other targets. (remote_target::close): Don't discard
11751 inferiors. (remote_target::add_current_inferior_and_thread)
11752 (remote_target::process_initial_stop_replies)
11753 (remote_target::start_remote)
11754 (remote_target::remote_serial_quit_handler): Pass down target.
11755 (remote_target::remote_unpush_target): New remote_target
11756 parameter. Unpush the target from all inferiors.
11757 (remote_target::remote_unpush_and_throw): New remote_target
11758 parameter. Pass it down.
11759 (remote_target::open_1): Check whether the current inferior has
11760 execution instead of checking whether any inferior is live. Pass
11761 target down.
11762 (remote_target::remote_detach_1): Pass down target. Use
11763 remote_unpush_target.
11764 (extended_remote_target::attach): Pass down target.
11765 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11766 (remote_target::append_resumption): Pass down target.
11767 (remote_target::append_pending_thread_resumptions)
11768 (remote_target::remote_resume_with_hc, remote_target::resume)
11769 (remote_target::commit_resume): Pass down target.
11770 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11771 (remote_target::interrupt_query)
11772 (remote_target::remove_new_fork_children)
11773 (remote_target::check_pending_events_prevent_wildcard_vcont)
11774 (remote_target::remote_parse_stop_reply)
11775 (remote_target::process_stop_reply): Pass down target.
11776 (first_remote_resumed_thread): New remote_target parameter. Pass
11777 it down.
11778 (remote_target::wait_as): Pass down target.
11779 (unpush_and_perror): New remote_target parameter. Pass it down.
11780 (remote_target::readchar, remote_target::remote_serial_write)
11781 (remote_target::getpkt_or_notif_sane_1)
11782 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11783 down target.
11784 (remote_target::mourn_inferior): Pass down target. Use
11785 remote_unpush_target.
11786 (remote_target::core_of_thread)
11787 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11788 (remote_target::pid_to_exec_file)
11789 (remote_target::thread_handle_to_thread_info): Pass down target.
11790 (remote_target::async_wait_fd): New.
11791 * riscv-fbsd-tdep.c: Include "inferior.h".
11792 (riscv_fbsd_get_thread_local_address): Pass down target.
11793 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11794 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11795 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11796 Adjust.
11797 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11798 * solib-svr4.c (enable_break): Pass down target.
11799 * spu-multiarch.c (parse_spufs_run): Pass down target.
11800 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11801 * target-delegates.c: Regenerate.
11802 * target.c (g_target_stack): Delete.
11803 (current_top_target): Return the current inferior's top target.
11804 (target_has_execution_1): Refer to the passed-in inferior's top
11805 target.
11806 (target_supports_terminal_ours): Check whether the initial
11807 inferior was already created.
11808 (decref_target): New.
11809 (target_stack::push): Incref/decref the target.
11810 (push_target, push_target, unpush_target): Adjust.
11811 (target_stack::unpush): Defref target.
11812 (target_is_pushed): Return bool. Adjust to refer to the current
11813 inferior's target stack.
11814 (dispose_inferior): Delete, and inline parts ...
11815 (target_preopen): ... here. Only dispose of the current inferior.
11816 (target_detach): Hold strong target reference while detaching.
11817 Pass target down.
11818 (target_thread_name): Add assertion.
11819 (target_resume): Pass down target.
11820 (target_ops::beneath, find_target_at): Adjust to refer to the
11821 current inferior's target stack.
11822 (get_dummy_target): New.
11823 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11824 has a thread running.
11825 (initialize_targets): Rename to ...
11826 (_initialize_target): ... this.
11827 * target.h: Include "gdbsupport/refcounted-object.h".
11828 (struct target_ops): Inherit refcounted_object.
11829 (target_ops::shortname, target_ops::longname): Make const.
11830 (target_ops::async_wait_fd): New method.
11831 (decref_target): Declare.
11832 (struct target_ops_ref_policy): New.
11833 (target_ops_ref): New typedef.
11834 (get_dummy_target): Declare function.
11835 (target_is_pushed): Return bool.
11836 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11837 (all_matching_threads_iterator::all_matching_threads_iterator):
11838 Handle filter target.
11839 * thread-iter.h (struct all_matching_threads_iterator, struct
11840 all_matching_threads_range, class all_non_exited_threads_range):
11841 Filter by target too. Remove explicit.
11842 * thread.c (threads_executing): Delete.
11843 (inferior_thread): Pass down current inferior.
11844 (clear_thread_inferior_resources): Pass down thread pointer
11845 instead of ptid_t.
11846 (add_thread_silent, add_thread_with_info, add_thread): Add
11847 process_stratum_target parameter. Use it for thread and inferior
11848 searches.
11849 (is_current_thread): New.
11850 (thread_info::deletable): Use it.
11851 (find_thread_ptid, thread_count, in_thread_list)
11852 (thread_change_ptid, set_resumed, set_running): New
11853 process_stratum_target parameter. Pass it down.
11854 (set_executing): New process_stratum_target parameter. Pass it
11855 down. Adjust reference to 'threads_executing'.
11856 (threads_are_executing): New process_stratum_target parameter.
11857 Adjust reference to 'threads_executing'.
11858 (set_stop_requested, finish_thread_state): New
11859 process_stratum_target parameter. Pass it down.
11860 (switch_to_thread): Also match inferior.
11861 (switch_to_thread): New process_stratum_target parameter. Pass it
11862 down.
11863 (update_threads_executing): Reimplement.
11864 * top.c (quit_force): Pop targets from all inferior.
11865 (gdb_init): Don't call initialize_targets.
11866 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11867 Declare.
11868 (windows_add_thread, windows_delete_thread): Adjust.
11869 (get_windows_debug_event): Rename to ...
11870 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11871 * tracefile-tfile.c (tfile_target_open): Pass down target.
11872 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11873 Forward declare.
11874 (switch_to_thread): Add process_stratum_target parameter.
11875 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11876 parameter. Use it.
11877 (mi_on_resume): Pass target down.
11878 * nat/fork-inferior.c (startup_inferior): Add
11879 process_stratum_target parameter. Pass it down.
11880 * nat/fork-inferior.h (startup_inferior): Add
11881 process_stratum_target parameter.
11882 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11883
11884 2020-01-10 Pedro Alves <palves@redhat.com>
11885
11886 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11887 directly. Instead find the first thread in the thread list and
11888 use switch_to_thread.
11889
11890 2020-01-10 Pedro Alves <palves@redhat.com>
11891
11892 * remote.c (remote_target::remote_add_inferior): Don't bind a
11893 process to the current inferior if the current inferior is already
11894 bound to a process.
11895
11896 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11897 Pedro Alves <palves@redhat.com>
11898
11899 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11900 If no process is specified, return null_ptid instead of
11901 inferior_ptid.
11902 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11903 TARGET_WAITKIND_SIGNALLED with no pid.
11904
11905 2020-01-10 Pedro Alves <palves@redhat.com>
11906
11907 * remote.c (first_remote_resumed_thread): New.
11908 (remote_target::wait_as): Use it as default event_ptid instead of
11909 inferior_ptid.
11910
11911 2020-01-10 Pedro Alves <palves@redhat.com>
11912
11913 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11914
11915 2020-01-10 Pedro Alves <palves@redhat.com>
11916
11917 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11918 not -1.
11919
11920 2020-01-10 Pedro Alves <palves@redhat.com>
11921
11922 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11923 ptid to get_last_target_status.
11924 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11925 ptid to get_last_target_status.
11926 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11927 get_last_target_status.
11928 (info_program_command): Don't pass a target_waitstatus to
11929 get_last_target_status.
11930 * infrun.c (init_wait_for_inferior): Use
11931 nullify_last_target_wait_ptid.
11932 (get_last_target_status): Handle nullptr arguments.
11933 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11934 (print_stop_event): Don't pass a ptid to get_last_target_status.
11935 (normal_stop): Don't pass a ptid to get_last_target_status.
11936 * infrun.h (get_last_target_status, set_last_target_status): Move
11937 comments here and update.
11938 (nullify_last_target_wait_ptid): Declare.
11939 * linux-fork.c (fork_load_infrun_state): Remove local extern
11940 declaration of nullify_last_target_wait_ptid.
11941 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11942 to get_last_target_status.
11943
11944 2020-01-10 Pedro Alves <palves@redhat.com>
11945
11946 * gdbthread.h (scoped_restore_current_thread)
11947 <dont_restore, restore, m_dont_restore>: Declare.
11948 * thread.c (thread_alive): Add assertion. Return bool.
11949 (switch_to_thread_if_alive): New.
11950 (prune_threads): Switch inferior/thread.
11951 (print_thread_info_1): Switch thread before calling target methods.
11952 (scoped_restore_current_thread::restore): New, factored out from
11953 ...
11954 (scoped_restore_current_thread::~scoped_restore_current_thread):
11955 ... this.
11956 (scoped_restore_current_thread::scoped_restore_current_thread):
11957 Add assertion.
11958 (thread_apply_all_command, thread_select): Use
11959 switch_to_thread_if_alive.
11960 * infrun.c (proceed, restart_threads, handle_signal_stop)
11961 (switch_back_to_stepped_thread): Switch current thread before
11962 calling target methods.
11963
11964 2020-01-10 Pedro Alves <palves@redhat.com>
11965
11966 * inferior.c (switch_to_inferior_no_thread): New function,
11967 factored out from ...
11968 (inferior_command): ... here.
11969 * inferior.h (switch_to_inferior_no_thread): Declare.
11970 * mi/mi-main.c (run_one_inferior): Use
11971 switch_to_inferior_no_thread.
11972
11973 2020-01-10 Pedro Alves <palves@redhat.com>
11974
11975 * infcmd.c (kill_command): Remove dead code.
11976
11977 2020-01-10 Pedro Alves <palves@redhat.com>
11978
11979 * remote.c (remote_target::mourn_inferior): No longer check
11980 whether the target is running.
11981
11982 2020-01-10 Pedro Alves <palves@redhat.com>
11983
11984 * corelow.c (core_target::has_execution): Change parameter type to
11985 inferior pointer.
11986 * inferior.c (number_of_live_inferiors): Use
11987 inferior::has_execution instead of target_has_execution_1.
11988 * inferior.h (inferior::has_execution): New.
11989 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11990 inferior::has_execution instead of target_has_execution_1.
11991 * process-stratum-target.c
11992 (process_stratum_target::has_execution): Change parameter type to
11993 inferior pointer. Check the inferior's PID instead of
11994 inferior_ptid.
11995 * process-stratum-target.h
11996 (process_stratum_target::has_execution): Change parameter type to
11997 inferior pointer.
11998 * record-full.c (record_full_core_target::has_execution): Change
11999 parameter type to inferior pointer.
12000 * target.c (target_has_execution_1): Change parameter type to
12001 inferior pointer.
12002 (target_has_execution_current): Adjust.
12003 * target.h (target_ops::has_execution): Change parameter type to
12004 inferior pointer.
12005 (target_has_execution_1): Change parameter type to inferior
12006 pointer. Change return type to bool.
12007 * tracefile.h (tracefile_target::has_execution): Change parameter
12008 type to inferior pointer.
12009
12010 2020-01-10 Pedro Alves <palves@redhat.com>
12011
12012 * exceptions.c (print_flush): Remove current_top_target() check.
12013
12014 2020-01-10 Pedro Alves <palves@redhat.com>
12015
12016 * remote.c (show_remote_exec_file): Show the current inferior's
12017 exec-file instead of the command variable's value.
12018
12019 2020-01-10 Pedro Alves <palves@redhat.com>
12020
12021 * record-full.c (record_full_resume_ptid): New global.
12022 (record_full_target::resume): Set it.
12023 (record_full_wait_1): Use record_full_resume_ptid instead of
12024 inferior_ptid.
12025
12026 2020-01-10 Pedro Alves <palves@redhat.com>
12027
12028 * gdbthread.h (scoped_restore_current_thread)
12029 <dont_restore, restore, m_dont_restore>: Declare.
12030 * thread.c (thread_alive): Add assertion. Return bool.
12031 (switch_to_thread_if_alive): New.
12032 (prune_threads): Switch inferior/thread.
12033 (print_thread_info_1): Switch thread before calling target methods.
12034 (scoped_restore_current_thread::restore): New, factored out from
12035 ...
12036 (scoped_restore_current_thread::~scoped_restore_current_thread):
12037 ... this.
12038 (scoped_restore_current_thread::scoped_restore_current_thread):
12039 Add assertion.
12040 (thread_apply_all_command, thread_select): Use
12041 switch_to_thread_if_alive.
12042
12043 2020-01-10 George Barrett <bob@bob131.so>
12044
12045 * stap-probe.c (stap_modify_semaphore): Don't check for null
12046 semaphores.
12047 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12048 for null semaphores.
12049
12050 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12051
12052 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12053 all source windows, and maintain horizontal scroll status while
12054 doing so.
12055
12056 2020-01-09 Tom Tromey <tom@tromey.com>
12057
12058 PR tui/18932:
12059 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12060 update_source_window, not print_source_lines.
12061
12062 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12063
12064 * tui/tui.c (tui_enable): Register tui hooks after calling
12065 tui_display_main.
12066
12067 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12068
12069 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12070
12071 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12072
12073 * thread.c (print_thread_info_1): Fix indentation.
12074
12075 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12076
12077 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12078 unique_xmalloc_ptr outside the if to always free the demangled name.
12079
12080 2020-01-08 Tom Tromey <tromey@adacore.com>
12081
12082 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12083 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12084 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12085 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12086 Remove.
12087 (section_offsets): New typedef.
12088 * symtab.c (fixup_section, get_msymbol_address): Update.
12089 * symmisc.c (dump_msymbols): Update.
12090 * symfile.h (relative_addr_info_to_section_offsets)
12091 (symfile_map_offsets_to_segments): Update.
12092 * symfile.c (build_section_addr_info_from_objfile)
12093 (init_objfile_sect_indices): Update.
12094 (struct place_section_arg): Change type of "offsets".
12095 (place_section): Update.
12096 (relative_addr_info_to_section_offsets): Change type of
12097 "section_offsets". Remove "num_sections" parameter.
12098 (default_symfile_offsets, syms_from_objfile_1)
12099 (set_objfile_default_section_offset): Update.
12100 (reread_symbols): No need to preserve section offsets by hand.
12101 (symfile_map_offsets_to_segments): Change type of "offsets".
12102 * stap-probe.c (relocate_address): Update.
12103 * stabsread.h (process_one_symbol): Update.
12104 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12105 (solib_target_relocate_section_addresses): Update.
12106 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12107 Update.
12108 * solib-frv.c (frv_relocate_main_executable): Update.
12109 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12110 * solib-aix.c (solib_aix_get_section_offsets): Change return
12111 type.
12112 (solib_aix_solib_create_inferior_hook): Update.
12113 * remote.c (remote_target::get_offsets): Update.
12114 * psymtab.c (find_pc_sect_psymtab): Update.
12115 * psympriv.h (struct partial_symbol) <address, text_low,
12116 text_high>: Update.
12117 * objfiles.h (obj_section_offset): Update.
12118 (struct objfile) <section_offsets>: Change type.
12119 <num_sections>: Remove.
12120 (objfile_relocate): Update.
12121 * objfiles.c (entry_point_address_query): Update
12122 (relocate_one_symbol): Change type of "section_offsets".
12123 (objfile_relocate1, objfile_relocate1): Change type of
12124 "new_offsets".
12125 (objfile_rebase1): Update.
12126 * mipsread.c (mipscoff_symfile_read): Update.
12127 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12128 parameter.
12129 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12130 (parse_external, psymtab_to_symtab_1): Update.
12131 * machoread.c (macho_symfile_offsets): Update.
12132 * ia64-tdep.c (ia64_find_unwind_table): Update.
12133 * hppa-tdep.c (read_unwind_info): Update.
12134 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12135 * dwarf2read.c (create_addrmap_from_index)
12136 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12137 (process_psymtab_comp_unit_reader, add_partial_symbol)
12138 (add_partial_subprogram, process_full_comp_unit)
12139 (read_file_scope, read_func_scope, read_lexical_block_scope)
12140 (read_call_site_scope, dwarf2_rnglists_process)
12141 (dwarf2_ranges_process, dwarf2_ranges_read)
12142 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12143 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12144 Update.
12145 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12146 Update.
12147 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12148 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12149 (process_one_symbol): Change type of "section_offsets".
12150 * ctfread.c (get_objfile_text_range): Update.
12151 * coffread.c (coff_symtab_read, enter_linenos)
12152 (process_coff_symbol): Update.
12153 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12154 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12155
12156 2020-01-08 Tom Tromey <tromey@adacore.com>
12157
12158 * dwarf2read.c (parse_macro_definition): Use std::string.
12159 (parse_macro_definition): Likewise.
12160
12161 2020-01-08 Tom Tromey <tromey@adacore.com>
12162
12163 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12164 (ATTR_ALLOC_CHUNK): Remove.
12165
12166 2020-01-08 Tom Tromey <tromey@adacore.com>
12167
12168 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12169
12170 2020-01-08 Tom Tromey <tromey@adacore.com>
12171
12172 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12173 (dwarf2_compute_name, open_dwo_file): Likewise.
12174 (process_enumeration_scope): Use std::vector.
12175 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12176 (partial_die_info::fixup, dwarf2_start_subfile)
12177 (guess_full_die_structure_name, dwarf2_name): Likewise.
12178 (determine_prefix): Update.
12179 (guess_full_die_structure_name): Make return type const.
12180 (partial_die_full_name): Return unique_xmalloc_ptr.
12181 (DW_FIELD_ALLOC_CHUNK): Remove.
12182
12183 2020-01-07 Tom Tromey <tromey@adacore.com>
12184
12185 PR build/24937:
12186 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12187
12188 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12189
12190 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12191
12192 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12193
12194 * stack.c (print_frame_info): Move disassemble_next_line code
12195 inside source_print block.
12196
12197 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12198
12199 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12200 gdb/signals.h, as we are now using native signal symbols.
12201
12202 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12203
12204 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12205 overflow by an early check of content vs threshold.
12206 * tui/tui-source.c (tui_source_window::line_is_displayed):
12207 Likewise.
12208
12209 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12210
12211 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12212
12213 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12214
12215 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12216 export table if no section contains it's RVA.
12217
12218 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12219
12220 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12221
12222 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12223
12224 * source.c (print_source_lines_base): Set last_line_listed.
12225
12226 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12227
12228 * tui/tui-disasm.c: Remove trailing spaces.
12229
12230 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12231 Pedro Alves <palves@redhat.com>
12232
12233 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12234 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12235 (windows_gdb_signal_to_target): New function, uses the above
12236 enumeration to convert GDB internal signal codes to equivalent
12237 Windows codes.
12238 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12239 * windows-nat.c: Include "gdb_wait.h".
12240 (get_windows_debug_event): Extract the fatal exception from the
12241 exit status and convert to the equivalent Posix signal number.
12242 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12243 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12244 * gdbsupport/gdb_wait.c: New file, implements
12245 windows_status_to_termsig.
12246 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12247 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12248
12249 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12250
12251 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12252 show_layout.
12253
12254 2020-01-05 Luis Machado <luis.machado@linaro.org>
12255
12256 * aarch64-linux-nat.c
12257 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12258 and bfd_mach_aarch64.
12259
12260 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12261
12262 * ui-file.c (stdio_file::can_emit_style_escape)
12263 (tee_file::can_emit_style_escape): Ensure style is used also on
12264 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12265 to gdb_stdout.
12266 * main.c (set_gdb_data_directory): Use file style to output the
12267 warning that the given pathname is not a directory.
12268 * top.c (show_history_filename, gdb_safe_append_history)
12269 (show_gdb_datadir): Use file style.
12270
12271 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12272
12273 * solib-target.c (struct lm_info_target):
12274 Change offsets to be a unique_xmalloc_ptr.
12275 (solib_target_relocate_section_addresses): Update.
12276
12277 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12278
12279 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12280
12281 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12282
12283 * MAINTAINERS (Write After Approval): Add myself.
12284
12285 2020-01-02 Luis Machado <luis.machado@linaro.org>
12286
12287 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12288 Cell BE architecture.
12289 * target.h (struct target_ops) <thread_architecture>: Likewise.
12290
12291 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12292
12293 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12294
12295 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12296
12297 * MAINTAINERS (Write After Approval): Add myself.
12298
12299 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12300
12301 * gdbarch.sh: Update copyright year range of generated files.
12302
12303 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12304
12305 Update copyright year range in all GDB files.
12306
12307 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12308
12309 * copyright.py: Convert to Python 3.
12310
12311 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12312
12313 * copyright.py: Adapt after move of gnulib directory from gdb
12314 directory to toplevel directory.
12315
12316 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12317
12318 * copyright.py (main): Exit if run from the wrong directory.
12319
12320 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12321
12322 * top.c (print_gdb_version): Change copyright year to 2020.
12323
12324 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12325
12326 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12327
12328 For older changes see ChangeLog-2019.
12329 \f
12330 Local Variables:
12331 mode: change-log
12332 left-margin: 8
12333 fill-column: 74
12334 version-control: never
12335 coding: utf-8
12336 End: