gdb: Add ARC target and maintainer to MAINTAINERS
[binutils-gdb.git] / gdb / ChangeLog
1 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2
3 * MAINTAINERS: Add ARC target and maintainer.
4
5 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
6
7 * configure.tgt: ARC support for GNU/Linux.
8 * Makefile.in (ALL_TARGET_OBJS): Likewise.
9 * arc-linux-tdep.c: New file.
10 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
11 * arc-tdep.c (arc_write_pc): Use it.
12
13 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
14
15 * arc-tdep.c (arc_check_for_hardware_loop): New.
16 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
17
18 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
19
20 * arc-tdep.h: Include "gdbarch.h".
21
22 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
23
24 * arch/arc.h
25 (arc_gdbarch_features): New class to stir the selection of target XML.
26 (arc_create_target_description): Use FEATURES to choose XML target.
27 (arc_lookup_target_description): Use arc_create_target_description
28 to create _new_ target descriptions or return the already created
29 ones if the FEATURES is the same.
30 * arch/arc.c: Implementation of prototypes described above.
31 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
32 (arc_gdbarch_features_init): Initialize the FEATURES struct.
33 * arc-tdep.c (*_feature_name): Make feature names consistent.
34 (arc_register_feature): A new struct to hold information about
35 registers of a particular target/feature.
36 (arc_check_tdesc_feature): Check if XML provides registers in
37 compliance with ARC_REGISTER_FEATURE structs.
38 (arc_update_acc_reg_names): Add aliases for r58 and r59.
39 (determine_*_reg_feature_set): Which feature name to look for.
40 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
41 (mach_type_to_arc_isa): Convert from a set of binutils machine types
42 to expected ISA enums to be used in arc_gdbarch_features structs.
43 * features/Makefile (FEATURE_XMLFILES): Add new files.
44 * gdb/features/arc/v1-aux.c: New file.
45 * gdb/features/arc/v1-aux.xml: Likewise.
46 * gdb/features/arc/v1-core.c: Likewise.
47 * gdb/features/arc/v1-core.xml: Likewise.
48 * gdb/features/arc/v2-aux.c: Likewise.
49 * gdb/features/arc/v2-aux.xml: Likewise.
50 * gdb/features/arc/v2-core.c: Likewise.
51 * gdb/features/arc/v2-core.xml: Likewise.
52 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
53
54 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
55 Andrew Burgess <andrew.burgess@embecosm.com>
56
57 PR m2/26372
58 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
59 an assert. Remove single element array indexing pattern as the
60 MULTI_SUBSCRIPT support will handle this case too.
61
62 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
63
64 * value.h (valprint_check_validity): Move declaration from
65 here...
66 * valprint.h (valprint_check_validity): ... to here.
67
68 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
69
70 * debug.h: New file.
71 * debug.c (debug_prefixed_vprintf): New function.
72 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
73 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
74
75 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
76
77 * infrun.h (infrun_debug_printf_1): New function declaration.
78 (infrun_debug_printf): New macro.
79 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
80 throughout.
81 (infrun_debug_printf): New function.
82 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
83 (handle_jit_event): Likewise.
84
85 2020-08-21 Mark Wielaard <mark@klomp.org>
86
87 * ada-lex.l: Extend register warnings diagnostics comment for g++.
88
89 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
90
91 * frame.c (enum class frame_id_status): New.
92 (struct frame_info) <this_id::p>: Change type to frame_id_status.
93 (fprintf_frame): Update.
94 (compute_frame_id): Set frame id status to "computing" on entry.
95 Set it back to "not_computed" on failure and to "computed" on
96 success.
97 (get_frame_id): Assert the frame id is not being computed.
98 (create_sentinel_frame): Use frame_id_status::COMPUTED.
99 (create_new_frame): Likewise.
100 (frame_cleanup_after_sniffer): Update assert.
101
102 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
103
104 * regcache.c (pid_ptid_regcache_map): New type.
105 (target_ptid_regcache_map): Remove.
106 (target_pid_ptid_regcache_map): New type.
107 (regcaches): Change type to target_pid_ptid_regcache_map.
108 (get_thread_arch_aspace_regcache): Update.
109 (regcache_thread_ptid_changed): Update, handle pid-like ptid
110 case.
111 (regcaches_size): Update.
112 (regcache_count): Update.
113 (registers_changed_ptid_target_pid_test): New.
114 (_initialize_regcache): Register new test.
115
116 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
117
118 * regcache.c (regcache_count): New.
119 (struct regcache_test_data): New.
120 (regcache_test_data_up): New.
121 (populate_regcaches_for_test): New.
122 (regcaches_test): Remove.
123 (get_thread_arch_aspace_regcache_test): New.
124 (registers_changed_ptid_all_test): New.
125 (registers_changed_ptid_target_test): New.
126 (registers_changed_ptid_target_ptid_test): New.
127 (regcache_thread_ptid_changed): Remove regcache_count lambda.
128 (_initialize_regcache): Register new tests.
129
130 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
131
132 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
133 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
134 gdbarch and aspace parameter. Use current inferior's aspace.
135 Validate regcache's arch value.
136 (regcaches_test): Update.
137
138 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
139
140 * regcache.c (regcaches_test): Call registers_changed.
141
142 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
143
144 * infrun.c (process_event_stop_test): Fix typo "breapoint".
145
146 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
147
148 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
149 to find the end of prologue for flang compiled binaries.
150 * arm-tdep.c (arm_skip_prologue): Likewise.
151 * i386-tdep.c (i386_skip_prologue): Likewise.
152 * producer.c (producer_is_llvm): New function.
153 (producer_parsing_tests): Added new tests for clang/flang.
154 * producer.h (producer_is_llvm): New declaration.
155
156 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
157
158 * linux-nat.c (linux_nat_debug_printf): New function.
159 (linux_nat_debug_printf_1): New macro. Use throughout the file.
160
161 2020-08-18 Aaron Merey <amerey@redhat.com>
162
163 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
164 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
165 (CLIBS): Add DEBUGINFOD_LIBS.
166
167 2020-08-17 Sergei Trofimovich <siarheit@google.com>
168
169 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
170 'gdbarch_num_regs'.
171
172 2020-08-17 Tom Tromey <tromey@adacore.com>
173
174 * ada-varobj.c (ada_varobj_decode_var): Handle case where
175 ada_get_decoded_value returns NULL.
176
177 2020-08-17 Tom Tromey <tromey@adacore.com>
178
179 * python/py-inferior.c (infpy_search_memory): Use
180 gdb_py_object_from_ulongest.
181 * python/py-infevents.c (create_inferior_call_event_object)
182 (create_memory_changed_event_object): Use
183 gdb_py_object_from_ulongest.
184 * python/py-linetable.c (ltpy_entry_get_pc): Use
185 gdb_py_object_from_ulongest.
186
187 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
188
189 * loc.c (class symbol_needs_eval_context): Fix indentation.
190
191 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
192
193 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
194 bool.
195
196 2020-08-17 Tom de Vries <tdevries@suse.de>
197
198 PR gdb/26393
199 * gdbtypes.c (dump_dynamic_prop): New function.
200 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
201
202 2020-08-15 Tom de Vries <tdevries@suse.de>
203
204 PR backtrace/26390
205 * stack.c (print_frame_args): Temporarily set the selected
206 frame to FRAME while printing the frame's arguments.
207
208 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
209
210 PR breakpoints/26385
211 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
212 Always clear watchpoint with PTRACE_SET_DEBUGREG.
213
214 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
215
216 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
217 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
218 and >= to check return value instead of == -1 and != -1.
219
220 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
221
222 * utils.h (class gdb_argv) <as_array_view>: New method.
223 * utils.c (gdb_argv_as_array_view_test): New.
224 (_initialize_utils): Register selftest.
225 * maint.c (maintenance_selftest): Use the new method.
226
227 2020-08-13 Kamil Rytarowski <n54@gmx.com>
228
229 * target.h (supports_dumpcore, dumpcore): New
230 function declarations.
231 * target.c (supports_dumpcore, dumpcore): New
232 functions.
233 * target-delegates.c: Rebuild.
234 * gcore.c (gcore_command): Use target_supports_dumpcore ()
235 and target_dumpcore ().
236
237 2020-08-13 Aaron Merey <amerey@redhat.com>
238
239 * debuginfod-support.c: Replace global variables with user_data.
240
241 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
242
243 * maint.c (maintenance_selftest): Split args and pass array_view
244 to run_tests.
245
246 2020-08-12 Luis Machado <luis.machado@linaro.org>
247
248 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
249 type's length.
250 Use %s and pulongest to print the length.
251
252 2020-08-12 Pedro Alves <palves@redhat.com>
253
254 * NEWS: Move "Multi-target debugging support" item to the
255 "Changes since GDB 9" section.
256
257 2020-08-12 Pedro Alves <palves@redhat.com>
258
259 PR gdb/26336
260 * progspace.c (program_space::remove_objfile): Invalidate the
261 frame cache.
262
263 2020-08-11 Tom de Vries <tdevries@suse.de>
264
265 * MAINTAINERS: Mark ms1 as deleted.
266
267 2020-08-10 Luis Machado <luis.machado@linaro.org>
268
269 PR gdb/26310
270
271 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
272 act accordingly.
273 (aarch64_analyze_prologue_test): Add more unit tests to exercise
274 movz/str/stur/stp skipping behavior.
275
276 2020-08-10 Luis Machado <luis.machado@linaro.org>
277
278 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
279 struct user_sve_header instead of struct sve_context.
280
281 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
282
283 * read.h (dwarf2_fetch_die_loc_sect_off,
284 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
285 `void *` parameter with function_view.
286 * read.c (dwarf2_fetch_die_loc_sect_off,
287 dwarf2_fetch_die_loc_cu_off): Likewise.
288 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
289 (per_cu_dwarf_call): Adjust.
290 (get_frame_address_in_block_wrapper): Remove.
291 (indirect_synthetic_pointer): Adjust.
292 (get_ax_pc): Remove.
293 (dwarf2_compile_expr_to_ax): Adjust.
294
295 2020-08-08 Tom de Vries <tdevries@suse.de>
296
297 PR build/26344
298 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
299 constructor.
300 * regcache.c (get_thread_arch_aspace_regcache): Same.
301
302 2020-08-07 Tom Tromey <tromey@adacore.com>
303
304 * ravenscar-thread.c
305 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
306 New method.
307 (ravenscar_thread_target::wait): Check
308 runtime_initialized.
309 (ravenscar_thread_target::prepare_to_store)
310 (ravenscar_thread_target::stopped_by_sw_breakpoint)
311 (ravenscar_thread_target::stopped_by_hw_breakpoint)
312 (ravenscar_thread_target::stopped_by_watchpoint)
313 (ravenscar_thread_target::stopped_data_address)
314 (ravenscar_thread_target::core_of_thread): Use
315 scoped_restore_current_thread and
316 set_base_thread_from_ravenscar_task.
317
318 2020-08-07 Tom Tromey <tromey@adacore.com>
319
320 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
321
322 2020-08-07 Tom Tromey <tromey@adacore.com>
323
324 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
325 update_inferior_ptid before update_thread_list.
326 (temporarily_change_regcache_ptid): New class.
327 (ravenscar_thread_target::fetch_registers)
328 (ravenscar_thread_target::store_registers)
329 (ravenscar_thread_target::prepare_to_store): Use base thread when
330 forwarding operation.
331
332 2020-08-07 Tom Tromey <tromey@adacore.com>
333
334 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
335 "is_pid" case.
336
337 2020-08-07 Tom Tromey <tromey@adacore.com>
338
339 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
340 New methods.
341 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
342 first.
343 (ravenscar_thread_target::add_thread): Rename from
344 ravenscar_add_thread.
345 (ravenscar_thread_target::update_thread_list): Use a lambda.
346 (ravenscar_thread_target::xfer_partial): New method.
347
348 2020-08-07 Tom Tromey <tromey@adacore.com>
349
350 * ada-lang.h (ada_task_list_iterator_ftype): Now a
351 gdb::function_view.
352 (iterate_over_live_ada_tasks): Change type of argument.
353 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
354 of argument.
355
356 2020-08-07 Tom Tromey <tromey@adacore.com>
357
358 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
359 Remove.
360 (ravenscar_thread_target::extra_thread_info): Remove.
361 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
362 defer to target beneath for non-Ravenscar threads.
363
364 2020-08-07 Tom Tromey <tromey@adacore.com>
365
366 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
367 get_base_thread_from_ravenscar_task>: Now methods.
368 <m_cpu_map>: New member.
369 (ravenscar_thread_target::get_thread_base_cpu): Rename from
370 ravenscar_get_thread_base_cpu. Check m_cpu_map.
371 (ravenscar_thread_target::task_is_currently_active): Update.
372 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
373 Now a method.
374 (ravenscar_thread_target::add_active_thread): Put initial thread
375 into the m_cpu_map.
376
377 2020-08-07 Tom Tromey <tromey@adacore.com>
378
379 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
380 event_ptid.
381
382 2020-08-07 Tom Tromey <tromey@adacore.com>
383
384 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
385 runtime_initialized.
386
387 2020-08-07 Tom Tromey <tromey@adacore.com>
388
389 * ravenscar-thread.c (ravenscar_thread_target): Don't call
390 add_active_thread.
391 (ravenscar_thread_target::add_active_thread): Now public.
392 (ravenscar_inferior_created): Call add_active_thread after pushing
393 the target.
394
395 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
396
397 * regcache.c (ptid_regcache_map): New type.
398 (target_ptid_regcache_map): New type.
399 (regcaches): Change type to target_ptid_regcache_map.
400 (get_thread_arch_aspace_regcache): Update to regcaches' new
401 type.
402 (regcache_thread_ptid_changed): Likewise.
403 (registers_changed_ptid): Likewise.
404 (regcaches_size): Likewise.
405 (regcaches_test): Update.
406 (regcache_thread_ptid_changed): Update.
407 * regcache.h (regcache_up): New type.
408 * gdbsupport/ptid.h (hash_ptid): New struct.
409
410 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
411
412 * observable.h (thread_ptid_changed): Add parameter
413 `process_stratum_target *`.
414 * infrun.c (infrun_thread_ptid_changed): Add parameter
415 `process_stratum_target *` and use it.
416 (selftests): New namespace.
417 (infrun_thread_ptid_changed): New function.
418 (_initialize_infrun): Register selftest.
419 * regcache.c (regcache_thread_ptid_changed): Add parameter
420 `process_stratum_target *` and use it.
421 (regcache_thread_ptid_changed): New function.
422 (_initialize_regcache): Register selftest.
423 * thread.c (thread_change_ptid): Pass target to
424 thread_ptid_changed observable.
425
426 2020-08-06 Caroline Tice <cmtice@google.com>
427
428 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
429 (struct dwp_sections): Update field comments. Add loclists and
430 rnglists fields.
431 (struct virtual_v2_dwo_sections): Rename struct to
432 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
433 size & offset fields for loclists and rnglists.
434 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
435 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
436 skipping dummy type units.
437 (create_dwp_hash_table): Update the large comment above the function to
438 discuss Version 5 DWP files as well, with references. Update all the
439 version checks in the function to check for version 5 as well. Add new
440 section at the end to create dwp hash table for version 5.
441 (create_dwp_v2_section): Rename function to
442 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
443 Add V5 to error message text.
444 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
445 into calls to create_dwp_v2_or_v5_section.
446 (create_dwo_unit_in_dwp_v5): New function.
447 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
448 check for version2; add else clause to handle version 5.
449 (open_and_init_dwo_file): Add code to check dwarf version & only call
450 create_debug_types_hash_table (with sections.types) if version is not 5;
451 else call create_debug_type_hash_table, with sections.info.
452 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
453 version 5.
454 (dwarf2_locate_v5_dwp_sections): New function.
455 (open_and_init_dwp_file): Add else-if clause for version 5 to call
456 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
457
458 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
459
460 * regcache.h (class regcache): Remove friend
461 registers_changed_ptid.
462 <regcache_thread_ptid_changed>: Remove.
463 <regcaches>: Remove.
464 * regcache.c (regcache::regcaches): Rename to...
465 (regcaches): ... this. Make static.
466 (get_thread_arch_aspace_regcache): Update.
467 (regcache::regcache_thread_ptid_changed): Rename to...
468 (regcache_thread_ptid_changed): ... this. Update.
469 (class regcache_access): Remove.
470 (regcaches_test): Update.
471 (_initialize_regcache): Update.
472 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
473 <forward_list>.
474
475 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
476
477 * regcache.h (class regcache) <current_regcache>: Rename to...
478 <regcaches>: ... this. Move doc here.
479 * regcache.c (regcache::current_regcache) Rename to...
480 (regcache::regcaches): ... this. Move doc to header.
481 (get_thread_arch_aspace_regcache): Update.
482 (regcache::regcache_thread_ptid_changed): Update.
483 (registers_changed_ptid): Update.
484 (class regcache_access) <current_regcache_size>: Rename to...
485 <regcaches_size>: ... this.
486 (current_regcache_test): Rename to...
487 (regcaches_test): ... this.
488 (_initialize_regcache): Update.
489
490 2020-08-06 Victor Collod <vcollod@nvidia.com>
491
492 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
493
494 2020-08-05 Kevin Buettner <kevinb@redhat.com>
495
496 * corelow.c (core_target::build_file_mappings): Don't output
497 null pathname in warning.
498
499 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
500
501 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
502 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
503 gdb.dwarf2/dw2-single-line-discriminators.exp,
504 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
505
506 2020-08-05 Tom Tromey <tromey@adacore.com>
507
508 PR rust/26197:
509 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
510 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
511 Fix off-by-one and type size errors in ordinary case.
512
513 2020-08-05 Tom de Vries <tdevries@suse.de>
514
515 * gdbtypes.c (type_not_allocated, type_not_associated): Use
516 "prop->const_val () == 0" instead of "prop->const_val () != 0".
517
518 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
519
520 * frame.h (frame_id_p): Return bool.
521 (frame_id_artificial_p): Return bool.
522 (frame_id_eq): Return bool.
523 (has_stack_frames): Return bool.
524 (get_selected_frame): Fix typo in comment.
525 (get_frame_pc_if_available): Return bool.
526 (get_frame_address_in_block_if_available): Return bool.
527 (get_frame_func_if_available): Return bool.
528 (read_frame_register_unsigned): Return bool.
529 (get_frame_register_bytes): Return bool.
530 (safe_frame_unwind_memory): Return bool.
531 (deprecated_frame_register_read): Return bool.
532 (frame_unwinder_is): Return bool.
533 * frame.c (struct frame_info) <prev_arch::p>: Change type to
534 bool.
535 <this_id::p>: Likewise.
536 <prev_p>: Likewise.
537 (frame_stash_add): Return bool.
538 (get_frame_id): Use bool.
539 (frame_id_build_special) Use bool.
540 (frame_id_build_unavailable_stack): Use bool.
541 (frame_id_build): Use bool.
542 (frame_id_p): Return bool, use true/false instead of 1/0.
543 (frame_id_artificial_p): Likewise.
544 (frame_id_eq): Likewise.
545 (frame_id_inner): Likewise.
546 (get_frame_func_if_available): Likewise.
547 (read_frame_register_unsigned): Likewise.
548 (deprecated_frame_register_read): Likewise.
549 (get_frame_register_bytes): Likewise.
550 (has_stack_frames): Likewise.
551 (inside_main_func): Likewise.
552 (inside_entry_func): Likewise.
553 (get_frame_pc_if_available): Likewise.
554 (get_frame_address_in_block_if_available): Likewise.
555 (frame_unwinder_is): Likewise.
556 (safe_frame_unwind_memory): Likewise.
557 (frame_unwind_arch): Likewise.
558
559 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
560
561 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
562 type to cached_copy_status.
563 (fprintf_frame): Adjust.
564 (get_frame_func_if_available): Adjust.
565 (frame_cleanup_after_sniffer): Adjust.
566
567 2020-08-04 Mark Wielaard <mark@klomp.org>
568
569 * MAINTAINERS (Write After Approval): Update email address.
570
571 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
572
573 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
574 dynamic_prop::const_val.
575
576 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
577
578 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
579 dynamic_prop::kind.
580
581 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
582
583 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
584
585 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
586
587 * configure.tgt: Set gdb_sim for bpf-*-* targets.
588
589 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
590 Jose E. Marchesi <jose.marchesi@oracle.com>
591
592 * configure.tgt: Add entry for bpf-*-*.
593 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
594 (ALLDEPFILES): Add bpf-tdep.c.
595 * bpf-tdep.c: New file.
596 * MAINTAINERS: Add bpf target and maintainer.
597 * NEWS: Mention the support for the new target.
598
599 2020-08-04 Tom de Vries <tdevries@suse.de>
600
601 PR symtab/23270
602 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
603 Error.
604
605 2020-08-03 John Baldwin <jhb@FreeBSD.org>
606
607 * syscalls/freebsd.xml: Regenerate.
608
609 2020-08-03 John Baldwin <jhb@FreeBSD.org>
610
611 * syscalls/update-freebsd.sh: Fix usage and year range.
612
613 2020-08-03 Tom de Vries <tdevries@suse.de>
614
615 PR symtab/26333
616 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
617 DW_LNE_lo_user/DW_LNE_hi_user range.
618
619 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
620
621 PR ada/26318
622 * ada-lang.c (ada_modulus): Return 0 if property is not of const
623 kind.
624
625 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
626
627 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
628
629 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
630
631 * breakpoint.c (set_breakpoint_condition): Update the condition
632 expressions after checking that the input condition string parses
633 successfully and does not contain junk at the end.
634
635 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
636
637 * breakpoint.c (set_breakpoint_condition): Update the
638 condition string after parsing the new condition successfully.
639
640 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
641
642 * proc-api.c (_STRUCTURED_PROC): Don't define.
643 * proc-events.c: Likewise.
644 * proc-flags.c: Likewise.
645 * proc-why.c: Likewise.
646 * procfs.c: Likewise.
647
648 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
649 * configure, config.in: Regenerate.
650
651 2020-07-30 Tom de Vries <tdevries@suse.de>
652
653 PR build/26320
654 * ui-style.h (struct ui_file_style::color): Wrap m_value and
655 m_red/m_green/m_blue in a union.
656
657 2020-07-29 Tom de Vries <tdevries@suse.de>
658
659 PR tdep/26280
660 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
661
662 2020-07-28 Tom Tromey <tromey@adacore.com>
663
664 PR symtab/26270:
665 * symtab.h (find_pc_partial_function_sym): Declare.
666 * cli/cli-cmds.c (disassemble_command): Use
667 find_pc_partial_function_sym. Check asm_demangle.
668 * blockframe.c (cache_pc_function_sym): New global.
669 (cache_pc_function_name): Remove.
670 (clear_pc_function_cache): Update.
671 (find_pc_partial_function_sym): New function, from
672 find_pc_partial_function.
673 (find_pc_partial_function): Rewrite using
674 find_pc_partial_function_sym.
675
676 2020-07-28 Tom Tromey <tromey@adacore.com>
677
678 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
679 help. Add usage.
680
681 2020-07-28 Tom Tromey <tromey@adacore.com>
682
683 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
684 <DW_OP_GNU_variable_value>: Cast to address type.
685
686 2020-07-28 Kamil Rytarowski <n54@gmx.com>
687
688 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
689 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
690 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
691 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
692 (nbsd_get_siginfo_type): New.
693 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
694 (_initialize_nbsd_tdep): New.
695
696 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
697
698 PR binutils/26301
699 * configure: Regenerated.
700
701 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
702
703 PR binutils/26301
704 * configure: Regenerated.
705
706 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
707
708 * python/py-frame.c: Remove 'user-regs.h' include.
709 (frapy_read_register): Rewrite to make use of
710 gdbpy_parse_register_id.
711 * python/py-registers.c (gdbpy_parse_register_id): New function,
712 moved here from python/py-unwind.c. Updated the return type, and
713 also accepts register descriptor objects.
714 * python/py-unwind.c: Remove 'user-regs.h' include.
715 (pyuw_parse_register_id): Moved to python/py-registers.c.
716 (unwind_infopy_add_saved_register): Update to use
717 gdbpy_parse_register_id.
718 (pending_framepy_read_register): Likewise.
719 * python/python-internal.h (gdbpy_parse_register_id): Declare.
720
721 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
722
723 * python/py-registers.c: Add 'user-regs.h' include.
724 (register_descriptor_iter_find): New function.
725 (register_descriptor_iterator_object_methods): New static global
726 methods array.
727 (register_descriptor_iterator_object_type): Add pointer to methods
728 array.
729
730 2020-07-27 John Baldwin <jhb@FreeBSD.org>
731
732 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
733 for all architectures on FreeBSD 11.3 and later.
734
735 2020-07-27 Tom Tromey <tromey@adacore.com>
736
737 * gcore.h (load_corefile): Don't declare.
738
739 2020-07-27 Tom de Vries <tdevries@suse.de>
740
741 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
742 * config.in: Regenerate.
743 * configure: Regenerate.
744
745 2020-07-26 Eli Zaretskii <eliz@gnu.org>
746
747 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
748 ws2tcpip.h. When checking whether socklen_t type is defined, use
749 ws2tcpip.h if it is available and sys/socket.h isn't.
750 * configure: Regenerate.
751 * config.in: Regenerate.
752
753 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
754
755 PR fortran/23051
756 PR fortran/26139
757 * valops.c (value_ind): Pass address to
758 readjust_indirect_value_type.
759 * value.c (readjust_indirect_value_type): Make parameter
760 non-const, and add extra address parameter. Resolve original type
761 before using it.
762 * value.h (readjust_indirect_value_type): Update function
763 signature and comment.
764
765 2020-07-25 Tom de Vries <tdevries@suse.de>
766
767 PR symtab/26243
768 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
769 entries.
770
771 2020-07-24 Aaron Merey <amerey@redhat.com>
772
773 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
774 * configure: Rebuild.
775
776 2020-07-23 Kevin Buettner <kevinb@redhat.com>
777
778 PR corefiles/26294
779 * corelow.c (_initialize_corelow): Add period to help text
780 for "maintenance print core-file-backed-mappings".
781
782 2020-07-23 Pedro Alves <pedro@palves.net>
783
784 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
785 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
786 meanwhile.
787 * frame.c (frame_cache_generation, get_frame_cache_generation):
788 New.
789 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
790 (get_prev_frame_if_no_cycle): On exception, don't touch
791 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
792 * frame.h (get_frame_cache_generation): Declare.
793
794 2020-07-23 Tom de Vries <tdevries@suse.de>
795
796 PR tui/26282
797 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
798 New default constructor.
799
800 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
801
802 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
803 exclude non-statement entries.
804
805 2020-07-22 Kevin Buettner <kevinb@redhat.com>
806
807 * NEWS (New commands): Mention new command
808 "maintenance print core-file-backed-mappings".
809
810 2020-07-22 Kevin Buettner <kevinb@redhat.com>
811
812 * corelow.c (gdbcmd.h): Include.
813 (core_target::info_proc_mappings): New method.
814 (get_current_core_target): New function.
815 (maintenance_print_core_file_backed_mappings): New function.
816 (_initialize_corelow): Add core-file-backed-mappings to
817 "maint print" commands.
818
819 2020-07-22 Kevin Buettner <kevinb@redhat.com>
820
821 * linux-tdep.c (dump_note_entry_p): New function.
822 (linux_dump_mapping_p_ftype): New typedef.
823 (linux_find_memory_regions_full): Add new parameter,
824 should_dump_mapping_p.
825 (linux_find_memory_regions): Adjust call to
826 linux_find_memory_regions_full.
827 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
828 call to linux_find_memory_regions_full.
829
830 2020-07-22 Kevin Buettner <kevinb@redhat.com>
831
832 * corelow.c (solist.h, unordered_map): Include.
833 (class core_target): Add field m_core_file_mappings and
834 method build_file_mappings.
835 (core_target::core_target): Call build_file_mappings.
836 (core_target::~core_target): Free memory associated with
837 m_core_file_mappings.
838 (core_target::build_file_mappings): New method.
839 (core_target::xfer_partial): Use m_core_file_mappings
840 for memory transfers.
841 * linux-tdep.c (linux_read_core_file_mappings): New
842 function.
843 (linux_core_info_proc_mappings): Rewrite to use
844 linux_read_core_file_mappings.
845 (linux_init_abi): Register linux_read_core_file_mappings.
846
847 2020-07-22 Kevin Buettner <kevinb@redhat.com>
848
849 * arch-utils.c (default_read_core_file_mappings): New function.
850 * arch-utils.c (default_read_core_file_mappings): Declare.
851 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
852 * gdbarch.h, gdbarch.c: Regenerate.
853
854 2020-07-22 Kevin Buettner <kevinb@redhat.com>
855
856 PR corefiles/25631
857 * corelow.c (core_target:xfer_partial): Revise
858 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
859 case after first checking the stratum beneath the core
860 target.
861 (has_all_memory): Return true.
862 * target.c (raw_memory_xfer_partial): Revise comment
863 regarding use of has_all_memory.
864
865 2020-07-22 Kevin Buettner <kevinb@redhat.com>
866
867 * exec.h (section_table_xfer_memory): Revise declaration,
868 replacing section name parameter with an optional callback
869 predicate.
870 * exec.c (section_table_xfer_memory): Likewise.
871 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
872 of section_table_xfer_memory.
873
874 2020-07-22 Tom Tromey <tromey@adacore.com>
875
876 * mi/mi-cmd-stack.c (list_args_or_locals): Use
877 lookup_symbol_search_name.
878
879 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
880
881 * python/py-registers.c (gdbpy_register_object_data_init): Remove
882 redundant local variable.
883 (gdbpy_get_register_descriptor): Extract descriptor vector as a
884 reference, not pointer, update code accordingly.
885
886 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
887 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
888
889 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
890 * jit.c (jit_breakpoint_re_set_internal): Use the
891 `skip_jit_symbol_lookup` field.
892
893 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
894 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
895
896 * jit.c (jit_read_descriptor): Define the descriptor address once,
897 use twice.
898 (jit_breakpoint_deleted): Move the declaration of the loop variable
899 `iter` into the loop header.
900 (jit_breakpoint_re_set_internal): Move the declaration of the local
901 variable `objf_data` to the first point of definition.
902 (jit_event_handler): Move the declaration of local variables
903 `code_entry`, `entry_addr`, and `objf` to their first point of use.
904 Rename `objf` to `jited`.
905
906 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
907
908 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
909 Remove.
910 * jit.c (get_jiter_objfile_data): Update.
911
912 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
913 Simon Marchi <simon.marchi@polymtl.ca>
914
915 * jit.c (struct jit_program_space_data): Remove.
916 (jit_program_space_key): Remove.
917 (jiter_objfile_data::~jiter_objfile_data): Remove program space
918 stuff.
919 (get_jit_program_space_data): Remove.
920 (jit_breakpoint_deleted): Iterate on all of the program space's
921 objfiles.
922 (jit_inferior_init): Likewise.
923 (jit_breakpoint_re_set_internal): Likewise. Also change return
924 type to void.
925 (jit_breakpoint_re_set): Pass current_program_space to
926 jit_breakpoint_re_set_internal.
927
928 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
929
930 * jit.h (struct jiter_objfile_data) <cached_code_address,
931 jit_breakpoint>: Move to here from ...
932 * jit.c (jit_program_space_data): ... here.
933 (jiter_objfile_data::~jiter_objfile_data): Update.
934 (jit_breakpoint_deleted): Update.
935 (jit_breakpoint_re_set_internal): Update.
936
937 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
938
939 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
940 checks.
941 (jit_read_descriptor): Remove NULL check.
942 (jit_event_handler): Add an assertion.
943
944 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
945
946 * jit.h (struct jit_objfile_data): Split into...
947 (struct jiter_objfile_data): ... this ...
948 (struct jited_objfile_data): ... and this.
949 * objfiles.h (struct objfile) <jit_data>: Remove.
950 <jiter_data, jited_data>: New fields.
951 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
952 (jiter_objfile_data::~jiter_objfile_data): ... this.
953 (get_jit_objfile_data): Rename to ...
954 (get_jiter_objfile_data): ... this.
955 (add_objfile_entry): Update.
956 (jit_read_descriptor): Use get_jiter_objfile_data.
957 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
958 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
959 (jit_inferior_exit_hook): Use objfile's jited_data field.
960
961 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
962
963 * jit.h: Forward-declare `struct minimal_symbol`.
964 (struct jit_objfile_data): Migrate to here from jit.c; also add a
965 constructor, destructor, and an objfile* field.
966 * jit.c (jit_objfile_data): Remove.
967 (struct jit_objfile_data): Migrate from here to jit.h.
968 (jit_objfile_data::~jit_objfile_data): New destructor
969 implementation with code moved from free_objfile_data.
970 (free_objfile_data): Delete.
971 (get_jit_objfile_data): Update to use the jit_data field of objfile.
972 (jit_find_objf_with_entry_addr): Ditto.
973 (jit_inferior_exit_hook): Ditto.
974 (_initialize_jit): Remove the call to
975 register_objfile_data_with_cleanup.
976 * objfiles.h (struct objfile) <jit_data>: New field.
977
978 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
979
980 * jit.h: Forward-declare `struct objfile`.
981 (jit_event_handler): Add a second parameter, the JITer objfile.
982 * jit.c (jit_read_descriptor): Change the signature to take the
983 JITer objfile as an argument instead of the jit_program_space_data.
984 (jit_inferior_init): Update the call to jit_read_descriptor.
985 (jit_event_handler): Use the new JITer objfile argument when calling
986 jit_read_descriptor.
987 * breakpoint.c (handle_jit_event): Update the call to
988 jit_event_handler to pass the JITer objfile.
989
990 2020-07-21 John Baldwin <jhb@FreeBSD.org>
991
992 * gdbarch.c: Regenerate.
993 * gdbarch.h: Regenerate.
994 * gdbarch.sh (handle_segmentation_fault): Remove method.
995 * infrun.c (handle_segmentation_fault): Remove.
996 (print_signal_received_reason): Remove call to
997 handle_segmentation_fault.
998
999 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1000
1001 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1002 Rename to sparc64_linux_report_signal_info and add siggnal
1003 argument.
1004 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1005 instead of sparc64_linux_handle_segmentation_fault.
1006
1007 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1008
1009 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1010 i386_linux_report_signal_info instead of
1011 i386_linux_handle_segmentation_fault.
1012 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1013 to i386_linux_report_signal_info and add siggnal argument.
1014 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1015 of i386_linux_handle_segmentation_fault.
1016 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1017 to i386_linux_report_signal_info and add siggnal argument.
1018
1019 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1020
1021 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1022 hook if present.
1023
1024 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1025
1026 * gdbarch.c: Regenerate.
1027 * gdbarch.h: Regenerate.
1028 * gdbarch.sh (report_signal_info): New method.
1029 * infrun.c (print_signal_received_reason): Invoke gdbarch
1030 report_signal_info hook if present.
1031
1032 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1033
1034 * python/py-registers.c : Add 'unordered_map' include.
1035 (gdbpy_new_reggroup): Renamed to...
1036 (gdbpy_get_reggroup): ...this. Update to only create register
1037 group descriptors when needed.
1038 (gdbpy_reggroup_iter_next): Update.
1039
1040 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1041
1042 * python/py-registers.c (gdbpy_register_object_data): New static
1043 global.
1044 (gdbpy_register_object_data_init): New function.
1045 (gdbpy_new_register_descriptor): Renamed to...
1046 (gdbpy_get_register_descriptor): ...this, and update to reuse
1047 existing register descriptors where possible.
1048 (gdbpy_register_descriptor_iter_next): Update.
1049 (gdbpy_initialize_registers): Register new gdbarch data.
1050
1051 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1052
1053 * linux-nat.c (stopped_pids): Make static.
1054
1055 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1056
1057 PR ada/26235
1058 * gdbtypes.c (ada_discrete_type_low_bound,
1059 ada_discrete_type_high_bound): Handle undefined bounds.
1060
1061 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1062
1063 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1064 declaration.
1065 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1066 function.
1067
1068 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1069
1070 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1071 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1072 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1073 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1074 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1075 method.
1076
1077 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1078
1079 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1080 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1081 which are deprecated in Guile 3.0.
1082 * configure.ac (try_guile_versions): Add "guile-3.0".
1083 * configure (try_guile_versions): Regenerate.
1084 * NEWS: Update entry.
1085
1086 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1087 Doug Evans <dje@google.com>
1088
1089 PR gdb/21104
1090 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1091 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1092 USING_GUILE_BEFORE_2_2.
1093 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1094 Change type to 'scm_t_port_type *'.
1095 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1096 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1097 parameter and honor it. Update callers.
1098 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1099 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1100 functions.
1101 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1102 USING_GUILE_BEFORE_2_2.
1103 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1104 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1105 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1106 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1107 and 'SCM_PORT_TYPE'.
1108 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1109 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1110 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1111 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1112 [!USING_GUILE_BEFORE_2_2]: New functions.
1113 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1114 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1115 'gdbscm_memory_port_read'.
1116 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1117 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1118 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1119 function.
1120 (ioscm_init_memory_port): Remove.
1121 (ioscm_init_memory_port_stream): New function
1122 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1123 function.
1124 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1125 Return scm_from_uint (0).
1126 (gdbscm_set_memory_port_read_buffer_size_x)
1127 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1128 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1129 Return scm_from_uint (0).
1130 (gdbscm_set_memory_port_write_buffer_size_x)
1131 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1132 * configure.ac (try_guile_versions): Add "guile-2.2".
1133 * configure: Regenerate.
1134 * NEWS: Add entry.
1135
1136 2020-07-18 Tom Tromey <tom@tromey.com>
1137
1138 * linux-nat.c (linux_multi_process): Remove.
1139 (linux_nat_target::supports_multi_process): Return true.
1140
1141 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1142
1143 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1144 (riscv_lookup_target_description): Return pointer out of
1145 unique_ptr.
1146 * target-descriptions.c (allocate_target_description): Add
1147 comment.
1148 (target_desc_deleter::operator()): Likewise.
1149 * target-descriptions.h (struct target_desc_deleter): Moved to
1150 gdbsupport/tdesc.h.
1151 (target_desc_up): Likewise.
1152
1153 2020-07-17 Tom Tromey <tromey@adacore.com>
1154
1155 * linux-nat.c (linux_nat_target::supports_non_stop)
1156 (linux_nat_target::always_non_stop_p): Use "true".
1157 (linux_nat_target::supports_disable_randomization): Use "true" and
1158 "false".
1159
1160 2020-07-16 Caroline Tice <cmtice@google.com>
1161
1162 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1163 (RNGLIST_HEADER_SIZE64): New constant definition.
1164 (struct dwop_section_names): Add rnglists_dwo.
1165 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1166 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1167 (struct dwo_sections): Add rnglists field.
1168 (read_attribut_reprocess): Add tag parameter.
1169 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1170 (cu_debug_rnglists_section): New function (decl & definition).
1171 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1172 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1173 die whose range is being checked; get rnglist section from
1174 cu_debug_rnglists_section, to get from either objfile or dwo file as
1175 appropriate. Add cases for DW_RLE_base_addressx,
1176 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1177 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1178 test inside if-condition and updating complaint message.
1179 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1180 dwarf2_rnglists_process.
1181 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1182 dwarf2_ranges_process.
1183 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1184 need_ranges_base and update comment appropriately. Also pass die tag
1185 to dwarf2_ranges_read.
1186 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1187 need_ranges_base and update comment appropriately. Also pass die tag
1188 to dwarf2_ranges_process.
1189 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1190 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1191 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1192 need_ranges_base and update comment appropriately. Also pass die tag
1193 to read_attribute_reprocess and dwarf2_ranges_read.
1194 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1195 and update function comment appropriately.
1196 (read_loclist_index): Call read_loclists_rnglists_header instead of
1197 read_loclist_header.
1198 (read_rnglist_index): New function.
1199 (read_attribute_reprocess): Add tag parameter. Add code for
1200 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1201 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1202
1203 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1204
1205 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1206 being resolved.
1207
1208 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1209
1210 * arch-utils.c (show_architecture): Update formatting of messages.
1211
1212 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1213
1214 * gdbtypes.h (struct type) <bounds>: Handle array and string
1215 types.
1216 * ada-lang.c (assign_aggregate): Use type::bounds on
1217 array/string type.
1218 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1219 * c-varobj.c (c_number_of_children): Likewise.
1220 (c_describe_child): Likewise.
1221 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1222 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1223 (f_type_print_base): Likewise.
1224 * f-valprint.c (f77_array_offset_tbl): Likewise.
1225 (f77_get_upperbound): Likewise.
1226 (f77_print_array_1): Likewise.
1227 * guile/scm-type.c (gdbscm_type_range): Likewise.
1228 * m2-typeprint.c (m2_array): Likewise.
1229 (m2_is_long_set_of_type): Likewise.
1230 * m2-valprint.c (get_long_set_bounds): Likewise.
1231 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1232 * python/py-type.c (typy_range): Likewise.
1233 * rust-lang.c (rust_internal_print_type): Likewise.
1234 * type-stack.c (type_stack::follow_types): Likewise.
1235 * valarith.c (value_subscripted_rvalue): Likewise.
1236 * valops.c (value_cast): Likewise.
1237
1238 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1239
1240 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1241 callers to use the equivalent accessor methods.
1242
1243 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1244
1245 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1246 (struct type) <bit_stride>: New method.
1247 (TYPE_BIT_STRIDE): Remove.
1248 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1249
1250 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1251
1252 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1253 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1254 callers to use the equivalent accessor methods instead.
1255
1256 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1257
1258 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1259 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1260 callers to use the equivalent accessor methods instead.
1261
1262 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1263
1264 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1265 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1266 to use dynamic_prop::kind.
1267
1268 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1269
1270 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1271 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1272 to get the bound property's kind and check against
1273 PROP_UNDEFINED.
1274
1275 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1276
1277 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1278 all callers to use type::range_bounds followed by
1279 dynamic_prop::{low,high}.
1280
1281 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1282
1283 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1284 const_val, set_const_val, baton, set_locexpr, set_loclist,
1285 set_addr_offset, variant_parts, set_variant_parts,
1286 original_type, set_original_type>: New methods.
1287 <kind>: Rename to...
1288 <m_kind>: ... this. Update all users to use the new methods
1289 instead.
1290 <data>: Rename to...
1291 <m_data>: ... this. Update all users to use the new methods
1292 instead.
1293
1294 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1295
1296 * gdbtypes.c (get_discrete_bounds): Return failure if
1297 the range type's bounds are not both defined and constant
1298 values.
1299 (get_array_bounds): Update comment. Remove undefined bound check.
1300
1301 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1302
1303 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1304 the type::bounds method directly.
1305
1306 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1307
1308 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1309 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1310 are used to set the range type's bounds to use set_bounds.
1311
1312 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1313
1314 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1315
1316 2020-07-10 Pedro Alves <pedro@palves.net>
1317
1318 * gdbthread.h (inferior_ref): Define.
1319 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1320 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1321 * thread.c
1322 (scoped_restore_current_thread::restore):
1323 Adjust to gdb::ref_ptr.
1324 (scoped_restore_current_thread::~scoped_restore_current_thread):
1325 Remove manual decref handling.
1326 (scoped_restore_current_thread::scoped_restore_current_thread):
1327 Adjust to use
1328 inferior_ref::new_reference/thread_info_ref::new_reference.
1329 Incref the thread before calling get_frame_id instead of after.
1330 Let TARGET_CLOSE_ERROR propagate.
1331
1332 2020-07-10 Pedro Alves <pedro@palves.net>
1333
1334 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1335 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1336 NOT_AVAILABLE_ERROR.
1337 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1338 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1339
1340 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1341 Pedro Alves <pedro@palves.net>
1342
1343 PR gdb/26199
1344 * infrun.c (threads_are_resumed_pending_p): Delete.
1345 (do_target_wait): Remove threads_are_executing and
1346 threads_are_resumed_pending_p checks from the inferior_matches
1347 lambda. Update comments.
1348
1349 2020-07-10 Pedro Alves <pedro@palves.net>
1350
1351 PR gdb/26199
1352 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1353 executing threads.
1354
1355 2020-07-10 Pedro Alves <pedro@palves.net>
1356
1357 PR gdb/26199
1358 * infrun.c (handle_no_resumed): Handle multiple targets.
1359
1360 2020-07-10 Pedro Alves <pedro@palves.net>
1361
1362 PR gdb/26199
1363 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1364 target_is_async_p.
1365
1366 2020-07-10 Pedro Alves <pedro@palves.net>
1367
1368 PR gdb/26199
1369 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1370 threads, not all threads.
1371
1372 2020-07-10 Pedro Alves <pedro@palves.net>
1373
1374 PR gdb/26199
1375 * remote.c (remote_target::open_1): Pass remote target pointer as
1376 data to create_async_event_handler.
1377 (remote_async_inferior_event_handler): Mark async event handler
1378 before returning if the remote target still has either pending
1379 events or unacknowledged notifications.
1380
1381 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1382
1383 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1384 declaration.
1385 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1386 function.
1387
1388 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1389
1390 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1391 inferior_ptid.
1392
1393 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1394
1395 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1396 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1397 AT_FREEBSD_PS_STRINGS.
1398
1399 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1400
1401 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1402 of debugfile path on Windows.
1403
1404 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1405
1406 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1407 argument to 'data'.
1408
1409 2020-07-08 Tom Tromey <tromey@adacore.com>
1410
1411 * ada-lang.c (ada_exception_message_1): Use read_memory.
1412
1413 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1414
1415 PR python/22748
1416 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1417 special handling for inline frames.
1418 * findvar.c (value_of_register_lazy): Skip inline frames when
1419 creating lazy register values.
1420 * frame.c (frame_id_computed_p): Delete definition.
1421 * frame.h (frame_id_computed_p): Delete declaration.
1422
1423 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1424
1425 * NEWS: Mention additions to Python API.
1426 * python/py-arch.c (archpy_register_groups): New function.
1427 (arch_object_methods): Add 'register_groups' method.
1428 * python/py-registers.c (reggroup_iterator_object): New struct.
1429 (reggroup_object): New struct.
1430 (gdbpy_new_reggroup): New function.
1431 (gdbpy_reggroup_to_string): New function.
1432 (gdbpy_reggroup_name): New function.
1433 (gdbpy_reggroup_iter): New function.
1434 (gdbpy_reggroup_iter_next): New function.
1435 (gdbpy_new_reggroup_iterator): New function
1436 (gdbpy_initialize_registers): Register new types.
1437 (reggroup_iterator_object_type): Define new Python type.
1438 (gdbpy_reggroup_getset): New static global.
1439 (reggroup_object_type): Define new Python type.
1440 * python/python-internal.h
1441
1442 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1443
1444 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1445 * python/py-arch.c (archpy_registers): New function.
1446 (arch_object_methods): Add 'registers' method.
1447 * python/py-registers.c: New file.
1448 * python/python-internal.h
1449 (gdbpy_new_register_descriptor_iterator): Declare.
1450 (gdbpy_initialize_registers): Declare.
1451 * python/python.c (do_start_initialization): Call
1452 gdbpy_initialize_registers.
1453 * NEWS: Mention additions to the Python API.
1454
1455 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1456
1457 * NEWS: Mention new Python API method.
1458 * python/py-unwind.c (pending_framepy_architecture): New function.
1459 (pending_frame_object_methods): Add architecture method.
1460
1461 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1462
1463 * gdbarch.c: Regenerate.
1464 * gdbarch.h: Regenerate.
1465 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1466 (gdbarch_data): Use internal_error for the case where
1467 deprecated_set_gdbarch_data was originally needed.
1468 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1469 and use passed in obstack.
1470 (libunwind_frame_set_descr): Should no longer get back NULL from
1471 gdbarch_data.
1472 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1473 type.
1474 * user-regs.c (user_regs_init): Update parameters, and use passed
1475 in obstack.
1476 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1477 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1478
1479 2020-07-06 Tom de Vries <tdevries@suse.de>
1480
1481 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1482 End-Of-Sequence in lte_is_less_than.
1483 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1484 "gdb: Don't reorder line table entries too much when sorting".
1485
1486 2020-07-06 Tom de Vries <tdevries@suse.de>
1487
1488 PR tui/26205
1489 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1490
1491 2020-07-05 Tom de Vries <tdevries@suse.de>
1492
1493 PR build/26187
1494 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1495 std::uncaught_exceptions instead of deprecated
1496 std::uncaught_exception.
1497
1498 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1499
1500 * macroexp.h (macro_stringify): Return
1501 gdb::unique_xmalloc_ptr<char>.
1502 * macroexp.c (macro_stringify): Likewise.
1503 * macrotab.c (fixup_definition): Update.
1504
1505 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1506
1507 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1508 (lex_one_token): Update.
1509 * macroexp.c (struct macro_buffer) <release>: Return
1510 gdb::unique_xmalloc_ptr<char>.
1511 (macro_stringify): Update.
1512 (macro_expand): Update.
1513 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1514 * macroexp.h (macro_expand_next): Likewise.
1515
1516 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1517
1518 * macroexp.h (macro_lookup_ftype): Remove.
1519 (macro_expand, macro_expand_once, macro_expand_next): Remove
1520 lookup function parameters, add scope parameter.
1521 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1522 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1523 * macroscope.h (standard_macro_lookup): Change parameter type
1524 to macro_scope.
1525 * macroscope.c (standard_macro_lookup): Likewise.
1526 * c-exp.y (lex_one_token): Update.
1527 * macrocmd.c (macro_expand_command): Likewise.
1528 (macro_expand_once_command): Likewise.
1529
1530 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1531
1532 * inf-loop.c (inferior_event_handler): Remove client_data param.
1533 * inf-loop.h (inferior_event_handler): Likewise.
1534 * infcmd.c (step_1): Adjust.
1535 * infrun.c (proceed): Adjust.
1536 (fetch_inferior_event): Remove client_data param.
1537 (infrun_async_inferior_event_handler): Adjust.
1538 * infrun.h (fetch_inferior_event): Remove `void *` param.
1539 * linux-nat.c (handle_target_event): Adjust.
1540 * record-btrace.c (record_btrace_handle_async_inferior_event):
1541 Adjust.
1542 * record-full.c (record_full_async_inferior_event_handler):
1543 Adjust.
1544 * remote.c (remote_async_inferior_event_handler): Adjust.
1545
1546 2020-07-01 Tom Tromey <tom@tromey.com>
1547
1548 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1549 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1550
1551 2020-07-01 Tom Tromey <tom@tromey.com>
1552
1553 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1554 tui_gen_win_info.
1555 (tui_win_info::make_window): Merge with
1556 tui_gen_win_info::make_window.
1557 (tui_win_info::make_visible): Move from tui_gen_win_info.
1558 * tui/tui-win.c (tui_win_info::max_width): Move from
1559 tui_gen_win_info.
1560 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1561 type.
1562 <window_factory>: Likewise.
1563 * tui/tui-layout.c (tui_win_info::resize): Move from
1564 tui_gen_win_info.
1565 (make_standard_window): Change return type.
1566 (get_locator_window, tui_get_window_by_name): Likewise.
1567 (tui_layout_window::apply): Remove a cast.
1568 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1569 (struct tui_win_info): Merge with tui_gen_win_info.
1570 (struct tui_gen_win_info): Remove.
1571
1572 2020-07-01 Tom Tromey <tom@tromey.com>
1573
1574 * tui/tui-stack.h (struct tui_locator_window): Derive from
1575 tui_win_info.
1576 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1577 <can_box>: New method.
1578
1579 2020-07-01 Tom Tromey <tom@tromey.com>
1580
1581 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1582
1583 2020-07-01 Tom Tromey <tom@tromey.com>
1584
1585 * tui/tui-regs.c (tui_data_window::display_registers_from)
1586 (tui_data_window::display_registers_from)
1587 (tui_data_window::first_data_item_displayed)
1588 (tui_data_window::delete_data_content_windows): Update.
1589 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1590 Remove.
1591 (tui_data_window::check_register_values): Update.
1592 (tui_data_item_window::rerender): Add parameters. Update.
1593 (tui_data_item_window::refresh_window): Remove.
1594 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1595 virtual.
1596 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1597 tui_gen_win_info.
1598 <refresh_window, max_height, min_height>: Remove.
1599 <rerender>: Add parameters.
1600 <x, y, visible>: New members.
1601 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1602 <m_item_width>: New member.
1603
1604 2020-07-01 Tom Tromey <tom@tromey.com>
1605
1606 * tui/tui-regs.c (tui_data_window::show_register_group)
1607 (tui_data_window::check_register_values): Update.
1608 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1609 from item_no.
1610
1611 2020-07-01 Tom Tromey <tom@tromey.com>
1612
1613 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1614 useless "if".
1615
1616 2020-07-01 Tom Tromey <tom@tromey.com>
1617
1618 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1619 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1620
1621 2020-07-01 Tom Tromey <tom@tromey.com>
1622
1623 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1624 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1625 (struct tui_line_or_address): Move from tui-data.h.
1626 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1627 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1628 (tui_cmd_window, tui_source_window_base, tui_source_window)
1629 (tui_disasm_window): Don't declare.
1630 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1631 to tui-winsource.h.
1632 (SINGLE_KEY): Move to tui-stack.c.
1633
1634 2020-07-01 Tom Tromey <tom@tromey.com>
1635
1636 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1637 std::string.
1638 * tui/tui-regs.c (class tab_expansion_file): New.
1639 (tab_expansion_file::write): New method.
1640 (tui_register_format): Change return type. Use
1641 tab_expansion_file.
1642 (tui_get_register, tui_data_window::display_registers_from)
1643 (tui_data_item_window::rerender): Update.
1644 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1645 * tui/tui-io.c (tui_expand_tabs): Remove.
1646
1647 2020-07-01 Tom Tromey <tom@tromey.com>
1648
1649 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1650
1651 2020-07-01 Fangrui Song <maskray@google.com>
1652
1653 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1654
1655 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1656
1657 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1658 forms for DW_AT_associated and DW_AT_allocated attributes,
1659 which is already checked in function attr_to_dynamic_prop.
1660
1661 2020-06-30 Tom Tromey <tromey@adacore.com>
1662
1663 * dwarf2/read.c (quirk_rust_enum): Correctly call
1664 alloc_rust_variant for default-less enum.
1665
1666 2020-06-30 Tom Tromey <tromey@adacore.com>
1667
1668 PR build/26183:
1669 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1670 gdb::to_string.
1671
1672 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1673
1674 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1675 * gdbarch.h: Re-generate.
1676
1677 2020-06-28 Tom Tromey <tom@tromey.com>
1678
1679 * command.h (cmd_types): Remove.
1680 (cmd_type): Don't declare.
1681 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1682 typedef.
1683 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1684 * cli/cli-decode.c (cmd_type): Remove.
1685
1686 2020-06-27 Pedro Alves <palves@redhat.com>
1687
1688 * fork-child.c (prefork_hook): Adjust.
1689 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1690 Delete.
1691 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1692 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1693 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1694 Remove declarations.
1695 (struct inferior) <set_tty, tty>: New methods.
1696 (struct inferior) <terminal>: Rename to ...
1697 (struct inferior) <m_terminal>: ... this and make private.
1698 * main.c (captured_main_1): Adjust.
1699 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1700 (mi_cmd_inferior_tty_show): Adjust.
1701 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1702 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1703
1704 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1705
1706 * configure.ac: Add --enable-libctf: handle --disable-static
1707 properly.
1708 * acinclude.m4: sinclude ../config/enable.m4.
1709 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1710 (LIBCTF): Substitute in.
1711 (CTF_DEPS): New, likewise.
1712 (CLIBS): libctf needs symbols from libbfd: move earlier.
1713 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1714 flags.
1715 * ctfread.c: Surround in ENABLE_LIBCTF.
1716 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1717 * configure: Regenerate.
1718 * config.in: Likewise.
1719
1720 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1721
1722 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1723
1724 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1725
1726 * inferior.h (struct inferior) <terminal>: Change type to
1727 gdb::unique_xmalloc_ptr<char>.
1728 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1729 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1730 field, adjust to unique pointer.
1731 (get_inferior_io_terminal): Adjust to unique pointer.
1732
1733 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1734
1735 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1736 registers, not just the known core set of registers.
1737
1738 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1739
1740 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1741 fflags, frm, and fcsr registers.
1742 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1743 restore groups.
1744 (riscv_tdesc_unknown_reg): New function.
1745 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1746 tdesc_use_registers.
1747 * riscv-tdep.h (struct gdbarch_tdep): Add
1748 unknown_csrs_first_regnum, unknown_csrs_count,
1749 duplicate_fflags_regnum, duplicate_frm_regnum, and
1750 duplicate_fcsr_regnum fields.
1751
1752 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1753
1754 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1755 callback, use the callback (when not null) to help number unknown
1756 registers.
1757 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1758 (tdesc_use_registers): Add extra parameter to declaration.
1759
1760 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1761
1762 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1763 in the file.
1764 (class riscv_pending_register_alias): Likewise.
1765 (riscv_register_feature::register_info): Change 'required_p' field
1766 to 'required', and change its type. Add 'check' member function.
1767 (riscv_register_feature::register_info::check): Define new member
1768 function.
1769 (riscv_xreg_feature): Change initialisation of 'required' field.
1770 (riscv_freg_feature): Likewise.
1771 (riscv_virtual_feature): Likewise.
1772 (riscv_csr_feature): Likewise.
1773 (riscv_check_tdesc_feature): Take extra parameter, the csr
1774 tdesc_feature, rewrite the function to use the new
1775 riscv_register_feature::register_info::check function.
1776 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1777
1778 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1779
1780 * features/Makefile: Remove all references to the deleted files
1781 below.
1782 * features/riscv/32bit-csr.c: Deleted.
1783 * features/riscv/32bit-csr.xml: Deleted.
1784 * features/riscv/64bit-csr.c: Deleted.
1785 * features/riscv/64bit-csr.xml: Deleted.
1786 * features/riscv/rebuild-csr-xml.sh: Deleted.
1787
1788 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1789
1790 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1791 whitespace error for declaration of names member variable.
1792 (struct riscv_register_feature): Add new prefer_first_name member
1793 variable, and fix whitespace error in declaration of registers.
1794 (riscv_xreg_feature): Initialize prefer_first_name field.
1795 (riscv_freg_feature): Likewise.
1796 (riscv_virtual_feature): Likewise.
1797 (riscv_csr_feature): Likewise.
1798 (riscv_register_name): Expand on comments. Remove register name
1799 modifications for CSR and virtual registers.
1800
1801 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1802
1803 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1804 errors.
1805
1806 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1807
1808 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1809 riscv-opc.h.
1810 (class riscv_pending_register_alias): New class.
1811 (riscv_check_tdesc_feature): Take vector of pending aliases and
1812 populate it as appropriate.
1813 (riscv_setup_register_aliases): Delete.
1814 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1815 to riscv_check_tdesc_feature in all cases. Use the vector to
1816 create the register aliases.
1817
1818 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1819
1820 * sol2-tdep.c (sol2_static_transform_name): Remove.
1821 (sol2_init_abi): Don't register it.
1822 * gdbarch.sh (static_transform_name): Remove.
1823 * gdbarch.c, gdbarch.h: Regenerate.
1824
1825 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1826 gdbarch_static_transform_name.
1827 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1828 * stabsread.c (define_symbol) <'X'>: Remove.
1829 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1830 handling.
1831 <'V'>: Likewise.
1832 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1833 <'S'>: Remove call to gdbarch_static_transform_name.
1834
1835 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1836
1837 * procfs.c (procfs_pre_trace): New function.
1838 (procfs_target::create_inferior): Pass it to fork_inferior.
1839
1840 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1841
1842 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1843 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1844 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1845 sol2-tdep.o, sparc-sol2-tdep.o.
1846 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1847 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1848 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1849 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1850
1851 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1852
1853 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1854 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1855 Call sol2_init_abi.
1856 Remove calls to set_gdbarch_skip_solib_resolver,
1857 set_gdbarch_core_pid_to_str.
1858 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1859 (i386_sol2_static_transform_name): Remove.
1860 (i386_sol2_init_abi): Call sol2_init_abi.
1861 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1862 set_gdbarch_static_transform_name,
1863 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1864 Use sol2_sigtramp_p.
1865 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1866 (sol2_sigtramp_p): New function.
1867 (sol2_static_transform_name): New function.
1868 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1869 (sol2_init_abi): New function.
1870 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1871 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1872 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1873 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1874 (sparc_sol2_static_transform_name): Remove.
1875 (sparc32_sol2_init_abi): Call sol2_init_abi.
1876 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1877 set_gdbarch_static_transform_name,
1878 set_gdbarch_skip_solib_resolver,
1879 set_gdbarch_core_pid_to_str.
1880 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1881 (sparc_sol2_static_transform_name): Remove
1882 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1883 call sol2_sigtramp_p.
1884 (sparc64_sol2_init_abi): Call sol2_init_abi.
1885 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1886 set_gdbarch_static_transform_name,
1887 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1888
1889 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1890
1891 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1892 * exec.c (validate_exec_file): If from_tty, set both
1893 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1894 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1895 and from_tty, unconditionally ask a confirmation.
1896
1897 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1898
1899 * target-descriptions.c (tdesc_architecture_name): Protect against
1900 NULL pointer dereference.
1901 (maint_print_xml_tdesc_cmd): New function.
1902 (_initialize_target_descriptions): Register new 'maint print
1903 xml-tdesc' command and give it the filename completer.
1904 * NEWS: Mention new 'maint print xml-tdesc' command.
1905
1906 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1907
1908 * target-descriptions.c (class tdesc_compatible_info): New class.
1909 (struct target_desc): Change type of compatible vector.
1910 (tdesc_compatible_p): Update for change in type of
1911 target_desc::compatible.
1912 (tdesc_compatible_info_list): New function.
1913 (tdesc_compatible_info_arch_name): New function.
1914 (tdesc_add_compatible): Update for change in type of
1915 target_desc::compatible.
1916 (print_c_tdesc::visit_pre): Likewise.
1917
1918 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1919
1920 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1921 whitespace to underscore.
1922 (maint_print_c_tdesc_cmd): Use fake filename for target
1923 descriptions that came from the target.
1924 (_initialize_target_descriptions): Add filename command completion
1925 for 'maint print c-tdesc'.
1926
1927 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1928
1929 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1930 lines.
1931
1932 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1933
1934 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1935 lines.
1936 (dwarf2_find_location_expression): Likewise.
1937 (call_site_parameter_matches): Likewise.
1938 (dwarf2_compile_expr_to_ax): Likewise.
1939 (disassemble_dwarf_expression): Likewise.
1940 (loclist_describe_location): Likewise.
1941
1942 2020-06-23 Pedro Alves <palves@redhat.com>
1943
1944 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1945 progspace-and-thread.h. Include scoped-mock-context.h instead.
1946 (register_to_value_test): Use scoped_mock_context.
1947 * regcache.c: Include "scoped-mock-context.h".
1948 (cooked_read_test): Don't error out if a target is already pushed.
1949 Use scoped_mock_context. Adjust.
1950 * scoped-mock-context.h: New file.
1951
1952 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1953
1954 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1955 initializer.
1956 (ada_language::is_string_type_p): New member function.
1957 * c-lang.c (c_language_data): Delete la_is_string_type_p
1958 initializer.
1959 (cplus_language_data): Likewise.
1960 (asm_language_data): Likewise.
1961 (minimal_language_data): Likewise.
1962 * d-lang.c (d_language_data): Likewise.
1963 * f-lang.c (f_is_string_type_p): Delete function, implementation
1964 moved to f_language::is_string_type_p.
1965 (f_language_data): Delete la_is_string_type_p initializer.
1966 (f_language::is_string_type_p): New member function,
1967 implementation from f_is_string_type_p.
1968 * go-lang.c (go_is_string_type_p): Delete function, implementation
1969 moved to go_language::is_string_type_p.
1970 (go_language_data): Delete la_is_string_type_p initializer.
1971 (go_language::is_string_type_p): New member function,
1972 implementation from go_is_string_type_p.
1973 * language.c (language_defn::is_string_type_p): Define new member
1974 function.
1975 (default_is_string_type_p): Make static, add comment copied from
1976 header file.
1977 (unknown_language_data): Delete la_is_string_type_p initializer.
1978 (unknown_language::is_string_type_p): New member function.
1979 (auto_language_data): Delete la_is_string_type_p initializer.
1980 (auto_language::is_string_type_p): New member function.
1981 * language.h (language_data): Delete la_is_string_type_p field.
1982 (language_defn::is_string_type_p): Declare new function.
1983 (default_is_string_type_p): Delete desclaration, move comment to
1984 definition.
1985 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1986 moved to m2_language::is_string_type_p.
1987 (m2_language_data): Delete la_is_string_type_p initializer.
1988 (m2_language::is_string_type_p): New member function,
1989 implementation from m2_is_string_type_p.
1990 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1991 initializer.
1992 * opencl-lang.c (opencl_language_data): Likewise.
1993 * p-lang.c (pascal_is_string_type_p): Delete function,
1994 implementation moved to pascal_language::is_string_type_p.
1995 (pascal_language_data): Delete la_is_string_type_p initializer.
1996 (pascal_language::is_string_type_p): New member function,
1997 implementation from pascal_is_string_type_p.
1998 * rust-lang.c (rust_is_string_type_p): Delete function,
1999 implementation moved to rust_language::is_string_type_p.
2000 (rust_language_data): Delete la_is_string_type_p initializer.
2001 (rust_language::is_string_type_p): New member function,
2002 implementation from rust_is_string_type_p.
2003 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2004 is_string_type_p.
2005
2006 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2007
2008 * ada-lang.c (ada_language_data): Delete la_print_typedef
2009 initializer.
2010 (ada_language::print_typedef): New member function.
2011 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2012 (cplus_language_data): Likewise.
2013 (asm_language_data): Likewise.
2014 (minimal_language_data): Likewise.
2015 * d-lang.c (d_language_data): Likewise.
2016 * f-lang.c (f_language_data): Likewise.
2017 (f_language::print_typedef): New member function.
2018 * go-lang.c (go_language_data): Delete la_print_typedef
2019 initializer.
2020 * language.c (language_defn::print_typedef): Define member
2021 function.
2022 (unknown_language_data): Delete la_print_typedef initializer.
2023 (unknown_language::print_typedef): New member function.
2024 (auto_language_data): Delete la_print_typedef initializer.
2025 (auto_language::print_typedef): New member function.
2026 * language.h (language_data): Delete la_print_typedef field.
2027 (language_defn::print_typedef): Declare new member function.
2028 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2029 (default_print_typedef): Delete declaration.
2030 * m2-lang.c (m2_language_data): Delete la_print_typedef
2031 initializer.
2032 (m2_language::print_typedef): New member function.
2033 * objc-lang.c (objc_language_data): Delete la_print_typedef
2034 initializer.
2035 * opencl-lang.c (opencl_language_data): Likewise.
2036 * p-lang.c (pascal_language_data): Likewise.
2037 (pascal_language::print_typedef): New member function.
2038 * rust-lang.c (rust_print_typedef): Delete function,
2039 implementation moved to rust_language::print_typedef.
2040 (rust_language): Delete la_print_typedef initializer.
2041 (rust_language::print_typedef): New member function,
2042 implementation from rust_print_typedef.
2043 * typeprint.c (default_print_typedef): Delete.
2044
2045 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2046
2047 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2048 (ada_language::printstr): New member function.
2049 * c-lang.c (c_language_data): Delete la_printstr initializer.
2050 (cplus_language_data): Likewise.
2051 (asm_language_data): Likewise.
2052 (minimal_language_data): Likewise.
2053 * d-lang.c (d_language_data): Likewise.
2054 * f-lang.c (f_printstr): Rename to f_language::printstr.
2055 (f_language_data): Delete la_printstr initializer.
2056 (f_language::printstr): New member function, implementation from
2057 f_printstr.
2058 * go-lang.c (go_language_data): Delete la_printstr initializer.
2059 * language.c (language_defn::printstr): Define new member
2060 function.
2061 (unk_lang_printstr): Delete.
2062 (unknown_language_data): Delete la_printstr initializer.
2063 (unknown_language::printstr): New member function.
2064 (auto_language_data): Delete la_printstr initializer.
2065 (auto_language::printstr): New member function.
2066 * language.h (language_data): Delete la_printstr field.
2067 (language_defn::printstr): Declare new member function.
2068 (LA_PRINT_STRING): Update call to printstr.
2069 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2070 (m2_language_data): Delete la_printstr initializer.
2071 (m2_language::printstr): New member function, implementation from
2072 m2_printstr.
2073 * objc-lang.c (objc_language_data): Delete la_printstr
2074 initializer.
2075 * opencl-lang.c (opencl_language_data): Likewise.
2076 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2077 (pascal_language_data): Delete la_printstr initializer.
2078 (pascal_language::printstr): New member function, implementation
2079 from pascal_printstr.
2080 * p-lang.h (pascal_printstr): Delete declaration.
2081 * rust-lang.c (rust_printstr): Update header comment.
2082 (rust_language_data): Delete la_printstr initializer.
2083 (rust_language::printstr): New member function.
2084
2085 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2086
2087 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2088 (ada_language::printchar): New member function.
2089 * c-lang.c (c_language_data): Delete la_printchar initializer.
2090 (cplus_language_data): Likewise.
2091 (asm_language_data): Likewise.
2092 (minimal_language_data): Likewise.
2093 * d-lang.c (d_language_data): Likewise.
2094 * f-lang.c (f_printchar): Rename to f_language::printchar.
2095 (f_language_data): Delete la_printchar initializer.
2096 (f_language::printchar): New member function, implementation from
2097 f_printchar.
2098 * go-lang.c (go_language_data): Delete la_printchar initializer.
2099 * language.c (unk_lang_printchar): Delete.
2100 (language_defn::printchar): Define new member function.
2101 (unknown_language_data): Delete la_printchar initializer.
2102 (unknown_language::printchar): New member function.
2103 (auto_language_data): Delete la_printchar initializer.
2104 (auto_language::printchar): New member function.
2105 * language.h (language_data): Delete la_printchar field.
2106 (language_defn::printchar): Declare new member function.
2107 (LA_PRINT_CHAR): Update call to printchar.
2108 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2109 (m2_language::printchar): New member function.
2110 * objc-lang.c (objc_language_data): Delete la_printchar
2111 initializer.
2112 * opencl-lang.c (opencl_language_data): Likewise.
2113 * p-lang.c (pascal_language_data): Delete la_printchar
2114 initializer.
2115 (pascal_language::printchar): New member function.
2116 * rust-lang.c (rust_printchar): Rename to
2117 rust_language::printchar.
2118 (rust_language_data): Delete la_printchar initializer.
2119 (rust_language::printchar): New member function, implementation
2120 from rust_printchar.
2121
2122 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2123
2124 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2125 (ada_language_data): Delete la_emitchar initializer.
2126 (ada_language::emitchar): New member function, implementation from
2127 emit_char.
2128 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2129 (cplus_language_data): Likewise.
2130 (asm_language_data): Likewise.
2131 (minimal_language_data): Likewise.
2132 * d-lang.c (d_language_data): Likewise.
2133 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2134 (f_language_data): Delete la_emitchar initializer.
2135 (f_language::emitchar): New member function, implementation from
2136 f_emit_char.
2137 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2138 * language.c (unk_lang_emit_char): Delete.
2139 (language_defn::emitchar): New member function definition.
2140 (unknown_language_data): Delete la_emitchar initializer.
2141 (unknown_language::emitchar): New member function.
2142 (auto_language_data): Delete la_emitchar initializer.
2143 (auto_language::emitchar): New member function.
2144 * language.h (language_data): Delete la_emitchar field.
2145 (language_defn::emitchar): New member field declaration.
2146 (LA_EMIT_CHAR): Update call to emitchar.
2147 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2148 (m2_language_data): Delete la_emitchar initializer.
2149 (m2_language::emitchar): New member function, implementation from
2150 m2_emit_char.
2151 * objc-lang.c (objc_language_data): Delete la_emitchar
2152 initializer.
2153 * opencl-lang.c (opencl_language_data): Likewise.
2154 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2155 (pascal_language_data): Delete la_emitchar initializer.
2156 (pascal_language::emitchar): New member function, implementation
2157 from pascal_emit_char.
2158 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2159 (rust_language_data): Delete la_emitchar initializer.
2160 (rust_language::emitchar): New member function, implementation
2161 from rust_emitchar.
2162
2163 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2164
2165 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2166 (ada_language_data): Delete la_post_parser initializer.
2167 (ada_language::post_parser): New member function.
2168 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2169 (cplus_language_data): Likewise.
2170 (asm_language_data): Likewise.
2171 (minimal_language_data): Likewise.
2172 * d-lang.c (d_language_data): Likewise.
2173 * f-lang.c (f_language_data): Likewise.
2174 * go-lang.c (go_language_data): Likewise.
2175 * language.c (unknown_language_data): Likewise.
2176 (auto_language_data): Likewise.
2177 * language.h (language_data): Delete la_post_parser field.
2178 (language_defn::post_parser): New member function.
2179 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2180 * objc-lang.c (objc_language_data): Likewise.
2181 * opencl-lang.c (opencl_language_data): Likewise.
2182 * p-lang.c (pascal_language_data): Likewise.
2183 * parse.c (parse_exp_in_context): Update call to post_parser.
2184 (null_post_parser): Delete definition.
2185 * parser-defs.h (null_post_parser): Delete declaration.
2186 * rust-lang.c (rust_language_data): Delete la_post_parser
2187 initializer.
2188
2189 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2190
2191 * ada-lang.c (parse): Rename to ada_language::parser.
2192 (ada_language_data): Delete la_parser initializer.
2193 (ada_language::parser): New member function, implementation from
2194 parse.
2195 * c-lang.c (c_language_data): Delete la_parser initializer.
2196 (cplus_language_data): Likewise.
2197 (asm_language_data): Likewise.
2198 (minimal_language_data): Likewise.
2199 * d-lang.c (d_language_data): Likewise.
2200 (d_language::parser): New member function.
2201 * f-lang.c (f_language_data): Delete la_parser initializer.
2202 (f_language::parser): New member function.
2203 * go-lang.c (go_language_data): Delete la_parser initializer.
2204 (go_language::parser): New member function.
2205 * language.c (unk_lang_parser): Delete.
2206 (language_defn::parser): Define new member function.
2207 (unknown_language_data): Delete la_parser initializer.
2208 (unknown_language::parser): New member function.
2209 (auto_language_data): Delete la_parser initializer.
2210 (auto_language::parser): New member function.
2211 * language.h (language_data): Delete la_parser field.
2212 (language_defn::parser): Declare new member function.
2213 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2214 (m2_language::parser): New member function.
2215 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2216 * opencl-lang.c (opencl_language_data): Likewise.
2217 * p-lang.c (pascal_language_data): Likewise.
2218 (pascal_language::parser): New member function.
2219 * parse.c (parse_exp_in_context): Update call to parser.
2220 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2221 (rust_language::parser): New member function.
2222
2223 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2224
2225 * top.c (print_gdb_configuration): Print --with-python-libdir
2226 configuration value.
2227
2228 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2229
2230 * NEWS: Mention change to the alias command.
2231
2232 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2233
2234 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2235 (alias_command_completer)
2236 (make_alias_options_def_group): New functions.
2237 (alias_opts, alias_option_defs): New struct and array.
2238 (alias_usage_error): Update usage.
2239 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2240 Use option framework.
2241 (_initialize_cli_cmds): Update alias command help.
2242 Update aliases command help.
2243 (show_user):
2244 Add NULL for new default_args lookup_cmd argument.
2245 (valid_command_p): Rename to validate_aliased_command.
2246 Add NULL for new default_args lookup_cmd argument. Verify that the
2247 aliased_command has no default args.
2248 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2249 (lookup_cmd_1, lookup_cmd): New argument default_args.
2250 (add_alias_cmd):
2251 Add NULL for new default_args lookup_cmd argument.
2252 (print_help_for_command): Show default args under the layout
2253 alias some_alias = some_aliased_cmd some_alias_default_arg.
2254 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2255 xfree default_args in destructor.
2256 * cli/cli-script.c (process_next_line, do_define_command):
2257 Add NULL for new default_args lookup_cmd argument.
2258 * command.h: Declare new default_args argument in lookup_cmd
2259 and lookup_cmd_1.
2260 * completer.c (complete_line_internal_1):
2261 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2262 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2263 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2264 Likewise.
2265 * infcmd.c (_initialize_infcmd): Likewise.
2266 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2267 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2268 * python/py-param.c (add_setshow_generic): Likewise.
2269 * remote.c (_initialize_remote): Likewise.
2270 * top.c (execute_command): Prepend default_args if command has some.
2271 (set_verbose):
2272 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2273 * tracepoint.c (validate_actionline, encode_actions_1):
2274 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2275
2276 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2277
2278 * jit.c (jit_read_descriptor): Use bool as the return type.
2279 (jit_breakpoint_re_set_internal): Use bool as the return type.
2280 Invert the return value logic; return true if the jit breakpoint
2281 has been successfully initialized.
2282 (jit_inferior_init): Update the call to
2283 jit_breakpoint_re_set_internal.
2284
2285 2020-06-22 Pedro Alves <palves@redhat.com>
2286
2287 PR gdb/25939
2288 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2289 Use the current inferior instead. Don't return
2290 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2291 wait again.
2292 * sol-thread.c (sol_thread_target::wait): Don't reference
2293 inferior_ptid.
2294 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2295 (sol_update_thread_list_callback): Use the current inferior's pid
2296 instead of inferior_ptid.
2297
2298 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2299
2300 * procfs.c: Cleanup many comments.
2301
2302 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2303 (AFTER_WATCHFLAG): Replace by value.
2304
2305 (MAIN_PROC_NAME_FORMAT): Inline ...
2306 (create_procinfo): ... here.
2307
2308 (procfs_debug_inferior): Remove SYS_exec handling.
2309 (syscall_is_exec): Likewise.
2310 (procfs_set_exec_trap): Likewise.
2311
2312 (syscall_is_lwp_exit): Inline in callers.
2313 (syscall_is_exit): Likewise.
2314 (syscall_is_exec): Likewise.
2315 (syscall_is_lwp_create): Likewise.
2316
2317 (invalidate_cache): Remove #if 0 code.
2318
2319 (make_signal_thread_runnable): Remove.
2320 (procfs_target::resume): Remove #if 0 code.
2321
2322 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2323
2324 PR gdb/25939
2325 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2326 call ...
2327 (procfs_target::create_inferior): ... here.
2328
2329 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2330
2331 * exec.c (validate_exec_file): Ensure the build-id is up to
2332 date by calling reopen_exec_file (that checks file timestamp
2333 to decide to re-read the file).
2334
2335 2020-06-18 Pedro Alves <palves@redhat.com>
2336
2337 PR gdb/25412
2338 * gdbthread.h (delete_thread, delete_thread_silent)
2339 (find_thread_ptid): Update comments.
2340 * thread.c (current_thread_): New global.
2341 (is_current_thread): Move higher, and reimplement.
2342 (inferior_thread): Reimplement.
2343 (set_thread_exited): Use bool. Add assertions.
2344 (add_thread_silent): Simplify thread-reuse handling by always
2345 calling delete_thread.
2346 (delete_thread): Remove intro comment.
2347 (find_thread_ptid): Skip exited threads.
2348 (switch_to_thread_no_regs): Write to current_thread_.
2349 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2350 INFERIOR_PTID. Clear current_thread_.
2351
2352 2020-06-18 Pedro Alves <palves@redhat.com>
2353
2354 * aix-thread.c (pd_update): Use switch_to_thread.
2355
2356 2020-06-18 Pedro Alves <palves@redhat.com>
2357
2358 * ravenscar-thread.c (ravenscar_thread_target): Update.
2359 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2360 (ravenscar_thread_target::add_active_thread): ... this. Don't
2361 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2362 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2363
2364 2020-06-18 Pedro Alves <palves@redhat.com>
2365
2366 * nat/windows-nat.c (current_windows_thread): Remove.
2367 * nat/windows-nat.h (current_windows_thread): Remove.
2368 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2369 Adjust.
2370 (display_selectors): Adjust to fetch the current
2371 windows_thread_info based on inferior_ptid.
2372 (fake_create_process): No longer write to current_windows_thread.
2373 (windows_nat_target::get_windows_debug_event):
2374 Don't set inferior_ptid or current_windows_thread.
2375 (windows_nat_target::wait): Adjust to not rely on
2376 current_windows_thread.
2377 (do_initial_windows_stuff): Now a method of windows_nat_target.
2378 Switch to the last_ptid thread.
2379 (windows_nat_target::attach): Adjust.
2380 (windows_nat_target::detach): Use switch_to_no_thread instead of
2381 writing to inferior_ptid directly.
2382 (windows_nat_target::create_inferior): Adjust.
2383
2384 2020-06-18 Pedro Alves <palves@redhat.com>
2385
2386 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2387
2388 2020-06-18 Pedro Alves <palves@redhat.com>
2389
2390 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2391 after creating it, instead of writing to inferior_ptid. Don't
2392 write to inferior_ptid.
2393
2394 2020-06-18 Pedro Alves <palves@redhat.com>
2395
2396 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2397
2398 2020-06-18 Pedro Alves <palves@redhat.com>
2399
2400 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2401 it, instead of writing to inferior_ptid.
2402
2403 2020-06-18 Pedro Alves <palves@redhat.com>
2404
2405 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2406 to inferior_ptid.
2407
2408 2020-06-18 Pedro Alves <palves@redhat.com>
2409
2410 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2411 instead of writing to inferior_ptid directly.
2412
2413 2020-06-18 Pedro Alves <palves@redhat.com>
2414
2415 * corelow.c (core_target::close): Use switch_to_no_thread instead
2416 of writing to inferior_ptid directly.
2417 (add_to_thread_list, core_target_open): Use switch_to_thread
2418 instead of writing to inferior_ptid directly.
2419
2420 2020-06-18 Pedro Alves <palves@redhat.com>
2421
2422 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2423 inferior_ptid.
2424 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2425 inferior_ptid.
2426 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2427 inferior_ptid directly.
2428 (darwin_nat_target::init_thread_list): Switch to thread, instead
2429 of writing to inferior_ptid.
2430 (darwin_nat_target::attach): Don't write to inferior_ptid.
2431 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2432
2433 2020-06-18 Pedro Alves <palves@redhat.com>
2434
2435 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2436 thread.
2437 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2438 Instead use switch_to_thread.
2439 (gnu_nat_target::detach): Use switch_to_no_thread
2440 instead of writing to inferior_ptid directly. Used passed-in
2441 inferior instead of looking up the inferior by pid.
2442
2443 2020-06-18 Pedro Alves <palves@redhat.com>
2444
2445 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2446 inferior_ptid.
2447
2448 2020-06-18 Pedro Alves <palves@redhat.com>
2449
2450 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2451 inferior_ptid.
2452 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2453 thread.
2454 (nto_procfs_target::detach): Avoid referencing
2455 inferior_ptid. Use switch_to_no_thread instead of writing to
2456 inferior_ptid directly.
2457 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2458 instead of writing to inferior_ptid directly.
2459 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2460 to thread.
2461
2462 2020-06-18 Pedro Alves <palves@redhat.com>
2463
2464 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2465 after creating it, instead of writing to inferior_ptid.
2466 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2467 to inferior_ptid directly.
2468 (gdbsim_target::wait): Don't write to inferior_ptid.
2469
2470 2020-06-18 Pedro Alves <palves@redhat.com>
2471
2472 * remote.c (remote_target::remote_notice_new_inferior): Use
2473 switch_to_thread instead of writing to inferior_ptid directly.
2474 (remote_target::add_current_inferior_and_thread): Use
2475 switch_to_no_thread instead of writing to inferior_ptid directly.
2476 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2477 and switch_to_thread instead of using set_current_inferior or
2478 writing to inferior_ptid directly.
2479
2480 2020-06-18 Pedro Alves <palves@redhat.com>
2481
2482 * tracectf.c (ctf_target_open): Switch to added thread instead of
2483 writing to inferior_ptid directly.
2484 (ctf_target::close): Use switch_to_no_thread instead of writing to
2485 inferior_ptid directly.
2486
2487 2020-06-18 Pedro Alves <palves@redhat.com>
2488
2489 * tracefile-tfile.c (tfile_target_open): Don't write to
2490 inferior_ptid directly, instead switch to added thread.
2491 (tfile_target::close): Use switch_to_no_thread instead of writing
2492 to inferior_ptid directly.
2493
2494 2020-06-18 Pedro Alves <palves@redhat.com>
2495
2496 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2497 (procfs_target::detach): Use switch_to_no_thread
2498 instead of writing to inferior_ptid directly.
2499 (do_attach): Change return type to void. Switch to the added
2500 thread.
2501 (procfs_target::create_inferior): Switch to the added thread.
2502 (procfs_do_thread_registers): Don't write to inferior_ptid.
2503
2504 2020-06-18 Pedro Alves <palves@redhat.com>
2505
2506 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2507 of writing to inferior_ptid.
2508 (scoped_restore_exited_inferior): Delete.
2509 (handle_vfork_child_exec_or_exit): Simplify using
2510 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2511 instead of writing to inferior_ptid.
2512 (THREAD_STOPPED_BY): Delete.
2513 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2514 (thread_stopped_by_hw_breakpoint): Delete.
2515 (save_waitstatus): Use
2516 scoped_restore_current_thread+switch_to_thread, and call
2517 target_stopped_by_watchpoint instead of
2518 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2519 instead of thread_stopped_by_sw_breakpoint, and
2520 target_stopped_by_hw_breakpoint instead of
2521 thread_stopped_by_hw_breakpoint.
2522 (handle_inferior_event)
2523 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2524 inferior_ptid directly, nor
2525 set_current_inferior/set_current_program_space. Use
2526 switch_to_thread / switch_to_inferior_no_thread instead.
2527
2528 2020-06-18 Pedro Alves <palves@redhat.com>
2529
2530 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2531 instead of writing to inferior_ptid.
2532
2533 2020-06-18 Pedro Alves <palves@redhat.com>
2534
2535 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2536 added thread.
2537 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2538 to the added thread.
2539 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2540 instead of writing to inferior_ptid.
2541
2542 2020-06-18 Pedro Alves <palves@redhat.com>
2543
2544 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2545 (register_to_value_test): Mock a program_space too. Heap-allocate
2546 the address space. Don't write to inferior_ptid. Use
2547 switch_to_thread instead.
2548
2549 2020-06-18 Pedro Alves <palves@redhat.com>
2550
2551 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2552 Delete.
2553 (find_signalled_thread()): New, factored out from
2554 linux_make_corefile_notes and adjusted to handle exited threads.
2555 (linux_make_corefile_notes): Adjust to use the new
2556 find_signalled_thread.
2557
2558 2020-06-18 Pedro Alves <palves@redhat.com>
2559
2560 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2561 of saving/restoring inferior_ptid.
2562
2563 2020-06-17 Tom Tromey <tom@tromey.com>
2564
2565 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2566 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2567 declare.
2568 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2569
2570 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2571
2572 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2573 of partial symtabs.
2574
2575 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2576
2577 * regformats/reg-arm.dat: Remove.
2578 * regformats/reg-bfin.dat: Remove.
2579 * regformats/reg-cris.dat: Remove.
2580 * regformats/reg-crisv32.dat: Remove.
2581 * regformats/reg-m32r.dat: Remove.
2582 * regformats/reg-tilegx.dat: Remove.
2583 * regformats/reg-tilegx32.dat: Remove.
2584
2585 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2586
2587 * features/Makefile (WHICH): Remove arm files.
2588 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2589 * regformats/arm/arm-with-neon.dat: Remove.
2590 * regformats/arm/arm-with-vfpv2.dat: Remove.
2591 * regformats/arm/arm-with-vfpv3.dat: Remove.
2592
2593 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2594
2595 * features/Makefile (XMLTOC): Remove rx.xml.
2596
2597 2020-06-17 Pedro Alves <palves@redhat.com>
2598
2599 * gdbthread.h (thread_control_state) <trap_expected> Update
2600 comments.
2601
2602 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2603
2604 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2605 ada_language::lookup_symbol_nonlocal.
2606 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2607 (ada_language::lookup_symbol_nonlocal): New member function,
2608 implementation from ada_lookup_symbol_nonlocal.
2609 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2610 initializer.
2611 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2612 initializer.
2613 (cplus_language::lookup_symbol_nonlocal): New member function.
2614 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2615 (minimal_language_data) Likewise.
2616 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2617 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2618 initializer.
2619 (d_language::lookup_symbol_nonlocal): New member function.
2620 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2621 initializer.
2622 (f_language::lookup_symbol_nonlocal): New member function.
2623 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2624 initializer.
2625 * language.c (unknown_language_data): Likewise.
2626 (auto_language_data): Likewise.
2627 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2628 field.
2629 (language_defn::lookup_symbol_nonlocal): New member function.
2630 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2631 initializer.
2632 * objc-lang.c (objc_language_data): Likewise.
2633 * opencl-lang.c (opencl_language_data): Likewise.
2634 * p-lang.c (pascal_language_data): Likewise.
2635 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2636 rust_language::lookup_symbol_nonlocal.
2637 (rust_language_data): Delete la_lookup_symbol_nonlocal
2638 initializer.
2639 (rust_language::lookup_symbol_nonlocal): New member function,
2640 implementation from rust_lookup_symbol_nonlocal.
2641 * symtab.c (lookup_symbol_aux): Update call to
2642 lookup_symbol_nonlocal.
2643 (basic_lookup_symbol_nonlocal): Rename to...
2644 (language_defn::lookup_symbol_nonlocal): ...this, and update
2645 header comment. Remove language_defn parameter, and replace with
2646 uses of `this'.
2647 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2648
2649 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2650
2651 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2652 initializer.
2653 (ada_language::value_print_inner): New member function.
2654 * c-lang.c (c_language_data): Delete la_value_print_inner
2655 initializer.
2656 (cplus_language_data): Likewise.
2657 (asm_language_data): Likewise.
2658 (minimal_language_data): Likewise.
2659 * d-lang.c (d_language_data): Likewise.
2660 (d_language::value_print_inner): New member function.
2661 * f-lang.c (f_language_data): Delete la_value_print_inner
2662 initializer.
2663 (f_language::value_print_inner): New member function.
2664 * f-lang.h (f_value_print_innner): Rename to...
2665 (f_value_print_inner): ...this (note spelling of 'inner').
2666 * f-valprint.c (f_value_print_innner): Rename to...
2667 (f_value_print_inner): ...this (note spelling of 'inner').
2668 * go-lang.c (go_language_data): Delete la_value_print_inner
2669 initializer.
2670 (go_language::value_print_inner): New member function.
2671 * language.c (language_defn::value_print_inner): Define new member
2672 function.
2673 (unk_lang_value_print_inner): Delete.
2674 (unknown_language_data): Delete la_value_print_inner initializer.
2675 (unknown_language::value_print_inner): New member function.
2676 (auto_language_data): Delete la_value_print_inner initializer.
2677 (auto_language::value_print_inner): New member function.
2678 * language.h (language_data): Delete la_value_print_inner field.
2679 (language_defn::value_print_inner): Delcare new member function.
2680 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2681 initializer.
2682 (m2_language::value_print_inner): New member function.
2683 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2684 initializer.
2685 * opencl-lang.c (opencl_language_data): Likewise.
2686 * p-lang.c (pascal_language_data): Likewise.
2687 (pascal_language::value_print_inner): New member function.
2688 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2689 initializer.
2690 (rust_language::value_print_inner): New member function.
2691 * valprint.c (do_val_print): Update call to value_print_inner.
2692
2693 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2694
2695 * ada-lang.c (ada_language_data): Delete la_value_print
2696 initializer.
2697 (ada_language::value_print): New member function.
2698 * c-lang.c (c_language_data): Delete la_value_print initializer.
2699 (cplus_language_data): Likewise.
2700 (asm_language_data): Likewise.
2701 (minimal_language_data): Likewise.
2702 * d-lang.c (d_language_data): Likewise.
2703 * f-lang.c (f_language_data): Likewise.
2704 * go-lang.c (go_language_data): Likewise.
2705 * language.c (unk_lang_value_print): Delete.
2706 (language_defn::value_print): Define new member function.
2707 (unknown_language_data): Delete la_value_print initializer.
2708 (unknown_language::value_print): New member function.
2709 (auto_language_data): Delete la_value_print initializer.
2710 (auto_language::value_print): New member function.
2711 * language.h (language_data): Delete la_value_print field.
2712 (language_defn::value_print): Declare new member function.
2713 (LA_VALUE_PRINT): Update call to value_print.
2714 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2715 * objc-lang.c (objc_language_data): Likewise.
2716 * opencl-lang.c (opencl_language_data): Likewise.
2717 * p-lang.c (pascal_language_data): Likewise.
2718 (pascal_language::value_print): New member function.
2719 * rust-lang.c (rust_language_data): Delete la_value_print
2720 initializer.
2721
2722 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2723
2724 * ada-lang.c (ada_watch_location_expression): Rename to
2725 ada_language::watch_location_expression.
2726 (ada_language_data): Delete la_watch_location_expression
2727 initializer.
2728 (ada_language::watch_location_expression): New member function,
2729 implementation from ada_watch_location_expression.
2730 * breakpoint.c (watch_command_1): Update call to
2731 watch_location_expression.
2732 * c-lang.c (c_watch_location_expression): Rename to
2733 language_defn::watch_location_expression.
2734 (c_language_data): Delete la_watch_location_expression
2735 initializer.
2736 (cplus_language_data): Likewise.
2737 (asm_language_data): Likewise.
2738 (minimal_language_data): Likewise.
2739 * c-lang.h (c_watch_location_expression): Delete declaration.
2740 * d-lang.c (d_language_data): Delete la_watch_location_expression
2741 initializer.
2742 * f-lang.c (f_language_data): Likewise.
2743 * go-lang.c (go_language_data): Likewise.
2744 * language.c (language_defn::watch_location_expression): Member
2745 function implementation from c_watch_location_expression.
2746 (unknown_language_data): Delete la_watch_location_expression
2747 initializer.
2748 (auto_language_data): Likewise.
2749 * language.h (language_data): Delete la_watch_location_expression
2750 field.
2751 (language_defn::watch_location_expression): Declare new member
2752 function.
2753 * m2-lang.c (m2_language_data): Delete
2754 la_watch_location_expression initializer.
2755 * objc-lang.c (objc_language_data): Likewise.
2756 * opencl-lang.c (opencl_language_data): Likewise.
2757 * p-lang.c (pascal_language_data): Likewise.
2758 * rust-lang.c (rust_watch_location_expression): Rename to
2759 rust_language::watch_location_expression.
2760 (rust_language_data): Delete la_watch_location_expression
2761 initializer.
2762 (rust_language::watch_location_expression): New member function,
2763 implementation from rust_watch_location_expression.
2764
2765 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2766
2767 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2768 ada_language::collect_symbol_completion_matches.
2769 (ada_language_data): Delete la_collect_symbol_completion_matches
2770 initializer.
2771 (ada_language::collect_symbol_completion_matches): New member
2772 function, implementation from
2773 ada_collect_symbol_completion_matches.
2774 * c-lang.c (c_language_data): Delete
2775 la_collect_symbol_completion_matches initializer.
2776 (cplus_language_data): Likewise.
2777 (asm_language_data): Likewise.
2778 (minimal_language_data): Likewise.
2779 * d-lang.c (d_language_data): Likewise.
2780 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2781 f_language::collect_symbol_completion_matches.
2782 (f_language_data): Delete la_collect_symbol_completion_matches
2783 initializer.
2784 (f_language::collect_symbol_completion_matches) New member
2785 function, implementation from f_collect_symbol_completion_matches.
2786 * go-lang.c (go_language_data): Delete
2787 la_collect_symbol_completion_matches initializer.
2788 * language.c (unknown_language_data): Likewise.
2789 (auto_language_data): Likewise.
2790 * language.h (language_data): Delete
2791 la_collect_symbol_completion_matches field.
2792 (language_defn::collect_symbol_completion_matches): New member
2793 function.
2794 * m2-lang.c (m2_language_data): Delete
2795 la_collect_symbol_completion_matches initializer.
2796 * objc-lang.c (objc_language_data): Likewise.
2797 * opencl-lang.c (opencl_language_data): Likewise.
2798 * p-lang.c (pascal_language_data): Likewise.
2799 * rust-lang.c (rust_language_data): Likewise.
2800 * symtab.c (default_collect_symbol_completion_matches): Delete.
2801 (collect_symbol_completion_matches): Update call to
2802 collect_symbol_completion_matches.
2803 (collect_symbol_completion_matches_type): Likewise.
2804 * symtab.h (default_collect_symbol_completion_matches): Delete
2805 declaration.
2806
2807 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2808
2809 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2810 (ada_language_data): Delete la_word_break_characters initializer.
2811 (ada_language::word_break_characters): New member function.
2812 * c-lang.c (c_language_data): Delete la_word_break_characters
2813 initializer.
2814 (cplus_language_data): Likewise.
2815 (asm_language_data): Likewise.
2816 (minimal_language_data): Likewise.
2817 * completer.c: Update global comment.
2818 (advance_to_expression_complete_word_point): Update call to
2819 word_break_characters.
2820 (complete_files_symbols): Likewise.
2821 (complete_line_internal_1): Likewise.
2822 (default_completer_handle_brkchars): Likewise.
2823 (skip_quoted_chars): Likewise.
2824 * d-lang.c (d_language_data): Delete la_word_break_characters
2825 initializer.
2826 * f-lang.c (f_word_break_characters): Delete.
2827 (f_language_data): Delete la_word_break_characters initializer.
2828 (f_language::word_break_characters): New member function.
2829 * go-lang.c (go_language_data): Delete la_word_break_characters
2830 initializer.
2831 * language.c (unknown_language_data): Likewise.
2832 (auto_language_data): Likewise.
2833 * language.h (default_word_break_characters): Move declaration to
2834 earlier in the file.
2835 (language_data): Delete la_word_break_characters field.
2836 (language_defn::word_break_characters): New member function.
2837 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2838 initializer.
2839 * objc-lang.c (objc_language_data): Likewise.
2840 * opencl-lang.c (opencl_language_data): Likewise.
2841 * p-lang.c (pascal_language_data): Likewise.
2842 * rust-lang.c (rust_language_data): Likewise.
2843
2844 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2845
2846 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2847 (ada_language_data): Delete la_get_symbol_name_matcher
2848 initializer.
2849 (language_defn::get_symbol_name_matcher_inner): New member
2850 function.
2851 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2852 initializer.
2853 (cplus_language_data): Likewise.
2854 (cplus_language::get_symbol_name_matcher_inner): New member
2855 function.
2856 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2857 (minimal_language_data): Likewise.
2858 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2859 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2860 initializer.
2861 * dictionary.c (iter_match_first_hashed): Update call to
2862 get_symbol_name_matcher.
2863 (iter_match_next_hashed): Likewise.
2864 (iter_match_next_linear): Likewise.
2865 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2866 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2867 initializer.
2868 (f_language::get_symbol_name_matcher_inner): New member function.
2869 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2870 initializer.
2871 * language.c (default_symbol_name_matcher): Update header comment,
2872 make static.
2873 (language_defn::get_symbol_name_matcher): New definition.
2874 (language_defn::get_symbol_name_matcher_inner): Likewise.
2875 (get_symbol_name_matcher): Delete.
2876 (unknown_language_data): Delete la_get_symbol_name_matcher
2877 initializer.
2878 (auto_language_data): Likewise.
2879 * language.h (language_data): Delete la_get_symbol_name_matcher
2880 field.
2881 (language_defn::get_symbol_name_matcher): New member function.
2882 (language_defn::get_symbol_name_matcher_inner): Likewise.
2883 (default_symbol_name_matcher): Delete declaration.
2884 * linespec.c (find_methods): Update call to
2885 get_symbol_name_matcher.
2886 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2887 initializer.
2888 * minsyms.c (lookup_minimal_symbol): Update call to
2889 get_symbol_name_matcher.
2890 (iterate_over_minimal_symbols): Likewise.
2891 * objc-lang.c (objc_language_data): Delete
2892 la_get_symbol_name_matcher initializer.
2893 * opencl-lang.c (opencl_language_data): Likewise.
2894 * p-lang.c (pascal_language_data): Likewise.
2895 * psymtab.c (psymbol_name_matches): Update call to
2896 get_symbol_name_matcher.
2897 * rust-lang.c (rust_language_data): Delete
2898 la_get_symbol_name_matcher initializer.
2899 * symtab.c (symbol_matches_search_name): Update call to
2900 get_symbol_name_matcher.
2901 (compare_symbol_name): Likewise.
2902
2903 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2904
2905 * ada-lang.c (ada_language_data): Delete la_compute_program
2906 initializer.
2907 * c-lang.c (c_language_data): Likewise.
2908 (c_language::compute_program): New member function.
2909 (cplus_language_data): Delete la_compute_program initializer.
2910 (cplus_language::compute_program): New member function.
2911 (asm_language_data): Delete la_compute_program initializer.
2912 (minimal_language_data): Likewise.
2913 * c-lang.h (c_compute_program): Update comment.
2914 (cplus_compute_program): Likewise.
2915 * compile/compile-c-support.c (c_compute_program): Likewise.
2916 (cplus_compute_program): Likewise.
2917 * compile/compile.c (compile_to_object): Update call to
2918 la_compute_program.
2919 * d-lang.c (d_language_data): Delete la_compute_program
2920 initializer.
2921 * f-lang.c (f_language_data): Likewise.
2922 * go-lang.c (go_language_data): Likewise.
2923 * language.c (unknown_language_data): Likewise.
2924 (auto_language_data): Likewise.
2925 * language.h (language_data): Delete la_compute_program field.
2926 (language_defn::compute_program): New member function.
2927 * m2-lang.c (m2_language_data): Delete la_compute_program
2928 initializer.
2929 * objc-lang.c (objc_language_data): Likewise.
2930 * opencl-lang.c (opencl_language_data): Likewise.
2931 * p-lang.c (pascal_language_data): Likewise.
2932 * rust-lang.c (rust_language_data): Likewise.
2933
2934 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2935
2936 * ada-lang.c (ada_language_data) Delete
2937 la_class_name_from_physname initializer.
2938 * c-lang.c (c_language_data): Likewise.
2939 (cplus_language_data): Likewise.
2940 (cplus_language::class_name_from_physname): New member function.
2941 (asm_language_data): Delete la_class_name_from_physname
2942 initializer.
2943 (minimal_language_data): Likewise.
2944 * d-lang.c (d_language_data): Likewise.
2945 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2946 method on language_defn class.
2947 (guess_full_die_structure_name): Likewise.
2948 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2949 initializer.
2950 * go-lang.c (go_language_data): Likewise.
2951 * language.c (language_class_name_from_physname): Delete.
2952 (unk_lang_class_name): Delete.
2953 (unknown_language_data): Delete la_class_name_from_physname
2954 initializer.
2955 (auto_language_data): Likewise.
2956 * language.h (language_data): Delete la_class_name_from_physname
2957 field.
2958 (language_defn::class_name_from_physname): New function.
2959 (language_class_name_from_physname): Delete declaration.
2960 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2961 initializer.
2962 * objc-lang.c (objc_language_data): Likewise.
2963 * opencl-lang.c (opencl_language_data): Likewise.
2964 * p-lang.c (pascal_language_data): Likewise.
2965 * rust-lang.c (rust_language_data): Likewise.
2966
2967 2020-06-16 Tom Tromey <tom@tromey.com>
2968
2969 * tui/tui-data.h (STATUS_NAME): New macro.
2970 * tui/tui-layout.c (tui_remove_some_windows)
2971 (initialize_known_windows, tui_register_window)
2972 (tui_layout_split::remove_windows, initialize_layouts)
2973 (tui_new_layout_command): Don't use hard-coded window names.
2974
2975 2020-06-16 Tom Tromey <tom@tromey.com>
2976
2977 PR tui/25348:
2978 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2979 tui_initialize_readline. Only run once. Call rl_initialize.
2980 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2981 tui_initialize_readline.
2982 * tui/tui-io.c (tui_setup_io): Call
2983 tui_ensure_readline_initialized.
2984 * tui/tui-interp.c (tui_interp::init): Update.
2985
2986 2020-06-16 Tom Tromey <tom@tromey.com>
2987
2988 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2989 Also preserve the status window.
2990
2991 2020-06-16 Tom Tromey <tom@tromey.com>
2992
2993 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2994 where m_window==nullptr.
2995
2996 2020-06-15 Tom Tromey <tromey@adacore.com>
2997
2998 * windows-nat.c (windows_nat::handle_output_debug_string):
2999 Update.
3000 (windows_nat::handle_ms_vc_exception): Update.
3001 * target.h (target_read_string): Change API.
3002 * target.c (target_read_string): Change API.
3003 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3004 Update.
3005 * solib-frv.c (frv_current_sos): Update.
3006 * solib-dsbt.c (dsbt_current_sos): Update.
3007 * solib-darwin.c (darwin_current_sos): Update.
3008 * linux-thread-db.c (inferior_has_bug): Update.
3009 * expprint.c (print_subexp_standard): Update.
3010 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3011 (ada_exception_message_1): Update.
3012
3013 2020-06-15 Tom Tromey <tromey@adacore.com>
3014
3015 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3016
3017 2020-06-15 Tom Tromey <tromey@adacore.com>
3018
3019 * valprint.c (read_string): Update comment.
3020 * target.c (MIN): Remove.
3021 (target_read_string): Rewrite.
3022
3023 2020-06-15 Tom Tromey <tromey@adacore.com>
3024
3025 * corefile.c (read_memory_string): Remove.
3026 * ada-valprint.c (ada_value_print_ptr): Update.
3027 * ada-lang.h (ada_tag_name): Change return type.
3028 * ada-lang.c (type_from_tag): Update.
3029 (ada_tag_name_from_tsd): Change return type. Use
3030 target_read_string.
3031 (ada_tag_name): Likewise.
3032 * gdbcore.h (read_memory_string): Don't declare.
3033
3034 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3035
3036 * symtab.c (rbreak_command): Ignore Windows drive colon.
3037
3038 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3039
3040 * NEWS: Mention removed GDBserver host support.
3041
3042 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3043
3044 * features/riscv/rebuild-csr-xml.sh: Updated.
3045
3046 2020-06-11 Tom Tromey <tom@tromey.com>
3047
3048 PR gdb/18318:
3049 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3050
3051 2020-06-09 Jonny Grant <jg@jguk.org>
3052 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3053
3054 * main.c (captured_main_1): Don't print new line after help.
3055 (print_gdb_help): add mailing list and IRC channel information
3056 to --help. Add new lines between items in the footer. Remove
3057 quotes around bug url.
3058
3059 2020-06-11 Keith Seitz <keiths@redhat.com>
3060
3061 PR gdb/21356
3062 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3063 Resolve typedefs for type length calculations.
3064
3065 2020-06-10 Tom de Vries <tdevries@suse.de>
3066
3067 PR ada/24713
3068 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3069 (write_psymbols): Enable .gdb_index for ada.
3070 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3071 ada.
3072
3073 2020-06-10 Tom de Vries <tdevries@suse.de>
3074
3075 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3076 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3077 namei" instead of "const char *name" argument.
3078 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3079 dw2_symtab_iter_init.
3080
3081 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3082
3083 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3084 to use type::field and field::type instead.
3085
3086 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3087
3088 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3089 to use field::type instead.
3090
3091 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3092
3093 * gdbtypes.h (struct field) <type, set_type>: New methods.
3094 Rename `type` field to...
3095 <m_type>: ... this. Change references throughout to use type or
3096 set_type methods.
3097 (FIELD_TYPE): Use field::type. Change call sites that modify
3098 the field's type to use field::set_type instead.
3099
3100 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3101
3102 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3103 to use type::index_type instead.
3104
3105 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3106
3107 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3108 methods.
3109 (TYPE_INDEX_TYPE): Use type::index_type.
3110 * gdbtypes.c (create_array_type_with_stride): Likewise.
3111
3112 2020-06-07 Tom Tromey <tom@tromey.com>
3113
3114 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3115 parameter.
3116 (generic_value_print): Update.
3117
3118 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3119
3120 Revert commit 982a38f60b0.
3121 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3122
3123 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3124
3125 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3126 avoid use after free.
3127
3128 2020-06-05 Tom de Vries <tdevries@suse.de>
3129
3130 * NEWS: Fix typos.
3131
3132 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3133
3134 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3135 the per_bfd object.
3136 (dwarf2_read_debug_names): Likewise.
3137 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3138 object when re-using a per_bfd object with an index.
3139
3140 2020-06-03 Tom de Vries <tdevries@suse.de>
3141
3142 PR symtab/26046
3143 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3144 children for C++.
3145 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3146 DW_TAG_subprogram.
3147
3148 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3149
3150 * ada-lang.c (ada_language_data): Delete skip_trampoline
3151 initializer.
3152 * c-lang.c (c_language_data): Likewise.
3153 (cplus_language_data): Likewise.
3154 (cplus_language::skip_trampoline): New member function.
3155 (asm_language_data): Delete skip_trampoline initializer.
3156 (minimal_language_data): Likewise.
3157 * d-lang.c (d_language_data): Likewise.
3158 * f-lang.c (f_language_data): Likewise.
3159 * go-lang.c (go_language_data): Likewise.
3160 * language.c (unk_lang_trampoline): Delete function.
3161 (skip_language_trampoline): Update.
3162 (unknown_language_data): Delete skip_trampoline initializer.
3163 (auto_language_data): Likewise.
3164 * language.h (language_data): Delete skip_trampoline field.
3165 (language_defn::skip_trampoline): New function.
3166 * m2-lang.c (m2_language_data): Delete skip_trampoline
3167 initializer.
3168 * objc-lang.c (objc_skip_trampoline): Delete function, move
3169 implementation to objc_language::skip_trampoline.
3170 (objc_language_data): Delete skip_trampoline initializer.
3171 (objc_language::skip_trampoline): New member function with
3172 implementation from objc_skip_trampoline.
3173 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3174 initializer.
3175 * p-lang.c (pascal_language_data): Likewise.
3176 * rust-lang.c (rust_language_data): Likewise.
3177
3178 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3179
3180 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3181 (ada_language::demangle): New member function.
3182 * c-lang.c (c_language_data): Delete la_demangle initializer.
3183 (cplus_language_data): Delete la_demangle initializer.
3184 (cplus_language::demangle): New member function.
3185 (asm_language_data): Delete la_demangle initializer.
3186 (minimal_language_data): Delete la_demangle initializer.
3187 * d-lang.c (d_language_data): Delete la_demangle initializer.
3188 (d_language::demangle): New member function.
3189 * f-lang.c (f_language_data): Delete la_demangle initializer.
3190 (f_language::demangle): New member function.
3191 * go-lang.c (go_language_data): Delete la_demangle initializer.
3192 (go_language::demangle): New member function.
3193 * language.c (language_demangle): Update.
3194 (unk_lang_demangle): Delete.
3195 (unknown_language_data): Delete la_demangle initializer.
3196 (unknown_language::demangle): New member function.
3197 (auto_language_data): Delete la_demangle initializer.
3198 (auto_language::demangle): New member function.
3199 * language.h (language_data): Delete la_demangle field.
3200 (language_defn::demangle): New function.
3201 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3202 * objc-lang.c (objc_language_data): Delete la_demangle
3203 initializer.
3204 (objc_language::demangle): New member function.
3205 * opencl-lang.c (opencl_language_data): Delete la_demangle
3206 initializer.
3207 * p-lang.c (pascal_language_data): Likewise.
3208 * rust-lang.c (rust_language_data): Likewise.
3209 (rust_language::demangle): New member function.
3210
3211 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3212
3213 * ada-lang.c (ada_language_data): Delete la_print_type
3214 initializer.
3215 (ada_language::print_type): New member function.
3216 * c-lang.c (c_language_data): Delete la_print_type initializer.
3217 (c_language::print_type): New member function.
3218 (cplus_language_data): Delete la_print_type initializer.
3219 (cplus_language::print_type): New member function.
3220 (asm_language_data): Delete la_print_type initializer.
3221 (asm_language::print_type): New member function.
3222 (minimal_language_data): Delete la_print_type initializer.
3223 (minimal_language::print_type): New member function.
3224 * d-lang.c (d_language_data): Delete la_print_type initializer.
3225 (d_language::print_type): New member function.
3226 * f-lang.c (f_language_data): Delete la_print_type initializer.
3227 (f_language::print_type): New member function.
3228 * go-lang.c (go_language_data): Delete la_print_type initializer.
3229 (go_language::print_type): New member function.
3230 * language.c (unk_lang_print_type): Delete.
3231 (unknown_language_data): Delete la_print_type initializer.
3232 (unknown_language::print_type): New member function.
3233 (auto_language_data): Delete la_print_type initializer.
3234 (auto_language::print_type): New member function.
3235 * language.h (language_data): Delete la_print_type field.
3236 (language_defn::print_type): New function.
3237 (LA_PRINT_TYPE): Update.
3238 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3239 (m2_language::print_type): New member function.
3240 * objc-lang.c (objc_language_data): Delete la_print_type
3241 initializer.
3242 (objc_language::print_type): New member function.
3243 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3244 to opencl_language::print_type.
3245 (opencl_language_data): Delete la_print_type initializer.
3246 (opencl_language::print_type): New member function, implementation
3247 from opencl_print_type.
3248 * p-lang.c (pascal_language_data): Delete la_print_type
3249 initializer.
3250 (pascal_language::print_type): New member function.
3251 * rust-lang.c (rust_print_type): Delete, implementation moved to
3252 rust_language::print_type.
3253 (rust_language_data): Delete la_print_type initializer.
3254 (rust_language::print_type): New member function, implementation
3255 from rust_print_type.
3256
3257 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3258
3259 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3260 implementation moves to...
3261 (ada_language::sniff_from_mangled_name): ...here. Update return
3262 type.
3263 (ada_language_data): Delete la_sniff_from_mangled_name
3264 initializer.
3265 * c-lang.c (c_language_data): Likewise.
3266 (cplus_language_data): Likewise.
3267 (cplus_language::sniff_from_mangled_name): New member function,
3268 implementation taken from gdb_sniff_from_mangled_name.
3269 (asm_language_data): Delete la_sniff_from_mangled_name
3270 initializer.
3271 (minimal_language_data): Likewise.
3272 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3273 implementation moves to cplus_language::sniff_from_mangled_name.
3274 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3275 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3276 moves to...
3277 (d_language::sniff_from_mangled_name): ...here.
3278 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3279 * f-lang.c (f_language_data): Likewise.
3280 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3281 moves to...
3282 (go_language::sniff_from_mangled_name): ...here.
3283 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3284 * language.c (language_sniff_from_mangled_name): Delete.
3285 (unknown_language_data): Delete la_sniff_from_mangled_name
3286 initializer.
3287 (auto_language_data): Likewise.
3288 * language.h (language_data): Delete la_sniff_from_mangled_name
3289 field.
3290 (language_defn::sniff_from_mangled_name): New function.
3291 (language_sniff_from_mangled_name): Delete declaration.
3292 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3293 field.
3294 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3295 implementation moves to...
3296 (objc_language::sniff_from_mangled_name): ...here.
3297 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3298 * opencl-lang.c (opencl_language_data): Likewise.
3299 * p-lang.c (pascal_language_data): Likewise.
3300 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3301 implementation moves to...
3302 (rust_language::sniff_from_mangled_name): ...here.
3303 (rust_language_data): Delete la_sniff_from_mangled_name
3304 initializer.
3305 * symtab.c (symbol_find_demangled_name): Call
3306 sniff_from_mangled_name member function.
3307
3308 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3309
3310 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3311 initializer.
3312 * c-lang.c (c_language_data): Likewise.
3313 (cplus_language_data): Likewise.
3314 (cplus_language::search_name_hash): New member function.
3315 (asm_language_data): Delete la_search_name_hash initializer.
3316 (minimal_language_data): Likewise.
3317 * d-lang.c (d_language_data): Likewise.
3318 * dictionary.c (default_search_name_hash): Rename to...
3319 (language_defn::search_name_hash): ...this.
3320 * f-lang.c (f_language_data): Likewise.
3321 (f_language::search_name_hash): New member function.
3322 * go-lang.c (go_language_data): Delete la_search_name_hash
3323 initializer.
3324 * language.c (unknown_language_data): Likewise.
3325 (auto_language_data): Likewise.
3326 * language.h (struct language_data): Delete la_search_name_hash
3327 field.
3328 (language_defn::search_name_hash): Declare new member function.
3329 (default_search_name_hash): Delete declaration.
3330 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3331 initializer.
3332 * objc-lang.c (objc_language_data): Likewise.
3333 * opencl-lang.c (opencl_language_data): Likewise.
3334 * p-lang.c (pascal_language_data): Likewise.
3335 * rust-lang.c (rust_language_data): Likewise.
3336 * symtab.c (search_name_hash): Update call.
3337
3338 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3339
3340 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3341 initializer.
3342 * c-lang.c (class compile_instance): Declare.
3343 (c_language_data): Delete la_get_compile_instance initializer.
3344 (c_language::get_compile_instance): New member function.
3345 (cplus_language_data): Delete la_get_compile_instance initializer.
3346 (cplus_language::get_compile_instance): New member function.
3347 (asm_language_data): Delete la_get_compile_instance initializer.
3348 (minimal_language_data): Likewise.
3349 * c-lang.h (c_get_compile_context): Update comment.
3350 (cplus_get_compile_context): Update comment.
3351 * compile/compile.c (compile_to_object): Update calls, don't rely
3352 on function pointer being NULL.
3353 * d-lang.c (d_language_data): Delete la_get_compile_instance
3354 initializer.
3355 * f-lang.c (f_language_data): Likewise.
3356 * go-lang.c (go_language_data): Likewise.
3357 * language.c (unknown_language_data): Likewise.
3358 (auto_language_data): Likewise.
3359 * language.h (language_data): Delete la_get_compile_instance field.
3360 (language_defn::get_compile_instance): New member function.
3361 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3362 initializer.
3363 * objc-lang.c (objc_language_data): Likewise.
3364 * opencl-lang.c (opencl_language_data): Likewise.
3365 * p-lang.c (pascal_language_data): Likewise.
3366 * rust-lang.c (rust_language_data): Likewise.
3367
3368 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3369
3370 * ada-lang.c (ada_add_all_symbols): Update comment.
3371 (ada_iterate_over_symbols): Delete, move implementation to...
3372 (ada_language::iterate_over_symbols): ...here, a new member
3373 function, rewrite to use range based for loop.
3374 (ada_language_data): Delete la_iterate_over_symbols initializer.
3375 * c-lang.c (c_language_data): Likewise.
3376 (cplus_language_data): Likewise.
3377 (asm_language_data): Likewise.
3378 (minimal_language_data): Likewise.
3379 * d-lang.c (d_language_data): Likewise.
3380 * f-lang.c (f_language_data): Likewise.
3381 * go-lang.c (go_language_data): Likewise.
3382 * language.c (unknown_language_data): Likewise.
3383 (auto_language_data): Likewise.
3384 * language.h (language_data): Delete la_iterate_over_symbols field.
3385 (language_defn::iterate_over_symbols): New member function.
3386 (LA_ITERATE_OVER_SYMBOLS): Update.
3387 * linespec.c (iterate_over_all_matching_symtabs): Update.
3388 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3389 initializer.
3390 * objc-lang.c (objc_language_data): Likewise.
3391 * opencl-lang.c (opencl_language_data): Likewise.
3392 * p-lang.c (pascal_language_data): Likewise.
3393 * rust-lang.c (rust_language_data): Likewise.
3394
3395 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3396
3397 * ada-lang.c (ada_language_data): Delete
3398 la_lookup_transparent_type initializer.
3399 * c-lang.c (c_language_data): Likewise.
3400 (cplus_language_data): Likewise.
3401 (cplus_language::lookup_transparent_type): New member function.
3402 (asm_language_data): Delete la_lookup_transparent_type
3403 initializer.
3404 (minimal_language_data): Likewise.
3405 * d-lang.c (d_language_data): Likewise.
3406 * f-lang.c (f_language_data): Likewise.
3407 * go-lang.c (go_language_data): Likewise.
3408 * language.c (unknown_language_data): Likewise.
3409 (auto_language_data): Likewise.
3410 * language.h (struct language_data): Delete
3411 la_lookup_transparent_type field.
3412 (language_defn::lookup_transparent_type): New member function.
3413 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3414 initializer.
3415 * objc-lang.c (objc_language_data): Likewise.
3416 * opencl-lang.c (opencl_language_data): Likewise.
3417 * p-lang.c (pascal_language_data): Likewise.
3418 * rust-lang.c (rust_language_data): Likewise.
3419 * symtab.c (symbol_matches_domain): Update call.
3420
3421 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3422
3423 * ada-lang.c (ada_language_arch_info): Delete function, move
3424 implementation to...
3425 (ada_language::language_arch_info): ...here, a new member
3426 function.
3427 (ada_language_data): Delete la_language_arch_info.
3428 * c-lang.c (c_language_data): Likewise.
3429 (c_language::language_arch_info): New member function.
3430 (cplus_language_arch_info): Delete function, move
3431 implementation to...
3432 (cplus_language::language_arch_info): ...here, a new member
3433 function.
3434 (cplus_language_data): Delete la_language_arch_info.
3435 (asm_language_data): Likewise.
3436 (asm_language::language_arch_info): New member function.
3437 (minimal_language_data): Delete la_language_arch_info.
3438 (minimal_language::language_arch_info): New member function.
3439 * d-lang.c (d_language_arch_info): Delete function, move
3440 implementation to...
3441 (d_language::language_arch_info): ...here, a new member
3442 function.
3443 (d_language_data): Delete la_language_arch_info.
3444 * f-lang.c (f_language_arch_info): Delete function, move
3445 implementation to...
3446 (f_language::language_arch_info): ...here, a new member
3447 function.
3448 (f_language_data): Delete la_language_arch_info.
3449 * go-lang.c (go_language_arch_info): Delete function, move
3450 implementation to...
3451 (go_language::language_arch_info): ...here, a new member
3452 function.
3453 (go_language_data): Delete la_language_arch_info.
3454 * language.c (unknown_language_data): Likewise.
3455 (unknown_language::language_arch_info): New member function.
3456 (auto_language_data): Delete la_language_arch_info.
3457 (auto_language::language_arch_info): New member function.
3458 (language_gdbarch_post_init): Update call to
3459 la_language_arch_info.
3460 * language.h (language_data): Delete la_language_arch_info
3461 function pointer.
3462 (language_defn::language_arch_info): New function.
3463 * m2-lang.c (m2_language_arch_info): Delete function, move
3464 implementation to...
3465 (m2_language::language_arch_info): ...here, a new member
3466 function.
3467 (m2_language_data): Delete la_language_arch_info.
3468 * objc-lang.c (objc_language_arch_info): Delete function, move
3469 implementation to...
3470 (objc_language::language_arch_info): ...here, a new member
3471 function.
3472 (objc_language_data): Delete la_language_arch_info.
3473 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3474 implementation to...
3475 (opencl_language::language_arch_info): ...here, a new member
3476 function.
3477 (opencl_language_data): Delete la_language_arch_info.
3478 * p-lang.c (pascal_language_arch_info): Delete function, move
3479 implementation to...
3480 (pascal_language::language_arch_info): ...here, a new member
3481 function.
3482 (pascal_language_data): Delete la_language_arch_info.
3483 * rust-lang.c (rust_language_arch_info): Delete function, move
3484 implementation to...
3485 (rust_language::language_arch_info): ...here, a new member
3486 function.
3487 (rust_language_data): Delete la_language_arch_info.
3488
3489 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3490
3491 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3492 initializer.
3493 * c-lang.c (c_language_data): Likewise.
3494 (cplus_language_data): Likewise.
3495 (cplus_language::pass_by_reference_info): New method.
3496 (asm_language_data): Delete la_pass_by_reference initializer.
3497 (minimal_language_data): Likewise.
3498 * cp-abi.c (cp_pass_by_reference): Remove use of
3499 default_pass_by_reference.
3500 * d-lang.c (d_language_data): Likewise.
3501 * f-lang.c (f_language_data): Likewise.
3502 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3503 default_pass_by_reference.
3504 * go-lang.c (go_language_data): Likewise.
3505 * language.c (language_pass_by_reference): Update.
3506 (default_pass_by_reference): Delete.
3507 (unknown_language_data): Delete la_pass_by_reference
3508 initializer.
3509 (auto_language_data): Likewise.
3510 * language.h (struct language_data): Delete la_pass_by_reference
3511 field.
3512 (language_defn::pass_by_reference_info): New member function.
3513 (default_pass_by_reference): Delete declaration.
3514 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3515 initializer.
3516 * objc-lang.c (objc_language_data): Likewise.
3517 * opencl-lang.c (opencl_language_data): Likewise.
3518 * p-lang.c (pascal_language_data): Likewise.
3519 * rust-lang.c (rust_language_data): Likewise.
3520
3521 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3522
3523 * ada-lang.c (ada_read_var_value): Delete function, move
3524 implementation to...
3525 (ada_language::read_var_value): ...here.
3526 (ada_language_data): Delete la_read_var_value initializer.
3527 * c-lang.c (c_language_data): Likewise.
3528 (cplus_language_data): Likewise.
3529 (minimal_language_data): Likewise.
3530 * d-lang.c (d_language_data): Likewise.
3531 * f-lang.c (f_language_data): Likewise.
3532 * findvar.c (default_read_var_value): Rename to...
3533 (language_defn::read_var_value): ...this.
3534 * findvar.c (read_var_value): Update header comment, and change to
3535 call member function instead of function pointer.
3536 * go-lang.c (go_language_data): Likewise.
3537 * language.c (unknown_language_data): Delete la_read_var_value
3538 initializer.
3539 (auto_language_data): Likewise.
3540 * language.h (struct language_data): Delete la_read_var_value
3541 field.
3542 (language_defn::read_var_value): New member function.
3543 (default_read_var_value): Delete declaration.
3544 * m2-lang.c (m2_language_data): Delete la_read_var_value
3545 initializer.
3546 * objc-lang.c (objc_language_data): Likewise.
3547 * opencl-lang.c (opencl_language_data): Likewise.
3548 * p-lang.c (pascal_language_data): Likewise.
3549 * rust-lang.c (rust_language_data): Likewise.
3550 * value.h (default_read_var_value): Delete declaration.
3551
3552 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3553
3554 * ada-lang.c (ada_print_array_index): Delete function, move
3555 implementation to...
3556 (ada_language::print_array_index): ...here.
3557 (ada_language_data): Delete la_print_array_index initializer.
3558 * c-lang.c (c_language_data): Likewise.
3559 (cplus_language_data): Likewise.
3560 (minimal_language_data): Likewise.
3561 * d-lang.c (d_language_data): Likewise.
3562 * f-lang.c (f_language_data): Likewise.
3563 * go-lang.c (go_language_data): Likewise.
3564 * language.c (default_print_array_index): Delete function, move
3565 implementation to...
3566 (language_defn::print_array_index): ...here.
3567 (unknown_language_data): Delete la_print_array_index initializer.
3568 (auto_language_data): Likewise.
3569 * language.h (struct language_data): Delete la_print_array_index
3570 field.
3571 (language_defn::print_array_index): New member function.
3572 (LA_PRINT_ARRAY_INDEX): Update.
3573 (default_print_array_index): Delete declaration.
3574 * m2-lang.c (m2_language_data): Delete la_print_array_index
3575 initializer.
3576 * objc-lang.c (objc_language_data): Likewise.
3577 * opencl-lang.c (opencl_language_data): Likewise.
3578 * p-lang.c (pascal_language_data): Likewise.
3579 * rust-lang.c (rust_language_data): Likewise.
3580
3581 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3582
3583 * gdb/ada-lang.c (ada_language_defn): Convert to...
3584 (ada_language_data): ...this.
3585 (class ada_language): New class.
3586 (ada_language_defn): New static global.
3587 * gdb/c-lang.c (c_language_defn): Convert to...
3588 (c_language_data): ...this.
3589 (class c_language): New class.
3590 (c_language_defn): New static global.
3591 (cplus_language_defn): Convert to...
3592 (cplus_language_data): ...this.
3593 (class cplus_language): New class.
3594 (cplus_language_defn): New static global.
3595 (asm_language_defn): Convert to...
3596 (asm_language_data): ...this.
3597 (class asm_language): New class.
3598 (asm_language_defn): New static global.
3599 (minimal_language_defn): Convert to...
3600 (minimal_language_data): ...this.
3601 (class minimal_language): New class.
3602 (minimal_language_defn): New static global.
3603 * gdb/d-lang.c (d_language_defn): Convert to...
3604 (d_language_data): ...this.
3605 (class d_language): New class.
3606 (d_language_defn): New static global.
3607 * gdb/f-lang.c (f_language_defn): Convert to...
3608 (f_language_data): ...this.
3609 (class f_language): New class.
3610 (f_language_defn): New static global.
3611 * gdb/go-lang.c (go_language_defn): Convert to...
3612 (go_language_data): ...this.
3613 (class go_language): New class.
3614 (go_language_defn): New static global.
3615 * gdb/language.c (unknown_language_defn): Remove declaration.
3616 (current_language): Initialize to nullptr, real initialization is
3617 moved to _initialize_language.
3618 (languages): Delete global.
3619 (language_defn::languages): Define.
3620 (set_language_command): Use language_defn::languages.
3621 (set_language): Likewise.
3622 (range_error): Likewise.
3623 (language_enum): Likewise.
3624 (language_def): Likewise.
3625 (add_set_language_command): Use language_def::languages for the
3626 language list, and language_def to lookup language pointers.
3627 (skip_language_trampoline): Use language_defn::languages.
3628 (unknown_language_defn): Convert to...
3629 (unknown_language_data): ...this.
3630 (class unknown_language): New class.
3631 (unknown_language_defn): New static global.
3632 (auto_language_defn): Convert to...
3633 (auto_language_data): ...this.
3634 (class auto_language): New class.
3635 (auto_language_defn): New static global.
3636 (language_gdbarch_post_init): Use language_defn::languages.
3637 (_initialize_language): Initialize current_language.
3638 * gdb/language.h (struct language_defn): Rename to...
3639 (struct language_data): ...this.
3640 (struct language_defn): New.
3641 (auto_language_defn): Delete.
3642 (unknown_language_defn): Delete.
3643 (minimal_language_defn): Delete.
3644 (ada_language_defn): Delete.
3645 (asm_language_defn): Delete.
3646 (c_language_defn): Delete.
3647 (cplus_language_defn): Delete.
3648 (d_language_defn): Delete.
3649 (f_language_defn): Delete.
3650 (go_language_defn): Delete.
3651 (m2_language_defn): Delete.
3652 (objc_language_defn): Delete.
3653 (opencl_language_defn): Delete.
3654 (pascal_language_defn): Delete.
3655 (rust_language_defn): Delete.
3656 * gdb/m2-lang.c (m2_language_defn): Convert to...
3657 (m2_language_data): ...this.
3658 (class m2_language): New class.
3659 (m2_language_defn): New static global.
3660 * gdb/objc-lang.c (objc_language_defn): Convert to...
3661 (objc_language_data): ...this.
3662 (class objc_language): New class.
3663 (objc_language_defn): New static global.
3664 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3665 (opencl_language_data): ...this.
3666 (class opencl_language): New class.
3667 (opencl_language_defn): New static global.
3668 * gdb/p-lang.c (pascal_language_defn): Convert to...
3669 (pascal_language_data): ...this.
3670 (class pascal_language): New class.
3671 (pascal_language_defn): New static global.
3672 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3673 language pointer, update comment format.
3674 * gdb/rust-lang.c (rust_language_defn): Convert to...
3675 (rust_language_data): ...this.
3676 (class rust_language): New class.
3677 (rust_language_defn): New static global.
3678
3679 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3680
3681 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3682 member variable.
3683 <m_stmt_at_address>: New member variable.
3684 (lnp_state_machine::record_line): Don't record some lines, update
3685 tracking of is_stmt at the same address.
3686 (lnp_state_machine::lnp_state_machine): Initialise new member
3687 variables.
3688
3689 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3690
3691 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3692 "-include gnu-nat-mig.h".
3693 * gnu-nat-mig.h: New file.
3694 * gnu-nat.c: Include "gnu-nat-mig.h".
3695 (exc_server, msg_reply_server, notify_server,
3696 process_reply_server): Remove declarations.
3697
3698 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3699
3700 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3701 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3702 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3703 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3704 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3705 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3706 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3707 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3708 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3709 to gnu_nat_target class.
3710 * gnu-nat.c: Likewise.
3711 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3712 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3713 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3714 object.
3715 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3716 instead of `gnu_target'.
3717
3718 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3719
3720 * i386-gnu-tdep.c: Include "gdbcore.h"
3721 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3722 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3723 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3724 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3725 i386_gnu_sigcontext_addr): New functions
3726 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3727 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3728 tdep.
3729
3730 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3731
3732 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3733 before fork_inferior call. Avoid calling it if target_is_pushed returns
3734 true.
3735
3736 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3737
3738 * gnu-nat.h (gnu_target): New variable declaration.
3739 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3740 gnu_target.
3741 * gnu-nat.c (gnu_target): New variable.
3742 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3743 add_thread_silent, and add_thread calls.
3744 (gnu_nat_target::create_inferior): Pass gnu_target to
3745 add_thread_silent, thread_change_ptid call.
3746 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3747 call.
3748
3749 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3750
3751 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3752 (gnu_nat_target::find_memory_regions): Remove unused
3753 `old_address' variable.
3754
3755 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3756
3757 * gnu-nat.c: Include "gdbarch.h".
3758
3759 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3760
3761 * reply_mig_hack.awk (Error return): Cast function through
3762 void *, to bypass compiler function call check.
3763
3764 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3765
3766 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3767 $(srcdir)/reply_mig_hack.awk.
3768
3769 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3770
3771 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3772
3773 2020-05-30 Jonny Grant <jg@jguk.org>
3774
3775 * configure.ac (ACX_BUGURL): change bug URL to https.
3776
3777 2020-05-30 Pedro Alves <palves@redhat.com>
3778
3779 * cp-support.c (replace_typedefs_template): New.
3780 (replace_typedefs_qualified_name): Handle
3781 DEMANGLE_COMPONENT_TEMPLATE.
3782
3783 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3784
3785 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3786 dwarf2/index-cache.h, dwarf2/index-write.c,
3787 dwarf2/index-write.h, dwarf2/line-header.c,
3788 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3789 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3790 variables and fields from `dwarf2_per_objfile` to just
3791 `per_objfile` throughout.
3792
3793 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3794
3795 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3796 <push_dwarf_reg_entry_value>: Add comment.
3797
3798 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3799 Keith Seitz <keiths@redhat.com>
3800
3801 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3802 instead of PyEval_ReleaseLock.
3803 (class gdbpy_gil): Move to earlier in file.
3804 (finalize_python): Set gdb_python_initialized.
3805 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3806 when not initialized.
3807
3808 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3809
3810 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3811 <push_dwarf_reg_entry_value>: Remove assert. Override
3812 per_objfile with caller_per_objfile.
3813
3814 2020-05-28 Tom de Vries <tdevries@suse.de>
3815
3816 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3817 PR gold/15646 workaround to symbol kind "type".
3818
3819 2020-05-27 Tom Tromey <tromey@adacore.com>
3820
3821 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3822
3823 2020-05-27 Tom Tromey <tromey@adacore.com>
3824
3825 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3826 Use htab_find_with_hash.
3827 <add_abbrev>: Remove "abbrev_number" parameter.
3828 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3829 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3830 (hash_abbrev): Add comment.
3831 (abbrev_table::lookup_abbrev): Move to header file.
3832 (abbrev_table::read): Update.
3833
3834 2020-05-27 Tom Tromey <tromey@adacore.com>
3835
3836 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3837 method.
3838 <canonical_name>: New member.
3839 <raw_name>: Rename from "name".
3840 (partial_die_info): Initialize canonical_name.
3841 (scan_partial_symbols): Check raw_name.
3842 (partial_die_parent_scope, partial_die_full_name)
3843 (add_partial_symbol, add_partial_subprogram)
3844 (add_partial_enumeration, load_partial_dies): Use "name" method.
3845 (partial_die_info::name): New method.
3846 (partial_die_info::read, guess_partial_die_structure_name)
3847 (partial_die_info::fixup): Update.
3848
3849 2020-05-27 Tom Tromey <tromey@adacore.com>
3850
3851 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3852 <get_ref_die_offset>: Inline.
3853 <get_ref_die_offset_complaint>: New method.
3854 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3855 (attribute::get_ref_die_offset_complaint): Rename from
3856 get_ref_die_offset. Just issue complaint.
3857
3858 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3859
3860 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3861
3862 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3863
3864 * exec.c (exec_file_attach): Use errno value of first openp failure.
3865
3866 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3867
3868 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3869 Don't close thread handle.
3870
3871 2020-05-27 Tom Tromey <tom@tromey.com>
3872 Simon Marchi <simon.marchi@efficios.com>
3873
3874 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3875 shared_ptr.
3876 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3877 member.
3878 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3879 dwarf2_per_bfd_objfile_data_key>: New globals.
3880 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3881 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3882 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3883 shared.
3884 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3885 short-circuit when sharing.
3886 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3887 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3888
3889 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3890
3891 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3892 to...
3893 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3894 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3895
3896 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3897
3898 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3899 build_name_components, find_name_components_bounds>:
3900 Add per_objfile parameter.
3901 (struct mapped_index) <symbol_name_at>: Likewise.
3902 (struct mapped_debug_names): Remove constructor.
3903 <dwarf2_per_objfile>: Remove field.
3904 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3905 (mapped_index_base::find_name_components_bounds,
3906 mapped_index_base::build_name_components,
3907 dw2_expand_symtabs_matching_symbol): Likewise.
3908 (class mock_mapped_index) <symbol_name_at>: Likewise.
3909 (check_match): Likewise.
3910 (check_find_bounds_finds): Likewise.
3911 (test_mapped_index_find_name_component_bounds): Update.
3912 (CHECK_MATCH): Update.
3913 (dw2_expand_symtabs_matching): Update.
3914 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3915 per_objfile parameter.
3916 <find_vec_in_debug_names>: Likewise.
3917 <m_per_objfile>: New field.
3918 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3919 parameter.
3920 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3921 (dw2_debug_names_iterator::next): Update.
3922 (dw2_debug_names_lookup_symbol): Update.
3923 (dw2_debug_names_expand_symtabs_for_function): Update.
3924 (dw2_debug_names_map_matching_symbols): Update.
3925 (dw2_debug_names_expand_symtabs_matching): Update.
3926 (dwarf2_read_debug_names): Update.
3927
3928 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3929
3930 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3931 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3932 move to dwarf2_per_objfile.
3933 <read_in_chain>: Remove.
3934 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3935 remove_all_cus, age_comp_units>: New methods.
3936 <m_dwarf2_cus>: New member.
3937 (struct dwarf2_per_cu_data) <cu>: Remove.
3938 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3939 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3940 moved to methods of dwarf2_per_objfile.
3941 (dwarf2_clear_marks): Remove.
3942 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3943 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3944 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3945 (dwarf2_per_objfile::remove_all_cus): New.
3946 (class free_cached_comp_units) <~free_cached_comp_units>:
3947 Update.
3948 (load_cu): Update.
3949 (dw2_do_instantiate_symtab): Adjust.
3950 (fill_in_sig_entry_from_dwo_entry): Adjust.
3951 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3952 (cutu_reader::cutu_reader): Likewise.
3953 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3954 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3955 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3956 and dwarf2_per_objfile::age_comp_units.
3957 (load_partial_comp_unit): Update.
3958 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3959 (process_queue): Likewise.
3960 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3961 backlink.
3962 (dwarf2_read_addr_index): Likewise.
3963 (follow_die_offset): Likewise.
3964 (dwarf2_fetch_die_loc_sect_off): Likewise.
3965 (dwarf2_fetch_constant_bytes): Likewise.
3966 (dwarf2_fetch_die_type_sect_off): Likewise.
3967 (follow_die_sig_1): Likewise.
3968 (load_full_type_unit): Likewise.
3969 (read_signatured_type): Likewise.
3970 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3971 (dwarf2_cu::~dwarf2_cu): Remove.
3972 (dwarf2_per_objfile::get_cu): New.
3973 (dwarf2_per_objfile::set_cu): New.
3974 (age_cached_comp_units): Rename to...
3975 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3976 to std::unordered_map.
3977 (free_one_cached_comp_unit): Rename to...
3978 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3979 to std::unordered_map.
3980 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3981 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3982 a dwarf2_per_objfile in data.
3983 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3984 (dwarf2_clear_marks): Remove.
3985
3986 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3987
3988 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3989 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3990 (init_tu_and_read_dwo_dies): Likewise.
3991 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3992 (cutu_reader::cutu_reader): Likewise.
3993 (load_partial_comp_unit): Likewise.
3994 (process_psymtab_comp_unit): Update.
3995 (build_type_psymtabs_1): Update.
3996 (process_skeletonless_type_unit): Update.
3997 (load_full_comp_unit): Update.
3998 (find_partial_die): Update.
3999 (dwarf2_read_addr_index): Update.
4000 (read_signatured_type): Update.
4001
4002 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4003
4004 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4005 m_header_read_in>: New fields.
4006 <get_header>: New method.
4007 * dwarf2/read.c (per_cu_header_read_in): Remove.
4008 (dwarf2_per_cu_data::get_header): New.
4009 (dwarf2_per_cu_data::addr_size): Update.
4010 (dwarf2_per_cu_data::offset_size): Update.
4011 (dwarf2_per_cu_data::ref_addr_size): Update.
4012
4013 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4014
4015 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4016 (dw2_do_instantiate_symtab): Update.
4017 (queue_and_load_all_dwo_tus): Change parameter from
4018 dwarf2_per_cu_data to dwarf2_cu.
4019 (dwarf2_fetch_die_loc_sect_off): Update.
4020 (dwarf2_fetch_constant_bytes): Update.
4021 (dwarf2_fetch_die_type_sect_off): Update.
4022
4023 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4024
4025 * dwarf2/read.c (process_full_comp_unit,
4026 process_full_type_unit): Remove per_cu, per_objfile paramters.
4027 Add dwarf2_cu parameter.
4028 (process_queue): Update.
4029
4030 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4031
4032 * dwarf2/read.c (create_cu_from_index_list): Replace
4033 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4034 (create_cus_from_index_list): Likewise.
4035 (create_cus_from_index): Likewise.
4036 (create_signatured_type_table_from_index): Likewise.
4037 (create_cus_from_debug_names_list): Likewise.
4038 (create_cus_from_debug_names): Likewise.
4039 (dwarf2_read_gdb_index): Update.
4040 (dwarf2_read_debug_names): Update.
4041
4042 2020-05-27 Tom Tromey <tom@tromey.com>
4043 Simon Marchi <simon.marchi@efficios.com>
4044
4045 * dwarf2/read.h (struct dwarf2_per_objfile)
4046 <get_type_for_signatured_type, set_type_for_signatured_type>:
4047 New methods.
4048 <m_type_map>: New member.
4049 (struct signatured_type) <type>: Remove.
4050 * dwarf2/read.c
4051 (dwarf2_per_objfile::get_type_for_signatured_type,
4052 dwarf2_per_objfile::set_type_for_signatured_type): New.
4053 (get_signatured_type): Use new methods.
4054
4055 2020-05-27 Tom Tromey <tom@tromey.com>
4056 Simon Marchi <simon.marchi@efficios.com>
4057
4058 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4059 (struct dwarf2_per_objfile) <type_units>: New member.
4060 <get_type_unit_group_unshareable>: New method.
4061 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4062 num_symtabs, symtabs>: Remove; move to
4063 type_unit_group_unshareable.
4064 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4065 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4066 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4067
4068 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4069
4070 * dwarf2/read.h (struct dwarf2_per_cu_data):
4071 <dwarf2_per_objfile>: Remove.
4072 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4073 dwarf2_per_objfile.
4074 (create_signatured_type_table_from_index): Likewise.
4075 (create_signatured_type_table_from_debug_names): Likewise.
4076 (create_debug_type_hash_table): Likewise.
4077 (fill_in_sig_entry_from_dwo_entry): Likewise.
4078 (create_type_unit_group): Likewise.
4079 (read_comp_units_from_section): Likewise.
4080 (create_cus_hash_table): Likewise.
4081
4082 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4083
4084 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4085 dwarf2_per_cu_data::dwarf2_per_objfile.
4086 (compute_compunit_symtab_includes): Likewise.
4087 (dwarf2_cu::start_symtab): Likewise.
4088
4089 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4090
4091 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4092 parameter.
4093 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4094 (read_namespace_alias): Update.
4095 (lookup_die_type): Update.
4096 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4097 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4098 Update.
4099 (disassemble_dwarf_expression): Update.
4100
4101 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4102
4103 * dwarf2/read.h (struct dwarf2_queue_item): Add
4104 dwarf2_per_objfile parameter, assign new parameter.
4105 <per_objfile>: New field.
4106 * dwarf2/read.c (free_one_cached_comp_unit): Add
4107 dwarf2_per_objfile parameter.
4108 (queue_comp_unit): Likewise.
4109 (dw2_do_instantiate_symtab): Update.
4110 (process_psymtab_comp_unit): Update.
4111 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4112 (process_imported_unit_die): Update.
4113 (queue_and_load_dwo_tu): Update.
4114 (follow_die_offset): Update.
4115 (follow_die_sig_1): Update.
4116
4117 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4118
4119 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4120 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4121 (read_call_site_scope): Assign per_objfile.
4122 (dwarf2_per_cu_data::objfile): Remove.
4123 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4124 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4125 dwarf2_per_objfile parameter.
4126 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4127 dwarf2_per_objfile parameter.
4128 (dwarf_expr_reg_to_entry_parameter): Add output
4129 dwarf2_per_objfile parameter.
4130 (locexpr_get_frame_base): Update.
4131 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4132 <push_dwarf_reg_entry_value>: Update.
4133 <call_site_to_target_addr>: Update.
4134 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4135 parameter.
4136 (value_of_dwarf_reg_entry): Update.
4137 (rw_pieced_value): Update.
4138 (indirect_synthetic_pointer): Update.
4139 (dwarf2_evaluate_property): Update.
4140 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4141 parameter.
4142 (locexpr_read_variable): Update.
4143 (locexpr_get_symbol_read_needs): Update.
4144 (loclist_read_variable): Update.
4145
4146 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4147
4148 * dwarf2/read.h (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/read.c (dwarf2_fetch_die_loc_sect_off,
4153 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4154 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4155 parameter.
4156 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4157 sect_variable_value): Add dwarf2_per_objfile parameter.
4158 (class dwarf_evaluate_loc_desc) <dwarf_call,
4159 dwarf_variable_value>: Update.
4160 (fetch_const_value_from_synthetic_pointer): Add
4161 dwarf2_per_objfile parameter.
4162 (fetch_const_value_from_synthetic_pointer): Update.
4163 (coerced_pieced_ref): Update.
4164 (class symbol_needs_eval_context) <dwarf_call,
4165 dwarf_variable_value>: Update.
4166 (dwarf2_compile_expr_to_ax): Update.
4167
4168 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4169
4170 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4171 parameter.
4172 (dwarf2_evaluate_loc_desc_full): Update.
4173
4174 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4175
4176 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4177 parameter.
4178 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4179 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4180 dwarf2_per_objfile parameter.
4181 (decode_debug_loc_dwo_addresses): Likewise.
4182 (dwarf2_find_location_expression): Update.
4183 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4184 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4185 parameter.
4186 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4187 parameter.
4188 (locexpr_describe_location_1): Likewise.
4189 (locexpr_describe_location): Update.
4190
4191 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4192
4193 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4194 Remove.
4195 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4196 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4197 (dwarf2_compile_property_to_c): Update.
4198 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4199 use text offset from objfile.
4200 (locexpr_tracepoint_var_ref): Update.
4201 (locexpr_generate_c_location): Update.
4202 (loclist_describe_location): Update.
4203 (loclist_tracepoint_var_ref): Update.
4204 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4205 dwarf2_per_objfile parameter.
4206 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4207 use text offset from objfile.
4208 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4209
4210 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4211
4212 * dwarf2/expr.h (struct dwarf_expr_context)
4213 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4214 <offset>: Remove.
4215 <per_objfile>: New member.
4216 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4217 dwarf2_per_objfile parameter. Don't set offset, set
4218 per_objfile.
4219 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4220 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4221 a dwarf2_per_objfile object instead of an offset.
4222 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4223 constructor.
4224 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4225 to dwarf2_expr_executor constructor. Don't set offset.
4226 (dwarf2_fetch_cfa_info): Update.
4227 (struct dwarf2_frame_cache) <text_offset>: Remove.
4228 <per_objfile>: New field.
4229 (dwarf2_frame_cache): Update.
4230 (dwarf2_frame_prev_register): Update.
4231 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4232 <dwarf_evaluate_loc_desc>: Add constructor.
4233 (dwarf2_evaluate_loc_desc_full): Update.
4234 (dwarf2_locexpr_baton_eval): Update.
4235 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4236 Add constructor.
4237 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4238
4239 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4240
4241 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4242 addr_sized_int_type>: Move to dwarf2_cu.
4243 <int_type>: Move to dwarf2_per_objfile.
4244 (struct dwarf2_per_objfile) <int_type>: Move here.
4245 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4246 addr_sized_int_type>: Move here.
4247 (read_func_scope): Update.
4248 (read_array_type): Update.
4249 (read_tag_string_type): Update.
4250 (attr_to_dynamic_prop): Update.
4251 (dwarf2_per_cu_data::int_type): Rename to...
4252 (dwarf2_per_objfile::int_type): ... this.
4253 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4254 (dwarf2_cu::addr_sized_int_type): ... this.
4255 (read_subrange_type): Update.
4256 (dwarf2_per_cu_data::addr_type): Rename to...
4257 (dwarf2_cu::addr_type): ... this.
4258 (set_die_type): Update.
4259
4260 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4261
4262 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4263 data through per_cu->cu.
4264
4265 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4266
4267 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4268 dwarf2_per_cu_data parameter fo dwarf2_cu.
4269 (lookup_dwo_type_unit): Likewise.
4270 (read_cutu_die_from_dwo): Likewise.
4271 (lookup_dwo_unit): Likewise.
4272 (open_and_init_dwo_file): Likewise.
4273 (lookup_dwo_cutu): Likewise.
4274 (lookup_dwo_comp_unit): Likewise.
4275 (lookup_dwo_type_unit): Likewise.
4276 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4277 (cutu_reader::cutu_reader): Update.
4278
4279 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4280
4281 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4282 parameter.
4283 (process_full_type_unit): Likewise.
4284 (process_queue): Update.
4285
4286 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4287
4288 * dwarf2/read.c (recursively_compute_inclusions): Add
4289 dwarf2_per_objfile parameter.
4290 (compute_compunit_symtab_includes): Likewise.
4291 (process_cu_includes): Update.
4292
4293 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4294
4295 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4296 parameter.
4297 (create_type_unit_group): Update.
4298 (process_psymtab_comp_unit_reader): Update.
4299 (build_type_psymtabs_reader): Update.
4300
4301 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4302
4303 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4304 object through m_this_cu->cu.
4305
4306 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4307
4308 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4309 the info parameter.
4310 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4311
4312 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4313
4314 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4315 per_objfile parameter.
4316 (load_full_type_unit): Add per_objfile parameter.
4317 (read_signatured_type): Likewise.
4318 (load_full_comp_unit): Likewise.
4319 (load_cu): Likewise.
4320 (dw2_do_instantiate_symtab): Likewise.
4321 (dw2_get_file_names): Likewise.
4322 (dw2_map_symtabs_matching_filename): Update.
4323 (dw_expand_symtabs_matching_file_matcher): Update.
4324 (dw2_map_symbol_filenames): Update.
4325 (process_psymtab_comp_unit): Add per_objfile parameter.
4326 (build_type_psymtabs_1): Update.
4327 (process_skeletonless_type_unit): Update.
4328 (dwarf2_build_psymtabs_hard): Update.
4329 (load_partial_comp_unit): Add per_objfile parameter.
4330 (scan_partial_symbols): Update.
4331 (load_full_comp_unit): Add per_objfile parameter.
4332 (process_imported_unit_die): Update.
4333 (create_cus_hash_table): Update.
4334 (find_partial_die): Update.
4335 (dwarf2_read_addr_index): Update.
4336 (follow_die_offset): Update.
4337 (dwarf2_fetch_die_loc_sect_off): Update.
4338 (dwarf2_fetch_constant_bytes): Update.
4339 (dwarf2_fetch_die_type_sect_off): Update.
4340 (follow_die_sig_1): Update.
4341 (load_full_type_unit): Add per_objfile parameter.
4342 (read_signatured_type): Likewise.
4343
4344 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4345
4346 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4347 of objfile_name.
4348
4349 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4350
4351 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4352 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4353 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4354 field.
4355 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4356 (create_cus_from_index): Update.
4357 (dwarf2_read_gdb_index): Update.
4358 (create_cus_from_debug_names): Update.
4359 (dwarf2_read_debug_names): Update.
4360 (get_abbrev_section_for_cu): Update.
4361 (create_all_comp_units): Update.
4362 (read_attribute_value): Update.
4363 (get_debug_line_section): Update.
4364 * dwarf2/index-cache.c (index_cache::store): Update.
4365 * dwarf2/index-write.c (save_gdb_index_command): Update.
4366 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4367
4368 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4369
4370 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4371 member.
4372 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4373 dwarf2_per_cu_data::per_bfd.
4374 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4375 (create_type_unit_group): Likewise.
4376 (queue_comp_unit): Remove reference to
4377 per_cu->dwarf2_per_objfile.
4378 (maybe_queue_comp_unit): Likewise.
4379 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4380 (create_cus_hash_table): Assign new field.
4381
4382 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4383
4384 * dwarf2/read.c: Replace
4385 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4386 dwarf2_cu->per_objfile throughout.
4387
4388 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4389
4390 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4391 parameter, don't use per_cu->dwarf2_per_objfile.
4392 (dw2_instantiate_symtab): Likewise.
4393 (dw2_find_last_source_symtab): Update.
4394 (dw2_map_expand_apply): Update.
4395 (dw2_lookup_symbol): Update.
4396 (dw2_expand_symtabs_for_function): Update.
4397 (dw2_expand_all_symtabs): Update.
4398 (dw2_expand_symtabs_with_fullname): Update.
4399 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4400 don't use per_cu->dwarf2_per_objfile.
4401 (dw2_expand_marked_cus): Update.
4402 (dw2_find_pc_sect_compunit_symtab): Update.
4403 (dw2_debug_names_lookup_symbol): Update.
4404 (dw2_debug_names_expand_symtabs_for_function): Update.
4405 (dw2_debug_names_map_matching_symbols): Update.
4406 (dwarf2_psymtab::expand_psymtab): Update.
4407
4408 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4409
4410 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4411 <per_objfile>: New member.
4412 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4413 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4414 call to dwarf2_cu.
4415 (cutu_reader::cutu_reader): Update.
4416 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4417
4418 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4419
4420 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4421 struct dwarf2_per_objfile.
4422 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4423 dwarf2_per_bfd.
4424 * dwarf2/read.c (set_die_type): Update.
4425 (get_die_type_at_offset): Update.
4426
4427 2020-05-27 Tom Tromey <tom@tromey.com>
4428 Simon Marchi <simon.marchi@efficios.com>
4429
4430 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4431 method.
4432 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4433 get_symtab, set_symtab>: New methods.
4434 <m_symtabs>: New field.
4435 (struct dwarf2_psymtab): Derive from partial_symtab.
4436 <readin_p, get_compunit_symtab>: Declare methods.
4437 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4438 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4439 New methods.
4440 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4441 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4442 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4443 (dw2_symtab_iter_next, dw2_print_stats)
4444 (dw2_expand_symtabs_with_fullname)
4445 (dw2_expand_symtabs_matching_one)
4446 (dw_expand_symtabs_matching_file_matcher)
4447 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4448 (dw2_debug_names_iterator::next)
4449 (dw2_debug_names_map_matching_symbols)
4450 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4451 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4452 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4453 New methods.
4454 (get_compunit_symtab, process_full_comp_unit)
4455 (process_full_type_unit): Update.
4456 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4457
4458 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4459
4460 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4461 then introduce a new dwarf2_per_objfile type.
4462 <read_line_string>: Move to the new dwarf2_per_objfile type.
4463 <objfile>: Likewise.
4464 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4465 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4466 dwarf2_per_objfile->per_bfd.
4467 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4468 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4469 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4470 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4471 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4472 (dwarf2_per_objfile::locate_sections): Rename to...
4473 (dwarf2_per_bfd::locate_sections): ... this.
4474 (dwarf2_per_objfile::get_cutu): Rename to...
4475 (dwarf2_per_bfd::get_cutu): ... this.
4476 (dwarf2_per_objfile::get_cu): Rename to...
4477 (dwarf2_per_bfd::get_cu): ... this.
4478 (dwarf2_per_objfile::get_tu): Rename to...
4479 (dwarf2_per_bfd::get_tu): ... this.
4480 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4481 (dwarf2_per_bfd::allocate_per_cu): ... this.
4482 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4483 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4484 (get_gdb_index_contents_ftype): Change parameter from
4485 dwarf2_per_objfile to dwarf2_per_bfd.
4486 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4487 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4488
4489 2020-05-27 Tom Tromey <tom@tromey.com>
4490 Simon Marchi <simon.marchi@efficios.com>
4491
4492 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4493 (allocate_piece_closure): Set "per_objfile" member.
4494 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4495 (locexpr_describe_location, loclist_describe_location): Use new
4496 member.
4497 * dwarf2/read.c (read_call_site_scope)
4498 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4499 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4500 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4501 handle_data_member_location): Set per_objfile member.
4502 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4503 member.
4504 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4505
4506 2020-05-27 Tom Tromey <tom@tromey.com>
4507
4508 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4509 allocate_signatured_type>: Declare new methods.
4510 <m_num_psymtabs>: New member.
4511 (struct dwarf2_per_cu_data) <index>: New member.
4512 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4513 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4514 (create_cu_from_index_list): Use allocate_per_cu.
4515 (create_signatured_type_table_from_index)
4516 (create_signatured_type_table_from_debug_names)
4517 (create_debug_type_hash_table, add_type_unit)
4518 (read_comp_units_from_section): Use allocate_signatured_type.
4519
4520 2020-05-27 Tom Tromey <tom@tromey.com>
4521
4522 * psymtab.c (partial_map_expand_apply)
4523 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4524 (psym_lookup_global_symbol_language)
4525 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4526 (psym_print_stats, psym_expand_symtabs_for_function)
4527 (psym_map_symbol_filenames, psym_map_matching_symbols)
4528 (psym_expand_symtabs_matching)
4529 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4530 (maintenance_check_psymtabs): Update.
4531 * psympriv.h (struct partial_symtab) <readin_p,
4532 get_compunit_symtab>: Add objfile parameter.
4533 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4534 Likewise.
4535 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4536 get_compunit_symtab>: Likewise.
4537 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4538
4539 2020-05-27 Tom Tromey <tom@tromey.com>
4540
4541 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4542 member.
4543 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4544 (create_cu_from_index_list)
4545 (create_signatured_type_table_from_index)
4546 (create_signatured_type_table_from_debug_names)
4547 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4548 (dwarf2_create_include_psymtab)
4549 (create_debug_type_hash_table, add_type_unit)
4550 (create_type_unit_group, read_comp_units_from_section)
4551 (dwarf2_compute_name, create_cus_hash_table)
4552 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4553 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4554 obstack.
4555 (dw2_get_real_path): Likewise. Change argument to
4556 dwarf2_per_objfile.
4557
4558 2020-05-27 Luis Machado <luis.machado@linaro.org>
4559
4560 PR tdep/26000
4561 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4562 for ldrd (immediate).
4563
4564 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4565
4566 * command.h: Add comment giving the name of class_tui.
4567 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4568 create the fake command for the help for class_tui.
4569
4570 2020-05-26 Tom Tromey <tromey@adacore.com>
4571
4572 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4573 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4574 (val_atr): New function.
4575 (value_val_atr): Use it.
4576 * ada-valprint.c (print_optional_low_bound): Change low bound
4577 handling for enums.
4578 (val_print_packed_array_elements): Don't call discrete_position.
4579 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4580 discrete_position for enum types.
4581 * language.c (default_print_array_index): Change type.
4582 * language.h (struct language_defn) <la_print_array_index>: Add
4583 index_type parameter, change type of index_value.
4584 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4585 (default_print_array_index): Update.
4586 * valprint.c (maybe_print_array_index): Don't call
4587 value_from_longest. Update.
4588 (value_print_array_elements): Don't call discrete_position.
4589
4590 2020-05-26 Tom Tromey <tromey@adacore.com>
4591
4592 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4593 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4594
4595 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4596
4597 PR gdb/13519
4598 * avr-tdep.c (avr_integer_to_address): Return data or code
4599 address accordingly to the second 'type' argument of the
4600 function.
4601
4602 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4603
4604 * infcmd.c, inferior.h: (construct_inferior_arguments):
4605 Moved function from here to gdbsupport/common-inferior.{h,cc}
4606
4607 2020-05-23 Tom Tromey <tom@tromey.com>
4608
4609 Revert commit eca1f90c:
4610 * NEWS: Remove entry for completion styling.
4611 * completer.c (_rl_completion_prefix_display_length): Move
4612 declaration later.
4613 (gdb_fnprint): Revert.
4614 (gdb_display_match_list_1): Likewise.
4615 * cli/cli-style.c (completion_prefix_style)
4616 (completion_difference_style, completion_suffix_style): Remove.
4617 (_initialize_cli_style): Revert.
4618 * cli/cli-style.h (completion_prefix_style)
4619 (completion_difference_style, completion_suffix_style): Don't
4620 declare.
4621
4622 2020-05-24 Pedro Alves <palves@redhat.com>
4623
4624 * symtab.c (completion_list_add_name): Return boolean indication
4625 of whether the symbol matched.
4626 (completion_list_add_symbol): Don't try to remove C++ aliases if
4627 the symbol didn't match in the first place.
4628 * symtab.h (completion_list_add_name): Return bool.
4629
4630 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4631
4632 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4633 type::field.
4634
4635 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4636
4637 GDB 9.2 released.
4638
4639 2020-05-23 Tom Tromey <tom@tromey.com>
4640
4641 * NEWS: Add entry for completion styling.
4642 * completer.c (_rl_completion_prefix_display_length): Move
4643 declaration earlier.
4644 (gdb_fnprint): Use completion_style.
4645 (gdb_display_match_list_1): Likewise.
4646 * cli/cli-style.c (completion_prefix_style)
4647 (completion_difference_style, completion_suffix_style): New
4648 globals.
4649 (_initialize_cli_style): Register new globals.
4650 * cli/cli-style.h (completion_prefix_style)
4651 (completion_difference_style, completion_suffix_style): Declare.
4652
4653 2020-05-23 Pedro Alves <palves@redhat.com>
4654
4655 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4656 (parse_escape): Use ISDIGIT instead of isdigit.
4657 (puts_debug): Use gdb_isprint instead of isprint.
4658 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4659 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4660 ISSPACE instead of isspace.
4661 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4662 instead of isspace.
4663 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4664 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4665 instead of isxdigit and ISDIGIT instead of isdigit.
4666
4667 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4668
4669 * gdbtypes.h (struct type) <field>: New method.
4670 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4671 or type::field.
4672
4673 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4674
4675 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4676 (TYPE_FIELDS): Use type::fields. Change all call sites that
4677 modify the propery to use type::set_fields instead.
4678
4679 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4680
4681 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4682 type::num_fields instead.
4683
4684 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4685
4686 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4687 methods.
4688 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4689 that modify the number of fields to use type::set_num_fields
4690 instead.
4691
4692 2020-05-22 Tom Tromey <tromey@adacore.com>
4693
4694 * compile/compile-object-load.h (munmap_list_free): Don't
4695 declare.
4696
4697 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4698
4699 * annotate.c (annotate_source_line): Update return type, add call
4700 to update current symtab and line.
4701 * annotate.h (annotate_source_line): Update return type, and
4702 extend header comment.
4703 * source.c (info_line_command): Check annotation_level before
4704 calling annotate_source_line.
4705 * stack.c (print_frame_info): If calling annotate_source_line
4706 returns true, then don't print any other source line information.
4707
4708 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4709
4710 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4711
4712 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4713
4714 * coffread.c (patch_type): Remove NULL check before xfree.
4715 * corefile.c (set_gnutarget): Likewise.
4716 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4717 * exec.c (build_section_table): Likewise.
4718 * remote.c (remote_target::pass_signals): Likewise.
4719 * utils.c (n_spaces): Likewise.
4720 * cli/cli-script.c (document_command): Likewise.
4721 * i386-windows-tdep.c (core_process_module_section): Likewise.
4722 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4723
4724 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4725
4726 * symfile.c (reread_symbols): Clear objfile's section_offsets
4727 vector and section indices, re-compute them by calling
4728 sym_offsets.
4729
4730 2020-05-20 Tom Tromey <tromey@adacore.com>
4731
4732 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4733 (desc_one_bound, desc_index_type): Compute field name.
4734
4735 2020-05-20 Tom de Vries <tdevries@suse.de>
4736
4737 PR symtab/25833
4738 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4739
4740 2020-05-20 Alan Modra <amodra@gmail.com>
4741
4742 PR 25993
4743 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4744 bfd_set_filename.
4745 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4746 passed to bfd_set_filename.
4747 * symfile-mem.c (add_vsyscall_page): Likewise for string
4748 passed to symbol_file_add_from_memory.
4749 (symbol_file_add_from_memory): Make name param a const char* and
4750 don't strdup.
4751
4752 2020-05-20 Alan Modra <amodra@gmail.com>
4753
4754 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4755 rather than accessing bfd->filename directly.
4756 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4757 and use bfd_section_name.
4758 * dwarf2/frame.c (decode_frame_entry): Likewise.
4759 * exec.c (exec_set_section_address): Likewise.
4760 * solib-aix.c (solib_aix_bfd_open): Likewise.
4761 * stap-probe.c (get_stap_base_address): Likewise.
4762 * symfile.c (reread_symbols): Likewise.
4763
4764 2020-05-19 Tom Tromey <tromey@adacore.com>
4765
4766 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4767
4768 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4769
4770 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4771
4772 2020-05-19 Pedro Alves <palves@redhat.com>
4773
4774 * NEWS (set exec-file-mismatch): Adjust entry.
4775 * exec.c: Include "build-id.h".
4776 (validate_exec_file): Try to match build IDs instead of filenames.
4777 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4778 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4779 and pass down 'warn_if_slow'.
4780 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4781 gdb_bfd_open_closure to pass it down.
4782 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4783
4784 2020-05-19 Pedro Alves <palves@redhat.com>
4785
4786 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4787 * target.c (target_fileio_open_1): Rename to target_fileio_open
4788 and make extern. Use bool.
4789 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4790 (target_fileio_read_alloc_1): Adjust.
4791 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4792 (target_fileio_open_warn_if_slow): Delete declaration.
4793
4794 2020-05-19 Pedro Alves <palves@redhat.com>
4795
4796 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4797 Adjust all callers.
4798
4799 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4800
4801 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4802 whether disp is negative.
4803
4804 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4805
4806 * symfile.h (struct symfile_segment_data)
4807 <~symfile_segment_data>: Remove.
4808 <segment_info>: Change to std::vector.
4809 * symfile.c (default_symfile_segments): Update.
4810 * elfread.c (elf_symfile_segments): Update.
4811
4812 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4813
4814 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4815 <segments>: New.
4816 <segment_bases, segment_sizes>: Remove.
4817 * symfile.c (default_symfile_segments): Update.
4818 * elfread.c (elf_symfile_segments): Update.
4819 * remote.c (remote_target::get_offsets): Update.
4820 * solib-target.c (solib_target_relocate_section_addresses):
4821 Update.
4822
4823 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4824
4825 * symfile.h (struct symfile_segment_data): Initialize fields.
4826 <~symfile_segment_data>: Add.
4827 (symfile_segment_data_up): New.
4828 (struct sym_fns) <sym_segments>: Return a
4829 symfile_segment_data_up.
4830 (default_symfile_segments): Return a symfile_segment_data_up.
4831 (free_symfile_segment_data): Remove.
4832 (get_symfile_segment_data): Return a symfile_segment_data_up.
4833 * symfile.c (default_symfile_segments): Likewise.
4834 (get_symfile_segment_data): Likewise.
4835 (free_symfile_segment_data): Remove.
4836 (symfile_find_segment_sections): Update.
4837 * elfread.c (elf_symfile_segments): Return a
4838 symfile_segment_data_up.
4839 * remote.c (remote_target::get_offsets): Update.
4840 * solib-target.c (solib_target_relocate_section_addresses):
4841 Update.
4842 * symfile-debug.c (debug_sym_segments): Return a
4843 symfile_segment_data_up.
4844
4845 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4846
4847 PR build/25981
4848 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4849 Hardcode register numbers.
4850
4851 PR build/25981
4852 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4853 procfs_find_LDT_entry): Remove.
4854 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4855 procfs_find_LDT_entry): Remove.
4856 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4857 Remove.
4858
4859 2020-05-17 Pedro Alves <palves@redhat.com>
4860 Andrew Burgess <andrew.burgess@embecosm.com>
4861 Keno Fischer <keno@juliacomputing.com>
4862
4863 PR gdb/25741
4864 * breakpoint.c (build_target_condition_list): Update comments.
4865 (build_target_command_list): Update comments and skip matching
4866 locations.
4867 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4868 a separate function. Simplify "set breakpoint auto-hw off"
4869 handling.
4870 (insert_breakpoints): Update comment.
4871 (tracepoint_locations_match): New parameter. For breakpoints,
4872 compare location types too, if the caller wants to.
4873 (handle_automatic_hardware_breakpoints): New functions.
4874 (bp_location_is_less_than): Also sort by location type and
4875 hardware breakpoint length.
4876 (update_global_location_list): Handle "set breakpoint auto-hw on"
4877 here.
4878 (update_breakpoint_locations): Ask breakpoint_locations_match to
4879 ignore location types.
4880
4881 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4882
4883 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4884 type::name instead.
4885
4886 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4887
4888 * gdbtypes.h (struct type) <name, set_name>: New methods.
4889 (TYPE_CODE): Use type::name. Change all call sites used to set
4890 the name to use type::set_name instead.
4891
4892 2020-05-16 Tom Tromey <tom@tromey.com>
4893
4894 * top.c (quit_force): Update.
4895 * infrun.c (handle_no_resumed): Update.
4896 * top.h (all_uis): New function.
4897 (ALL_UIS): Remove.
4898
4899 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4900
4901 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4902
4903 2020-05-16 Pedro Alves <palves@redhat.com>
4904
4905 * ia64-linux-nat.c
4906 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4907 Declare method.
4908 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4909
4910 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4911
4912 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4913 (sparc64_adi_info): Likewise.
4914
4915 2020-05-15 Tom Tromey <tom@tromey.com>
4916
4917 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4918 block_objfile.
4919 (lookup_objfile_from_block): Remove.
4920 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4921 (lookup_global_symbol): Use block_objfile.
4922 * symtab.h (lookup_objfile_from_block): Don't declare.
4923 * printcmd.c (clear_dangling_display_expressions): Use
4924 block_objfile.
4925 * parse.c (operator_check_standard): Use block_objfile.
4926
4927 2020-05-15 Tom Tromey <tom@tromey.com>
4928
4929 * language.c (language_alloc_type_symbol): Set
4930 SYMBOL_SECTION.
4931 * symtab.c (initialize_objfile_symbol): Remove.
4932 (allocate_symbol): Remove.
4933 (allocate_template_symbol): Remove.
4934 * dwarf2/read.c (fixup_go_packaging): Use "new".
4935 (new_symbol): Use "new".
4936 (read_variable): Don't call initialize_objfile_symbol. Use
4937 "new".
4938 (read_func_scope): Use "new".
4939 * xcoffread.c (process_xcoff_symbol): Don't call
4940 initialize_objfile_symbol.
4941 (SYMBOL_DUP): Remove.
4942 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4943 "new".
4944 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4945 (allocate_template_symbol): Don't declare.
4946 (struct symbol): Add copy constructor. Change defaults.
4947 * jit.c (finalize_symtab): Use "new".
4948 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4949 Use "new".
4950 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4951 (common_block_end): Use "new".
4952 * mdebugread.c (parse_symbol): Use "new".
4953 (new_symbol): Likewise.
4954
4955 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4956
4957 * NEWS: Mention changes to help and apropos.
4958
4959 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4960
4961 * command.h (enum command_class): Improve comments, document
4962 that class_alias is for user-defined aliases, give the class
4963 name for each class, remove unused class_xdb.
4964 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4965 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4966 by a precise class.
4967 * infcmd.c (_initialize_infcmd): Likewise.
4968 * reverse.c (_initialize_reverse): Likewise.
4969 * stack.c (_initialize_stack): Likewise.
4970 * symfile.c (_initialize_symfile): Likewise.
4971 * tracepoint.c (_initialize_tracepoint): Likewise.
4972
4973 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4974
4975 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4976 when their aliased command is traversed.
4977 (help_cmd): Add fput_command_names_styled call to
4978 output command name and aliases when command has an alias.
4979
4980 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4981
4982 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4983 * cli/cli-decode.c (help_cmd_list): Declare as static,
4984 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4985 a command together with the command.
4986 (fput_command_name_styled, fput_command_names_styled): New functions.
4987 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4988 fput_command_name_styled.
4989 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4990 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4991
4992 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4993
4994 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4995 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4996 * command.h (cmd_show_list): Likewise.
4997 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4998 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4999
5000 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5001
5002 * unittests/command-def-selftests.c (traverse_command_structure):
5003 Verify all commands of a list have the same prefix command and
5004 that only the top cmdlist commands have a null prefix.
5005
5006 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5007
5008 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5009 as prefix, not one of its aliases.
5010 (set_cmd_prefix): Remove.
5011 (do_add_cmd): Centralize the setting of the prefix of a command, when
5012 command is defined after its full chain of prefix commands.
5013 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5014 (add_setshow_cmd_full): Likewise.
5015 (update_prefix_field_of_prefixed_commands): New function.
5016 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5017 update_prefix_field_of_prefixed_commands.
5018 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5019 addresses of remote_set_cmdlist and remote_show_cmdlist given
5020 as argument, not the address of an argument.
5021 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5022 * gdb/remote.c (_initialize_remote): Likewise.
5023
5024 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5025
5026 * cli/cli-cmds.c (alias_command): Check for an existing alias
5027 using lookup_cmd_composition, as valid_command_p is too strict
5028 and forbids aliases that are the prefix of an existing alias
5029 or command.
5030 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5031 command is properly recognised as a valid command.
5032
5033 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5034
5035 * unittests/help-doc-selftests.c: Rename to
5036 unittests/command-def-selftests.c
5037 * unittests/command-def-selftests.c (help_doc_tests): Update some
5038 comments.
5039 (command_structure_tests, traverse_command_structure): New namespace
5040 and function.
5041 (command_structure_invariants_tests): New function.
5042 (_initialize_command_def_selftests) Renamed from
5043 _initialize_help_doc_selftests, register command_structure_invariants
5044 selftest.
5045
5046 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5047
5048 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5049 an alias of 'show'.
5050
5051 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5052
5053 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5054 ada_is_fixed_point_type. Update all callers.
5055 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5056 all callers.
5057 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5058 Update all callers.
5059 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5060 print_fixed_point_type. Update all callers.
5061 * ada-valprint.c (ada_value_print_num): Replace call to
5062 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5063
5064 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5065
5066 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5067 processors.
5068 (cpu_supports_bts): Add CV_AMD case.
5069
5070 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5071 Simon Marchi <simon.marchi@efficios.com>
5072
5073 * infrun.c (stop_all_threads): Collect multiple wait events at
5074 each pass.
5075
5076 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5077
5078 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5079 type::code instead.
5080
5081 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5082
5083 * gdbtypes.h (struct type) <code, set_code>: New methods.
5084 (TYPE_CODE): Use type::code. Change all call sites used to set
5085 the code to use type::set_code instead.
5086
5087 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5088 Tom de Vries <tdevries@suse.de>
5089 Pedro Alves <palves@redhat.com>
5090
5091 PR threads/25478
5092 * infrun.c (stop_all_threads): Do NOT ignore
5093 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5094 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5095 received.
5096 (handle_no_resumed): Remove code handling a live inferior with no
5097 threads.
5098 * remote.c (has_single_non_exited_thread): New.
5099 (remote_target::update_thread_list): Do not delete a thread if is
5100 the last thread of the process.
5101 * thread.c (thread_select): Call delete_exited_threads instead of
5102 prune_threads.
5103
5104 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5105
5106 * infrun.c (stop_all_threads): Enable/disable thread events of all
5107 targets. Move a debug message denoting the end of the function
5108 into the SCOPED_EXIT block.
5109
5110 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5111
5112 * process-stratum-target.h: Include <set>.
5113 (all_non_exited_process_targets, switch_to_target_no_thread): New
5114 function declarations.
5115 * process-stratum-target.c (all_non_exited_process_targets)
5116 (switch_to_target_no_thread): New function implementations.
5117
5118 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5119
5120 * infrun.c (handle_inferior_event): Extract out a piece of code
5121 into...
5122 (mark_non_executing_threads): ...this new function.
5123
5124 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5125
5126 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5127 use.
5128
5129 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5130
5131 * regcache.c (regcache_read_pc_protected): New function
5132 implementation that returns 0 if the PC cannot read via
5133 'regcache_read_pc'.
5134 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5135 instead of 'regcache_read_pc'.
5136 (keep_going_pass_signal): Ditto.
5137
5138 2020-05-13 Tom Tromey <tromey@adacore.com>
5139
5140 * ada-lang.c (align_value): Remove.
5141 (ada_template_to_fixed_record_type_1): Use align_up.
5142
5143 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5144
5145 * async-event.c: Update the copyright year.
5146 * async-event.h: Update the copyright year.
5147
5148 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5149
5150 * objfiles.h (is_addr_in_objfile,
5151 shared_objfile_contains_address_p): Return bool.
5152 * objfile.c (is_addr_in_objfile,
5153 shared_objfile_contains_address_p): Return bool.
5154
5155 2020-05-11 Tom Tromey <tromey@adacore.com>
5156
5157 * cli/cli-cmds.c (info_command): Restore.
5158 (_initialize_cli_cmds): Use add_prefix_command for "info".
5159 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5160
5161 2020-05-11 Tom Tromey <tromey@adacore.com>
5162
5163 * ada-lang.c (ada_value_primitive_field): Now public.
5164 * ada-lang.h (ada_value_primitive_field): Declare.
5165 * ada-valprint.c (print_field_values): Use
5166 ada_value_primitive_field for wrapper fields.
5167
5168 2020-05-11 Tom de Vries <tdevries@suse.de>
5169
5170 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5171 MODULE_DOMAIN.
5172
5173 2020-05-11 Tom de Vries <tdevries@suse.de>
5174
5175 PR symtab/25941
5176 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5177 with length 0, if not gdb-produced.
5178 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5179
5180 2020-05-09 Tom de Vries <tdevries@suse.de>
5181
5182 PR gdb/25955
5183 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5184 calculation.
5185
5186 2020-05-09 Tom Tromey <tom@tromey.com>
5187
5188 * top.c (server_command): Now bool.
5189 * top.h (server_command): Now bool.
5190
5191 2020-05-08 Tom Tromey <tromey@adacore.com>
5192
5193 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5194 already being processed.
5195
5196 2020-05-08 Tom Tromey <tom@tromey.com>
5197
5198 * printcmd.c (struct display) <next>: Remove.
5199 <display>: New constructor.
5200 <exp_string>: Now a std::string.
5201 <enabled_p>: Now a bool.
5202 (display_number): Move definition earlier.
5203 (displays): Rename from display_chain. Now a std::vector.
5204 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5205 (display_command): Update.
5206 (do_one_display, disable_display)
5207 (enable_disable_display_command, do_enable_disable_display):
5208 Update.
5209 (free_display): Remove.
5210 (clear_displays): Rewrite.
5211 (delete_display): Update.
5212 (map_display_numbers): Use function_view. Remove "data"
5213 parameter. Update.
5214 (do_delete_display): Remove.
5215 (undisplay_command): Update.
5216 (do_one_display, do_displays, disable_display)
5217 (info_display_command): Update.
5218 (do_enable_disable_display): Remove.
5219 (enable_disable_display_command)
5220 (clear_dangling_display_expressions): Update.
5221
5222 2020-05-08 Tom Tromey <tom@tromey.com>
5223
5224 * symtab.c (set_symbol_cache_size)
5225 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5226 (maintenance_print_symbol_cache_statistics): Update.
5227 * symmisc.c (print_symbol_bcache_statistics)
5228 (print_objfile_statistics, maintenance_print_objfiles)
5229 (maintenance_info_symtabs, maintenance_check_symtabs)
5230 (maintenance_expand_symtabs, maintenance_info_line_tables):
5231 Update.
5232 * symfile-debug.c (set_debug_symfile): Update.
5233 * source.c (forget_cached_source_info): Update.
5234 * python/python.c (gdbpy_progspaces): Update.
5235 * psymtab.c (maintenance_info_psymtabs): Update.
5236 * probe.c (parse_probes): Update.
5237 * linespec.c (iterate_over_all_matching_symtabs)
5238 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5239 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5240 * exec.c (exec_target::close): Update.
5241 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5242 * breakpoint.c (print_one_breakpoint_location)
5243 (create_longjmp_master_breakpoint)
5244 (create_std_terminate_master_breakpoint): Update.
5245 * progspace.c (program_spaces): Now a std::vector.
5246 (maybe_new_address_space): Update.
5247 (add_program_space): Remove.
5248 (program_space::program_space): Update.
5249 (remove_program_space): Update.
5250 (number_of_program_spaces): Remove.
5251 (print_program_space, update_address_spaces): Update.
5252 * progspace.h (program_spaces): Change type.
5253 (ALL_PSPACES): Remove.
5254 (number_of_program_spaces): Don't declare.
5255 (struct program_space) <next>: Remove.
5256
5257 2020-05-08 Tom Tromey <tom@tromey.com>
5258
5259 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5260 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5261 (enable_break): Update.
5262 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5263 (frv_fdpic_find_canonical_descriptor): Update.
5264 (frv_fetch_objfile_link_map): Update.
5265 * progspace.c (program_space::free_all_objfiles): Update.
5266 (program_space::solibs): New method.
5267 * progspace.h (struct program_space) <solibs>: New method.
5268 * solist.h (master_so_list): Don't declare.
5269 (ALL_SO_LIBS): Remove.
5270 * solib.h (so_list_head): Remove.
5271 (update_solib_list): Update comment.
5272 * solib.c (master_so_list): Remove.
5273 (solib_used, update_solib_list, solib_add)
5274 (info_sharedlibrary_command, clear_solib)
5275 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5276
5277 2020-05-08 Tom Tromey <tom@tromey.com>
5278
5279 * extension.c (extension_languages): Now a std::array.
5280 (ALL_EXTENSION_LANGUAGES): Remove.
5281 (get_ext_lang_defn, get_ext_lang_of_file)
5282 (eval_ext_lang_from_control_command): Update.
5283 (finish_ext_lang_initialization)
5284 (auto_load_ext_lang_scripts_for_objfile)
5285 (ext_lang_type_printers::ext_lang_type_printers)
5286 (apply_ext_lang_type_printers)
5287 (ext_lang_type_printers::~ext_lang_type_printers)
5288 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5289 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5290 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5291 (get_matching_xmethod_workers, ext_lang_colorize)
5292 (ext_lang_before_prompt): Update.
5293 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5294
5295 2020-05-08 Tom Tromey <tom@tromey.com>
5296
5297 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5298 overload.
5299 <swap_string, m_string>: Remove.
5300 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5301 Update.
5302 * stabsread.c (define_symbol, read_type): Update.
5303 * linespec.c (find_linespec_symbols): Update.
5304 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5305 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5306 * dbxread.c (read_dbx_symtab): Update.
5307 * cp-support.h (cp_canonicalize_string_full)
5308 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5309 Return unique_xmalloc_ptr.
5310 * cp-support.c (inspect_type): Update.
5311 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5312 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5313 Likewise.
5314 * c-typeprint.c (print_name_maybe_canonical): Update.
5315 * break-catch-throw.c (check_status_exception_catchpoint):
5316 Update.
5317
5318 2020-05-08 Tom de Vries <tdevries@suse.de>
5319
5320 * infrun.c (follow_fork): Copy current_line and current_symtab to
5321 child thread.
5322
5323 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5324
5325 * async-event.c (struct async_signal_handler, struct
5326 async_event_handler): Reformat, remove typedef.
5327
5328 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5329
5330 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5331 access thistype->main_type->dyn_prop_list directly.
5332
5333 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5334
5335 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5336 (remove_dyn_prop): Remove. Update all users to use
5337 type::remove_dyn_prop.
5338 * gdbtypes.c (remove_dyn_prop): Rename to...
5339 (type::remove_dyn_prop): ... this.
5340
5341 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5342
5343 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5344 (add_dyn_prop): Remove. Update all users to use
5345 type::add_dyn_prop.
5346 * gdbtypes.c (add_dyn_prop): Rename to...
5347 (type::add_dyn_prop): ... this.
5348
5349 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5350
5351 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5352 (get_dyn_prop): Remove. Update all users to use
5353 type::dyn_prop.
5354 * gdbtypes.c (get_dyn_prop): Rename to...
5355 (type::dyn_prop): ... this.
5356
5357 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5358
5359 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5360
5361 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5362
5363 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5364 instruction, skip it if it's there.
5365
5366 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5367
5368 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5369
5370 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5371
5372 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5373 * gdbtypes.c (recursive_dump_type): Remove use of
5374 TYPE_INCOMPLETE.
5375
5376 2020-05-03 Tom Tromey <tom@tromey.com>
5377
5378 * breakpoint.c (catch_command, tcatch_command): Remove.
5379 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5380 add_show_prefix_cmd.
5381 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5382 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5383 Remove.
5384 (add_internal_problem_command): Use add_basic_prefix_cmd,
5385 add_show_prefix_cmd.
5386 * mips-tdep.c (set_mipsfpu_command): Remove.
5387 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5388 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5389 (_initialize_index_cache): Use add_basic_prefix_cmd.
5390 * memattr.c (dummy_cmd): Remove.
5391 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5392 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5393 (_initialize_tui_win): Use add_basic_prefix_cmd,
5394 add_show_prefix_cmd.
5395 * cli/cli-logging.c (set_logging_command): Remove.
5396 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5397 add_show_prefix_cmd.
5398 (show_logging_command): Remove.
5399 * target.c (target_command): Remove.
5400 (add_target): Use add_basic_prefix_cmd.
5401
5402 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5403
5404 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5405
5406 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5407
5408 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5409 info_command.
5410
5411 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5412
5413 * nbsd-nat.c (nbsd_enable_proc_events)
5414 (nbsd_nat_target::post_startup_inferior): Add.
5415 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5416 (nbsd_nat_target::update_thread_list): Rewrite.
5417 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5418 "PTRACE_LWP_CREATE".
5419 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5420
5421 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5422
5423 * stack.c (_initialize_stack): Remove duplicated creation
5424 of "frame" command and "f" alias.
5425
5426 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5427
5428 PR gdb/18706
5429 * gdbtypes.c (check_typedef): Calculate size of array of
5430 stubbed type.
5431
5432 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5433
5434 PR gdb/15559
5435 * i386-tdep.c (i386_push_dummy_call): Call
5436 i386_thiscall_push_dummy_call.
5437 (i386_thiscall_push_dummy_call): New function.
5438 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5439 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5440 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5441
5442 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5443
5444 * gdbarch.sh (do_read): Add shellcheck disable directive for
5445 warning SC2162.
5446
5447 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5448
5449 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5450 "referenced but not assigned" warning.
5451
5452 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5453
5454 * gdbarch.sh: Remove code that sets fallbackdefault.
5455
5456 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5457
5458 * gdbarch.sh: Use shell operators && and || instead of
5459 -a and -o.
5460
5461 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5462
5463 * gdbarch.sh: Use $(...) instead of `...`.
5464
5465 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5466
5467 * gdbarch.sh: Use double quotes around variables.
5468
5469 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5470
5471 * gdbarch.sh: Use %s with printf, instead of variables in the
5472 format string.
5473
5474 2020-04-29 Tom Tromey <tromey@adacore.com>
5475
5476 PR ada/25875:
5477 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5478 type fields here.
5479 (read_enumeration_type): Call
5480 update_enumeration_type_from_children later. Update comments.
5481 (process_enumeration_scope): Don't create type fields.
5482
5483 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5484
5485 * nbsd-tdep.c: Include "xml-syscall.h".
5486 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5487
5488 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5489
5490 * nbsd-nat.c: Include "sys/wait.h".
5491 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5492 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5493 (nbsd_nat_target::remove_exec_catchpoint)
5494 (nbsd_nat_target::set_syscall_catchpoint): Add.
5495 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5496 (nbsd_nat_target::insert_exec_catchpoint)
5497 (nbsd_nat_target::remove_exec_catchpoint)
5498 (nbsd_nat_target::set_syscall_catchpoint): Add.
5499 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5500 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5501 `nbsd_get_syscall_number'.
5502
5503 2020-04-29 Tom Tromey <tom@tromey.com>
5504
5505 * stack.c (print_block_frame_labels): Remove.
5506
5507 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5508
5509 PR gdb/17320
5510 * ada-valprint.c (val_print_packed_array_elements): Move array
5511 end bracket to new line.
5512 (ada_val_print_string): Remove extra spaces before first array
5513 element.
5514 * c-valprint.c (c_value_print_array): Likewise.
5515 * m2-valprint.c (m2_print_array_contents): Likewise.
5516 (m2_value_print_inner): Likewise.
5517 * p-valprint.c (pascal_value_print_inner): Likewise.
5518 * valprint.c (generic_val_print_array): Likewise.
5519 (value_print_array_elements): Move first array element and array
5520 end bracket to new line.
5521
5522 2020-04-29 Tom de Vries <tdevries@suse.de>
5523
5524 PR symtab/25889
5525 * linespec.c (find_method): Fix ix calculation.
5526
5527 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5528
5529 * syscalls/update-netbsd.sh: New file.
5530 * syscalls/netbsd.xml: Regenerate.
5531 * data-directory/Makefile.in: Register `netbsd.xml' in
5532 `SYSCALLS_FILES'.
5533
5534 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5535
5536 * syscalls/update-freebsd.sh: Add double quotes.
5537
5538 2020-04-28 Tom Tromey <tom@tromey.com>
5539
5540 * NEWS: Update.
5541 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5542 (cmdpy_init): Allow class_tui.
5543
5544 2020-04-28 Mark Williams <mark@myosotissp.com>
5545
5546 PR gdb/24480
5547 * dwarf2read.c: Add missing assingments to list_in_scope when
5548 start_symtab was already called.
5549
5550 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5551
5552 PR gdb/25881
5553 * dwarf2/read.c (offset_map_type): Use
5554 gdb:hash_enum<sect_offset> as hash function.
5555
5556 2020-04-28 Tom de Vries <tdevries@suse.de>
5557
5558 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5559 with DW_AT_signature.
5560
5561 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5562
5563 * configure.ac: Remove check for fs_base/gs_base in
5564 user_regs_struct.
5565 * configure: Re-generate.
5566 * config.in: Re-generate.
5567 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5568 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5569 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5570
5571 2020-04-27 Luis Machado <luis.machado@linaro.org>
5572
5573 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5574 problematic inline frame unwinding situation.
5575 * frame.c (frame_id_computed_p): New function.
5576 * frame.h (frame_id_computed_p): New prototype.
5577
5578 2020-04-26 Tom Tromey <tom@tromey.com>
5579
5580 * command.h (enum command_class) <class_pseudo>: Remove.
5581
5582 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5583
5584 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5585 and whitespace.
5586
5587 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5588
5589 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5590 `PT_GET_PROCESS_STATE' block.
5591
5592 2020-04-24 Tom Tromey <tom@tromey.com>
5593
5594 * symtab.h (symbol_get_demangled_name): Don't declare.
5595 * symtab.c (symbol_get_demangled_name): Remove.
5596 (general_symbol_info::natural_name)
5597 (general_symbol_info::demangled_name): Update.
5598
5599 2020-04-24 Tom Tromey <tom@tromey.com>
5600
5601 PR rust/25025:
5602 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5603
5604 2020-04-24 Tom Tromey <tom@tromey.com>
5605
5606 PR symtab/12707:
5607 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5608 exists.
5609 (new_symbol): Likewise.
5610 * compile/compile-object-load.c (get_out_value_type): Use
5611 symbol_matches_search_name.
5612
5613 2020-04-24 Tom Tromey <tom@tromey.com>
5614
5615 * dwarf2/read.c (add_partial_symbol): Do not call
5616 compute_and_set_names.
5617
5618 2020-04-24 Tom Tromey <tom@tromey.com>
5619
5620 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5621 overload.
5622
5623 2020-04-24 Tom Tromey <tom@tromey.com>
5624
5625 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5626 (add_psymbol_to_list): New overload. Make old overload call new
5627 one.
5628 * psympriv.h (add_psymbol_to_list): New overload.
5629
5630 2020-04-24 Tom Tromey <tom@tromey.com>
5631
5632 * dwarf2/read.c (partial_die_info::read) <case
5633 DW_AT_linkage_name>: Use value_as_string.
5634 (dwarf2_string_attr): Use value_as_string.
5635 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5636 method.
5637 * dwarf2/attribute.c (attribute::value_as_string): New method.
5638
5639 2020-04-24 Tom Tromey <tom@tromey.com>
5640
5641 * symtab.c (general_symbol_info::natural_name)
5642 (general_symbol_info::demangled_name): Check for language_rust.
5643
5644 2020-04-24 Tom Tromey <tom@tromey.com>
5645
5646 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5647 (dwarf2_physname): ... from here.
5648 (partial_die_info::read): Add Rust "{" hack.
5649
5650 2020-04-24 Tom Tromey <tom@tromey.com>
5651
5652 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5653 method.
5654 (symbol_set_demangled_name): Don't declare.
5655 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5656 symbol_set_demangled_name.
5657 (general_symbol_info::set_language)
5658 (general_symbol_info::compute_and_set_names): Update.
5659 * minsyms.c (minimal_symbol_reader::install): Update.
5660 * dwarf2/read.c (new_symbol): Update.
5661
5662 2020-04-24 Tom Tromey <tromey@adacore.com>
5663
5664 PR python/23662:
5665 * python/py-type.c (convert_field): Handle
5666 FIELD_LOC_KIND_DWARF_BLOCK.
5667 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5668 (typy_get_dynamic): Nw function.
5669 (type_object_getset): Add "dynamic".
5670 * NEWS: Add entry.
5671
5672 2020-04-24 Tom Tromey <tromey@adacore.com>
5673
5674 * ada-typeprint.c (print_choices, print_variant_part)
5675 (print_record_field_types_dynamic): New functions.
5676 (print_record_field_types): Use print_record_field_types_dynamic.
5677
5678 2020-04-24 Tom Tromey <tromey@adacore.com>
5679
5680 * dwarf2/read.c (handle_data_member_location): New overload.
5681 (dwarf2_add_field): Use it.
5682 (decode_locdesc): Add "computed" parameter. Update comment.
5683 * gdbtypes.c (is_dynamic_type_internal): Also look for
5684 FIELD_LOC_KIND_DWARF_BLOCK.
5685 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5686 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5687 virtual base classes.
5688 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5689 FIELD_LOC_KIND_DWARF_BLOCK.
5690
5691 2020-04-24 Tom Tromey <tromey@adacore.com>
5692
5693 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5694 * gdbtypes.c (is_dynamic_type_internal): Check
5695 TYPE_HAS_DYNAMIC_LENGTH.
5696 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5697 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5698 New macros.
5699 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5700 constant.
5701
5702 2020-04-24 Tom Tromey <tromey@adacore.com>
5703
5704 * dwarf2/read.c (struct variant_field): Rewrite.
5705 (struct variant_part_builder): New.
5706 (struct nextfield): Remove "variant" field. Add "offset".
5707 (struct field_info): Add "current_variant_part" and
5708 "variant_parts".
5709 (alloc_discriminant_info): Remove.
5710 (alloc_rust_variant): New function.
5711 (quirk_rust_enum): Update.
5712 (dwarf2_add_field): Set "offset" member. Don't handle
5713 DW_TAG_variant_part.
5714 (offset_map_type): New typedef.
5715 (convert_variant_range, create_one_variant)
5716 (create_one_variant_part, create_variant_parts)
5717 (add_variant_property): New functions.
5718 (dwarf2_attach_fields_to_type): Call add_variant_property.
5719 (read_structure_type): Don't handle DW_TAG_variant_part.
5720 (handle_variant_part, handle_variant): New functions.
5721 (handle_struct_member_die): Use them.
5722 (process_structure_scope): Don't handle variant parts.
5723 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5724 (struct discriminant_info): Remove.
5725 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5726 (struct main_type) <flag_discriminated_union>: Remove.
5727 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5728 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5729 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5730 Update.
5731 * valops.c (value_union_variant): Remove.
5732 * value.h (value_union_variant): Don't declare.
5733
5734 2020-04-24 Tom Tromey <tromey@adacore.com>
5735
5736 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5737 (ada_value_primitive_packed_val): Update.
5738 * ada-valprint.c (ada_value_print_1): Update.
5739 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5740 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5741 just an address. Use evaluate_for_locexpr_baton.
5742 (dwarf2_evaluate_property): Update.
5743 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5744 array_view.
5745 * findvar.c (default_read_var_value): Update.
5746 * gdbtypes.c (compute_variant_fields_inner)
5747 (resolve_dynamic_type_internal): Update.
5748 (resolve_dynamic_type): Change type of valaddr parameter.
5749 * gdbtypes.h (resolve_dynamic_type): Update.
5750 * valarith.c (value_subscripted_rvalue): Update.
5751 * value.c (value_from_contents_and_address): Update.
5752
5753 2020-04-24 Tom Tromey <tromey@adacore.com>
5754
5755 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5756 "push_initial_value" parameter.
5757 (dwarf2_evaluate_property): Likewise.
5758 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5759
5760 2020-04-24 Tom Tromey <tromey@adacore.com>
5761
5762 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5763 (variant::matches, compute_variant_fields_recurse)
5764 (compute_variant_fields_inner, compute_variant_fields): New
5765 functions.
5766 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5767 Use resolved_type after type is made.
5768 (operator==): Add new cases.
5769 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5770 (struct discriminant_range, struct variant, struct variant_part):
5771 New.
5772 (union dynamic_prop_data) <variant_parts, original_type>: New
5773 members.
5774 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5775 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5776 constants.
5777 * value.c (unpack_bits_as_long): Now public.
5778 * value.h (unpack_bits_as_long): Declare.
5779
5780 2020-04-24 Tom Tromey <tromey@adacore.com>
5781
5782 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5783 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5784
5785 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5786
5787 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5788
5789 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5790
5791 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5792 (remove_fork_catchpoint, post_startup_inferior)
5793 (post_attach): Move...
5794 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5795 (remove_fork_catchpoint, post_startup_inferior)
5796 (post_attach): ...here.
5797 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5798 (remove_fork_catchpoint, post_startup_inferior)
5799 (post_attach): Move...
5800 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5801 (remove_fork_catchpoint, post_startup_inferior)
5802 (post_attach): ...here.
5803
5804 2020-04-24 Tom Tromey <tromey@adacore.com>
5805
5806 * nat/windows-nat.h (struct windows_thread_info)
5807 <pc_adjusted>: New member.
5808 * windows-nat.c (windows_fetch_one_register): Check
5809 pc_adjusted.
5810 (windows_nat_target::get_windows_debug_event)
5811 (windows_nat_target::wait): Set pc_adjusted.
5812
5813 2020-04-24 Tom de Vries <tdevries@suse.de>
5814
5815 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5816 Run gdb-add-index inside temp dir.
5817
5818 2020-04-23 Tom Tromey <tromey@adacore.com>
5819
5820 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5821 in loop.
5822
5823 2020-04-23 Luis Machado <luis.machado@linaro.org>
5824
5825 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5826 get_frame_register instead of gdbarch_unwind_pc.
5827
5828 2020-04-23 Tom de Vries <tdevries@suse.de>
5829
5830 * symtab.c (lookup_global_symbol): Prefer def over decl.
5831
5832 2020-04-23 Tom de Vries <tdevries@suse.de>
5833
5834 PR symtab/25807
5835 * block.c (best_symbol, better_symbol): Promote to external.
5836 * block.h (best_symbol, better_symbol): Declare.
5837 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5838 decl.
5839
5840 2020-04-23 Tom Tromey <tromey@adacore.com>
5841
5842 PR ada/25837:
5843 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5844 "const char *", not a "const std::string &".
5845 <name_and_matcher::operator==>: Update.
5846 * unittests/lookup_name_info-selftests.c: Change type of
5847 "result".
5848
5849 2020-04-23 Tom Tromey <tom@tromey.com>
5850
5851 * inferior.h (iterate_over_inferiors): Don't declare.
5852 * inferior.c (iterate_over_inferiors): Remove.
5853 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5854 Remove.
5855 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5856 use iterate_over_inferiors.
5857 (darwin_resume_inferior_it)
5858 (struct resume_inferior_threads_param)
5859 (darwin_resume_inferior_threads_it): Remove.
5860 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5861
5862 2020-04-23 Tom de Vries <tdevries@suse.de>
5863
5864 * blockframe.c (find_pc_partial_function): Use
5865 find_pc_sect_compunit_symtab rather than
5866 objfile->sf->qf->find_pc_sect_compunit_symtab.
5867
5868 2020-04-22 Tom de Vries <tdevries@suse.de>
5869
5870 PR symtab/25764
5871 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5872 in psymtabs.
5873
5874 2020-04-22 Tom de Vries <tdevries@suse.de>
5875
5876 PR symtab/25801
5877 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5878 symtabs.
5879
5880 2020-04-22 Tom de Vries <tdevries@suse.de>
5881
5882 PR symtab/25700
5883 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5884 CU if already created.
5885
5886 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5887
5888 * infrun.c (displaced_step_fixup): Switch to the event_thread
5889 before calling displaced_step_restore, not after.
5890
5891 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5892
5893 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5894 its inferior is not recorded by us.
5895 (record_btrace_target_open): Replace call to
5896 all_non_exited_threads () with call to current_inferior
5897 ()->non_exited_threads ().
5898 (record_btrace_target::stop_recording): Likewise.
5899 (record_btrace_target::close): Likewise.
5900 (record_btrace_target::wait): Likewise.
5901 (record_btrace_target::record_stop_replaying): Likewise.
5902
5903 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5904
5905 * btrace.c (btrace_enable): Throw an error on double enables and
5906 when enabling recording fails.
5907 (btrace_disable): Throw an error if the thread is not recorded.
5908
5909 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5910
5911 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5912 request if we do not have a thread_info.
5913
5914 2020-04-21 Tom de Vries <tdevries@suse.de>
5915
5916 PR gdb/25471
5917 * thread.c
5918 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5919 exception in get_frame_id.
5920
5921 2020-04-20 Tom Tromey <tromey@adacore.com>
5922
5923 * python/python.c (struct gdbpy_event): Mark move constructor as
5924 noexcept.
5925 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5926 constructor as noexcept.
5927 * completer.h (struct completion_result): Mark move constructor as
5928 noexcept.
5929 * completer.c (completion_result::completion_result): Use
5930 initialization style. Don't call reset_match_list.
5931
5932 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5933
5934 * MAINTAINERS (Write After Approval): Add myself.
5935
5936 2020-04-18 Tom Tromey <tom@tromey.com>
5937
5938 * windows-tdep.c (init_w32_command_list)
5939 (w32_prefix_command_valid): Restore.
5940 (_initialize_windows_tdep): Call init_w32_command_list.
5941
5942 2020-04-18 Tom Tromey <tom@tromey.com>
5943
5944 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5945 * value.c (value_fn_field): Update.
5946 * valops.c (find_function_in_inferior)
5947 (value_allocate_space_in_inferior): Update.
5948 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5949 Update.
5950 * tui/tui-source.c (tui_source_window::set_contents): Update.
5951 * symtab.c (lookup_global_or_static_symbol)
5952 (find_function_start_sal_1, skip_prologue_sal)
5953 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5954 * symmisc.c (dump_msymbols, dump_symtab_1)
5955 (maintenance_print_one_line_table): Update.
5956 * symfile.c (init_entry_point_info, section_is_mapped)
5957 (list_overlays_command, simple_read_overlay_table)
5958 (simple_overlay_update_1): Update.
5959 * stap-probe.c (handle_stap_probe): Update.
5960 * stabsread.c (dbx_init_float_type, define_symbol)
5961 (read_one_struct_field, read_enum_type, read_range_type): Update.
5962 * source.c (info_line_command): Update.
5963 * python/python.c (gdbpy_source_objfile_script)
5964 (gdbpy_execute_objfile_script): Update.
5965 * python/py-type.c (save_objfile_types): Update.
5966 * python/py-objfile.c (py_free_objfile): Update.
5967 * python/py-inferior.c (python_new_objfile): Update.
5968 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5969 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5970 (maintenance_check_psymtabs): Update.
5971 * printcmd.c (info_address_command): Update.
5972 * objfiles.h (struct objfile) <arch>: New method, from
5973 get_objfile_arch.
5974 (get_objfile_arch): Don't declare.
5975 * objfiles.c (get_objfile_arch): Remove.
5976 (filter_overlapping_sections): Update.
5977 * minsyms.c (msymbol_is_function): Update.
5978 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5979 (output_nondebug_symbol): Update.
5980 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5981 (mdebug_expand_psymtab): Update.
5982 * machoread.c (macho_add_oso_symfile): Update.
5983 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5984 Update.
5985 * linux-fork.c (checkpoint_command): Update.
5986 * linespec.c (convert_linespec_to_sals): Update.
5987 * jit.c (finalize_symtab): Update.
5988 * infrun.c (insert_exception_resume_from_probe): Update.
5989 * ia64-tdep.c (ia64_find_unwind_table): Update.
5990 * hppa-tdep.c (internalize_unwinds): Update.
5991 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5992 Update.
5993 * gcore.c (call_target_sbrk): Update.
5994 * elfread.c (record_minimal_symbol, elf_symtab_read)
5995 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5996 (elf_gnu_ifunc_resolve_by_got): Update.
5997 * dwarf2/read.c (create_addrmap_from_index)
5998 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5999 (read_debug_names_from_section)
6000 (process_psymtab_comp_unit_reader, add_partial_symbol)
6001 (add_partial_subprogram, process_full_comp_unit)
6002 (read_file_scope, read_func_scope, read_lexical_block_scope)
6003 (read_call_site_scope, dwarf2_ranges_read)
6004 (dwarf2_record_block_ranges, dwarf2_add_field)
6005 (mark_common_block_symbol_computed, read_tag_pointer_type)
6006 (read_tag_string_type, dwarf2_init_float_type)
6007 (dwarf2_init_complex_target_type, read_base_type)
6008 (partial_die_info::read, partial_die_info::read)
6009 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6010 (dwarf2_fetch_die_loc_sect_off): Update.
6011 * dwarf2/loc.c (dwarf2_find_location_expression)
6012 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6013 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6014 (dwarf2_loc_desc_get_symbol_read_needs)
6015 (locexpr_describe_location_piece, locexpr_describe_location_1)
6016 (loclist_describe_location): Update.
6017 * dwarf2/index-write.c (write_debug_names): Update.
6018 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6019 * dtrace-probe.c (dtrace_process_dof): Update.
6020 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6021 (process_one_symbol): Update.
6022 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6023 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6024 (coff_read_enum_type): Update.
6025 * cli/cli-cmds.c (edit_command, list_command): Update.
6026 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6027 * breakpoint.c (create_overlay_event_breakpoint)
6028 (create_longjmp_master_breakpoint)
6029 (create_std_terminate_master_breakpoint)
6030 (create_exception_master_breakpoint, get_sal_arch): Update.
6031 * block.c (block_gdbarch): Update.
6032 * annotate.c (annotate_source_line): Update.
6033
6034 2020-04-17 Tom Tromey <tromey@adacore.com>
6035
6036 * auto-load.c (show_auto_load_cmd): Remove.
6037 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6038 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6039 (maintenance_print_arc_command): Remove.
6040 * tui/tui-win.c (tui_command): Remove.
6041 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6042 * tui/tui-layout.c (tui_layout_command): Remove.
6043 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6044 * python/python.c (user_set_python, user_show_python): Remove.
6045 (_initialize_python): Use add_basic_prefix_cmd,
6046 add_show_prefix_cmd.
6047 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6048 (install_gdb_commands): Use add_basic_prefix_cmd,
6049 add_show_prefix_cmd.
6050 (info_guile_command): Remove.
6051 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6052 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6053 add_show_prefix_cmd.
6054 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6055 Remove do_set and do_show parameters.
6056 * cli/cli-style.c (set_style, show_style): Remove.
6057 (_initialize_cli_style): Use add_basic_prefix_cmd,
6058 add_show_prefix_cmd.
6059 (cli_style_option::add_setshow_commands): Remove do_set and
6060 do_show parameters.
6061 (cli_style_option::add_setshow_commands): Use
6062 add_basic_prefix_cmd, add_show_prefix_cmd.
6063 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6064 (set_style_name): Remove.
6065 * cli/cli-dump.c (dump_command, append_command): Remove.
6066 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6067 (tekhex_dump_command, binary_dump_command)
6068 (binary_append_command): Remove.
6069 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6070 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6071 (init_w32_command_list): Remove; move into ...
6072 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6073 * valprint.c (set_print, show_print, set_print_raw)
6074 (show_print_raw): Remove.
6075 (_initialize_valprint): Use add_basic_prefix_cmd,
6076 add_show_prefix_cmd.
6077 * typeprint.c (set_print_type, show_print_type): Remove.
6078 (_initialize_typeprint): Use add_basic_prefix_cmd,
6079 add_show_prefix_cmd.
6080 * record.c (set_record_command, show_record_command): Remove.
6081 (_initialize_record): Use add_basic_prefix_cmd,
6082 add_show_prefix_cmd.
6083 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6084 add_show_prefix_cmd.
6085 (info_command, show_command, set_debug, show_debug): Remove.
6086 * top.h (set_history, show_history): Don't declare.
6087 * top.c (set_history, show_history): Remove.
6088 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6089 (unset_tdesc_cmd): Remove.
6090 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6091 add_show_prefix_cmd.
6092 * symtab.c (info_module_command): Remove.
6093 (_initialize_symtab): Use add_basic_prefix_cmd.
6094 * symfile.c (overlay_command): Remove.
6095 (_initialize_symfile): Use add_basic_prefix_cmd.
6096 * sparc64-tdep.c (info_adi_command): Remove.
6097 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6098 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6099 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6100 add_show_prefix_cmd.
6101 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6102 (_initialize_serial): Use add_basic_prefix_cmd,
6103 add_show_prefix_cmd.
6104 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6105 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6106 add_show_prefix_cmd.
6107 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6108 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6109 add_show_prefix_cmd.
6110 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6111 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6112 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6113 add_show_prefix_cmd.
6114 * remote.c (remote_command, set_remote_cmd): Remove.
6115 (_initialize_remote): Use add_basic_prefix_cmd.
6116 * record-full.c (set_record_full_command)
6117 (show_record_full_command): Remove.
6118 (_initialize_record_full): Use add_basic_prefix_cmd,
6119 add_show_prefix_cmd.
6120 * record-btrace.c (cmd_set_record_btrace)
6121 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6122 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6123 (cmd_show_record_btrace_pt): Remove.
6124 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6125 add_show_prefix_cmd.
6126 * ravenscar-thread.c (set_ravenscar_command)
6127 (show_ravenscar_command): Remove.
6128 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6129 add_show_prefix_cmd.
6130 * mips-tdep.c (show_mips_command, set_mips_command)
6131 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6132 add_show_prefix_cmd.
6133 * maint.c (maintenance_command, maintenance_info_command)
6134 (maintenance_check_command, maintenance_print_command)
6135 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6136 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6137 add_show_prefix_cmd.
6138 (show_per_command_cmd): Remove.
6139 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6140 Remove.
6141 (maintenance_show_test_settings_cmd): Remove.
6142 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6143 add_show_prefix_cmd.
6144 * maint-test-options.c (maintenance_test_options_command):
6145 Remove.
6146 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6147 * macrocmd.c (macro_command): Remove
6148 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6149 * language.c (set_check, show_check): Remove.
6150 (_initialize_language): Use add_basic_prefix_cmd,
6151 add_show_prefix_cmd.
6152 * infcmd.c (unset_command): Remove.
6153 (_initialize_infcmd): Use add_basic_prefix_cmd.
6154 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6155 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6156 add_show_prefix_cmd.
6157 * go32-nat.c (go32_info_dos_command): Remove.
6158 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6159 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6160 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6161 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6162 (_initialize_frame): Use add_basic_prefix_cmd,
6163 add_show_prefix_cmd.
6164 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6165 (_initialize_dcache): Use add_basic_prefix_cmd,
6166 add_show_prefix_cmd.
6167 * cp-support.c (maint_cplus_command): Remove.
6168 (_initialize_cp_support): Use add_basic_prefix_cmd.
6169 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6170 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6171 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6172 add_basic_prefix_cmd, add_show_prefix_cmd.
6173 * breakpoint.c (save_command): Remove.
6174 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6175 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6176 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6177 add_show_prefix_cmd.
6178 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6179 (set_ada_command, show_ada_command): Remove.
6180 (_initialize_ada_language): Use add_basic_prefix_cmd,
6181 add_show_prefix_cmd.
6182 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6183
6184 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6185
6186 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6187 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6188
6189 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6190
6191 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6192 warning messages.
6193
6194 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6195
6196 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6197 import table is not at beginning of .idata section.
6198
6199 2020-04-16 Pedro Alves <palves@redhat.com>
6200
6201 * inferior.c (delete_inferior): Use delete operator directly
6202 instead of delete_program_space.
6203 * progspace.c (add_program_space): New, factored out from
6204 program_space::program_space.
6205 (remove_program_space): New, factored out from
6206 delete_program_space.
6207 (program_space::program_space): Remove intro comment. Rewrite.
6208 (program_space::~program_space): Remove intro comment. Call
6209 remove_program_space.
6210 (delete_program_space): Delete.
6211 * progspace.h (program_space::program_space): Make explicit. Move
6212 intro comment here, adjusted.
6213 (program_space::~program_space): Move intro comment here,
6214 adjusted.
6215 (delete_program_space): Remove.
6216
6217 2020-04-16 Tom Tromey <tromey@adacore.com>
6218
6219 * windows-nat.c (windows_nat::handle_access_violation): New
6220 function.
6221 * nat/windows-nat.h (handle_access_violation): Declare.
6222 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6223 windows-nat.c. Call handle_access_violation.
6224
6225 2020-04-16 Tom de Vries <tdevries@suse.de>
6226
6227 PR symtab/25791
6228 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6229 CUs without psymtab.
6230
6231 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6232
6233 * python/python.c (do_start_initialization): Don't call
6234 PyEval_InitThreads for Python 3.9 and beyond.
6235
6236 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6237
6238 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6239 thread functions.
6240 (obsd_nat_target::wait): Likewise.
6241
6242 2020-04-15 Tom Tromey <tromey@adacore.com>
6243
6244 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6245 (DEBUG_EXCEPT): Use debug_printf.
6246
6247 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6248
6249 * completer.c (class completion_tracker::completion_hash_entry)
6250 <hash_name>: New member function.
6251 (completion_tracker::discard_completions): New callback to hash a
6252 completion_hash_entry, pass this to htab_create_alloc.
6253
6254 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6255
6256 * windows-nat.c (windows_make_so): Warn rather than stopping with
6257 an error if realpath() fails.
6258
6259 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6260
6261 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6262 (nbsd_nat_target::info_proc): Add do_status.
6263
6264 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6265 Tom de Vries <tdevries@suse.de>
6266
6267 PR symtab/25718
6268 * psympriv.h (struct partial_symtab::read_symtab)
6269 (struct partial_symtab::expand_psymtab)
6270 (struct partial_symtab::read_dependencies): Update comments.
6271 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6272 read_symtab for includer.
6273 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6274 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6275 (struct dwarf2_include_psymtab::m_readin): Remove.
6276 (struct dwarf2_include_psymtab::includer): New member function.
6277 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6278
6279 2020-04-14 Tom de Vries <tdevries@suse.de>
6280
6281 PR symtab/25720
6282 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6283 with NULL symbol_matcher and lookup_name.
6284 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6285 and lookup_name.
6286 * dwarf2/read.c (dw2_expand_symtabs_matching)
6287 (dw2_debug_names_expand_symtabs_matching): Same.
6288 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6289 Make lookup_name a pointer. Update comment.
6290 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6291 lookup_name being a pointer.
6292 * symfile.c (expand_symtabs_matching): Same.
6293 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6294 * linespec.c (iterate_over_all_matching_symtabs): Same.
6295
6296 2020-04-13 Tom Tromey <tom@tromey.com>
6297
6298 * run-on-main-thread.c: Update include.
6299 * unittests/main-thread-selftests.c: Update include.
6300 * tui/tui-win.c: Update include.
6301 * tui/tui-io.c: Update include.
6302 * tui/tui-interp.c: Update include.
6303 * tui/tui-hooks.c: Update include.
6304 * top.h: Update include.
6305 * top.c: Update include.
6306 * ser-base.c: Update include.
6307 * remote.c: Update include.
6308 * remote-notif.c: Update include.
6309 * remote-fileio.c: Update include.
6310 * record-full.c: Update include.
6311 * record-btrace.c: Update include.
6312 * python/python.c: Update include.
6313 * posix-hdep.c: Update include.
6314 * mingw-hdep.c: Update include.
6315 * mi/mi-main.c: Update include.
6316 * mi/mi-interp.c: Update include.
6317 * main.c: Update include.
6318 * linux-nat.c: Update include.
6319 * interps.c: Update include.
6320 * infrun.c: Update include.
6321 * inf-loop.c: Update include.
6322 * event-top.c: Update include.
6323 * event-loop.c: Move to ../gdbsupport/.
6324 * event-loop.h: Move to ../gdbsupport/.
6325 * async-event.h: Update include.
6326 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6327
6328 2020-04-13 Tom Tromey <tom@tromey.com>
6329
6330 * tui/tui-win.c: Include async-event.h.
6331 * remote.c: Include async-event.h.
6332 * remote-notif.c: Include async-event.h.
6333 * record-full.c: Include async-event.h.
6334 * record-btrace.c: Include async-event.h.
6335 * infrun.c: Include async-event.h.
6336 * event-top.c: Include async-event.h.
6337 * event-loop.h: Move some declarations to async-event.h.
6338 * event-loop.c: Don't include ser-event.h or top.h. Move some
6339 code to async-event.c.
6340 * async-event.h: New file.
6341 * async-event.c: New file.
6342 * Makefile.in (COMMON_SFILES): Add async-event.c.
6343 (HFILES_NO_SRCDIR): Add async-event.h.
6344
6345 2020-04-13 Tom Tromey <tom@tromey.com>
6346
6347 * utils.c (flush_streams): New function.
6348 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6349
6350 2020-04-13 Tom Tromey <tom@tromey.com>
6351
6352 * event-loop.c (handle_file_event): Use warning, not
6353 printf_unfiltered.
6354
6355 2020-04-13 Tom Tromey <tom@tromey.com>
6356
6357 * event-loop.c: Include <chrono>.
6358
6359 2020-04-13 Tom Tromey <tom@tromey.com>
6360
6361 * gdb_select.h: Move to ../gdbsupport/.
6362 * event-loop.c: Update include path.
6363 * top.c: Update include path.
6364 * ser-base.c: Update include path.
6365 * ui-file.c: Update include path.
6366 * ser-tcp.c: Update include path.
6367 * guile/scm-ports.c: Update include path.
6368 * posix-hdep.c: Update include path.
6369 * ser-unix.c: Update include path.
6370 * gdb_usleep.c: Update include path.
6371 * mingw-hdep.c: Update include path.
6372 * inflow.c: Update include path.
6373 * infrun.c: Update include path.
6374 * event-top.c: Update include path.
6375
6376 2020-04-13 Tom Tromey <tom@tromey.com>
6377
6378 * configure: Rebuild.
6379 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6380
6381 2020-04-13 Tom Tromey <tom@tromey.com>
6382
6383 * event-loop.h (start_event_loop): Don't declare.
6384 * event-loop.c (start_event_loop): Move...
6385 * main.c (start_event_loop): ...here. Now static.
6386
6387 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6388
6389 * MAINTAINERS: Update my email address.
6390
6391 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6392
6393 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6394 IP_ALL.
6395
6396 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6397
6398 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6399 (nbsd_nat_target::info_proc): Add do_cmdline.
6400
6401 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6402
6403 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6404 (nbsd_nat_target::info_proc): Add do_cwd.
6405
6406 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6407
6408 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6409
6410 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6411
6412 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6413 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6414 (nbsd_nat_target::info_proc): New functions.
6415 * nbsd-nat.c (kinfo_get_vmmap): New function.
6416 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6417 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6418 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6419 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6420 functions.
6421 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6422 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6423 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6424 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6425 (KINFO_VME_FLAG_GROWS_DOWN): New.
6426
6427 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6428
6429 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6430 bit shift.
6431
6432 2020-04-10 Tom Tromey <tromey@adacore.com>
6433
6434 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6435
6436 2020-04-10 Tom Tromey <tromey@adacore.com>
6437
6438 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6439 separate debug files.
6440
6441 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6442
6443 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6444 Move to...
6445 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6446 ... here.
6447 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6448 Check for STATUS_WX86_BREAKPOINT.
6449 (windows_nat_target::wait): Same.
6450
6451 2020-04-10 Tom de Vries <tdevries@suse.de>
6452
6453 PR cli/25808
6454 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6455
6456 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6457
6458 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6459 (Write After Approval): Remove Tom de Vries.
6460
6461 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6462
6463 revert partially:
6464 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6465
6466 * buildsym.c (record_line): Fix undefined behavior and preserve
6467 lines at eof.
6468
6469 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6470
6471 * auxv.h (svr4_auxv_parse): New.
6472 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6473 and generic_auxv_parse.
6474 (svr4_auxv_parse): Add.
6475 * obsd-tdep.c: Include "auxv.h".
6476 (obsd_auxv_parse): Remove.
6477 (obsd_init_abi): Remove comment.
6478 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6479 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6480 * nbsd-tdep.c: Include "auxv.h".
6481 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6482
6483 2020-04-08 Tom Tromey <tromey@adacore.com>
6484
6485 * nat/windows-nat.h (last_wait_event): Don't declare.
6486 (wait_for_debug_event): Update comment.
6487 * nat/windows-nat.c (last_wait_event): Now static.
6488
6489 2020-04-08 Tom Tromey <tromey@adacore.com>
6490
6491 * windows-nat.c (wait_for_debug_event): Move to
6492 nat/windows-nat.c.
6493 * nat/windows-nat.h (wait_for_debug_event): Declare.
6494 * nat/windows-nat.c (wait_for_debug_event): Move from
6495 windows-nat.c. No longer static.
6496
6497 2020-04-08 Tom Tromey <tromey@adacore.com>
6498
6499 * windows-nat.c (get_windows_debug_event): Use
6500 fetch_pending_stop.
6501 * nat/windows-nat.h (fetch_pending_stop): Declare.
6502 * nat/windows-nat.c (fetch_pending_stop): New function.
6503
6504 2020-04-08 Tom Tromey <tromey@adacore.com>
6505
6506 * windows-nat.c (windows_continue): Use matching_pending_stop and
6507 continue_last_debug_event.
6508 * nat/windows-nat.h (matching_pending_stop)
6509 (continue_last_debug_event): Declare.
6510 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6511 (matching_pending_stop, continue_last_debug_event): New
6512 functions.
6513
6514 2020-04-08 Tom Tromey <tromey@adacore.com>
6515
6516 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6517 (handle_exception_result): Move to nat/windows-nat.h.
6518 (DEBUG_EXCEPTION_SIMPLE): Remove.
6519 (windows_nat::handle_ms_vc_exception): New function.
6520 (handle_exception): Move to nat/windows-nat.c.
6521 (get_windows_debug_event): Update.
6522 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6523 nat/windows-nat.c.
6524 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6525 (handle_exception_result): Move from windows-nat.c.
6526 (handle_exception): Declare.
6527 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6528 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6529 windows-nat.c.
6530
6531 2020-04-08 Tom Tromey <tromey@adacore.com>
6532
6533 * windows-nat.c (exception_count, event_count): Remove.
6534 (handle_exception, get_windows_debug_event)
6535 (do_initial_windows_stuff): Update.
6536
6537 2020-04-08 Tom Tromey <tromey@adacore.com>
6538
6539 * windows-nat.c (windows_nat::handle_load_dll)
6540 (windows_nat::handle_unload_dll): Rename. No longer static.
6541 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6542 Declare.
6543
6544 2020-04-08 Tom Tromey <tromey@adacore.com>
6545
6546 * complaints.h (stop_whining): Declare at top-level.
6547 (complaint): Don't declare stop_whining.
6548
6549 2020-04-08 Tom Tromey <tromey@adacore.com>
6550
6551 * windows-nat.c (windows_nat::handle_output_debug_string):
6552 Rename. No longer static.
6553 * nat/windows-nat.h (handle_output_debug_string): Declare.
6554
6555 2020-04-08 Tom Tromey <tromey@adacore.com>
6556
6557 * windows-nat.c (current_process_handle, current_process_id)
6558 (main_thread_id, last_sig, current_event, last_wait_event)
6559 (current_windows_thread, desired_stop_thread_id, pending_stops)
6560 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6561 (display_selectors, fake_create_process)
6562 (get_windows_debug_event): Update.
6563 * nat/windows-nat.h (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 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6567 * nat/windows-nat.c (current_process_handle, current_process_id)
6568 (main_thread_id, last_sig, current_event, last_wait_event)
6569 (current_windows_thread, desired_stop_thread_id, pending_stops)
6570 (siginfo_er): New globals. Move from windows-nat.c.
6571
6572 2020-04-08 Tom Tromey <tromey@adacore.com>
6573
6574 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6575 (handle_load_dll): Update.
6576 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6577
6578 2020-04-08 Tom Tromey <tromey@adacore.com>
6579
6580 * windows-nat.c (enum thread_disposition_type): Move to
6581 nat/windows-nat.h.
6582 (windows_nat::thread_rec): Rename from thread_rec. No longer
6583 static.
6584 (windows_add_thread, windows_nat_target::fetch_registers)
6585 (windows_nat_target::store_registers, handle_exception)
6586 (windows_nat_target::resume, get_windows_debug_event)
6587 (windows_nat_target::get_tib_address)
6588 (windows_nat_target::thread_name)
6589 (windows_nat_target::thread_alive): Update.
6590 * nat/windows-nat.h (enum thread_disposition_type): Move from
6591 windows-nat.c.
6592 (thread_rec): Declare.
6593
6594 2020-04-08 Tom Tromey <tromey@adacore.com>
6595
6596 * windows-nat.c: Add "using namespace".
6597 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6598 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6599
6600 2020-04-08 Tom Tromey <tromey@adacore.com>
6601
6602 * nat/windows-nat.h (struct windows_thread_info): Declare
6603 destructor.
6604 * nat/windows-nat.c (~windows_thread_info): New.
6605
6606 2020-04-08 Tom Tromey <tromey@adacore.com>
6607
6608 PR gdb/22992
6609 * windows-nat.c (current_event): Update comment.
6610 (last_wait_event, desired_stop_thread_id): New globals.
6611 (struct pending_stop): New.
6612 (pending_stops): New global.
6613 (windows_nat_target) <stopped_by_sw_breakpoint>
6614 <supports_stopped_by_sw_breakpoint>: New methods.
6615 (windows_fetch_one_register): Add assertions. Adjust PC.
6616 (windows_continue): Handle pending stops. Suspend other threads
6617 when stepping. Use last_wait_event
6618 (wait_for_debug_event): New function.
6619 (get_windows_debug_event): Use wait_for_debug_event. Handle
6620 pending stops. Queue spurious stops.
6621 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6622 (windows_nat_target::kill): Use wait_for_debug_event.
6623 * nat/windows-nat.h (struct windows_thread_info)
6624 <stopped_at_software_breakpoint>: New field.
6625 * nat/windows-nat.c (windows_thread_info::resume): Clear
6626 stopped_at_software_breakpoint.
6627
6628 2020-04-08 Tom Tromey <tromey@adacore.com>
6629
6630 * windows-nat.c (enum thread_disposition_type): New.
6631 (thread_rec): Replace "get_context" parameter with "disposition";
6632 change type.
6633 (windows_add_thread, windows_nat_target::fetch_registers)
6634 (windows_nat_target::store_registers, handle_exception)
6635 (windows_nat_target::resume, get_windows_debug_event)
6636 (windows_nat_target::get_tib_address)
6637 (windows_nat_target::thread_name)
6638 (windows_nat_target::thread_alive): Update.
6639
6640 2020-04-08 Tom Tromey <tromey@adacore.com>
6641
6642 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6643 (windows_continue): Use windows_continue::resume.
6644 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6645 resume>: Declare new methods.
6646 * nat/windows-nat.c: New file.
6647 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6648
6649 2020-04-08 Tom Tromey <tromey@adacore.com>
6650
6651 * windows-nat.c (windows_add_thread, windows_delete_thread)
6652 (windows_nat_target::fetch_registers)
6653 (windows_nat_target::store_registers, fake_create_process)
6654 (windows_nat_target::resume, windows_nat_target::resume)
6655 (get_windows_debug_event, windows_nat_target::wait)
6656 (windows_nat_target::pid_to_str)
6657 (windows_nat_target::get_tib_address)
6658 (windows_nat_target::get_ada_task_ptid)
6659 (windows_nat_target::thread_name)
6660 (windows_nat_target::thread_alive): Use lwp, not tid.
6661
6662 2020-04-08 Tom Tromey <tromey@adacore.com>
6663
6664 * windows-nat.c (handle_exception)
6665 (windows_nat_target::thread_name): Update.
6666 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6667 <name>: Now unique_xmalloc_ptr.
6668
6669 2020-04-08 Tom Tromey <tromey@adacore.com>
6670
6671 * windows-nat.c (thread_rec)
6672 (windows_nat_target::fetch_registers): Update.
6673 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6674 Update comment.
6675 <debug_registers_changed, reload_context>: Now bool.
6676
6677 2020-04-08 Tom Tromey <tromey@adacore.com>
6678
6679 * windows-nat.c (windows_add_thread): Use new.
6680 (windows_init_thread_list, windows_delete_thread): Use delete.
6681 (get_windows_debug_event): Update.
6682 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6683 destructor, and initializers.
6684
6685 2020-04-08 Tom Tromey <tromey@adacore.com>
6686
6687 * windows-nat.c (struct windows_thread_info): Remove.
6688 * nat/windows-nat.h: New file.
6689
6690 2020-04-08 Tom Tromey <tromey@adacore.com>
6691
6692 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6693 (thread_rec, windows_add_thread, windows_delete_thread)
6694 (windows_continue): Update.
6695
6696 2020-04-08 Tom Tromey <tromey@adacore.com>
6697
6698 * windows-nat.c (struct windows_thread_info): Remove typedef.
6699 (thread_head): Remove.
6700 (thread_list): New global.
6701 (thread_rec, windows_add_thread, windows_init_thread_list)
6702 (windows_delete_thread, windows_continue): Update.
6703
6704 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6705
6706 * windows-tdep.h (windows_init_abi): Add comment.
6707 (cygwin_init_abi): New declaration.
6708 * windows-tdep.c: Split signal enumeration in two, one for
6709 Windows and one for Cygwin.
6710 (windows_gdb_signal_to_target): Only deal with signal of the
6711 Windows OS ABI.
6712 (cygwin_gdb_signal_to_target): New function.
6713 (windows_init_abi): Rename to windows_init_abi_common, don't set
6714 gdb_signal_to_target gdbarch method. Add new new function with
6715 this name.
6716 (cygwin_init_abi): New function.
6717 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6718 comment. Don't call windows_init_abi.
6719 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6720 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6721 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6722 i386_windows_init_abi_common, don't call windows_init_abi. Add
6723 a new function of this name.
6724 (i386_cygwin_init_abi): New function.
6725 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6726 OS ABI Cygwin.
6727
6728 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6729
6730 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6731 parameter.c.
6732 (dwarf2_read_gdb_index): Update.
6733
6734 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6735
6736 * nbsd-tdep.c: Include "objfiles.h".
6737 (nbsd_skip_solib_resolver): New.
6738 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6739
6740 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6741
6742 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6743 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6744 with DW_LLE_base_addressx are being emitted in DWARFv5.
6745 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6746 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6747 unsigned integer.
6748
6749 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6750
6751 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6752 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6753 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6754 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6755 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6756 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6757 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6758
6759
6760 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6761
6762 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6763 (read_loclist_index): New function definition.
6764 (lookup_loclist_base): New function definition.
6765 (read_loclist_header): New function definition.
6766 (dwarf2_cu): Add loclist_base and loclist_header field.
6767 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6768 (read_full_die_1): Read the value of DW_AT_loclists_base.
6769 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6770 (read_attribute_value): Handle DW_FORM_loclistx.
6771 (skip_one_die): Handle DW_FORM_loclistx.
6772 (loclist_header): New structure declaration.
6773 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6774
6775 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6776
6777 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6778 constructor. Remove `addr` parameter from other constructor and
6779 add `per_cu` parameter.
6780 * dwarf2/read.c (create_partial_symtab): Update.
6781
6782 2020-04-07 Tom de Vries <tdevries@suse.de>
6783
6784 PR symtab/25796
6785 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6786 (partial_die_info::fixup): Inherit has_const_value.
6787
6788 2020-04-07 Tom de Vries <tdevries@suse.de>
6789
6790 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6791 symbols without address.
6792
6793 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6794
6795 * nbsd-nat.h (struct thread_info): Add forward declaration.
6796 (nbsd_nat_target::thread_alive): Add.
6797 (nbsd_nat_target::thread_name): Likewise.
6798 (nbsd_nat_target::update_thread_list): Likewise.
6799 (update_thread_list::post_attach): Likewise.
6800 (post_attach::pid_to_str): Likewise.
6801 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6802 (nbsd_thread_lister): Add.
6803 (nbsd_nat_target::thread_alive): Likewise.
6804 (nbsd_nat_target::thread_name): Likewise.
6805 (nbsd_add_threads): Likewise.
6806 (update_thread_list::post_attach): Likewise.
6807 (nbsd_nat_target::update_thread_list): Likewise.
6808 (post_attach::pid_to_str): Likewise.
6809
6810 2020-04-06 Tom Tromey <tromey@adacore.com>
6811
6812 * ada-valprint.c (print_variant_part): Extract the variant field.
6813 (print_field_values): Use the field as the outer value when
6814 recursing.
6815
6816 2020-04-06 Tom Tromey <tromey@adacore.com>
6817
6818 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6819 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6820 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6821 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6822 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6823
6824 2020-04-06 Tom Tromey <tromey@adacore.com>
6825
6826 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6827 TYPE_CODE_ERROR.
6828
6829 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6830
6831 * nbsd-tdep.c: Include "gdbarch.h".
6832 Define enum with NetBSD signal numbers.
6833 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6834 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6835 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6836 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6837 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6838 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6839 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6840 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6841 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6842 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6843 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6844 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6845
6846 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6847
6848 PR gdb/25325
6849 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6850
6851 2020-04-03 Tom Tromey <tromey@adacore.com>
6852
6853 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6854 Read constant block.
6855
6856 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6857
6858 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6859 (gdb_bfd_get_full_section_contents): New declaration.
6860 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6861 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6862 gdb_bfd_get_full_section_contents.
6863
6864 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6865
6866 * exec.c (build_section_table): Replace internal_error with
6867 gdb_assert.
6868 (section_table_xfer_memory_partial): Likewise.
6869 * mdebugread.c (parse_partial_symbols): Likewise.
6870 * psymtab.c (lookup_partial_symbol): Likewise.
6871 * utils.c (wrap_here): Likewise.
6872
6873 2020-04-02 Tom Tromey <tromey@adacore.com>
6874
6875 * f-lang.c (build_fortran_types): Use arch_type to initialize
6876 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6877
6878 2020-04-02 Tom Tromey <tromey@adacore.com>
6879
6880 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6881 of attributes.
6882
6883 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6884 Bernd Edlinger <bernd.edlinger@hotmail.de>
6885 Tom Tromey <tromey@adacore.com>
6886
6887 * buildsym.c (buildsym_compunit::record_line): Remove
6888 deduplication code.
6889
6890 2020-04-02 Tom de Vries <tdevries@suse.de>
6891
6892 PR ada/24671
6893 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6894
6895 2020-04-02 Tom de Vries <tdevries@suse.de>
6896
6897 * dwarf2/read.c (dwarf2_gdb_index_functions,
6898 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6899 NULL.
6900 * psymtab.c (psym_lookup_global_symbol_language): New function.
6901 (psym_functions): Init psym_lookup_global_symbol_language with
6902 psym_lookup_global_symbol_language.
6903 * symfile-debug.c (debug_sym_quick_functions): Init
6904 lookup_global_symbol_language with NULL.
6905 * symfile.c (set_initial_language): Remove fixme comment.
6906 * symfile.h (struct quick_symbol_functions): Add
6907 lookup_global_symbol_language.
6908 * symtab.c (find_quick_global_symbol_language): New function.
6909 (find_main_name): Use find_quick_global_symbol_language.
6910
6911 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6912
6913 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6914
6915 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6916
6917 * buildsym.c (record_line): Fix undefined behavior and preserve
6918 lines at eof.
6919
6920 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6921
6922 * buildsym.c (record_line): Fix the resizing condition.
6923
6924 2020-04-01 Tom Tromey <tom@tromey.com>
6925
6926 * value.h (value_literal_complex): Add comment.
6927 * valops.c (value_literal_complex): Refer to value.h.
6928
6929 2020-04-01 Tom Tromey <tom@tromey.com>
6930
6931 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6932 (scalar_type): New rule, from typebase.
6933 (typebase): Use scalar_type. Recognize complex types.
6934 (field_name): Handle FLOAT_KEYWORD.
6935 (ident_tokens): Add _Complex and __complex__.
6936
6937 2020-04-01 Tom Tromey <tom@tromey.com>
6938
6939 PR exp/25299:
6940 * valarith.c (promotion_type, complex_binop): New functions.
6941 (scalar_binop): Handle complex numbers. Use promotion_type.
6942 (value_pos, value_neg, value_complement): Handle complex numbers.
6943
6944 2020-04-01 Tom Tromey <tom@tromey.com>
6945
6946 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6947 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6948 (parse_number): Handle complex numbers.
6949
6950 2020-04-01 Tom Tromey <tom@tromey.com>
6951
6952 * c-valprint.c (c_decorations): Change complex suffix to "i".
6953
6954 2020-04-01 Tom Tromey <tom@tromey.com>
6955
6956 * valprint.c (generic_value_print_complex): Use accessors.
6957 * value.h (value_real_part, value_imaginary_part): Declare.
6958 * valops.c (value_real_part, value_imaginary_part): New
6959 functions.
6960 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6961
6962 2020-04-01 Tom Tromey <tom@tromey.com>
6963
6964 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6965 (read_range_type): Update.
6966 * mdebugread.c (basic_type): Update.
6967 * go-lang.c (build_go_types): Use init_complex_type.
6968 * gdbtypes.h (struct main_type) <complex_type>: New member.
6969 (init_complex_type): Update.
6970 (arch_complex_type): Don't declare.
6971 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6972 Make name if none given. Use alloc_type_copy. Look for cached
6973 complex type.
6974 (arch_complex_type): Remove.
6975 (gdbtypes_post_init): Use init_complex_type.
6976 * f-lang.c (build_fortran_types): Use init_complex_type.
6977 * dwarf2/read.c (read_base_type): Update.
6978 * d-lang.c (build_d_types): Use init_complex_type.
6979 * ctfread.c (read_base_type): Update.
6980
6981 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6982
6983 * infrun.c (stop_all_threads): Update assertion, plus when
6984 stopping threads, take into account that we might be trying
6985 to stop an all-stop target.
6986 (stop_waiting): Call 'stop_all_threads' if there exists a
6987 non-stop target.
6988
6989 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6990
6991 * target.h (exists_non_stop_target): New function declaration.
6992 * target.c (exists_non_stop_target): New function.
6993
6994 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6995
6996 PR gdb/24789
6997 * eval.c (is_integral_or_integral_reference): New function.
6998 (evaluate_subexp_standard): Allow integer references in
6999 pointer arithmetic.
7000
7001 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7002
7003 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7004 check for no ptid in the stop reply when the target is non-stop.
7005
7006 2020-04-01 Tom Tromey <tromey@adacore.com>
7007
7008 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7009 "name" parameter to rvalue reference. Initialize m_name_holder.
7010 <lookup_name_info>: New overloads.
7011 <name>: Return gdb::string_view.
7012 <c_str>: New method.
7013 <make_ignore_params>: Update.
7014 <search_name_hash>: Update.
7015 <language_lookup_name>: Return const char *.
7016 <m_name>: Change type.
7017 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7018 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7019 (lookup_name_info::match_any): Update.
7020 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7021 Update.
7022 * minsyms.c (linkage_name_str): Update.
7023 * language.c (default_symbol_name_matcher): Update.
7024 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7025 Update.
7026 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7027 (ada_lookup_name_info::ada_lookup_name_info): Update.
7028 (literal_symbol_name_matcher): Update.
7029
7030 2020-04-01 Tom Tromey <tromey@adacore.com>
7031
7032 * psymtab.c (psymtab_search_name): Remove function.
7033 (psym_lookup_symbol): Create search name and lookup name here.
7034 (lookup_partial_symbol): Remove "name" parameter; add
7035 lookup_name.
7036 (psym_expand_symtabs_for_function): Update.
7037
7038 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7039
7040 PR tui/25597:
7041 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7042
7043 2020-03-31 Tom Tromey <tromey@adacore.com>
7044
7045 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7046 memcpy.
7047
7048 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7049
7050 * features/riscv/32bit-csr.xml: Regenerated.
7051 * features/riscv/64bit-csr.xml: Regenerated.
7052
7053 2020-03-30 Tom Tromey <tromey@adacore.com>
7054
7055 * ada-valprint.c (print_variant_part): Update.
7056 * ada-lang.h (ada_which_variant_applies): Update.
7057 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7058 outer_valaddr parameters; replace with "outer" value parameter.
7059 (to_fixed_variant_branch_type): Update.
7060
7061 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7062
7063 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7064 <list>. Remove inclusion of observable.h.
7065 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7066 (struct arch_lwp_info): New struct.
7067 (class ppc_linux_dreg_interface): New class.
7068 (struct ppc_linux_process_info): New struct.
7069 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7070 <low_new_clone, low_forget_process, low_prepare_to_resume>
7071 <copy_thread_dreg_state, mark_thread_stale>
7072 <mark_debug_registers_changed, register_hw_breakpoint>
7073 <clear_hw_breakpoint, register_wp, clear_wp>
7074 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7075 <num_memory_accesses, get_trigger_type>
7076 <create_watchpoint_request, hwdebug_point_cmp>
7077 <init_arch_lwp_info, get_arch_lwp_info>
7078 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7079 methods.
7080 <struct ptid_hash>: New inner struct.
7081 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7082 members.
7083 (saved_dabr_value, hwdebug_info, max_slots_number)
7084 (struct hw_break_tuple, struct thread_points, ppc_threads)
7085 (have_ptrace_hwdebug_interface)
7086 (hwdebug_find_thread_points_by_tid)
7087 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7088 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7089 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7090 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7091 use m_dreg_interface.
7092 (hwdebug_point_cmp): Change to...
7093 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7094 reference arguments instead of pointers.
7095 (ppc_linux_nat_target::ranged_break_num_registers): Use
7096 m_dreg_interface.
7097 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7098 m_dreg_interface. Call register_hw_breakpoint.
7099 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7100 m_dreg_interface. Call clear_hw_breakpoint.
7101 (get_trigger_type): Change to...
7102 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7103 comment.
7104 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7105 use m_dreg_interface. Call register_hw_breakpoint.
7106 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7107 use m_dreg_interface. Call clear_hw_breakpoint.
7108 (can_use_watchpoint_cond_accel): Change to...
7109 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7110 method. Update comment, use m_dreg_interface and
7111 m_process_info.
7112 (calculate_dvc): Change to...
7113 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7114 m_dreg_interface.
7115 (num_memory_accesses): Change to...
7116 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7117 (check_condition): Change to...
7118 (ppc_linux_nat_target::check_condition): ...this method.
7119 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7120 comment, use m_dreg_interface.
7121 (create_watchpoint_request): Change to...
7122 (ppc_linux_nat_target::create_watchpoint_request): ...this
7123 method. Use m_dreg_interface.
7124 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7125 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7126 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7127 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7128 (ppc_linux_nat_target::low_forget_process)
7129 (ppc_linux_nat_target::low_new_fork)
7130 (ppc_linux_nat_target::low_new_clone)
7131 (ppc_linux_nat_target::low_delete_thread)
7132 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7133 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7134 only call mark_thread_stale.
7135 (ppc_linux_thread_exit): Remove.
7136 (ppc_linux_nat_target::stopped_data_address): Change to...
7137 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7138 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7139 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7140 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7141 comment. Call low_stopped_data_address.
7142 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7143 m_dreg_interface.
7144 (ppc_linux_nat_target::masked_watch_num_registers): Use
7145 m_dreg_interface.
7146 (ppc_linux_nat_target::copy_thread_dreg_state)
7147 (ppc_linux_nat_target::mark_thread_stale)
7148 (ppc_linux_nat_target::mark_debug_registers_changed)
7149 (ppc_linux_nat_target::register_hw_breakpoint)
7150 (ppc_linux_nat_target::clear_hw_breakpoint)
7151 (ppc_linux_nat_target::register_wp)
7152 (ppc_linux_nat_target::clear_wp)
7153 (ppc_linux_nat_target::init_arch_lwp_info)
7154 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7155 (_initialize_ppc_linux_nat): Remove observer callback.
7156
7157 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7158
7159 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7160 (ppc_linux_nat_target::auxv_parse)
7161 (ppc_linux_nat_target::read_description)
7162 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7163 Move up.
7164
7165 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7166
7167 * linux-nat.h (low_new_clone): New method.
7168 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7169
7170 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7171
7172 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7173 (dbx_expand_psymtab): ... this.
7174 (start_psymtab): Update.
7175 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7176 (mdebug_expand_psymtab): ... this.
7177 (parse_partial_symbols): Update.
7178 (new_psymtab): Update.
7179 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7180 (xcoff_expand_psymtab): ... this.
7181 (xcoff_start_psymtab): Update.
7182
7183 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7184
7185 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7186 <expand_dependencies>: ... this.
7187 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7188 (partial_symtab::expand_dependencies): ... this.
7189 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7190 Update.
7191 (dwarf2_psymtab::expand_psymtab): Update.
7192 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7193 * mdebugread.c (psymtab_to_symtab_1): Update.
7194 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7195
7196 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7197
7198 * psympriv.h (discard_psymtab): Remove.
7199 * dbxread.c (dbx_end_psymtab): Update.
7200 * xcoffread.c (xcoff_end_psymtab): Update.
7201
7202 2020-03-28 Tom Tromey <tom@tromey.com>
7203
7204 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7205 comment.
7206
7207 2020-03-28 Tom Tromey <tom@tromey.com>
7208
7209 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7210
7211 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7212
7213 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7214
7215 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7216
7217 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7218
7219 2020-03-26 Tom Tromey <tom@tromey.com>
7220
7221 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7222 (mark_common_block_symbol_computed, read_tag_string_type)
7223 (attr_to_dynamic_prop, read_subrange_type): Update.
7224 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7225 to be methods on struct attribute.
7226 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7227 (read_call_site_scope, partial_die_info::read)
7228 (partial_die_info::read, lookup_die_type, follow_die_ref):
7229 Update.
7230 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7231 from dwarf2_get_ref_die_offset.
7232 (attribute::constant_value): New method, from
7233 dwarf2_get_attr_constant_value.
7234 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7235 Declare method.
7236 <constant_value>: New method.
7237
7238 2020-03-26 Tom Tromey <tom@tromey.com>
7239
7240 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7241 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7242 (dwarf_type_encoding_name): Move to stringify.c.
7243 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7244 * dwarf2/stringify.c: New file.
7245 * dwarf2/stringify.h: New file.
7246
7247 2020-03-26 Tom Tromey <tom@tromey.com>
7248
7249 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7250 Rewrite.
7251
7252 2020-03-26 Tom Tromey <tom@tromey.com>
7253
7254 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7255 methods.
7256 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7257 (lookup_ranges_base): Likewise.
7258 (read_cutu_die_from_dwo, read_full_die_1): Update.
7259
7260 2020-03-26 Tom Tromey <tom@tromey.com>
7261
7262 * dwarf2/read.c (read_import_statement, read_file_scope)
7263 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7264 (read_lexical_block_scope, read_call_site_scope)
7265 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7266 (handle_struct_member_die, process_structure_scope)
7267 (update_enumeration_type_from_children)
7268 (process_enumeration_scope, read_array_type, read_common_block)
7269 (read_namespace, read_module, read_subroutine_type): Update.
7270 (sibling_die): Remove.
7271
7272 2020-03-26 Tom Tromey <tom@tromey.com>
7273
7274 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7275 (build_type_psymtabs_reader, read_structure_type)
7276 (read_enumeration_type, read_full_die_1): Update.
7277 (dwarf2_attr_no_follow): Move to die.h.
7278 * dwarf2/die.h (struct die_info) <attr>: New method.
7279
7280 2020-03-26 Tom Tromey <tom@tromey.com>
7281
7282 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7283 <base_address>: Now an optional.
7284 (dwarf2_find_base_address, dwarf2_rnglists_process)
7285 (dwarf2_ranges_process, fill_in_loclist_baton)
7286 (dwarf2_symbol_mark_computed): Update.
7287
7288 2020-03-26 Tom Tromey <tom@tromey.com>
7289
7290 * dwarf2/read.c (struct die_info): Move to die.h.
7291 * dwarf2/die.h: New file.
7292
7293 2020-03-26 Tom Tromey <tom@tromey.com>
7294
7295 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7296 * dwarf2/read.c
7297 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7298 Move to line-header.c.
7299 (read_checked_initial_length_and_offset, read_formatted_entries):
7300 Likewise.
7301 (dwarf_decode_line_header): Split into two.
7302 * dwarf2/line-header.c
7303 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7304 Move from read.c.
7305 (read_checked_initial_length_and_offset, read_formatted_entries):
7306 Likewise.
7307 (dwarf_decode_line_header): New function, split from read.c.
7308
7309 2020-03-26 Tom Tromey <tom@tromey.com>
7310
7311 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7312 Declare method.
7313 * dwarf2/read.c (read_attribute_value): Update.
7314 (dwarf2_per_objfile::read_line_string): Rename from
7315 read_indirect_line_string.
7316 (read_formatted_entries): Update.
7317
7318 2020-03-26 Tom Tromey <tom@tromey.com>
7319
7320 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7321 variable.
7322
7323 2020-03-26 Tom Tromey <tom@tromey.com>
7324
7325 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7326 const.
7327 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7328 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7329 parameter const.
7330
7331 2020-03-26 Tom Tromey <tom@tromey.com>
7332
7333 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7334 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7335 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7336 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7337
7338 2020-03-26 Tom Tromey <tom@tromey.com>
7339
7340 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7341 file_names_size, file_full_name, file_file_name>: Use const.
7342 <file_name_at, file_names>: Add const overload.
7343 * dwarf2/line-header.c (line_header::file_file_name)
7344 (line_header::file_full_name): Update.
7345
7346 2020-03-26 Tom Tromey <tom@tromey.com>
7347
7348 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7349 (macro_start_file, consume_improper_spaces)
7350 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7351 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7352 (dwarf_decode_macros): Move to macro.c.
7353 * dwarf2/macro.c: New file.
7354 * dwarf2/macro.h: New file.
7355 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7356
7357 2020-03-26 Tom Tromey <tom@tromey.com>
7358
7359 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7360 method.
7361 * dwarf2/section.c: New method. From
7362 read_indirect_string_at_offset_from.
7363 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7364 (read_indirect_string_at_offset_from): Move to section.c.
7365 (read_indirect_string_at_offset): Rewrite.
7366 (read_indirect_line_string_at_offset): Remove.
7367 (read_indirect_string, read_indirect_line_string)
7368 (dwarf_decode_macro_bytes): Update.
7369
7370 2020-03-26 Tom Tromey <tom@tromey.com>
7371
7372 * dwarf2/section.h (struct dwarf2_section_info)
7373 <overload_complaint>: Declare.
7374 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7375 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7376 Rename from dwarf2_section_buffer_overflow_complaint.
7377 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7378 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7379
7380 2020-03-26 Tom Tromey <tom@tromey.com>
7381
7382 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7383 Declare.
7384 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7385 Move from read.c.
7386 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7387 to section.c.
7388
7389 2020-03-26 Tom Tromey <tom@tromey.com>
7390
7391 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7392
7393 2020-03-26 Tom Tromey <tom@tromey.com>
7394
7395 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7396 "builder".
7397 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7398 parameter.
7399 (dwarf_decode_macros): Update.
7400
7401 2020-03-26 Tom Tromey <tom@tromey.com>
7402
7403 * dwarf2/read.c (read_attribute_value): Update.
7404 (read_indirect_string_from_dwz): Move to dwz.c; change into
7405 method.
7406 (dwarf_decode_macro_bytes): Update.
7407 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7408 * dwarf2/dwz.c: New file.
7409 * Makefile.in (COMMON_SFILES): Add dwz.c.
7410
7411 2020-03-26 Tom Tromey <tom@tromey.com>
7412
7413 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7414 * dwarf2/read.c: Add include.
7415 * dwarf2/index-write.c: Add include.
7416 * dwarf2/index-cache.c: Add include.
7417 * dwarf2/dwz.h: New file.
7418
7419 2020-03-25 Tom Tromey <tom@tromey.com>
7420
7421 * compile/compile-object-load.c (get_out_value_type): Mention
7422 correct symbol name in error message.
7423
7424 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7425
7426 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7427
7428 2020-03-25 Tom de Vries <tdevries@suse.de>
7429
7430 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7431 * symmisc.c (dump_symtab_1): Print user and includes fields.
7432 (maintenance_info_symtabs): Same.
7433
7434 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7435
7436 PR gdb/25534
7437 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7438 (riscv_regcache_cooked_write): New function.
7439 (riscv_push_dummy_call): Use new function.
7440 (riscv_return_value): Likewise.
7441
7442 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7443
7444 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7445 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7446 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7447 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7448 * infrun.c (follow_fork): Likewise.
7449 (follow_fork_inferior): Likewise.
7450 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7451 * linux-nat.h (class linux_nat_target): Likewise.
7452 * remote.c (class remote_target) <follow_fork>: Likewise.
7453 (remote_target::follow_fork): Likewise.
7454 * target-delegates.c: Re-generate.
7455 * target.c (default_follow_fork): Likewise.
7456 (target_follow_fork): Likewise.
7457 * target.h (struct target_ops) <follow_fork>: Likewise.
7458 (target_follow_fork): Likewise.
7459
7460 2020-03-24 Tom de Vries <tdevries@suse.de>
7461
7462 * psymtab.c (maintenance_info_psymtabs): Print user field.
7463
7464 2020-03-20 Tom Tromey <tromey@adacore.com>
7465
7466 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7467 const.
7468 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7469 const.
7470
7471 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7472
7473 * ptrace.m4: Don't check for ptrace declaration.
7474 * config.in: Re-generate.
7475 * configure: Re-generate.
7476 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7477 not defined.
7478
7479 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7480
7481 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7482 `PTRACE_TYPE_RET'.
7483 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7484 * sparc-nat.c (gdb_ptrace): Likewise.
7485 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7486
7487 2020-03-20 Tom Tromey <tromey@adacore.com>
7488
7489 * c-exp.y (lex_one_token): Fix assert.
7490
7491 2020-03-20 Tom Tromey <tromey@adacore.com>
7492
7493 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7494 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7495 strncpy call.
7496
7497 2020-03-20 Tom Tromey <tromey@adacore.com>
7498
7499 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7500
7501 2020-03-20 Tom Tromey <tromey@adacore.com>
7502
7503 * ada-valprint.c (print_variant_part): Remove parameters; switch
7504 to value-based API.
7505 (print_field_values): Likewise.
7506 (ada_val_print_struct_union): Likewise.
7507 (ada_value_print_1): Update.
7508
7509 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7510
7511 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7512 nbsd_nat_target instead of inf_ptrace_target.
7513 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7514 nbsd_nat_target.
7515
7516 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7517
7518 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7519 it to the ptrace call.
7520 * (store_registers): Likewise.
7521
7522 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7523
7524 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7525 it to the ptrace call.
7526 * (store_registers): Likewise.
7527
7528 2020-03-19 Luis Machado <luis.machado@linaro.org>
7529
7530 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7531 valid, fetch vg value from ptrace.
7532
7533 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7534 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7535 * inf-ptrace.c: Likewise.
7536 * (gdb_ptrace): Add.
7537 * (inf_ptrace_target::resume): Update.
7538 * (inf_ptrace_target::xfer_partial): Likewise.
7539 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7540 * (inf_ptrace_peek_poke): Update.
7541
7542 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7543
7544 * x86-bsd-nat.c (gdb_ptrace): New.
7545 * (x86bsd_dr_set): Add new argument `ptid'.
7546 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7547 x86bsd_dr_set_addr): Update.
7548
7549 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7550
7551 * remote.c (remote_target::process_stop_reply): Handle events for
7552 all threads differently.
7553
7554 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7555
7556 * completer.c (completion_tracker::remove_completion): Define new
7557 function.
7558 * completer.h (completion_tracker::remove_completion): Declare new
7559 function.
7560 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7561 when adding a C++ function symbol.
7562
7563 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7564
7565 * completer.c (completion_tracker::completion_hash_entry): Define
7566 new class.
7567 (advance_to_filename_complete_word_point): Call
7568 recompute_lowest_common_denominator.
7569 (completion_tracker::completion_tracker): Call discard_completions
7570 to setup the hash table.
7571 (completion_tracker::discard_completions): Allow for being called
7572 from the constructor, pass new equal function, and element deleter
7573 when constructing the hash table. Initialise new class member
7574 variables.
7575 (completion_tracker::maybe_add_completion): Remove use of
7576 m_entries_vec, and store more information into m_entries_hash.
7577 (completion_tracker::recompute_lcd_visitor): New function, most
7578 content taken from...
7579 (completion_tracker::recompute_lowest_common_denominator):
7580 ...here, this now just visits each item in the hash calling the
7581 above visitor.
7582 (completion_tracker::build_completion_result): Remove use of
7583 m_entries_vec, call recompute_lowest_common_denominator.
7584 * completer.h (completion_tracker::have_completions): Remove use
7585 of m_entries_vec.
7586 (completion_tracker::completion_hash_entry): Declare new class.
7587 (completion_tracker::recompute_lowest_common_denominator): Change
7588 function signature.
7589 (completion_tracker::recompute_lcd_visitor): Declare new function.
7590 (completion_tracker::m_entries_vec): Delete.
7591 (completion_tracker::m_entries_hash): Initialize to NULL.
7592 (completion_tracker::m_lowest_common_denominator_valid): New
7593 member variable.
7594 (completion_tracker::m_lowest_common_denominator_max_length): New
7595 member variable.
7596
7597 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7598
7599 * regformats/regdef.h: Put reg in gdb namespace.
7600
7601 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7602
7603 * i386-bsd-nat.c (gdb_ptrace): New.
7604 * (i386bsd_fetch_inferior_registers,
7605 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7606 * (i386bsd_fetch_inferior_registers,
7607 i386bsd_store_inferior_registers) Use gdb_ptrace.
7608
7609 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7610
7611 * amd64-bsd-nat.c (gdb_ptrace): New.
7612 * (amd64bsd_fetch_inferior_registers,
7613 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7614 * (amd64bsd_fetch_inferior_registers,
7615 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7616
7617 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7618
7619 * user-regs.c (user_reg::read): Rename to...
7620 (user_reg::xread): ...this.
7621 * (append_user_reg): Rename argument `read' to `xread'.
7622 * (user_reg_add_builtin): Likewise.
7623 * (user_reg_add): Likewise.
7624 * (value_of_user_reg): Likewise.
7625
7626 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7627
7628 * sparc-nat.c (gdb_ptrace): New.
7629 * sparc-nat.c (sparc_fetch_inferior_registers)
7630 (sparc_store_inferior_registers) Remove obsolete comment.
7631 * sparc-nat.c (sparc_fetch_inferior_registers)
7632 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7633 * sparc-nat.c (sparc_fetch_inferior_registers)
7634 (sparc_store_inferior_registers) Use gdb_ptrace.
7635
7636 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7637
7638 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7639 it to the ptrace call.
7640 * sh-nbsd-nat.c (store_registers): Likewise.
7641
7642 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7643
7644 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7645 nbsd_nat_target instead of inf_ptrace_target.
7646 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7647 nbsd_nat_target.
7648
7649 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7650
7651 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7652
7653 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7654
7655 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7656 <sys/sysctl.h>.
7657 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7658
7659 2020-03-17 Tom de Vries <tdevries@suse.de>
7660
7661 PR gdb/23710
7662 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7663 fields.
7664 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7665 fields.
7666 (process_imported_unit_die): Skip import of c++ CUs.
7667
7668 2020-03-16 Tom Tromey <tom@tromey.com>
7669
7670 * p-valprint.c (pascal_object_print_value): Initialize
7671 base_value.
7672
7673 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7674 Shahab Vahedi <shahab@synopsys.com>
7675
7676 * Makefile.in: Add arch/arc.o
7677 * configure.tgt: Likewise.
7678 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7679 (_initialize_arc_tdep): Don't initialize old target descriptions.
7680 (arc_read_description): New function to cache target descriptions.
7681 * arc-tdep.h (arc_read_description): Add proto type.
7682 * arch/arc.c: New file.
7683 * arch/arc.h: Likewise.
7684 * features/Makefile: Replace old target descriptions with new.
7685 * features/arc-arcompact.c: Remove.
7686 * features/arc-arcompact.xml: Likewise.
7687 * features/arc-v2.c: Likewise
7688 * features/arc-v2.xml: Likewise
7689 * features/arc/aux-arcompact.xml: New file.
7690 * features/arc/aux-v2.xml: Likewise.
7691 * features/arc/core-arcompact.xml: Likewise.
7692 * features/arc/core-v2.xml: Likewise.
7693 * features/arc/aux-arcompact.c: Generate.
7694 * features/arc/aux-v2.c: Likewise.
7695 * features/arc/core-arcompact.c: Likewise.
7696 * features/arc/core-v2.c: Likewise.
7697 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7698
7699 2020-03-16 Tom Tromey <tromey@adacore.com>
7700
7701 PR gdb/25663:
7702 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7703 putting value into bcache.
7704
7705 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7706
7707 PR gdb/21500
7708 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7709 to...
7710 (amd64_windows_init_abi_common): ... this. Don't set size of
7711 long type.
7712 (amd64_windows_init_abi): New function.
7713 (amd64_cygwin_init_abi): New function.
7714 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7715 the Cygwin OS ABI.
7716 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7717 comment.
7718
7719 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7720
7721 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7722 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7723 (pe_import_directory_entry): New struct type.
7724 (is_linked_with_cygwin_dll): New function.
7725 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7726 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7727 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7728
7729 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7730
7731 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7732 i386_cygwin_core_osabi_sniffer.
7733
7734 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7735
7736 * i386-cygwin-tdep.c: Rename to...
7737 * i386-windows-tdep.c: ... this.
7738 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7739 i386-windows-tdep.c.
7740 * configure.tgt: Likewise.
7741
7742 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7743
7744 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7745 * osabi.c (gdb_osabi_names): Add "Windows".
7746 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7747 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7748 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7749 i386_cygwin_osabi_sniffer.
7750 (_initialize_i386_cygwin_tdep): Register OS ABI
7751 GDB_OSABI_WINDOWS for i386.
7752 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7753 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7754 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7755 for x86-64.
7756 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7757 when the target matches '*-*-mingw*'.
7758
7759 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7760
7761 * defs.h (enum gdb_osabi): Move to...
7762 * osabi.h (enum gdb_osabi): ... here.
7763 * gdbarch.sh: Include osabi.h in gdbarch.h.
7764 * gdbarch.h: Re-generate.
7765
7766 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7767
7768 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7769 function.
7770 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7771
7772 2020-03-14 Tom Tromey <tom@tromey.com>
7773
7774 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7775 for C++.
7776 (c_type_print_modifier): Likewise. Add "language" parameter.
7777 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7778 (c_type_print_base_1): Update.
7779 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7780 constants.
7781 * type-stack.c (type_stack::insert): Handle tp_atomic and
7782 tp_restrict.
7783 (type_stack::follow_type_instance_flags): Likewise.
7784 (type_stack::follow_types): Likewise. Merge type-following code.
7785 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7786 (space_identifier, cv_with_space_id)
7787 (const_or_volatile_or_space_identifier_noopt)
7788 (const_or_volatile_or_space_identifier): Remove.
7789 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7790 rules.
7791 (ptr_operator, typebase): Update.
7792 (enum token_flag) <FLAG_C>: New constant.
7793 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7794 "_Atomic".
7795 (lex_one_token): Handle FLAG_C.
7796
7797 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7798
7799 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7800 it to the ptrace call.
7801 * m68k-bsd-nat.c (store_registers): Likewise.
7802
7803 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7804
7805 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7806 gdb_byte *.
7807 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7808 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7809 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7810
7811 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7812
7813 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7814 nbsd_nat_target instead of inf_ptrace_target.
7815 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7816 nbsd_nat_target.
7817
7818 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7819
7820 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7821 register_t.
7822
7823 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7824
7825 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7826 it to the ptrace call.
7827 * alpha-bsd-nat.c (store_registers): Likewise.
7828
7829 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7830
7831 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7832 includes.
7833 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7834 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7835 fill_fpregset): Likewise.
7836
7837 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7838
7839 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7840 nbsd_nat_target instead of inf_ptrace_target.
7841 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7842 nbsd_nat_target.
7843
7844 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7845
7846 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7847 register_t.
7848
7849 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7850
7851 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7852 it to the ptrace call.
7853 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7854 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7855 * arm-nbsd-nat.c (store_register): Likewise.
7856 * arm-nbsd-nat.c (store_regs): Likewise.
7857 * arm-nbsd-nat.c (store_fp_register): Likewise.
7858 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7859
7860 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7861
7862 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7863 nbsd_nat_target instead of inf_ptrace_target.
7864 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7865 nbsd_nat_target.
7866
7867 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7868
7869 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7870 it to the ptrace call.
7871 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7872
7873 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7874
7875 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7876 it to the ptrace call.
7877 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7878
7879 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7880
7881 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7882 gdb_byte *.
7883 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7884
7885 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7886
7887 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7888 instead of inf_ptrace_target.
7889 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7890 nbsd_nat_target.
7891
7892 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7893
7894 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7895 register_t.
7896
7897 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7898
7899 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7900 register_t.
7901
7902 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7903
7904 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7905 register_t.
7906
7907 2020-03-13 Tom Tromey <tom@tromey.com>
7908
7909 * value.h (val_print): Don't declare.
7910 * valprint.h (val_print_array_elements)
7911 (val_print_scalar_formatted, generic_val_print): Don't declare.
7912 * valprint.c (generic_val_print_array): Take a struct value.
7913 (generic_val_print_ptr, generic_val_print_memberptr)
7914 (generic_val_print_bool, generic_val_print_int)
7915 (generic_val_print_char, generic_val_print_complex)
7916 (generic_val_print): Remove.
7917 (generic_value_print): Update.
7918 (do_val_print): Remove unused parameters. Don't call
7919 la_val_print.
7920 (val_print): Remove.
7921 (common_val_print): Update. Don't call value_check_printable.
7922 (val_print_scalar_formatted, val_print_array_elements): Remove.
7923 * rust-lang.c (rust_val_print): Remove.
7924 (rust_language_defn): Update.
7925 * p-valprint.c (pascal_val_print): Remove.
7926 (pascal_value_print_inner): Update.
7927 (pascal_object_print_val_fields, pascal_object_print_val):
7928 Remove.
7929 (pascal_object_print_static_field): Update.
7930 * p-lang.h (pascal_val_print): Don't declare.
7931 * p-lang.c (pascal_language_defn): Update.
7932 * opencl-lang.c (opencl_language_defn): Update.
7933 * objc-lang.c (objc_language_defn): Update.
7934 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7935 * m2-lang.h (m2_val_print): Don't declare.
7936 * m2-lang.c (m2_language_defn): Update.
7937 * language.h (struct language_defn) <la_val_print>: Remove.
7938 * language.c (unk_lang_value_print_inner): Rename. Change
7939 argument types.
7940 (unknown_language_defn, auto_language_defn): Update.
7941 * go-valprint.c (go_val_print): Remove.
7942 * go-lang.h (go_val_print): Don't declare.
7943 * go-lang.c (go_language_defn): Update.
7944 * f-valprint.c (f_val_print): Remove.
7945 * f-lang.h (f_value_print): Don't declare.
7946 * f-lang.c (f_language_defn): Update.
7947 * d-valprint.c (d_val_print): Remove.
7948 * d-lang.h (d_value_print): Don't declare.
7949 * d-lang.c (d_language_defn): Update.
7950 * cp-valprint.c (cp_print_value_fields)
7951 (cp_print_value_fields_rtti, cp_print_value): Remove.
7952 (cp_print_static_field): Update.
7953 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7954 (c_val_print_struct, c_val_print_union, c_val_print_int)
7955 (c_val_print_memberptr, c_val_print): Remove.
7956 * c-lang.h (c_val_print_array, cp_print_value_fields)
7957 (cp_print_value_fields_rtti): Don't declare.
7958 * c-lang.c (c_language_defn, cplus_language_defn)
7959 (asm_language_defn, minimal_language_defn): Update.
7960 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7961 (ada_val_print_enum): Take a struct value.
7962 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7963 (ada_val_print): Remove.
7964 (ada_value_print_1): Update.
7965 (printable_val_type): Remove.
7966 * ada-lang.h (ada_val_print): Don't declare.
7967 * ada-lang.c (ada_language_defn): Update.
7968
7969 2020-03-13 Tom Tromey <tom@tromey.com>
7970
7971 * valprint.c (do_val_print): Update.
7972 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7973 a struct value.
7974 (value_to_value_object_no_release): Declare.
7975 * python/py-value.c (value_to_value_object_no_release): New
7976 function.
7977 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7978 struct value.
7979 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7980 function.
7981 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7982 a struct value.
7983 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7984 Declare.
7985 (gdbscm_apply_val_pretty_printer): Take a struct value.
7986 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7987 value.
7988 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7989 value.
7990 * extension-priv.h (struct extension_language_ops)
7991 <apply_val_pretty_printer>: Take a struct value.
7992 * cp-valprint.c (cp_print_value): Create a struct value.
7993 (cp_print_value): Update.
7994
7995 2020-03-13 Tom Tromey <tom@tromey.com>
7996
7997 * ada-valprint.c (print_field_values): Call common_val_print.
7998
7999 2020-03-13 Tom Tromey <tom@tromey.com>
8000
8001 * ada-valprint.c (val_print_packed_array_elements): Remove
8002 bitoffset and val parameters. Call common_val_print.
8003 (ada_val_print_string): Remove offset, address, and original_value
8004 parameters.
8005 (ada_val_print_array): Update.
8006 (ada_value_print_array): New function.
8007 (ada_value_print_1): Call it.
8008
8009 2020-03-13 Tom Tromey <tom@tromey.com>
8010
8011 * ada-valprint.c (ada_value_print): Use common_val_print.
8012
8013 2020-03-13 Tom Tromey <tom@tromey.com>
8014
8015 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8016
8017 2020-03-13 Tom Tromey <tom@tromey.com>
8018
8019 * ada-valprint.c (ada_value_print_num): New function.
8020 (ada_value_print_1): Use it.
8021
8022 2020-03-13 Tom Tromey <tom@tromey.com>
8023
8024 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8025
8026 2020-03-13 Tom Tromey <tom@tromey.com>
8027
8028 * ada-valprint.c (ada_value_print_ptr): New function.
8029 (ada_value_print_1): Use it.
8030
8031 2020-03-13 Tom Tromey <tom@tromey.com>
8032
8033 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8034 call common_val_print.
8035 (ada_val_print_1): Update.
8036 (ada_value_print_1): New function.
8037 (ada_value_print_inner): Rewrite.
8038
8039 2020-03-13 Tom Tromey <tom@tromey.com>
8040
8041 * cp-valprint.c (cp_print_value_fields): Update.
8042 (cp_print_value): New function.
8043
8044 2020-03-13 Tom Tromey <tom@tromey.com>
8045
8046 * m2-valprint.c (m2_value_print_inner): Use
8047 cp_print_value_fields.
8048 * cp-valprint.c (cp_print_value_fields): New function.
8049 * c-valprint.c (c_value_print_struct): New function.
8050 (c_value_print_inner): Use c_value_print_struct.
8051 * c-lang.h (cp_print_value_fields): Declare.
8052
8053 2020-03-13 Tom Tromey <tom@tromey.com>
8054
8055 * c-valprint.c (c_value_print_array): New function.
8056 (c_value_print_inner): Use it.
8057
8058 2020-03-13 Tom Tromey <tom@tromey.com>
8059
8060 * c-valprint.c (c_value_print_memberptr): New function.
8061 (c_value_print_inner): Use it.
8062
8063 2020-03-13 Tom Tromey <tom@tromey.com>
8064
8065 * c-valprint.c (c_value_print_int): New function.
8066 (c_value_print_inner): Use it.
8067
8068 2020-03-13 Tom Tromey <tom@tromey.com>
8069
8070 * c-valprint.c (c_value_print_ptr): New function.
8071 (c_value_print_inner): Use it.
8072
8073 2020-03-13 Tom Tromey <tom@tromey.com>
8074
8075 * c-valprint.c (c_value_print_inner): Rewrite.
8076
8077 2020-03-13 Tom Tromey <tom@tromey.com>
8078
8079 * valprint.c (generic_value_print_complex): New function.
8080 (generic_value_print): Use it.
8081
8082 2020-03-13 Tom Tromey <tom@tromey.com>
8083
8084 * valprint.c (generic_val_print_float): Don't call
8085 val_print_scalar_formatted.
8086 (generic_val_print, generic_value_print): Update.
8087
8088 2020-03-13 Tom Tromey <tom@tromey.com>
8089
8090 * valprint.c (generic_value_print_char): New function
8091 (generic_value_print): Use it.
8092
8093 2020-03-13 Tom Tromey <tom@tromey.com>
8094
8095 * valprint.c (generic_value_print_int): New function.
8096 (generic_value_print): Use it.
8097
8098 2020-03-13 Tom Tromey <tom@tromey.com>
8099
8100 * valprint.c (generic_value_print_bool): New function.
8101 (generic_value_print): Use it.
8102
8103 2020-03-13 Tom Tromey <tom@tromey.com>
8104
8105 * valprint.c (generic_val_print_func): Simplify.
8106 (generic_val_print, generic_value_print): Update.
8107
8108 2020-03-13 Tom Tromey <tom@tromey.com>
8109
8110 * valprint.c (generic_val_print_flags): Remove.
8111 (generic_val_print, generic_value_print): Update.
8112 (val_print_type_code_flags): Add original_value parameter.
8113
8114 2020-03-13 Tom Tromey <tom@tromey.com>
8115
8116 * valprint.c (generic_val_print): Update.
8117 (generic_value_print): Update.
8118 * valprint.c (generic_val_print_enum): Don't call
8119 val_print_scalar_formatted.
8120
8121 2020-03-13 Tom Tromey <tom@tromey.com>
8122
8123 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8124 * valprint.c (generic_value_print_ptr): New function.
8125
8126 2020-03-13 Tom Tromey <tom@tromey.com>
8127
8128 * valprint.c (generic_value_print): Rewrite.
8129
8130 2020-03-13 Tom Tromey <tom@tromey.com>
8131
8132 * p-valprint.c (pascal_object_print_value_fields)
8133 (pascal_object_print_value): New functions.
8134
8135 2020-03-13 Tom Tromey <tom@tromey.com>
8136
8137 * p-valprint.c (pascal_value_print_inner): Rewrite.
8138
8139 2020-03-13 Tom Tromey <tom@tromey.com>
8140
8141 * f-valprint.c (f_value_print_innner): Rewrite.
8142
8143 2020-03-13 Tom Tromey <tom@tromey.com>
8144
8145 * m2-valprint.c (m2_print_unbounded_array): New overload.
8146 (m2_print_unbounded_array): Update.
8147 (m2_print_array_contents): Take a struct value.
8148 (m2_value_print_inner): Rewrite.
8149
8150 2020-03-13 Tom Tromey <tom@tromey.com>
8151
8152 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8153 (d_value_print_inner): New function.
8154 * d-lang.h (d_value_print_inner): Declare.
8155 * d-lang.c (d_language_defn): Use d_value_print_inner.
8156
8157 2020-03-13 Tom Tromey <tom@tromey.com>
8158
8159 * go-valprint.c (go_value_print_inner): New function.
8160 * go-lang.h (go_value_print_inner): Declare.
8161 * go-lang.c (go_language_defn): Use go_value_print_inner.
8162
8163 2020-03-13 Tom Tromey <tom@tromey.com>
8164
8165 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8166 API.
8167 (rust_val_print): Rewrite.
8168 (rust_value_print_inner): New function, from rust_val_print.
8169 (rust_language_defn): Use rust_value_print_inner.
8170
8171 2020-03-13 Tom Tromey <tom@tromey.com>
8172
8173 * ada-valprint.c (ada_value_print_inner): New function.
8174 * ada-lang.h (ada_value_print_inner): Declare.
8175 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8176
8177 2020-03-13 Tom Tromey <tom@tromey.com>
8178
8179 * f-valprint.c (f_value_print_innner): New function.
8180 * f-lang.h (f_value_print_innner): Declare.
8181 * f-lang.c (f_language_defn): Use f_value_print_innner.
8182
8183 2020-03-13 Tom Tromey <tom@tromey.com>
8184
8185 * p-valprint.c (pascal_value_print_inner): New function.
8186 * p-lang.h (pascal_value_print_inner): Declare.
8187 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8188
8189 2020-03-13 Tom Tromey <tom@tromey.com>
8190
8191 * m2-valprint.c (m2_value_print_inner): New function.
8192 * m2-lang.h (m2_value_print_inner): Declare.
8193 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8194
8195 2020-03-13 Tom Tromey <tom@tromey.com>
8196
8197 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8198 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8199 * c-valprint.c (c_value_print_inner): New function.
8200 * c-lang.h (c_value_print_inner): Declare.
8201 * c-lang.c (c_language_defn, cplus_language_defn)
8202 (asm_language_defn, minimal_language_defn): Use
8203 c_value_print_inner.
8204
8205 2020-03-13 Tom Tromey <tom@tromey.com>
8206
8207 * p-valprint.c (pascal_object_print_value_fields): Now static.
8208 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8209
8210 2020-03-13 Tom Tromey <tom@tromey.com>
8211
8212 * c-valprint.c (c_val_print_array): Simplify.
8213
8214 2020-03-13 Tom Tromey <tom@tromey.com>
8215
8216 * valprint.c (value_print_array_elements): New function.
8217 * valprint.h (value_print_array_elements): Declare.
8218
8219 2020-03-13 Tom Tromey <tom@tromey.com>
8220
8221 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8222 * mips-tdep.c (mips_print_register): Use
8223 value_print_scalar_formatted.
8224
8225 2020-03-13 Tom Tromey <tom@tromey.com>
8226
8227 * valprint.h (value_print_scalar_formatted): Declare.
8228 * valprint.c (value_print_scalar_formatted): New function.
8229
8230 2020-03-13 Tom Tromey <tom@tromey.com>
8231
8232 * valprint.h (generic_value_print): Declare.
8233 * valprint.c (generic_value_print): New function.
8234
8235 2020-03-13 Tom Tromey <tom@tromey.com>
8236
8237 * valprint.c (do_val_print): Call la_value_print_inner, if
8238 available.
8239 * rust-lang.c (rust_language_defn): Update.
8240 * p-lang.c (pascal_language_defn): Update.
8241 * opencl-lang.c (opencl_language_defn): Update.
8242 * objc-lang.c (objc_language_defn): Update.
8243 * m2-lang.c (m2_language_defn): Update.
8244 * language.h (struct language_defn) <la_value_print_inner>: New
8245 member.
8246 * language.c (unknown_language_defn, auto_language_defn): Update.
8247 * go-lang.c (go_language_defn): Update.
8248 * f-lang.c (f_language_defn): Update.
8249 * d-lang.c (d_language_defn): Update.
8250 * c-lang.c (c_language_defn, cplus_language_defn)
8251 (asm_language_defn, minimal_language_defn): Update.
8252 * ada-lang.c (ada_language_defn): Update.
8253
8254 2020-03-13 Tom Tromey <tom@tromey.com>
8255
8256 * c-valprint.c (c_value_print): Use common_val_print.
8257
8258 2020-03-13 Tom Tromey <tom@tromey.com>
8259
8260 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8261
8262 2020-03-13 Tom Tromey <tom@tromey.com>
8263
8264 * f-valprint.c (f77_print_array_1, f_val_print): Use
8265 common_val_print.
8266
8267 2020-03-13 Tom Tromey <tom@tromey.com>
8268
8269 * riscv-tdep.c (riscv_print_one_register_info): Use
8270 common_val_print.
8271
8272 2020-03-13 Tom Tromey <tom@tromey.com>
8273
8274 * mi/mi-main.c (output_register): Use common_val_print.
8275
8276 2020-03-13 Tom Tromey <tom@tromey.com>
8277
8278 * infcmd.c (default_print_one_register_info): Use
8279 common_val_print.
8280
8281 2020-03-13 Tom Tromey <tom@tromey.com>
8282
8283 * valprint.h (common_val_print_checked): Declare.
8284 * valprint.c (common_val_print_checked): New function.
8285 * stack.c (print_frame_arg): Use common_val_print_checked.
8286
8287 2020-03-13 Tom Tromey <tom@tromey.com>
8288
8289 * valprint.c (do_val_print): New function, from val_print.
8290 (val_print): Use do_val_print.
8291 (common_val_print): Use do_val_print.
8292
8293 2020-03-13 Tom Tromey <tom@tromey.com>
8294
8295 * valprint.c (value_print): Use scoped_value_mark.
8296
8297 2020-03-13 Tom de Vries <tdevries@suse.de>
8298
8299 PR symtab/25646
8300 * psymtab.c (partial_symtab::partial_symtab): Don't set
8301 globals_offset and statics_offset. Push element onto
8302 current_global_psymbols and current_static_psymbols stacks.
8303 (concat): New function.
8304 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8305 element from current_global_psymbols and current_static_psymbols
8306 stacks. Concat popped elements to global_psymbols and
8307 static_symbols.
8308 (add_psymbol_to_list): Use current_global_psymbols and
8309 current_static_psymbols stacks.
8310 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8311 current_static_psymbols fields.
8312
8313 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8314
8315 * corelow.c (sniff_core_bfd): Remove.
8316 (class core_target) <m_core_vec>: Remove.
8317 (core_target::core_target): Update.
8318 (core_file_fns): Remove.
8319 (deprecated_add_core_fns): Remove.
8320 (default_core_sniffer): Remove.
8321 (sniff_core_bfd): Remove.
8322 (default_check_format): Remove.
8323 (gdb_check_format): Remove.
8324 (core_target_open): Update.
8325 (core_target::get_core_register_section): Update.
8326 (get_core_registers_cb): Update.
8327 (core_target::fetch_registers): Update.
8328 * gdbcore.h (struct core_fns): Remove.
8329 (deprecated_add_core_fns): Remove.
8330 (default_core_sniffer): Remove.
8331 (default_check_format): Remove.
8332
8333 2020-03-12 Tom Tromey <tom@tromey.com>
8334
8335 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8336 CORE_ADDR.
8337 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8338
8339 2020-03-12 Tom Tromey <tom@tromey.com>
8340
8341 * remote.c (remote_target::download_tracepoint)
8342 (remote_target::enable_tracepoint)
8343 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8344 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8345 sprintf_vma.
8346
8347 2020-03-12 Tom Tromey <tom@tromey.com>
8348
8349 * symfile-mem.c: Update CORE_ADDR size assert.
8350
8351 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8352
8353 * selftest.m4: Move to gdbsupport/.
8354 * acinclude.m4: Update path to selftest.m4.
8355
8356 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8357
8358 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8359 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8360 gdbarch-selfselftests.c and selftest-arch.c.
8361 (SUBDIR_UNITTESTS_OBS): Rename to...
8362 (SELFTESTS_OBS): ... this.
8363 (COMMON_SFILES): Remove disasm-selftests.c and
8364 gdbarch-selftests.c.
8365 * configure.ac: Don't add selftest-arch.{c,o} to
8366 CONFIG_{SRCS,OBS}.
8367 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8368 preprocessor conditions.
8369
8370 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8371
8372 * configure.ac: Don't source bfd/development.sh.
8373 * selftest.m4: Modify comment.
8374 * configure: Re-generate.
8375
8376 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8377
8378 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8379 not "true" or "false".
8380 * configure: Re-generate.
8381
8382 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8383
8384 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8385 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8386 renamed to arm_nbsd_supply_gregset.
8387 (fetch_register): Update to call arm_nbsd_supply_gregset.
8388 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8389 (arm_netbsd_nat_target::fetch_registers): Update.
8390 (fetch_elfcore_registers): Removed.
8391 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8392 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8393 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8394 not require NetBSD system headers.
8395 (arm_nbsd_regset): New struct.
8396 (arm_nbsd_iterate_over_regset_sections): New function.
8397 (arm_netbsd_init_abi_common): Updated to call
8398 set_gdbarch_iterate_over_regset_sections.
8399 * arm-nbsd-tdep.h: New file.
8400
8401 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8402
8403 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8404 recursion.
8405
8406 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8407
8408 * configure: Re-generate.
8409
8410 2020-03-11 Tom Tromey <tromey@adacore.com>
8411
8412 * ada-typeprint.c (print_choices): Fix comment.
8413
8414 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8415
8416 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8417 previous item in the list, when the list has no items.
8418
8419 2020-03-11 Tom de Vries <tdevries@suse.de>
8420
8421 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8422 PROP_LOCLIST handling code.
8423
8424 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8425
8426 * buildsym-legacy.c (record_line): Pass extra parameter to
8427 record_line.
8428 * buildsym.c (buildsym_compunit::record_line): Take an extra
8429 parameter, reduce duplication in the line table, and record the
8430 is_stmt flag in the line table.
8431 * buildsym.h (buildsym_compunit::record_line): Add extra
8432 parameter.
8433 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8434 non-statement lines.
8435 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8436 this to the symtab builder.
8437 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8438 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8439 through to dwarf_record_line_1.
8440 * infrun.c (process_event_stop_test): When stepping, don't stop at
8441 a non-statement instruction, and only refresh the step info when
8442 we land in the middle of a line's range. Also add an extra
8443 comment.
8444 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8445 field.
8446 * record-btrace.c (btrace_find_line_range): Only record lines
8447 marked as is-statement.
8448 * stack.c (frame_show_address): Show the frame address if we are
8449 in a non-statement sal.
8450 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8451 (maintenance_print_one_line_table): Print a header for the is_stmt
8452 column, and include is_stmt information in the output.
8453 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8454 preference to non-statements.
8455 (find_pcs_for_symtab_line): Prefer is-statement entries.
8456 (find_line_common): Likewise.
8457 * symtab.h (struct linetable_entry): Add is_stmt field.
8458 (struct symtab_and_line): Likewise.
8459 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8460 arranging the line table.
8461
8462 2020-03-07 Tom de Vries <tdevries@suse.de>
8463
8464 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8465 DIE.
8466
8467 2020-03-07 Tom Tromey <tom@tromey.com>
8468
8469 * valops.c (value_literal_complex): Remove obsolete comment.
8470 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8471 comment.
8472
8473 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8474
8475 * infrun.h: Forward-declare thread_info.
8476 (set_step_info): Add thread_info parameter, add doc.
8477 * infrun.c (set_step_info): Add thread_info parameter, move doc
8478 to header.
8479 * infrun.c (process_event_stop_test): Pass thread to
8480 set_step_info call.
8481 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8482 set_step_info.
8483 (prepare_one_step): Add thread_info parameter, pass it to
8484 set_step_frame and prepare_one_step (recursive) call.
8485 (step_1): Pass thread to prepare_one_step call.
8486 (step_command_fsm::should_stop): Pass thread to
8487 prepare_one_step.
8488 (until_next_fsm): Pass thread to set_step_frame call.
8489 (finish_command): Pass thread to set_step_info call.
8490
8491 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8492
8493 * windows-tdep.c (windows_solib_create_inferior_hook):
8494 Check if inferior is running.
8495
8496 2020-03-06 Tom de Vries <tdevries@suse.de>
8497
8498 * NEWS: Fix "the the".
8499 * ctfread.c: Same.
8500
8501 2020-03-06 Tom de Vries <tdevries@suse.de>
8502
8503 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8504
8505 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8506
8507 * .dir-locals.el: Add a comment referencing the other copies of
8508 this file.
8509
8510 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8511
8512 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8513 psargs.
8514
8515 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8516
8517 * .gitattributes: New file.
8518
8519 2020-03-04 Tom Tromey <tom@tromey.com>
8520
8521 * symmisc.c (print_symbol_bcache_statistics)
8522 (print_objfile_statistics): Update.
8523 * symfile.c (allocate_symtab): Use intern.
8524 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8525 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8526 macro_cache>: Remove.
8527 <string_cache>: New member.
8528 (struct objfile) <intern>: New methods.
8529 * elfread.c (elf_symtab_read): Use intern.
8530 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8531 (dwarf2_compute_name, dwarf2_physname)
8532 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8533 names.
8534 (guess_partial_die_structure_name): Update.
8535 (partial_die_info::fixup): Intern name.
8536 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8537 name.
8538 (dwarf2_name): Intern name. Update.
8539 * buildsym.c (buildsym_compunit::get_macro_table): Use
8540 string_cache.
8541
8542 2020-03-04 Tom Tromey <tom@tromey.com>
8543
8544 * jit.c (bfd_open_from_target_memory): Make "target" const.
8545 * corefile.c (gnutarget): Now const.
8546 * gdbcore.h (gnutarget): Now const.
8547
8548 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8549
8550 * NEWS: Mention support for WOW64 processes.
8551 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8552 (amd64_windows_segment_register_p): Remove static.
8553 (_initialize_amd64_windows_nat): Update.
8554 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8555 * i386-windows-nat.c (context_offset): Update.
8556 (i386_mappings): Rename and remove static.
8557 (i386_windows_segment_register_p): Remove static.
8558 (_initialize_i386_windows_nat): Update.
8559 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8560 (STATUS_WX86_SINGLE_STEP): New macro.
8561 (EnumProcessModulesEx): New macro.
8562 (Wow64SuspendThread): New macro.
8563 (Wow64GetThreadContext): New macro.
8564 (Wow64SetThreadContext): New macro.
8565 (Wow64GetThreadSelectorEntry): New macro.
8566 (windows_set_context_register_offsets): Add static.
8567 (windows_set_segment_register_p): Likewise.
8568 (windows_add_thread): Adapt for WOW64 processes.
8569 (windows_fetch_one_register): Likewise.
8570 (windows_nat_target::fetch_registers): Likewise.
8571 (windows_store_one_register): Likewise.
8572 (display_selector): Likewise.
8573 (display_selectors): Likewise.
8574 (handle_exception): Likewise.
8575 (windows_continue): Likewise.
8576 (windows_nat_target::resume): Likewise.
8577 (windows_add_all_dlls): Likewise.
8578 (do_initial_windows_stuff): Likewise.
8579 (windows_nat_target::attach): Likewise.
8580 (windows_get_exec_module_filename): Likewise.
8581 (windows_nat_target::create_inferior): Likewise.
8582 (windows_xfer_siginfo): Likewise.
8583 (_initialize_loadable): Initialize Wow64SuspendThread,
8584 Wow64GetThreadContext, Wow64SetThreadContext,
8585 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8586 * windows-nat.h (windows_set_context_register_offsets):
8587 Remove declaration.
8588 (windows_set_segment_register_p): Likewise.
8589 (i386_windows_segment_register_p): Add declaration.
8590 (amd64_windows_segment_register_p): Likewise.
8591
8592 2020-03-04 Luis Machado <luis.machado@linaro.org>
8593
8594 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8595 in "info registers" for AArch64/ARM.
8596
8597 The change caused "info registers" to not print GPR's.
8598
8599 gdb/ChangeLog:
8600
8601 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8602
8603 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8604 when reg->group is empty and reggroup is not.
8605
8606 2020-03-03 Tom Tromey <tromey@adacore.com>
8607
8608 * dwarf2/frame.c (struct dwarf2_frame_cache)
8609 <checked_tailcall_bottom, entry_cfa_sp_offset,
8610 entry_cfa_sp_offset_p>: Remove members.
8611 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8612 (dwarf2_frame_prev_register): Don't call
8613 dwarf2_tailcall_sniffer_first.
8614 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8615 * frame-unwind.c (add_unwinder): New fuction.
8616 (frame_unwind_init): Use it. Add tailcall unwinder.
8617
8618 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8619 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8620
8621 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8622 value should be printed as true.
8623
8624 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8625
8626 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8627 (windows_init_abi): Set and use windows_so_ops.
8628
8629 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8630
8631 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8632 when verifying if dealing with a convenience variable.
8633
8634 2020-03-03 Luis Machado <luis.machado@linaro.org>
8635
8636 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8637
8638 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8639
8640 * infrun.c (gdbarch_supports_displaced_stepping): New.
8641 (use_displaced_stepping): Break up conditions in smaller pieces.
8642 Use gdbarch_supports_displaced_stepping.
8643 (displaced_step_prepare_throw): Use
8644 gdbarch_supports_displaced_stepping.
8645
8646 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8647
8648 * NEWS: Mention new behaviour of the history filename.
8649 * top.c (write_history_p): Add comment.
8650 (show_write_history_p): Add header comment, give a different
8651 message when history writing is on, but the history filename is
8652 empty.
8653 (history_filename): Add comment.
8654 (history_filename_empty): New function.
8655 (show_history_filename): Add header comment, give a different
8656 message when the filename is empty.
8657 (init_history): Compare history_filename against nullptr, and only
8658 read history if the filename is not empty.
8659 (set_history_filename): Add header comment, and only make
8660 non-empty filenames absolute.
8661 (init_main): Make the filename argument to 'set history filename'
8662 optional.
8663
8664 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8665
8666 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8667 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8668 (fetch_fp_register): Update.
8669 (fetch_fp_regs): Update.
8670 (store_fp_register): Update.
8671 (store_fp_regs): Update.
8672 (arm_netbsd_nat_target::read_description): New function.
8673 (fetch_elfcore_registers): Update.
8674
8675 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8676
8677 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8678 general_thread if the stop reply is missing a thread-id.
8679 (remote_target::process_stop_reply): Use the first non-exited
8680 thread if the target didn't pass a thread-id.
8681 * infrun.c (do_target_wait): Move call to
8682 switch_to_inferior_no_thread to ....
8683 (do_target_wait_1): ... here.
8684
8685 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8686
8687 * debuginfod-support.c: Include defs.h first.
8688
8689 2020-02-28 Tom de Vries <tdevries@suse.de>
8690
8691 * symfile.c (set_initial_language): Use default language for lookup.
8692
8693 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8694
8695 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8696 reader variable, pass `this` to read_cutu_die_from_dwo.
8697
8698 2020-02-27 Aaron Merey <amerey@redhat.com>
8699
8700 * source.c (open_source_file): Check for nullptr when computing
8701 srcpath.
8702
8703 2020-02-27 Tom Tromey <tromey@adacore.com>
8704
8705 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8706 member.
8707 (dwarf2_add_field): Don't update nfields.
8708 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8709
8710 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8711
8712 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8713 abs.
8714
8715 2020-02-26 Tom Tromey <tom@tromey.com>
8716
8717 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8718 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8719 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8720 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8721 per_cu_data.
8722
8723 2020-02-26 Tom Tromey <tom@tromey.com>
8724
8725 * dwarf2/index-write.c (psym_index_map): Change type.
8726 (add_address_entry_worker, write_one_signatured_type)
8727 (recursively_count_psymbols, recursively_write_psymbols)
8728 (class debug_names, psyms_seen_size, write_gdbindex)
8729 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8730
8731 2020-02-26 Aaron Merey <amerey@redhat.com>
8732
8733 * Makefile.in: Handle optional debuginfod support.
8734 * NEWS: Update.
8735 * README: Add --with-debuginfod summary.
8736 * config.in: Regenerate.
8737 * configure: Regenerate.
8738 * configure.ac: Handle optional debuginfod support.
8739 * debuginfod-support.c: debuginfod helper functions.
8740 * debuginfod-support.h: Ditto.
8741 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8742 summary.
8743 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8744 when a dwz file cannot be found.
8745 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8746 debuginfo file cannot be found.
8747 * source.c (open_source_file): Query debuginfod servers when a
8748 source file cannot be found.
8749 * top.c (print_gdb_configuration): Include
8750 --{with,without}-debuginfod in the output.
8751
8752 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8753
8754 * thread.c (thr_try_catch_cmd): Print thread name.
8755
8756 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8757
8758 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8759 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8760 dwarf2_fetch_die_type_sect_off): Move to...
8761 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8762 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8763 dwarf2_fetch_die_type_sect_off): ... here.
8764 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8765 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8766 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8767
8768 2020-02-26 Tom de Vries <tdevries@suse.de>
8769
8770 PR gdb/25603
8771 * symfile.c (set_initial_language): Exit-early if
8772 language_mode == language_mode_manual.
8773
8774 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8775
8776 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8777 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8778 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8779
8780 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8781
8782 * gdbtypes.c (create_array_type_with_stride): Handle negative
8783 array strides.
8784 * valarith.c (value_subscripted_rvalue): Likewise.
8785
8786 2020-02-25 Luis Machado <luis.machado@linaro.org>
8787
8788 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8789
8790 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8791
8792 * loc.h (dwarf2_get_die_type): Move to...
8793 * read.h (dwarf2_get_die_type): ... here.
8794 * read.c (dwarf2_get_die_type): Move doc to header.
8795
8796 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8797
8798 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8799 'gnulib/Makefile.in' to the list.
8800
8801 2020-02-24 Tom Tromey <tom@tromey.com>
8802
8803 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8804 Remove.
8805 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8806 XOBNEWVEC.
8807
8808 2020-02-24 Tom Tromey <tom@tromey.com>
8809
8810 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8811 New method.
8812 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8813 (dw2_do_instantiate_symtab, dw2_get_file_names)
8814 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8815
8816 2020-02-24 Tom Tromey <tom@tromey.com>
8817
8818 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8819 make_scoped_restore.
8820 (dwarf2_psymtab::read_symtab): Don't clear
8821 reading_partial_symbols.
8822
8823 2020-02-24 Tom de Vries <tdevries@suse.de>
8824
8825 PR gdb/25592
8826 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8827
8828 2020-02-24 Tom de Vries <tdevries@suse.de>
8829
8830 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8831 commands layout next/prev/regs.
8832
8833 2020-02-22 Tom Tromey <tom@tromey.com>
8834
8835 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8836 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8837
8838 2020-02-22 Tom Tromey <tom@tromey.com>
8839
8840 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8841
8842 2020-02-22 Tom Tromey <tom@tromey.com>
8843
8844 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8845 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8846 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8847 * tui/tui.c (_initialize_tui): Add usage text.
8848
8849 2020-02-22 Tom Tromey <tom@tromey.com>
8850
8851 * tui/tui-win.c (tui_set_focus_command)
8852 (tui_set_win_height_command): Use error_no_arg.
8853 (_initialize_tui_win): Update help text.
8854 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8855
8856 2020-02-22 Tom Tromey <tom@tromey.com>
8857
8858 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8859 * tui/tui-disasm.h (struct tui_disasm_window)
8860 <display_start_addr>: Declare.
8861 * tui/tui-source.h (struct tui_source_window)
8862 <display_start_addr>: Declare.
8863 * tui/tui-winsource.h (struct tui_source_window_base)
8864 <show_source_line, display_start_addr>: New methods.
8865 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8866 Rename and move to protected section.
8867 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8868 (tui_source_window_base::do_erase_source_content): Update.
8869 (tui_source_window_base::show_source_line): Now a method.
8870 (tui_source_window_base::show_source_content)
8871 (tui_source_window_base::tui_source_window_base)
8872 (tui_source_window_base::rerender)
8873 (tui_source_window_base::refill)
8874 (tui_source_window_base::do_scroll_horizontal)
8875 (tui_source_window_base::set_is_exec_point_at)
8876 (tui_source_window_base::update_breakpoint_info)
8877 (tui_source_window_base::update_exec_info): Update.
8878 * tui/tui-source.c (tui_source_window::set_contents)
8879 (tui_source_window::showing_source_p)
8880 (tui_source_window::do_scroll_vertical)
8881 (tui_source_window::location_matches_p)
8882 (tui_source_window::line_is_displayed): Update.
8883 (tui_source_window::display_start_addr): New method.
8884 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8885 (tui_disasm_window::do_scroll_vertical)
8886 (tui_disasm_window::location_matches_p): Update.
8887 (tui_disasm_window::display_start_addr): New method.
8888
8889 2020-02-22 Tom Tromey <tom@tromey.com>
8890
8891 * NEWS: Add entry for gdb.register_window_type.
8892 * tui/tui-layout.h (window_factory): New typedef.
8893 (tui_register_window): Declare.
8894 * tui/tui-layout.c (saved_tui_windows): New global.
8895 (tui_apply_current_layout): Use it.
8896 (tui_register_window): New function.
8897 * python/python.c (do_start_initialization): Call
8898 gdbpy_initialize_tui.
8899 (python_GdbMethods): Add "register_window_type" function.
8900 * python/python-internal.h (gdbpy_register_tui_window)
8901 (gdbpy_initialize_tui): Declare.
8902 * python/py-tui.c: New file.
8903 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8904
8905 2020-02-22 Tom Tromey <tom@tromey.com>
8906
8907 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8908
8909 2020-02-22 Tom Tromey <tom@tromey.com>
8910
8911 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8912 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8913 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8914 (tui_set_win_focus_to): Move from tui-win.c.
8915
8916 2020-02-22 Tom Tromey <tom@tromey.com>
8917
8918 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8919 functions.
8920 (known_window_types): New global.
8921 (tui_get_window_by_name): Reimplement.
8922 (initialize_known_windows): New function.
8923 (validate_window_name): Rewrite.
8924 (_initialize_tui_layout): Call initialize_known_windows.
8925
8926 2020-02-22 Tom Tromey <tom@tromey.com>
8927
8928 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8929 Remove constants.
8930 * tui/tui-winsource.h (struct tui_source_window_base)
8931 <tui_source_window_base>: Remove parameter.
8932 * tui/tui-winsource.c
8933 (tui_source_window_base::tui_source_window_base): Remove
8934 parameter.
8935 (tui_source_window_base::refill): Update.
8936 * tui/tui-stack.h (struct tui_locator_window)
8937 <tui_locator_window>: Update.
8938 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8939 Default the constructor.
8940 * tui/tui-regs.h (struct tui_data_item_window)
8941 <tui_data_item_window>: Default the constructor.
8942 (struct tui_data_window) <tui_data_window>: Likewise.
8943 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8944 Default the constructor.
8945 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8946 Default the constructor.
8947 <type>: Remove.
8948 (struct tui_win_info) <tui_win_info>: Default the constructor.
8949 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8950 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8951 Default the constructor.
8952
8953 2020-02-22 Tom Tromey <tom@tromey.com>
8954
8955 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8956 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8957 * tui/tui-win.c (tui_resize_all): Don't call
8958 tui_delete_invisible_windows.
8959 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8960 done.
8961 (tui_set_layout): Update.
8962 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8963 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8964 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8965
8966 2020-02-22 Tom Tromey <tom@tromey.com>
8967
8968 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8969 correctly.
8970
8971 2020-02-22 Tom Tromey <tom@tromey.com>
8972
8973 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8974
8975 2020-02-22 Tom Tromey <tom@tromey.com>
8976
8977 * tui/tui-winsource.h (struct tui_source_window_iterator)
8978 <inner_iterator>: New etytypedef.
8979 <tui_source_window_iterator>: Take "end" parameter.
8980 <tui_source_window_iterator>: Take iterator.
8981 <operator*, advance>: Update.
8982 <m_iter>: Change type.
8983 <m_end>: New field.
8984 (struct tui_source_windows) <begin, end>: Update.
8985 * tui/tui-layout.c (tui_windows): New global.
8986 (tui_apply_current_layout): Clear tui_windows.
8987 (tui_layout_window::apply): Update tui_windows.
8988 * tui/tui-data.h (tui_windows): Declare.
8989 (all_tui_windows): Now inline function.
8990 (class tui_window_iterator, struct all_tui_windows): Remove.
8991
8992 2020-02-22 Tom Tromey <tom@tromey.com>
8993
8994 PR tui/17850:
8995 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8996 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8997 "height" argument.
8998 (class tui_layout_window) <get_sizes>: Likewise.
8999 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9000 argument.
9001 <get_sizes>: Add "height" argument.
9002 <m_vertical>: New field.
9003 * tui/tui-layout.c (tui_layout_split::clone): Update.
9004 (tui_layout_split::get_sizes): Add "height" argument.
9005 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9006 (tui_new_layout_command): Parse "-horizontal".
9007 (_initialize_tui_layout): Update help string.
9008 (tui_layout_split::specification): Add "-horizontal" when needed.
9009 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9010 argument.
9011 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9012 New methods.
9013
9014 2020-02-22 Tom Tromey <tom@tromey.com>
9015
9016 * tui/tui-layout.h (enum tui_adjust_result): New.
9017 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9018 (class tui_layout_window) <adjust_size>: Return
9019 tui_adjust_result. Rewrite.
9020 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9021 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9022
9023 2020-02-22 Tom Tromey <tom@tromey.com>
9024
9025 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9026 parameter and return types.
9027 (class tui_layout_base) <specification>: Add "depth".
9028 (class tui_layout_window) <specification>: Add "depth".
9029 (class tui_layout_split) <specification>: Add "depth".
9030 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9031 and return types.
9032 (tui_new_layout_command): Parse sub-layouts.
9033 (_initialize_tui_layout): Update help string.
9034 (tui_layout_window::specification): Add "depth".
9035 (add_layout_command): Update.
9036
9037 2020-02-22 Tom Tromey <tom@tromey.com>
9038
9039 * NEWS: Add "tui new-layout" item.
9040 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9041 Add new-layout command to help text.
9042 (validate_window_name): New function.
9043 (tui_new_layout_command): New function.
9044 (_initialize_tui_layout): Register "new-layout".
9045 (tui_layout_window::specification): New method.
9046 (tui_layout_window::specification): New method.
9047 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9048 method.
9049 (class tui_layout_window) <specification>: New method.
9050 (class tui_layout_split) <specification>: New method.
9051
9052 2020-02-22 Tom Tromey <tom@tromey.com>
9053
9054 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9055 * tui/tui-win.c (window_name_completer): Update comment.
9056 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9057 Declare method.
9058 (class tui_layout_window) <replace_window>: Likewise.
9059 (class tui_layout_split) <replace_window>: Likewise.
9060 (tui_set_layout): Don't declare.
9061 (tui_set_initial_layout): Declare function.
9062 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9063 (asm_regs_layout): New globals.
9064 (tui_current_layout, show_layout): Remove.
9065 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9066 (find_layout, tui_apply_layout): New function.
9067 (layout_completer): Remove.
9068 (tui_next_layout): Reimplement.
9069 (tui_next_layout_command): New function.
9070 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9071 (tui_regs_layout): Reimplement.
9072 (tui_regs_layout_command): New function.
9073 (extract_display_start_addr): Rewrite.
9074 (next_layout, prev_layout): Remove.
9075 (tui_layout_window::replace_window): New method.
9076 (tui_layout_split::replace_window): New method.
9077 (destroy_layout): New function.
9078 (layout_list): New global.
9079 (add_layout_command): New function.
9080 (initialize_layouts): Update.
9081 (tui_layout_command): New function.
9082 (_initialize_tui_layout): Install "layout" commands.
9083 * tui/tui-data.h (enum tui_layout_type): Remove.
9084 (tui_current_layout): Don't declare.
9085
9086 2020-02-22 Tom Tromey <tom@tromey.com>
9087
9088 * tui/tui-regs.c (tui_reg_layout): Remove.
9089 (tui_reg_command): Use tui_regs_layout.
9090 * tui/tui-layout.h (tui_reg_command): Declare.
9091 * tui/tui-layout.c (tui_reg_command): New function.
9092
9093 2020-02-22 Tom Tromey <tom@tromey.com>
9094
9095 * tui/tui.c (tui_rl_delete_other_windows): Call
9096 tui_remove_some_windows.
9097 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9098 Declare method.
9099 (class tui_layout_window) <remove_windows>: New method.
9100 (class tui_layout_split) <remove_windows>: Declare.
9101 (tui_remove_some_windows): Declare.
9102 * tui/tui-layout.c (tui_remove_some_windows): New function.
9103 (tui_layout_split::remove_windows): New method.
9104
9105 2020-02-22 Tom Tromey <tom@tromey.com>
9106
9107 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9108 * tui/tui-layout.h (tui_next_layout): Declare.
9109 * tui/tui-layout.c (tui_next_layout): New function.
9110
9111 2020-02-22 Tom Tromey <tom@tromey.com>
9112
9113 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9114 correct coordinates.
9115
9116 2020-02-22 Tom Tromey <tom@tromey.com>
9117
9118 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9119 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9120 DATA_WIN case.
9121
9122 2020-02-22 Tom Tromey <tom@tromey.com>
9123
9124 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9125 TUI_DISASM_WIN, not tui_win_list.
9126
9127 2020-02-22 Tom Tromey <tom@tromey.com>
9128
9129 * valprint.c (generic_val_print_enum_1)
9130 (val_print_type_code_flags): Style member names.
9131 * rust-lang.c (val_print_struct, rust_print_enum)
9132 (rust_print_struct_def, rust_internal_print_type): Style member
9133 names.
9134 * p-valprint.c (pascal_object_print_value_fields): Style member
9135 names. Only call fprintf_symbol_filtered for static members.
9136 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9137 * f-valprint.c (f_val_print): Style member names.
9138 * f-typeprint.c (f_type_print_base): Style member names.
9139 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9140 call fprintf_symbol_filtered for static members.
9141 (cp_print_class_member): Style member names.
9142 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9143 member names.
9144 * ada-valprint.c (ada_print_scalar): Style enum names.
9145 (ada_val_print_enum): Likewise.
9146 * ada-typeprint.c (print_enum_type): Style enum names.
9147
9148 2020-02-21 Tom Tromey <tom@tromey.com>
9149
9150 * psympriv.h (struct partial_symtab): Update comment.
9151
9152 2020-02-21 Tom Tromey <tromey@adacore.com>
9153
9154 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9155 type is CORE_ADDR.
9156
9157 2020-02-21 Tom de Vries <tdevries@suse.de>
9158
9159 PR gdb/25534
9160 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9161 if dependencies[i]->user != NULL.
9162
9163 2020-02-21 Ali Tamur <tamur@google.com>
9164
9165 * dwarf2/read.c (dwarf2_name): Add null check.
9166
9167 2020-02-20 Tom Tromey <tom@tromey.com>
9168
9169 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9170 ">=", in binary search.
9171 (dwarf2_find_containing_comp_unit): New overload.
9172 (run_test): New self-test.
9173 (_initialize_dwarf2_read): Register new test.
9174
9175 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9176
9177 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9178 * riscv-tdep.h: Likewise.
9179 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9180 rv32-only CSR.
9181 * features/riscv/64bit-csr.xml: Regenerated.
9182
9183 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9184 Tom Tromey <tom@tromey.com>
9185
9186 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9187 of 'fputc_unfiltered'.
9188 (putchar_unfiltered): Call 'fputc_unfiltered'.
9189 (fputc_unfiltered): Call 'fputs_unfiltered'.
9190
9191 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9192
9193 * config.in: Regenerate.
9194 * configure: Regenerate.
9195 * configure.ac: Add --with-python-libdir option.
9196 * main.c: Use WITH_PYTHON_LIBDIR.
9197
9198 2020-02-19 Tom Tromey <tom@tromey.com>
9199
9200 * symtab.c (general_symbol_info::compute_and_set_names): Use
9201 obstack_strndup. Simplify call to symbol_set_demangled_name.
9202
9203 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9204
9205 * dwarf2/read.c (allocate_signatured_type_table,
9206 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9207 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9208 Remove objfile parameter, update all callers.
9209
9210 2020-02-19 Doug Evans <dje@google.com>
9211
9212 PR rust/25535
9213 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9214 rust_enum_variant calculation.
9215
9216 2020-02-19 Tom Tromey <tromey@adacore.com>
9217
9218 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9219
9220 2020-02-19 Tom Tromey <tromey@adacore.com>
9221
9222 * ada-lang.c (cache_symbol): Use obstack_strdup.
9223
9224 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9225
9226 * configure: Regenerate.
9227
9228 2020-02-19 Tom Tromey <tromey@adacore.com>
9229
9230 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9231 NULL check.
9232
9233 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9234
9235 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9236
9237 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9238
9239 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9240 if GDBSERVER is not defined.
9241 (riscv_tdesc_cache): Likewise, also store const target_desc.
9242 (STATIC_IN_GDB): Define.
9243 (riscv_create_target_description): Update declaration with
9244 STATIC_IN_GDB.
9245 (riscv_lookup_target_description): New function, only define if
9246 GDBSERVER is not defined.
9247 * arch/riscv.h (riscv_create_target_description): Declare only
9248 when GDBSERVER is defined.
9249 (riscv_lookup_target_description): New declaration when GDBSERVER
9250 is not defined.
9251 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9252 (riscv_linux_read_features): ...this, and return
9253 riscv_gdbarch_features instead of target_desc.
9254 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9255 (riscv_linux_read_description): Rename to...
9256 (riscv_linux_read_features): ...this.
9257 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9258 Update to use riscv_gdbarch_features and
9259 riscv_lookup_target_description.
9260 * riscv-tdep.c (riscv_find_default_target_description): Use
9261 riscv_lookup_target_description instead of
9262 riscv_create_target_description.
9263
9264 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9265
9266 * valprint.c (generic_val_print_enum_1): When printing a flag
9267 enum with value 0 and there is no enumerator with value 0, print
9268 just "0" instead of "(unknown: 0x0)".
9269
9270 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9271
9272 * valprint.c (generic_val_print_enum_1): Print unknown part of
9273 flag enum in hex.
9274
9275 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9276
9277 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9278 flag enums to contain duplicate enumerators.
9279 * valprint.c (generic_val_print_enum_1): Update comment.
9280
9281 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9282
9283 * dwarf2/read.c: Include "count-one-bits.h".
9284 (update_enumeration_type_from_children): If an enumerator has
9285 multiple bits set, don't treat the enumeration as a "flag enum".
9286 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9287 of flag enums have 0 or 1 bit set.
9288
9289 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9290
9291 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9292 conversion.
9293 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9294 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9295 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9296 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9297 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9298
9299 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9300
9301 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9302
9303 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9304
9305 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9306 displaced_step_closure_up.
9307 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9308 (struct displaced_step_closure_up):
9309 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9310 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9311 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9312 Likewise.
9313 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9314 * gdbarch.c, gdbarch.h: Re-generate.
9315 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9316 displaced_step_closure_up.
9317 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9318 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9319 * infrun.h (displaced_step_closure_up): New type alias.
9320 (struct displaced_step_inferior_state) <step_closure>: Change
9321 type to displaced_step_closure_up.
9322 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9323 displaced_step_closure_up.
9324 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9325
9326 2020-02-14 Tom Tromey <tom@tromey.com>
9327
9328 * minidebug.c (gnu_debug_key): New global.
9329 (find_separate_debug_file_in_section): Use it.
9330
9331 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9332
9333 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9334 std::unique_ptr.
9335 * gdbarch.c: Re-generate.
9336 * gdbarch.h: Re-generate.
9337 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9338 change.
9339 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9340 type to std::unique_ptr.
9341 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9342 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9343 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9344 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9345 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9346 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9347 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9348 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9349 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9350
9351 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9352
9353 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9354 std::unique_ptr.
9355 (displaced_step_clear): Rename to...
9356 (displaced_step_reset): ... this. Just call displaced->reset ().
9357 (displaced_step_clear_cleanup): Rename to...
9358 (displaced_step_reset_cleanup): ... this.
9359 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9360 (displaced_step_fixup): Likewise.
9361 (resume_1): Likewise.
9362 (handle_inferior_event): Restore child's memory before calling
9363 displaced_step_fixup on the parent.
9364 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9365 to std::unique_ptr.
9366 <step_closure>: Change type to std::unique_ptr.
9367
9368 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9369
9370 * arm-tdep.c: Include count-one-bits.h.
9371 (cleanup_block_store_pc): Use count_one_bits.
9372 (cleanup_block_load_pc): Use count_one_bits.
9373 (arm_copy_block_xfer): Use count_one_bits.
9374 (thumb2_copy_block_xfer): Use count_one_bits.
9375 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9376 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9377 (thumb_get_next_pcs_raw): Use count_one_bits.
9378 (arm_get_next_pcs_raw): Use count_one_bits_l.
9379 * arch/arm.c (bitcount): Remove.
9380 * arch/arm.h (bitcount): Remove.
9381
9382 2020-02-14 Tom Tromey <tromey@adacore.com>
9383
9384 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9385 Update.
9386 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9387 * dwarf2/loc.c (call_site_find_chain_1): Return
9388 unique_xmalloc_ptr.
9389 (call_site_find_chain): Likewise.
9390
9391 2020-02-14 Richard Biener <rguenther@suse.de>
9392
9393 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9394 on expression with division operators.
9395
9396 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9397
9398 * MAINTAINERS (Write After Approval): Adding myself.
9399
9400 2020-02-12 Tom Tromey <tom@tromey.com>
9401
9402 * event-loop.c (event_data, gdb_event, event_handler_func):
9403 Remove.
9404
9405 2020-02-12 Tom Tromey <tom@tromey.com>
9406
9407 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9408 (dwarf2_frame_objfile_data): Add comment.
9409 (find_comp_unit, set_comp_unit): New functions.
9410 (dwarf2_frame_find_fde): Use find_comp_unit.
9411 (dwarf2_build_frame_info): Use set_comp_unit.
9412
9413 2020-02-12 Tom Tromey <tom@tromey.com>
9414
9415 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9416 (comp_unit): Don't initialize objfile.
9417 (execute_cfa_program): Add text_offset parameter.
9418 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9419 (dwarf2_frame_cache): Update.
9420 (dwarf2_build_frame_info): Don't set "objfile" member.
9421
9422 2020-02-12 Tom Tromey <tom@tromey.com>
9423
9424 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9425 (decode_frame_entry): Likewise.
9426 (dwarf2_build_frame_info): Update.
9427
9428 2020-02-12 Tom Tromey <tom@tromey.com>
9429
9430 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9431 (decode_frame_entry_1): Use the comp_unit obstack.
9432
9433 2020-02-12 Tom Tromey <tom@tromey.com>
9434
9435 * dwarf2/frame.c (struct comp_unit): Add initializers and
9436 constructor.
9437 (dwarf2_frame_objfile_data): Store a comp_unit.
9438 (dwarf2_frame_find_fde): Update.
9439 (dwarf2_build_frame_info): Use "new".
9440
9441 2020-02-12 Tom Tromey <tom@tromey.com>
9442
9443 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9444 (dwarf2_fde_table): Typedef for std::vector.
9445 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9446 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9447 (decode_frame_entry): Update.
9448 (dwarf2_build_frame_info): Use "new".
9449
9450 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9451
9452 * arm-tdep.c (arm_gdbarch_init): Update.
9453 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9454 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9455 have_neon, is_m>: Change to bool.
9456
9457 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9458
9459 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9460
9461 2020-02-12 Tom Tromey <tom@tromey.com>
9462
9463 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9464
9465 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9466
9467 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9468 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9469
9470 2020-02-11 Tom Tromey <tom@tromey.com>
9471
9472 * psymtab.h: Update comment.
9473
9474 2020-02-11 Tom Tromey <tom@tromey.com>
9475
9476 * gdb_obstack.h (struct auto_obstack): Use
9477 DISABLE_COPY_AND_ASSIGN.
9478
9479 2020-02-11 Tom Tromey <tom@tromey.com>
9480
9481 * dwarf2/frame.h (struct objfile): Don't forward declare.
9482
9483 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9484
9485 * cris-tdep.c (cris_supply_gregset): Change signature to match
9486 what struct regset expects.
9487 (cris_regset): New struct.
9488 (fetch_core_registers): Remove.
9489 (cris_iterate_over_regset_sections): New function.
9490 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9491 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9492
9493 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9494
9495 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9496 registers.
9497
9498 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9499
9500 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
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 * configure: Re-generate.
9509
9510 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9511
9512 * acinclude: Update warning.m4 path.
9513 * warning.m4: Move to gdbsupport.
9514
9515 2020-02-11 Tom Tromey <tromey@adacore.com>
9516
9517 * remote.c (remote_console_output): Update.
9518 * printcmd.c (printf_command): Update.
9519 * event-loop.c (gdb_wait_for_event): Update.
9520 * linux-nat.c (sigchld_handler): Update.
9521 * remote-sim.c (gdb_os_write_stdout): Update.
9522 (gdb_os_flush_stdout): Update.
9523 (gdb_os_flush_stderr): Update.
9524 (gdb_os_write_stderr): Update.
9525 * exceptions.c (print_exception): Update.
9526 * remote-fileio.c (remote_fileio_func_read): Update.
9527 (remote_fileio_func_write): Update.
9528 * tui/tui.c (tui_enable): Update.
9529 * tui/tui-interp.c (tui_interp::init): Update.
9530 * utils.c (init_page_info): Update.
9531 (putchar_unfiltered, fputc_unfiltered): Update.
9532 (gdb_flush): Update.
9533 (emit_style_escape): Update.
9534 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9535 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9536 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9537 (stderr_file::write): Update.
9538 (stderr_file::puts): Update.
9539 * ui-file.h (ui_file_isatty, ui_file_write)
9540 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9541 (ui_file_puts): Don't declare.
9542
9543 2020-02-10 Tom de Vries <tdevries@suse.de>
9544
9545 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9546 sentinel to char *.
9547
9548 2020-02-09 Tom de Vries <tdevries@suse.de>
9549
9550 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9551 filename if it matches "<artificial>".
9552
9553 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9554
9555 * windows-tdep.c (struct enum_value_name): New struct.
9556 (create_enum): New function.
9557 (windows_get_siginfo_type): Create and use enum types.
9558
9559 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9560
9561 * NEWS: Mention $_siginfo support for Windows.
9562 * windows-nat.c (handle_exception): Set siginfo_er.
9563 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9564 (windows_xfer_siginfo): New function.
9565 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9566 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9567 (init_windows_gdbarch_data): New function.
9568 (get_windows_gdbarch_data): New function.
9569 (windows_get_siginfo_type): New function.
9570 (windows_init_abi): Register windows_get_siginfo_type.
9571 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9572
9573 2020-02-08 Tom Tromey <tom@tromey.com>
9574
9575 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9576 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9577 <keep>: Declare method.
9578 <m_keep>: Remove member.
9579 <~cutu_reader>: Remove.
9580 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9581 (cutu_reader::cutu_reader): Update.
9582 (cutu_reader::keep): Rename from ~cutu_reader.
9583 (process_psymtab_comp_unit, build_type_psymtabs_1)
9584 (process_skeletonless_type_unit, load_partial_comp_unit)
9585 (load_full_comp_unit, dwarf2_read_addr_index)
9586 (read_signatured_type): Update.
9587
9588 2020-02-08 Tom Tromey <tom@tromey.com>
9589
9590 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9591 "want_partial_unit" parameter.
9592 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9593 Inline check for DW_TAG_partial_unit.
9594 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9595
9596 2020-02-08 Tom Tromey <tom@tromey.com>
9597
9598 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9599 read.c.
9600 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9601 read.c.
9602
9603 2020-02-08 Tom Tromey <tom@tromey.com>
9604
9605 * dwarf2/read.c (read_address): Move to comp-unit.c.
9606 (dwarf2_rnglists_process, dwarf2_ranges_process)
9607 (read_attribute_value, dwarf_decode_lines_1)
9608 (var_decode_location, decode_locdesc): Update.
9609 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9610 read.c. Remove "cu" parameter.
9611 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9612 method.
9613
9614 2020-02-08 Tom Tromey <tom@tromey.com>
9615
9616 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9617 (read_indirect_line_string): Update.
9618 * dwarf2/comp-unit.c (read_offset): Remove.
9619 (read_comp_unit_head): Update.
9620 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9621 method.
9622 (read_offset): Don't declare.
9623
9624 2020-02-08 Tom Tromey <tom@tromey.com>
9625
9626 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9627 * dwarf2/read.c (struct comp_unit_head): Move to
9628 dwarf2/comp-unit.h.
9629 (enum class rcuh_kind): Move to comp-unit.h.
9630 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9631 (read_comp_unit_head, error_check_comp_unit_head)
9632 (read_and_check_comp_unit_head): Move to comp-unit.c.
9633 (read_offset, dwarf_unit_type_name): Likewise.
9634 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9635 (cutu_reader::cutu_reader, read_call_site_scope)
9636 (find_partial_die, follow_die_offset): Update.
9637 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9638
9639 2020-02-08 Tom Tromey <tom@tromey.com>
9640
9641 * dwarf2/read.c (read_offset_1): Move to leb.c.
9642 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9643 (dwarf_decode_macro_bytes): Update.
9644 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9645 * dwarf2/leb.h (read_offset): Declare.
9646
9647 2020-02-08 Tom Tromey <tom@tromey.com>
9648
9649 * dwarf2/read.c (dwarf2_section_size): Remove.
9650 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9651 Update.
9652 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9653
9654 2020-02-08 Tom Tromey <tom@tromey.com>
9655
9656 * dwarf2/read.c (read_initial_length): Move to leb.c.
9657 * dwarf2/leb.h (read_initial_length): Declare.
9658 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9659 handle_nonstd parameter.
9660 * dwarf2/frame.c (read_initial_length): Remove.
9661 (decode_frame_entry_1): Update.
9662
9663 2020-02-08 Tom Tromey <tom@tromey.com>
9664
9665 * dwarf2/loc.c (dwarf2_find_location_expression)
9666 (dwarf_evaluate_loc_desc::get_tls_address)
9667 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9668 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9669 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9670 (dwarf2_compile_property_to_c)
9671 (dwarf2_loc_desc_get_symbol_read_needs)
9672 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9673 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9674 (loclist_describe_location, loclist_tracepoint_var_ref)
9675 (loclist_generate_c_location): Update.
9676 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9677 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9678 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9679 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9680 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9681 (dwarf2_per_cu_data::addr_size)
9682 (dwarf2_per_cu_data::ref_addr_size)
9683 (dwarf2_per_cu_data::text_offset)
9684 (dwarf2_per_cu_data::addr_type): Now methods.
9685 (per_cu_header_read_in): Make per_cu "const".
9686 (dwarf2_version): Remove.
9687 (dwarf2_per_cu_data::int_type): Now a method.
9688 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9689 (set_die_type, read_array_type, read_subrange_index_type)
9690 (read_tag_string_type, read_subrange_type): Update.
9691 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9692 offset_size, ref_addr_size, text_offset, addr_type, version,
9693 objfile, int_type, addr_sized_int_type>: Declare methods.
9694
9695 2020-02-08 Tom Tromey <tom@tromey.com>
9696
9697 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9698 Move earlier.
9699
9700 2020-02-08 Tom Tromey <tom@tromey.com>
9701
9702 * dwarf2/read.h (dwarf_line_debug): Declare.
9703 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9704 * dwarf2/read.c: Move line_header code to new files.
9705 (dwarf_line_debug): No longer static.
9706 * dwarf2/line-header.c: New file.
9707 * dwarf2/line-header.h: New file.
9708
9709 2020-02-08 Tom Tromey <tom@tromey.com>
9710
9711 * dwarf2/read.c (struct line_header) <file_full_name,
9712 file_file_name>: Return unique_xmalloc_ptr.
9713 (line_header::file_file_name): Update.
9714 (line_header::file_full_name): Update.
9715 (dw2_get_file_names_reader): Update.
9716 (macro_start_file): Update.
9717
9718 2020-02-08 Tom Tromey <tom@tromey.com>
9719
9720 * dwarf2/read.c (struct line_header) <file_full_name,
9721 file_file_name>: Declare methods.
9722 (dw2_get_file_names_reader): Update.
9723 (file_file_name): Now a method.
9724 (file_full_name): Likewise.
9725 (macro_start_file): Update.
9726
9727 2020-02-08 Tom Tromey <tom@tromey.com>
9728
9729 * dwarf2/read.c (dwarf_always_disassemble)
9730 (show_dwarf_always_disassemble): Move to loc.c.
9731 (_initialize_dwarf2_read): Move "always-disassemble" registration
9732 to loc.c.
9733 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9734 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9735 static.
9736 (show_dwarf_always_disassemble): Move from read.c.
9737 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9738
9739 2020-02-08 Tom Tromey <tom@tromey.com>
9740
9741 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9742 (create_quick_file_names_table): Return htab_up.
9743 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9744 Update.
9745 * dwarf2/read.h (struct dwarf2_per_objfile)
9746 <quick_file_names_table>: Now htab_up.
9747
9748 2020-02-08 Tom Tromey <tom@tromey.com>
9749
9750 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9751
9752 2020-02-08 Tom Tromey <tom@tromey.com>
9753
9754 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9755 Rewrite.
9756 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9757 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9758 (abbrev_table::abbrev_table): No longer inline.
9759 (ABBREV_HASH_SIZE): Remove.
9760 (abbrev_table::m_abbrevs): Now an htab_up.
9761
9762 2020-02-08 Tom Tromey <tom@tromey.com>
9763
9764 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9765 (cutu_reader): Update.
9766 (build_type_psymtabs_1): Update.
9767 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9768 (abbrev_table::alloc_abbrev): Update.
9769 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9770 (abbrev_table::read): New static method, renamed from
9771 abbrev_table_read_table.
9772 (abbrev_table::alloc_abbrev)
9773 (abbrev_table::add_abbrev): Now private.
9774 (abbrev_table::abbrev_table): Now private.
9775 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9776
9777 2020-02-08 Tom Tromey <tom@tromey.com>
9778
9779 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9780 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9781 htab_up.
9782
9783 2020-02-08 Tom Tromey <tom@tromey.com>
9784
9785 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9786 htab_up.
9787 (lookup_dwo_unit_in_dwp): Update.
9788 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9789 on obstack.
9790
9791 2020-02-08 Tom Tromey <tom@tromey.com>
9792
9793 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9794 obstack.
9795
9796 2020-02-08 Tom Tromey <tom@tromey.com>
9797
9798 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9799 line_header_hash.
9800 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9801 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9802 Change type to htab_up.
9803
9804 2020-02-08 Tom Tromey <tom@tromey.com>
9805
9806 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9807 htab_up. Don't allocate on obstack.
9808 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9809 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9810 Change type to htab_up.
9811
9812 2020-02-08 Tom Tromey <tom@tromey.com>
9813
9814 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9815 Change type to htab_up.
9816 * dwarf2/read.c (create_signatured_type_table_from_index)
9817 (create_signatured_type_table_from_debug_names)
9818 (create_all_type_units, add_type_unit)
9819 (lookup_dwo_signatured_type, lookup_signatured_type)
9820 (process_skeletonless_type_unit): Update.
9821 (create_debug_type_hash_table, create_debug_types_hash_table):
9822 Change type of types_htab.
9823 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9824 htab_up. Don't allocate on obstack.
9825 (create_cus_hash_table): Change type of cus_htab parameter.
9826 (struct dwo_file) <cus, tus>: Now htab_up.
9827 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9828 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9829 (queue_and_load_all_dwo_tus): Update.
9830 * dwarf2/index-write.c (write_gdbindex): Update.
9831 (write_debug_names): Update.
9832
9833 2020-02-08 Tom Tromey <tom@tromey.com>
9834
9835 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9836 dwarf2/read.c. Remove "next" member. Add constructor ntad
9837 destructor.
9838 (struct dwarf2_per_objfile) <queue>: New member.
9839 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9840 dwarf2/read.h.
9841 (dwarf2_queue, dwarf2_queue_tail): Remove.
9842 (class dwarf2_queue_guard): Add parameter to constructor. Use
9843 DISABLE_COPY_AND_ASSIGN.
9844 <m_per_objfile>: New member.
9845 <~dwarf2_queue_guard>: Rewrite.
9846 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9847 Update.
9848 (~dwarf2_queue_item): New.
9849
9850 2020-02-08 Tom Tromey <tom@tromey.com>
9851
9852 * dwarf2/read.c (struct die_info) <has_children>: New member.
9853 (dw2_get_file_names_reader): Remove has_children.
9854 (dw2_get_file_names): Update.
9855 (read_cutu_die_from_dwo): Remove has_children.
9856 (cutu_reader::init_tu_and_read_dwo_dies)
9857 (cutu_reader::cutu_reader): Update.
9858 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9859 Remove has_children.
9860 (build_type_psymtabs_1, process_skeletonless_type_unit)
9861 (load_partial_comp_unit, load_full_comp_unit): Update.
9862 (create_dwo_cu_reader): Remove has_children.
9863 (create_cus_hash_table, read_die_and_children): Update.
9864 (read_full_die_1,read_full_die): Remove has_children.
9865 (read_signatured_type): Update.
9866 (class cutu_reader) <has_children>: Remove.
9867
9868 2020-02-08 Tom Tromey <tom@tromey.com>
9869
9870 * dwarf2/expr.c: Rename from dwarf2expr.c.
9871 * dwarf2/expr.h: Rename from dwarf2expr.h.
9872 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9873 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9874 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9875 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9876 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9877 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9878 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9879 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9880 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9881 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9882 * dwarf2/loc.c: Rename from dwarf2loc.c.
9883 * dwarf2/loc.h: Rename from dwarf2loc.h.
9884 * dwarf2/read.c: Rename from dwarf2read.c.
9885 * dwarf2/read.h: Rename from dwarf2read.h.
9886 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9887 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9888 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9889 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9890 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9891 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9892 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9893 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9894 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9895 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9896 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9897 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9898 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9899 Update.
9900 * Makefile.in (COMMON_SFILES): Update.
9901 (HFILES_NO_SRCDIR): Update.
9902
9903 2020-02-08 Tom Tromey <tom@tromey.com>
9904
9905 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9906 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9907
9908 2020-02-08 Tom Tromey <tom@tromey.com>
9909
9910 * dwarf2read.h (struct die_info): Don't declare.
9911
9912 2020-02-08 Tom Tromey <tom@tromey.com>
9913
9914 * dwarf2read.h (die_info_ptr): Remove typedef.
9915
9916 2020-02-08 Tom Tromey <tom@tromey.com>
9917
9918 * dwarf2read.c (read_call_site_scope)
9919 (handle_data_member_location, dwarf2_add_member_fn)
9920 (mark_common_block_symbol_computed, read_common_block)
9921 (attr_to_dynamic_prop, partial_die_info::read)
9922 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9923 (dwarf2_symbol_mark_computed, set_die_type): Update.
9924 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9925 method.
9926 (attr_form_is_block): Don't declare.
9927 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9928
9929 2020-02-08 Tom Tromey <tom@tromey.com>
9930
9931 * dwarf2read.c (dwarf2_find_base_address, )
9932 (read_call_site_scope, rust_containing_type)
9933 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9934 (handle_data_member_location, dwarf2_add_member_fn)
9935 (get_alignment, read_structure_type, process_structure_scope)
9936 (mark_common_block_symbol_computed, read_common_block)
9937 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9938 (partial_die_info::read, read_attribute_value, new_symbol)
9939 (lookup_die_type, dwarf2_get_ref_die_offset)
9940 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9941 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9942 (dwarf2_symbol_mark_computed): Update.
9943 * dwarf2/attribute.h (struct attribute) <value_as_address,
9944 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9945 methods.
9946 (value_as_address, attr_form_is_section_offset)
9947 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9948 * dwarf2/attribute.c (attribute::value_as_address)
9949 (attribute::form_is_section_offset, attribute::form_is_constant)
9950 (attribute::form_is_ref): Now methods.
9951
9952 2020-02-08 Tom Tromey <tom@tromey.com>
9953
9954 * dwarf2read.c (struct attribute, DW_STRING)
9955 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9956 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9957 (attr_form_is_block, attr_form_is_section_offset)
9958 (attr_form_is_constant, attr_form_is_ref): Move.
9959 * dwarf2/attribute.h: New file.
9960 * dwarf2/attribute.c: New file, from dwarf2read.c.
9961 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9962
9963 2020-02-08 Tom Tromey <tom@tromey.com>
9964
9965 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9966 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9967 Move.
9968 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9969 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9970 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9971 abbrev.c.
9972 * dwarf2/abbrev.h: New file.
9973 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9974 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9975
9976 2020-02-08 Tom Tromey <tom@tromey.com>
9977
9978 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9979 (dwarf2_section_size, dwarf2_get_section_info)
9980 (create_signatured_type_table_from_debug_names)
9981 (create_addrmap_from_aranges, read_debug_names_from_section)
9982 (get_gdb_index_contents_from_section, read_comp_unit_head)
9983 (error_check_comp_unit_head, read_abbrev_offset)
9984 (create_debug_type_hash_table, init_cu_die_reader)
9985 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9986 (read_comp_units_from_section, create_cus_hash_table)
9987 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9988 (create_dwp_v2_section, dwarf2_rnglists_process)
9989 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9990 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9991 (read_indirect_string_from_dwz, read_addr_index_1)
9992 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9993 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9994 (fill_in_loclist_baton): Update.
9995 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9996 get_containing_section, get_bfd_owner, get_bfd_section,
9997 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9998 (dwarf2_read_section, get_section_name, get_section_file_name)
9999 (get_containing_section, get_section_bfd_owner)
10000 (get_section_bfd_section, get_section_name, get_section_file_name)
10001 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10002 declare.
10003 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10004 (dwarf2_section_info::get_bfd_owner)
10005 (dwarf2_section_info::get_bfd_section)
10006 (dwarf2_section_info::get_name)
10007 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10008 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10009 (dwarf2_section_info::read): Now methods.
10010 * dwarf-index-write.c (class debug_names): Update.
10011
10012 2020-02-08 Tom Tromey <tom@tromey.com>
10013
10014 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10015 Move to dwarf2/section.h.
10016 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10017 (get_section_bfd_section, get_section_name)
10018 (get_section_file_name, get_section_id, get_section_flags)
10019 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10020 dwarf2/section.c.
10021 * dwarf2/section.h: New file.
10022 * dwarf2/section.c: New file, from dwarf2read.c.
10023 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10024
10025 2020-02-08 Tom Tromey <tom@tromey.com>
10026
10027 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10028 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10029 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10030 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10031 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10032 * dwarf2/leb.h: New file, from dwarf2read.c.
10033 * dwarf2/leb.c: New file, from dwarf2read.c.
10034 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10035 Remove.
10036 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10037 (COMMON_SFILES): Add dwarf2/leb.c.
10038
10039 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10040
10041 GDB 9.1 released.
10042
10043 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10044
10045 PR gdb/25190:
10046 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10047 * gdb/remote.c (remote_console_output): Update.
10048 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10049 (ui_file_puts): ...this.
10050 * gdb/ui-file.h (ui_file_puts): Add declaration.
10051 * gdb/utils.c (emit_style_escape): Update.
10052 (flush_wrap_buffer): Update.
10053 (fputs_maybe_filtered): Update.
10054 (fputs_unfiltered): Add function.
10055
10056 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10057
10058 * gdb/event-loop.c (gdb_wait_for_event): Update.
10059 * gdb/printcmd.c (printf_command): Update.
10060 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10061 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10062 (gdb_os_flush_stderr): Update.
10063 * gdb/remote.c (remote_console_output): Update.
10064 * gdb/ui-file.c (gdb_flush): Rename to...
10065 (ui_file_flush): ...this.
10066 (stderr_file::write): Update.
10067 (stderr_file::puts): Update.
10068 * gdb/ui-file.h (gdb_flush): Rename to...
10069 (ui_file_flush): ...this.
10070 * gdb/utils.c (gdb_flush): Add function.
10071 * gdb/utils.h (gdb_flush): Add declaration.
10072
10073 2020-02-07 Tom Tromey <tromey@adacore.com>
10074
10075 PR breakpoints/24915:
10076 * source.c (find_and_open_source): Do not check basenames_may_differ.
10077
10078 2020-02-07 Tom Tromey <tom@tromey.com>
10079
10080 * README: Update gdbserver documentation.
10081 * gdbserver: Move to top level.
10082 * configure.tgt (build_gdbserver): Remove.
10083 * configure.ac: Remove --enable-gdbserver.
10084 * configure: Rebuild.
10085 * Makefile.in (distclean): Don't mention gdbserver.
10086
10087 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10088
10089 * source-cache.c (source_cache::ensure): Surround
10090 get_plain_source_lines with a try/catch.
10091 (source_cache::get_line_charpos): Get rid of try/catch
10092 and only check for the return value of "ensure".
10093 * tui/tui-source.c (tui_source_window::set_contents):
10094 Simplify "nlines" calculation.
10095
10096 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10097
10098 * MAINTAINERS (Write After Approval): Add myself.
10099
10100 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10101
10102 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10103 function call.
10104
10105 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10106
10107 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10108
10109 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10110
10111 * nat/riscv-linux-tdesc.h: New file.
10112 * nat/riscv-linux-tdesc.c: New file, taking code from...
10113 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10114 ... here.
10115 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10116 NATDEPFILES.
10117
10118 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10119
10120 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10121 we don't set the fake simulator ptid to the null_ptid.
10122
10123 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10124
10125 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10126 * gdbthread.h (class thread_info) <resumed>: Likewise.
10127 * infrun.c (resume_1): Likewise.
10128 (proceed): Likewise.
10129 (infrun_thread_stop_requested): Likewise.
10130 (stop_all_threads): Likewise.
10131 (handle_inferior_event): Likewise.
10132 (restart_threads): Likewise.
10133 (finish_step_over): Likewise.
10134 (keep_going_stepped_thread): Likewise.
10135 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10136 (linux_handle_extended_wait): Likewise.
10137 * record-btrace.c (get_thread_current_frame_id): Likewise.
10138 * record-full.c (record_full_wait_1): Likewise.
10139 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10140 * target.c (target_resume): Likewise.
10141 * thread.c (set_running_thread): Likewise.
10142
10143 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10144
10145 * f-valprint.c (f77_print_array_1): Changed datatype of index
10146 variable to LONGEST from int to enable it to contain bound
10147 values correctly.
10148
10149 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10150
10151 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10152 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10153 offsets according to FLEN determined.
10154 (riscv_linux_nat_target::read_description): Determine FLEN
10155 dynamically.
10156 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10157 according to FLEN determined.
10158 (riscv_linux_nat_target::store_registers): Likewise.
10159
10160 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10161
10162 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10163 when reg->group is empty and reggroup is not.
10164
10165 2020-01-31 Tom Tromey <tromey@adacore.com>
10166
10167 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10168 Call beneath target's mourn_inferior after unpushing.
10169
10170 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10171
10172 PR tui/9765
10173 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10174 have enough lines to fill the screen, still return the lowest
10175 address we found.
10176
10177 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10178
10179 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10180 '-', '<', and '>' commands.
10181
10182 2020-01-29 Pedro Alves <palves@redhat.com>
10183 Sergio Durigan Junior <sergiodj@redhat.com>
10184
10185 * infcmd.c (construct_inferior_arguments): Assert that
10186 'argc' is greater than 0.
10187
10188 2020-01-29 Luis Machado <luis.machado@linaro.org>
10189
10190 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10191 (BRK_INSN_MASK): Define to 0xd4200000.
10192 (aarch64_program_breakpoint_here_p): New function.
10193 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10194 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10195 breakpoint.c.
10196 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10197 breakpoint.h
10198 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10199 call gdbarch_program_breakpoint_here_p.
10200 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10201 default_program_breakpoint_here_p, changed return type to bool and
10202 simplified.
10203 * breakpoint.h (program_breakpoint_here): Moved prototype to
10204 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10205 return type to bool.
10206 * gdbarch.c: Regenerate.
10207 * gdbarch.h: Regenerate.
10208 * gdbarch.sh (program_breakpoint_here_p): New method.
10209 * infrun.c (handle_signal_stop): Call
10210 gdbarch_program_breakpoint_here_p.
10211
10212 2020-01-26 Tom Tromey <tom@tromey.com>
10213
10214 * ctfread.c (struct ctf_fp_info): Reindent.
10215 (_initialize_ctfread): Remove.
10216
10217 2020-01-26 Tom Tromey <tom@tromey.com>
10218
10219 * psymtab.c (partial_map_expand_apply)
10220 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10221 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10222 (psym_print_stats, psym_expand_symtabs_for_function)
10223 (psym_map_symbol_filenames, psym_map_matching_symbols)
10224 (psym_expand_symtabs_matching)
10225 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10226 (maintenance_check_psymtabs): Use new methods.
10227 * psympriv.h (struct partial_symtab) <readin_p,
10228 get_compunit_symtab>: New methods.
10229 <readin, compunit_symtab>: Remove members.
10230 (struct standard_psymtab): New.
10231 (struct legacy_psymtab): Derive from standard_psymtab.
10232 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10233 standard_psymtab.
10234 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10235
10236 2020-01-26 Tom Tromey <tom@tromey.com>
10237
10238 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10239 read_dependencies. Add assert.
10240 * psymtab.c (partial_symtab::read_dependencies): New method.
10241 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10242 method.
10243 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10244 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10245 read_dependencies.
10246 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10247 Add assert.
10248
10249 2020-01-26 Tom Tromey <tom@tromey.com>
10250
10251 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10252 Call expand_psymtab.
10253 (xcoff_read_symtab): Call expand_psymtab.
10254 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10255 legacy_expand_psymtab.
10256 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10257 method.
10258 (struct legacy_psymtab) <expand_psymtab>: Implement.
10259 <legacy_expand_psymtab>: New member.
10260 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10261 (parse_partial_symbols): Set legacy_expand_psymtab.
10262 (psymtab_to_symtab_1): Change argument order. Call
10263 expand_psymtab.
10264 (new_psymtab): Set legacy_expand_psymtab.
10265 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10266 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10267 expand_psymtab.
10268 (dwarf2_psymtab::expand_psymtab): Rename from
10269 psymtab_to_symtab_1. Call expand_psymtab.
10270 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10271 (dbx_end_psymtab): Likewise.
10272 (dbx_psymtab_to_symtab_1): Change argument order. Call
10273 expand_psymtab.
10274 (dbx_read_symtab): Call expand_psymtab.
10275 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10276 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10277 (ctf_psymtab::read_symtab): Call expand_psymtab.
10278
10279 2020-01-26 Tom Tromey <tom@tromey.com>
10280
10281 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10282 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10283 messages.
10284 * mdebugread.c (mdebug_read_symtab): Remove prints.
10285 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10286 assert.
10287 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10288
10289 2020-01-26 Tom Tromey <tom@tromey.com>
10290
10291 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10292 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10293 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10294 legacy_symtab.
10295 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10296 * psymtab.c (psymtab_to_symtab): Call method.
10297 (dump_psymtab): Update.
10298 * psympriv.h (struct partial_symtab): Add virtual destructor.
10299 <read_symtab>: New method.
10300 (struct legacy_symtab): New.
10301 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10302 (struct pst_map) <pst>: Now a legacy_psymtab.
10303 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10304 (new_psymtab): Use legacy_psymtab.
10305 * dwarf2read.h (struct dwarf2_psymtab): New.
10306 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10307 * dwarf2read.c (dwarf2_create_include_psymtab)
10308 (dwarf2_build_include_psymtabs, create_type_unit_group)
10309 (create_partial_symtab, process_psymtab_comp_unit_reader)
10310 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10311 (set_partial_user): Use dwarf2_psymtab.
10312 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10313 (psymtab_to_symtab_1, process_full_comp_unit)
10314 (process_full_type_unit, dwarf2_ranges_read)
10315 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10316 (dwarf_decode_lines): Use dwarf2_psymtab.
10317 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10318 (add_address_entry_worker, write_one_signatured_type)
10319 (recursively_count_psymbols, recursively_write_psymbols)
10320 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10321 (write_debug_names): Likewise.
10322 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10323 <pst>: Now a legacy_psymtab.
10324 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10325 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10326 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10327 * ctfread.c (struct ctf_psymtab): New.
10328 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10329 ctf_psymtab.
10330 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10331 (create_partial_symtab): Return a ctf_psymtab.
10332 (scan_partial_symbols): Update.
10333
10334 2020-01-26 Tom Tromey <tom@tromey.com>
10335
10336 * xcoffread.c (xcoff_start_psymtab): Use new.
10337 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10338 renamed from start_psymtab_common.
10339 * psympriv.h (struct partial_symtab): Add new constructor.
10340 (start_psymtab_common): Don't declare.
10341 * mdebugread.c (parse_partial_symbols): Use new.
10342 * dwarf2read.c (create_partial_symtab): Use new.
10343 * dbxread.c (start_psymtab): Use new.
10344 * ctfread.c (create_partial_symtab): Use new.
10345
10346 2020-01-26 Tom Tromey <tom@tromey.com>
10347
10348 * xcoffread.c (xcoff_end_psymtab): Use new.
10349 * psymtab.c (start_psymtab_common): Use new.
10350 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10351 Update.
10352 * psympriv.h (struct partial_symtab): Add parameters to
10353 constructor. Don't inline.
10354 (allocate_psymtab): Don't declare.
10355 * mdebugread.c (new_psymtab): Use new.
10356 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10357 * dbxread.c (dbx_end_psymtab): Use new.
10358
10359 2020-01-26 Tom Tromey <tom@tromey.com>
10360
10361 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10362 allocate_psymtab. Update documentation.
10363 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10364 allocate_psymtab. Do not use new.
10365 (allocate_psymtab): Use new. Update.
10366
10367 2020-01-26 Tom Tromey <tom@tromey.com>
10368
10369 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10370 * psymtab.c (psym_print_stats): Update.
10371 * psympriv.h (struct partial_symtab) <readin,
10372 psymtabs_addrmap_supported, anonymous>: Now bool.
10373 * mdebugread.c (psymtab_to_symtab_1): Update.
10374 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10375 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10376 (process_full_comp_unit, process_full_type_unit): Update.
10377 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10378 * ctfread.c (psymtab_to_symtab): Update.
10379
10380 2020-01-26 Tom Tromey <tom@tromey.com>
10381
10382 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10383 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10384 * psymtab.c (psymtab_storage): Delete psymtabs.
10385 (psymtab_storage::allocate_psymtab): Use new.
10386 (psymtab_storage::discard_psymtab): Use delete.
10387 * psympriv.h (struct partial_symtab): Add constructor and
10388 initializers.
10389
10390 2020-01-26 Tom Tromey <tom@tromey.com>
10391
10392 * machoread.c: Do not include psympriv.h.
10393
10394 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10395
10396 * NEWS: Mention the new option and the set/show commands.
10397
10398 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10399
10400 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10401 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10402 (validate_exec_file): New variables, enums, functions.
10403 (exec_file_locate_attach, print_section_info): Style the filenames.
10404 (_initialize_exec): Install show_exec_file_mismatch_command and
10405 set_exec_file_mismatch_command.
10406 * gdbcore.h (validate_exec_file): Declare.
10407 * infcmd.c (attach_command): Call validate_exec_file.
10408 * remote.c ( remote_target::remote_add_inferior): Likewise.
10409
10410 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10411
10412 * frame.c (find_frame_sal): Move call to get_next_frame into more
10413 inner scope.
10414 * inline-frame.c (inilne_state) <inline_state>: Update argument
10415 types.
10416 (inilne_state) <skipped_symbol>: Rename to...
10417 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10418 (skip_inline_frames): Build vector of skipped symbols and use this
10419 to reate the inline_state.
10420 (inline_skipped_symbol): Add a comment and some assertions, fetch
10421 skipped symbol from the list.
10422
10423 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10424
10425 * buildsym.c (lte_is_less_than): Delete.
10426 (buildsym_compunit::end_symtab_with_blockvector): Create local
10427 lambda function to sort line table entries, and use
10428 std::stable_sort instead of std::sort.
10429 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10430 markers when looking for a previous line.
10431
10432 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10433
10434 * dwarf2read.c (lnp_state_machine::record_line): Include
10435 end_sequence parameter in debug print out. Record the line if we
10436 are at an end_sequence marker even if it's not the start of a
10437 statement.
10438 * symmisc.c (maintenance_print_one_line_table): Print end of
10439 sequence markers with 'END' not '0'.
10440
10441 2020-01-24 Pedro Alves <palves@redhat.com>
10442
10443 PR gdb/25410
10444 * thread.c (scoped_restore_current_thread::restore): Use
10445 switch_to_inferior_no_thread.
10446 * exec.c: Include "progspace-and-thread.h".
10447 (add_target_sections, remove_target_sections):
10448 scoped_restore_current_pspace_and_thread instead of
10449 scoped_restore_current_thread.
10450 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10451 and aspace to the inferior before calling clone_program_space.
10452 Remove stale comment.
10453
10454 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10455
10456 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10457 (arm_netbsd_nat_target::fetch_registers): ...this.
10458 (arm_nbsd_nat_target::store_registers): Rename to...
10459 (arm_netbsd_nat_target::store_registers): ...this.
10460
10461 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10462
10463 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10464 register_t.
10465
10466 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10467
10468 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10469 Update comment.
10470 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10471 Likewise.
10472 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10473 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10474 the correct replacement (iterate_over_regset_sections).
10475 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10476 Update comment.
10477
10478 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10479
10480 PR gdb/23718
10481 * gdb/python/python.c (execute_gdb_command): Call
10482 async_enable_stdin in catch block.
10483
10484 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10485
10486 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10487 SWITCH_THRU_ALL_UIS.
10488
10489 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10490
10491 PR tui/9765
10492 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10493 comment, add extra parameter, and update to store previous symbol
10494 when appropriate.
10495 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10496 add extra parameter.
10497 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10498 remove unneeded parameter, add try/catch around gdb_print_insn,
10499 rewrite to add items to asm_lines vector.
10500 (tui_find_backward_disassembly_start_address): New function.
10501 (tui_find_disassembly_address): Updated throughout.
10502 (tui_disasm_window::set_contents): Update for changes to
10503 tui_disassemble.
10504 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10505 number of lines to scroll.
10506
10507 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10508
10509 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10510 (SECT_OFF_DATA): Likewise.
10511 (SECT_OFF_RODATA): Likewise.
10512 (SECT_OFF_TEXT): Likewise.
10513 (SECT_OFF_BSS): Likewise.
10514 (struct objfile) <text_section_offset, data_section_offset>: New
10515 methods.
10516 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10517 objfile::text_section_offset.
10518 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10519 * coffread.c (coff_symtab_read): Likewise.
10520 (enter_linenos): Likewise.
10521 (process_coff_symbol): Likewise.
10522 * ctfread.c (get_objfile_text_range): Likewise.
10523 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10524 Use objfile::data_section_offset.
10525 * dwarf2-frame.c (execute_cfa_program): Use
10526 objfile::text_section_offset.
10527 (dwarf2_frame_find_fde): Likewise.
10528 * dwarf2read.c (create_addrmap_from_index): Likewise.
10529 (create_addrmap_from_aranges): Likewise.
10530 (dw2_find_pc_sect_compunit_symtab): Likewise.
10531 (process_psymtab_comp_unit_reader): Likewise.
10532 (add_partial_symbol): Likewise.
10533 (add_partial_subprogram): Likewise.
10534 (process_full_comp_unit): Likewise.
10535 (read_file_scope): Likewise.
10536 (read_func_scope): Likewise.
10537 (read_lexical_block_scope): Likewise.
10538 (read_call_site_scope): Likewise.
10539 (dwarf2_rnglists_process): Likewise.
10540 (dwarf2_ranges_process): Likewise.
10541 (dwarf2_ranges_read): Likewise.
10542 (dwarf_decode_lines_1): Likewise.
10543 (new_symbol): Likewise.
10544 (dwarf2_fetch_die_loc_sect_off): Likewise.
10545 (dwarf2_per_cu_text_offset): Likewise.
10546 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10547 * hppa-tdep.c (read_unwind_info): Likewise.
10548 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10549 * psympriv.h (struct partial_symtab): Likewise.
10550 * psymtab.c (find_pc_sect_psymtab): Likewise.
10551 * solib-svr4.c (enable_break): Likewise.
10552 * stap-probe.c (relocate_address): Use
10553 objfile::data_section_offset.
10554 * xcoffread.c (enter_line_range): Use
10555 objfile::text_section_offset.
10556 (read_xcoff_symtab): Likewise.
10557
10558 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10559
10560 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10561 declaration to narrower scopes.
10562
10563 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10564
10565 * darwin-nat.h (struct darwin_exception_msg, enum
10566 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10567 Move up.
10568 (class darwin_nat_target) <wait_1, check_new_threads,
10569 decode_exception_message, decode_message, stop_inferior,
10570 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10571 * darwin-nat.c (darwin_check_new_threads): Rename to...
10572 (darwin_nat_target::check_new_threads): ... this.
10573 (darwin_suspend_inferior_it): Remove.
10574 (darwin_decode_exception_message): Rename to...
10575 (darwin_nat_target::decode_exception_message): ... this.
10576 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10577 (darwin_decode_message): Rename to...
10578 (darwin_nat_target::decode_message): ... this.
10579 (cancel_breakpoint): Rename to...
10580 (darwin_nat_target::cancel_breakpoint): ... this.
10581 (darwin_wait): Rename to...
10582 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10583 instead of iterate_over_inferiors.
10584 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10585 (darwin_stop_inferior): Rename to...
10586 (darwin_nat_target::stop_inferior): ... this.
10587 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10588 (darwin_init_thread_list): Rename to...
10589 (darwin_nat_target::init_thread_list): ... this.
10590 (darwin_ptrace_him): Rename to...
10591 (darwin_nat_target::ptrace_him): ... this.
10592 (darwin_nat_target::create_inferior): Pass lambda function to
10593 fork_inferior.
10594 (darwin_nat_target::detach): Call stop_inferior instead of
10595 darwin_stop_inferior.
10596 * fork-inferior.h (fork_inferior): Change init_trace_fun
10597 parameter to gdb::function_view.
10598 * fork-inferior.c (fork_inferior): Likewise.
10599
10600 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10601
10602 * i386-cygwin-tdep.c (core_process_module_section): Update.
10603 * windows-nat.c (struct lm_info_windows): Add text_offset.
10604 (windows_xfer_shared_libraries): Update.
10605 * windows-tdep.c (windows_xfer_shared_library):
10606 Add text_offset_cached argument.
10607 * windows-tdep.h (windows_xfer_shared_library): Update.
10608
10609 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10610
10611 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10612
10613 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10614
10615 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10616 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10617 replace with range-based for.
10618 (gdbsim_interrupt_inferior): Remove.
10619 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10620 with a range-based for. Inline code from
10621 gdbsim_interrupt_inferior.
10622
10623 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10624
10625 * infrun.c (proceed): Fix indentation.
10626
10627 2020-01-21 Tom Tromey <tromey@adacore.com>
10628
10629 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10630 * python/python.c (python_extension_ops): Update.
10631 (gdbpy_colorize): New function.
10632 * python/lib/gdb/__init__.py (colorize): New function.
10633 * extension.h (ext_lang_colorize): Declare.
10634 * extension.c (ext_lang_colorize): New function.
10635 * extension-priv.h (struct extension_language_ops) <colorize>: New
10636 member.
10637 * cli/cli-style.c (_initialize_cli_style): Update help text.
10638
10639 2020-01-21 Luis Machado <luis.machado@linaro.org>
10640
10641 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10642 <cond>: Change type to bool.
10643 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10644 (aarch64_displaced_step_cb): Likewise.
10645 (aarch64_displaced_step_tb): Likewise.
10646
10647 2020-01-21 Luis Machado <luis.machado@linaro.org>
10648
10649 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10650 output.
10651
10652 2020-01-21 Luis Machado <luis.machado@linaro.org>
10653
10654 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10655 <pc_adjust>: Adjust the documentation.
10656 (aarch64_displaced_step_fixup): Check if PC really moved before
10657 adjusting it.
10658
10659 2020-01-19 Tom Tromey <tom@tromey.com>
10660
10661 * disasm.c (~gdb_disassembler): New destructor.
10662 (gdb_buffered_insn_length): Call disassemble_free_target.
10663 * disasm.h (class gdb_disassembler): Declare destructor. Use
10664 DISABLE_COPY_AND_ASSIGN.
10665
10666 2020-01-19 Tom Tromey <tom@tromey.com>
10667
10668 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10669 (die_reader_func_ftype): Remove.
10670 (cutu_reader): New class.
10671 (dw2_get_file_names_reader): Remove "data" parameter.
10672 (dw2_get_file_names): Use cutu_reader.
10673 (create_debug_type_hash_table): Update.
10674 (read_cutu_die_from_dwo): Update comment.
10675 (lookup_dwo_unit): Add dwo_name parameter.
10676 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10677 die_reader_func_ftype and data parameters.
10678 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10679 Remove die_reader_func_ftype and data parameters.
10680 (~cutu_reader): New; from init_cutu_and_read_dies.
10681 (cutu_reader::cutu_reader): Rename from
10682 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10683 and data parameters.
10684 (init_cutu_and_read_dies_simple): Remove.
10685 (struct process_psymtab_comp_unit_data): Remove.
10686 (process_psymtab_comp_unit_reader): Remove data parameter; add
10687 want_partial_unit and pretend_language parameters.
10688 (process_psymtab_comp_unit): Use cutu_reader.
10689 (build_type_psymtabs_reader): Remove data parameter.
10690 (build_type_psymtabs_1): Use cutu_reader.
10691 (process_skeletonless_type_unit): Likewise.
10692 (load_partial_comp_unit_reader): Remove.
10693 (load_partial_comp_unit): Use cutu_reader.
10694 (load_full_comp_unit_reader): Remove.
10695 (load_full_comp_unit): Use cutu_reader.
10696 (struct create_dwo_cu_data): Remove.
10697 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10698 dwo_unit parameters.
10699 (create_cus_hash_table): Use cutu_reader.
10700 (struct dwarf2_read_addr_index_data): Remove.
10701 (dwarf2_read_addr_index_reader): Remove.
10702 (dwarf2_read_addr_index): Use cutu_reader.
10703 (read_signatured_type_reader): Remove.
10704 (read_signatured_type): Use cutu_reader.
10705
10706 2020-01-19 Tom Tromey <tom@tromey.com>
10707
10708 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10709 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10710 (tui_wrefresh): Declare.
10711 * tui/tui-wingeneral.c (suppress_output): New global.
10712 (tui_suppress_output, ~tui_suppress_output): New constructor and
10713 destructor.
10714 (tui_wrefresh): New function.
10715 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10716 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10717 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10718 method.
10719 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10720 tui_wrefresh.
10721 (tui_data_window::no_refresh): New method.
10722 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10723 (tui_reg_command): Use tui_suppress_output
10724 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10725 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10726 method.
10727 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10728
10729 2020-01-19 Tom Tromey <tom@tromey.com>
10730
10731 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10732 Handle case where symtab is null.
10733
10734 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10735
10736 * linux-fork.c (one_fork_p): Simplify.
10737
10738 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10739
10740 * top.c (struct qt_args): Remove.
10741 (kill_or_detach): Change return type to void, replace `void *`
10742 parameter with a proper one.
10743 (print_inferior_quit_action): Likewise.
10744 (quit_confirm): Use range-based for loop to iterate over inferiors.
10745 (quit_force): Likewise.
10746
10747 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10748
10749 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10750 `void *` parameter with proper parameters.
10751 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10752 (print_one_inferior): Change return type to void, replace `void *`
10753 parameter with proper parameters.
10754 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10755 inferiors.
10756 (get_other_inferior): Remove.
10757 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10758 inferiors.
10759
10760 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10761
10762 * mi/mi-interp.c (report_initial_inferior): Remove.
10763 (mi_interp::init): Use range-based for to iterate over inferiors.
10764
10765 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10766
10767 * python/py-inferior.c (build_inferior_list): Remove.
10768 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10769
10770 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10771
10772 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10773 (btrace_stitch_trace): Likewise.
10774 * charset.c (intermediate_encoding): Likewise (vaild).
10775 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10776 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10777 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10778
10779 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10780
10781 * windows-tdep.c (windows_get_tlb_type):
10782 Add rtl_user_process_parameters type.
10783
10784 2020-01-16 Pedro Alves <palves@redhat.com>
10785 Norbert Lange <nolange79@gmail.com>
10786
10787 PR build/24805
10788 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10789 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10790 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10791 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10792 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10793 (ps_plog): Redeclare exported functions with default visibility.
10794
10795 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10796
10797 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10798 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10799
10800 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10801
10802 * infcmd.c (post_create_inferior): Use get_thread_regcache
10803 instead of get_current_regcache.
10804
10805 2020-01-14 Tom Tromey <tom@tromey.com>
10806
10807 PR symtab/12535:
10808 * python/python.c (gdbpy_decode_line): Treat empty string the same
10809 as no argument.
10810
10811 2020-01-14 Tom Tromey <tom@tromey.com>
10812
10813 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10814
10815 2020-01-14 Tom Tromey <tom@tromey.com>
10816
10817 * nat/linux-btrace.c: Don't include <config.h>.
10818 * nat/linux-ptrace.c: Don't include <config.h>.
10819 * nat/x86-linux-dregs.c: Don't include <config.h>.
10820
10821 2020-01-14 Tom Tromey <tom@tromey.com>
10822
10823 * configure: Rebuild.
10824 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10825
10826 2020-01-14 Tom Tromey <tom@tromey.com>
10827
10828 * nat/x86-linux-dregs.c: Include configh.h.
10829 * nat/linux-ptrace.c: Include configh.h.
10830 * nat/linux-btrace.c: Include configh.h.
10831 * defs.h: Include config.h, bfd.h.
10832 * configure.ac: Don't source common.host.
10833 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10834 * configure: Rebuild.
10835 * acinclude.m4: Update path.
10836 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10837 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10838 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10839 (CLIBS): Add LIBSUPPORT.
10840 (CDEPS): Likewise.
10841 (COMMON_SFILES): Remove gdbsupport files.
10842 (HFILES_NO_SRCDIR): Likewise.
10843 (stamp-version): Update path to create-version.sh.
10844 (ALLDEPFILES): Remove gdbsupport files.
10845
10846 2020-01-14 Tom Tromey <tom@tromey.com>
10847
10848 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10849 USE_WIN32API when needed.
10850 * configure.ac (USE_WIN32API): Don't define.
10851 (WIN32LIBS): Use WIN32APILIBS.
10852 * configure: Rebuild.
10853
10854 2020-01-14 Tom Tromey <tom@tromey.com>
10855
10856 * configure: Rebuild.
10857 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10858
10859 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10860
10861 * skip.c (skip_function_command): Make skip w/o arguments use the
10862 name of the inlined function if pc is inside any inlined function.
10863
10864 2020-01-14 Luis Machado <luis.machado@linaro.org>
10865
10866 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10867 * infrun.c (resume_1): Likewise.
10868 (handle_inferior_event): Remove stale comment.
10869 * linux-nat.c (linux_nat_target::resume): Update comments.
10870 (save_stop_reason): Likewise.
10871 (linux_nat_filter_event): Likewise.
10872 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10873
10874 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10875
10876 * elfread.c (record_minimal_symbol): Set section index to 0 for
10877 non-allocatable sections.
10878
10879
10880 2020-01-13 Ali Tamur <tamur@google.com>
10881
10882 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10883 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10884 to gdb::optional. Update comments.
10885 (dwo_file): Update comments.
10886 (read_attribute): Update API to take an additional out parameter,
10887 need_reprocess. This is used to mark attributes that need other
10888 attributes (e.g. str_offsets_base) for correct computation which may not
10889 have been read yet.
10890 (read_attribute_reprocess): New function declaration.
10891 (read_addr_index): Likewise.
10892 (read_dwo_str_index): Likewise.
10893 (read_stub_str_index): Likewise.
10894 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10895 (lookup_addr_base): New function definition.
10896 (lookup_ranges_base): Likewise.
10897 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10898 lookup_ranges_base.
10899 (init_cutu_and_read_dies): Update comments.
10900 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10901 unit. This is used to inherit parent's str_offsets_base and addr_base.
10902 Update comments.
10903 (init_cutu_and_read_dies_simple): Reflect API changes.
10904 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10905 (create_cus_hash_table): Change API to take parent compile unit.
10906 Reflect API changes.
10907 (open_and_init_dwo_file): Reflect API changes.
10908 (dwarf2_get_pc_bounds): Update comments.
10909 (dwarf2_record_block_ranges): Likewise.
10910 (read_full_die_1): Change implementation to reprocess attributes that
10911 need str_offsets_base and addr_base.
10912 (partial_die_info::read): Likewise.
10913 (read_attribute_reprocess): New function definition.
10914 (read_attribute_value): Change API to take an additional out parameter,
10915 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10916 when a non-dwo compile unit has index based attributes.
10917 (read_attribute): Reflect API changes.
10918 (read_addr_index_1): Reflect API changes. Update comments.
10919 (dwarf2_read_addr_index_data): Reflect API changes.
10920 (dwarf2_read_addr_index): Likewise.
10921 (read_str_index): Change API and implementation. This becomes a helper
10922 to be used by the new string index related methods. Update error
10923 message and comments.
10924 (read_dwo_str_index): New function definition.
10925 (read_stub_str_index): Likewise.
10926 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10927 * symfile.h (dwarf2_debug_sections): Likewise.
10928 * xcoffread.c (dwarf2_debug_sections): Likewise.
10929
10930 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10931
10932 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10933 core_reg_sect type to gdb_byte *.
10934 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10935 * cris-tdep.c (fetch_core_registers): Likewise.
10936 * corelow.c (core_target::get_core_register_section): Change
10937 type of `contents` to gdb::byte_vector.
10938
10939 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10940
10941 * tui/tui-wingeneral.c (box_win): Position the title in the center
10942 of the border.
10943
10944 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10945
10946 * corelow.c (core_target::get_core_register_section): Use
10947 std::vector instead of alloca.
10948
10949 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10950
10951 * warning.m4: Add -Wmissing-declarations to build_warnings.
10952 * configure: Re-generate.
10953
10954 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10955
10956 * python/python.c (init__gdb_module): Add declaration.
10957
10958 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10959
10960 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10961 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10962 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10963 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10964 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10965 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10966 * ada-exp.y (_initialize_ada_exp): Add declaration.
10967 * ada-lang.c (_initialize_ada_language): Add declaration.
10968 * ada-tasks.c (_initialize_tasks): Add declaration.
10969 * agent.c (_initialize_agent): Add declaration.
10970 * aix-thread.c (_initialize_aix_thread): Add declaration.
10971 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10972 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10973 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10974 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10975 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10976 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10977 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10978 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10979 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10980 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10981 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10982 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10983 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10984 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10985 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10986 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10987 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10988 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10989 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10990 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10991 * annotate.c (_initialize_annotate): Add declaration.
10992 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10993 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10994 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10995 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10996 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10997 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10998 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10999 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11000 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11001 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11002 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11003 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11004 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11005 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11006 * auto-load.c (_initialize_auto_load): Add declaration.
11007 * auxv.c (_initialize_auxv): Add declaration.
11008 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11009 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11010 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11011 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11012 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11013 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11014 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11015 * breakpoint.c (_initialize_breakpoint): Add declaration.
11016 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11017 * btrace.c (_initialize_btrace): Add declaration.
11018 * charset.c (_initialize_charset): Add declaration.
11019 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11020 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11021 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11022 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11023 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11024 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11025 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11026 * coffread.c (_initialize_coffread): Add declaration.
11027 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11028 * compile/compile.c (_initialize_compile): Add declaration.
11029 * complaints.c (_initialize_complaints): Add declaration.
11030 * completer.c (_initialize_completer): Add declaration.
11031 * copying.c (_initialize_copying): Add declaration.
11032 * corefile.c (_initialize_core): Add declaration.
11033 * corelow.c (_initialize_corelow): Add declaration.
11034 * cp-abi.c (_initialize_cp_abi): Add declaration.
11035 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11036 * cp-support.c (_initialize_cp_support): Add declaration.
11037 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11038 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11039 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11040 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11041 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11042 * ctfread.c (_initialize_ctfread): Add declaration.
11043 * d-lang.c (_initialize_d_language): Add declaration.
11044 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11045 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11046 * dbxread.c (_initialize_dbxread): Add declaration.
11047 * dcache.c (_initialize_dcache): Add declaration.
11048 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11049 * disasm.c (_initialize_disasm): Add declaration.
11050 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11051 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11052 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11053 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11054 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11055 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11056 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11057 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11058 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11059 * elfread.c (_initialize_elfread): Add declaration.
11060 * exec.c (_initialize_exec): Add declaration.
11061 * extension.c (_initialize_extension): Add declaration.
11062 * f-lang.c (_initialize_f_language): Add declaration.
11063 * f-valprint.c (_initialize_f_valprint): Add declaration.
11064 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11065 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11066 * filesystem.c (_initialize_filesystem): Add declaration.
11067 * findcmd.c (_initialize_mem_search): Add declaration.
11068 * findvar.c (_initialize_findvar): Add declaration.
11069 * fork-child.c (_initialize_fork_child): Add declaration.
11070 * frame-base.c (_initialize_frame_base): Add declaration.
11071 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11072 * frame.c (_initialize_frame): Add declaration.
11073 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11074 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11075 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11076 * gcore.c (_initialize_gcore): Add declaration.
11077 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11078 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11079 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11080 * gdbarch.c (_initialize_gdbarch): Add declaration.
11081 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11082 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11083 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11084 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11085 * go-lang.c (_initialize_go_language): Add declaration.
11086 * go32-nat.c (_initialize_go32_nat): Add declaration.
11087 * guile/guile.c (_initialize_guile): Add declaration.
11088 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11089 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11090 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11091 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11092 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11093 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11094 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11095 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11096 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11097 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11098 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11099 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11100 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11101 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11102 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11103 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11104 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11105 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11106 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11107 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11108 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11109 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11110 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11111 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11112 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11113 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11114 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11115 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11116 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11117 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11118 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11119 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11120 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11121 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11122 * infcall.c (_initialize_infcall): Add declaration.
11123 * infcmd.c (_initialize_infcmd): Add declaration.
11124 * inflow.c (_initialize_inflow): Add declaration.
11125 * infrun.c (_initialize_infrun): Add declaration.
11126 * interps.c (_initialize_interpreter): Add declaration.
11127 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11128 * jit.c (_initialize_jit): Add declaration.
11129 * language.c (_initialize_language): Add declaration.
11130 * linux-fork.c (_initialize_linux_fork): Add declaration.
11131 * linux-nat.c (_initialize_linux_nat): Add declaration.
11132 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11133 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11134 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11135 * m2-lang.c (_initialize_m2_language): Add declaration.
11136 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11137 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11138 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11139 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11140 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11141 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11142 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11143 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11144 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11145 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11146 * machoread.c (_initialize_machoread): Add declaration.
11147 * macrocmd.c (_initialize_macrocmd): Add declaration.
11148 * macroscope.c (_initialize_macroscope): Add declaration.
11149 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11150 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11151 * maint.c (_initialize_maint_cmds): Add declaration.
11152 * mdebugread.c (_initialize_mdebugread): Add declaration.
11153 * memattr.c (_initialize_mem): Add declaration.
11154 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11155 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11156 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11157 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11158 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11159 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11160 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11161 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11162 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11163 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11164 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11165 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11166 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11167 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11168 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11169 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11170 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11171 * mipsread.c (_initialize_mipsread): Add declaration.
11172 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11173 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11174 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11175 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11176 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11177 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11178 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11179 * nto-procfs.c (_initialize_procfs): Add declaration.
11180 * objc-lang.c (_initialize_objc_language): Add declaration.
11181 * observable.c (_initialize_observer): Add declaration.
11182 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11183 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11184 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11185 * osabi.c (_initialize_gdb_osabi): Add declaration.
11186 * osdata.c (_initialize_osdata): Add declaration.
11187 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11188 * parse.c (_initialize_parse): Add declaration.
11189 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11190 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11191 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11192 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11193 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11194 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11195 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11196 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11197 * printcmd.c (_initialize_printcmd): Add declaration.
11198 * probe.c (_initialize_probe): Add declaration.
11199 * proc-api.c (_initialize_proc_api): Add declaration.
11200 * proc-events.c (_initialize_proc_events): Add declaration.
11201 * proc-service.c (_initialize_proc_service): Add declaration.
11202 * procfs.c (_initialize_procfs): Add declaration.
11203 * producer.c (_initialize_producer): Add declaration.
11204 * psymtab.c (_initialize_psymtab): Add declaration.
11205 * python/python.c (_initialize_python): Add declaration.
11206 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11207 * record-btrace.c (_initialize_record_btrace): Add declaration.
11208 * record-full.c (_initialize_record_full): Add declaration.
11209 * record.c (_initialize_record): Add declaration.
11210 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11211 * regcache.c (_initialize_regcache): Add declaration.
11212 * reggroups.c (_initialize_reggroup): Add declaration.
11213 * remote-notif.c (_initialize_notif): Add declaration.
11214 * remote-sim.c (_initialize_remote_sim): Add declaration.
11215 * remote.c (_initialize_remote): Add declaration.
11216 * reverse.c (_initialize_reverse): Add declaration.
11217 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11218 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11219 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11220 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11221 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11222 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11223 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11224 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11225 Add declaration.
11226 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11227 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11228 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11229 * rust-exp.y (_initialize_rust_exp): Add declaration.
11230 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11231 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11232 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11233 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11234 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11235 * score-tdep.c (_initialize_score_tdep): Add declaration.
11236 * ser-go32.c (_initialize_ser_dos): Add declaration.
11237 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11238 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11239 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11240 * ser-uds.c (_initialize_ser_socket): Add declaration.
11241 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11242 * serial.c (_initialize_serial): Add declaration.
11243 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11244 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11245 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11246 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11247 * skip.c (_initialize_step_skip): Add declaration.
11248 * sol-thread.c (_initialize_sol_thread): Add declaration.
11249 * solib-aix.c (_initialize_solib_aix): Add declaration.
11250 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11251 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11252 * solib-frv.c (_initialize_frv_solib): Add declaration.
11253 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11254 * solib-target.c (_initialize_solib_target): Add declaration.
11255 * solib.c (_initialize_solib): Add declaration.
11256 * source-cache.c (_initialize_source_cache): Add declaration.
11257 * source.c (_initialize_source): Add declaration.
11258 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11259 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11260 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11261 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11262 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11263 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11264 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11265 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11266 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11267 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11268 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11269 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11270 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11271 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11272 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11273 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11274 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11275 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11276 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11277 * stabsread.c (_initialize_stabsread): Add declaration.
11278 * stack.c (_initialize_stack): Add declaration.
11279 * stap-probe.c (_initialize_stap_probe): Add declaration.
11280 * std-regs.c (_initialize_frame_reg): Add declaration.
11281 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11282 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11283 * symfile.c (_initialize_symfile): Add declaration.
11284 * symmisc.c (_initialize_symmisc): Add declaration.
11285 * symtab.c (_initialize_symtab): Add declaration.
11286 * target.c (_initialize_target): Add declaration.
11287 * target-connection.c (_initialize_target_connection): Add
11288 declaration.
11289 * target-dcache.c (_initialize_target_dcache): Add declaration.
11290 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11291 * thread.c (_initialize_thread): Add declaration.
11292 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11293 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11294 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11295 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11296 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11297 * tracectf.c (_initialize_ctf): Add declaration.
11298 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11299 * tracefile.c (_initialize_tracefile): Add declaration.
11300 * tracepoint.c (_initialize_tracepoint): Add declaration.
11301 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11302 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11303 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11304 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11305 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11306 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11307 * tui/tui.c (_initialize_tui): Add declaration.
11308 * typeprint.c (_initialize_typeprint): Add declaration.
11309 * ui-style.c (_initialize_ui_style): Add declaration.
11310 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11311 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11312 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11313 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11314 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11315 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11316 * unittests/filtered_iterator-selftests.c
11317 (_initialize_filtered_iterator_selftests): Add declaration.
11318 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11319 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11320 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11321 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11322 * unittests/main-thread-selftests.c
11323 (_initialize_main_thread_selftests): Add declaration.
11324 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11325 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11326 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11327 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11328 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11329 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11330 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11331 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11332 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11333 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11334 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11335 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11336 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11337 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11338 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11339 declaration.
11340 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11341 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11342 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11343 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11344 * user-regs.c (_initialize_user_regs): Add declaration.
11345 * utils.c (_initialize_utils): Add declaration.
11346 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11347 * valops.c (_initialize_valops): Add declaration.
11348 * valprint.c (_initialize_valprint): Add declaration.
11349 * value.c (_initialize_values): Add declaration.
11350 * varobj.c (_initialize_varobj): Add declaration.
11351 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11352 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11353 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11354 * windows-nat.c (_initialize_windows_nat): Add declaration.
11355 (_initialize_check_for_gdb_ini): Add declaration.
11356 (_initialize_loadable): Add declaration.
11357 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11358 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11359 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11360 * xcoffread.c (_initialize_xcoffread): Add declaration.
11361 * xml-support.c (_initialize_xml_support): Add declaration.
11362 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11363 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11364 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11365 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11366
11367 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11368
11369 * regformats/regdat.sh: Generate declaration for init function.
11370
11371 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11372
11373 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11374 up.
11375 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11376 close_one_inferior>: New methods.
11377 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11378 pass down target to find_inferior_pid.
11379 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11380 Pass down target to find_inferior_ptid.
11381 (gdbsim_target::create_inferior): Pass down target to
11382 add_thread_silent.
11383 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11384 target down to find_inferior_ptid and switch_to_thread.
11385 (gdbsim_target::close): Update to call close_one_inferior.
11386 (struct resume_data): Remove.
11387 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11388 directly, rather than through a void pointer.
11389 (gdbsim_target::resume): Update to call resume_one_inferior.
11390
11391 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11392
11393 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11394
11395 2020-01-12 Pedro Alves <palves@redhat.com>
11396
11397 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11398 directly for the current inferior instead of
11399 discard_all_inferiors.
11400 (discard_all_inferiors): Delete.
11401
11402 2020-01-11 Tom Tromey <tom@tromey.com>
11403
11404 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11405 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11406 deprecated_safe_get_selected_frame.
11407
11408 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11409
11410 * inferior.c (print_inferior): Switch inferior before printing it.
11411
11412 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11413 Pedro Alves <palves@redhat.com>
11414
11415 * progspace-and-thread.c (switch_to_program_space_and_thread):
11416 Assert there's an inferior for PSPACE. Use
11417 switch_to_inferior_no_thread to switch the inferior too.
11418 * progspace.c (program_space::~program_space): Call
11419 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11420 (program_space::free_all_objfiles): Don't call clear_symtab_users
11421 here.
11422 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11423
11424 2020-01-10 Pedro Alves <palves@redhat.com>
11425
11426 * NEWS: Mention multi-target debugging, "info connections", and
11427 "add-inferior -no-connection".
11428
11429 2020-01-10 Pedro Alves <palves@redhat.com>
11430
11431 * infrun.c: Include "target-connection.h".
11432 (check_multi_target_resumption): New.
11433 (proceed): Call it.
11434 * target-connection.c (make_target_connection_string): Make
11435 extern.
11436 * target-connection.h (make_target_connection_string): Declare.
11437
11438 2020-01-10 Pedro Alves <palves@redhat.com>
11439
11440 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11441 * inferior.c (uiout_field_connection): New function.
11442 (print_inferior): Add new "connection-id" column.
11443 (add_inferior_command): Show connection number/string of added
11444 inferior.
11445 * process-stratum-target.h
11446 (process_stratum_target::connection_string): New virtual method.
11447 (process_stratum_target::connection_number): New field.
11448 * remote.c (remote_target::connection_string): New override.
11449 * target-connection.c: New file.
11450 * target-connection.h: New file.
11451 * target.c (decref_target): Remove process_stratum targets from
11452 the connection list.
11453 (target_stack::push): Add process_stratum targets to the
11454 connection list.
11455
11456 2020-01-10 Pedro Alves <palves@redhat.com>
11457
11458 Revert:
11459 2016-04-12 Pedro Alves <palves@redhat.com>
11460 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11461 Remove references to name.
11462 * serial.h (struct serial) <name>: Delete.
11463
11464 2020-01-10 Pedro Alves <palves@redhat.com>
11465
11466 * gdbarch-selftests.c (register_to_value_test): Remove "target
11467 already pushed" check.
11468
11469 2020-01-10 Pedro Alves <palves@redhat.com>
11470 John Baldwin <jhb@FreeBSD.org>
11471
11472 * aarch64-linux-nat.c
11473 (aarch64_linux_nat_target::thread_architecture): Adjust.
11474 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11475 (task_command_1): Likewise.
11476 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11477 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11478 (aix_thread_target::store_registers)
11479 (aix_thread_target::thread_alive): Adjust.
11480 * amd64-fbsd-tdep.c: Include "inferior.h".
11481 (amd64fbsd_get_thread_local_address): Pass down target.
11482 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11483 thread's gdbarch instead of target_gdbarch.
11484 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11485 get_last_target_status.
11486 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11487 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11488 inferiors.
11489 (update_inserted_breakpoint_locations): Skip if inferiors with no
11490 execution.
11491 (update_global_location_list): When handling moribund locations,
11492 find representative inferior for location's pspace, and use thread
11493 count of its process_stratum target.
11494 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11495 * bsd-uthread.c (bsd_uthread_target::wait): Use
11496 as_process_stratum_target and adjust thread_change_ptid and
11497 add_thread calls.
11498 (bsd_uthread_target::update_thread_list): Use
11499 as_process_stratum_target and adjust find_thread_ptid,
11500 thread_change_ptid and add_thread calls.
11501 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11502 find_thread_ptid call.
11503 * corelow.c (add_to_thread_list): Adjust add_thread call.
11504 (core_target_open): Adjust add_thread_silent and thread_count
11505 calls.
11506 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11507 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11508 * event-top.c (async_disconnect): Pop targets from all inferiors.
11509 * exec.c (add_target_sections): Push exec target on all inferiors
11510 sharing the program space.
11511 (remove_target_sections): Remove the exec target from all
11512 inferiors sharing the program space.
11513 (exec_on_vfork): New.
11514 * exec.h (exec_on_vfork): Declare.
11515 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11516 Pass it down.
11517 (fbsd_nat_target::update_thread_list): Adjust.
11518 (fbsd_nat_target::resume): Adjust.
11519 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11520 down.
11521 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11522 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11523 get_thread_arch_regcache call.
11524 * fork-child.c (gdb_startup_inferior): Pass target down to
11525 startup_inferior and set_executing.
11526 * gdbthread.h (struct process_stratum_target): Forward declare.
11527 (add_thread, add_thread_silent, add_thread_with_info)
11528 (in_thread_list): Add process_stratum_target parameter.
11529 (find_thread_ptid(inferior*, ptid_t)): New overload.
11530 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11531 parameter.
11532 (all_threads()): Delete overload.
11533 (all_threads, all_non_exited_threads): Add process_stratum_target
11534 parameter.
11535 (all_threads_safe): Use brace initialization.
11536 (thread_count): Add process_stratum_target parameter.
11537 (set_resumed, set_running, set_stop_requested, set_executing)
11538 (threads_are_executing, finish_thread_state): Add
11539 process_stratum_target parameter.
11540 (switch_to_thread): Use is_current_thread.
11541 * i386-fbsd-tdep.c: Include "inferior.h".
11542 (i386fbsd_get_thread_local_address): Pass down target.
11543 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11544 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11545 have_inferiors check.
11546 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11547 (inf_ptrace_target::attach): Adjust.
11548 * infcall.c (run_inferior_call): Adjust.
11549 * infcmd.c (run_command_1): Pass target to
11550 scoped_finish_thread_state.
11551 (proceed_thread_callback): Skip inferiors with no execution.
11552 (continue_command): Rename 'all_threads' local to avoid hiding
11553 'all_threads' function. Adjust get_last_target_status call.
11554 (prepare_one_step): Adjust set_running call.
11555 (signal_command): Use user_visible_resume_target. Compare thread
11556 pointers instead of inferior_ptid.
11557 (info_program_command): Adjust to pass down target.
11558 (attach_command): Mark target's 'thread_executing' flag.
11559 (stop_current_target_threads_ns): New, factored out from ...
11560 (interrupt_target_1): ... this. Switch inferior before making
11561 target calls.
11562 * inferior-iter.h
11563 (struct all_inferiors_iterator, struct all_inferiors_range)
11564 (struct all_inferiors_safe_range)
11565 (struct all_non_exited_inferiors_range): Filter on
11566 process_stratum_target too. Remove explicit.
11567 * inferior.c (inferior::inferior): Push dummy target on target
11568 stack.
11569 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11570 Add process_stratum_target parameter, and pass it down.
11571 (have_live_inferiors): Adjust.
11572 (switch_to_inferior_and_push_target): New.
11573 (add_inferior_command, clone_inferior_command): Handle
11574 "-no-connection" parameter. Use
11575 switch_to_inferior_and_push_target.
11576 (_initialize_inferior): Mention "-no-connection" option in
11577 the help of "add-inferior" and "clone-inferior" commands.
11578 * inferior.h: Include "process-stratum-target.h".
11579 (interrupt_target_1): Use bool.
11580 (struct inferior) <push_target, unpush_target, target_is_pushed,
11581 find_target_beneath, top_target, process_target, target_at,
11582 m_stack>: New.
11583 (discard_all_inferiors): Delete.
11584 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11585 (all_inferiors, all_non_exited_inferiors): Add
11586 process_stratum_target parameter.
11587 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11588 (target_last_proc_target): New global.
11589 (follow_fork_inferior): Push target on new inferior. Pass target
11590 to add_thread_silent. Call exec_on_vfork. Handle target's
11591 reference count.
11592 (follow_fork): Adjust get_last_target_status call. Also consider
11593 target.
11594 (follow_exec): Push target on new inferior.
11595 (struct execution_control_state) <target>: New field.
11596 (user_visible_resume_target): New.
11597 (do_target_resume): Call target_async.
11598 (resume_1): Set target's threads_executing flag. Consider resume
11599 target.
11600 (commit_resume_all_targets): New.
11601 (proceed): Also consider resume target. Skip threads of inferiors
11602 with no execution. Commit resumtion in all targets.
11603 (start_remote): Pass current inferior to wait_for_inferior.
11604 (infrun_thread_stop_requested): Consider target as well. Pass
11605 thread_info pointer to clear_inline_frame_state instead of ptid.
11606 (infrun_thread_thread_exit): Consider target as well.
11607 (random_pending_event_thread): New inferior parameter. Use it.
11608 (do_target_wait): Rename to ...
11609 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11610 down.
11611 (threads_are_resumed_pending_p, do_target_wait): New.
11612 (prepare_for_detach): Adjust calls.
11613 (wait_for_inferior): New inferior parameter. Handle it. Use
11614 do_target_wait_1 instead of do_target_wait.
11615 (fetch_inferior_event): Adjust. Switch to representative
11616 inferior. Pass target down.
11617 (set_last_target_status): Add process_stratum_target parameter.
11618 Save target in global.
11619 (get_last_target_status): Add process_stratum_target parameter and
11620 handle it.
11621 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11622 (context_switch): Check inferior_ptid == null_ptid before calling
11623 inferior_thread().
11624 (get_inferior_stop_soon): Pass down target.
11625 (wait_one): Rename to ...
11626 (poll_one_curr_target): ... this.
11627 (struct wait_one_event): New.
11628 (wait_one): New.
11629 (stop_all_threads): Adjust.
11630 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11631 event's target.
11632 (switch_back_to_stepped_thread): Also consider target.
11633 (print_stop_event): Update.
11634 (normal_stop): Update. Also consider the resume target.
11635 * infrun.h (wait_for_inferior): Remove declaration.
11636 (user_visible_resume_target): New declaration.
11637 (get_last_target_status, set_last_target_status): New
11638 process_stratum_target parameter.
11639 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11640 process_stratum_target parameter, and use it.
11641 (clear_inline_frame_state (thread_info*)): New.
11642 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11643 process_stratum_target parameter.
11644 (clear_inline_frame_state (thread_info*)): Declare.
11645 * linux-fork.c (delete_checkpoint_command): Pass target down to
11646 find_thread_ptid.
11647 (checkpoint_command): Adjust.
11648 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11649 instead of just tweaking inferior_ptid.
11650 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11651 (exit_lwp): Pass target down to find_thread_ptid.
11652 (attach_proc_task_lwp_callback): Pass target down to
11653 add_thread/set_running/set_executing.
11654 (linux_nat_target::attach): Pass target down to
11655 thread_change_ptid.
11656 (get_detach_signal): Pass target down to find_thread_ptid.
11657 Consider last target status's target.
11658 (linux_resume_one_lwp_throw, resume_lwp)
11659 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11660 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11661 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11662 (linux_nat_target::async_wait_fd): New.
11663 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11664 target down.
11665 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11666 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11667 * linux-thread-db.c (struct thread_db_info::process_target): New
11668 field.
11669 (add_thread_db_info): Save target.
11670 (get_thread_db_info): New process_stratum_target parameter. Also
11671 match target.
11672 (delete_thread_db_info): New process_stratum_target parameter.
11673 Also match target.
11674 (thread_from_lwp): Adjust to pass down target.
11675 (thread_db_notice_clone): Pass down target.
11676 (check_thread_db_callback): Pass down target.
11677 (try_thread_db_load_1): Always push the thread_db target.
11678 (try_thread_db_load, record_thread): Pass target down.
11679 (thread_db_target::detach): Pass target down. Always unpush the
11680 thread_db target.
11681 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11682 target down. Always unpush the thread_db target.
11683 (find_new_threads_callback, thread_db_find_new_threads_2)
11684 (thread_db_target::update_thread_list): Pass target down.
11685 (thread_db_target::pid_to_str): Pass current inferior down.
11686 (thread_db_target::get_thread_local_address): Pass target down.
11687 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11688 target down.
11689 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11690 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11691 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11692 (procfs_init_inferior): Rename to ...
11693 (procfs_target::procfs_init_inferior): ... this and adjust.
11694 (procfs_target::create_inferior, procfs_notice_thread)
11695 (procfs_do_thread_registers): Adjust.
11696 * ppc-fbsd-tdep.c: Include "inferior.h".
11697 (ppcfbsd_get_thread_local_address): Pass down target.
11698 * proc-service.c (ps_xfer_memory): Switch current inferior and
11699 program space as well.
11700 (get_ps_regcache): Pass target down.
11701 * process-stratum-target.c
11702 (process_stratum_target::thread_address_space)
11703 (process_stratum_target::thread_architecture): Pass target down.
11704 * process-stratum-target.h
11705 (process_stratum_target::threads_executing): New field.
11706 (as_process_stratum_target): New.
11707 * ravenscar-thread.c
11708 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11709 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11710 down.
11711 * record-btrace.c (record_btrace_target::info_record): Adjust.
11712 (record_btrace_target::record_method)
11713 (record_btrace_target::record_is_replaying)
11714 (record_btrace_target::fetch_registers)
11715 (get_thread_current_frame_id, record_btrace_target::resume)
11716 (record_btrace_target::wait, record_btrace_target::stop): Pass
11717 target down.
11718 * record-full.c (record_full_wait_1): Switch to event thread.
11719 Pass target down.
11720 * regcache.c (regcache::regcache)
11721 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11722 process_stratum_target parameter and handle it.
11723 (current_thread_target): New global.
11724 (get_thread_regcache): Add process_stratum_target parameter and
11725 handle it. Switch inferior before calling target method.
11726 (get_thread_regcache): Pass target down.
11727 (get_thread_regcache_for_ptid): Pass target down.
11728 (registers_changed_ptid): Add process_stratum_target parameter and
11729 handle it.
11730 (registers_changed_thread, registers_changed): Pass target down.
11731 (test_get_thread_arch_aspace_regcache): New.
11732 (current_regcache_test): Define a couple local test_target_ops
11733 instances and use them for testing.
11734 (readwrite_regcache): Pass process_stratum_target parameter.
11735 (cooked_read_test, cooked_write_test): Pass mock_target down.
11736 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11737 (get_thread_arch_aspace_regcache): Add process_stratum_target
11738 parameter.
11739 (regcache::target): New method.
11740 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11741 (regcache::registers_changed_ptid): Add process_stratum_target
11742 parameter.
11743 (regcache::m_target): New field.
11744 (registers_changed_ptid): Add process_stratum_target parameter.
11745 * remote.c (remote_state::supports_vCont_probed): New field.
11746 (remote_target::async_wait_fd): New method.
11747 (remote_unpush_and_throw): Add remote_target parameter.
11748 (get_current_remote_target): Adjust.
11749 (remote_target::remote_add_inferior): Push target.
11750 (remote_target::remote_add_thread)
11751 (remote_target::remote_notice_new_inferior)
11752 (get_remote_thread_info): Pass target down.
11753 (remote_target::update_thread_list): Skip threads of inferiors
11754 bound to other targets. (remote_target::close): Don't discard
11755 inferiors. (remote_target::add_current_inferior_and_thread)
11756 (remote_target::process_initial_stop_replies)
11757 (remote_target::start_remote)
11758 (remote_target::remote_serial_quit_handler): Pass down target.
11759 (remote_target::remote_unpush_target): New remote_target
11760 parameter. Unpush the target from all inferiors.
11761 (remote_target::remote_unpush_and_throw): New remote_target
11762 parameter. Pass it down.
11763 (remote_target::open_1): Check whether the current inferior has
11764 execution instead of checking whether any inferior is live. Pass
11765 target down.
11766 (remote_target::remote_detach_1): Pass down target. Use
11767 remote_unpush_target.
11768 (extended_remote_target::attach): Pass down target.
11769 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11770 (remote_target::append_resumption): Pass down target.
11771 (remote_target::append_pending_thread_resumptions)
11772 (remote_target::remote_resume_with_hc, remote_target::resume)
11773 (remote_target::commit_resume): Pass down target.
11774 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11775 (remote_target::interrupt_query)
11776 (remote_target::remove_new_fork_children)
11777 (remote_target::check_pending_events_prevent_wildcard_vcont)
11778 (remote_target::remote_parse_stop_reply)
11779 (remote_target::process_stop_reply): Pass down target.
11780 (first_remote_resumed_thread): New remote_target parameter. Pass
11781 it down.
11782 (remote_target::wait_as): Pass down target.
11783 (unpush_and_perror): New remote_target parameter. Pass it down.
11784 (remote_target::readchar, remote_target::remote_serial_write)
11785 (remote_target::getpkt_or_notif_sane_1)
11786 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11787 down target.
11788 (remote_target::mourn_inferior): Pass down target. Use
11789 remote_unpush_target.
11790 (remote_target::core_of_thread)
11791 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11792 (remote_target::pid_to_exec_file)
11793 (remote_target::thread_handle_to_thread_info): Pass down target.
11794 (remote_target::async_wait_fd): New.
11795 * riscv-fbsd-tdep.c: Include "inferior.h".
11796 (riscv_fbsd_get_thread_local_address): Pass down target.
11797 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11798 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11799 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11800 Adjust.
11801 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11802 * solib-svr4.c (enable_break): Pass down target.
11803 * spu-multiarch.c (parse_spufs_run): Pass down target.
11804 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11805 * target-delegates.c: Regenerate.
11806 * target.c (g_target_stack): Delete.
11807 (current_top_target): Return the current inferior's top target.
11808 (target_has_execution_1): Refer to the passed-in inferior's top
11809 target.
11810 (target_supports_terminal_ours): Check whether the initial
11811 inferior was already created.
11812 (decref_target): New.
11813 (target_stack::push): Incref/decref the target.
11814 (push_target, push_target, unpush_target): Adjust.
11815 (target_stack::unpush): Defref target.
11816 (target_is_pushed): Return bool. Adjust to refer to the current
11817 inferior's target stack.
11818 (dispose_inferior): Delete, and inline parts ...
11819 (target_preopen): ... here. Only dispose of the current inferior.
11820 (target_detach): Hold strong target reference while detaching.
11821 Pass target down.
11822 (target_thread_name): Add assertion.
11823 (target_resume): Pass down target.
11824 (target_ops::beneath, find_target_at): Adjust to refer to the
11825 current inferior's target stack.
11826 (get_dummy_target): New.
11827 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11828 has a thread running.
11829 (initialize_targets): Rename to ...
11830 (_initialize_target): ... this.
11831 * target.h: Include "gdbsupport/refcounted-object.h".
11832 (struct target_ops): Inherit refcounted_object.
11833 (target_ops::shortname, target_ops::longname): Make const.
11834 (target_ops::async_wait_fd): New method.
11835 (decref_target): Declare.
11836 (struct target_ops_ref_policy): New.
11837 (target_ops_ref): New typedef.
11838 (get_dummy_target): Declare function.
11839 (target_is_pushed): Return bool.
11840 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11841 (all_matching_threads_iterator::all_matching_threads_iterator):
11842 Handle filter target.
11843 * thread-iter.h (struct all_matching_threads_iterator, struct
11844 all_matching_threads_range, class all_non_exited_threads_range):
11845 Filter by target too. Remove explicit.
11846 * thread.c (threads_executing): Delete.
11847 (inferior_thread): Pass down current inferior.
11848 (clear_thread_inferior_resources): Pass down thread pointer
11849 instead of ptid_t.
11850 (add_thread_silent, add_thread_with_info, add_thread): Add
11851 process_stratum_target parameter. Use it for thread and inferior
11852 searches.
11853 (is_current_thread): New.
11854 (thread_info::deletable): Use it.
11855 (find_thread_ptid, thread_count, in_thread_list)
11856 (thread_change_ptid, set_resumed, set_running): New
11857 process_stratum_target parameter. Pass it down.
11858 (set_executing): New process_stratum_target parameter. Pass it
11859 down. Adjust reference to 'threads_executing'.
11860 (threads_are_executing): New process_stratum_target parameter.
11861 Adjust reference to 'threads_executing'.
11862 (set_stop_requested, finish_thread_state): New
11863 process_stratum_target parameter. Pass it down.
11864 (switch_to_thread): Also match inferior.
11865 (switch_to_thread): New process_stratum_target parameter. Pass it
11866 down.
11867 (update_threads_executing): Reimplement.
11868 * top.c (quit_force): Pop targets from all inferior.
11869 (gdb_init): Don't call initialize_targets.
11870 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11871 Declare.
11872 (windows_add_thread, windows_delete_thread): Adjust.
11873 (get_windows_debug_event): Rename to ...
11874 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11875 * tracefile-tfile.c (tfile_target_open): Pass down target.
11876 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11877 Forward declare.
11878 (switch_to_thread): Add process_stratum_target parameter.
11879 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11880 parameter. Use it.
11881 (mi_on_resume): Pass target down.
11882 * nat/fork-inferior.c (startup_inferior): Add
11883 process_stratum_target parameter. Pass it down.
11884 * nat/fork-inferior.h (startup_inferior): Add
11885 process_stratum_target parameter.
11886 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11887
11888 2020-01-10 Pedro Alves <palves@redhat.com>
11889
11890 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11891 directly. Instead find the first thread in the thread list and
11892 use switch_to_thread.
11893
11894 2020-01-10 Pedro Alves <palves@redhat.com>
11895
11896 * remote.c (remote_target::remote_add_inferior): Don't bind a
11897 process to the current inferior if the current inferior is already
11898 bound to a process.
11899
11900 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11901 Pedro Alves <palves@redhat.com>
11902
11903 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11904 If no process is specified, return null_ptid instead of
11905 inferior_ptid.
11906 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11907 TARGET_WAITKIND_SIGNALLED with no pid.
11908
11909 2020-01-10 Pedro Alves <palves@redhat.com>
11910
11911 * remote.c (first_remote_resumed_thread): New.
11912 (remote_target::wait_as): Use it as default event_ptid instead of
11913 inferior_ptid.
11914
11915 2020-01-10 Pedro Alves <palves@redhat.com>
11916
11917 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11918
11919 2020-01-10 Pedro Alves <palves@redhat.com>
11920
11921 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11922 not -1.
11923
11924 2020-01-10 Pedro Alves <palves@redhat.com>
11925
11926 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11927 ptid to get_last_target_status.
11928 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11929 ptid to get_last_target_status.
11930 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11931 get_last_target_status.
11932 (info_program_command): Don't pass a target_waitstatus to
11933 get_last_target_status.
11934 * infrun.c (init_wait_for_inferior): Use
11935 nullify_last_target_wait_ptid.
11936 (get_last_target_status): Handle nullptr arguments.
11937 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11938 (print_stop_event): Don't pass a ptid to get_last_target_status.
11939 (normal_stop): Don't pass a ptid to get_last_target_status.
11940 * infrun.h (get_last_target_status, set_last_target_status): Move
11941 comments here and update.
11942 (nullify_last_target_wait_ptid): Declare.
11943 * linux-fork.c (fork_load_infrun_state): Remove local extern
11944 declaration of nullify_last_target_wait_ptid.
11945 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11946 to get_last_target_status.
11947
11948 2020-01-10 Pedro Alves <palves@redhat.com>
11949
11950 * gdbthread.h (scoped_restore_current_thread)
11951 <dont_restore, restore, m_dont_restore>: Declare.
11952 * thread.c (thread_alive): Add assertion. Return bool.
11953 (switch_to_thread_if_alive): New.
11954 (prune_threads): Switch inferior/thread.
11955 (print_thread_info_1): Switch thread before calling target methods.
11956 (scoped_restore_current_thread::restore): New, factored out from
11957 ...
11958 (scoped_restore_current_thread::~scoped_restore_current_thread):
11959 ... this.
11960 (scoped_restore_current_thread::scoped_restore_current_thread):
11961 Add assertion.
11962 (thread_apply_all_command, thread_select): Use
11963 switch_to_thread_if_alive.
11964 * infrun.c (proceed, restart_threads, handle_signal_stop)
11965 (switch_back_to_stepped_thread): Switch current thread before
11966 calling target methods.
11967
11968 2020-01-10 Pedro Alves <palves@redhat.com>
11969
11970 * inferior.c (switch_to_inferior_no_thread): New function,
11971 factored out from ...
11972 (inferior_command): ... here.
11973 * inferior.h (switch_to_inferior_no_thread): Declare.
11974 * mi/mi-main.c (run_one_inferior): Use
11975 switch_to_inferior_no_thread.
11976
11977 2020-01-10 Pedro Alves <palves@redhat.com>
11978
11979 * infcmd.c (kill_command): Remove dead code.
11980
11981 2020-01-10 Pedro Alves <palves@redhat.com>
11982
11983 * remote.c (remote_target::mourn_inferior): No longer check
11984 whether the target is running.
11985
11986 2020-01-10 Pedro Alves <palves@redhat.com>
11987
11988 * corelow.c (core_target::has_execution): Change parameter type to
11989 inferior pointer.
11990 * inferior.c (number_of_live_inferiors): Use
11991 inferior::has_execution instead of target_has_execution_1.
11992 * inferior.h (inferior::has_execution): New.
11993 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11994 inferior::has_execution instead of target_has_execution_1.
11995 * process-stratum-target.c
11996 (process_stratum_target::has_execution): Change parameter type to
11997 inferior pointer. Check the inferior's PID instead of
11998 inferior_ptid.
11999 * process-stratum-target.h
12000 (process_stratum_target::has_execution): Change parameter type to
12001 inferior pointer.
12002 * record-full.c (record_full_core_target::has_execution): Change
12003 parameter type to inferior pointer.
12004 * target.c (target_has_execution_1): Change parameter type to
12005 inferior pointer.
12006 (target_has_execution_current): Adjust.
12007 * target.h (target_ops::has_execution): Change parameter type to
12008 inferior pointer.
12009 (target_has_execution_1): Change parameter type to inferior
12010 pointer. Change return type to bool.
12011 * tracefile.h (tracefile_target::has_execution): Change parameter
12012 type to inferior pointer.
12013
12014 2020-01-10 Pedro Alves <palves@redhat.com>
12015
12016 * exceptions.c (print_flush): Remove current_top_target() check.
12017
12018 2020-01-10 Pedro Alves <palves@redhat.com>
12019
12020 * remote.c (show_remote_exec_file): Show the current inferior's
12021 exec-file instead of the command variable's value.
12022
12023 2020-01-10 Pedro Alves <palves@redhat.com>
12024
12025 * record-full.c (record_full_resume_ptid): New global.
12026 (record_full_target::resume): Set it.
12027 (record_full_wait_1): Use record_full_resume_ptid instead of
12028 inferior_ptid.
12029
12030 2020-01-10 Pedro Alves <palves@redhat.com>
12031
12032 * gdbthread.h (scoped_restore_current_thread)
12033 <dont_restore, restore, m_dont_restore>: Declare.
12034 * thread.c (thread_alive): Add assertion. Return bool.
12035 (switch_to_thread_if_alive): New.
12036 (prune_threads): Switch inferior/thread.
12037 (print_thread_info_1): Switch thread before calling target methods.
12038 (scoped_restore_current_thread::restore): New, factored out from
12039 ...
12040 (scoped_restore_current_thread::~scoped_restore_current_thread):
12041 ... this.
12042 (scoped_restore_current_thread::scoped_restore_current_thread):
12043 Add assertion.
12044 (thread_apply_all_command, thread_select): Use
12045 switch_to_thread_if_alive.
12046
12047 2020-01-10 George Barrett <bob@bob131.so>
12048
12049 * stap-probe.c (stap_modify_semaphore): Don't check for null
12050 semaphores.
12051 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12052 for null semaphores.
12053
12054 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12055
12056 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12057 all source windows, and maintain horizontal scroll status while
12058 doing so.
12059
12060 2020-01-09 Tom Tromey <tom@tromey.com>
12061
12062 PR tui/18932:
12063 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12064 update_source_window, not print_source_lines.
12065
12066 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12067
12068 * tui/tui.c (tui_enable): Register tui hooks after calling
12069 tui_display_main.
12070
12071 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12072
12073 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12074
12075 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12076
12077 * thread.c (print_thread_info_1): Fix indentation.
12078
12079 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12080
12081 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12082 unique_xmalloc_ptr outside the if to always free the demangled name.
12083
12084 2020-01-08 Tom Tromey <tromey@adacore.com>
12085
12086 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12087 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12088 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12089 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12090 Remove.
12091 (section_offsets): New typedef.
12092 * symtab.c (fixup_section, get_msymbol_address): Update.
12093 * symmisc.c (dump_msymbols): Update.
12094 * symfile.h (relative_addr_info_to_section_offsets)
12095 (symfile_map_offsets_to_segments): Update.
12096 * symfile.c (build_section_addr_info_from_objfile)
12097 (init_objfile_sect_indices): Update.
12098 (struct place_section_arg): Change type of "offsets".
12099 (place_section): Update.
12100 (relative_addr_info_to_section_offsets): Change type of
12101 "section_offsets". Remove "num_sections" parameter.
12102 (default_symfile_offsets, syms_from_objfile_1)
12103 (set_objfile_default_section_offset): Update.
12104 (reread_symbols): No need to preserve section offsets by hand.
12105 (symfile_map_offsets_to_segments): Change type of "offsets".
12106 * stap-probe.c (relocate_address): Update.
12107 * stabsread.h (process_one_symbol): Update.
12108 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12109 (solib_target_relocate_section_addresses): Update.
12110 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12111 Update.
12112 * solib-frv.c (frv_relocate_main_executable): Update.
12113 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12114 * solib-aix.c (solib_aix_get_section_offsets): Change return
12115 type.
12116 (solib_aix_solib_create_inferior_hook): Update.
12117 * remote.c (remote_target::get_offsets): Update.
12118 * psymtab.c (find_pc_sect_psymtab): Update.
12119 * psympriv.h (struct partial_symbol) <address, text_low,
12120 text_high>: Update.
12121 * objfiles.h (obj_section_offset): Update.
12122 (struct objfile) <section_offsets>: Change type.
12123 <num_sections>: Remove.
12124 (objfile_relocate): Update.
12125 * objfiles.c (entry_point_address_query): Update
12126 (relocate_one_symbol): Change type of "section_offsets".
12127 (objfile_relocate1, objfile_relocate1): Change type of
12128 "new_offsets".
12129 (objfile_rebase1): Update.
12130 * mipsread.c (mipscoff_symfile_read): Update.
12131 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12132 parameter.
12133 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12134 (parse_external, psymtab_to_symtab_1): Update.
12135 * machoread.c (macho_symfile_offsets): Update.
12136 * ia64-tdep.c (ia64_find_unwind_table): Update.
12137 * hppa-tdep.c (read_unwind_info): Update.
12138 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12139 * dwarf2read.c (create_addrmap_from_index)
12140 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12141 (process_psymtab_comp_unit_reader, add_partial_symbol)
12142 (add_partial_subprogram, process_full_comp_unit)
12143 (read_file_scope, read_func_scope, read_lexical_block_scope)
12144 (read_call_site_scope, dwarf2_rnglists_process)
12145 (dwarf2_ranges_process, dwarf2_ranges_read)
12146 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12147 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12148 Update.
12149 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12150 Update.
12151 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12152 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12153 (process_one_symbol): Change type of "section_offsets".
12154 * ctfread.c (get_objfile_text_range): Update.
12155 * coffread.c (coff_symtab_read, enter_linenos)
12156 (process_coff_symbol): Update.
12157 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12158 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12159
12160 2020-01-08 Tom Tromey <tromey@adacore.com>
12161
12162 * dwarf2read.c (parse_macro_definition): Use std::string.
12163 (parse_macro_definition): Likewise.
12164
12165 2020-01-08 Tom Tromey <tromey@adacore.com>
12166
12167 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12168 (ATTR_ALLOC_CHUNK): Remove.
12169
12170 2020-01-08 Tom Tromey <tromey@adacore.com>
12171
12172 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12173
12174 2020-01-08 Tom Tromey <tromey@adacore.com>
12175
12176 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12177 (dwarf2_compute_name, open_dwo_file): Likewise.
12178 (process_enumeration_scope): Use std::vector.
12179 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12180 (partial_die_info::fixup, dwarf2_start_subfile)
12181 (guess_full_die_structure_name, dwarf2_name): Likewise.
12182 (determine_prefix): Update.
12183 (guess_full_die_structure_name): Make return type const.
12184 (partial_die_full_name): Return unique_xmalloc_ptr.
12185 (DW_FIELD_ALLOC_CHUNK): Remove.
12186
12187 2020-01-07 Tom Tromey <tromey@adacore.com>
12188
12189 PR build/24937:
12190 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12191
12192 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12193
12194 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12195
12196 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12197
12198 * stack.c (print_frame_info): Move disassemble_next_line code
12199 inside source_print block.
12200
12201 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12202
12203 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12204 gdb/signals.h, as we are now using native signal symbols.
12205
12206 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12207
12208 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12209 overflow by an early check of content vs threshold.
12210 * tui/tui-source.c (tui_source_window::line_is_displayed):
12211 Likewise.
12212
12213 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12214
12215 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12216
12217 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12218
12219 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12220 export table if no section contains it's RVA.
12221
12222 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12223
12224 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12225
12226 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12227
12228 * source.c (print_source_lines_base): Set last_line_listed.
12229
12230 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12231
12232 * tui/tui-disasm.c: Remove trailing spaces.
12233
12234 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12235 Pedro Alves <palves@redhat.com>
12236
12237 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12238 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12239 (windows_gdb_signal_to_target): New function, uses the above
12240 enumeration to convert GDB internal signal codes to equivalent
12241 Windows codes.
12242 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12243 * windows-nat.c: Include "gdb_wait.h".
12244 (get_windows_debug_event): Extract the fatal exception from the
12245 exit status and convert to the equivalent Posix signal number.
12246 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12247 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12248 * gdbsupport/gdb_wait.c: New file, implements
12249 windows_status_to_termsig.
12250 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12251 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12252
12253 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12254
12255 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12256 show_layout.
12257
12258 2020-01-05 Luis Machado <luis.machado@linaro.org>
12259
12260 * aarch64-linux-nat.c
12261 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12262 and bfd_mach_aarch64.
12263
12264 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12265
12266 * ui-file.c (stdio_file::can_emit_style_escape)
12267 (tee_file::can_emit_style_escape): Ensure style is used also on
12268 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12269 to gdb_stdout.
12270 * main.c (set_gdb_data_directory): Use file style to output the
12271 warning that the given pathname is not a directory.
12272 * top.c (show_history_filename, gdb_safe_append_history)
12273 (show_gdb_datadir): Use file style.
12274
12275 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12276
12277 * solib-target.c (struct lm_info_target):
12278 Change offsets to be a unique_xmalloc_ptr.
12279 (solib_target_relocate_section_addresses): Update.
12280
12281 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12282
12283 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12284
12285 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12286
12287 * MAINTAINERS (Write After Approval): Add myself.
12288
12289 2020-01-02 Luis Machado <luis.machado@linaro.org>
12290
12291 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12292 Cell BE architecture.
12293 * target.h (struct target_ops) <thread_architecture>: Likewise.
12294
12295 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12296
12297 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12298
12299 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12300
12301 * MAINTAINERS (Write After Approval): Add myself.
12302
12303 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12304
12305 * gdbarch.sh: Update copyright year range of generated files.
12306
12307 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12308
12309 Update copyright year range in all GDB files.
12310
12311 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12312
12313 * copyright.py: Convert to Python 3.
12314
12315 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12316
12317 * copyright.py: Adapt after move of gnulib directory from gdb
12318 directory to toplevel directory.
12319
12320 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12321
12322 * copyright.py (main): Exit if run from the wrong directory.
12323
12324 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12325
12326 * top.c (print_gdb_version): Change copyright year to 2020.
12327
12328 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12329
12330 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12331
12332 For older changes see ChangeLog-2019.
12333 \f
12334 Local Variables:
12335 mode: change-log
12336 left-margin: 8
12337 fill-column: 74
12338 version-control: never
12339 coding: utf-8
12340 End: