gdb/modula-2: parsing of multi-subscript arrays
[binutils-gdb.git] / gdb / ChangeLog
1 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2 Andrew Burgess <andrew.burgess@embecosm.com>
3
4 PR m2/26372
5 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
6 an assert. Remove single element array indexing pattern as the
7 MULTI_SUBSCRIPT support will handle this case too.
8
9 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
10
11 * value.h (valprint_check_validity): Move declaration from
12 here...
13 * valprint.h (valprint_check_validity): ... to here.
14
15 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
16
17 * debug.h: New file.
18 * debug.c (debug_prefixed_vprintf): New function.
19 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
20 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
21
22 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
23
24 * infrun.h (infrun_debug_printf_1): New function declaration.
25 (infrun_debug_printf): New macro.
26 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
27 throughout.
28 (infrun_debug_printf): New function.
29 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
30 (handle_jit_event): Likewise.
31
32 2020-08-21 Mark Wielaard <mark@klomp.org>
33
34 * ada-lex.l: Extend register warnings diagnostics comment for g++.
35
36 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
37
38 * frame.c (enum class frame_id_status): New.
39 (struct frame_info) <this_id::p>: Change type to frame_id_status.
40 (fprintf_frame): Update.
41 (compute_frame_id): Set frame id status to "computing" on entry.
42 Set it back to "not_computed" on failure and to "computed" on
43 success.
44 (get_frame_id): Assert the frame id is not being computed.
45 (create_sentinel_frame): Use frame_id_status::COMPUTED.
46 (create_new_frame): Likewise.
47 (frame_cleanup_after_sniffer): Update assert.
48
49 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
50
51 * regcache.c (pid_ptid_regcache_map): New type.
52 (target_ptid_regcache_map): Remove.
53 (target_pid_ptid_regcache_map): New type.
54 (regcaches): Change type to target_pid_ptid_regcache_map.
55 (get_thread_arch_aspace_regcache): Update.
56 (regcache_thread_ptid_changed): Update, handle pid-like ptid
57 case.
58 (regcaches_size): Update.
59 (regcache_count): Update.
60 (registers_changed_ptid_target_pid_test): New.
61 (_initialize_regcache): Register new test.
62
63 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
64
65 * regcache.c (regcache_count): New.
66 (struct regcache_test_data): New.
67 (regcache_test_data_up): New.
68 (populate_regcaches_for_test): New.
69 (regcaches_test): Remove.
70 (get_thread_arch_aspace_regcache_test): New.
71 (registers_changed_ptid_all_test): New.
72 (registers_changed_ptid_target_test): New.
73 (registers_changed_ptid_target_ptid_test): New.
74 (regcache_thread_ptid_changed): Remove regcache_count lambda.
75 (_initialize_regcache): Register new tests.
76
77 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
78
79 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
80 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
81 gdbarch and aspace parameter. Use current inferior's aspace.
82 Validate regcache's arch value.
83 (regcaches_test): Update.
84
85 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
86
87 * regcache.c (regcaches_test): Call registers_changed.
88
89 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
90
91 * infrun.c (process_event_stop_test): Fix typo "breapoint".
92
93 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
94
95 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
96 to find the end of prologue for flang compiled binaries.
97 * arm-tdep.c (arm_skip_prologue): Likewise.
98 * i386-tdep.c (i386_skip_prologue): Likewise.
99 * producer.c (producer_is_llvm): New function.
100 (producer_parsing_tests): Added new tests for clang/flang.
101 * producer.h (producer_is_llvm): New declaration.
102
103 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
104
105 * linux-nat.c (linux_nat_debug_printf): New function.
106 (linux_nat_debug_printf_1): New macro. Use throughout the file.
107
108 2020-08-18 Aaron Merey <amerey@redhat.com>
109
110 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
111 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
112 (CLIBS): Add DEBUGINFOD_LIBS.
113
114 2020-08-17 Sergei Trofimovich <siarheit@google.com>
115
116 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
117 'gdbarch_num_regs'.
118
119 2020-08-17 Tom Tromey <tromey@adacore.com>
120
121 * ada-varobj.c (ada_varobj_decode_var): Handle case where
122 ada_get_decoded_value returns NULL.
123
124 2020-08-17 Tom Tromey <tromey@adacore.com>
125
126 * python/py-inferior.c (infpy_search_memory): Use
127 gdb_py_object_from_ulongest.
128 * python/py-infevents.c (create_inferior_call_event_object)
129 (create_memory_changed_event_object): Use
130 gdb_py_object_from_ulongest.
131 * python/py-linetable.c (ltpy_entry_get_pc): Use
132 gdb_py_object_from_ulongest.
133
134 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
135
136 * loc.c (class symbol_needs_eval_context): Fix indentation.
137
138 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
139
140 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
141 bool.
142
143 2020-08-17 Tom de Vries <tdevries@suse.de>
144
145 PR gdb/26393
146 * gdbtypes.c (dump_dynamic_prop): New function.
147 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
148
149 2020-08-15 Tom de Vries <tdevries@suse.de>
150
151 PR backtrace/26390
152 * stack.c (print_frame_args): Temporarily set the selected
153 frame to FRAME while printing the frame's arguments.
154
155 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
156
157 PR breakpoints/26385
158 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
159 Always clear watchpoint with PTRACE_SET_DEBUGREG.
160
161 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
162
163 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
164 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
165 and >= to check return value instead of == -1 and != -1.
166
167 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
168
169 * utils.h (class gdb_argv) <as_array_view>: New method.
170 * utils.c (gdb_argv_as_array_view_test): New.
171 (_initialize_utils): Register selftest.
172 * maint.c (maintenance_selftest): Use the new method.
173
174 2020-08-13 Kamil Rytarowski <n54@gmx.com>
175
176 * target.h (supports_dumpcore, dumpcore): New
177 function declarations.
178 * target.c (supports_dumpcore, dumpcore): New
179 functions.
180 * target-delegates.c: Rebuild.
181 * gcore.c (gcore_command): Use target_supports_dumpcore ()
182 and target_dumpcore ().
183
184 2020-08-13 Aaron Merey <amerey@redhat.com>
185
186 * debuginfod-support.c: Replace global variables with user_data.
187
188 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
189
190 * maint.c (maintenance_selftest): Split args and pass array_view
191 to run_tests.
192
193 2020-08-12 Luis Machado <luis.machado@linaro.org>
194
195 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
196 type's length.
197 Use %s and pulongest to print the length.
198
199 2020-08-12 Pedro Alves <palves@redhat.com>
200
201 * NEWS: Move "Multi-target debugging support" item to the
202 "Changes since GDB 9" section.
203
204 2020-08-12 Pedro Alves <palves@redhat.com>
205
206 PR gdb/26336
207 * progspace.c (program_space::remove_objfile): Invalidate the
208 frame cache.
209
210 2020-08-11 Tom de Vries <tdevries@suse.de>
211
212 * MAINTAINERS: Mark ms1 as deleted.
213
214 2020-08-10 Luis Machado <luis.machado@linaro.org>
215
216 PR gdb/26310
217
218 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
219 act accordingly.
220 (aarch64_analyze_prologue_test): Add more unit tests to exercise
221 movz/str/stur/stp skipping behavior.
222
223 2020-08-10 Luis Machado <luis.machado@linaro.org>
224
225 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
226 struct user_sve_header instead of struct sve_context.
227
228 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
229
230 * read.h (dwarf2_fetch_die_loc_sect_off,
231 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
232 `void *` parameter with function_view.
233 * read.c (dwarf2_fetch_die_loc_sect_off,
234 dwarf2_fetch_die_loc_cu_off): Likewise.
235 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
236 (per_cu_dwarf_call): Adjust.
237 (get_frame_address_in_block_wrapper): Remove.
238 (indirect_synthetic_pointer): Adjust.
239 (get_ax_pc): Remove.
240 (dwarf2_compile_expr_to_ax): Adjust.
241
242 2020-08-08 Tom de Vries <tdevries@suse.de>
243
244 PR build/26344
245 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
246 constructor.
247 * regcache.c (get_thread_arch_aspace_regcache): Same.
248
249 2020-08-07 Tom Tromey <tromey@adacore.com>
250
251 * ravenscar-thread.c
252 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
253 New method.
254 (ravenscar_thread_target::wait): Check
255 runtime_initialized.
256 (ravenscar_thread_target::prepare_to_store)
257 (ravenscar_thread_target::stopped_by_sw_breakpoint)
258 (ravenscar_thread_target::stopped_by_hw_breakpoint)
259 (ravenscar_thread_target::stopped_by_watchpoint)
260 (ravenscar_thread_target::stopped_data_address)
261 (ravenscar_thread_target::core_of_thread): Use
262 scoped_restore_current_thread and
263 set_base_thread_from_ravenscar_task.
264
265 2020-08-07 Tom Tromey <tromey@adacore.com>
266
267 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
268
269 2020-08-07 Tom Tromey <tromey@adacore.com>
270
271 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
272 update_inferior_ptid before update_thread_list.
273 (temporarily_change_regcache_ptid): New class.
274 (ravenscar_thread_target::fetch_registers)
275 (ravenscar_thread_target::store_registers)
276 (ravenscar_thread_target::prepare_to_store): Use base thread when
277 forwarding operation.
278
279 2020-08-07 Tom Tromey <tromey@adacore.com>
280
281 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
282 "is_pid" case.
283
284 2020-08-07 Tom Tromey <tromey@adacore.com>
285
286 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
287 New methods.
288 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
289 first.
290 (ravenscar_thread_target::add_thread): Rename from
291 ravenscar_add_thread.
292 (ravenscar_thread_target::update_thread_list): Use a lambda.
293 (ravenscar_thread_target::xfer_partial): New method.
294
295 2020-08-07 Tom Tromey <tromey@adacore.com>
296
297 * ada-lang.h (ada_task_list_iterator_ftype): Now a
298 gdb::function_view.
299 (iterate_over_live_ada_tasks): Change type of argument.
300 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
301 of argument.
302
303 2020-08-07 Tom Tromey <tromey@adacore.com>
304
305 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
306 Remove.
307 (ravenscar_thread_target::extra_thread_info): Remove.
308 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
309 defer to target beneath for non-Ravenscar threads.
310
311 2020-08-07 Tom Tromey <tromey@adacore.com>
312
313 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
314 get_base_thread_from_ravenscar_task>: Now methods.
315 <m_cpu_map>: New member.
316 (ravenscar_thread_target::get_thread_base_cpu): Rename from
317 ravenscar_get_thread_base_cpu. Check m_cpu_map.
318 (ravenscar_thread_target::task_is_currently_active): Update.
319 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
320 Now a method.
321 (ravenscar_thread_target::add_active_thread): Put initial thread
322 into the m_cpu_map.
323
324 2020-08-07 Tom Tromey <tromey@adacore.com>
325
326 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
327 event_ptid.
328
329 2020-08-07 Tom Tromey <tromey@adacore.com>
330
331 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
332 runtime_initialized.
333
334 2020-08-07 Tom Tromey <tromey@adacore.com>
335
336 * ravenscar-thread.c (ravenscar_thread_target): Don't call
337 add_active_thread.
338 (ravenscar_thread_target::add_active_thread): Now public.
339 (ravenscar_inferior_created): Call add_active_thread after pushing
340 the target.
341
342 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
343
344 * regcache.c (ptid_regcache_map): New type.
345 (target_ptid_regcache_map): New type.
346 (regcaches): Change type to target_ptid_regcache_map.
347 (get_thread_arch_aspace_regcache): Update to regcaches' new
348 type.
349 (regcache_thread_ptid_changed): Likewise.
350 (registers_changed_ptid): Likewise.
351 (regcaches_size): Likewise.
352 (regcaches_test): Update.
353 (regcache_thread_ptid_changed): Update.
354 * regcache.h (regcache_up): New type.
355 * gdbsupport/ptid.h (hash_ptid): New struct.
356
357 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
358
359 * observable.h (thread_ptid_changed): Add parameter
360 `process_stratum_target *`.
361 * infrun.c (infrun_thread_ptid_changed): Add parameter
362 `process_stratum_target *` and use it.
363 (selftests): New namespace.
364 (infrun_thread_ptid_changed): New function.
365 (_initialize_infrun): Register selftest.
366 * regcache.c (regcache_thread_ptid_changed): Add parameter
367 `process_stratum_target *` and use it.
368 (regcache_thread_ptid_changed): New function.
369 (_initialize_regcache): Register selftest.
370 * thread.c (thread_change_ptid): Pass target to
371 thread_ptid_changed observable.
372
373 2020-08-06 Caroline Tice <cmtice@google.com>
374
375 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
376 (struct dwp_sections): Update field comments. Add loclists and
377 rnglists fields.
378 (struct virtual_v2_dwo_sections): Rename struct to
379 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
380 size & offset fields for loclists and rnglists.
381 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
382 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
383 skipping dummy type units.
384 (create_dwp_hash_table): Update the large comment above the function to
385 discuss Version 5 DWP files as well, with references. Update all the
386 version checks in the function to check for version 5 as well. Add new
387 section at the end to create dwp hash table for version 5.
388 (create_dwp_v2_section): Rename function to
389 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
390 Add V5 to error message text.
391 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
392 into calls to create_dwp_v2_or_v5_section.
393 (create_dwo_unit_in_dwp_v5): New function.
394 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
395 check for version2; add else clause to handle version 5.
396 (open_and_init_dwo_file): Add code to check dwarf version & only call
397 create_debug_types_hash_table (with sections.types) if version is not 5;
398 else call create_debug_type_hash_table, with sections.info.
399 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
400 version 5.
401 (dwarf2_locate_v5_dwp_sections): New function.
402 (open_and_init_dwp_file): Add else-if clause for version 5 to call
403 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
404
405 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
406
407 * regcache.h (class regcache): Remove friend
408 registers_changed_ptid.
409 <regcache_thread_ptid_changed>: Remove.
410 <regcaches>: Remove.
411 * regcache.c (regcache::regcaches): Rename to...
412 (regcaches): ... this. Make static.
413 (get_thread_arch_aspace_regcache): Update.
414 (regcache::regcache_thread_ptid_changed): Rename to...
415 (regcache_thread_ptid_changed): ... this. Update.
416 (class regcache_access): Remove.
417 (regcaches_test): Update.
418 (_initialize_regcache): Update.
419 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
420 <forward_list>.
421
422 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
423
424 * regcache.h (class regcache) <current_regcache>: Rename to...
425 <regcaches>: ... this. Move doc here.
426 * regcache.c (regcache::current_regcache) Rename to...
427 (regcache::regcaches): ... this. Move doc to header.
428 (get_thread_arch_aspace_regcache): Update.
429 (regcache::regcache_thread_ptid_changed): Update.
430 (registers_changed_ptid): Update.
431 (class regcache_access) <current_regcache_size>: Rename to...
432 <regcaches_size>: ... this.
433 (current_regcache_test): Rename to...
434 (regcaches_test): ... this.
435 (_initialize_regcache): Update.
436
437 2020-08-06 Victor Collod <vcollod@nvidia.com>
438
439 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
440
441 2020-08-05 Kevin Buettner <kevinb@redhat.com>
442
443 * corelow.c (core_target::build_file_mappings): Don't output
444 null pathname in warning.
445
446 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
447
448 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
449 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
450 gdb.dwarf2/dw2-single-line-discriminators.exp,
451 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
452
453 2020-08-05 Tom Tromey <tromey@adacore.com>
454
455 PR rust/26197:
456 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
457 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
458 Fix off-by-one and type size errors in ordinary case.
459
460 2020-08-05 Tom de Vries <tdevries@suse.de>
461
462 * gdbtypes.c (type_not_allocated, type_not_associated): Use
463 "prop->const_val () == 0" instead of "prop->const_val () != 0".
464
465 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
466
467 * frame.h (frame_id_p): Return bool.
468 (frame_id_artificial_p): Return bool.
469 (frame_id_eq): Return bool.
470 (has_stack_frames): Return bool.
471 (get_selected_frame): Fix typo in comment.
472 (get_frame_pc_if_available): Return bool.
473 (get_frame_address_in_block_if_available): Return bool.
474 (get_frame_func_if_available): Return bool.
475 (read_frame_register_unsigned): Return bool.
476 (get_frame_register_bytes): Return bool.
477 (safe_frame_unwind_memory): Return bool.
478 (deprecated_frame_register_read): Return bool.
479 (frame_unwinder_is): Return bool.
480 * frame.c (struct frame_info) <prev_arch::p>: Change type to
481 bool.
482 <this_id::p>: Likewise.
483 <prev_p>: Likewise.
484 (frame_stash_add): Return bool.
485 (get_frame_id): Use bool.
486 (frame_id_build_special) Use bool.
487 (frame_id_build_unavailable_stack): Use bool.
488 (frame_id_build): Use bool.
489 (frame_id_p): Return bool, use true/false instead of 1/0.
490 (frame_id_artificial_p): Likewise.
491 (frame_id_eq): Likewise.
492 (frame_id_inner): Likewise.
493 (get_frame_func_if_available): Likewise.
494 (read_frame_register_unsigned): Likewise.
495 (deprecated_frame_register_read): Likewise.
496 (get_frame_register_bytes): Likewise.
497 (has_stack_frames): Likewise.
498 (inside_main_func): Likewise.
499 (inside_entry_func): Likewise.
500 (get_frame_pc_if_available): Likewise.
501 (get_frame_address_in_block_if_available): Likewise.
502 (frame_unwinder_is): Likewise.
503 (safe_frame_unwind_memory): Likewise.
504 (frame_unwind_arch): Likewise.
505
506 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
507
508 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
509 type to cached_copy_status.
510 (fprintf_frame): Adjust.
511 (get_frame_func_if_available): Adjust.
512 (frame_cleanup_after_sniffer): Adjust.
513
514 2020-08-04 Mark Wielaard <mark@klomp.org>
515
516 * MAINTAINERS (Write After Approval): Update email address.
517
518 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
519
520 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
521 dynamic_prop::const_val.
522
523 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
524
525 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
526 dynamic_prop::kind.
527
528 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
529
530 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
531
532 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
533
534 * configure.tgt: Set gdb_sim for bpf-*-* targets.
535
536 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
537 Jose E. Marchesi <jose.marchesi@oracle.com>
538
539 * configure.tgt: Add entry for bpf-*-*.
540 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
541 (ALLDEPFILES): Add bpf-tdep.c.
542 * bpf-tdep.c: New file.
543 * MAINTAINERS: Add bpf target and maintainer.
544 * NEWS: Mention the support for the new target.
545
546 2020-08-04 Tom de Vries <tdevries@suse.de>
547
548 PR symtab/23270
549 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
550 Error.
551
552 2020-08-03 John Baldwin <jhb@FreeBSD.org>
553
554 * syscalls/freebsd.xml: Regenerate.
555
556 2020-08-03 John Baldwin <jhb@FreeBSD.org>
557
558 * syscalls/update-freebsd.sh: Fix usage and year range.
559
560 2020-08-03 Tom de Vries <tdevries@suse.de>
561
562 PR symtab/26333
563 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
564 DW_LNE_lo_user/DW_LNE_hi_user range.
565
566 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
567
568 PR ada/26318
569 * ada-lang.c (ada_modulus): Return 0 if property is not of const
570 kind.
571
572 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
573
574 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
575
576 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
577
578 * breakpoint.c (set_breakpoint_condition): Update the condition
579 expressions after checking that the input condition string parses
580 successfully and does not contain junk at the end.
581
582 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
583
584 * breakpoint.c (set_breakpoint_condition): Update the
585 condition string after parsing the new condition successfully.
586
587 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
588
589 * proc-api.c (_STRUCTURED_PROC): Don't define.
590 * proc-events.c: Likewise.
591 * proc-flags.c: Likewise.
592 * proc-why.c: Likewise.
593 * procfs.c: Likewise.
594
595 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
596 * configure, config.in: Regenerate.
597
598 2020-07-30 Tom de Vries <tdevries@suse.de>
599
600 PR build/26320
601 * ui-style.h (struct ui_file_style::color): Wrap m_value and
602 m_red/m_green/m_blue in a union.
603
604 2020-07-29 Tom de Vries <tdevries@suse.de>
605
606 PR tdep/26280
607 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
608
609 2020-07-28 Tom Tromey <tromey@adacore.com>
610
611 PR symtab/26270:
612 * symtab.h (find_pc_partial_function_sym): Declare.
613 * cli/cli-cmds.c (disassemble_command): Use
614 find_pc_partial_function_sym. Check asm_demangle.
615 * blockframe.c (cache_pc_function_sym): New global.
616 (cache_pc_function_name): Remove.
617 (clear_pc_function_cache): Update.
618 (find_pc_partial_function_sym): New function, from
619 find_pc_partial_function.
620 (find_pc_partial_function): Rewrite using
621 find_pc_partial_function_sym.
622
623 2020-07-28 Tom Tromey <tromey@adacore.com>
624
625 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
626 help. Add usage.
627
628 2020-07-28 Tom Tromey <tromey@adacore.com>
629
630 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
631 <DW_OP_GNU_variable_value>: Cast to address type.
632
633 2020-07-28 Kamil Rytarowski <n54@gmx.com>
634
635 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
636 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
637 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
638 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
639 (nbsd_get_siginfo_type): New.
640 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
641 (_initialize_nbsd_tdep): New.
642
643 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
644
645 PR binutils/26301
646 * configure: Regenerated.
647
648 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
649
650 PR binutils/26301
651 * configure: Regenerated.
652
653 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
654
655 * python/py-frame.c: Remove 'user-regs.h' include.
656 (frapy_read_register): Rewrite to make use of
657 gdbpy_parse_register_id.
658 * python/py-registers.c (gdbpy_parse_register_id): New function,
659 moved here from python/py-unwind.c. Updated the return type, and
660 also accepts register descriptor objects.
661 * python/py-unwind.c: Remove 'user-regs.h' include.
662 (pyuw_parse_register_id): Moved to python/py-registers.c.
663 (unwind_infopy_add_saved_register): Update to use
664 gdbpy_parse_register_id.
665 (pending_framepy_read_register): Likewise.
666 * python/python-internal.h (gdbpy_parse_register_id): Declare.
667
668 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
669
670 * python/py-registers.c: Add 'user-regs.h' include.
671 (register_descriptor_iter_find): New function.
672 (register_descriptor_iterator_object_methods): New static global
673 methods array.
674 (register_descriptor_iterator_object_type): Add pointer to methods
675 array.
676
677 2020-07-27 John Baldwin <jhb@FreeBSD.org>
678
679 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
680 for all architectures on FreeBSD 11.3 and later.
681
682 2020-07-27 Tom Tromey <tromey@adacore.com>
683
684 * gcore.h (load_corefile): Don't declare.
685
686 2020-07-27 Tom de Vries <tdevries@suse.de>
687
688 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
689 * config.in: Regenerate.
690 * configure: Regenerate.
691
692 2020-07-26 Eli Zaretskii <eliz@gnu.org>
693
694 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
695 ws2tcpip.h. When checking whether socklen_t type is defined, use
696 ws2tcpip.h if it is available and sys/socket.h isn't.
697 * configure: Regenerate.
698 * config.in: Regenerate.
699
700 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
701
702 PR fortran/23051
703 PR fortran/26139
704 * valops.c (value_ind): Pass address to
705 readjust_indirect_value_type.
706 * value.c (readjust_indirect_value_type): Make parameter
707 non-const, and add extra address parameter. Resolve original type
708 before using it.
709 * value.h (readjust_indirect_value_type): Update function
710 signature and comment.
711
712 2020-07-25 Tom de Vries <tdevries@suse.de>
713
714 PR symtab/26243
715 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
716 entries.
717
718 2020-07-24 Aaron Merey <amerey@redhat.com>
719
720 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
721 * configure: Rebuild.
722
723 2020-07-23 Kevin Buettner <kevinb@redhat.com>
724
725 PR corefiles/26294
726 * corelow.c (_initialize_corelow): Add period to help text
727 for "maintenance print core-file-backed-mappings".
728
729 2020-07-23 Pedro Alves <pedro@palves.net>
730
731 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
732 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
733 meanwhile.
734 * frame.c (frame_cache_generation, get_frame_cache_generation):
735 New.
736 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
737 (get_prev_frame_if_no_cycle): On exception, don't touch
738 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
739 * frame.h (get_frame_cache_generation): Declare.
740
741 2020-07-23 Tom de Vries <tdevries@suse.de>
742
743 PR tui/26282
744 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
745 New default constructor.
746
747 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
748
749 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
750 exclude non-statement entries.
751
752 2020-07-22 Kevin Buettner <kevinb@redhat.com>
753
754 * NEWS (New commands): Mention new command
755 "maintenance print core-file-backed-mappings".
756
757 2020-07-22 Kevin Buettner <kevinb@redhat.com>
758
759 * corelow.c (gdbcmd.h): Include.
760 (core_target::info_proc_mappings): New method.
761 (get_current_core_target): New function.
762 (maintenance_print_core_file_backed_mappings): New function.
763 (_initialize_corelow): Add core-file-backed-mappings to
764 "maint print" commands.
765
766 2020-07-22 Kevin Buettner <kevinb@redhat.com>
767
768 * linux-tdep.c (dump_note_entry_p): New function.
769 (linux_dump_mapping_p_ftype): New typedef.
770 (linux_find_memory_regions_full): Add new parameter,
771 should_dump_mapping_p.
772 (linux_find_memory_regions): Adjust call to
773 linux_find_memory_regions_full.
774 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
775 call to linux_find_memory_regions_full.
776
777 2020-07-22 Kevin Buettner <kevinb@redhat.com>
778
779 * corelow.c (solist.h, unordered_map): Include.
780 (class core_target): Add field m_core_file_mappings and
781 method build_file_mappings.
782 (core_target::core_target): Call build_file_mappings.
783 (core_target::~core_target): Free memory associated with
784 m_core_file_mappings.
785 (core_target::build_file_mappings): New method.
786 (core_target::xfer_partial): Use m_core_file_mappings
787 for memory transfers.
788 * linux-tdep.c (linux_read_core_file_mappings): New
789 function.
790 (linux_core_info_proc_mappings): Rewrite to use
791 linux_read_core_file_mappings.
792 (linux_init_abi): Register linux_read_core_file_mappings.
793
794 2020-07-22 Kevin Buettner <kevinb@redhat.com>
795
796 * arch-utils.c (default_read_core_file_mappings): New function.
797 * arch-utils.c (default_read_core_file_mappings): Declare.
798 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
799 * gdbarch.h, gdbarch.c: Regenerate.
800
801 2020-07-22 Kevin Buettner <kevinb@redhat.com>
802
803 PR corefiles/25631
804 * corelow.c (core_target:xfer_partial): Revise
805 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
806 case after first checking the stratum beneath the core
807 target.
808 (has_all_memory): Return true.
809 * target.c (raw_memory_xfer_partial): Revise comment
810 regarding use of has_all_memory.
811
812 2020-07-22 Kevin Buettner <kevinb@redhat.com>
813
814 * exec.h (section_table_xfer_memory): Revise declaration,
815 replacing section name parameter with an optional callback
816 predicate.
817 * exec.c (section_table_xfer_memory): Likewise.
818 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
819 of section_table_xfer_memory.
820
821 2020-07-22 Tom Tromey <tromey@adacore.com>
822
823 * mi/mi-cmd-stack.c (list_args_or_locals): Use
824 lookup_symbol_search_name.
825
826 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
827
828 * python/py-registers.c (gdbpy_register_object_data_init): Remove
829 redundant local variable.
830 (gdbpy_get_register_descriptor): Extract descriptor vector as a
831 reference, not pointer, update code accordingly.
832
833 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
834 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
835
836 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
837 * jit.c (jit_breakpoint_re_set_internal): Use the
838 `skip_jit_symbol_lookup` field.
839
840 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
841 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
842
843 * jit.c (jit_read_descriptor): Define the descriptor address once,
844 use twice.
845 (jit_breakpoint_deleted): Move the declaration of the loop variable
846 `iter` into the loop header.
847 (jit_breakpoint_re_set_internal): Move the declaration of the local
848 variable `objf_data` to the first point of definition.
849 (jit_event_handler): Move the declaration of local variables
850 `code_entry`, `entry_addr`, and `objf` to their first point of use.
851 Rename `objf` to `jited`.
852
853 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
854
855 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
856 Remove.
857 * jit.c (get_jiter_objfile_data): Update.
858
859 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
860 Simon Marchi <simon.marchi@polymtl.ca>
861
862 * jit.c (struct jit_program_space_data): Remove.
863 (jit_program_space_key): Remove.
864 (jiter_objfile_data::~jiter_objfile_data): Remove program space
865 stuff.
866 (get_jit_program_space_data): Remove.
867 (jit_breakpoint_deleted): Iterate on all of the program space's
868 objfiles.
869 (jit_inferior_init): Likewise.
870 (jit_breakpoint_re_set_internal): Likewise. Also change return
871 type to void.
872 (jit_breakpoint_re_set): Pass current_program_space to
873 jit_breakpoint_re_set_internal.
874
875 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
876
877 * jit.h (struct jiter_objfile_data) <cached_code_address,
878 jit_breakpoint>: Move to here from ...
879 * jit.c (jit_program_space_data): ... here.
880 (jiter_objfile_data::~jiter_objfile_data): Update.
881 (jit_breakpoint_deleted): Update.
882 (jit_breakpoint_re_set_internal): Update.
883
884 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
885
886 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
887 checks.
888 (jit_read_descriptor): Remove NULL check.
889 (jit_event_handler): Add an assertion.
890
891 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
892
893 * jit.h (struct jit_objfile_data): Split into...
894 (struct jiter_objfile_data): ... this ...
895 (struct jited_objfile_data): ... and this.
896 * objfiles.h (struct objfile) <jit_data>: Remove.
897 <jiter_data, jited_data>: New fields.
898 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
899 (jiter_objfile_data::~jiter_objfile_data): ... this.
900 (get_jit_objfile_data): Rename to ...
901 (get_jiter_objfile_data): ... this.
902 (add_objfile_entry): Update.
903 (jit_read_descriptor): Use get_jiter_objfile_data.
904 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
905 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
906 (jit_inferior_exit_hook): Use objfile's jited_data field.
907
908 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
909
910 * jit.h: Forward-declare `struct minimal_symbol`.
911 (struct jit_objfile_data): Migrate to here from jit.c; also add a
912 constructor, destructor, and an objfile* field.
913 * jit.c (jit_objfile_data): Remove.
914 (struct jit_objfile_data): Migrate from here to jit.h.
915 (jit_objfile_data::~jit_objfile_data): New destructor
916 implementation with code moved from free_objfile_data.
917 (free_objfile_data): Delete.
918 (get_jit_objfile_data): Update to use the jit_data field of objfile.
919 (jit_find_objf_with_entry_addr): Ditto.
920 (jit_inferior_exit_hook): Ditto.
921 (_initialize_jit): Remove the call to
922 register_objfile_data_with_cleanup.
923 * objfiles.h (struct objfile) <jit_data>: New field.
924
925 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
926
927 * jit.h: Forward-declare `struct objfile`.
928 (jit_event_handler): Add a second parameter, the JITer objfile.
929 * jit.c (jit_read_descriptor): Change the signature to take the
930 JITer objfile as an argument instead of the jit_program_space_data.
931 (jit_inferior_init): Update the call to jit_read_descriptor.
932 (jit_event_handler): Use the new JITer objfile argument when calling
933 jit_read_descriptor.
934 * breakpoint.c (handle_jit_event): Update the call to
935 jit_event_handler to pass the JITer objfile.
936
937 2020-07-21 John Baldwin <jhb@FreeBSD.org>
938
939 * gdbarch.c: Regenerate.
940 * gdbarch.h: Regenerate.
941 * gdbarch.sh (handle_segmentation_fault): Remove method.
942 * infrun.c (handle_segmentation_fault): Remove.
943 (print_signal_received_reason): Remove call to
944 handle_segmentation_fault.
945
946 2020-07-21 John Baldwin <jhb@FreeBSD.org>
947
948 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
949 Rename to sparc64_linux_report_signal_info and add siggnal
950 argument.
951 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
952 instead of sparc64_linux_handle_segmentation_fault.
953
954 2020-07-21 John Baldwin <jhb@FreeBSD.org>
955
956 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
957 i386_linux_report_signal_info instead of
958 i386_linux_handle_segmentation_fault.
959 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
960 to i386_linux_report_signal_info and add siggnal argument.
961 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
962 of i386_linux_handle_segmentation_fault.
963 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
964 to i386_linux_report_signal_info and add siggnal argument.
965
966 2020-07-21 John Baldwin <jhb@FreeBSD.org>
967
968 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
969 hook if present.
970
971 2020-07-21 John Baldwin <jhb@FreeBSD.org>
972
973 * gdbarch.c: Regenerate.
974 * gdbarch.h: Regenerate.
975 * gdbarch.sh (report_signal_info): New method.
976 * infrun.c (print_signal_received_reason): Invoke gdbarch
977 report_signal_info hook if present.
978
979 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
980
981 * python/py-registers.c : Add 'unordered_map' include.
982 (gdbpy_new_reggroup): Renamed to...
983 (gdbpy_get_reggroup): ...this. Update to only create register
984 group descriptors when needed.
985 (gdbpy_reggroup_iter_next): Update.
986
987 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
988
989 * python/py-registers.c (gdbpy_register_object_data): New static
990 global.
991 (gdbpy_register_object_data_init): New function.
992 (gdbpy_new_register_descriptor): Renamed to...
993 (gdbpy_get_register_descriptor): ...this, and update to reuse
994 existing register descriptors where possible.
995 (gdbpy_register_descriptor_iter_next): Update.
996 (gdbpy_initialize_registers): Register new gdbarch data.
997
998 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
999
1000 * linux-nat.c (stopped_pids): Make static.
1001
1002 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1003
1004 PR ada/26235
1005 * gdbtypes.c (ada_discrete_type_low_bound,
1006 ada_discrete_type_high_bound): Handle undefined bounds.
1007
1008 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1009
1010 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1011 declaration.
1012 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1013 function.
1014
1015 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1016
1017 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1018 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1019 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1020 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1021 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1022 method.
1023
1024 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1025
1026 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1027 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1028 which are deprecated in Guile 3.0.
1029 * configure.ac (try_guile_versions): Add "guile-3.0".
1030 * configure (try_guile_versions): Regenerate.
1031 * NEWS: Update entry.
1032
1033 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1034 Doug Evans <dje@google.com>
1035
1036 PR gdb/21104
1037 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1038 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1039 USING_GUILE_BEFORE_2_2.
1040 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1041 Change type to 'scm_t_port_type *'.
1042 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1043 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1044 parameter and honor it. Update callers.
1045 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1046 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1047 functions.
1048 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1049 USING_GUILE_BEFORE_2_2.
1050 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1051 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1052 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1053 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1054 and 'SCM_PORT_TYPE'.
1055 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1056 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1057 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1058 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1059 [!USING_GUILE_BEFORE_2_2]: New functions.
1060 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1061 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1062 'gdbscm_memory_port_read'.
1063 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1064 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1065 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1066 function.
1067 (ioscm_init_memory_port): Remove.
1068 (ioscm_init_memory_port_stream): New function
1069 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1070 function.
1071 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1072 Return scm_from_uint (0).
1073 (gdbscm_set_memory_port_read_buffer_size_x)
1074 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1075 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1076 Return scm_from_uint (0).
1077 (gdbscm_set_memory_port_write_buffer_size_x)
1078 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1079 * configure.ac (try_guile_versions): Add "guile-2.2".
1080 * configure: Regenerate.
1081 * NEWS: Add entry.
1082
1083 2020-07-18 Tom Tromey <tom@tromey.com>
1084
1085 * linux-nat.c (linux_multi_process): Remove.
1086 (linux_nat_target::supports_multi_process): Return true.
1087
1088 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1089
1090 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1091 (riscv_lookup_target_description): Return pointer out of
1092 unique_ptr.
1093 * target-descriptions.c (allocate_target_description): Add
1094 comment.
1095 (target_desc_deleter::operator()): Likewise.
1096 * target-descriptions.h (struct target_desc_deleter): Moved to
1097 gdbsupport/tdesc.h.
1098 (target_desc_up): Likewise.
1099
1100 2020-07-17 Tom Tromey <tromey@adacore.com>
1101
1102 * linux-nat.c (linux_nat_target::supports_non_stop)
1103 (linux_nat_target::always_non_stop_p): Use "true".
1104 (linux_nat_target::supports_disable_randomization): Use "true" and
1105 "false".
1106
1107 2020-07-16 Caroline Tice <cmtice@google.com>
1108
1109 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1110 (RNGLIST_HEADER_SIZE64): New constant definition.
1111 (struct dwop_section_names): Add rnglists_dwo.
1112 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1113 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1114 (struct dwo_sections): Add rnglists field.
1115 (read_attribut_reprocess): Add tag parameter.
1116 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1117 (cu_debug_rnglists_section): New function (decl & definition).
1118 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1119 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1120 die whose range is being checked; get rnglist section from
1121 cu_debug_rnglists_section, to get from either objfile or dwo file as
1122 appropriate. Add cases for DW_RLE_base_addressx,
1123 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1124 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1125 test inside if-condition and updating complaint message.
1126 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1127 dwarf2_rnglists_process.
1128 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1129 dwarf2_ranges_process.
1130 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1131 need_ranges_base and update comment appropriately. Also pass die tag
1132 to dwarf2_ranges_read.
1133 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1134 need_ranges_base and update comment appropriately. Also pass die tag
1135 to dwarf2_ranges_process.
1136 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1137 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1138 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1139 need_ranges_base and update comment appropriately. Also pass die tag
1140 to read_attribute_reprocess and dwarf2_ranges_read.
1141 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1142 and update function comment appropriately.
1143 (read_loclist_index): Call read_loclists_rnglists_header instead of
1144 read_loclist_header.
1145 (read_rnglist_index): New function.
1146 (read_attribute_reprocess): Add tag parameter. Add code for
1147 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1148 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1149
1150 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1151
1152 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1153 being resolved.
1154
1155 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1156
1157 * arch-utils.c (show_architecture): Update formatting of messages.
1158
1159 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1160
1161 * gdbtypes.h (struct type) <bounds>: Handle array and string
1162 types.
1163 * ada-lang.c (assign_aggregate): Use type::bounds on
1164 array/string type.
1165 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1166 * c-varobj.c (c_number_of_children): Likewise.
1167 (c_describe_child): Likewise.
1168 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1169 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1170 (f_type_print_base): Likewise.
1171 * f-valprint.c (f77_array_offset_tbl): Likewise.
1172 (f77_get_upperbound): Likewise.
1173 (f77_print_array_1): Likewise.
1174 * guile/scm-type.c (gdbscm_type_range): Likewise.
1175 * m2-typeprint.c (m2_array): Likewise.
1176 (m2_is_long_set_of_type): Likewise.
1177 * m2-valprint.c (get_long_set_bounds): Likewise.
1178 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1179 * python/py-type.c (typy_range): Likewise.
1180 * rust-lang.c (rust_internal_print_type): Likewise.
1181 * type-stack.c (type_stack::follow_types): Likewise.
1182 * valarith.c (value_subscripted_rvalue): Likewise.
1183 * valops.c (value_cast): Likewise.
1184
1185 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1186
1187 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1188 callers to use the equivalent accessor methods.
1189
1190 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1191
1192 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1193 (struct type) <bit_stride>: New method.
1194 (TYPE_BIT_STRIDE): Remove.
1195 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1196
1197 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1198
1199 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1200 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1201 callers to use the equivalent accessor methods instead.
1202
1203 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1204
1205 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1206 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1207 callers to use the equivalent accessor methods instead.
1208
1209 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1210
1211 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1212 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1213 to use dynamic_prop::kind.
1214
1215 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1216
1217 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1218 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1219 to get the bound property's kind and check against
1220 PROP_UNDEFINED.
1221
1222 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1223
1224 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1225 all callers to use type::range_bounds followed by
1226 dynamic_prop::{low,high}.
1227
1228 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1229
1230 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1231 const_val, set_const_val, baton, set_locexpr, set_loclist,
1232 set_addr_offset, variant_parts, set_variant_parts,
1233 original_type, set_original_type>: New methods.
1234 <kind>: Rename to...
1235 <m_kind>: ... this. Update all users to use the new methods
1236 instead.
1237 <data>: Rename to...
1238 <m_data>: ... this. Update all users to use the new methods
1239 instead.
1240
1241 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1242
1243 * gdbtypes.c (get_discrete_bounds): Return failure if
1244 the range type's bounds are not both defined and constant
1245 values.
1246 (get_array_bounds): Update comment. Remove undefined bound check.
1247
1248 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1249
1250 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1251 the type::bounds method directly.
1252
1253 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1254
1255 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1256 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1257 are used to set the range type's bounds to use set_bounds.
1258
1259 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1260
1261 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1262
1263 2020-07-10 Pedro Alves <pedro@palves.net>
1264
1265 * gdbthread.h (inferior_ref): Define.
1266 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1267 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1268 * thread.c
1269 (scoped_restore_current_thread::restore):
1270 Adjust to gdb::ref_ptr.
1271 (scoped_restore_current_thread::~scoped_restore_current_thread):
1272 Remove manual decref handling.
1273 (scoped_restore_current_thread::scoped_restore_current_thread):
1274 Adjust to use
1275 inferior_ref::new_reference/thread_info_ref::new_reference.
1276 Incref the thread before calling get_frame_id instead of after.
1277 Let TARGET_CLOSE_ERROR propagate.
1278
1279 2020-07-10 Pedro Alves <pedro@palves.net>
1280
1281 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1282 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1283 NOT_AVAILABLE_ERROR.
1284 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1285 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1286
1287 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1288 Pedro Alves <pedro@palves.net>
1289
1290 PR gdb/26199
1291 * infrun.c (threads_are_resumed_pending_p): Delete.
1292 (do_target_wait): Remove threads_are_executing and
1293 threads_are_resumed_pending_p checks from the inferior_matches
1294 lambda. Update comments.
1295
1296 2020-07-10 Pedro Alves <pedro@palves.net>
1297
1298 PR gdb/26199
1299 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1300 executing threads.
1301
1302 2020-07-10 Pedro Alves <pedro@palves.net>
1303
1304 PR gdb/26199
1305 * infrun.c (handle_no_resumed): Handle multiple targets.
1306
1307 2020-07-10 Pedro Alves <pedro@palves.net>
1308
1309 PR gdb/26199
1310 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1311 target_is_async_p.
1312
1313 2020-07-10 Pedro Alves <pedro@palves.net>
1314
1315 PR gdb/26199
1316 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1317 threads, not all threads.
1318
1319 2020-07-10 Pedro Alves <pedro@palves.net>
1320
1321 PR gdb/26199
1322 * remote.c (remote_target::open_1): Pass remote target pointer as
1323 data to create_async_event_handler.
1324 (remote_async_inferior_event_handler): Mark async event handler
1325 before returning if the remote target still has either pending
1326 events or unacknowledged notifications.
1327
1328 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1329
1330 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1331 declaration.
1332 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1333 function.
1334
1335 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1336
1337 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1338 inferior_ptid.
1339
1340 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1341
1342 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1343 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1344 AT_FREEBSD_PS_STRINGS.
1345
1346 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1347
1348 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1349 of debugfile path on Windows.
1350
1351 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1352
1353 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1354 argument to 'data'.
1355
1356 2020-07-08 Tom Tromey <tromey@adacore.com>
1357
1358 * ada-lang.c (ada_exception_message_1): Use read_memory.
1359
1360 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1361
1362 PR python/22748
1363 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1364 special handling for inline frames.
1365 * findvar.c (value_of_register_lazy): Skip inline frames when
1366 creating lazy register values.
1367 * frame.c (frame_id_computed_p): Delete definition.
1368 * frame.h (frame_id_computed_p): Delete declaration.
1369
1370 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1371
1372 * NEWS: Mention additions to Python API.
1373 * python/py-arch.c (archpy_register_groups): New function.
1374 (arch_object_methods): Add 'register_groups' method.
1375 * python/py-registers.c (reggroup_iterator_object): New struct.
1376 (reggroup_object): New struct.
1377 (gdbpy_new_reggroup): New function.
1378 (gdbpy_reggroup_to_string): New function.
1379 (gdbpy_reggroup_name): New function.
1380 (gdbpy_reggroup_iter): New function.
1381 (gdbpy_reggroup_iter_next): New function.
1382 (gdbpy_new_reggroup_iterator): New function
1383 (gdbpy_initialize_registers): Register new types.
1384 (reggroup_iterator_object_type): Define new Python type.
1385 (gdbpy_reggroup_getset): New static global.
1386 (reggroup_object_type): Define new Python type.
1387 * python/python-internal.h
1388
1389 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1390
1391 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1392 * python/py-arch.c (archpy_registers): New function.
1393 (arch_object_methods): Add 'registers' method.
1394 * python/py-registers.c: New file.
1395 * python/python-internal.h
1396 (gdbpy_new_register_descriptor_iterator): Declare.
1397 (gdbpy_initialize_registers): Declare.
1398 * python/python.c (do_start_initialization): Call
1399 gdbpy_initialize_registers.
1400 * NEWS: Mention additions to the Python API.
1401
1402 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1403
1404 * NEWS: Mention new Python API method.
1405 * python/py-unwind.c (pending_framepy_architecture): New function.
1406 (pending_frame_object_methods): Add architecture method.
1407
1408 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1409
1410 * gdbarch.c: Regenerate.
1411 * gdbarch.h: Regenerate.
1412 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1413 (gdbarch_data): Use internal_error for the case where
1414 deprecated_set_gdbarch_data was originally needed.
1415 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1416 and use passed in obstack.
1417 (libunwind_frame_set_descr): Should no longer get back NULL from
1418 gdbarch_data.
1419 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1420 type.
1421 * user-regs.c (user_regs_init): Update parameters, and use passed
1422 in obstack.
1423 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1424 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1425
1426 2020-07-06 Tom de Vries <tdevries@suse.de>
1427
1428 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1429 End-Of-Sequence in lte_is_less_than.
1430 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1431 "gdb: Don't reorder line table entries too much when sorting".
1432
1433 2020-07-06 Tom de Vries <tdevries@suse.de>
1434
1435 PR tui/26205
1436 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1437
1438 2020-07-05 Tom de Vries <tdevries@suse.de>
1439
1440 PR build/26187
1441 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1442 std::uncaught_exceptions instead of deprecated
1443 std::uncaught_exception.
1444
1445 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1446
1447 * macroexp.h (macro_stringify): Return
1448 gdb::unique_xmalloc_ptr<char>.
1449 * macroexp.c (macro_stringify): Likewise.
1450 * macrotab.c (fixup_definition): Update.
1451
1452 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1453
1454 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1455 (lex_one_token): Update.
1456 * macroexp.c (struct macro_buffer) <release>: Return
1457 gdb::unique_xmalloc_ptr<char>.
1458 (macro_stringify): Update.
1459 (macro_expand): Update.
1460 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1461 * macroexp.h (macro_expand_next): Likewise.
1462
1463 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1464
1465 * macroexp.h (macro_lookup_ftype): Remove.
1466 (macro_expand, macro_expand_once, macro_expand_next): Remove
1467 lookup function parameters, add scope parameter.
1468 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1469 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1470 * macroscope.h (standard_macro_lookup): Change parameter type
1471 to macro_scope.
1472 * macroscope.c (standard_macro_lookup): Likewise.
1473 * c-exp.y (lex_one_token): Update.
1474 * macrocmd.c (macro_expand_command): Likewise.
1475 (macro_expand_once_command): Likewise.
1476
1477 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1478
1479 * inf-loop.c (inferior_event_handler): Remove client_data param.
1480 * inf-loop.h (inferior_event_handler): Likewise.
1481 * infcmd.c (step_1): Adjust.
1482 * infrun.c (proceed): Adjust.
1483 (fetch_inferior_event): Remove client_data param.
1484 (infrun_async_inferior_event_handler): Adjust.
1485 * infrun.h (fetch_inferior_event): Remove `void *` param.
1486 * linux-nat.c (handle_target_event): Adjust.
1487 * record-btrace.c (record_btrace_handle_async_inferior_event):
1488 Adjust.
1489 * record-full.c (record_full_async_inferior_event_handler):
1490 Adjust.
1491 * remote.c (remote_async_inferior_event_handler): Adjust.
1492
1493 2020-07-01 Tom Tromey <tom@tromey.com>
1494
1495 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1496 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1497
1498 2020-07-01 Tom Tromey <tom@tromey.com>
1499
1500 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1501 tui_gen_win_info.
1502 (tui_win_info::make_window): Merge with
1503 tui_gen_win_info::make_window.
1504 (tui_win_info::make_visible): Move from tui_gen_win_info.
1505 * tui/tui-win.c (tui_win_info::max_width): Move from
1506 tui_gen_win_info.
1507 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1508 type.
1509 <window_factory>: Likewise.
1510 * tui/tui-layout.c (tui_win_info::resize): Move from
1511 tui_gen_win_info.
1512 (make_standard_window): Change return type.
1513 (get_locator_window, tui_get_window_by_name): Likewise.
1514 (tui_layout_window::apply): Remove a cast.
1515 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1516 (struct tui_win_info): Merge with tui_gen_win_info.
1517 (struct tui_gen_win_info): Remove.
1518
1519 2020-07-01 Tom Tromey <tom@tromey.com>
1520
1521 * tui/tui-stack.h (struct tui_locator_window): Derive from
1522 tui_win_info.
1523 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1524 <can_box>: New method.
1525
1526 2020-07-01 Tom Tromey <tom@tromey.com>
1527
1528 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1529
1530 2020-07-01 Tom Tromey <tom@tromey.com>
1531
1532 * tui/tui-regs.c (tui_data_window::display_registers_from)
1533 (tui_data_window::display_registers_from)
1534 (tui_data_window::first_data_item_displayed)
1535 (tui_data_window::delete_data_content_windows): Update.
1536 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1537 Remove.
1538 (tui_data_window::check_register_values): Update.
1539 (tui_data_item_window::rerender): Add parameters. Update.
1540 (tui_data_item_window::refresh_window): Remove.
1541 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1542 virtual.
1543 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1544 tui_gen_win_info.
1545 <refresh_window, max_height, min_height>: Remove.
1546 <rerender>: Add parameters.
1547 <x, y, visible>: New members.
1548 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1549 <m_item_width>: New member.
1550
1551 2020-07-01 Tom Tromey <tom@tromey.com>
1552
1553 * tui/tui-regs.c (tui_data_window::show_register_group)
1554 (tui_data_window::check_register_values): Update.
1555 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1556 from item_no.
1557
1558 2020-07-01 Tom Tromey <tom@tromey.com>
1559
1560 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1561 useless "if".
1562
1563 2020-07-01 Tom Tromey <tom@tromey.com>
1564
1565 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1566 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1567
1568 2020-07-01 Tom Tromey <tom@tromey.com>
1569
1570 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1571 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1572 (struct tui_line_or_address): Move from tui-data.h.
1573 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1574 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1575 (tui_cmd_window, tui_source_window_base, tui_source_window)
1576 (tui_disasm_window): Don't declare.
1577 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1578 to tui-winsource.h.
1579 (SINGLE_KEY): Move to tui-stack.c.
1580
1581 2020-07-01 Tom Tromey <tom@tromey.com>
1582
1583 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1584 std::string.
1585 * tui/tui-regs.c (class tab_expansion_file): New.
1586 (tab_expansion_file::write): New method.
1587 (tui_register_format): Change return type. Use
1588 tab_expansion_file.
1589 (tui_get_register, tui_data_window::display_registers_from)
1590 (tui_data_item_window::rerender): Update.
1591 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1592 * tui/tui-io.c (tui_expand_tabs): Remove.
1593
1594 2020-07-01 Tom Tromey <tom@tromey.com>
1595
1596 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1597
1598 2020-07-01 Fangrui Song <maskray@google.com>
1599
1600 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1601
1602 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1603
1604 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1605 forms for DW_AT_associated and DW_AT_allocated attributes,
1606 which is already checked in function attr_to_dynamic_prop.
1607
1608 2020-06-30 Tom Tromey <tromey@adacore.com>
1609
1610 * dwarf2/read.c (quirk_rust_enum): Correctly call
1611 alloc_rust_variant for default-less enum.
1612
1613 2020-06-30 Tom Tromey <tromey@adacore.com>
1614
1615 PR build/26183:
1616 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1617 gdb::to_string.
1618
1619 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1620
1621 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1622 * gdbarch.h: Re-generate.
1623
1624 2020-06-28 Tom Tromey <tom@tromey.com>
1625
1626 * command.h (cmd_types): Remove.
1627 (cmd_type): Don't declare.
1628 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1629 typedef.
1630 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1631 * cli/cli-decode.c (cmd_type): Remove.
1632
1633 2020-06-27 Pedro Alves <palves@redhat.com>
1634
1635 * fork-child.c (prefork_hook): Adjust.
1636 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1637 Delete.
1638 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1639 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1640 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1641 Remove declarations.
1642 (struct inferior) <set_tty, tty>: New methods.
1643 (struct inferior) <terminal>: Rename to ...
1644 (struct inferior) <m_terminal>: ... this and make private.
1645 * main.c (captured_main_1): Adjust.
1646 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1647 (mi_cmd_inferior_tty_show): Adjust.
1648 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1649 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1650
1651 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1652
1653 * configure.ac: Add --enable-libctf: handle --disable-static
1654 properly.
1655 * acinclude.m4: sinclude ../config/enable.m4.
1656 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1657 (LIBCTF): Substitute in.
1658 (CTF_DEPS): New, likewise.
1659 (CLIBS): libctf needs symbols from libbfd: move earlier.
1660 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1661 flags.
1662 * ctfread.c: Surround in ENABLE_LIBCTF.
1663 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1664 * configure: Regenerate.
1665 * config.in: Likewise.
1666
1667 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1668
1669 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1670
1671 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1672
1673 * inferior.h (struct inferior) <terminal>: Change type to
1674 gdb::unique_xmalloc_ptr<char>.
1675 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1676 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1677 field, adjust to unique pointer.
1678 (get_inferior_io_terminal): Adjust to unique pointer.
1679
1680 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1681
1682 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1683 registers, not just the known core set of registers.
1684
1685 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1686
1687 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1688 fflags, frm, and fcsr registers.
1689 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1690 restore groups.
1691 (riscv_tdesc_unknown_reg): New function.
1692 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1693 tdesc_use_registers.
1694 * riscv-tdep.h (struct gdbarch_tdep): Add
1695 unknown_csrs_first_regnum, unknown_csrs_count,
1696 duplicate_fflags_regnum, duplicate_frm_regnum, and
1697 duplicate_fcsr_regnum fields.
1698
1699 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1700
1701 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1702 callback, use the callback (when not null) to help number unknown
1703 registers.
1704 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1705 (tdesc_use_registers): Add extra parameter to declaration.
1706
1707 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1708
1709 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1710 in the file.
1711 (class riscv_pending_register_alias): Likewise.
1712 (riscv_register_feature::register_info): Change 'required_p' field
1713 to 'required', and change its type. Add 'check' member function.
1714 (riscv_register_feature::register_info::check): Define new member
1715 function.
1716 (riscv_xreg_feature): Change initialisation of 'required' field.
1717 (riscv_freg_feature): Likewise.
1718 (riscv_virtual_feature): Likewise.
1719 (riscv_csr_feature): Likewise.
1720 (riscv_check_tdesc_feature): Take extra parameter, the csr
1721 tdesc_feature, rewrite the function to use the new
1722 riscv_register_feature::register_info::check function.
1723 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1724
1725 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1726
1727 * features/Makefile: Remove all references to the deleted files
1728 below.
1729 * features/riscv/32bit-csr.c: Deleted.
1730 * features/riscv/32bit-csr.xml: Deleted.
1731 * features/riscv/64bit-csr.c: Deleted.
1732 * features/riscv/64bit-csr.xml: Deleted.
1733 * features/riscv/rebuild-csr-xml.sh: Deleted.
1734
1735 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1736
1737 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1738 whitespace error for declaration of names member variable.
1739 (struct riscv_register_feature): Add new prefer_first_name member
1740 variable, and fix whitespace error in declaration of registers.
1741 (riscv_xreg_feature): Initialize prefer_first_name field.
1742 (riscv_freg_feature): Likewise.
1743 (riscv_virtual_feature): Likewise.
1744 (riscv_csr_feature): Likewise.
1745 (riscv_register_name): Expand on comments. Remove register name
1746 modifications for CSR and virtual registers.
1747
1748 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1749
1750 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1751 errors.
1752
1753 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1754
1755 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1756 riscv-opc.h.
1757 (class riscv_pending_register_alias): New class.
1758 (riscv_check_tdesc_feature): Take vector of pending aliases and
1759 populate it as appropriate.
1760 (riscv_setup_register_aliases): Delete.
1761 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1762 to riscv_check_tdesc_feature in all cases. Use the vector to
1763 create the register aliases.
1764
1765 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1766
1767 * sol2-tdep.c (sol2_static_transform_name): Remove.
1768 (sol2_init_abi): Don't register it.
1769 * gdbarch.sh (static_transform_name): Remove.
1770 * gdbarch.c, gdbarch.h: Regenerate.
1771
1772 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1773 gdbarch_static_transform_name.
1774 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1775 * stabsread.c (define_symbol) <'X'>: Remove.
1776 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1777 handling.
1778 <'V'>: Likewise.
1779 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1780 <'S'>: Remove call to gdbarch_static_transform_name.
1781
1782 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1783
1784 * procfs.c (procfs_pre_trace): New function.
1785 (procfs_target::create_inferior): Pass it to fork_inferior.
1786
1787 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1788
1789 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1790 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1791 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1792 sol2-tdep.o, sparc-sol2-tdep.o.
1793 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1794 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1795 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1796 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1797
1798 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1799
1800 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1801 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1802 Call sol2_init_abi.
1803 Remove calls to set_gdbarch_skip_solib_resolver,
1804 set_gdbarch_core_pid_to_str.
1805 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1806 (i386_sol2_static_transform_name): Remove.
1807 (i386_sol2_init_abi): Call sol2_init_abi.
1808 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1809 set_gdbarch_static_transform_name,
1810 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1811 Use sol2_sigtramp_p.
1812 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1813 (sol2_sigtramp_p): New function.
1814 (sol2_static_transform_name): New function.
1815 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1816 (sol2_init_abi): New function.
1817 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1818 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1819 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1820 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1821 (sparc_sol2_static_transform_name): Remove.
1822 (sparc32_sol2_init_abi): Call sol2_init_abi.
1823 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1824 set_gdbarch_static_transform_name,
1825 set_gdbarch_skip_solib_resolver,
1826 set_gdbarch_core_pid_to_str.
1827 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1828 (sparc_sol2_static_transform_name): Remove
1829 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1830 call sol2_sigtramp_p.
1831 (sparc64_sol2_init_abi): Call sol2_init_abi.
1832 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1833 set_gdbarch_static_transform_name,
1834 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1835
1836 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1837
1838 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1839 * exec.c (validate_exec_file): If from_tty, set both
1840 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1841 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1842 and from_tty, unconditionally ask a confirmation.
1843
1844 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1845
1846 * target-descriptions.c (tdesc_architecture_name): Protect against
1847 NULL pointer dereference.
1848 (maint_print_xml_tdesc_cmd): New function.
1849 (_initialize_target_descriptions): Register new 'maint print
1850 xml-tdesc' command and give it the filename completer.
1851 * NEWS: Mention new 'maint print xml-tdesc' command.
1852
1853 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1854
1855 * target-descriptions.c (class tdesc_compatible_info): New class.
1856 (struct target_desc): Change type of compatible vector.
1857 (tdesc_compatible_p): Update for change in type of
1858 target_desc::compatible.
1859 (tdesc_compatible_info_list): New function.
1860 (tdesc_compatible_info_arch_name): New function.
1861 (tdesc_add_compatible): Update for change in type of
1862 target_desc::compatible.
1863 (print_c_tdesc::visit_pre): Likewise.
1864
1865 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1866
1867 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1868 whitespace to underscore.
1869 (maint_print_c_tdesc_cmd): Use fake filename for target
1870 descriptions that came from the target.
1871 (_initialize_target_descriptions): Add filename command completion
1872 for 'maint print c-tdesc'.
1873
1874 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1875
1876 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1877 lines.
1878
1879 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1880
1881 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1882 lines.
1883 (dwarf2_find_location_expression): Likewise.
1884 (call_site_parameter_matches): Likewise.
1885 (dwarf2_compile_expr_to_ax): Likewise.
1886 (disassemble_dwarf_expression): Likewise.
1887 (loclist_describe_location): Likewise.
1888
1889 2020-06-23 Pedro Alves <palves@redhat.com>
1890
1891 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1892 progspace-and-thread.h. Include scoped-mock-context.h instead.
1893 (register_to_value_test): Use scoped_mock_context.
1894 * regcache.c: Include "scoped-mock-context.h".
1895 (cooked_read_test): Don't error out if a target is already pushed.
1896 Use scoped_mock_context. Adjust.
1897 * scoped-mock-context.h: New file.
1898
1899 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1900
1901 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1902 initializer.
1903 (ada_language::is_string_type_p): New member function.
1904 * c-lang.c (c_language_data): Delete la_is_string_type_p
1905 initializer.
1906 (cplus_language_data): Likewise.
1907 (asm_language_data): Likewise.
1908 (minimal_language_data): Likewise.
1909 * d-lang.c (d_language_data): Likewise.
1910 * f-lang.c (f_is_string_type_p): Delete function, implementation
1911 moved to f_language::is_string_type_p.
1912 (f_language_data): Delete la_is_string_type_p initializer.
1913 (f_language::is_string_type_p): New member function,
1914 implementation from f_is_string_type_p.
1915 * go-lang.c (go_is_string_type_p): Delete function, implementation
1916 moved to go_language::is_string_type_p.
1917 (go_language_data): Delete la_is_string_type_p initializer.
1918 (go_language::is_string_type_p): New member function,
1919 implementation from go_is_string_type_p.
1920 * language.c (language_defn::is_string_type_p): Define new member
1921 function.
1922 (default_is_string_type_p): Make static, add comment copied from
1923 header file.
1924 (unknown_language_data): Delete la_is_string_type_p initializer.
1925 (unknown_language::is_string_type_p): New member function.
1926 (auto_language_data): Delete la_is_string_type_p initializer.
1927 (auto_language::is_string_type_p): New member function.
1928 * language.h (language_data): Delete la_is_string_type_p field.
1929 (language_defn::is_string_type_p): Declare new function.
1930 (default_is_string_type_p): Delete desclaration, move comment to
1931 definition.
1932 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1933 moved to m2_language::is_string_type_p.
1934 (m2_language_data): Delete la_is_string_type_p initializer.
1935 (m2_language::is_string_type_p): New member function,
1936 implementation from m2_is_string_type_p.
1937 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1938 initializer.
1939 * opencl-lang.c (opencl_language_data): Likewise.
1940 * p-lang.c (pascal_is_string_type_p): Delete function,
1941 implementation moved to pascal_language::is_string_type_p.
1942 (pascal_language_data): Delete la_is_string_type_p initializer.
1943 (pascal_language::is_string_type_p): New member function,
1944 implementation from pascal_is_string_type_p.
1945 * rust-lang.c (rust_is_string_type_p): Delete function,
1946 implementation moved to rust_language::is_string_type_p.
1947 (rust_language_data): Delete la_is_string_type_p initializer.
1948 (rust_language::is_string_type_p): New member function,
1949 implementation from rust_is_string_type_p.
1950 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1951 is_string_type_p.
1952
1953 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1954
1955 * ada-lang.c (ada_language_data): Delete la_print_typedef
1956 initializer.
1957 (ada_language::print_typedef): New member function.
1958 * c-lang.c (c_language_data): Delete la_print_typedef 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_language_data): Likewise.
1964 (f_language::print_typedef): New member function.
1965 * go-lang.c (go_language_data): Delete la_print_typedef
1966 initializer.
1967 * language.c (language_defn::print_typedef): Define member
1968 function.
1969 (unknown_language_data): Delete la_print_typedef initializer.
1970 (unknown_language::print_typedef): New member function.
1971 (auto_language_data): Delete la_print_typedef initializer.
1972 (auto_language::print_typedef): New member function.
1973 * language.h (language_data): Delete la_print_typedef field.
1974 (language_defn::print_typedef): Declare new member function.
1975 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1976 (default_print_typedef): Delete declaration.
1977 * m2-lang.c (m2_language_data): Delete la_print_typedef
1978 initializer.
1979 (m2_language::print_typedef): New member function.
1980 * objc-lang.c (objc_language_data): Delete la_print_typedef
1981 initializer.
1982 * opencl-lang.c (opencl_language_data): Likewise.
1983 * p-lang.c (pascal_language_data): Likewise.
1984 (pascal_language::print_typedef): New member function.
1985 * rust-lang.c (rust_print_typedef): Delete function,
1986 implementation moved to rust_language::print_typedef.
1987 (rust_language): Delete la_print_typedef initializer.
1988 (rust_language::print_typedef): New member function,
1989 implementation from rust_print_typedef.
1990 * typeprint.c (default_print_typedef): Delete.
1991
1992 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1993
1994 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1995 (ada_language::printstr): New member function.
1996 * c-lang.c (c_language_data): Delete la_printstr initializer.
1997 (cplus_language_data): Likewise.
1998 (asm_language_data): Likewise.
1999 (minimal_language_data): Likewise.
2000 * d-lang.c (d_language_data): Likewise.
2001 * f-lang.c (f_printstr): Rename to f_language::printstr.
2002 (f_language_data): Delete la_printstr initializer.
2003 (f_language::printstr): New member function, implementation from
2004 f_printstr.
2005 * go-lang.c (go_language_data): Delete la_printstr initializer.
2006 * language.c (language_defn::printstr): Define new member
2007 function.
2008 (unk_lang_printstr): Delete.
2009 (unknown_language_data): Delete la_printstr initializer.
2010 (unknown_language::printstr): New member function.
2011 (auto_language_data): Delete la_printstr initializer.
2012 (auto_language::printstr): New member function.
2013 * language.h (language_data): Delete la_printstr field.
2014 (language_defn::printstr): Declare new member function.
2015 (LA_PRINT_STRING): Update call to printstr.
2016 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2017 (m2_language_data): Delete la_printstr initializer.
2018 (m2_language::printstr): New member function, implementation from
2019 m2_printstr.
2020 * objc-lang.c (objc_language_data): Delete la_printstr
2021 initializer.
2022 * opencl-lang.c (opencl_language_data): Likewise.
2023 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2024 (pascal_language_data): Delete la_printstr initializer.
2025 (pascal_language::printstr): New member function, implementation
2026 from pascal_printstr.
2027 * p-lang.h (pascal_printstr): Delete declaration.
2028 * rust-lang.c (rust_printstr): Update header comment.
2029 (rust_language_data): Delete la_printstr initializer.
2030 (rust_language::printstr): New member function.
2031
2032 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2033
2034 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2035 (ada_language::printchar): New member function.
2036 * c-lang.c (c_language_data): Delete la_printchar initializer.
2037 (cplus_language_data): Likewise.
2038 (asm_language_data): Likewise.
2039 (minimal_language_data): Likewise.
2040 * d-lang.c (d_language_data): Likewise.
2041 * f-lang.c (f_printchar): Rename to f_language::printchar.
2042 (f_language_data): Delete la_printchar initializer.
2043 (f_language::printchar): New member function, implementation from
2044 f_printchar.
2045 * go-lang.c (go_language_data): Delete la_printchar initializer.
2046 * language.c (unk_lang_printchar): Delete.
2047 (language_defn::printchar): Define new member function.
2048 (unknown_language_data): Delete la_printchar initializer.
2049 (unknown_language::printchar): New member function.
2050 (auto_language_data): Delete la_printchar initializer.
2051 (auto_language::printchar): New member function.
2052 * language.h (language_data): Delete la_printchar field.
2053 (language_defn::printchar): Declare new member function.
2054 (LA_PRINT_CHAR): Update call to printchar.
2055 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2056 (m2_language::printchar): New member function.
2057 * objc-lang.c (objc_language_data): Delete la_printchar
2058 initializer.
2059 * opencl-lang.c (opencl_language_data): Likewise.
2060 * p-lang.c (pascal_language_data): Delete la_printchar
2061 initializer.
2062 (pascal_language::printchar): New member function.
2063 * rust-lang.c (rust_printchar): Rename to
2064 rust_language::printchar.
2065 (rust_language_data): Delete la_printchar initializer.
2066 (rust_language::printchar): New member function, implementation
2067 from rust_printchar.
2068
2069 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2070
2071 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2072 (ada_language_data): Delete la_emitchar initializer.
2073 (ada_language::emitchar): New member function, implementation from
2074 emit_char.
2075 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2076 (cplus_language_data): Likewise.
2077 (asm_language_data): Likewise.
2078 (minimal_language_data): Likewise.
2079 * d-lang.c (d_language_data): Likewise.
2080 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2081 (f_language_data): Delete la_emitchar initializer.
2082 (f_language::emitchar): New member function, implementation from
2083 f_emit_char.
2084 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2085 * language.c (unk_lang_emit_char): Delete.
2086 (language_defn::emitchar): New member function definition.
2087 (unknown_language_data): Delete la_emitchar initializer.
2088 (unknown_language::emitchar): New member function.
2089 (auto_language_data): Delete la_emitchar initializer.
2090 (auto_language::emitchar): New member function.
2091 * language.h (language_data): Delete la_emitchar field.
2092 (language_defn::emitchar): New member field declaration.
2093 (LA_EMIT_CHAR): Update call to emitchar.
2094 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2095 (m2_language_data): Delete la_emitchar initializer.
2096 (m2_language::emitchar): New member function, implementation from
2097 m2_emit_char.
2098 * objc-lang.c (objc_language_data): Delete la_emitchar
2099 initializer.
2100 * opencl-lang.c (opencl_language_data): Likewise.
2101 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2102 (pascal_language_data): Delete la_emitchar initializer.
2103 (pascal_language::emitchar): New member function, implementation
2104 from pascal_emit_char.
2105 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2106 (rust_language_data): Delete la_emitchar initializer.
2107 (rust_language::emitchar): New member function, implementation
2108 from rust_emitchar.
2109
2110 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2111
2112 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2113 (ada_language_data): Delete la_post_parser initializer.
2114 (ada_language::post_parser): New member function.
2115 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2116 (cplus_language_data): Likewise.
2117 (asm_language_data): Likewise.
2118 (minimal_language_data): Likewise.
2119 * d-lang.c (d_language_data): Likewise.
2120 * f-lang.c (f_language_data): Likewise.
2121 * go-lang.c (go_language_data): Likewise.
2122 * language.c (unknown_language_data): Likewise.
2123 (auto_language_data): Likewise.
2124 * language.h (language_data): Delete la_post_parser field.
2125 (language_defn::post_parser): New member function.
2126 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2127 * objc-lang.c (objc_language_data): Likewise.
2128 * opencl-lang.c (opencl_language_data): Likewise.
2129 * p-lang.c (pascal_language_data): Likewise.
2130 * parse.c (parse_exp_in_context): Update call to post_parser.
2131 (null_post_parser): Delete definition.
2132 * parser-defs.h (null_post_parser): Delete declaration.
2133 * rust-lang.c (rust_language_data): Delete la_post_parser
2134 initializer.
2135
2136 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2137
2138 * ada-lang.c (parse): Rename to ada_language::parser.
2139 (ada_language_data): Delete la_parser initializer.
2140 (ada_language::parser): New member function, implementation from
2141 parse.
2142 * c-lang.c (c_language_data): Delete la_parser initializer.
2143 (cplus_language_data): Likewise.
2144 (asm_language_data): Likewise.
2145 (minimal_language_data): Likewise.
2146 * d-lang.c (d_language_data): Likewise.
2147 (d_language::parser): New member function.
2148 * f-lang.c (f_language_data): Delete la_parser initializer.
2149 (f_language::parser): New member function.
2150 * go-lang.c (go_language_data): Delete la_parser initializer.
2151 (go_language::parser): New member function.
2152 * language.c (unk_lang_parser): Delete.
2153 (language_defn::parser): Define new member function.
2154 (unknown_language_data): Delete la_parser initializer.
2155 (unknown_language::parser): New member function.
2156 (auto_language_data): Delete la_parser initializer.
2157 (auto_language::parser): New member function.
2158 * language.h (language_data): Delete la_parser field.
2159 (language_defn::parser): Declare new member function.
2160 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2161 (m2_language::parser): New member function.
2162 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2163 * opencl-lang.c (opencl_language_data): Likewise.
2164 * p-lang.c (pascal_language_data): Likewise.
2165 (pascal_language::parser): New member function.
2166 * parse.c (parse_exp_in_context): Update call to parser.
2167 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2168 (rust_language::parser): New member function.
2169
2170 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2171
2172 * top.c (print_gdb_configuration): Print --with-python-libdir
2173 configuration value.
2174
2175 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2176
2177 * NEWS: Mention change to the alias command.
2178
2179 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2180
2181 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2182 (alias_command_completer)
2183 (make_alias_options_def_group): New functions.
2184 (alias_opts, alias_option_defs): New struct and array.
2185 (alias_usage_error): Update usage.
2186 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2187 Use option framework.
2188 (_initialize_cli_cmds): Update alias command help.
2189 Update aliases command help.
2190 (show_user):
2191 Add NULL for new default_args lookup_cmd argument.
2192 (valid_command_p): Rename to validate_aliased_command.
2193 Add NULL for new default_args lookup_cmd argument. Verify that the
2194 aliased_command has no default args.
2195 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2196 (lookup_cmd_1, lookup_cmd): New argument default_args.
2197 (add_alias_cmd):
2198 Add NULL for new default_args lookup_cmd argument.
2199 (print_help_for_command): Show default args under the layout
2200 alias some_alias = some_aliased_cmd some_alias_default_arg.
2201 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2202 xfree default_args in destructor.
2203 * cli/cli-script.c (process_next_line, do_define_command):
2204 Add NULL for new default_args lookup_cmd argument.
2205 * command.h: Declare new default_args argument in lookup_cmd
2206 and lookup_cmd_1.
2207 * completer.c (complete_line_internal_1):
2208 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2209 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2210 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2211 Likewise.
2212 * infcmd.c (_initialize_infcmd): Likewise.
2213 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2214 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2215 * python/py-param.c (add_setshow_generic): Likewise.
2216 * remote.c (_initialize_remote): Likewise.
2217 * top.c (execute_command): Prepend default_args if command has some.
2218 (set_verbose):
2219 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2220 * tracepoint.c (validate_actionline, encode_actions_1):
2221 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2222
2223 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2224
2225 * jit.c (jit_read_descriptor): Use bool as the return type.
2226 (jit_breakpoint_re_set_internal): Use bool as the return type.
2227 Invert the return value logic; return true if the jit breakpoint
2228 has been successfully initialized.
2229 (jit_inferior_init): Update the call to
2230 jit_breakpoint_re_set_internal.
2231
2232 2020-06-22 Pedro Alves <palves@redhat.com>
2233
2234 PR gdb/25939
2235 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2236 Use the current inferior instead. Don't return
2237 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2238 wait again.
2239 * sol-thread.c (sol_thread_target::wait): Don't reference
2240 inferior_ptid.
2241 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2242 (sol_update_thread_list_callback): Use the current inferior's pid
2243 instead of inferior_ptid.
2244
2245 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2246
2247 * procfs.c: Cleanup many comments.
2248
2249 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2250 (AFTER_WATCHFLAG): Replace by value.
2251
2252 (MAIN_PROC_NAME_FORMAT): Inline ...
2253 (create_procinfo): ... here.
2254
2255 (procfs_debug_inferior): Remove SYS_exec handling.
2256 (syscall_is_exec): Likewise.
2257 (procfs_set_exec_trap): Likewise.
2258
2259 (syscall_is_lwp_exit): Inline in callers.
2260 (syscall_is_exit): Likewise.
2261 (syscall_is_exec): Likewise.
2262 (syscall_is_lwp_create): Likewise.
2263
2264 (invalidate_cache): Remove #if 0 code.
2265
2266 (make_signal_thread_runnable): Remove.
2267 (procfs_target::resume): Remove #if 0 code.
2268
2269 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2270
2271 PR gdb/25939
2272 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2273 call ...
2274 (procfs_target::create_inferior): ... here.
2275
2276 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2277
2278 * exec.c (validate_exec_file): Ensure the build-id is up to
2279 date by calling reopen_exec_file (that checks file timestamp
2280 to decide to re-read the file).
2281
2282 2020-06-18 Pedro Alves <palves@redhat.com>
2283
2284 PR gdb/25412
2285 * gdbthread.h (delete_thread, delete_thread_silent)
2286 (find_thread_ptid): Update comments.
2287 * thread.c (current_thread_): New global.
2288 (is_current_thread): Move higher, and reimplement.
2289 (inferior_thread): Reimplement.
2290 (set_thread_exited): Use bool. Add assertions.
2291 (add_thread_silent): Simplify thread-reuse handling by always
2292 calling delete_thread.
2293 (delete_thread): Remove intro comment.
2294 (find_thread_ptid): Skip exited threads.
2295 (switch_to_thread_no_regs): Write to current_thread_.
2296 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2297 INFERIOR_PTID. Clear current_thread_.
2298
2299 2020-06-18 Pedro Alves <palves@redhat.com>
2300
2301 * aix-thread.c (pd_update): Use switch_to_thread.
2302
2303 2020-06-18 Pedro Alves <palves@redhat.com>
2304
2305 * ravenscar-thread.c (ravenscar_thread_target): Update.
2306 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2307 (ravenscar_thread_target::add_active_thread): ... this. Don't
2308 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2309 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2310
2311 2020-06-18 Pedro Alves <palves@redhat.com>
2312
2313 * nat/windows-nat.c (current_windows_thread): Remove.
2314 * nat/windows-nat.h (current_windows_thread): Remove.
2315 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2316 Adjust.
2317 (display_selectors): Adjust to fetch the current
2318 windows_thread_info based on inferior_ptid.
2319 (fake_create_process): No longer write to current_windows_thread.
2320 (windows_nat_target::get_windows_debug_event):
2321 Don't set inferior_ptid or current_windows_thread.
2322 (windows_nat_target::wait): Adjust to not rely on
2323 current_windows_thread.
2324 (do_initial_windows_stuff): Now a method of windows_nat_target.
2325 Switch to the last_ptid thread.
2326 (windows_nat_target::attach): Adjust.
2327 (windows_nat_target::detach): Use switch_to_no_thread instead of
2328 writing to inferior_ptid directly.
2329 (windows_nat_target::create_inferior): Adjust.
2330
2331 2020-06-18 Pedro Alves <palves@redhat.com>
2332
2333 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2334
2335 2020-06-18 Pedro Alves <palves@redhat.com>
2336
2337 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2338 after creating it, instead of writing to inferior_ptid. Don't
2339 write to inferior_ptid.
2340
2341 2020-06-18 Pedro Alves <palves@redhat.com>
2342
2343 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2344
2345 2020-06-18 Pedro Alves <palves@redhat.com>
2346
2347 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2348 it, instead of writing to inferior_ptid.
2349
2350 2020-06-18 Pedro Alves <palves@redhat.com>
2351
2352 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2353 to inferior_ptid.
2354
2355 2020-06-18 Pedro Alves <palves@redhat.com>
2356
2357 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2358 instead of writing to inferior_ptid directly.
2359
2360 2020-06-18 Pedro Alves <palves@redhat.com>
2361
2362 * corelow.c (core_target::close): Use switch_to_no_thread instead
2363 of writing to inferior_ptid directly.
2364 (add_to_thread_list, core_target_open): Use switch_to_thread
2365 instead of writing to inferior_ptid directly.
2366
2367 2020-06-18 Pedro Alves <palves@redhat.com>
2368
2369 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2370 inferior_ptid.
2371 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2372 inferior_ptid.
2373 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2374 inferior_ptid directly.
2375 (darwin_nat_target::init_thread_list): Switch to thread, instead
2376 of writing to inferior_ptid.
2377 (darwin_nat_target::attach): Don't write to inferior_ptid.
2378 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2379
2380 2020-06-18 Pedro Alves <palves@redhat.com>
2381
2382 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2383 thread.
2384 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2385 Instead use switch_to_thread.
2386 (gnu_nat_target::detach): Use switch_to_no_thread
2387 instead of writing to inferior_ptid directly. Used passed-in
2388 inferior instead of looking up the inferior by pid.
2389
2390 2020-06-18 Pedro Alves <palves@redhat.com>
2391
2392 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2393 inferior_ptid.
2394
2395 2020-06-18 Pedro Alves <palves@redhat.com>
2396
2397 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2398 inferior_ptid.
2399 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2400 thread.
2401 (nto_procfs_target::detach): Avoid referencing
2402 inferior_ptid. Use switch_to_no_thread instead of writing to
2403 inferior_ptid directly.
2404 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2405 instead of writing to inferior_ptid directly.
2406 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2407 to thread.
2408
2409 2020-06-18 Pedro Alves <palves@redhat.com>
2410
2411 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2412 after creating it, instead of writing to inferior_ptid.
2413 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2414 to inferior_ptid directly.
2415 (gdbsim_target::wait): Don't write to inferior_ptid.
2416
2417 2020-06-18 Pedro Alves <palves@redhat.com>
2418
2419 * remote.c (remote_target::remote_notice_new_inferior): Use
2420 switch_to_thread instead of writing to inferior_ptid directly.
2421 (remote_target::add_current_inferior_and_thread): Use
2422 switch_to_no_thread instead of writing to inferior_ptid directly.
2423 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2424 and switch_to_thread instead of using set_current_inferior or
2425 writing to inferior_ptid directly.
2426
2427 2020-06-18 Pedro Alves <palves@redhat.com>
2428
2429 * tracectf.c (ctf_target_open): Switch to added thread instead of
2430 writing to inferior_ptid directly.
2431 (ctf_target::close): Use switch_to_no_thread instead of writing to
2432 inferior_ptid directly.
2433
2434 2020-06-18 Pedro Alves <palves@redhat.com>
2435
2436 * tracefile-tfile.c (tfile_target_open): Don't write to
2437 inferior_ptid directly, instead switch to added thread.
2438 (tfile_target::close): Use switch_to_no_thread instead of writing
2439 to inferior_ptid directly.
2440
2441 2020-06-18 Pedro Alves <palves@redhat.com>
2442
2443 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2444 (procfs_target::detach): Use switch_to_no_thread
2445 instead of writing to inferior_ptid directly.
2446 (do_attach): Change return type to void. Switch to the added
2447 thread.
2448 (procfs_target::create_inferior): Switch to the added thread.
2449 (procfs_do_thread_registers): Don't write to inferior_ptid.
2450
2451 2020-06-18 Pedro Alves <palves@redhat.com>
2452
2453 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2454 of writing to inferior_ptid.
2455 (scoped_restore_exited_inferior): Delete.
2456 (handle_vfork_child_exec_or_exit): Simplify using
2457 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2458 instead of writing to inferior_ptid.
2459 (THREAD_STOPPED_BY): Delete.
2460 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2461 (thread_stopped_by_hw_breakpoint): Delete.
2462 (save_waitstatus): Use
2463 scoped_restore_current_thread+switch_to_thread, and call
2464 target_stopped_by_watchpoint instead of
2465 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2466 instead of thread_stopped_by_sw_breakpoint, and
2467 target_stopped_by_hw_breakpoint instead of
2468 thread_stopped_by_hw_breakpoint.
2469 (handle_inferior_event)
2470 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2471 inferior_ptid directly, nor
2472 set_current_inferior/set_current_program_space. Use
2473 switch_to_thread / switch_to_inferior_no_thread instead.
2474
2475 2020-06-18 Pedro Alves <palves@redhat.com>
2476
2477 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2478 instead of writing to inferior_ptid.
2479
2480 2020-06-18 Pedro Alves <palves@redhat.com>
2481
2482 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2483 added thread.
2484 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2485 to the added thread.
2486 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2487 instead of writing to inferior_ptid.
2488
2489 2020-06-18 Pedro Alves <palves@redhat.com>
2490
2491 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2492 (register_to_value_test): Mock a program_space too. Heap-allocate
2493 the address space. Don't write to inferior_ptid. Use
2494 switch_to_thread instead.
2495
2496 2020-06-18 Pedro Alves <palves@redhat.com>
2497
2498 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2499 Delete.
2500 (find_signalled_thread()): New, factored out from
2501 linux_make_corefile_notes and adjusted to handle exited threads.
2502 (linux_make_corefile_notes): Adjust to use the new
2503 find_signalled_thread.
2504
2505 2020-06-18 Pedro Alves <palves@redhat.com>
2506
2507 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2508 of saving/restoring inferior_ptid.
2509
2510 2020-06-17 Tom Tromey <tom@tromey.com>
2511
2512 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2513 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2514 declare.
2515 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2516
2517 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2518
2519 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2520 of partial symtabs.
2521
2522 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2523
2524 * regformats/reg-arm.dat: Remove.
2525 * regformats/reg-bfin.dat: Remove.
2526 * regformats/reg-cris.dat: Remove.
2527 * regformats/reg-crisv32.dat: Remove.
2528 * regformats/reg-m32r.dat: Remove.
2529 * regformats/reg-tilegx.dat: Remove.
2530 * regformats/reg-tilegx32.dat: Remove.
2531
2532 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2533
2534 * features/Makefile (WHICH): Remove arm files.
2535 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2536 * regformats/arm/arm-with-neon.dat: Remove.
2537 * regformats/arm/arm-with-vfpv2.dat: Remove.
2538 * regformats/arm/arm-with-vfpv3.dat: Remove.
2539
2540 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2541
2542 * features/Makefile (XMLTOC): Remove rx.xml.
2543
2544 2020-06-17 Pedro Alves <palves@redhat.com>
2545
2546 * gdbthread.h (thread_control_state) <trap_expected> Update
2547 comments.
2548
2549 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2550
2551 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2552 ada_language::lookup_symbol_nonlocal.
2553 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2554 (ada_language::lookup_symbol_nonlocal): New member function,
2555 implementation from ada_lookup_symbol_nonlocal.
2556 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2557 initializer.
2558 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2559 initializer.
2560 (cplus_language::lookup_symbol_nonlocal): New member function.
2561 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2562 (minimal_language_data) Likewise.
2563 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2564 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2565 initializer.
2566 (d_language::lookup_symbol_nonlocal): New member function.
2567 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2568 initializer.
2569 (f_language::lookup_symbol_nonlocal): New member function.
2570 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2571 initializer.
2572 * language.c (unknown_language_data): Likewise.
2573 (auto_language_data): Likewise.
2574 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2575 field.
2576 (language_defn::lookup_symbol_nonlocal): New member function.
2577 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2578 initializer.
2579 * objc-lang.c (objc_language_data): Likewise.
2580 * opencl-lang.c (opencl_language_data): Likewise.
2581 * p-lang.c (pascal_language_data): Likewise.
2582 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2583 rust_language::lookup_symbol_nonlocal.
2584 (rust_language_data): Delete la_lookup_symbol_nonlocal
2585 initializer.
2586 (rust_language::lookup_symbol_nonlocal): New member function,
2587 implementation from rust_lookup_symbol_nonlocal.
2588 * symtab.c (lookup_symbol_aux): Update call to
2589 lookup_symbol_nonlocal.
2590 (basic_lookup_symbol_nonlocal): Rename to...
2591 (language_defn::lookup_symbol_nonlocal): ...this, and update
2592 header comment. Remove language_defn parameter, and replace with
2593 uses of `this'.
2594 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2595
2596 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2597
2598 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2599 initializer.
2600 (ada_language::value_print_inner): New member function.
2601 * c-lang.c (c_language_data): Delete la_value_print_inner
2602 initializer.
2603 (cplus_language_data): Likewise.
2604 (asm_language_data): Likewise.
2605 (minimal_language_data): Likewise.
2606 * d-lang.c (d_language_data): Likewise.
2607 (d_language::value_print_inner): New member function.
2608 * f-lang.c (f_language_data): Delete la_value_print_inner
2609 initializer.
2610 (f_language::value_print_inner): New member function.
2611 * f-lang.h (f_value_print_innner): Rename to...
2612 (f_value_print_inner): ...this (note spelling of 'inner').
2613 * f-valprint.c (f_value_print_innner): Rename to...
2614 (f_value_print_inner): ...this (note spelling of 'inner').
2615 * go-lang.c (go_language_data): Delete la_value_print_inner
2616 initializer.
2617 (go_language::value_print_inner): New member function.
2618 * language.c (language_defn::value_print_inner): Define new member
2619 function.
2620 (unk_lang_value_print_inner): Delete.
2621 (unknown_language_data): Delete la_value_print_inner initializer.
2622 (unknown_language::value_print_inner): New member function.
2623 (auto_language_data): Delete la_value_print_inner initializer.
2624 (auto_language::value_print_inner): New member function.
2625 * language.h (language_data): Delete la_value_print_inner field.
2626 (language_defn::value_print_inner): Delcare new member function.
2627 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2628 initializer.
2629 (m2_language::value_print_inner): New member function.
2630 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2631 initializer.
2632 * opencl-lang.c (opencl_language_data): Likewise.
2633 * p-lang.c (pascal_language_data): Likewise.
2634 (pascal_language::value_print_inner): New member function.
2635 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2636 initializer.
2637 (rust_language::value_print_inner): New member function.
2638 * valprint.c (do_val_print): Update call to value_print_inner.
2639
2640 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2641
2642 * ada-lang.c (ada_language_data): Delete la_value_print
2643 initializer.
2644 (ada_language::value_print): New member function.
2645 * c-lang.c (c_language_data): Delete la_value_print initializer.
2646 (cplus_language_data): Likewise.
2647 (asm_language_data): Likewise.
2648 (minimal_language_data): Likewise.
2649 * d-lang.c (d_language_data): Likewise.
2650 * f-lang.c (f_language_data): Likewise.
2651 * go-lang.c (go_language_data): Likewise.
2652 * language.c (unk_lang_value_print): Delete.
2653 (language_defn::value_print): Define new member function.
2654 (unknown_language_data): Delete la_value_print initializer.
2655 (unknown_language::value_print): New member function.
2656 (auto_language_data): Delete la_value_print initializer.
2657 (auto_language::value_print): New member function.
2658 * language.h (language_data): Delete la_value_print field.
2659 (language_defn::value_print): Declare new member function.
2660 (LA_VALUE_PRINT): Update call to value_print.
2661 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2662 * objc-lang.c (objc_language_data): Likewise.
2663 * opencl-lang.c (opencl_language_data): Likewise.
2664 * p-lang.c (pascal_language_data): Likewise.
2665 (pascal_language::value_print): New member function.
2666 * rust-lang.c (rust_language_data): Delete la_value_print
2667 initializer.
2668
2669 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2670
2671 * ada-lang.c (ada_watch_location_expression): Rename to
2672 ada_language::watch_location_expression.
2673 (ada_language_data): Delete la_watch_location_expression
2674 initializer.
2675 (ada_language::watch_location_expression): New member function,
2676 implementation from ada_watch_location_expression.
2677 * breakpoint.c (watch_command_1): Update call to
2678 watch_location_expression.
2679 * c-lang.c (c_watch_location_expression): Rename to
2680 language_defn::watch_location_expression.
2681 (c_language_data): Delete la_watch_location_expression
2682 initializer.
2683 (cplus_language_data): Likewise.
2684 (asm_language_data): Likewise.
2685 (minimal_language_data): Likewise.
2686 * c-lang.h (c_watch_location_expression): Delete declaration.
2687 * d-lang.c (d_language_data): Delete la_watch_location_expression
2688 initializer.
2689 * f-lang.c (f_language_data): Likewise.
2690 * go-lang.c (go_language_data): Likewise.
2691 * language.c (language_defn::watch_location_expression): Member
2692 function implementation from c_watch_location_expression.
2693 (unknown_language_data): Delete la_watch_location_expression
2694 initializer.
2695 (auto_language_data): Likewise.
2696 * language.h (language_data): Delete la_watch_location_expression
2697 field.
2698 (language_defn::watch_location_expression): Declare new member
2699 function.
2700 * m2-lang.c (m2_language_data): Delete
2701 la_watch_location_expression initializer.
2702 * objc-lang.c (objc_language_data): Likewise.
2703 * opencl-lang.c (opencl_language_data): Likewise.
2704 * p-lang.c (pascal_language_data): Likewise.
2705 * rust-lang.c (rust_watch_location_expression): Rename to
2706 rust_language::watch_location_expression.
2707 (rust_language_data): Delete la_watch_location_expression
2708 initializer.
2709 (rust_language::watch_location_expression): New member function,
2710 implementation from rust_watch_location_expression.
2711
2712 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2713
2714 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2715 ada_language::collect_symbol_completion_matches.
2716 (ada_language_data): Delete la_collect_symbol_completion_matches
2717 initializer.
2718 (ada_language::collect_symbol_completion_matches): New member
2719 function, implementation from
2720 ada_collect_symbol_completion_matches.
2721 * c-lang.c (c_language_data): Delete
2722 la_collect_symbol_completion_matches initializer.
2723 (cplus_language_data): Likewise.
2724 (asm_language_data): Likewise.
2725 (minimal_language_data): Likewise.
2726 * d-lang.c (d_language_data): Likewise.
2727 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2728 f_language::collect_symbol_completion_matches.
2729 (f_language_data): Delete la_collect_symbol_completion_matches
2730 initializer.
2731 (f_language::collect_symbol_completion_matches) New member
2732 function, implementation from f_collect_symbol_completion_matches.
2733 * go-lang.c (go_language_data): Delete
2734 la_collect_symbol_completion_matches initializer.
2735 * language.c (unknown_language_data): Likewise.
2736 (auto_language_data): Likewise.
2737 * language.h (language_data): Delete
2738 la_collect_symbol_completion_matches field.
2739 (language_defn::collect_symbol_completion_matches): New member
2740 function.
2741 * m2-lang.c (m2_language_data): Delete
2742 la_collect_symbol_completion_matches initializer.
2743 * objc-lang.c (objc_language_data): Likewise.
2744 * opencl-lang.c (opencl_language_data): Likewise.
2745 * p-lang.c (pascal_language_data): Likewise.
2746 * rust-lang.c (rust_language_data): Likewise.
2747 * symtab.c (default_collect_symbol_completion_matches): Delete.
2748 (collect_symbol_completion_matches): Update call to
2749 collect_symbol_completion_matches.
2750 (collect_symbol_completion_matches_type): Likewise.
2751 * symtab.h (default_collect_symbol_completion_matches): Delete
2752 declaration.
2753
2754 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2755
2756 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2757 (ada_language_data): Delete la_word_break_characters initializer.
2758 (ada_language::word_break_characters): New member function.
2759 * c-lang.c (c_language_data): Delete la_word_break_characters
2760 initializer.
2761 (cplus_language_data): Likewise.
2762 (asm_language_data): Likewise.
2763 (minimal_language_data): Likewise.
2764 * completer.c: Update global comment.
2765 (advance_to_expression_complete_word_point): Update call to
2766 word_break_characters.
2767 (complete_files_symbols): Likewise.
2768 (complete_line_internal_1): Likewise.
2769 (default_completer_handle_brkchars): Likewise.
2770 (skip_quoted_chars): Likewise.
2771 * d-lang.c (d_language_data): Delete la_word_break_characters
2772 initializer.
2773 * f-lang.c (f_word_break_characters): Delete.
2774 (f_language_data): Delete la_word_break_characters initializer.
2775 (f_language::word_break_characters): New member function.
2776 * go-lang.c (go_language_data): Delete la_word_break_characters
2777 initializer.
2778 * language.c (unknown_language_data): Likewise.
2779 (auto_language_data): Likewise.
2780 * language.h (default_word_break_characters): Move declaration to
2781 earlier in the file.
2782 (language_data): Delete la_word_break_characters field.
2783 (language_defn::word_break_characters): New member function.
2784 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2785 initializer.
2786 * objc-lang.c (objc_language_data): Likewise.
2787 * opencl-lang.c (opencl_language_data): Likewise.
2788 * p-lang.c (pascal_language_data): Likewise.
2789 * rust-lang.c (rust_language_data): Likewise.
2790
2791 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2792
2793 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2794 (ada_language_data): Delete la_get_symbol_name_matcher
2795 initializer.
2796 (language_defn::get_symbol_name_matcher_inner): New member
2797 function.
2798 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2799 initializer.
2800 (cplus_language_data): Likewise.
2801 (cplus_language::get_symbol_name_matcher_inner): New member
2802 function.
2803 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2804 (minimal_language_data): Likewise.
2805 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2806 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2807 initializer.
2808 * dictionary.c (iter_match_first_hashed): Update call to
2809 get_symbol_name_matcher.
2810 (iter_match_next_hashed): Likewise.
2811 (iter_match_next_linear): Likewise.
2812 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2813 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2814 initializer.
2815 (f_language::get_symbol_name_matcher_inner): New member function.
2816 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2817 initializer.
2818 * language.c (default_symbol_name_matcher): Update header comment,
2819 make static.
2820 (language_defn::get_symbol_name_matcher): New definition.
2821 (language_defn::get_symbol_name_matcher_inner): Likewise.
2822 (get_symbol_name_matcher): Delete.
2823 (unknown_language_data): Delete la_get_symbol_name_matcher
2824 initializer.
2825 (auto_language_data): Likewise.
2826 * language.h (language_data): Delete la_get_symbol_name_matcher
2827 field.
2828 (language_defn::get_symbol_name_matcher): New member function.
2829 (language_defn::get_symbol_name_matcher_inner): Likewise.
2830 (default_symbol_name_matcher): Delete declaration.
2831 * linespec.c (find_methods): Update call to
2832 get_symbol_name_matcher.
2833 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2834 initializer.
2835 * minsyms.c (lookup_minimal_symbol): Update call to
2836 get_symbol_name_matcher.
2837 (iterate_over_minimal_symbols): Likewise.
2838 * objc-lang.c (objc_language_data): Delete
2839 la_get_symbol_name_matcher initializer.
2840 * opencl-lang.c (opencl_language_data): Likewise.
2841 * p-lang.c (pascal_language_data): Likewise.
2842 * psymtab.c (psymbol_name_matches): Update call to
2843 get_symbol_name_matcher.
2844 * rust-lang.c (rust_language_data): Delete
2845 la_get_symbol_name_matcher initializer.
2846 * symtab.c (symbol_matches_search_name): Update call to
2847 get_symbol_name_matcher.
2848 (compare_symbol_name): Likewise.
2849
2850 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2851
2852 * ada-lang.c (ada_language_data): Delete la_compute_program
2853 initializer.
2854 * c-lang.c (c_language_data): Likewise.
2855 (c_language::compute_program): New member function.
2856 (cplus_language_data): Delete la_compute_program initializer.
2857 (cplus_language::compute_program): New member function.
2858 (asm_language_data): Delete la_compute_program initializer.
2859 (minimal_language_data): Likewise.
2860 * c-lang.h (c_compute_program): Update comment.
2861 (cplus_compute_program): Likewise.
2862 * compile/compile-c-support.c (c_compute_program): Likewise.
2863 (cplus_compute_program): Likewise.
2864 * compile/compile.c (compile_to_object): Update call to
2865 la_compute_program.
2866 * d-lang.c (d_language_data): Delete la_compute_program
2867 initializer.
2868 * f-lang.c (f_language_data): Likewise.
2869 * go-lang.c (go_language_data): Likewise.
2870 * language.c (unknown_language_data): Likewise.
2871 (auto_language_data): Likewise.
2872 * language.h (language_data): Delete la_compute_program field.
2873 (language_defn::compute_program): New member function.
2874 * m2-lang.c (m2_language_data): Delete la_compute_program
2875 initializer.
2876 * objc-lang.c (objc_language_data): Likewise.
2877 * opencl-lang.c (opencl_language_data): Likewise.
2878 * p-lang.c (pascal_language_data): Likewise.
2879 * rust-lang.c (rust_language_data): Likewise.
2880
2881 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2882
2883 * ada-lang.c (ada_language_data) Delete
2884 la_class_name_from_physname initializer.
2885 * c-lang.c (c_language_data): Likewise.
2886 (cplus_language_data): Likewise.
2887 (cplus_language::class_name_from_physname): New member function.
2888 (asm_language_data): Delete la_class_name_from_physname
2889 initializer.
2890 (minimal_language_data): Likewise.
2891 * d-lang.c (d_language_data): Likewise.
2892 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2893 method on language_defn class.
2894 (guess_full_die_structure_name): Likewise.
2895 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2896 initializer.
2897 * go-lang.c (go_language_data): Likewise.
2898 * language.c (language_class_name_from_physname): Delete.
2899 (unk_lang_class_name): Delete.
2900 (unknown_language_data): Delete la_class_name_from_physname
2901 initializer.
2902 (auto_language_data): Likewise.
2903 * language.h (language_data): Delete la_class_name_from_physname
2904 field.
2905 (language_defn::class_name_from_physname): New function.
2906 (language_class_name_from_physname): Delete declaration.
2907 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2908 initializer.
2909 * objc-lang.c (objc_language_data): Likewise.
2910 * opencl-lang.c (opencl_language_data): Likewise.
2911 * p-lang.c (pascal_language_data): Likewise.
2912 * rust-lang.c (rust_language_data): Likewise.
2913
2914 2020-06-16 Tom Tromey <tom@tromey.com>
2915
2916 * tui/tui-data.h (STATUS_NAME): New macro.
2917 * tui/tui-layout.c (tui_remove_some_windows)
2918 (initialize_known_windows, tui_register_window)
2919 (tui_layout_split::remove_windows, initialize_layouts)
2920 (tui_new_layout_command): Don't use hard-coded window names.
2921
2922 2020-06-16 Tom Tromey <tom@tromey.com>
2923
2924 PR tui/25348:
2925 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2926 tui_initialize_readline. Only run once. Call rl_initialize.
2927 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2928 tui_initialize_readline.
2929 * tui/tui-io.c (tui_setup_io): Call
2930 tui_ensure_readline_initialized.
2931 * tui/tui-interp.c (tui_interp::init): Update.
2932
2933 2020-06-16 Tom Tromey <tom@tromey.com>
2934
2935 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2936 Also preserve the status window.
2937
2938 2020-06-16 Tom Tromey <tom@tromey.com>
2939
2940 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2941 where m_window==nullptr.
2942
2943 2020-06-15 Tom Tromey <tromey@adacore.com>
2944
2945 * windows-nat.c (windows_nat::handle_output_debug_string):
2946 Update.
2947 (windows_nat::handle_ms_vc_exception): Update.
2948 * target.h (target_read_string): Change API.
2949 * target.c (target_read_string): Change API.
2950 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2951 Update.
2952 * solib-frv.c (frv_current_sos): Update.
2953 * solib-dsbt.c (dsbt_current_sos): Update.
2954 * solib-darwin.c (darwin_current_sos): Update.
2955 * linux-thread-db.c (inferior_has_bug): Update.
2956 * expprint.c (print_subexp_standard): Update.
2957 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2958 (ada_exception_message_1): Update.
2959
2960 2020-06-15 Tom Tromey <tromey@adacore.com>
2961
2962 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2963
2964 2020-06-15 Tom Tromey <tromey@adacore.com>
2965
2966 * valprint.c (read_string): Update comment.
2967 * target.c (MIN): Remove.
2968 (target_read_string): Rewrite.
2969
2970 2020-06-15 Tom Tromey <tromey@adacore.com>
2971
2972 * corefile.c (read_memory_string): Remove.
2973 * ada-valprint.c (ada_value_print_ptr): Update.
2974 * ada-lang.h (ada_tag_name): Change return type.
2975 * ada-lang.c (type_from_tag): Update.
2976 (ada_tag_name_from_tsd): Change return type. Use
2977 target_read_string.
2978 (ada_tag_name): Likewise.
2979 * gdbcore.h (read_memory_string): Don't declare.
2980
2981 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2982
2983 * symtab.c (rbreak_command): Ignore Windows drive colon.
2984
2985 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2986
2987 * NEWS: Mention removed GDBserver host support.
2988
2989 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2990
2991 * features/riscv/rebuild-csr-xml.sh: Updated.
2992
2993 2020-06-11 Tom Tromey <tom@tromey.com>
2994
2995 PR gdb/18318:
2996 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2997
2998 2020-06-09 Jonny Grant <jg@jguk.org>
2999 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3000
3001 * main.c (captured_main_1): Don't print new line after help.
3002 (print_gdb_help): add mailing list and IRC channel information
3003 to --help. Add new lines between items in the footer. Remove
3004 quotes around bug url.
3005
3006 2020-06-11 Keith Seitz <keiths@redhat.com>
3007
3008 PR gdb/21356
3009 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3010 Resolve typedefs for type length calculations.
3011
3012 2020-06-10 Tom de Vries <tdevries@suse.de>
3013
3014 PR ada/24713
3015 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3016 (write_psymbols): Enable .gdb_index for ada.
3017 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3018 ada.
3019
3020 2020-06-10 Tom de Vries <tdevries@suse.de>
3021
3022 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3023 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3024 namei" instead of "const char *name" argument.
3025 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3026 dw2_symtab_iter_init.
3027
3028 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3029
3030 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3031 to use type::field and field::type instead.
3032
3033 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3034
3035 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3036 to use field::type instead.
3037
3038 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3039
3040 * gdbtypes.h (struct field) <type, set_type>: New methods.
3041 Rename `type` field to...
3042 <m_type>: ... this. Change references throughout to use type or
3043 set_type methods.
3044 (FIELD_TYPE): Use field::type. Change call sites that modify
3045 the field's type to use field::set_type instead.
3046
3047 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3048
3049 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3050 to use type::index_type instead.
3051
3052 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3053
3054 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3055 methods.
3056 (TYPE_INDEX_TYPE): Use type::index_type.
3057 * gdbtypes.c (create_array_type_with_stride): Likewise.
3058
3059 2020-06-07 Tom Tromey <tom@tromey.com>
3060
3061 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3062 parameter.
3063 (generic_value_print): Update.
3064
3065 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3066
3067 Revert commit 982a38f60b0.
3068 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3069
3070 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3071
3072 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3073 avoid use after free.
3074
3075 2020-06-05 Tom de Vries <tdevries@suse.de>
3076
3077 * NEWS: Fix typos.
3078
3079 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3080
3081 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3082 the per_bfd object.
3083 (dwarf2_read_debug_names): Likewise.
3084 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3085 object when re-using a per_bfd object with an index.
3086
3087 2020-06-03 Tom de Vries <tdevries@suse.de>
3088
3089 PR symtab/26046
3090 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3091 children for C++.
3092 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3093 DW_TAG_subprogram.
3094
3095 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3096
3097 * ada-lang.c (ada_language_data): Delete skip_trampoline
3098 initializer.
3099 * c-lang.c (c_language_data): Likewise.
3100 (cplus_language_data): Likewise.
3101 (cplus_language::skip_trampoline): New member function.
3102 (asm_language_data): Delete skip_trampoline initializer.
3103 (minimal_language_data): Likewise.
3104 * d-lang.c (d_language_data): Likewise.
3105 * f-lang.c (f_language_data): Likewise.
3106 * go-lang.c (go_language_data): Likewise.
3107 * language.c (unk_lang_trampoline): Delete function.
3108 (skip_language_trampoline): Update.
3109 (unknown_language_data): Delete skip_trampoline initializer.
3110 (auto_language_data): Likewise.
3111 * language.h (language_data): Delete skip_trampoline field.
3112 (language_defn::skip_trampoline): New function.
3113 * m2-lang.c (m2_language_data): Delete skip_trampoline
3114 initializer.
3115 * objc-lang.c (objc_skip_trampoline): Delete function, move
3116 implementation to objc_language::skip_trampoline.
3117 (objc_language_data): Delete skip_trampoline initializer.
3118 (objc_language::skip_trampoline): New member function with
3119 implementation from objc_skip_trampoline.
3120 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3121 initializer.
3122 * p-lang.c (pascal_language_data): Likewise.
3123 * rust-lang.c (rust_language_data): Likewise.
3124
3125 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3126
3127 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3128 (ada_language::demangle): New member function.
3129 * c-lang.c (c_language_data): Delete la_demangle initializer.
3130 (cplus_language_data): Delete la_demangle initializer.
3131 (cplus_language::demangle): New member function.
3132 (asm_language_data): Delete la_demangle initializer.
3133 (minimal_language_data): Delete la_demangle initializer.
3134 * d-lang.c (d_language_data): Delete la_demangle initializer.
3135 (d_language::demangle): New member function.
3136 * f-lang.c (f_language_data): Delete la_demangle initializer.
3137 (f_language::demangle): New member function.
3138 * go-lang.c (go_language_data): Delete la_demangle initializer.
3139 (go_language::demangle): New member function.
3140 * language.c (language_demangle): Update.
3141 (unk_lang_demangle): Delete.
3142 (unknown_language_data): Delete la_demangle initializer.
3143 (unknown_language::demangle): New member function.
3144 (auto_language_data): Delete la_demangle initializer.
3145 (auto_language::demangle): New member function.
3146 * language.h (language_data): Delete la_demangle field.
3147 (language_defn::demangle): New function.
3148 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3149 * objc-lang.c (objc_language_data): Delete la_demangle
3150 initializer.
3151 (objc_language::demangle): New member function.
3152 * opencl-lang.c (opencl_language_data): Delete la_demangle
3153 initializer.
3154 * p-lang.c (pascal_language_data): Likewise.
3155 * rust-lang.c (rust_language_data): Likewise.
3156 (rust_language::demangle): New member function.
3157
3158 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3159
3160 * ada-lang.c (ada_language_data): Delete la_print_type
3161 initializer.
3162 (ada_language::print_type): New member function.
3163 * c-lang.c (c_language_data): Delete la_print_type initializer.
3164 (c_language::print_type): New member function.
3165 (cplus_language_data): Delete la_print_type initializer.
3166 (cplus_language::print_type): New member function.
3167 (asm_language_data): Delete la_print_type initializer.
3168 (asm_language::print_type): New member function.
3169 (minimal_language_data): Delete la_print_type initializer.
3170 (minimal_language::print_type): New member function.
3171 * d-lang.c (d_language_data): Delete la_print_type initializer.
3172 (d_language::print_type): New member function.
3173 * f-lang.c (f_language_data): Delete la_print_type initializer.
3174 (f_language::print_type): New member function.
3175 * go-lang.c (go_language_data): Delete la_print_type initializer.
3176 (go_language::print_type): New member function.
3177 * language.c (unk_lang_print_type): Delete.
3178 (unknown_language_data): Delete la_print_type initializer.
3179 (unknown_language::print_type): New member function.
3180 (auto_language_data): Delete la_print_type initializer.
3181 (auto_language::print_type): New member function.
3182 * language.h (language_data): Delete la_print_type field.
3183 (language_defn::print_type): New function.
3184 (LA_PRINT_TYPE): Update.
3185 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3186 (m2_language::print_type): New member function.
3187 * objc-lang.c (objc_language_data): Delete la_print_type
3188 initializer.
3189 (objc_language::print_type): New member function.
3190 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3191 to opencl_language::print_type.
3192 (opencl_language_data): Delete la_print_type initializer.
3193 (opencl_language::print_type): New member function, implementation
3194 from opencl_print_type.
3195 * p-lang.c (pascal_language_data): Delete la_print_type
3196 initializer.
3197 (pascal_language::print_type): New member function.
3198 * rust-lang.c (rust_print_type): Delete, implementation moved to
3199 rust_language::print_type.
3200 (rust_language_data): Delete la_print_type initializer.
3201 (rust_language::print_type): New member function, implementation
3202 from rust_print_type.
3203
3204 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3205
3206 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3207 implementation moves to...
3208 (ada_language::sniff_from_mangled_name): ...here. Update return
3209 type.
3210 (ada_language_data): Delete la_sniff_from_mangled_name
3211 initializer.
3212 * c-lang.c (c_language_data): Likewise.
3213 (cplus_language_data): Likewise.
3214 (cplus_language::sniff_from_mangled_name): New member function,
3215 implementation taken from gdb_sniff_from_mangled_name.
3216 (asm_language_data): Delete la_sniff_from_mangled_name
3217 initializer.
3218 (minimal_language_data): Likewise.
3219 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3220 implementation moves to cplus_language::sniff_from_mangled_name.
3221 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3222 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3223 moves to...
3224 (d_language::sniff_from_mangled_name): ...here.
3225 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3226 * f-lang.c (f_language_data): Likewise.
3227 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3228 moves to...
3229 (go_language::sniff_from_mangled_name): ...here.
3230 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3231 * language.c (language_sniff_from_mangled_name): Delete.
3232 (unknown_language_data): Delete la_sniff_from_mangled_name
3233 initializer.
3234 (auto_language_data): Likewise.
3235 * language.h (language_data): Delete la_sniff_from_mangled_name
3236 field.
3237 (language_defn::sniff_from_mangled_name): New function.
3238 (language_sniff_from_mangled_name): Delete declaration.
3239 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3240 field.
3241 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3242 implementation moves to...
3243 (objc_language::sniff_from_mangled_name): ...here.
3244 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3245 * opencl-lang.c (opencl_language_data): Likewise.
3246 * p-lang.c (pascal_language_data): Likewise.
3247 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3248 implementation moves to...
3249 (rust_language::sniff_from_mangled_name): ...here.
3250 (rust_language_data): Delete la_sniff_from_mangled_name
3251 initializer.
3252 * symtab.c (symbol_find_demangled_name): Call
3253 sniff_from_mangled_name member function.
3254
3255 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3256
3257 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3258 initializer.
3259 * c-lang.c (c_language_data): Likewise.
3260 (cplus_language_data): Likewise.
3261 (cplus_language::search_name_hash): New member function.
3262 (asm_language_data): Delete la_search_name_hash initializer.
3263 (minimal_language_data): Likewise.
3264 * d-lang.c (d_language_data): Likewise.
3265 * dictionary.c (default_search_name_hash): Rename to...
3266 (language_defn::search_name_hash): ...this.
3267 * f-lang.c (f_language_data): Likewise.
3268 (f_language::search_name_hash): New member function.
3269 * go-lang.c (go_language_data): Delete la_search_name_hash
3270 initializer.
3271 * language.c (unknown_language_data): Likewise.
3272 (auto_language_data): Likewise.
3273 * language.h (struct language_data): Delete la_search_name_hash
3274 field.
3275 (language_defn::search_name_hash): Declare new member function.
3276 (default_search_name_hash): Delete declaration.
3277 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3278 initializer.
3279 * objc-lang.c (objc_language_data): Likewise.
3280 * opencl-lang.c (opencl_language_data): Likewise.
3281 * p-lang.c (pascal_language_data): Likewise.
3282 * rust-lang.c (rust_language_data): Likewise.
3283 * symtab.c (search_name_hash): Update call.
3284
3285 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3286
3287 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3288 initializer.
3289 * c-lang.c (class compile_instance): Declare.
3290 (c_language_data): Delete la_get_compile_instance initializer.
3291 (c_language::get_compile_instance): New member function.
3292 (cplus_language_data): Delete la_get_compile_instance initializer.
3293 (cplus_language::get_compile_instance): New member function.
3294 (asm_language_data): Delete la_get_compile_instance initializer.
3295 (minimal_language_data): Likewise.
3296 * c-lang.h (c_get_compile_context): Update comment.
3297 (cplus_get_compile_context): Update comment.
3298 * compile/compile.c (compile_to_object): Update calls, don't rely
3299 on function pointer being NULL.
3300 * d-lang.c (d_language_data): Delete la_get_compile_instance
3301 initializer.
3302 * f-lang.c (f_language_data): Likewise.
3303 * go-lang.c (go_language_data): Likewise.
3304 * language.c (unknown_language_data): Likewise.
3305 (auto_language_data): Likewise.
3306 * language.h (language_data): Delete la_get_compile_instance field.
3307 (language_defn::get_compile_instance): New member function.
3308 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3309 initializer.
3310 * objc-lang.c (objc_language_data): Likewise.
3311 * opencl-lang.c (opencl_language_data): Likewise.
3312 * p-lang.c (pascal_language_data): Likewise.
3313 * rust-lang.c (rust_language_data): Likewise.
3314
3315 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3316
3317 * ada-lang.c (ada_add_all_symbols): Update comment.
3318 (ada_iterate_over_symbols): Delete, move implementation to...
3319 (ada_language::iterate_over_symbols): ...here, a new member
3320 function, rewrite to use range based for loop.
3321 (ada_language_data): Delete la_iterate_over_symbols initializer.
3322 * c-lang.c (c_language_data): Likewise.
3323 (cplus_language_data): Likewise.
3324 (asm_language_data): Likewise.
3325 (minimal_language_data): Likewise.
3326 * d-lang.c (d_language_data): Likewise.
3327 * f-lang.c (f_language_data): Likewise.
3328 * go-lang.c (go_language_data): Likewise.
3329 * language.c (unknown_language_data): Likewise.
3330 (auto_language_data): Likewise.
3331 * language.h (language_data): Delete la_iterate_over_symbols field.
3332 (language_defn::iterate_over_symbols): New member function.
3333 (LA_ITERATE_OVER_SYMBOLS): Update.
3334 * linespec.c (iterate_over_all_matching_symtabs): Update.
3335 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3336 initializer.
3337 * objc-lang.c (objc_language_data): Likewise.
3338 * opencl-lang.c (opencl_language_data): Likewise.
3339 * p-lang.c (pascal_language_data): Likewise.
3340 * rust-lang.c (rust_language_data): Likewise.
3341
3342 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3343
3344 * ada-lang.c (ada_language_data): Delete
3345 la_lookup_transparent_type initializer.
3346 * c-lang.c (c_language_data): Likewise.
3347 (cplus_language_data): Likewise.
3348 (cplus_language::lookup_transparent_type): New member function.
3349 (asm_language_data): Delete la_lookup_transparent_type
3350 initializer.
3351 (minimal_language_data): Likewise.
3352 * d-lang.c (d_language_data): Likewise.
3353 * f-lang.c (f_language_data): Likewise.
3354 * go-lang.c (go_language_data): Likewise.
3355 * language.c (unknown_language_data): Likewise.
3356 (auto_language_data): Likewise.
3357 * language.h (struct language_data): Delete
3358 la_lookup_transparent_type field.
3359 (language_defn::lookup_transparent_type): New member function.
3360 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3361 initializer.
3362 * objc-lang.c (objc_language_data): Likewise.
3363 * opencl-lang.c (opencl_language_data): Likewise.
3364 * p-lang.c (pascal_language_data): Likewise.
3365 * rust-lang.c (rust_language_data): Likewise.
3366 * symtab.c (symbol_matches_domain): Update call.
3367
3368 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3369
3370 * ada-lang.c (ada_language_arch_info): Delete function, move
3371 implementation to...
3372 (ada_language::language_arch_info): ...here, a new member
3373 function.
3374 (ada_language_data): Delete la_language_arch_info.
3375 * c-lang.c (c_language_data): Likewise.
3376 (c_language::language_arch_info): New member function.
3377 (cplus_language_arch_info): Delete function, move
3378 implementation to...
3379 (cplus_language::language_arch_info): ...here, a new member
3380 function.
3381 (cplus_language_data): Delete la_language_arch_info.
3382 (asm_language_data): Likewise.
3383 (asm_language::language_arch_info): New member function.
3384 (minimal_language_data): Delete la_language_arch_info.
3385 (minimal_language::language_arch_info): New member function.
3386 * d-lang.c (d_language_arch_info): Delete function, move
3387 implementation to...
3388 (d_language::language_arch_info): ...here, a new member
3389 function.
3390 (d_language_data): Delete la_language_arch_info.
3391 * f-lang.c (f_language_arch_info): Delete function, move
3392 implementation to...
3393 (f_language::language_arch_info): ...here, a new member
3394 function.
3395 (f_language_data): Delete la_language_arch_info.
3396 * go-lang.c (go_language_arch_info): Delete function, move
3397 implementation to...
3398 (go_language::language_arch_info): ...here, a new member
3399 function.
3400 (go_language_data): Delete la_language_arch_info.
3401 * language.c (unknown_language_data): Likewise.
3402 (unknown_language::language_arch_info): New member function.
3403 (auto_language_data): Delete la_language_arch_info.
3404 (auto_language::language_arch_info): New member function.
3405 (language_gdbarch_post_init): Update call to
3406 la_language_arch_info.
3407 * language.h (language_data): Delete la_language_arch_info
3408 function pointer.
3409 (language_defn::language_arch_info): New function.
3410 * m2-lang.c (m2_language_arch_info): Delete function, move
3411 implementation to...
3412 (m2_language::language_arch_info): ...here, a new member
3413 function.
3414 (m2_language_data): Delete la_language_arch_info.
3415 * objc-lang.c (objc_language_arch_info): Delete function, move
3416 implementation to...
3417 (objc_language::language_arch_info): ...here, a new member
3418 function.
3419 (objc_language_data): Delete la_language_arch_info.
3420 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3421 implementation to...
3422 (opencl_language::language_arch_info): ...here, a new member
3423 function.
3424 (opencl_language_data): Delete la_language_arch_info.
3425 * p-lang.c (pascal_language_arch_info): Delete function, move
3426 implementation to...
3427 (pascal_language::language_arch_info): ...here, a new member
3428 function.
3429 (pascal_language_data): Delete la_language_arch_info.
3430 * rust-lang.c (rust_language_arch_info): Delete function, move
3431 implementation to...
3432 (rust_language::language_arch_info): ...here, a new member
3433 function.
3434 (rust_language_data): Delete la_language_arch_info.
3435
3436 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3437
3438 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3439 initializer.
3440 * c-lang.c (c_language_data): Likewise.
3441 (cplus_language_data): Likewise.
3442 (cplus_language::pass_by_reference_info): New method.
3443 (asm_language_data): Delete la_pass_by_reference initializer.
3444 (minimal_language_data): Likewise.
3445 * cp-abi.c (cp_pass_by_reference): Remove use of
3446 default_pass_by_reference.
3447 * d-lang.c (d_language_data): Likewise.
3448 * f-lang.c (f_language_data): Likewise.
3449 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3450 default_pass_by_reference.
3451 * go-lang.c (go_language_data): Likewise.
3452 * language.c (language_pass_by_reference): Update.
3453 (default_pass_by_reference): Delete.
3454 (unknown_language_data): Delete la_pass_by_reference
3455 initializer.
3456 (auto_language_data): Likewise.
3457 * language.h (struct language_data): Delete la_pass_by_reference
3458 field.
3459 (language_defn::pass_by_reference_info): New member function.
3460 (default_pass_by_reference): Delete declaration.
3461 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3462 initializer.
3463 * objc-lang.c (objc_language_data): Likewise.
3464 * opencl-lang.c (opencl_language_data): Likewise.
3465 * p-lang.c (pascal_language_data): Likewise.
3466 * rust-lang.c (rust_language_data): Likewise.
3467
3468 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3469
3470 * ada-lang.c (ada_read_var_value): Delete function, move
3471 implementation to...
3472 (ada_language::read_var_value): ...here.
3473 (ada_language_data): Delete la_read_var_value initializer.
3474 * c-lang.c (c_language_data): Likewise.
3475 (cplus_language_data): Likewise.
3476 (minimal_language_data): Likewise.
3477 * d-lang.c (d_language_data): Likewise.
3478 * f-lang.c (f_language_data): Likewise.
3479 * findvar.c (default_read_var_value): Rename to...
3480 (language_defn::read_var_value): ...this.
3481 * findvar.c (read_var_value): Update header comment, and change to
3482 call member function instead of function pointer.
3483 * go-lang.c (go_language_data): Likewise.
3484 * language.c (unknown_language_data): Delete la_read_var_value
3485 initializer.
3486 (auto_language_data): Likewise.
3487 * language.h (struct language_data): Delete la_read_var_value
3488 field.
3489 (language_defn::read_var_value): New member function.
3490 (default_read_var_value): Delete declaration.
3491 * m2-lang.c (m2_language_data): Delete la_read_var_value
3492 initializer.
3493 * objc-lang.c (objc_language_data): Likewise.
3494 * opencl-lang.c (opencl_language_data): Likewise.
3495 * p-lang.c (pascal_language_data): Likewise.
3496 * rust-lang.c (rust_language_data): Likewise.
3497 * value.h (default_read_var_value): Delete declaration.
3498
3499 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3500
3501 * ada-lang.c (ada_print_array_index): Delete function, move
3502 implementation to...
3503 (ada_language::print_array_index): ...here.
3504 (ada_language_data): Delete la_print_array_index initializer.
3505 * c-lang.c (c_language_data): Likewise.
3506 (cplus_language_data): Likewise.
3507 (minimal_language_data): Likewise.
3508 * d-lang.c (d_language_data): Likewise.
3509 * f-lang.c (f_language_data): Likewise.
3510 * go-lang.c (go_language_data): Likewise.
3511 * language.c (default_print_array_index): Delete function, move
3512 implementation to...
3513 (language_defn::print_array_index): ...here.
3514 (unknown_language_data): Delete la_print_array_index initializer.
3515 (auto_language_data): Likewise.
3516 * language.h (struct language_data): Delete la_print_array_index
3517 field.
3518 (language_defn::print_array_index): New member function.
3519 (LA_PRINT_ARRAY_INDEX): Update.
3520 (default_print_array_index): Delete declaration.
3521 * m2-lang.c (m2_language_data): Delete la_print_array_index
3522 initializer.
3523 * objc-lang.c (objc_language_data): Likewise.
3524 * opencl-lang.c (opencl_language_data): Likewise.
3525 * p-lang.c (pascal_language_data): Likewise.
3526 * rust-lang.c (rust_language_data): Likewise.
3527
3528 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3529
3530 * gdb/ada-lang.c (ada_language_defn): Convert to...
3531 (ada_language_data): ...this.
3532 (class ada_language): New class.
3533 (ada_language_defn): New static global.
3534 * gdb/c-lang.c (c_language_defn): Convert to...
3535 (c_language_data): ...this.
3536 (class c_language): New class.
3537 (c_language_defn): New static global.
3538 (cplus_language_defn): Convert to...
3539 (cplus_language_data): ...this.
3540 (class cplus_language): New class.
3541 (cplus_language_defn): New static global.
3542 (asm_language_defn): Convert to...
3543 (asm_language_data): ...this.
3544 (class asm_language): New class.
3545 (asm_language_defn): New static global.
3546 (minimal_language_defn): Convert to...
3547 (minimal_language_data): ...this.
3548 (class minimal_language): New class.
3549 (minimal_language_defn): New static global.
3550 * gdb/d-lang.c (d_language_defn): Convert to...
3551 (d_language_data): ...this.
3552 (class d_language): New class.
3553 (d_language_defn): New static global.
3554 * gdb/f-lang.c (f_language_defn): Convert to...
3555 (f_language_data): ...this.
3556 (class f_language): New class.
3557 (f_language_defn): New static global.
3558 * gdb/go-lang.c (go_language_defn): Convert to...
3559 (go_language_data): ...this.
3560 (class go_language): New class.
3561 (go_language_defn): New static global.
3562 * gdb/language.c (unknown_language_defn): Remove declaration.
3563 (current_language): Initialize to nullptr, real initialization is
3564 moved to _initialize_language.
3565 (languages): Delete global.
3566 (language_defn::languages): Define.
3567 (set_language_command): Use language_defn::languages.
3568 (set_language): Likewise.
3569 (range_error): Likewise.
3570 (language_enum): Likewise.
3571 (language_def): Likewise.
3572 (add_set_language_command): Use language_def::languages for the
3573 language list, and language_def to lookup language pointers.
3574 (skip_language_trampoline): Use language_defn::languages.
3575 (unknown_language_defn): Convert to...
3576 (unknown_language_data): ...this.
3577 (class unknown_language): New class.
3578 (unknown_language_defn): New static global.
3579 (auto_language_defn): Convert to...
3580 (auto_language_data): ...this.
3581 (class auto_language): New class.
3582 (auto_language_defn): New static global.
3583 (language_gdbarch_post_init): Use language_defn::languages.
3584 (_initialize_language): Initialize current_language.
3585 * gdb/language.h (struct language_defn): Rename to...
3586 (struct language_data): ...this.
3587 (struct language_defn): New.
3588 (auto_language_defn): Delete.
3589 (unknown_language_defn): Delete.
3590 (minimal_language_defn): Delete.
3591 (ada_language_defn): Delete.
3592 (asm_language_defn): Delete.
3593 (c_language_defn): Delete.
3594 (cplus_language_defn): Delete.
3595 (d_language_defn): Delete.
3596 (f_language_defn): Delete.
3597 (go_language_defn): Delete.
3598 (m2_language_defn): Delete.
3599 (objc_language_defn): Delete.
3600 (opencl_language_defn): Delete.
3601 (pascal_language_defn): Delete.
3602 (rust_language_defn): Delete.
3603 * gdb/m2-lang.c (m2_language_defn): Convert to...
3604 (m2_language_data): ...this.
3605 (class m2_language): New class.
3606 (m2_language_defn): New static global.
3607 * gdb/objc-lang.c (objc_language_defn): Convert to...
3608 (objc_language_data): ...this.
3609 (class objc_language): New class.
3610 (objc_language_defn): New static global.
3611 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3612 (opencl_language_data): ...this.
3613 (class opencl_language): New class.
3614 (opencl_language_defn): New static global.
3615 * gdb/p-lang.c (pascal_language_defn): Convert to...
3616 (pascal_language_data): ...this.
3617 (class pascal_language): New class.
3618 (pascal_language_defn): New static global.
3619 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3620 language pointer, update comment format.
3621 * gdb/rust-lang.c (rust_language_defn): Convert to...
3622 (rust_language_data): ...this.
3623 (class rust_language): New class.
3624 (rust_language_defn): New static global.
3625
3626 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3627
3628 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3629 member variable.
3630 <m_stmt_at_address>: New member variable.
3631 (lnp_state_machine::record_line): Don't record some lines, update
3632 tracking of is_stmt at the same address.
3633 (lnp_state_machine::lnp_state_machine): Initialise new member
3634 variables.
3635
3636 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3637
3638 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3639 "-include gnu-nat-mig.h".
3640 * gnu-nat-mig.h: New file.
3641 * gnu-nat.c: Include "gnu-nat-mig.h".
3642 (exc_server, msg_reply_server, notify_server,
3643 process_reply_server): Remove declarations.
3644
3645 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3646
3647 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3648 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3649 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3650 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3651 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3652 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3653 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3654 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3655 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3656 to gnu_nat_target class.
3657 * gnu-nat.c: Likewise.
3658 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3659 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3660 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3661 object.
3662 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3663 instead of `gnu_target'.
3664
3665 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3666
3667 * i386-gnu-tdep.c: Include "gdbcore.h"
3668 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3669 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3670 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3671 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3672 i386_gnu_sigcontext_addr): New functions
3673 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3674 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3675 tdep.
3676
3677 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3678
3679 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3680 before fork_inferior call. Avoid calling it if target_is_pushed returns
3681 true.
3682
3683 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3684
3685 * gnu-nat.h (gnu_target): New variable declaration.
3686 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3687 gnu_target.
3688 * gnu-nat.c (gnu_target): New variable.
3689 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3690 add_thread_silent, and add_thread calls.
3691 (gnu_nat_target::create_inferior): Pass gnu_target to
3692 add_thread_silent, thread_change_ptid call.
3693 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3694 call.
3695
3696 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3697
3698 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3699 (gnu_nat_target::find_memory_regions): Remove unused
3700 `old_address' variable.
3701
3702 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3703
3704 * gnu-nat.c: Include "gdbarch.h".
3705
3706 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3707
3708 * reply_mig_hack.awk (Error return): Cast function through
3709 void *, to bypass compiler function call check.
3710
3711 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3712
3713 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3714 $(srcdir)/reply_mig_hack.awk.
3715
3716 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3717
3718 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3719
3720 2020-05-30 Jonny Grant <jg@jguk.org>
3721
3722 * configure.ac (ACX_BUGURL): change bug URL to https.
3723
3724 2020-05-30 Pedro Alves <palves@redhat.com>
3725
3726 * cp-support.c (replace_typedefs_template): New.
3727 (replace_typedefs_qualified_name): Handle
3728 DEMANGLE_COMPONENT_TEMPLATE.
3729
3730 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3731
3732 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3733 dwarf2/index-cache.h, dwarf2/index-write.c,
3734 dwarf2/index-write.h, dwarf2/line-header.c,
3735 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3736 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3737 variables and fields from `dwarf2_per_objfile` to just
3738 `per_objfile` throughout.
3739
3740 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3741
3742 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3743 <push_dwarf_reg_entry_value>: Add comment.
3744
3745 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3746 Keith Seitz <keiths@redhat.com>
3747
3748 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3749 instead of PyEval_ReleaseLock.
3750 (class gdbpy_gil): Move to earlier in file.
3751 (finalize_python): Set gdb_python_initialized.
3752 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3753 when not initialized.
3754
3755 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3756
3757 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3758 <push_dwarf_reg_entry_value>: Remove assert. Override
3759 per_objfile with caller_per_objfile.
3760
3761 2020-05-28 Tom de Vries <tdevries@suse.de>
3762
3763 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3764 PR gold/15646 workaround to symbol kind "type".
3765
3766 2020-05-27 Tom Tromey <tromey@adacore.com>
3767
3768 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3769
3770 2020-05-27 Tom Tromey <tromey@adacore.com>
3771
3772 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3773 Use htab_find_with_hash.
3774 <add_abbrev>: Remove "abbrev_number" parameter.
3775 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3776 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3777 (hash_abbrev): Add comment.
3778 (abbrev_table::lookup_abbrev): Move to header file.
3779 (abbrev_table::read): Update.
3780
3781 2020-05-27 Tom Tromey <tromey@adacore.com>
3782
3783 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3784 method.
3785 <canonical_name>: New member.
3786 <raw_name>: Rename from "name".
3787 (partial_die_info): Initialize canonical_name.
3788 (scan_partial_symbols): Check raw_name.
3789 (partial_die_parent_scope, partial_die_full_name)
3790 (add_partial_symbol, add_partial_subprogram)
3791 (add_partial_enumeration, load_partial_dies): Use "name" method.
3792 (partial_die_info::name): New method.
3793 (partial_die_info::read, guess_partial_die_structure_name)
3794 (partial_die_info::fixup): Update.
3795
3796 2020-05-27 Tom Tromey <tromey@adacore.com>
3797
3798 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3799 <get_ref_die_offset>: Inline.
3800 <get_ref_die_offset_complaint>: New method.
3801 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3802 (attribute::get_ref_die_offset_complaint): Rename from
3803 get_ref_die_offset. Just issue complaint.
3804
3805 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3806
3807 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3808
3809 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3810
3811 * exec.c (exec_file_attach): Use errno value of first openp failure.
3812
3813 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3814
3815 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3816 Don't close thread handle.
3817
3818 2020-05-27 Tom Tromey <tom@tromey.com>
3819 Simon Marchi <simon.marchi@efficios.com>
3820
3821 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3822 shared_ptr.
3823 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3824 member.
3825 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3826 dwarf2_per_bfd_objfile_data_key>: New globals.
3827 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3828 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3829 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3830 shared.
3831 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3832 short-circuit when sharing.
3833 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3834 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3835
3836 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3837
3838 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3839 to...
3840 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3841 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3842
3843 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3844
3845 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3846 build_name_components, find_name_components_bounds>:
3847 Add per_objfile parameter.
3848 (struct mapped_index) <symbol_name_at>: Likewise.
3849 (struct mapped_debug_names): Remove constructor.
3850 <dwarf2_per_objfile>: Remove field.
3851 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3852 (mapped_index_base::find_name_components_bounds,
3853 mapped_index_base::build_name_components,
3854 dw2_expand_symtabs_matching_symbol): Likewise.
3855 (class mock_mapped_index) <symbol_name_at>: Likewise.
3856 (check_match): Likewise.
3857 (check_find_bounds_finds): Likewise.
3858 (test_mapped_index_find_name_component_bounds): Update.
3859 (CHECK_MATCH): Update.
3860 (dw2_expand_symtabs_matching): Update.
3861 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3862 per_objfile parameter.
3863 <find_vec_in_debug_names>: Likewise.
3864 <m_per_objfile>: New field.
3865 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3866 parameter.
3867 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3868 (dw2_debug_names_iterator::next): Update.
3869 (dw2_debug_names_lookup_symbol): Update.
3870 (dw2_debug_names_expand_symtabs_for_function): Update.
3871 (dw2_debug_names_map_matching_symbols): Update.
3872 (dw2_debug_names_expand_symtabs_matching): Update.
3873 (dwarf2_read_debug_names): Update.
3874
3875 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3876
3877 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3878 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3879 move to dwarf2_per_objfile.
3880 <read_in_chain>: Remove.
3881 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3882 remove_all_cus, age_comp_units>: New methods.
3883 <m_dwarf2_cus>: New member.
3884 (struct dwarf2_per_cu_data) <cu>: Remove.
3885 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3886 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3887 moved to methods of dwarf2_per_objfile.
3888 (dwarf2_clear_marks): Remove.
3889 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3890 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3891 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3892 (dwarf2_per_objfile::remove_all_cus): New.
3893 (class free_cached_comp_units) <~free_cached_comp_units>:
3894 Update.
3895 (load_cu): Update.
3896 (dw2_do_instantiate_symtab): Adjust.
3897 (fill_in_sig_entry_from_dwo_entry): Adjust.
3898 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3899 (cutu_reader::cutu_reader): Likewise.
3900 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3901 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3902 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3903 and dwarf2_per_objfile::age_comp_units.
3904 (load_partial_comp_unit): Update.
3905 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3906 (process_queue): Likewise.
3907 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3908 backlink.
3909 (dwarf2_read_addr_index): Likewise.
3910 (follow_die_offset): Likewise.
3911 (dwarf2_fetch_die_loc_sect_off): Likewise.
3912 (dwarf2_fetch_constant_bytes): Likewise.
3913 (dwarf2_fetch_die_type_sect_off): Likewise.
3914 (follow_die_sig_1): Likewise.
3915 (load_full_type_unit): Likewise.
3916 (read_signatured_type): Likewise.
3917 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3918 (dwarf2_cu::~dwarf2_cu): Remove.
3919 (dwarf2_per_objfile::get_cu): New.
3920 (dwarf2_per_objfile::set_cu): New.
3921 (age_cached_comp_units): Rename to...
3922 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3923 to std::unordered_map.
3924 (free_one_cached_comp_unit): Rename to...
3925 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3926 to std::unordered_map.
3927 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3928 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3929 a dwarf2_per_objfile in data.
3930 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3931 (dwarf2_clear_marks): Remove.
3932
3933 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3934
3935 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3936 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3937 (init_tu_and_read_dwo_dies): Likewise.
3938 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3939 (cutu_reader::cutu_reader): Likewise.
3940 (load_partial_comp_unit): Likewise.
3941 (process_psymtab_comp_unit): Update.
3942 (build_type_psymtabs_1): Update.
3943 (process_skeletonless_type_unit): Update.
3944 (load_full_comp_unit): Update.
3945 (find_partial_die): Update.
3946 (dwarf2_read_addr_index): Update.
3947 (read_signatured_type): Update.
3948
3949 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3950
3951 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3952 m_header_read_in>: New fields.
3953 <get_header>: New method.
3954 * dwarf2/read.c (per_cu_header_read_in): Remove.
3955 (dwarf2_per_cu_data::get_header): New.
3956 (dwarf2_per_cu_data::addr_size): Update.
3957 (dwarf2_per_cu_data::offset_size): Update.
3958 (dwarf2_per_cu_data::ref_addr_size): Update.
3959
3960 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3961
3962 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3963 (dw2_do_instantiate_symtab): Update.
3964 (queue_and_load_all_dwo_tus): Change parameter from
3965 dwarf2_per_cu_data to dwarf2_cu.
3966 (dwarf2_fetch_die_loc_sect_off): Update.
3967 (dwarf2_fetch_constant_bytes): Update.
3968 (dwarf2_fetch_die_type_sect_off): Update.
3969
3970 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3971
3972 * dwarf2/read.c (process_full_comp_unit,
3973 process_full_type_unit): Remove per_cu, per_objfile paramters.
3974 Add dwarf2_cu parameter.
3975 (process_queue): Update.
3976
3977 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3978
3979 * dwarf2/read.c (create_cu_from_index_list): Replace
3980 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3981 (create_cus_from_index_list): Likewise.
3982 (create_cus_from_index): Likewise.
3983 (create_signatured_type_table_from_index): Likewise.
3984 (create_cus_from_debug_names_list): Likewise.
3985 (create_cus_from_debug_names): Likewise.
3986 (dwarf2_read_gdb_index): Update.
3987 (dwarf2_read_debug_names): Update.
3988
3989 2020-05-27 Tom Tromey <tom@tromey.com>
3990 Simon Marchi <simon.marchi@efficios.com>
3991
3992 * dwarf2/read.h (struct dwarf2_per_objfile)
3993 <get_type_for_signatured_type, set_type_for_signatured_type>:
3994 New methods.
3995 <m_type_map>: New member.
3996 (struct signatured_type) <type>: Remove.
3997 * dwarf2/read.c
3998 (dwarf2_per_objfile::get_type_for_signatured_type,
3999 dwarf2_per_objfile::set_type_for_signatured_type): New.
4000 (get_signatured_type): Use new methods.
4001
4002 2020-05-27 Tom Tromey <tom@tromey.com>
4003 Simon Marchi <simon.marchi@efficios.com>
4004
4005 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4006 (struct dwarf2_per_objfile) <type_units>: New member.
4007 <get_type_unit_group_unshareable>: New method.
4008 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4009 num_symtabs, symtabs>: Remove; move to
4010 type_unit_group_unshareable.
4011 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4012 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4013 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4014
4015 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4016
4017 * dwarf2/read.h (struct dwarf2_per_cu_data):
4018 <dwarf2_per_objfile>: Remove.
4019 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4020 dwarf2_per_objfile.
4021 (create_signatured_type_table_from_index): Likewise.
4022 (create_signatured_type_table_from_debug_names): Likewise.
4023 (create_debug_type_hash_table): Likewise.
4024 (fill_in_sig_entry_from_dwo_entry): Likewise.
4025 (create_type_unit_group): Likewise.
4026 (read_comp_units_from_section): Likewise.
4027 (create_cus_hash_table): Likewise.
4028
4029 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4030
4031 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4032 dwarf2_per_cu_data::dwarf2_per_objfile.
4033 (compute_compunit_symtab_includes): Likewise.
4034 (dwarf2_cu::start_symtab): Likewise.
4035
4036 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4037
4038 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4039 parameter.
4040 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4041 (read_namespace_alias): Update.
4042 (lookup_die_type): Update.
4043 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4044 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4045 Update.
4046 (disassemble_dwarf_expression): Update.
4047
4048 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4049
4050 * dwarf2/read.h (struct dwarf2_queue_item): Add
4051 dwarf2_per_objfile parameter, assign new parameter.
4052 <per_objfile>: New field.
4053 * dwarf2/read.c (free_one_cached_comp_unit): Add
4054 dwarf2_per_objfile parameter.
4055 (queue_comp_unit): Likewise.
4056 (dw2_do_instantiate_symtab): Update.
4057 (process_psymtab_comp_unit): Update.
4058 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4059 (process_imported_unit_die): Update.
4060 (queue_and_load_dwo_tu): Update.
4061 (follow_die_offset): Update.
4062 (follow_die_sig_1): Update.
4063
4064 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4065
4066 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4067 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4068 (read_call_site_scope): Assign per_objfile.
4069 (dwarf2_per_cu_data::objfile): Remove.
4070 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4071 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4072 dwarf2_per_objfile parameter.
4073 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4074 dwarf2_per_objfile parameter.
4075 (dwarf_expr_reg_to_entry_parameter): Add output
4076 dwarf2_per_objfile parameter.
4077 (locexpr_get_frame_base): Update.
4078 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4079 <push_dwarf_reg_entry_value>: Update.
4080 <call_site_to_target_addr>: Update.
4081 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4082 parameter.
4083 (value_of_dwarf_reg_entry): Update.
4084 (rw_pieced_value): Update.
4085 (indirect_synthetic_pointer): Update.
4086 (dwarf2_evaluate_property): Update.
4087 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4088 parameter.
4089 (locexpr_read_variable): Update.
4090 (locexpr_get_symbol_read_needs): Update.
4091 (loclist_read_variable): Update.
4092
4093 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4094
4095 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4096 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4097 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4098 parameter.
4099 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4100 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4101 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4102 parameter.
4103 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4104 sect_variable_value): Add dwarf2_per_objfile parameter.
4105 (class dwarf_evaluate_loc_desc) <dwarf_call,
4106 dwarf_variable_value>: Update.
4107 (fetch_const_value_from_synthetic_pointer): Add
4108 dwarf2_per_objfile parameter.
4109 (fetch_const_value_from_synthetic_pointer): Update.
4110 (coerced_pieced_ref): Update.
4111 (class symbol_needs_eval_context) <dwarf_call,
4112 dwarf_variable_value>: Update.
4113 (dwarf2_compile_expr_to_ax): Update.
4114
4115 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4116
4117 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4118 parameter.
4119 (dwarf2_evaluate_loc_desc_full): Update.
4120
4121 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4122
4123 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4124 parameter.
4125 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4126 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4127 dwarf2_per_objfile parameter.
4128 (decode_debug_loc_dwo_addresses): Likewise.
4129 (dwarf2_find_location_expression): Update.
4130 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4131 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4132 parameter.
4133 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4134 parameter.
4135 (locexpr_describe_location_1): Likewise.
4136 (locexpr_describe_location): Update.
4137
4138 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4139
4140 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4141 Remove.
4142 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4143 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4144 (dwarf2_compile_property_to_c): Update.
4145 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4146 use text offset from objfile.
4147 (locexpr_tracepoint_var_ref): Update.
4148 (locexpr_generate_c_location): Update.
4149 (loclist_describe_location): Update.
4150 (loclist_tracepoint_var_ref): Update.
4151 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4152 dwarf2_per_objfile parameter.
4153 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4154 use text offset from objfile.
4155 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4156
4157 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4158
4159 * dwarf2/expr.h (struct dwarf_expr_context)
4160 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4161 <offset>: Remove.
4162 <per_objfile>: New member.
4163 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4164 dwarf2_per_objfile parameter. Don't set offset, set
4165 per_objfile.
4166 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4167 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4168 a dwarf2_per_objfile object instead of an offset.
4169 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4170 constructor.
4171 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4172 to dwarf2_expr_executor constructor. Don't set offset.
4173 (dwarf2_fetch_cfa_info): Update.
4174 (struct dwarf2_frame_cache) <text_offset>: Remove.
4175 <per_objfile>: New field.
4176 (dwarf2_frame_cache): Update.
4177 (dwarf2_frame_prev_register): Update.
4178 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4179 <dwarf_evaluate_loc_desc>: Add constructor.
4180 (dwarf2_evaluate_loc_desc_full): Update.
4181 (dwarf2_locexpr_baton_eval): Update.
4182 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4183 Add constructor.
4184 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4185
4186 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4187
4188 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4189 addr_sized_int_type>: Move to dwarf2_cu.
4190 <int_type>: Move to dwarf2_per_objfile.
4191 (struct dwarf2_per_objfile) <int_type>: Move here.
4192 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4193 addr_sized_int_type>: Move here.
4194 (read_func_scope): Update.
4195 (read_array_type): Update.
4196 (read_tag_string_type): Update.
4197 (attr_to_dynamic_prop): Update.
4198 (dwarf2_per_cu_data::int_type): Rename to...
4199 (dwarf2_per_objfile::int_type): ... this.
4200 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4201 (dwarf2_cu::addr_sized_int_type): ... this.
4202 (read_subrange_type): Update.
4203 (dwarf2_per_cu_data::addr_type): Rename to...
4204 (dwarf2_cu::addr_type): ... this.
4205 (set_die_type): Update.
4206
4207 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4208
4209 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4210 data through per_cu->cu.
4211
4212 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4213
4214 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4215 dwarf2_per_cu_data parameter fo dwarf2_cu.
4216 (lookup_dwo_type_unit): Likewise.
4217 (read_cutu_die_from_dwo): Likewise.
4218 (lookup_dwo_unit): Likewise.
4219 (open_and_init_dwo_file): Likewise.
4220 (lookup_dwo_cutu): Likewise.
4221 (lookup_dwo_comp_unit): Likewise.
4222 (lookup_dwo_type_unit): Likewise.
4223 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4224 (cutu_reader::cutu_reader): Update.
4225
4226 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4227
4228 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4229 parameter.
4230 (process_full_type_unit): Likewise.
4231 (process_queue): Update.
4232
4233 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4234
4235 * dwarf2/read.c (recursively_compute_inclusions): Add
4236 dwarf2_per_objfile parameter.
4237 (compute_compunit_symtab_includes): Likewise.
4238 (process_cu_includes): Update.
4239
4240 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4241
4242 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4243 parameter.
4244 (create_type_unit_group): Update.
4245 (process_psymtab_comp_unit_reader): Update.
4246 (build_type_psymtabs_reader): Update.
4247
4248 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4249
4250 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4251 object through m_this_cu->cu.
4252
4253 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4254
4255 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4256 the info parameter.
4257 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4258
4259 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4260
4261 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4262 per_objfile parameter.
4263 (load_full_type_unit): Add per_objfile parameter.
4264 (read_signatured_type): Likewise.
4265 (load_full_comp_unit): Likewise.
4266 (load_cu): Likewise.
4267 (dw2_do_instantiate_symtab): Likewise.
4268 (dw2_get_file_names): Likewise.
4269 (dw2_map_symtabs_matching_filename): Update.
4270 (dw_expand_symtabs_matching_file_matcher): Update.
4271 (dw2_map_symbol_filenames): Update.
4272 (process_psymtab_comp_unit): Add per_objfile parameter.
4273 (build_type_psymtabs_1): Update.
4274 (process_skeletonless_type_unit): Update.
4275 (dwarf2_build_psymtabs_hard): Update.
4276 (load_partial_comp_unit): Add per_objfile parameter.
4277 (scan_partial_symbols): Update.
4278 (load_full_comp_unit): Add per_objfile parameter.
4279 (process_imported_unit_die): Update.
4280 (create_cus_hash_table): Update.
4281 (find_partial_die): Update.
4282 (dwarf2_read_addr_index): Update.
4283 (follow_die_offset): Update.
4284 (dwarf2_fetch_die_loc_sect_off): Update.
4285 (dwarf2_fetch_constant_bytes): Update.
4286 (dwarf2_fetch_die_type_sect_off): Update.
4287 (follow_die_sig_1): Update.
4288 (load_full_type_unit): Add per_objfile parameter.
4289 (read_signatured_type): Likewise.
4290
4291 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4292
4293 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4294 of objfile_name.
4295
4296 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4297
4298 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4299 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4300 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4301 field.
4302 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4303 (create_cus_from_index): Update.
4304 (dwarf2_read_gdb_index): Update.
4305 (create_cus_from_debug_names): Update.
4306 (dwarf2_read_debug_names): Update.
4307 (get_abbrev_section_for_cu): Update.
4308 (create_all_comp_units): Update.
4309 (read_attribute_value): Update.
4310 (get_debug_line_section): Update.
4311 * dwarf2/index-cache.c (index_cache::store): Update.
4312 * dwarf2/index-write.c (save_gdb_index_command): Update.
4313 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4314
4315 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4316
4317 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4318 member.
4319 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4320 dwarf2_per_cu_data::per_bfd.
4321 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4322 (create_type_unit_group): Likewise.
4323 (queue_comp_unit): Remove reference to
4324 per_cu->dwarf2_per_objfile.
4325 (maybe_queue_comp_unit): Likewise.
4326 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4327 (create_cus_hash_table): Assign new field.
4328
4329 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4330
4331 * dwarf2/read.c: Replace
4332 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4333 dwarf2_cu->per_objfile throughout.
4334
4335 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4336
4337 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4338 parameter, don't use per_cu->dwarf2_per_objfile.
4339 (dw2_instantiate_symtab): Likewise.
4340 (dw2_find_last_source_symtab): Update.
4341 (dw2_map_expand_apply): Update.
4342 (dw2_lookup_symbol): Update.
4343 (dw2_expand_symtabs_for_function): Update.
4344 (dw2_expand_all_symtabs): Update.
4345 (dw2_expand_symtabs_with_fullname): Update.
4346 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4347 don't use per_cu->dwarf2_per_objfile.
4348 (dw2_expand_marked_cus): Update.
4349 (dw2_find_pc_sect_compunit_symtab): Update.
4350 (dw2_debug_names_lookup_symbol): Update.
4351 (dw2_debug_names_expand_symtabs_for_function): Update.
4352 (dw2_debug_names_map_matching_symbols): Update.
4353 (dwarf2_psymtab::expand_psymtab): Update.
4354
4355 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4356
4357 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4358 <per_objfile>: New member.
4359 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4360 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4361 call to dwarf2_cu.
4362 (cutu_reader::cutu_reader): Update.
4363 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4364
4365 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4366
4367 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4368 struct dwarf2_per_objfile.
4369 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4370 dwarf2_per_bfd.
4371 * dwarf2/read.c (set_die_type): Update.
4372 (get_die_type_at_offset): Update.
4373
4374 2020-05-27 Tom Tromey <tom@tromey.com>
4375 Simon Marchi <simon.marchi@efficios.com>
4376
4377 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4378 method.
4379 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4380 get_symtab, set_symtab>: New methods.
4381 <m_symtabs>: New field.
4382 (struct dwarf2_psymtab): Derive from partial_symtab.
4383 <readin_p, get_compunit_symtab>: Declare methods.
4384 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4385 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4386 New methods.
4387 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4388 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4389 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4390 (dw2_symtab_iter_next, dw2_print_stats)
4391 (dw2_expand_symtabs_with_fullname)
4392 (dw2_expand_symtabs_matching_one)
4393 (dw_expand_symtabs_matching_file_matcher)
4394 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4395 (dw2_debug_names_iterator::next)
4396 (dw2_debug_names_map_matching_symbols)
4397 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4398 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4399 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4400 New methods.
4401 (get_compunit_symtab, process_full_comp_unit)
4402 (process_full_type_unit): Update.
4403 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4404
4405 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4406
4407 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4408 then introduce a new dwarf2_per_objfile type.
4409 <read_line_string>: Move to the new dwarf2_per_objfile type.
4410 <objfile>: Likewise.
4411 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4412 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4413 dwarf2_per_objfile->per_bfd.
4414 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4415 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4416 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4417 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4418 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4419 (dwarf2_per_objfile::locate_sections): Rename to...
4420 (dwarf2_per_bfd::locate_sections): ... this.
4421 (dwarf2_per_objfile::get_cutu): Rename to...
4422 (dwarf2_per_bfd::get_cutu): ... this.
4423 (dwarf2_per_objfile::get_cu): Rename to...
4424 (dwarf2_per_bfd::get_cu): ... this.
4425 (dwarf2_per_objfile::get_tu): Rename to...
4426 (dwarf2_per_bfd::get_tu): ... this.
4427 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4428 (dwarf2_per_bfd::allocate_per_cu): ... this.
4429 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4430 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4431 (get_gdb_index_contents_ftype): Change parameter from
4432 dwarf2_per_objfile to dwarf2_per_bfd.
4433 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4434 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4435
4436 2020-05-27 Tom Tromey <tom@tromey.com>
4437 Simon Marchi <simon.marchi@efficios.com>
4438
4439 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4440 (allocate_piece_closure): Set "per_objfile" member.
4441 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4442 (locexpr_describe_location, loclist_describe_location): Use new
4443 member.
4444 * dwarf2/read.c (read_call_site_scope)
4445 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4446 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4447 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4448 handle_data_member_location): Set per_objfile member.
4449 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4450 member.
4451 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4452
4453 2020-05-27 Tom Tromey <tom@tromey.com>
4454
4455 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4456 allocate_signatured_type>: Declare new methods.
4457 <m_num_psymtabs>: New member.
4458 (struct dwarf2_per_cu_data) <index>: New member.
4459 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4460 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4461 (create_cu_from_index_list): Use allocate_per_cu.
4462 (create_signatured_type_table_from_index)
4463 (create_signatured_type_table_from_debug_names)
4464 (create_debug_type_hash_table, add_type_unit)
4465 (read_comp_units_from_section): Use allocate_signatured_type.
4466
4467 2020-05-27 Tom Tromey <tom@tromey.com>
4468
4469 * psymtab.c (partial_map_expand_apply)
4470 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4471 (psym_lookup_global_symbol_language)
4472 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4473 (psym_print_stats, psym_expand_symtabs_for_function)
4474 (psym_map_symbol_filenames, psym_map_matching_symbols)
4475 (psym_expand_symtabs_matching)
4476 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4477 (maintenance_check_psymtabs): Update.
4478 * psympriv.h (struct partial_symtab) <readin_p,
4479 get_compunit_symtab>: Add objfile parameter.
4480 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4481 Likewise.
4482 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4483 get_compunit_symtab>: Likewise.
4484 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4485
4486 2020-05-27 Tom Tromey <tom@tromey.com>
4487
4488 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4489 member.
4490 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4491 (create_cu_from_index_list)
4492 (create_signatured_type_table_from_index)
4493 (create_signatured_type_table_from_debug_names)
4494 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4495 (dwarf2_create_include_psymtab)
4496 (create_debug_type_hash_table, add_type_unit)
4497 (create_type_unit_group, read_comp_units_from_section)
4498 (dwarf2_compute_name, create_cus_hash_table)
4499 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4500 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4501 obstack.
4502 (dw2_get_real_path): Likewise. Change argument to
4503 dwarf2_per_objfile.
4504
4505 2020-05-27 Luis Machado <luis.machado@linaro.org>
4506
4507 PR tdep/26000
4508 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4509 for ldrd (immediate).
4510
4511 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4512
4513 * command.h: Add comment giving the name of class_tui.
4514 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4515 create the fake command for the help for class_tui.
4516
4517 2020-05-26 Tom Tromey <tromey@adacore.com>
4518
4519 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4520 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4521 (val_atr): New function.
4522 (value_val_atr): Use it.
4523 * ada-valprint.c (print_optional_low_bound): Change low bound
4524 handling for enums.
4525 (val_print_packed_array_elements): Don't call discrete_position.
4526 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4527 discrete_position for enum types.
4528 * language.c (default_print_array_index): Change type.
4529 * language.h (struct language_defn) <la_print_array_index>: Add
4530 index_type parameter, change type of index_value.
4531 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4532 (default_print_array_index): Update.
4533 * valprint.c (maybe_print_array_index): Don't call
4534 value_from_longest. Update.
4535 (value_print_array_elements): Don't call discrete_position.
4536
4537 2020-05-26 Tom Tromey <tromey@adacore.com>
4538
4539 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4540 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4541
4542 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4543
4544 PR gdb/13519
4545 * avr-tdep.c (avr_integer_to_address): Return data or code
4546 address accordingly to the second 'type' argument of the
4547 function.
4548
4549 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4550
4551 * infcmd.c, inferior.h: (construct_inferior_arguments):
4552 Moved function from here to gdbsupport/common-inferior.{h,cc}
4553
4554 2020-05-23 Tom Tromey <tom@tromey.com>
4555
4556 Revert commit eca1f90c:
4557 * NEWS: Remove entry for completion styling.
4558 * completer.c (_rl_completion_prefix_display_length): Move
4559 declaration later.
4560 (gdb_fnprint): Revert.
4561 (gdb_display_match_list_1): Likewise.
4562 * cli/cli-style.c (completion_prefix_style)
4563 (completion_difference_style, completion_suffix_style): Remove.
4564 (_initialize_cli_style): Revert.
4565 * cli/cli-style.h (completion_prefix_style)
4566 (completion_difference_style, completion_suffix_style): Don't
4567 declare.
4568
4569 2020-05-24 Pedro Alves <palves@redhat.com>
4570
4571 * symtab.c (completion_list_add_name): Return boolean indication
4572 of whether the symbol matched.
4573 (completion_list_add_symbol): Don't try to remove C++ aliases if
4574 the symbol didn't match in the first place.
4575 * symtab.h (completion_list_add_name): Return bool.
4576
4577 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4578
4579 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4580 type::field.
4581
4582 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4583
4584 GDB 9.2 released.
4585
4586 2020-05-23 Tom Tromey <tom@tromey.com>
4587
4588 * NEWS: Add entry for completion styling.
4589 * completer.c (_rl_completion_prefix_display_length): Move
4590 declaration earlier.
4591 (gdb_fnprint): Use completion_style.
4592 (gdb_display_match_list_1): Likewise.
4593 * cli/cli-style.c (completion_prefix_style)
4594 (completion_difference_style, completion_suffix_style): New
4595 globals.
4596 (_initialize_cli_style): Register new globals.
4597 * cli/cli-style.h (completion_prefix_style)
4598 (completion_difference_style, completion_suffix_style): Declare.
4599
4600 2020-05-23 Pedro Alves <palves@redhat.com>
4601
4602 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4603 (parse_escape): Use ISDIGIT instead of isdigit.
4604 (puts_debug): Use gdb_isprint instead of isprint.
4605 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4606 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4607 ISSPACE instead of isspace.
4608 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4609 instead of isspace.
4610 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4611 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4612 instead of isxdigit and ISDIGIT instead of isdigit.
4613
4614 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4615
4616 * gdbtypes.h (struct type) <field>: New method.
4617 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4618 or type::field.
4619
4620 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4621
4622 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4623 (TYPE_FIELDS): Use type::fields. Change all call sites that
4624 modify the propery to use type::set_fields instead.
4625
4626 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4627
4628 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4629 type::num_fields instead.
4630
4631 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4632
4633 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4634 methods.
4635 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4636 that modify the number of fields to use type::set_num_fields
4637 instead.
4638
4639 2020-05-22 Tom Tromey <tromey@adacore.com>
4640
4641 * compile/compile-object-load.h (munmap_list_free): Don't
4642 declare.
4643
4644 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4645
4646 * annotate.c (annotate_source_line): Update return type, add call
4647 to update current symtab and line.
4648 * annotate.h (annotate_source_line): Update return type, and
4649 extend header comment.
4650 * source.c (info_line_command): Check annotation_level before
4651 calling annotate_source_line.
4652 * stack.c (print_frame_info): If calling annotate_source_line
4653 returns true, then don't print any other source line information.
4654
4655 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4656
4657 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4658
4659 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4660
4661 * coffread.c (patch_type): Remove NULL check before xfree.
4662 * corefile.c (set_gnutarget): Likewise.
4663 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4664 * exec.c (build_section_table): Likewise.
4665 * remote.c (remote_target::pass_signals): Likewise.
4666 * utils.c (n_spaces): Likewise.
4667 * cli/cli-script.c (document_command): Likewise.
4668 * i386-windows-tdep.c (core_process_module_section): Likewise.
4669 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4670
4671 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4672
4673 * symfile.c (reread_symbols): Clear objfile's section_offsets
4674 vector and section indices, re-compute them by calling
4675 sym_offsets.
4676
4677 2020-05-20 Tom Tromey <tromey@adacore.com>
4678
4679 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4680 (desc_one_bound, desc_index_type): Compute field name.
4681
4682 2020-05-20 Tom de Vries <tdevries@suse.de>
4683
4684 PR symtab/25833
4685 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4686
4687 2020-05-20 Alan Modra <amodra@gmail.com>
4688
4689 PR 25993
4690 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4691 bfd_set_filename.
4692 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4693 passed to bfd_set_filename.
4694 * symfile-mem.c (add_vsyscall_page): Likewise for string
4695 passed to symbol_file_add_from_memory.
4696 (symbol_file_add_from_memory): Make name param a const char* and
4697 don't strdup.
4698
4699 2020-05-20 Alan Modra <amodra@gmail.com>
4700
4701 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4702 rather than accessing bfd->filename directly.
4703 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4704 and use bfd_section_name.
4705 * dwarf2/frame.c (decode_frame_entry): Likewise.
4706 * exec.c (exec_set_section_address): Likewise.
4707 * solib-aix.c (solib_aix_bfd_open): Likewise.
4708 * stap-probe.c (get_stap_base_address): Likewise.
4709 * symfile.c (reread_symbols): Likewise.
4710
4711 2020-05-19 Tom Tromey <tromey@adacore.com>
4712
4713 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4714
4715 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4716
4717 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4718
4719 2020-05-19 Pedro Alves <palves@redhat.com>
4720
4721 * NEWS (set exec-file-mismatch): Adjust entry.
4722 * exec.c: Include "build-id.h".
4723 (validate_exec_file): Try to match build IDs instead of filenames.
4724 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4725 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4726 and pass down 'warn_if_slow'.
4727 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4728 gdb_bfd_open_closure to pass it down.
4729 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4730
4731 2020-05-19 Pedro Alves <palves@redhat.com>
4732
4733 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4734 * target.c (target_fileio_open_1): Rename to target_fileio_open
4735 and make extern. Use bool.
4736 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4737 (target_fileio_read_alloc_1): Adjust.
4738 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4739 (target_fileio_open_warn_if_slow): Delete declaration.
4740
4741 2020-05-19 Pedro Alves <palves@redhat.com>
4742
4743 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4744 Adjust all callers.
4745
4746 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4747
4748 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4749 whether disp is negative.
4750
4751 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4752
4753 * symfile.h (struct symfile_segment_data)
4754 <~symfile_segment_data>: Remove.
4755 <segment_info>: Change to std::vector.
4756 * symfile.c (default_symfile_segments): Update.
4757 * elfread.c (elf_symfile_segments): Update.
4758
4759 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4760
4761 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4762 <segments>: New.
4763 <segment_bases, segment_sizes>: Remove.
4764 * symfile.c (default_symfile_segments): Update.
4765 * elfread.c (elf_symfile_segments): Update.
4766 * remote.c (remote_target::get_offsets): Update.
4767 * solib-target.c (solib_target_relocate_section_addresses):
4768 Update.
4769
4770 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4771
4772 * symfile.h (struct symfile_segment_data): Initialize fields.
4773 <~symfile_segment_data>: Add.
4774 (symfile_segment_data_up): New.
4775 (struct sym_fns) <sym_segments>: Return a
4776 symfile_segment_data_up.
4777 (default_symfile_segments): Return a symfile_segment_data_up.
4778 (free_symfile_segment_data): Remove.
4779 (get_symfile_segment_data): Return a symfile_segment_data_up.
4780 * symfile.c (default_symfile_segments): Likewise.
4781 (get_symfile_segment_data): Likewise.
4782 (free_symfile_segment_data): Remove.
4783 (symfile_find_segment_sections): Update.
4784 * elfread.c (elf_symfile_segments): Return a
4785 symfile_segment_data_up.
4786 * remote.c (remote_target::get_offsets): Update.
4787 * solib-target.c (solib_target_relocate_section_addresses):
4788 Update.
4789 * symfile-debug.c (debug_sym_segments): Return a
4790 symfile_segment_data_up.
4791
4792 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4793
4794 PR build/25981
4795 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4796 Hardcode register numbers.
4797
4798 PR build/25981
4799 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4800 procfs_find_LDT_entry): Remove.
4801 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4802 procfs_find_LDT_entry): Remove.
4803 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4804 Remove.
4805
4806 2020-05-17 Pedro Alves <palves@redhat.com>
4807 Andrew Burgess <andrew.burgess@embecosm.com>
4808 Keno Fischer <keno@juliacomputing.com>
4809
4810 PR gdb/25741
4811 * breakpoint.c (build_target_condition_list): Update comments.
4812 (build_target_command_list): Update comments and skip matching
4813 locations.
4814 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4815 a separate function. Simplify "set breakpoint auto-hw off"
4816 handling.
4817 (insert_breakpoints): Update comment.
4818 (tracepoint_locations_match): New parameter. For breakpoints,
4819 compare location types too, if the caller wants to.
4820 (handle_automatic_hardware_breakpoints): New functions.
4821 (bp_location_is_less_than): Also sort by location type and
4822 hardware breakpoint length.
4823 (update_global_location_list): Handle "set breakpoint auto-hw on"
4824 here.
4825 (update_breakpoint_locations): Ask breakpoint_locations_match to
4826 ignore location types.
4827
4828 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4829
4830 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4831 type::name instead.
4832
4833 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4834
4835 * gdbtypes.h (struct type) <name, set_name>: New methods.
4836 (TYPE_CODE): Use type::name. Change all call sites used to set
4837 the name to use type::set_name instead.
4838
4839 2020-05-16 Tom Tromey <tom@tromey.com>
4840
4841 * top.c (quit_force): Update.
4842 * infrun.c (handle_no_resumed): Update.
4843 * top.h (all_uis): New function.
4844 (ALL_UIS): Remove.
4845
4846 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4847
4848 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4849
4850 2020-05-16 Pedro Alves <palves@redhat.com>
4851
4852 * ia64-linux-nat.c
4853 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4854 Declare method.
4855 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4856
4857 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4858
4859 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4860 (sparc64_adi_info): Likewise.
4861
4862 2020-05-15 Tom Tromey <tom@tromey.com>
4863
4864 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4865 block_objfile.
4866 (lookup_objfile_from_block): Remove.
4867 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4868 (lookup_global_symbol): Use block_objfile.
4869 * symtab.h (lookup_objfile_from_block): Don't declare.
4870 * printcmd.c (clear_dangling_display_expressions): Use
4871 block_objfile.
4872 * parse.c (operator_check_standard): Use block_objfile.
4873
4874 2020-05-15 Tom Tromey <tom@tromey.com>
4875
4876 * language.c (language_alloc_type_symbol): Set
4877 SYMBOL_SECTION.
4878 * symtab.c (initialize_objfile_symbol): Remove.
4879 (allocate_symbol): Remove.
4880 (allocate_template_symbol): Remove.
4881 * dwarf2/read.c (fixup_go_packaging): Use "new".
4882 (new_symbol): Use "new".
4883 (read_variable): Don't call initialize_objfile_symbol. Use
4884 "new".
4885 (read_func_scope): Use "new".
4886 * xcoffread.c (process_xcoff_symbol): Don't call
4887 initialize_objfile_symbol.
4888 (SYMBOL_DUP): Remove.
4889 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4890 "new".
4891 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4892 (allocate_template_symbol): Don't declare.
4893 (struct symbol): Add copy constructor. Change defaults.
4894 * jit.c (finalize_symtab): Use "new".
4895 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4896 Use "new".
4897 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4898 (common_block_end): Use "new".
4899 * mdebugread.c (parse_symbol): Use "new".
4900 (new_symbol): Likewise.
4901
4902 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4903
4904 * NEWS: Mention changes to help and apropos.
4905
4906 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4907
4908 * command.h (enum command_class): Improve comments, document
4909 that class_alias is for user-defined aliases, give the class
4910 name for each class, remove unused class_xdb.
4911 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4912 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4913 by a precise class.
4914 * infcmd.c (_initialize_infcmd): Likewise.
4915 * reverse.c (_initialize_reverse): Likewise.
4916 * stack.c (_initialize_stack): Likewise.
4917 * symfile.c (_initialize_symfile): Likewise.
4918 * tracepoint.c (_initialize_tracepoint): Likewise.
4919
4920 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4921
4922 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4923 when their aliased command is traversed.
4924 (help_cmd): Add fput_command_names_styled call to
4925 output command name and aliases when command has an alias.
4926
4927 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4928
4929 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4930 * cli/cli-decode.c (help_cmd_list): Declare as static,
4931 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4932 a command together with the command.
4933 (fput_command_name_styled, fput_command_names_styled): New functions.
4934 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4935 fput_command_name_styled.
4936 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4937 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4938
4939 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4940
4941 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4942 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4943 * command.h (cmd_show_list): Likewise.
4944 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4945 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4946
4947 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4948
4949 * unittests/command-def-selftests.c (traverse_command_structure):
4950 Verify all commands of a list have the same prefix command and
4951 that only the top cmdlist commands have a null prefix.
4952
4953 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4954
4955 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4956 as prefix, not one of its aliases.
4957 (set_cmd_prefix): Remove.
4958 (do_add_cmd): Centralize the setting of the prefix of a command, when
4959 command is defined after its full chain of prefix commands.
4960 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4961 (add_setshow_cmd_full): Likewise.
4962 (update_prefix_field_of_prefixed_commands): New function.
4963 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4964 update_prefix_field_of_prefixed_commands.
4965 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4966 addresses of remote_set_cmdlist and remote_show_cmdlist given
4967 as argument, not the address of an argument.
4968 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4969 * gdb/remote.c (_initialize_remote): Likewise.
4970
4971 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4972
4973 * cli/cli-cmds.c (alias_command): Check for an existing alias
4974 using lookup_cmd_composition, as valid_command_p is too strict
4975 and forbids aliases that are the prefix of an existing alias
4976 or command.
4977 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4978 command is properly recognised as a valid command.
4979
4980 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4981
4982 * unittests/help-doc-selftests.c: Rename to
4983 unittests/command-def-selftests.c
4984 * unittests/command-def-selftests.c (help_doc_tests): Update some
4985 comments.
4986 (command_structure_tests, traverse_command_structure): New namespace
4987 and function.
4988 (command_structure_invariants_tests): New function.
4989 (_initialize_command_def_selftests) Renamed from
4990 _initialize_help_doc_selftests, register command_structure_invariants
4991 selftest.
4992
4993 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4994
4995 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4996 an alias of 'show'.
4997
4998 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4999
5000 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5001 ada_is_fixed_point_type. Update all callers.
5002 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5003 all callers.
5004 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5005 Update all callers.
5006 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5007 print_fixed_point_type. Update all callers.
5008 * ada-valprint.c (ada_value_print_num): Replace call to
5009 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5010
5011 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5012
5013 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5014 processors.
5015 (cpu_supports_bts): Add CV_AMD case.
5016
5017 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5018 Simon Marchi <simon.marchi@efficios.com>
5019
5020 * infrun.c (stop_all_threads): Collect multiple wait events at
5021 each pass.
5022
5023 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5024
5025 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5026 type::code instead.
5027
5028 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5029
5030 * gdbtypes.h (struct type) <code, set_code>: New methods.
5031 (TYPE_CODE): Use type::code. Change all call sites used to set
5032 the code to use type::set_code instead.
5033
5034 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5035 Tom de Vries <tdevries@suse.de>
5036 Pedro Alves <palves@redhat.com>
5037
5038 PR threads/25478
5039 * infrun.c (stop_all_threads): Do NOT ignore
5040 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5041 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5042 received.
5043 (handle_no_resumed): Remove code handling a live inferior with no
5044 threads.
5045 * remote.c (has_single_non_exited_thread): New.
5046 (remote_target::update_thread_list): Do not delete a thread if is
5047 the last thread of the process.
5048 * thread.c (thread_select): Call delete_exited_threads instead of
5049 prune_threads.
5050
5051 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5052
5053 * infrun.c (stop_all_threads): Enable/disable thread events of all
5054 targets. Move a debug message denoting the end of the function
5055 into the SCOPED_EXIT block.
5056
5057 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5058
5059 * process-stratum-target.h: Include <set>.
5060 (all_non_exited_process_targets, switch_to_target_no_thread): New
5061 function declarations.
5062 * process-stratum-target.c (all_non_exited_process_targets)
5063 (switch_to_target_no_thread): New function implementations.
5064
5065 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5066
5067 * infrun.c (handle_inferior_event): Extract out a piece of code
5068 into...
5069 (mark_non_executing_threads): ...this new function.
5070
5071 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5072
5073 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5074 use.
5075
5076 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5077
5078 * regcache.c (regcache_read_pc_protected): New function
5079 implementation that returns 0 if the PC cannot read via
5080 'regcache_read_pc'.
5081 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5082 instead of 'regcache_read_pc'.
5083 (keep_going_pass_signal): Ditto.
5084
5085 2020-05-13 Tom Tromey <tromey@adacore.com>
5086
5087 * ada-lang.c (align_value): Remove.
5088 (ada_template_to_fixed_record_type_1): Use align_up.
5089
5090 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5091
5092 * async-event.c: Update the copyright year.
5093 * async-event.h: Update the copyright year.
5094
5095 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5096
5097 * objfiles.h (is_addr_in_objfile,
5098 shared_objfile_contains_address_p): Return bool.
5099 * objfile.c (is_addr_in_objfile,
5100 shared_objfile_contains_address_p): Return bool.
5101
5102 2020-05-11 Tom Tromey <tromey@adacore.com>
5103
5104 * cli/cli-cmds.c (info_command): Restore.
5105 (_initialize_cli_cmds): Use add_prefix_command for "info".
5106 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5107
5108 2020-05-11 Tom Tromey <tromey@adacore.com>
5109
5110 * ada-lang.c (ada_value_primitive_field): Now public.
5111 * ada-lang.h (ada_value_primitive_field): Declare.
5112 * ada-valprint.c (print_field_values): Use
5113 ada_value_primitive_field for wrapper fields.
5114
5115 2020-05-11 Tom de Vries <tdevries@suse.de>
5116
5117 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5118 MODULE_DOMAIN.
5119
5120 2020-05-11 Tom de Vries <tdevries@suse.de>
5121
5122 PR symtab/25941
5123 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5124 with length 0, if not gdb-produced.
5125 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5126
5127 2020-05-09 Tom de Vries <tdevries@suse.de>
5128
5129 PR gdb/25955
5130 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5131 calculation.
5132
5133 2020-05-09 Tom Tromey <tom@tromey.com>
5134
5135 * top.c (server_command): Now bool.
5136 * top.h (server_command): Now bool.
5137
5138 2020-05-08 Tom Tromey <tromey@adacore.com>
5139
5140 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5141 already being processed.
5142
5143 2020-05-08 Tom Tromey <tom@tromey.com>
5144
5145 * printcmd.c (struct display) <next>: Remove.
5146 <display>: New constructor.
5147 <exp_string>: Now a std::string.
5148 <enabled_p>: Now a bool.
5149 (display_number): Move definition earlier.
5150 (displays): Rename from display_chain. Now a std::vector.
5151 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5152 (display_command): Update.
5153 (do_one_display, disable_display)
5154 (enable_disable_display_command, do_enable_disable_display):
5155 Update.
5156 (free_display): Remove.
5157 (clear_displays): Rewrite.
5158 (delete_display): Update.
5159 (map_display_numbers): Use function_view. Remove "data"
5160 parameter. Update.
5161 (do_delete_display): Remove.
5162 (undisplay_command): Update.
5163 (do_one_display, do_displays, disable_display)
5164 (info_display_command): Update.
5165 (do_enable_disable_display): Remove.
5166 (enable_disable_display_command)
5167 (clear_dangling_display_expressions): Update.
5168
5169 2020-05-08 Tom Tromey <tom@tromey.com>
5170
5171 * symtab.c (set_symbol_cache_size)
5172 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5173 (maintenance_print_symbol_cache_statistics): Update.
5174 * symmisc.c (print_symbol_bcache_statistics)
5175 (print_objfile_statistics, maintenance_print_objfiles)
5176 (maintenance_info_symtabs, maintenance_check_symtabs)
5177 (maintenance_expand_symtabs, maintenance_info_line_tables):
5178 Update.
5179 * symfile-debug.c (set_debug_symfile): Update.
5180 * source.c (forget_cached_source_info): Update.
5181 * python/python.c (gdbpy_progspaces): Update.
5182 * psymtab.c (maintenance_info_psymtabs): Update.
5183 * probe.c (parse_probes): Update.
5184 * linespec.c (iterate_over_all_matching_symtabs)
5185 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5186 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5187 * exec.c (exec_target::close): Update.
5188 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5189 * breakpoint.c (print_one_breakpoint_location)
5190 (create_longjmp_master_breakpoint)
5191 (create_std_terminate_master_breakpoint): Update.
5192 * progspace.c (program_spaces): Now a std::vector.
5193 (maybe_new_address_space): Update.
5194 (add_program_space): Remove.
5195 (program_space::program_space): Update.
5196 (remove_program_space): Update.
5197 (number_of_program_spaces): Remove.
5198 (print_program_space, update_address_spaces): Update.
5199 * progspace.h (program_spaces): Change type.
5200 (ALL_PSPACES): Remove.
5201 (number_of_program_spaces): Don't declare.
5202 (struct program_space) <next>: Remove.
5203
5204 2020-05-08 Tom Tromey <tom@tromey.com>
5205
5206 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5207 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5208 (enable_break): Update.
5209 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5210 (frv_fdpic_find_canonical_descriptor): Update.
5211 (frv_fetch_objfile_link_map): Update.
5212 * progspace.c (program_space::free_all_objfiles): Update.
5213 (program_space::solibs): New method.
5214 * progspace.h (struct program_space) <solibs>: New method.
5215 * solist.h (master_so_list): Don't declare.
5216 (ALL_SO_LIBS): Remove.
5217 * solib.h (so_list_head): Remove.
5218 (update_solib_list): Update comment.
5219 * solib.c (master_so_list): Remove.
5220 (solib_used, update_solib_list, solib_add)
5221 (info_sharedlibrary_command, clear_solib)
5222 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5223
5224 2020-05-08 Tom Tromey <tom@tromey.com>
5225
5226 * extension.c (extension_languages): Now a std::array.
5227 (ALL_EXTENSION_LANGUAGES): Remove.
5228 (get_ext_lang_defn, get_ext_lang_of_file)
5229 (eval_ext_lang_from_control_command): Update.
5230 (finish_ext_lang_initialization)
5231 (auto_load_ext_lang_scripts_for_objfile)
5232 (ext_lang_type_printers::ext_lang_type_printers)
5233 (apply_ext_lang_type_printers)
5234 (ext_lang_type_printers::~ext_lang_type_printers)
5235 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5236 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5237 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5238 (get_matching_xmethod_workers, ext_lang_colorize)
5239 (ext_lang_before_prompt): Update.
5240 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5241
5242 2020-05-08 Tom Tromey <tom@tromey.com>
5243
5244 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5245 overload.
5246 <swap_string, m_string>: Remove.
5247 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5248 Update.
5249 * stabsread.c (define_symbol, read_type): Update.
5250 * linespec.c (find_linespec_symbols): Update.
5251 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5252 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5253 * dbxread.c (read_dbx_symtab): Update.
5254 * cp-support.h (cp_canonicalize_string_full)
5255 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5256 Return unique_xmalloc_ptr.
5257 * cp-support.c (inspect_type): Update.
5258 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5259 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5260 Likewise.
5261 * c-typeprint.c (print_name_maybe_canonical): Update.
5262 * break-catch-throw.c (check_status_exception_catchpoint):
5263 Update.
5264
5265 2020-05-08 Tom de Vries <tdevries@suse.de>
5266
5267 * infrun.c (follow_fork): Copy current_line and current_symtab to
5268 child thread.
5269
5270 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5271
5272 * async-event.c (struct async_signal_handler, struct
5273 async_event_handler): Reformat, remove typedef.
5274
5275 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5276
5277 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5278 access thistype->main_type->dyn_prop_list directly.
5279
5280 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5281
5282 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5283 (remove_dyn_prop): Remove. Update all users to use
5284 type::remove_dyn_prop.
5285 * gdbtypes.c (remove_dyn_prop): Rename to...
5286 (type::remove_dyn_prop): ... this.
5287
5288 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5289
5290 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5291 (add_dyn_prop): Remove. Update all users to use
5292 type::add_dyn_prop.
5293 * gdbtypes.c (add_dyn_prop): Rename to...
5294 (type::add_dyn_prop): ... this.
5295
5296 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5297
5298 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5299 (get_dyn_prop): Remove. Update all users to use
5300 type::dyn_prop.
5301 * gdbtypes.c (get_dyn_prop): Rename to...
5302 (type::dyn_prop): ... this.
5303
5304 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5305
5306 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5307
5308 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5309
5310 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5311 instruction, skip it if it's there.
5312
5313 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5314
5315 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5316
5317 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5318
5319 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5320 * gdbtypes.c (recursive_dump_type): Remove use of
5321 TYPE_INCOMPLETE.
5322
5323 2020-05-03 Tom Tromey <tom@tromey.com>
5324
5325 * breakpoint.c (catch_command, tcatch_command): Remove.
5326 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5327 add_show_prefix_cmd.
5328 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5329 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5330 Remove.
5331 (add_internal_problem_command): Use add_basic_prefix_cmd,
5332 add_show_prefix_cmd.
5333 * mips-tdep.c (set_mipsfpu_command): Remove.
5334 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5335 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5336 (_initialize_index_cache): Use add_basic_prefix_cmd.
5337 * memattr.c (dummy_cmd): Remove.
5338 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5339 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5340 (_initialize_tui_win): Use add_basic_prefix_cmd,
5341 add_show_prefix_cmd.
5342 * cli/cli-logging.c (set_logging_command): Remove.
5343 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5344 add_show_prefix_cmd.
5345 (show_logging_command): Remove.
5346 * target.c (target_command): Remove.
5347 (add_target): Use add_basic_prefix_cmd.
5348
5349 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5350
5351 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5352
5353 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5354
5355 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5356 info_command.
5357
5358 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5359
5360 * nbsd-nat.c (nbsd_enable_proc_events)
5361 (nbsd_nat_target::post_startup_inferior): Add.
5362 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5363 (nbsd_nat_target::update_thread_list): Rewrite.
5364 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5365 "PTRACE_LWP_CREATE".
5366 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5367
5368 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5369
5370 * stack.c (_initialize_stack): Remove duplicated creation
5371 of "frame" command and "f" alias.
5372
5373 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5374
5375 PR gdb/18706
5376 * gdbtypes.c (check_typedef): Calculate size of array of
5377 stubbed type.
5378
5379 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5380
5381 PR gdb/15559
5382 * i386-tdep.c (i386_push_dummy_call): Call
5383 i386_thiscall_push_dummy_call.
5384 (i386_thiscall_push_dummy_call): New function.
5385 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5386 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5387 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5388
5389 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5390
5391 * gdbarch.sh (do_read): Add shellcheck disable directive for
5392 warning SC2162.
5393
5394 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5395
5396 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5397 "referenced but not assigned" warning.
5398
5399 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5400
5401 * gdbarch.sh: Remove code that sets fallbackdefault.
5402
5403 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5404
5405 * gdbarch.sh: Use shell operators && and || instead of
5406 -a and -o.
5407
5408 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5409
5410 * gdbarch.sh: Use $(...) instead of `...`.
5411
5412 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5413
5414 * gdbarch.sh: Use double quotes around variables.
5415
5416 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5417
5418 * gdbarch.sh: Use %s with printf, instead of variables in the
5419 format string.
5420
5421 2020-04-29 Tom Tromey <tromey@adacore.com>
5422
5423 PR ada/25875:
5424 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5425 type fields here.
5426 (read_enumeration_type): Call
5427 update_enumeration_type_from_children later. Update comments.
5428 (process_enumeration_scope): Don't create type fields.
5429
5430 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5431
5432 * nbsd-tdep.c: Include "xml-syscall.h".
5433 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5434
5435 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5436
5437 * nbsd-nat.c: Include "sys/wait.h".
5438 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5439 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5440 (nbsd_nat_target::remove_exec_catchpoint)
5441 (nbsd_nat_target::set_syscall_catchpoint): Add.
5442 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5443 (nbsd_nat_target::insert_exec_catchpoint)
5444 (nbsd_nat_target::remove_exec_catchpoint)
5445 (nbsd_nat_target::set_syscall_catchpoint): Add.
5446 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5447 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5448 `nbsd_get_syscall_number'.
5449
5450 2020-04-29 Tom Tromey <tom@tromey.com>
5451
5452 * stack.c (print_block_frame_labels): Remove.
5453
5454 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5455
5456 PR gdb/17320
5457 * ada-valprint.c (val_print_packed_array_elements): Move array
5458 end bracket to new line.
5459 (ada_val_print_string): Remove extra spaces before first array
5460 element.
5461 * c-valprint.c (c_value_print_array): Likewise.
5462 * m2-valprint.c (m2_print_array_contents): Likewise.
5463 (m2_value_print_inner): Likewise.
5464 * p-valprint.c (pascal_value_print_inner): Likewise.
5465 * valprint.c (generic_val_print_array): Likewise.
5466 (value_print_array_elements): Move first array element and array
5467 end bracket to new line.
5468
5469 2020-04-29 Tom de Vries <tdevries@suse.de>
5470
5471 PR symtab/25889
5472 * linespec.c (find_method): Fix ix calculation.
5473
5474 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5475
5476 * syscalls/update-netbsd.sh: New file.
5477 * syscalls/netbsd.xml: Regenerate.
5478 * data-directory/Makefile.in: Register `netbsd.xml' in
5479 `SYSCALLS_FILES'.
5480
5481 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5482
5483 * syscalls/update-freebsd.sh: Add double quotes.
5484
5485 2020-04-28 Tom Tromey <tom@tromey.com>
5486
5487 * NEWS: Update.
5488 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5489 (cmdpy_init): Allow class_tui.
5490
5491 2020-04-28 Mark Williams <mark@myosotissp.com>
5492
5493 PR gdb/24480
5494 * dwarf2read.c: Add missing assingments to list_in_scope when
5495 start_symtab was already called.
5496
5497 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5498
5499 PR gdb/25881
5500 * dwarf2/read.c (offset_map_type): Use
5501 gdb:hash_enum<sect_offset> as hash function.
5502
5503 2020-04-28 Tom de Vries <tdevries@suse.de>
5504
5505 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5506 with DW_AT_signature.
5507
5508 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5509
5510 * configure.ac: Remove check for fs_base/gs_base in
5511 user_regs_struct.
5512 * configure: Re-generate.
5513 * config.in: Re-generate.
5514 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5515 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5516 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5517
5518 2020-04-27 Luis Machado <luis.machado@linaro.org>
5519
5520 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5521 problematic inline frame unwinding situation.
5522 * frame.c (frame_id_computed_p): New function.
5523 * frame.h (frame_id_computed_p): New prototype.
5524
5525 2020-04-26 Tom Tromey <tom@tromey.com>
5526
5527 * command.h (enum command_class) <class_pseudo>: Remove.
5528
5529 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5530
5531 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5532 and whitespace.
5533
5534 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5535
5536 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5537 `PT_GET_PROCESS_STATE' block.
5538
5539 2020-04-24 Tom Tromey <tom@tromey.com>
5540
5541 * symtab.h (symbol_get_demangled_name): Don't declare.
5542 * symtab.c (symbol_get_demangled_name): Remove.
5543 (general_symbol_info::natural_name)
5544 (general_symbol_info::demangled_name): Update.
5545
5546 2020-04-24 Tom Tromey <tom@tromey.com>
5547
5548 PR rust/25025:
5549 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5550
5551 2020-04-24 Tom Tromey <tom@tromey.com>
5552
5553 PR symtab/12707:
5554 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5555 exists.
5556 (new_symbol): Likewise.
5557 * compile/compile-object-load.c (get_out_value_type): Use
5558 symbol_matches_search_name.
5559
5560 2020-04-24 Tom Tromey <tom@tromey.com>
5561
5562 * dwarf2/read.c (add_partial_symbol): Do not call
5563 compute_and_set_names.
5564
5565 2020-04-24 Tom Tromey <tom@tromey.com>
5566
5567 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5568 overload.
5569
5570 2020-04-24 Tom Tromey <tom@tromey.com>
5571
5572 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5573 (add_psymbol_to_list): New overload. Make old overload call new
5574 one.
5575 * psympriv.h (add_psymbol_to_list): New overload.
5576
5577 2020-04-24 Tom Tromey <tom@tromey.com>
5578
5579 * dwarf2/read.c (partial_die_info::read) <case
5580 DW_AT_linkage_name>: Use value_as_string.
5581 (dwarf2_string_attr): Use value_as_string.
5582 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5583 method.
5584 * dwarf2/attribute.c (attribute::value_as_string): New method.
5585
5586 2020-04-24 Tom Tromey <tom@tromey.com>
5587
5588 * symtab.c (general_symbol_info::natural_name)
5589 (general_symbol_info::demangled_name): Check for language_rust.
5590
5591 2020-04-24 Tom Tromey <tom@tromey.com>
5592
5593 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5594 (dwarf2_physname): ... from here.
5595 (partial_die_info::read): Add Rust "{" hack.
5596
5597 2020-04-24 Tom Tromey <tom@tromey.com>
5598
5599 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5600 method.
5601 (symbol_set_demangled_name): Don't declare.
5602 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5603 symbol_set_demangled_name.
5604 (general_symbol_info::set_language)
5605 (general_symbol_info::compute_and_set_names): Update.
5606 * minsyms.c (minimal_symbol_reader::install): Update.
5607 * dwarf2/read.c (new_symbol): Update.
5608
5609 2020-04-24 Tom Tromey <tromey@adacore.com>
5610
5611 PR python/23662:
5612 * python/py-type.c (convert_field): Handle
5613 FIELD_LOC_KIND_DWARF_BLOCK.
5614 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5615 (typy_get_dynamic): Nw function.
5616 (type_object_getset): Add "dynamic".
5617 * NEWS: Add entry.
5618
5619 2020-04-24 Tom Tromey <tromey@adacore.com>
5620
5621 * ada-typeprint.c (print_choices, print_variant_part)
5622 (print_record_field_types_dynamic): New functions.
5623 (print_record_field_types): Use print_record_field_types_dynamic.
5624
5625 2020-04-24 Tom Tromey <tromey@adacore.com>
5626
5627 * dwarf2/read.c (handle_data_member_location): New overload.
5628 (dwarf2_add_field): Use it.
5629 (decode_locdesc): Add "computed" parameter. Update comment.
5630 * gdbtypes.c (is_dynamic_type_internal): Also look for
5631 FIELD_LOC_KIND_DWARF_BLOCK.
5632 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5633 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5634 virtual base classes.
5635 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5636 FIELD_LOC_KIND_DWARF_BLOCK.
5637
5638 2020-04-24 Tom Tromey <tromey@adacore.com>
5639
5640 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5641 * gdbtypes.c (is_dynamic_type_internal): Check
5642 TYPE_HAS_DYNAMIC_LENGTH.
5643 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5644 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5645 New macros.
5646 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5647 constant.
5648
5649 2020-04-24 Tom Tromey <tromey@adacore.com>
5650
5651 * dwarf2/read.c (struct variant_field): Rewrite.
5652 (struct variant_part_builder): New.
5653 (struct nextfield): Remove "variant" field. Add "offset".
5654 (struct field_info): Add "current_variant_part" and
5655 "variant_parts".
5656 (alloc_discriminant_info): Remove.
5657 (alloc_rust_variant): New function.
5658 (quirk_rust_enum): Update.
5659 (dwarf2_add_field): Set "offset" member. Don't handle
5660 DW_TAG_variant_part.
5661 (offset_map_type): New typedef.
5662 (convert_variant_range, create_one_variant)
5663 (create_one_variant_part, create_variant_parts)
5664 (add_variant_property): New functions.
5665 (dwarf2_attach_fields_to_type): Call add_variant_property.
5666 (read_structure_type): Don't handle DW_TAG_variant_part.
5667 (handle_variant_part, handle_variant): New functions.
5668 (handle_struct_member_die): Use them.
5669 (process_structure_scope): Don't handle variant parts.
5670 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5671 (struct discriminant_info): Remove.
5672 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5673 (struct main_type) <flag_discriminated_union>: Remove.
5674 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5675 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5676 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5677 Update.
5678 * valops.c (value_union_variant): Remove.
5679 * value.h (value_union_variant): Don't declare.
5680
5681 2020-04-24 Tom Tromey <tromey@adacore.com>
5682
5683 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5684 (ada_value_primitive_packed_val): Update.
5685 * ada-valprint.c (ada_value_print_1): Update.
5686 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5687 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5688 just an address. Use evaluate_for_locexpr_baton.
5689 (dwarf2_evaluate_property): Update.
5690 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5691 array_view.
5692 * findvar.c (default_read_var_value): Update.
5693 * gdbtypes.c (compute_variant_fields_inner)
5694 (resolve_dynamic_type_internal): Update.
5695 (resolve_dynamic_type): Change type of valaddr parameter.
5696 * gdbtypes.h (resolve_dynamic_type): Update.
5697 * valarith.c (value_subscripted_rvalue): Update.
5698 * value.c (value_from_contents_and_address): Update.
5699
5700 2020-04-24 Tom Tromey <tromey@adacore.com>
5701
5702 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5703 "push_initial_value" parameter.
5704 (dwarf2_evaluate_property): Likewise.
5705 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5706
5707 2020-04-24 Tom Tromey <tromey@adacore.com>
5708
5709 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5710 (variant::matches, compute_variant_fields_recurse)
5711 (compute_variant_fields_inner, compute_variant_fields): New
5712 functions.
5713 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5714 Use resolved_type after type is made.
5715 (operator==): Add new cases.
5716 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5717 (struct discriminant_range, struct variant, struct variant_part):
5718 New.
5719 (union dynamic_prop_data) <variant_parts, original_type>: New
5720 members.
5721 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5722 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5723 constants.
5724 * value.c (unpack_bits_as_long): Now public.
5725 * value.h (unpack_bits_as_long): Declare.
5726
5727 2020-04-24 Tom Tromey <tromey@adacore.com>
5728
5729 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5730 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5731
5732 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5733
5734 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5735
5736 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5737
5738 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5739 (remove_fork_catchpoint, post_startup_inferior)
5740 (post_attach): Move...
5741 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5742 (remove_fork_catchpoint, post_startup_inferior)
5743 (post_attach): ...here.
5744 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5745 (remove_fork_catchpoint, post_startup_inferior)
5746 (post_attach): Move...
5747 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5748 (remove_fork_catchpoint, post_startup_inferior)
5749 (post_attach): ...here.
5750
5751 2020-04-24 Tom Tromey <tromey@adacore.com>
5752
5753 * nat/windows-nat.h (struct windows_thread_info)
5754 <pc_adjusted>: New member.
5755 * windows-nat.c (windows_fetch_one_register): Check
5756 pc_adjusted.
5757 (windows_nat_target::get_windows_debug_event)
5758 (windows_nat_target::wait): Set pc_adjusted.
5759
5760 2020-04-24 Tom de Vries <tdevries@suse.de>
5761
5762 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5763 Run gdb-add-index inside temp dir.
5764
5765 2020-04-23 Tom Tromey <tromey@adacore.com>
5766
5767 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5768 in loop.
5769
5770 2020-04-23 Luis Machado <luis.machado@linaro.org>
5771
5772 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5773 get_frame_register instead of gdbarch_unwind_pc.
5774
5775 2020-04-23 Tom de Vries <tdevries@suse.de>
5776
5777 * symtab.c (lookup_global_symbol): Prefer def over decl.
5778
5779 2020-04-23 Tom de Vries <tdevries@suse.de>
5780
5781 PR symtab/25807
5782 * block.c (best_symbol, better_symbol): Promote to external.
5783 * block.h (best_symbol, better_symbol): Declare.
5784 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5785 decl.
5786
5787 2020-04-23 Tom Tromey <tromey@adacore.com>
5788
5789 PR ada/25837:
5790 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5791 "const char *", not a "const std::string &".
5792 <name_and_matcher::operator==>: Update.
5793 * unittests/lookup_name_info-selftests.c: Change type of
5794 "result".
5795
5796 2020-04-23 Tom Tromey <tom@tromey.com>
5797
5798 * inferior.h (iterate_over_inferiors): Don't declare.
5799 * inferior.c (iterate_over_inferiors): Remove.
5800 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5801 Remove.
5802 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5803 use iterate_over_inferiors.
5804 (darwin_resume_inferior_it)
5805 (struct resume_inferior_threads_param)
5806 (darwin_resume_inferior_threads_it): Remove.
5807 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5808
5809 2020-04-23 Tom de Vries <tdevries@suse.de>
5810
5811 * blockframe.c (find_pc_partial_function): Use
5812 find_pc_sect_compunit_symtab rather than
5813 objfile->sf->qf->find_pc_sect_compunit_symtab.
5814
5815 2020-04-22 Tom de Vries <tdevries@suse.de>
5816
5817 PR symtab/25764
5818 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5819 in psymtabs.
5820
5821 2020-04-22 Tom de Vries <tdevries@suse.de>
5822
5823 PR symtab/25801
5824 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5825 symtabs.
5826
5827 2020-04-22 Tom de Vries <tdevries@suse.de>
5828
5829 PR symtab/25700
5830 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5831 CU if already created.
5832
5833 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5834
5835 * infrun.c (displaced_step_fixup): Switch to the event_thread
5836 before calling displaced_step_restore, not after.
5837
5838 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5839
5840 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5841 its inferior is not recorded by us.
5842 (record_btrace_target_open): Replace call to
5843 all_non_exited_threads () with call to current_inferior
5844 ()->non_exited_threads ().
5845 (record_btrace_target::stop_recording): Likewise.
5846 (record_btrace_target::close): Likewise.
5847 (record_btrace_target::wait): Likewise.
5848 (record_btrace_target::record_stop_replaying): Likewise.
5849
5850 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5851
5852 * btrace.c (btrace_enable): Throw an error on double enables and
5853 when enabling recording fails.
5854 (btrace_disable): Throw an error if the thread is not recorded.
5855
5856 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5857
5858 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5859 request if we do not have a thread_info.
5860
5861 2020-04-21 Tom de Vries <tdevries@suse.de>
5862
5863 PR gdb/25471
5864 * thread.c
5865 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5866 exception in get_frame_id.
5867
5868 2020-04-20 Tom Tromey <tromey@adacore.com>
5869
5870 * python/python.c (struct gdbpy_event): Mark move constructor as
5871 noexcept.
5872 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5873 constructor as noexcept.
5874 * completer.h (struct completion_result): Mark move constructor as
5875 noexcept.
5876 * completer.c (completion_result::completion_result): Use
5877 initialization style. Don't call reset_match_list.
5878
5879 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5880
5881 * MAINTAINERS (Write After Approval): Add myself.
5882
5883 2020-04-18 Tom Tromey <tom@tromey.com>
5884
5885 * windows-tdep.c (init_w32_command_list)
5886 (w32_prefix_command_valid): Restore.
5887 (_initialize_windows_tdep): Call init_w32_command_list.
5888
5889 2020-04-18 Tom Tromey <tom@tromey.com>
5890
5891 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5892 * value.c (value_fn_field): Update.
5893 * valops.c (find_function_in_inferior)
5894 (value_allocate_space_in_inferior): Update.
5895 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5896 Update.
5897 * tui/tui-source.c (tui_source_window::set_contents): Update.
5898 * symtab.c (lookup_global_or_static_symbol)
5899 (find_function_start_sal_1, skip_prologue_sal)
5900 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5901 * symmisc.c (dump_msymbols, dump_symtab_1)
5902 (maintenance_print_one_line_table): Update.
5903 * symfile.c (init_entry_point_info, section_is_mapped)
5904 (list_overlays_command, simple_read_overlay_table)
5905 (simple_overlay_update_1): Update.
5906 * stap-probe.c (handle_stap_probe): Update.
5907 * stabsread.c (dbx_init_float_type, define_symbol)
5908 (read_one_struct_field, read_enum_type, read_range_type): Update.
5909 * source.c (info_line_command): Update.
5910 * python/python.c (gdbpy_source_objfile_script)
5911 (gdbpy_execute_objfile_script): Update.
5912 * python/py-type.c (save_objfile_types): Update.
5913 * python/py-objfile.c (py_free_objfile): Update.
5914 * python/py-inferior.c (python_new_objfile): Update.
5915 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5916 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5917 (maintenance_check_psymtabs): Update.
5918 * printcmd.c (info_address_command): Update.
5919 * objfiles.h (struct objfile) <arch>: New method, from
5920 get_objfile_arch.
5921 (get_objfile_arch): Don't declare.
5922 * objfiles.c (get_objfile_arch): Remove.
5923 (filter_overlapping_sections): Update.
5924 * minsyms.c (msymbol_is_function): Update.
5925 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5926 (output_nondebug_symbol): Update.
5927 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5928 (mdebug_expand_psymtab): Update.
5929 * machoread.c (macho_add_oso_symfile): Update.
5930 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5931 Update.
5932 * linux-fork.c (checkpoint_command): Update.
5933 * linespec.c (convert_linespec_to_sals): Update.
5934 * jit.c (finalize_symtab): Update.
5935 * infrun.c (insert_exception_resume_from_probe): Update.
5936 * ia64-tdep.c (ia64_find_unwind_table): Update.
5937 * hppa-tdep.c (internalize_unwinds): Update.
5938 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5939 Update.
5940 * gcore.c (call_target_sbrk): Update.
5941 * elfread.c (record_minimal_symbol, elf_symtab_read)
5942 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5943 (elf_gnu_ifunc_resolve_by_got): Update.
5944 * dwarf2/read.c (create_addrmap_from_index)
5945 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5946 (read_debug_names_from_section)
5947 (process_psymtab_comp_unit_reader, add_partial_symbol)
5948 (add_partial_subprogram, process_full_comp_unit)
5949 (read_file_scope, read_func_scope, read_lexical_block_scope)
5950 (read_call_site_scope, dwarf2_ranges_read)
5951 (dwarf2_record_block_ranges, dwarf2_add_field)
5952 (mark_common_block_symbol_computed, read_tag_pointer_type)
5953 (read_tag_string_type, dwarf2_init_float_type)
5954 (dwarf2_init_complex_target_type, read_base_type)
5955 (partial_die_info::read, partial_die_info::read)
5956 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5957 (dwarf2_fetch_die_loc_sect_off): Update.
5958 * dwarf2/loc.c (dwarf2_find_location_expression)
5959 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5960 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5961 (dwarf2_loc_desc_get_symbol_read_needs)
5962 (locexpr_describe_location_piece, locexpr_describe_location_1)
5963 (loclist_describe_location): Update.
5964 * dwarf2/index-write.c (write_debug_names): Update.
5965 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5966 * dtrace-probe.c (dtrace_process_dof): Update.
5967 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5968 (process_one_symbol): Update.
5969 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5970 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5971 (coff_read_enum_type): Update.
5972 * cli/cli-cmds.c (edit_command, list_command): Update.
5973 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5974 * breakpoint.c (create_overlay_event_breakpoint)
5975 (create_longjmp_master_breakpoint)
5976 (create_std_terminate_master_breakpoint)
5977 (create_exception_master_breakpoint, get_sal_arch): Update.
5978 * block.c (block_gdbarch): Update.
5979 * annotate.c (annotate_source_line): Update.
5980
5981 2020-04-17 Tom Tromey <tromey@adacore.com>
5982
5983 * auto-load.c (show_auto_load_cmd): Remove.
5984 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5985 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5986 (maintenance_print_arc_command): Remove.
5987 * tui/tui-win.c (tui_command): Remove.
5988 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5989 * tui/tui-layout.c (tui_layout_command): Remove.
5990 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5991 * python/python.c (user_set_python, user_show_python): Remove.
5992 (_initialize_python): Use add_basic_prefix_cmd,
5993 add_show_prefix_cmd.
5994 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5995 (install_gdb_commands): Use add_basic_prefix_cmd,
5996 add_show_prefix_cmd.
5997 (info_guile_command): Remove.
5998 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5999 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6000 add_show_prefix_cmd.
6001 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6002 Remove do_set and do_show parameters.
6003 * cli/cli-style.c (set_style, show_style): Remove.
6004 (_initialize_cli_style): Use add_basic_prefix_cmd,
6005 add_show_prefix_cmd.
6006 (cli_style_option::add_setshow_commands): Remove do_set and
6007 do_show parameters.
6008 (cli_style_option::add_setshow_commands): Use
6009 add_basic_prefix_cmd, add_show_prefix_cmd.
6010 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6011 (set_style_name): Remove.
6012 * cli/cli-dump.c (dump_command, append_command): Remove.
6013 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6014 (tekhex_dump_command, binary_dump_command)
6015 (binary_append_command): Remove.
6016 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6017 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6018 (init_w32_command_list): Remove; move into ...
6019 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6020 * valprint.c (set_print, show_print, set_print_raw)
6021 (show_print_raw): Remove.
6022 (_initialize_valprint): Use add_basic_prefix_cmd,
6023 add_show_prefix_cmd.
6024 * typeprint.c (set_print_type, show_print_type): Remove.
6025 (_initialize_typeprint): Use add_basic_prefix_cmd,
6026 add_show_prefix_cmd.
6027 * record.c (set_record_command, show_record_command): Remove.
6028 (_initialize_record): Use add_basic_prefix_cmd,
6029 add_show_prefix_cmd.
6030 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6031 add_show_prefix_cmd.
6032 (info_command, show_command, set_debug, show_debug): Remove.
6033 * top.h (set_history, show_history): Don't declare.
6034 * top.c (set_history, show_history): Remove.
6035 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6036 (unset_tdesc_cmd): Remove.
6037 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6038 add_show_prefix_cmd.
6039 * symtab.c (info_module_command): Remove.
6040 (_initialize_symtab): Use add_basic_prefix_cmd.
6041 * symfile.c (overlay_command): Remove.
6042 (_initialize_symfile): Use add_basic_prefix_cmd.
6043 * sparc64-tdep.c (info_adi_command): Remove.
6044 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6045 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6046 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6047 add_show_prefix_cmd.
6048 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6049 (_initialize_serial): Use add_basic_prefix_cmd,
6050 add_show_prefix_cmd.
6051 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6052 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6053 add_show_prefix_cmd.
6054 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6055 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6056 add_show_prefix_cmd.
6057 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6058 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6059 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6060 add_show_prefix_cmd.
6061 * remote.c (remote_command, set_remote_cmd): Remove.
6062 (_initialize_remote): Use add_basic_prefix_cmd.
6063 * record-full.c (set_record_full_command)
6064 (show_record_full_command): Remove.
6065 (_initialize_record_full): Use add_basic_prefix_cmd,
6066 add_show_prefix_cmd.
6067 * record-btrace.c (cmd_set_record_btrace)
6068 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6069 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6070 (cmd_show_record_btrace_pt): Remove.
6071 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6072 add_show_prefix_cmd.
6073 * ravenscar-thread.c (set_ravenscar_command)
6074 (show_ravenscar_command): Remove.
6075 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6076 add_show_prefix_cmd.
6077 * mips-tdep.c (show_mips_command, set_mips_command)
6078 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6079 add_show_prefix_cmd.
6080 * maint.c (maintenance_command, maintenance_info_command)
6081 (maintenance_check_command, maintenance_print_command)
6082 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6083 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6084 add_show_prefix_cmd.
6085 (show_per_command_cmd): Remove.
6086 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6087 Remove.
6088 (maintenance_show_test_settings_cmd): Remove.
6089 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6090 add_show_prefix_cmd.
6091 * maint-test-options.c (maintenance_test_options_command):
6092 Remove.
6093 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6094 * macrocmd.c (macro_command): Remove
6095 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6096 * language.c (set_check, show_check): Remove.
6097 (_initialize_language): Use add_basic_prefix_cmd,
6098 add_show_prefix_cmd.
6099 * infcmd.c (unset_command): Remove.
6100 (_initialize_infcmd): Use add_basic_prefix_cmd.
6101 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6102 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6103 add_show_prefix_cmd.
6104 * go32-nat.c (go32_info_dos_command): Remove.
6105 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6106 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6107 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6108 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6109 (_initialize_frame): Use add_basic_prefix_cmd,
6110 add_show_prefix_cmd.
6111 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6112 (_initialize_dcache): Use add_basic_prefix_cmd,
6113 add_show_prefix_cmd.
6114 * cp-support.c (maint_cplus_command): Remove.
6115 (_initialize_cp_support): Use add_basic_prefix_cmd.
6116 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6117 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6118 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6119 add_basic_prefix_cmd, add_show_prefix_cmd.
6120 * breakpoint.c (save_command): Remove.
6121 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6122 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6123 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6124 add_show_prefix_cmd.
6125 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6126 (set_ada_command, show_ada_command): Remove.
6127 (_initialize_ada_language): Use add_basic_prefix_cmd,
6128 add_show_prefix_cmd.
6129 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6130
6131 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6132
6133 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6134 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6135
6136 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6137
6138 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6139 warning messages.
6140
6141 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6142
6143 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6144 import table is not at beginning of .idata section.
6145
6146 2020-04-16 Pedro Alves <palves@redhat.com>
6147
6148 * inferior.c (delete_inferior): Use delete operator directly
6149 instead of delete_program_space.
6150 * progspace.c (add_program_space): New, factored out from
6151 program_space::program_space.
6152 (remove_program_space): New, factored out from
6153 delete_program_space.
6154 (program_space::program_space): Remove intro comment. Rewrite.
6155 (program_space::~program_space): Remove intro comment. Call
6156 remove_program_space.
6157 (delete_program_space): Delete.
6158 * progspace.h (program_space::program_space): Make explicit. Move
6159 intro comment here, adjusted.
6160 (program_space::~program_space): Move intro comment here,
6161 adjusted.
6162 (delete_program_space): Remove.
6163
6164 2020-04-16 Tom Tromey <tromey@adacore.com>
6165
6166 * windows-nat.c (windows_nat::handle_access_violation): New
6167 function.
6168 * nat/windows-nat.h (handle_access_violation): Declare.
6169 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6170 windows-nat.c. Call handle_access_violation.
6171
6172 2020-04-16 Tom de Vries <tdevries@suse.de>
6173
6174 PR symtab/25791
6175 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6176 CUs without psymtab.
6177
6178 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6179
6180 * python/python.c (do_start_initialization): Don't call
6181 PyEval_InitThreads for Python 3.9 and beyond.
6182
6183 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6184
6185 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6186 thread functions.
6187 (obsd_nat_target::wait): Likewise.
6188
6189 2020-04-15 Tom Tromey <tromey@adacore.com>
6190
6191 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6192 (DEBUG_EXCEPT): Use debug_printf.
6193
6194 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6195
6196 * completer.c (class completion_tracker::completion_hash_entry)
6197 <hash_name>: New member function.
6198 (completion_tracker::discard_completions): New callback to hash a
6199 completion_hash_entry, pass this to htab_create_alloc.
6200
6201 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6202
6203 * windows-nat.c (windows_make_so): Warn rather than stopping with
6204 an error if realpath() fails.
6205
6206 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6207
6208 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6209 (nbsd_nat_target::info_proc): Add do_status.
6210
6211 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6212 Tom de Vries <tdevries@suse.de>
6213
6214 PR symtab/25718
6215 * psympriv.h (struct partial_symtab::read_symtab)
6216 (struct partial_symtab::expand_psymtab)
6217 (struct partial_symtab::read_dependencies): Update comments.
6218 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6219 read_symtab for includer.
6220 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6221 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6222 (struct dwarf2_include_psymtab::m_readin): Remove.
6223 (struct dwarf2_include_psymtab::includer): New member function.
6224 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6225
6226 2020-04-14 Tom de Vries <tdevries@suse.de>
6227
6228 PR symtab/25720
6229 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6230 with NULL symbol_matcher and lookup_name.
6231 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6232 and lookup_name.
6233 * dwarf2/read.c (dw2_expand_symtabs_matching)
6234 (dw2_debug_names_expand_symtabs_matching): Same.
6235 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6236 Make lookup_name a pointer. Update comment.
6237 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6238 lookup_name being a pointer.
6239 * symfile.c (expand_symtabs_matching): Same.
6240 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6241 * linespec.c (iterate_over_all_matching_symtabs): Same.
6242
6243 2020-04-13 Tom Tromey <tom@tromey.com>
6244
6245 * run-on-main-thread.c: Update include.
6246 * unittests/main-thread-selftests.c: Update include.
6247 * tui/tui-win.c: Update include.
6248 * tui/tui-io.c: Update include.
6249 * tui/tui-interp.c: Update include.
6250 * tui/tui-hooks.c: Update include.
6251 * top.h: Update include.
6252 * top.c: Update include.
6253 * ser-base.c: Update include.
6254 * remote.c: Update include.
6255 * remote-notif.c: Update include.
6256 * remote-fileio.c: Update include.
6257 * record-full.c: Update include.
6258 * record-btrace.c: Update include.
6259 * python/python.c: Update include.
6260 * posix-hdep.c: Update include.
6261 * mingw-hdep.c: Update include.
6262 * mi/mi-main.c: Update include.
6263 * mi/mi-interp.c: Update include.
6264 * main.c: Update include.
6265 * linux-nat.c: Update include.
6266 * interps.c: Update include.
6267 * infrun.c: Update include.
6268 * inf-loop.c: Update include.
6269 * event-top.c: Update include.
6270 * event-loop.c: Move to ../gdbsupport/.
6271 * event-loop.h: Move to ../gdbsupport/.
6272 * async-event.h: Update include.
6273 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6274
6275 2020-04-13 Tom Tromey <tom@tromey.com>
6276
6277 * tui/tui-win.c: Include async-event.h.
6278 * remote.c: Include async-event.h.
6279 * remote-notif.c: Include async-event.h.
6280 * record-full.c: Include async-event.h.
6281 * record-btrace.c: Include async-event.h.
6282 * infrun.c: Include async-event.h.
6283 * event-top.c: Include async-event.h.
6284 * event-loop.h: Move some declarations to async-event.h.
6285 * event-loop.c: Don't include ser-event.h or top.h. Move some
6286 code to async-event.c.
6287 * async-event.h: New file.
6288 * async-event.c: New file.
6289 * Makefile.in (COMMON_SFILES): Add async-event.c.
6290 (HFILES_NO_SRCDIR): Add async-event.h.
6291
6292 2020-04-13 Tom Tromey <tom@tromey.com>
6293
6294 * utils.c (flush_streams): New function.
6295 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6296
6297 2020-04-13 Tom Tromey <tom@tromey.com>
6298
6299 * event-loop.c (handle_file_event): Use warning, not
6300 printf_unfiltered.
6301
6302 2020-04-13 Tom Tromey <tom@tromey.com>
6303
6304 * event-loop.c: Include <chrono>.
6305
6306 2020-04-13 Tom Tromey <tom@tromey.com>
6307
6308 * gdb_select.h: Move to ../gdbsupport/.
6309 * event-loop.c: Update include path.
6310 * top.c: Update include path.
6311 * ser-base.c: Update include path.
6312 * ui-file.c: Update include path.
6313 * ser-tcp.c: Update include path.
6314 * guile/scm-ports.c: Update include path.
6315 * posix-hdep.c: Update include path.
6316 * ser-unix.c: Update include path.
6317 * gdb_usleep.c: Update include path.
6318 * mingw-hdep.c: Update include path.
6319 * inflow.c: Update include path.
6320 * infrun.c: Update include path.
6321 * event-top.c: Update include path.
6322
6323 2020-04-13 Tom Tromey <tom@tromey.com>
6324
6325 * configure: Rebuild.
6326 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6327
6328 2020-04-13 Tom Tromey <tom@tromey.com>
6329
6330 * event-loop.h (start_event_loop): Don't declare.
6331 * event-loop.c (start_event_loop): Move...
6332 * main.c (start_event_loop): ...here. Now static.
6333
6334 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6335
6336 * MAINTAINERS: Update my email address.
6337
6338 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6339
6340 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6341 IP_ALL.
6342
6343 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6344
6345 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6346 (nbsd_nat_target::info_proc): Add do_cmdline.
6347
6348 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6349
6350 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6351 (nbsd_nat_target::info_proc): Add do_cwd.
6352
6353 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6354
6355 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6356
6357 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6358
6359 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6360 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6361 (nbsd_nat_target::info_proc): New functions.
6362 * nbsd-nat.c (kinfo_get_vmmap): New function.
6363 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6364 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6365 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6366 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6367 functions.
6368 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6369 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6370 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6371 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6372 (KINFO_VME_FLAG_GROWS_DOWN): New.
6373
6374 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6375
6376 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6377 bit shift.
6378
6379 2020-04-10 Tom Tromey <tromey@adacore.com>
6380
6381 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6382
6383 2020-04-10 Tom Tromey <tromey@adacore.com>
6384
6385 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6386 separate debug files.
6387
6388 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6389
6390 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6391 Move to...
6392 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6393 ... here.
6394 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6395 Check for STATUS_WX86_BREAKPOINT.
6396 (windows_nat_target::wait): Same.
6397
6398 2020-04-10 Tom de Vries <tdevries@suse.de>
6399
6400 PR cli/25808
6401 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6402
6403 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6404
6405 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6406 (Write After Approval): Remove Tom de Vries.
6407
6408 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6409
6410 revert partially:
6411 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6412
6413 * buildsym.c (record_line): Fix undefined behavior and preserve
6414 lines at eof.
6415
6416 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6417
6418 * auxv.h (svr4_auxv_parse): New.
6419 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6420 and generic_auxv_parse.
6421 (svr4_auxv_parse): Add.
6422 * obsd-tdep.c: Include "auxv.h".
6423 (obsd_auxv_parse): Remove.
6424 (obsd_init_abi): Remove comment.
6425 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6426 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6427 * nbsd-tdep.c: Include "auxv.h".
6428 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6429
6430 2020-04-08 Tom Tromey <tromey@adacore.com>
6431
6432 * nat/windows-nat.h (last_wait_event): Don't declare.
6433 (wait_for_debug_event): Update comment.
6434 * nat/windows-nat.c (last_wait_event): Now static.
6435
6436 2020-04-08 Tom Tromey <tromey@adacore.com>
6437
6438 * windows-nat.c (wait_for_debug_event): Move to
6439 nat/windows-nat.c.
6440 * nat/windows-nat.h (wait_for_debug_event): Declare.
6441 * nat/windows-nat.c (wait_for_debug_event): Move from
6442 windows-nat.c. No longer static.
6443
6444 2020-04-08 Tom Tromey <tromey@adacore.com>
6445
6446 * windows-nat.c (get_windows_debug_event): Use
6447 fetch_pending_stop.
6448 * nat/windows-nat.h (fetch_pending_stop): Declare.
6449 * nat/windows-nat.c (fetch_pending_stop): New function.
6450
6451 2020-04-08 Tom Tromey <tromey@adacore.com>
6452
6453 * windows-nat.c (windows_continue): Use matching_pending_stop and
6454 continue_last_debug_event.
6455 * nat/windows-nat.h (matching_pending_stop)
6456 (continue_last_debug_event): Declare.
6457 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6458 (matching_pending_stop, continue_last_debug_event): New
6459 functions.
6460
6461 2020-04-08 Tom Tromey <tromey@adacore.com>
6462
6463 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6464 (handle_exception_result): Move to nat/windows-nat.h.
6465 (DEBUG_EXCEPTION_SIMPLE): Remove.
6466 (windows_nat::handle_ms_vc_exception): New function.
6467 (handle_exception): Move to nat/windows-nat.c.
6468 (get_windows_debug_event): Update.
6469 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6470 nat/windows-nat.c.
6471 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6472 (handle_exception_result): Move from windows-nat.c.
6473 (handle_exception): Declare.
6474 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6475 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6476 windows-nat.c.
6477
6478 2020-04-08 Tom Tromey <tromey@adacore.com>
6479
6480 * windows-nat.c (exception_count, event_count): Remove.
6481 (handle_exception, get_windows_debug_event)
6482 (do_initial_windows_stuff): Update.
6483
6484 2020-04-08 Tom Tromey <tromey@adacore.com>
6485
6486 * windows-nat.c (windows_nat::handle_load_dll)
6487 (windows_nat::handle_unload_dll): Rename. No longer static.
6488 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6489 Declare.
6490
6491 2020-04-08 Tom Tromey <tromey@adacore.com>
6492
6493 * complaints.h (stop_whining): Declare at top-level.
6494 (complaint): Don't declare stop_whining.
6495
6496 2020-04-08 Tom Tromey <tromey@adacore.com>
6497
6498 * windows-nat.c (windows_nat::handle_output_debug_string):
6499 Rename. No longer static.
6500 * nat/windows-nat.h (handle_output_debug_string): Declare.
6501
6502 2020-04-08 Tom Tromey <tromey@adacore.com>
6503
6504 * windows-nat.c (current_process_handle, current_process_id)
6505 (main_thread_id, last_sig, current_event, last_wait_event)
6506 (current_windows_thread, desired_stop_thread_id, pending_stops)
6507 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6508 (display_selectors, fake_create_process)
6509 (get_windows_debug_event): Update.
6510 * nat/windows-nat.h (current_process_handle, current_process_id)
6511 (main_thread_id, last_sig, current_event, last_wait_event)
6512 (current_windows_thread, desired_stop_thread_id, pending_stops)
6513 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6514 * nat/windows-nat.c (current_process_handle, current_process_id)
6515 (main_thread_id, last_sig, current_event, last_wait_event)
6516 (current_windows_thread, desired_stop_thread_id, pending_stops)
6517 (siginfo_er): New globals. Move from windows-nat.c.
6518
6519 2020-04-08 Tom Tromey <tromey@adacore.com>
6520
6521 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6522 (handle_load_dll): Update.
6523 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6524
6525 2020-04-08 Tom Tromey <tromey@adacore.com>
6526
6527 * windows-nat.c (enum thread_disposition_type): Move to
6528 nat/windows-nat.h.
6529 (windows_nat::thread_rec): Rename from thread_rec. No longer
6530 static.
6531 (windows_add_thread, windows_nat_target::fetch_registers)
6532 (windows_nat_target::store_registers, handle_exception)
6533 (windows_nat_target::resume, get_windows_debug_event)
6534 (windows_nat_target::get_tib_address)
6535 (windows_nat_target::thread_name)
6536 (windows_nat_target::thread_alive): Update.
6537 * nat/windows-nat.h (enum thread_disposition_type): Move from
6538 windows-nat.c.
6539 (thread_rec): Declare.
6540
6541 2020-04-08 Tom Tromey <tromey@adacore.com>
6542
6543 * windows-nat.c: Add "using namespace".
6544 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6545 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6546
6547 2020-04-08 Tom Tromey <tromey@adacore.com>
6548
6549 * nat/windows-nat.h (struct windows_thread_info): Declare
6550 destructor.
6551 * nat/windows-nat.c (~windows_thread_info): New.
6552
6553 2020-04-08 Tom Tromey <tromey@adacore.com>
6554
6555 PR gdb/22992
6556 * windows-nat.c (current_event): Update comment.
6557 (last_wait_event, desired_stop_thread_id): New globals.
6558 (struct pending_stop): New.
6559 (pending_stops): New global.
6560 (windows_nat_target) <stopped_by_sw_breakpoint>
6561 <supports_stopped_by_sw_breakpoint>: New methods.
6562 (windows_fetch_one_register): Add assertions. Adjust PC.
6563 (windows_continue): Handle pending stops. Suspend other threads
6564 when stepping. Use last_wait_event
6565 (wait_for_debug_event): New function.
6566 (get_windows_debug_event): Use wait_for_debug_event. Handle
6567 pending stops. Queue spurious stops.
6568 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6569 (windows_nat_target::kill): Use wait_for_debug_event.
6570 * nat/windows-nat.h (struct windows_thread_info)
6571 <stopped_at_software_breakpoint>: New field.
6572 * nat/windows-nat.c (windows_thread_info::resume): Clear
6573 stopped_at_software_breakpoint.
6574
6575 2020-04-08 Tom Tromey <tromey@adacore.com>
6576
6577 * windows-nat.c (enum thread_disposition_type): New.
6578 (thread_rec): Replace "get_context" parameter with "disposition";
6579 change type.
6580 (windows_add_thread, windows_nat_target::fetch_registers)
6581 (windows_nat_target::store_registers, handle_exception)
6582 (windows_nat_target::resume, get_windows_debug_event)
6583 (windows_nat_target::get_tib_address)
6584 (windows_nat_target::thread_name)
6585 (windows_nat_target::thread_alive): Update.
6586
6587 2020-04-08 Tom Tromey <tromey@adacore.com>
6588
6589 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6590 (windows_continue): Use windows_continue::resume.
6591 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6592 resume>: Declare new methods.
6593 * nat/windows-nat.c: New file.
6594 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6595
6596 2020-04-08 Tom Tromey <tromey@adacore.com>
6597
6598 * windows-nat.c (windows_add_thread, windows_delete_thread)
6599 (windows_nat_target::fetch_registers)
6600 (windows_nat_target::store_registers, fake_create_process)
6601 (windows_nat_target::resume, windows_nat_target::resume)
6602 (get_windows_debug_event, windows_nat_target::wait)
6603 (windows_nat_target::pid_to_str)
6604 (windows_nat_target::get_tib_address)
6605 (windows_nat_target::get_ada_task_ptid)
6606 (windows_nat_target::thread_name)
6607 (windows_nat_target::thread_alive): Use lwp, not tid.
6608
6609 2020-04-08 Tom Tromey <tromey@adacore.com>
6610
6611 * windows-nat.c (handle_exception)
6612 (windows_nat_target::thread_name): Update.
6613 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6614 <name>: Now unique_xmalloc_ptr.
6615
6616 2020-04-08 Tom Tromey <tromey@adacore.com>
6617
6618 * windows-nat.c (thread_rec)
6619 (windows_nat_target::fetch_registers): Update.
6620 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6621 Update comment.
6622 <debug_registers_changed, reload_context>: Now bool.
6623
6624 2020-04-08 Tom Tromey <tromey@adacore.com>
6625
6626 * windows-nat.c (windows_add_thread): Use new.
6627 (windows_init_thread_list, windows_delete_thread): Use delete.
6628 (get_windows_debug_event): Update.
6629 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6630 destructor, and initializers.
6631
6632 2020-04-08 Tom Tromey <tromey@adacore.com>
6633
6634 * windows-nat.c (struct windows_thread_info): Remove.
6635 * nat/windows-nat.h: New file.
6636
6637 2020-04-08 Tom Tromey <tromey@adacore.com>
6638
6639 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6640 (thread_rec, windows_add_thread, windows_delete_thread)
6641 (windows_continue): Update.
6642
6643 2020-04-08 Tom Tromey <tromey@adacore.com>
6644
6645 * windows-nat.c (struct windows_thread_info): Remove typedef.
6646 (thread_head): Remove.
6647 (thread_list): New global.
6648 (thread_rec, windows_add_thread, windows_init_thread_list)
6649 (windows_delete_thread, windows_continue): Update.
6650
6651 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6652
6653 * windows-tdep.h (windows_init_abi): Add comment.
6654 (cygwin_init_abi): New declaration.
6655 * windows-tdep.c: Split signal enumeration in two, one for
6656 Windows and one for Cygwin.
6657 (windows_gdb_signal_to_target): Only deal with signal of the
6658 Windows OS ABI.
6659 (cygwin_gdb_signal_to_target): New function.
6660 (windows_init_abi): Rename to windows_init_abi_common, don't set
6661 gdb_signal_to_target gdbarch method. Add new new function with
6662 this name.
6663 (cygwin_init_abi): New function.
6664 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6665 comment. Don't call windows_init_abi.
6666 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6667 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6668 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6669 i386_windows_init_abi_common, don't call windows_init_abi. Add
6670 a new function of this name.
6671 (i386_cygwin_init_abi): New function.
6672 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6673 OS ABI Cygwin.
6674
6675 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6676
6677 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6678 parameter.c.
6679 (dwarf2_read_gdb_index): Update.
6680
6681 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6682
6683 * nbsd-tdep.c: Include "objfiles.h".
6684 (nbsd_skip_solib_resolver): New.
6685 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6686
6687 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6688
6689 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6690 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6691 with DW_LLE_base_addressx are being emitted in DWARFv5.
6692 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6693 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6694 unsigned integer.
6695
6696 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6697
6698 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6699 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6700 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6701 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6702 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6703 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6704 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6705
6706
6707 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6708
6709 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6710 (read_loclist_index): New function definition.
6711 (lookup_loclist_base): New function definition.
6712 (read_loclist_header): New function definition.
6713 (dwarf2_cu): Add loclist_base and loclist_header field.
6714 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6715 (read_full_die_1): Read the value of DW_AT_loclists_base.
6716 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6717 (read_attribute_value): Handle DW_FORM_loclistx.
6718 (skip_one_die): Handle DW_FORM_loclistx.
6719 (loclist_header): New structure declaration.
6720 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6721
6722 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6723
6724 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6725 constructor. Remove `addr` parameter from other constructor and
6726 add `per_cu` parameter.
6727 * dwarf2/read.c (create_partial_symtab): Update.
6728
6729 2020-04-07 Tom de Vries <tdevries@suse.de>
6730
6731 PR symtab/25796
6732 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6733 (partial_die_info::fixup): Inherit has_const_value.
6734
6735 2020-04-07 Tom de Vries <tdevries@suse.de>
6736
6737 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6738 symbols without address.
6739
6740 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6741
6742 * nbsd-nat.h (struct thread_info): Add forward declaration.
6743 (nbsd_nat_target::thread_alive): Add.
6744 (nbsd_nat_target::thread_name): Likewise.
6745 (nbsd_nat_target::update_thread_list): Likewise.
6746 (update_thread_list::post_attach): Likewise.
6747 (post_attach::pid_to_str): Likewise.
6748 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6749 (nbsd_thread_lister): Add.
6750 (nbsd_nat_target::thread_alive): Likewise.
6751 (nbsd_nat_target::thread_name): Likewise.
6752 (nbsd_add_threads): Likewise.
6753 (update_thread_list::post_attach): Likewise.
6754 (nbsd_nat_target::update_thread_list): Likewise.
6755 (post_attach::pid_to_str): Likewise.
6756
6757 2020-04-06 Tom Tromey <tromey@adacore.com>
6758
6759 * ada-valprint.c (print_variant_part): Extract the variant field.
6760 (print_field_values): Use the field as the outer value when
6761 recursing.
6762
6763 2020-04-06 Tom Tromey <tromey@adacore.com>
6764
6765 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6766 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6767 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6768 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6769 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6770
6771 2020-04-06 Tom Tromey <tromey@adacore.com>
6772
6773 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6774 TYPE_CODE_ERROR.
6775
6776 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6777
6778 * nbsd-tdep.c: Include "gdbarch.h".
6779 Define enum with NetBSD signal numbers.
6780 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6781 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6782 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6783 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6784 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6785 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6786 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6787 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6788 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6789 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6790 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6791 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6792
6793 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6794
6795 PR gdb/25325
6796 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6797
6798 2020-04-03 Tom Tromey <tromey@adacore.com>
6799
6800 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6801 Read constant block.
6802
6803 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6804
6805 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6806 (gdb_bfd_get_full_section_contents): New declaration.
6807 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6808 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6809 gdb_bfd_get_full_section_contents.
6810
6811 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6812
6813 * exec.c (build_section_table): Replace internal_error with
6814 gdb_assert.
6815 (section_table_xfer_memory_partial): Likewise.
6816 * mdebugread.c (parse_partial_symbols): Likewise.
6817 * psymtab.c (lookup_partial_symbol): Likewise.
6818 * utils.c (wrap_here): Likewise.
6819
6820 2020-04-02 Tom Tromey <tromey@adacore.com>
6821
6822 * f-lang.c (build_fortran_types): Use arch_type to initialize
6823 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6824
6825 2020-04-02 Tom Tromey <tromey@adacore.com>
6826
6827 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6828 of attributes.
6829
6830 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6831 Bernd Edlinger <bernd.edlinger@hotmail.de>
6832 Tom Tromey <tromey@adacore.com>
6833
6834 * buildsym.c (buildsym_compunit::record_line): Remove
6835 deduplication code.
6836
6837 2020-04-02 Tom de Vries <tdevries@suse.de>
6838
6839 PR ada/24671
6840 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6841
6842 2020-04-02 Tom de Vries <tdevries@suse.de>
6843
6844 * dwarf2/read.c (dwarf2_gdb_index_functions,
6845 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6846 NULL.
6847 * psymtab.c (psym_lookup_global_symbol_language): New function.
6848 (psym_functions): Init psym_lookup_global_symbol_language with
6849 psym_lookup_global_symbol_language.
6850 * symfile-debug.c (debug_sym_quick_functions): Init
6851 lookup_global_symbol_language with NULL.
6852 * symfile.c (set_initial_language): Remove fixme comment.
6853 * symfile.h (struct quick_symbol_functions): Add
6854 lookup_global_symbol_language.
6855 * symtab.c (find_quick_global_symbol_language): New function.
6856 (find_main_name): Use find_quick_global_symbol_language.
6857
6858 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6859
6860 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6861
6862 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6863
6864 * buildsym.c (record_line): Fix undefined behavior and preserve
6865 lines at eof.
6866
6867 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6868
6869 * buildsym.c (record_line): Fix the resizing condition.
6870
6871 2020-04-01 Tom Tromey <tom@tromey.com>
6872
6873 * value.h (value_literal_complex): Add comment.
6874 * valops.c (value_literal_complex): Refer to value.h.
6875
6876 2020-04-01 Tom Tromey <tom@tromey.com>
6877
6878 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6879 (scalar_type): New rule, from typebase.
6880 (typebase): Use scalar_type. Recognize complex types.
6881 (field_name): Handle FLOAT_KEYWORD.
6882 (ident_tokens): Add _Complex and __complex__.
6883
6884 2020-04-01 Tom Tromey <tom@tromey.com>
6885
6886 PR exp/25299:
6887 * valarith.c (promotion_type, complex_binop): New functions.
6888 (scalar_binop): Handle complex numbers. Use promotion_type.
6889 (value_pos, value_neg, value_complement): Handle complex numbers.
6890
6891 2020-04-01 Tom Tromey <tom@tromey.com>
6892
6893 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6894 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6895 (parse_number): Handle complex numbers.
6896
6897 2020-04-01 Tom Tromey <tom@tromey.com>
6898
6899 * c-valprint.c (c_decorations): Change complex suffix to "i".
6900
6901 2020-04-01 Tom Tromey <tom@tromey.com>
6902
6903 * valprint.c (generic_value_print_complex): Use accessors.
6904 * value.h (value_real_part, value_imaginary_part): Declare.
6905 * valops.c (value_real_part, value_imaginary_part): New
6906 functions.
6907 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6908
6909 2020-04-01 Tom Tromey <tom@tromey.com>
6910
6911 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6912 (read_range_type): Update.
6913 * mdebugread.c (basic_type): Update.
6914 * go-lang.c (build_go_types): Use init_complex_type.
6915 * gdbtypes.h (struct main_type) <complex_type>: New member.
6916 (init_complex_type): Update.
6917 (arch_complex_type): Don't declare.
6918 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6919 Make name if none given. Use alloc_type_copy. Look for cached
6920 complex type.
6921 (arch_complex_type): Remove.
6922 (gdbtypes_post_init): Use init_complex_type.
6923 * f-lang.c (build_fortran_types): Use init_complex_type.
6924 * dwarf2/read.c (read_base_type): Update.
6925 * d-lang.c (build_d_types): Use init_complex_type.
6926 * ctfread.c (read_base_type): Update.
6927
6928 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6929
6930 * infrun.c (stop_all_threads): Update assertion, plus when
6931 stopping threads, take into account that we might be trying
6932 to stop an all-stop target.
6933 (stop_waiting): Call 'stop_all_threads' if there exists a
6934 non-stop target.
6935
6936 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6937
6938 * target.h (exists_non_stop_target): New function declaration.
6939 * target.c (exists_non_stop_target): New function.
6940
6941 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6942
6943 PR gdb/24789
6944 * eval.c (is_integral_or_integral_reference): New function.
6945 (evaluate_subexp_standard): Allow integer references in
6946 pointer arithmetic.
6947
6948 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6949
6950 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6951 check for no ptid in the stop reply when the target is non-stop.
6952
6953 2020-04-01 Tom Tromey <tromey@adacore.com>
6954
6955 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6956 "name" parameter to rvalue reference. Initialize m_name_holder.
6957 <lookup_name_info>: New overloads.
6958 <name>: Return gdb::string_view.
6959 <c_str>: New method.
6960 <make_ignore_params>: Update.
6961 <search_name_hash>: Update.
6962 <language_lookup_name>: Return const char *.
6963 <m_name>: Change type.
6964 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6965 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6966 (lookup_name_info::match_any): Update.
6967 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6968 Update.
6969 * minsyms.c (linkage_name_str): Update.
6970 * language.c (default_symbol_name_matcher): Update.
6971 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6972 Update.
6973 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6974 (ada_lookup_name_info::ada_lookup_name_info): Update.
6975 (literal_symbol_name_matcher): Update.
6976
6977 2020-04-01 Tom Tromey <tromey@adacore.com>
6978
6979 * psymtab.c (psymtab_search_name): Remove function.
6980 (psym_lookup_symbol): Create search name and lookup name here.
6981 (lookup_partial_symbol): Remove "name" parameter; add
6982 lookup_name.
6983 (psym_expand_symtabs_for_function): Update.
6984
6985 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6986
6987 PR tui/25597:
6988 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6989
6990 2020-03-31 Tom Tromey <tromey@adacore.com>
6991
6992 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6993 memcpy.
6994
6995 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6996
6997 * features/riscv/32bit-csr.xml: Regenerated.
6998 * features/riscv/64bit-csr.xml: Regenerated.
6999
7000 2020-03-30 Tom Tromey <tromey@adacore.com>
7001
7002 * ada-valprint.c (print_variant_part): Update.
7003 * ada-lang.h (ada_which_variant_applies): Update.
7004 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7005 outer_valaddr parameters; replace with "outer" value parameter.
7006 (to_fixed_variant_branch_type): Update.
7007
7008 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7009
7010 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7011 <list>. Remove inclusion of observable.h.
7012 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7013 (struct arch_lwp_info): New struct.
7014 (class ppc_linux_dreg_interface): New class.
7015 (struct ppc_linux_process_info): New struct.
7016 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7017 <low_new_clone, low_forget_process, low_prepare_to_resume>
7018 <copy_thread_dreg_state, mark_thread_stale>
7019 <mark_debug_registers_changed, register_hw_breakpoint>
7020 <clear_hw_breakpoint, register_wp, clear_wp>
7021 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7022 <num_memory_accesses, get_trigger_type>
7023 <create_watchpoint_request, hwdebug_point_cmp>
7024 <init_arch_lwp_info, get_arch_lwp_info>
7025 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7026 methods.
7027 <struct ptid_hash>: New inner struct.
7028 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7029 members.
7030 (saved_dabr_value, hwdebug_info, max_slots_number)
7031 (struct hw_break_tuple, struct thread_points, ppc_threads)
7032 (have_ptrace_hwdebug_interface)
7033 (hwdebug_find_thread_points_by_tid)
7034 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7035 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7036 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7037 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7038 use m_dreg_interface.
7039 (hwdebug_point_cmp): Change to...
7040 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7041 reference arguments instead of pointers.
7042 (ppc_linux_nat_target::ranged_break_num_registers): Use
7043 m_dreg_interface.
7044 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7045 m_dreg_interface. Call register_hw_breakpoint.
7046 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7047 m_dreg_interface. Call clear_hw_breakpoint.
7048 (get_trigger_type): Change to...
7049 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7050 comment.
7051 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7052 use m_dreg_interface. Call register_hw_breakpoint.
7053 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7054 use m_dreg_interface. Call clear_hw_breakpoint.
7055 (can_use_watchpoint_cond_accel): Change to...
7056 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7057 method. Update comment, use m_dreg_interface and
7058 m_process_info.
7059 (calculate_dvc): Change to...
7060 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7061 m_dreg_interface.
7062 (num_memory_accesses): Change to...
7063 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7064 (check_condition): Change to...
7065 (ppc_linux_nat_target::check_condition): ...this method.
7066 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7067 comment, use m_dreg_interface.
7068 (create_watchpoint_request): Change to...
7069 (ppc_linux_nat_target::create_watchpoint_request): ...this
7070 method. Use m_dreg_interface.
7071 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7072 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7073 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7074 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7075 (ppc_linux_nat_target::low_forget_process)
7076 (ppc_linux_nat_target::low_new_fork)
7077 (ppc_linux_nat_target::low_new_clone)
7078 (ppc_linux_nat_target::low_delete_thread)
7079 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7080 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7081 only call mark_thread_stale.
7082 (ppc_linux_thread_exit): Remove.
7083 (ppc_linux_nat_target::stopped_data_address): Change to...
7084 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7085 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7086 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7087 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7088 comment. Call low_stopped_data_address.
7089 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7090 m_dreg_interface.
7091 (ppc_linux_nat_target::masked_watch_num_registers): Use
7092 m_dreg_interface.
7093 (ppc_linux_nat_target::copy_thread_dreg_state)
7094 (ppc_linux_nat_target::mark_thread_stale)
7095 (ppc_linux_nat_target::mark_debug_registers_changed)
7096 (ppc_linux_nat_target::register_hw_breakpoint)
7097 (ppc_linux_nat_target::clear_hw_breakpoint)
7098 (ppc_linux_nat_target::register_wp)
7099 (ppc_linux_nat_target::clear_wp)
7100 (ppc_linux_nat_target::init_arch_lwp_info)
7101 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7102 (_initialize_ppc_linux_nat): Remove observer callback.
7103
7104 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7105
7106 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7107 (ppc_linux_nat_target::auxv_parse)
7108 (ppc_linux_nat_target::read_description)
7109 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7110 Move up.
7111
7112 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7113
7114 * linux-nat.h (low_new_clone): New method.
7115 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7116
7117 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7118
7119 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7120 (dbx_expand_psymtab): ... this.
7121 (start_psymtab): Update.
7122 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7123 (mdebug_expand_psymtab): ... this.
7124 (parse_partial_symbols): Update.
7125 (new_psymtab): Update.
7126 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7127 (xcoff_expand_psymtab): ... this.
7128 (xcoff_start_psymtab): Update.
7129
7130 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7131
7132 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7133 <expand_dependencies>: ... this.
7134 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7135 (partial_symtab::expand_dependencies): ... this.
7136 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7137 Update.
7138 (dwarf2_psymtab::expand_psymtab): Update.
7139 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7140 * mdebugread.c (psymtab_to_symtab_1): Update.
7141 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7142
7143 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7144
7145 * psympriv.h (discard_psymtab): Remove.
7146 * dbxread.c (dbx_end_psymtab): Update.
7147 * xcoffread.c (xcoff_end_psymtab): Update.
7148
7149 2020-03-28 Tom Tromey <tom@tromey.com>
7150
7151 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7152 comment.
7153
7154 2020-03-28 Tom Tromey <tom@tromey.com>
7155
7156 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7157
7158 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7159
7160 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7161
7162 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7163
7164 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7165
7166 2020-03-26 Tom Tromey <tom@tromey.com>
7167
7168 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7169 (mark_common_block_symbol_computed, read_tag_string_type)
7170 (attr_to_dynamic_prop, read_subrange_type): Update.
7171 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7172 to be methods on struct attribute.
7173 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7174 (read_call_site_scope, partial_die_info::read)
7175 (partial_die_info::read, lookup_die_type, follow_die_ref):
7176 Update.
7177 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7178 from dwarf2_get_ref_die_offset.
7179 (attribute::constant_value): New method, from
7180 dwarf2_get_attr_constant_value.
7181 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7182 Declare method.
7183 <constant_value>: New method.
7184
7185 2020-03-26 Tom Tromey <tom@tromey.com>
7186
7187 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7188 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7189 (dwarf_type_encoding_name): Move to stringify.c.
7190 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7191 * dwarf2/stringify.c: New file.
7192 * dwarf2/stringify.h: New file.
7193
7194 2020-03-26 Tom Tromey <tom@tromey.com>
7195
7196 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7197 Rewrite.
7198
7199 2020-03-26 Tom Tromey <tom@tromey.com>
7200
7201 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7202 methods.
7203 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7204 (lookup_ranges_base): Likewise.
7205 (read_cutu_die_from_dwo, read_full_die_1): Update.
7206
7207 2020-03-26 Tom Tromey <tom@tromey.com>
7208
7209 * dwarf2/read.c (read_import_statement, read_file_scope)
7210 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7211 (read_lexical_block_scope, read_call_site_scope)
7212 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7213 (handle_struct_member_die, process_structure_scope)
7214 (update_enumeration_type_from_children)
7215 (process_enumeration_scope, read_array_type, read_common_block)
7216 (read_namespace, read_module, read_subroutine_type): Update.
7217 (sibling_die): Remove.
7218
7219 2020-03-26 Tom Tromey <tom@tromey.com>
7220
7221 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7222 (build_type_psymtabs_reader, read_structure_type)
7223 (read_enumeration_type, read_full_die_1): Update.
7224 (dwarf2_attr_no_follow): Move to die.h.
7225 * dwarf2/die.h (struct die_info) <attr>: New method.
7226
7227 2020-03-26 Tom Tromey <tom@tromey.com>
7228
7229 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7230 <base_address>: Now an optional.
7231 (dwarf2_find_base_address, dwarf2_rnglists_process)
7232 (dwarf2_ranges_process, fill_in_loclist_baton)
7233 (dwarf2_symbol_mark_computed): Update.
7234
7235 2020-03-26 Tom Tromey <tom@tromey.com>
7236
7237 * dwarf2/read.c (struct die_info): Move to die.h.
7238 * dwarf2/die.h: New file.
7239
7240 2020-03-26 Tom Tromey <tom@tromey.com>
7241
7242 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7243 * dwarf2/read.c
7244 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7245 Move to line-header.c.
7246 (read_checked_initial_length_and_offset, read_formatted_entries):
7247 Likewise.
7248 (dwarf_decode_line_header): Split into two.
7249 * dwarf2/line-header.c
7250 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7251 Move from read.c.
7252 (read_checked_initial_length_and_offset, read_formatted_entries):
7253 Likewise.
7254 (dwarf_decode_line_header): New function, split from read.c.
7255
7256 2020-03-26 Tom Tromey <tom@tromey.com>
7257
7258 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7259 Declare method.
7260 * dwarf2/read.c (read_attribute_value): Update.
7261 (dwarf2_per_objfile::read_line_string): Rename from
7262 read_indirect_line_string.
7263 (read_formatted_entries): Update.
7264
7265 2020-03-26 Tom Tromey <tom@tromey.com>
7266
7267 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7268 variable.
7269
7270 2020-03-26 Tom Tromey <tom@tromey.com>
7271
7272 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7273 const.
7274 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7275 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7276 parameter const.
7277
7278 2020-03-26 Tom Tromey <tom@tromey.com>
7279
7280 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7281 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7282 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7283 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7284
7285 2020-03-26 Tom Tromey <tom@tromey.com>
7286
7287 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7288 file_names_size, file_full_name, file_file_name>: Use const.
7289 <file_name_at, file_names>: Add const overload.
7290 * dwarf2/line-header.c (line_header::file_file_name)
7291 (line_header::file_full_name): Update.
7292
7293 2020-03-26 Tom Tromey <tom@tromey.com>
7294
7295 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7296 (macro_start_file, consume_improper_spaces)
7297 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7298 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7299 (dwarf_decode_macros): Move to macro.c.
7300 * dwarf2/macro.c: New file.
7301 * dwarf2/macro.h: New file.
7302 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7303
7304 2020-03-26 Tom Tromey <tom@tromey.com>
7305
7306 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7307 method.
7308 * dwarf2/section.c: New method. From
7309 read_indirect_string_at_offset_from.
7310 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7311 (read_indirect_string_at_offset_from): Move to section.c.
7312 (read_indirect_string_at_offset): Rewrite.
7313 (read_indirect_line_string_at_offset): Remove.
7314 (read_indirect_string, read_indirect_line_string)
7315 (dwarf_decode_macro_bytes): Update.
7316
7317 2020-03-26 Tom Tromey <tom@tromey.com>
7318
7319 * dwarf2/section.h (struct dwarf2_section_info)
7320 <overload_complaint>: Declare.
7321 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7322 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7323 Rename from dwarf2_section_buffer_overflow_complaint.
7324 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7325 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7326
7327 2020-03-26 Tom Tromey <tom@tromey.com>
7328
7329 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7330 Declare.
7331 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7332 Move from read.c.
7333 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7334 to section.c.
7335
7336 2020-03-26 Tom Tromey <tom@tromey.com>
7337
7338 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7339
7340 2020-03-26 Tom Tromey <tom@tromey.com>
7341
7342 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7343 "builder".
7344 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7345 parameter.
7346 (dwarf_decode_macros): Update.
7347
7348 2020-03-26 Tom Tromey <tom@tromey.com>
7349
7350 * dwarf2/read.c (read_attribute_value): Update.
7351 (read_indirect_string_from_dwz): Move to dwz.c; change into
7352 method.
7353 (dwarf_decode_macro_bytes): Update.
7354 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7355 * dwarf2/dwz.c: New file.
7356 * Makefile.in (COMMON_SFILES): Add dwz.c.
7357
7358 2020-03-26 Tom Tromey <tom@tromey.com>
7359
7360 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7361 * dwarf2/read.c: Add include.
7362 * dwarf2/index-write.c: Add include.
7363 * dwarf2/index-cache.c: Add include.
7364 * dwarf2/dwz.h: New file.
7365
7366 2020-03-25 Tom Tromey <tom@tromey.com>
7367
7368 * compile/compile-object-load.c (get_out_value_type): Mention
7369 correct symbol name in error message.
7370
7371 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7372
7373 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7374
7375 2020-03-25 Tom de Vries <tdevries@suse.de>
7376
7377 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7378 * symmisc.c (dump_symtab_1): Print user and includes fields.
7379 (maintenance_info_symtabs): Same.
7380
7381 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7382
7383 PR gdb/25534
7384 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7385 (riscv_regcache_cooked_write): New function.
7386 (riscv_push_dummy_call): Use new function.
7387 (riscv_return_value): Likewise.
7388
7389 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7390
7391 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7392 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7393 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7394 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7395 * infrun.c (follow_fork): Likewise.
7396 (follow_fork_inferior): Likewise.
7397 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7398 * linux-nat.h (class linux_nat_target): Likewise.
7399 * remote.c (class remote_target) <follow_fork>: Likewise.
7400 (remote_target::follow_fork): Likewise.
7401 * target-delegates.c: Re-generate.
7402 * target.c (default_follow_fork): Likewise.
7403 (target_follow_fork): Likewise.
7404 * target.h (struct target_ops) <follow_fork>: Likewise.
7405 (target_follow_fork): Likewise.
7406
7407 2020-03-24 Tom de Vries <tdevries@suse.de>
7408
7409 * psymtab.c (maintenance_info_psymtabs): Print user field.
7410
7411 2020-03-20 Tom Tromey <tromey@adacore.com>
7412
7413 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7414 const.
7415 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7416 const.
7417
7418 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7419
7420 * ptrace.m4: Don't check for ptrace declaration.
7421 * config.in: Re-generate.
7422 * configure: Re-generate.
7423 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7424 not defined.
7425
7426 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7427
7428 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7429 `PTRACE_TYPE_RET'.
7430 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7431 * sparc-nat.c (gdb_ptrace): Likewise.
7432 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7433
7434 2020-03-20 Tom Tromey <tromey@adacore.com>
7435
7436 * c-exp.y (lex_one_token): Fix assert.
7437
7438 2020-03-20 Tom Tromey <tromey@adacore.com>
7439
7440 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7441 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7442 strncpy call.
7443
7444 2020-03-20 Tom Tromey <tromey@adacore.com>
7445
7446 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7447
7448 2020-03-20 Tom Tromey <tromey@adacore.com>
7449
7450 * ada-valprint.c (print_variant_part): Remove parameters; switch
7451 to value-based API.
7452 (print_field_values): Likewise.
7453 (ada_val_print_struct_union): Likewise.
7454 (ada_value_print_1): Update.
7455
7456 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7457
7458 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7459 nbsd_nat_target instead of inf_ptrace_target.
7460 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7461 nbsd_nat_target.
7462
7463 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7464
7465 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7466 it to the ptrace call.
7467 * (store_registers): Likewise.
7468
7469 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7470
7471 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7472 it to the ptrace call.
7473 * (store_registers): Likewise.
7474
7475 2020-03-19 Luis Machado <luis.machado@linaro.org>
7476
7477 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7478 valid, fetch vg value from ptrace.
7479
7480 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7481 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7482 * inf-ptrace.c: Likewise.
7483 * (gdb_ptrace): Add.
7484 * (inf_ptrace_target::resume): Update.
7485 * (inf_ptrace_target::xfer_partial): Likewise.
7486 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7487 * (inf_ptrace_peek_poke): Update.
7488
7489 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7490
7491 * x86-bsd-nat.c (gdb_ptrace): New.
7492 * (x86bsd_dr_set): Add new argument `ptid'.
7493 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7494 x86bsd_dr_set_addr): Update.
7495
7496 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7497
7498 * remote.c (remote_target::process_stop_reply): Handle events for
7499 all threads differently.
7500
7501 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7502
7503 * completer.c (completion_tracker::remove_completion): Define new
7504 function.
7505 * completer.h (completion_tracker::remove_completion): Declare new
7506 function.
7507 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7508 when adding a C++ function symbol.
7509
7510 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7511
7512 * completer.c (completion_tracker::completion_hash_entry): Define
7513 new class.
7514 (advance_to_filename_complete_word_point): Call
7515 recompute_lowest_common_denominator.
7516 (completion_tracker::completion_tracker): Call discard_completions
7517 to setup the hash table.
7518 (completion_tracker::discard_completions): Allow for being called
7519 from the constructor, pass new equal function, and element deleter
7520 when constructing the hash table. Initialise new class member
7521 variables.
7522 (completion_tracker::maybe_add_completion): Remove use of
7523 m_entries_vec, and store more information into m_entries_hash.
7524 (completion_tracker::recompute_lcd_visitor): New function, most
7525 content taken from...
7526 (completion_tracker::recompute_lowest_common_denominator):
7527 ...here, this now just visits each item in the hash calling the
7528 above visitor.
7529 (completion_tracker::build_completion_result): Remove use of
7530 m_entries_vec, call recompute_lowest_common_denominator.
7531 * completer.h (completion_tracker::have_completions): Remove use
7532 of m_entries_vec.
7533 (completion_tracker::completion_hash_entry): Declare new class.
7534 (completion_tracker::recompute_lowest_common_denominator): Change
7535 function signature.
7536 (completion_tracker::recompute_lcd_visitor): Declare new function.
7537 (completion_tracker::m_entries_vec): Delete.
7538 (completion_tracker::m_entries_hash): Initialize to NULL.
7539 (completion_tracker::m_lowest_common_denominator_valid): New
7540 member variable.
7541 (completion_tracker::m_lowest_common_denominator_max_length): New
7542 member variable.
7543
7544 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7545
7546 * regformats/regdef.h: Put reg in gdb namespace.
7547
7548 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7549
7550 * i386-bsd-nat.c (gdb_ptrace): New.
7551 * (i386bsd_fetch_inferior_registers,
7552 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7553 * (i386bsd_fetch_inferior_registers,
7554 i386bsd_store_inferior_registers) Use gdb_ptrace.
7555
7556 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7557
7558 * amd64-bsd-nat.c (gdb_ptrace): New.
7559 * (amd64bsd_fetch_inferior_registers,
7560 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7561 * (amd64bsd_fetch_inferior_registers,
7562 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7563
7564 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7565
7566 * user-regs.c (user_reg::read): Rename to...
7567 (user_reg::xread): ...this.
7568 * (append_user_reg): Rename argument `read' to `xread'.
7569 * (user_reg_add_builtin): Likewise.
7570 * (user_reg_add): Likewise.
7571 * (value_of_user_reg): Likewise.
7572
7573 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7574
7575 * sparc-nat.c (gdb_ptrace): New.
7576 * sparc-nat.c (sparc_fetch_inferior_registers)
7577 (sparc_store_inferior_registers) Remove obsolete comment.
7578 * sparc-nat.c (sparc_fetch_inferior_registers)
7579 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7580 * sparc-nat.c (sparc_fetch_inferior_registers)
7581 (sparc_store_inferior_registers) Use gdb_ptrace.
7582
7583 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7584
7585 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7586 it to the ptrace call.
7587 * sh-nbsd-nat.c (store_registers): Likewise.
7588
7589 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7590
7591 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7592 nbsd_nat_target instead of inf_ptrace_target.
7593 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7594 nbsd_nat_target.
7595
7596 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7597
7598 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7599
7600 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7601
7602 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7603 <sys/sysctl.h>.
7604 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7605
7606 2020-03-17 Tom de Vries <tdevries@suse.de>
7607
7608 PR gdb/23710
7609 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7610 fields.
7611 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7612 fields.
7613 (process_imported_unit_die): Skip import of c++ CUs.
7614
7615 2020-03-16 Tom Tromey <tom@tromey.com>
7616
7617 * p-valprint.c (pascal_object_print_value): Initialize
7618 base_value.
7619
7620 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7621 Shahab Vahedi <shahab@synopsys.com>
7622
7623 * Makefile.in: Add arch/arc.o
7624 * configure.tgt: Likewise.
7625 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7626 (_initialize_arc_tdep): Don't initialize old target descriptions.
7627 (arc_read_description): New function to cache target descriptions.
7628 * arc-tdep.h (arc_read_description): Add proto type.
7629 * arch/arc.c: New file.
7630 * arch/arc.h: Likewise.
7631 * features/Makefile: Replace old target descriptions with new.
7632 * features/arc-arcompact.c: Remove.
7633 * features/arc-arcompact.xml: Likewise.
7634 * features/arc-v2.c: Likewise
7635 * features/arc-v2.xml: Likewise
7636 * features/arc/aux-arcompact.xml: New file.
7637 * features/arc/aux-v2.xml: Likewise.
7638 * features/arc/core-arcompact.xml: Likewise.
7639 * features/arc/core-v2.xml: Likewise.
7640 * features/arc/aux-arcompact.c: Generate.
7641 * features/arc/aux-v2.c: Likewise.
7642 * features/arc/core-arcompact.c: Likewise.
7643 * features/arc/core-v2.c: Likewise.
7644 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7645
7646 2020-03-16 Tom Tromey <tromey@adacore.com>
7647
7648 PR gdb/25663:
7649 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7650 putting value into bcache.
7651
7652 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7653
7654 PR gdb/21500
7655 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7656 to...
7657 (amd64_windows_init_abi_common): ... this. Don't set size of
7658 long type.
7659 (amd64_windows_init_abi): New function.
7660 (amd64_cygwin_init_abi): New function.
7661 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7662 the Cygwin OS ABI.
7663 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7664 comment.
7665
7666 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7667
7668 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7669 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7670 (pe_import_directory_entry): New struct type.
7671 (is_linked_with_cygwin_dll): New function.
7672 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7673 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7674 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7675
7676 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7677
7678 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7679 i386_cygwin_core_osabi_sniffer.
7680
7681 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7682
7683 * i386-cygwin-tdep.c: Rename to...
7684 * i386-windows-tdep.c: ... this.
7685 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7686 i386-windows-tdep.c.
7687 * configure.tgt: Likewise.
7688
7689 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7690
7691 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7692 * osabi.c (gdb_osabi_names): Add "Windows".
7693 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7694 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7695 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7696 i386_cygwin_osabi_sniffer.
7697 (_initialize_i386_cygwin_tdep): Register OS ABI
7698 GDB_OSABI_WINDOWS for i386.
7699 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7700 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7701 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7702 for x86-64.
7703 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7704 when the target matches '*-*-mingw*'.
7705
7706 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7707
7708 * defs.h (enum gdb_osabi): Move to...
7709 * osabi.h (enum gdb_osabi): ... here.
7710 * gdbarch.sh: Include osabi.h in gdbarch.h.
7711 * gdbarch.h: Re-generate.
7712
7713 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7714
7715 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7716 function.
7717 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7718
7719 2020-03-14 Tom Tromey <tom@tromey.com>
7720
7721 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7722 for C++.
7723 (c_type_print_modifier): Likewise. Add "language" parameter.
7724 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7725 (c_type_print_base_1): Update.
7726 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7727 constants.
7728 * type-stack.c (type_stack::insert): Handle tp_atomic and
7729 tp_restrict.
7730 (type_stack::follow_type_instance_flags): Likewise.
7731 (type_stack::follow_types): Likewise. Merge type-following code.
7732 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7733 (space_identifier, cv_with_space_id)
7734 (const_or_volatile_or_space_identifier_noopt)
7735 (const_or_volatile_or_space_identifier): Remove.
7736 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7737 rules.
7738 (ptr_operator, typebase): Update.
7739 (enum token_flag) <FLAG_C>: New constant.
7740 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7741 "_Atomic".
7742 (lex_one_token): Handle FLAG_C.
7743
7744 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7745
7746 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7747 it to the ptrace call.
7748 * m68k-bsd-nat.c (store_registers): Likewise.
7749
7750 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7751
7752 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7753 gdb_byte *.
7754 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7755 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7756 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7757
7758 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7759
7760 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7761 nbsd_nat_target instead of inf_ptrace_target.
7762 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7763 nbsd_nat_target.
7764
7765 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7766
7767 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7768 register_t.
7769
7770 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7771
7772 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7773 it to the ptrace call.
7774 * alpha-bsd-nat.c (store_registers): Likewise.
7775
7776 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7777
7778 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7779 includes.
7780 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7781 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7782 fill_fpregset): Likewise.
7783
7784 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7785
7786 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7787 nbsd_nat_target instead of inf_ptrace_target.
7788 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7789 nbsd_nat_target.
7790
7791 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7792
7793 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7794 register_t.
7795
7796 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7797
7798 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7799 it to the ptrace call.
7800 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7801 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7802 * arm-nbsd-nat.c (store_register): Likewise.
7803 * arm-nbsd-nat.c (store_regs): Likewise.
7804 * arm-nbsd-nat.c (store_fp_register): Likewise.
7805 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7806
7807 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7808
7809 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7810 nbsd_nat_target instead of inf_ptrace_target.
7811 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7812 nbsd_nat_target.
7813
7814 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7815
7816 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7817 it to the ptrace call.
7818 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7819
7820 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7821
7822 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7823 it to the ptrace call.
7824 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7825
7826 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7827
7828 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7829 gdb_byte *.
7830 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7831
7832 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7833
7834 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7835 instead of inf_ptrace_target.
7836 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7837 nbsd_nat_target.
7838
7839 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7840
7841 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7842 register_t.
7843
7844 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7845
7846 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7847 register_t.
7848
7849 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7850
7851 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7852 register_t.
7853
7854 2020-03-13 Tom Tromey <tom@tromey.com>
7855
7856 * value.h (val_print): Don't declare.
7857 * valprint.h (val_print_array_elements)
7858 (val_print_scalar_formatted, generic_val_print): Don't declare.
7859 * valprint.c (generic_val_print_array): Take a struct value.
7860 (generic_val_print_ptr, generic_val_print_memberptr)
7861 (generic_val_print_bool, generic_val_print_int)
7862 (generic_val_print_char, generic_val_print_complex)
7863 (generic_val_print): Remove.
7864 (generic_value_print): Update.
7865 (do_val_print): Remove unused parameters. Don't call
7866 la_val_print.
7867 (val_print): Remove.
7868 (common_val_print): Update. Don't call value_check_printable.
7869 (val_print_scalar_formatted, val_print_array_elements): Remove.
7870 * rust-lang.c (rust_val_print): Remove.
7871 (rust_language_defn): Update.
7872 * p-valprint.c (pascal_val_print): Remove.
7873 (pascal_value_print_inner): Update.
7874 (pascal_object_print_val_fields, pascal_object_print_val):
7875 Remove.
7876 (pascal_object_print_static_field): Update.
7877 * p-lang.h (pascal_val_print): Don't declare.
7878 * p-lang.c (pascal_language_defn): Update.
7879 * opencl-lang.c (opencl_language_defn): Update.
7880 * objc-lang.c (objc_language_defn): Update.
7881 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7882 * m2-lang.h (m2_val_print): Don't declare.
7883 * m2-lang.c (m2_language_defn): Update.
7884 * language.h (struct language_defn) <la_val_print>: Remove.
7885 * language.c (unk_lang_value_print_inner): Rename. Change
7886 argument types.
7887 (unknown_language_defn, auto_language_defn): Update.
7888 * go-valprint.c (go_val_print): Remove.
7889 * go-lang.h (go_val_print): Don't declare.
7890 * go-lang.c (go_language_defn): Update.
7891 * f-valprint.c (f_val_print): Remove.
7892 * f-lang.h (f_value_print): Don't declare.
7893 * f-lang.c (f_language_defn): Update.
7894 * d-valprint.c (d_val_print): Remove.
7895 * d-lang.h (d_value_print): Don't declare.
7896 * d-lang.c (d_language_defn): Update.
7897 * cp-valprint.c (cp_print_value_fields)
7898 (cp_print_value_fields_rtti, cp_print_value): Remove.
7899 (cp_print_static_field): Update.
7900 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7901 (c_val_print_struct, c_val_print_union, c_val_print_int)
7902 (c_val_print_memberptr, c_val_print): Remove.
7903 * c-lang.h (c_val_print_array, cp_print_value_fields)
7904 (cp_print_value_fields_rtti): Don't declare.
7905 * c-lang.c (c_language_defn, cplus_language_defn)
7906 (asm_language_defn, minimal_language_defn): Update.
7907 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7908 (ada_val_print_enum): Take a struct value.
7909 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7910 (ada_val_print): Remove.
7911 (ada_value_print_1): Update.
7912 (printable_val_type): Remove.
7913 * ada-lang.h (ada_val_print): Don't declare.
7914 * ada-lang.c (ada_language_defn): Update.
7915
7916 2020-03-13 Tom Tromey <tom@tromey.com>
7917
7918 * valprint.c (do_val_print): Update.
7919 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7920 a struct value.
7921 (value_to_value_object_no_release): Declare.
7922 * python/py-value.c (value_to_value_object_no_release): New
7923 function.
7924 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7925 struct value.
7926 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7927 function.
7928 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7929 a struct value.
7930 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7931 Declare.
7932 (gdbscm_apply_val_pretty_printer): Take a struct value.
7933 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7934 value.
7935 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7936 value.
7937 * extension-priv.h (struct extension_language_ops)
7938 <apply_val_pretty_printer>: Take a struct value.
7939 * cp-valprint.c (cp_print_value): Create a struct value.
7940 (cp_print_value): Update.
7941
7942 2020-03-13 Tom Tromey <tom@tromey.com>
7943
7944 * ada-valprint.c (print_field_values): Call common_val_print.
7945
7946 2020-03-13 Tom Tromey <tom@tromey.com>
7947
7948 * ada-valprint.c (val_print_packed_array_elements): Remove
7949 bitoffset and val parameters. Call common_val_print.
7950 (ada_val_print_string): Remove offset, address, and original_value
7951 parameters.
7952 (ada_val_print_array): Update.
7953 (ada_value_print_array): New function.
7954 (ada_value_print_1): Call it.
7955
7956 2020-03-13 Tom Tromey <tom@tromey.com>
7957
7958 * ada-valprint.c (ada_value_print): Use common_val_print.
7959
7960 2020-03-13 Tom Tromey <tom@tromey.com>
7961
7962 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7963
7964 2020-03-13 Tom Tromey <tom@tromey.com>
7965
7966 * ada-valprint.c (ada_value_print_num): New function.
7967 (ada_value_print_1): Use it.
7968
7969 2020-03-13 Tom Tromey <tom@tromey.com>
7970
7971 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7972
7973 2020-03-13 Tom Tromey <tom@tromey.com>
7974
7975 * ada-valprint.c (ada_value_print_ptr): New function.
7976 (ada_value_print_1): Use it.
7977
7978 2020-03-13 Tom Tromey <tom@tromey.com>
7979
7980 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7981 call common_val_print.
7982 (ada_val_print_1): Update.
7983 (ada_value_print_1): New function.
7984 (ada_value_print_inner): Rewrite.
7985
7986 2020-03-13 Tom Tromey <tom@tromey.com>
7987
7988 * cp-valprint.c (cp_print_value_fields): Update.
7989 (cp_print_value): New function.
7990
7991 2020-03-13 Tom Tromey <tom@tromey.com>
7992
7993 * m2-valprint.c (m2_value_print_inner): Use
7994 cp_print_value_fields.
7995 * cp-valprint.c (cp_print_value_fields): New function.
7996 * c-valprint.c (c_value_print_struct): New function.
7997 (c_value_print_inner): Use c_value_print_struct.
7998 * c-lang.h (cp_print_value_fields): Declare.
7999
8000 2020-03-13 Tom Tromey <tom@tromey.com>
8001
8002 * c-valprint.c (c_value_print_array): New function.
8003 (c_value_print_inner): Use it.
8004
8005 2020-03-13 Tom Tromey <tom@tromey.com>
8006
8007 * c-valprint.c (c_value_print_memberptr): New function.
8008 (c_value_print_inner): Use it.
8009
8010 2020-03-13 Tom Tromey <tom@tromey.com>
8011
8012 * c-valprint.c (c_value_print_int): New function.
8013 (c_value_print_inner): Use it.
8014
8015 2020-03-13 Tom Tromey <tom@tromey.com>
8016
8017 * c-valprint.c (c_value_print_ptr): New function.
8018 (c_value_print_inner): Use it.
8019
8020 2020-03-13 Tom Tromey <tom@tromey.com>
8021
8022 * c-valprint.c (c_value_print_inner): Rewrite.
8023
8024 2020-03-13 Tom Tromey <tom@tromey.com>
8025
8026 * valprint.c (generic_value_print_complex): New function.
8027 (generic_value_print): Use it.
8028
8029 2020-03-13 Tom Tromey <tom@tromey.com>
8030
8031 * valprint.c (generic_val_print_float): Don't call
8032 val_print_scalar_formatted.
8033 (generic_val_print, generic_value_print): Update.
8034
8035 2020-03-13 Tom Tromey <tom@tromey.com>
8036
8037 * valprint.c (generic_value_print_char): New function
8038 (generic_value_print): Use it.
8039
8040 2020-03-13 Tom Tromey <tom@tromey.com>
8041
8042 * valprint.c (generic_value_print_int): New function.
8043 (generic_value_print): Use it.
8044
8045 2020-03-13 Tom Tromey <tom@tromey.com>
8046
8047 * valprint.c (generic_value_print_bool): New function.
8048 (generic_value_print): Use it.
8049
8050 2020-03-13 Tom Tromey <tom@tromey.com>
8051
8052 * valprint.c (generic_val_print_func): Simplify.
8053 (generic_val_print, generic_value_print): Update.
8054
8055 2020-03-13 Tom Tromey <tom@tromey.com>
8056
8057 * valprint.c (generic_val_print_flags): Remove.
8058 (generic_val_print, generic_value_print): Update.
8059 (val_print_type_code_flags): Add original_value parameter.
8060
8061 2020-03-13 Tom Tromey <tom@tromey.com>
8062
8063 * valprint.c (generic_val_print): Update.
8064 (generic_value_print): Update.
8065 * valprint.c (generic_val_print_enum): Don't call
8066 val_print_scalar_formatted.
8067
8068 2020-03-13 Tom Tromey <tom@tromey.com>
8069
8070 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8071 * valprint.c (generic_value_print_ptr): New function.
8072
8073 2020-03-13 Tom Tromey <tom@tromey.com>
8074
8075 * valprint.c (generic_value_print): Rewrite.
8076
8077 2020-03-13 Tom Tromey <tom@tromey.com>
8078
8079 * p-valprint.c (pascal_object_print_value_fields)
8080 (pascal_object_print_value): New functions.
8081
8082 2020-03-13 Tom Tromey <tom@tromey.com>
8083
8084 * p-valprint.c (pascal_value_print_inner): Rewrite.
8085
8086 2020-03-13 Tom Tromey <tom@tromey.com>
8087
8088 * f-valprint.c (f_value_print_innner): Rewrite.
8089
8090 2020-03-13 Tom Tromey <tom@tromey.com>
8091
8092 * m2-valprint.c (m2_print_unbounded_array): New overload.
8093 (m2_print_unbounded_array): Update.
8094 (m2_print_array_contents): Take a struct value.
8095 (m2_value_print_inner): Rewrite.
8096
8097 2020-03-13 Tom Tromey <tom@tromey.com>
8098
8099 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8100 (d_value_print_inner): New function.
8101 * d-lang.h (d_value_print_inner): Declare.
8102 * d-lang.c (d_language_defn): Use d_value_print_inner.
8103
8104 2020-03-13 Tom Tromey <tom@tromey.com>
8105
8106 * go-valprint.c (go_value_print_inner): New function.
8107 * go-lang.h (go_value_print_inner): Declare.
8108 * go-lang.c (go_language_defn): Use go_value_print_inner.
8109
8110 2020-03-13 Tom Tromey <tom@tromey.com>
8111
8112 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8113 API.
8114 (rust_val_print): Rewrite.
8115 (rust_value_print_inner): New function, from rust_val_print.
8116 (rust_language_defn): Use rust_value_print_inner.
8117
8118 2020-03-13 Tom Tromey <tom@tromey.com>
8119
8120 * ada-valprint.c (ada_value_print_inner): New function.
8121 * ada-lang.h (ada_value_print_inner): Declare.
8122 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8123
8124 2020-03-13 Tom Tromey <tom@tromey.com>
8125
8126 * f-valprint.c (f_value_print_innner): New function.
8127 * f-lang.h (f_value_print_innner): Declare.
8128 * f-lang.c (f_language_defn): Use f_value_print_innner.
8129
8130 2020-03-13 Tom Tromey <tom@tromey.com>
8131
8132 * p-valprint.c (pascal_value_print_inner): New function.
8133 * p-lang.h (pascal_value_print_inner): Declare.
8134 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8135
8136 2020-03-13 Tom Tromey <tom@tromey.com>
8137
8138 * m2-valprint.c (m2_value_print_inner): New function.
8139 * m2-lang.h (m2_value_print_inner): Declare.
8140 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8141
8142 2020-03-13 Tom Tromey <tom@tromey.com>
8143
8144 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8145 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8146 * c-valprint.c (c_value_print_inner): New function.
8147 * c-lang.h (c_value_print_inner): Declare.
8148 * c-lang.c (c_language_defn, cplus_language_defn)
8149 (asm_language_defn, minimal_language_defn): Use
8150 c_value_print_inner.
8151
8152 2020-03-13 Tom Tromey <tom@tromey.com>
8153
8154 * p-valprint.c (pascal_object_print_value_fields): Now static.
8155 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8156
8157 2020-03-13 Tom Tromey <tom@tromey.com>
8158
8159 * c-valprint.c (c_val_print_array): Simplify.
8160
8161 2020-03-13 Tom Tromey <tom@tromey.com>
8162
8163 * valprint.c (value_print_array_elements): New function.
8164 * valprint.h (value_print_array_elements): Declare.
8165
8166 2020-03-13 Tom Tromey <tom@tromey.com>
8167
8168 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8169 * mips-tdep.c (mips_print_register): Use
8170 value_print_scalar_formatted.
8171
8172 2020-03-13 Tom Tromey <tom@tromey.com>
8173
8174 * valprint.h (value_print_scalar_formatted): Declare.
8175 * valprint.c (value_print_scalar_formatted): New function.
8176
8177 2020-03-13 Tom Tromey <tom@tromey.com>
8178
8179 * valprint.h (generic_value_print): Declare.
8180 * valprint.c (generic_value_print): New function.
8181
8182 2020-03-13 Tom Tromey <tom@tromey.com>
8183
8184 * valprint.c (do_val_print): Call la_value_print_inner, if
8185 available.
8186 * rust-lang.c (rust_language_defn): Update.
8187 * p-lang.c (pascal_language_defn): Update.
8188 * opencl-lang.c (opencl_language_defn): Update.
8189 * objc-lang.c (objc_language_defn): Update.
8190 * m2-lang.c (m2_language_defn): Update.
8191 * language.h (struct language_defn) <la_value_print_inner>: New
8192 member.
8193 * language.c (unknown_language_defn, auto_language_defn): Update.
8194 * go-lang.c (go_language_defn): Update.
8195 * f-lang.c (f_language_defn): Update.
8196 * d-lang.c (d_language_defn): Update.
8197 * c-lang.c (c_language_defn, cplus_language_defn)
8198 (asm_language_defn, minimal_language_defn): Update.
8199 * ada-lang.c (ada_language_defn): Update.
8200
8201 2020-03-13 Tom Tromey <tom@tromey.com>
8202
8203 * c-valprint.c (c_value_print): Use common_val_print.
8204
8205 2020-03-13 Tom Tromey <tom@tromey.com>
8206
8207 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8208
8209 2020-03-13 Tom Tromey <tom@tromey.com>
8210
8211 * f-valprint.c (f77_print_array_1, f_val_print): Use
8212 common_val_print.
8213
8214 2020-03-13 Tom Tromey <tom@tromey.com>
8215
8216 * riscv-tdep.c (riscv_print_one_register_info): Use
8217 common_val_print.
8218
8219 2020-03-13 Tom Tromey <tom@tromey.com>
8220
8221 * mi/mi-main.c (output_register): Use common_val_print.
8222
8223 2020-03-13 Tom Tromey <tom@tromey.com>
8224
8225 * infcmd.c (default_print_one_register_info): Use
8226 common_val_print.
8227
8228 2020-03-13 Tom Tromey <tom@tromey.com>
8229
8230 * valprint.h (common_val_print_checked): Declare.
8231 * valprint.c (common_val_print_checked): New function.
8232 * stack.c (print_frame_arg): Use common_val_print_checked.
8233
8234 2020-03-13 Tom Tromey <tom@tromey.com>
8235
8236 * valprint.c (do_val_print): New function, from val_print.
8237 (val_print): Use do_val_print.
8238 (common_val_print): Use do_val_print.
8239
8240 2020-03-13 Tom Tromey <tom@tromey.com>
8241
8242 * valprint.c (value_print): Use scoped_value_mark.
8243
8244 2020-03-13 Tom de Vries <tdevries@suse.de>
8245
8246 PR symtab/25646
8247 * psymtab.c (partial_symtab::partial_symtab): Don't set
8248 globals_offset and statics_offset. Push element onto
8249 current_global_psymbols and current_static_psymbols stacks.
8250 (concat): New function.
8251 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8252 element from current_global_psymbols and current_static_psymbols
8253 stacks. Concat popped elements to global_psymbols and
8254 static_symbols.
8255 (add_psymbol_to_list): Use current_global_psymbols and
8256 current_static_psymbols stacks.
8257 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8258 current_static_psymbols fields.
8259
8260 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8261
8262 * corelow.c (sniff_core_bfd): Remove.
8263 (class core_target) <m_core_vec>: Remove.
8264 (core_target::core_target): Update.
8265 (core_file_fns): Remove.
8266 (deprecated_add_core_fns): Remove.
8267 (default_core_sniffer): Remove.
8268 (sniff_core_bfd): Remove.
8269 (default_check_format): Remove.
8270 (gdb_check_format): Remove.
8271 (core_target_open): Update.
8272 (core_target::get_core_register_section): Update.
8273 (get_core_registers_cb): Update.
8274 (core_target::fetch_registers): Update.
8275 * gdbcore.h (struct core_fns): Remove.
8276 (deprecated_add_core_fns): Remove.
8277 (default_core_sniffer): Remove.
8278 (default_check_format): Remove.
8279
8280 2020-03-12 Tom Tromey <tom@tromey.com>
8281
8282 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8283 CORE_ADDR.
8284 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8285
8286 2020-03-12 Tom Tromey <tom@tromey.com>
8287
8288 * remote.c (remote_target::download_tracepoint)
8289 (remote_target::enable_tracepoint)
8290 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8291 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8292 sprintf_vma.
8293
8294 2020-03-12 Tom Tromey <tom@tromey.com>
8295
8296 * symfile-mem.c: Update CORE_ADDR size assert.
8297
8298 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8299
8300 * selftest.m4: Move to gdbsupport/.
8301 * acinclude.m4: Update path to selftest.m4.
8302
8303 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8304
8305 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8306 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8307 gdbarch-selfselftests.c and selftest-arch.c.
8308 (SUBDIR_UNITTESTS_OBS): Rename to...
8309 (SELFTESTS_OBS): ... this.
8310 (COMMON_SFILES): Remove disasm-selftests.c and
8311 gdbarch-selftests.c.
8312 * configure.ac: Don't add selftest-arch.{c,o} to
8313 CONFIG_{SRCS,OBS}.
8314 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8315 preprocessor conditions.
8316
8317 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8318
8319 * configure.ac: Don't source bfd/development.sh.
8320 * selftest.m4: Modify comment.
8321 * configure: Re-generate.
8322
8323 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8324
8325 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8326 not "true" or "false".
8327 * configure: Re-generate.
8328
8329 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8330
8331 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8332 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8333 renamed to arm_nbsd_supply_gregset.
8334 (fetch_register): Update to call arm_nbsd_supply_gregset.
8335 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8336 (arm_netbsd_nat_target::fetch_registers): Update.
8337 (fetch_elfcore_registers): Removed.
8338 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8339 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8340 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8341 not require NetBSD system headers.
8342 (arm_nbsd_regset): New struct.
8343 (arm_nbsd_iterate_over_regset_sections): New function.
8344 (arm_netbsd_init_abi_common): Updated to call
8345 set_gdbarch_iterate_over_regset_sections.
8346 * arm-nbsd-tdep.h: New file.
8347
8348 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8349
8350 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8351 recursion.
8352
8353 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8354
8355 * configure: Re-generate.
8356
8357 2020-03-11 Tom Tromey <tromey@adacore.com>
8358
8359 * ada-typeprint.c (print_choices): Fix comment.
8360
8361 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8362
8363 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8364 previous item in the list, when the list has no items.
8365
8366 2020-03-11 Tom de Vries <tdevries@suse.de>
8367
8368 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8369 PROP_LOCLIST handling code.
8370
8371 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8372
8373 * buildsym-legacy.c (record_line): Pass extra parameter to
8374 record_line.
8375 * buildsym.c (buildsym_compunit::record_line): Take an extra
8376 parameter, reduce duplication in the line table, and record the
8377 is_stmt flag in the line table.
8378 * buildsym.h (buildsym_compunit::record_line): Add extra
8379 parameter.
8380 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8381 non-statement lines.
8382 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8383 this to the symtab builder.
8384 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8385 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8386 through to dwarf_record_line_1.
8387 * infrun.c (process_event_stop_test): When stepping, don't stop at
8388 a non-statement instruction, and only refresh the step info when
8389 we land in the middle of a line's range. Also add an extra
8390 comment.
8391 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8392 field.
8393 * record-btrace.c (btrace_find_line_range): Only record lines
8394 marked as is-statement.
8395 * stack.c (frame_show_address): Show the frame address if we are
8396 in a non-statement sal.
8397 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8398 (maintenance_print_one_line_table): Print a header for the is_stmt
8399 column, and include is_stmt information in the output.
8400 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8401 preference to non-statements.
8402 (find_pcs_for_symtab_line): Prefer is-statement entries.
8403 (find_line_common): Likewise.
8404 * symtab.h (struct linetable_entry): Add is_stmt field.
8405 (struct symtab_and_line): Likewise.
8406 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8407 arranging the line table.
8408
8409 2020-03-07 Tom de Vries <tdevries@suse.de>
8410
8411 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8412 DIE.
8413
8414 2020-03-07 Tom Tromey <tom@tromey.com>
8415
8416 * valops.c (value_literal_complex): Remove obsolete comment.
8417 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8418 comment.
8419
8420 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8421
8422 * infrun.h: Forward-declare thread_info.
8423 (set_step_info): Add thread_info parameter, add doc.
8424 * infrun.c (set_step_info): Add thread_info parameter, move doc
8425 to header.
8426 * infrun.c (process_event_stop_test): Pass thread to
8427 set_step_info call.
8428 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8429 set_step_info.
8430 (prepare_one_step): Add thread_info parameter, pass it to
8431 set_step_frame and prepare_one_step (recursive) call.
8432 (step_1): Pass thread to prepare_one_step call.
8433 (step_command_fsm::should_stop): Pass thread to
8434 prepare_one_step.
8435 (until_next_fsm): Pass thread to set_step_frame call.
8436 (finish_command): Pass thread to set_step_info call.
8437
8438 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8439
8440 * windows-tdep.c (windows_solib_create_inferior_hook):
8441 Check if inferior is running.
8442
8443 2020-03-06 Tom de Vries <tdevries@suse.de>
8444
8445 * NEWS: Fix "the the".
8446 * ctfread.c: Same.
8447
8448 2020-03-06 Tom de Vries <tdevries@suse.de>
8449
8450 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8451
8452 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8453
8454 * .dir-locals.el: Add a comment referencing the other copies of
8455 this file.
8456
8457 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8458
8459 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8460 psargs.
8461
8462 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8463
8464 * .gitattributes: New file.
8465
8466 2020-03-04 Tom Tromey <tom@tromey.com>
8467
8468 * symmisc.c (print_symbol_bcache_statistics)
8469 (print_objfile_statistics): Update.
8470 * symfile.c (allocate_symtab): Use intern.
8471 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8472 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8473 macro_cache>: Remove.
8474 <string_cache>: New member.
8475 (struct objfile) <intern>: New methods.
8476 * elfread.c (elf_symtab_read): Use intern.
8477 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8478 (dwarf2_compute_name, dwarf2_physname)
8479 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8480 names.
8481 (guess_partial_die_structure_name): Update.
8482 (partial_die_info::fixup): Intern name.
8483 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8484 name.
8485 (dwarf2_name): Intern name. Update.
8486 * buildsym.c (buildsym_compunit::get_macro_table): Use
8487 string_cache.
8488
8489 2020-03-04 Tom Tromey <tom@tromey.com>
8490
8491 * jit.c (bfd_open_from_target_memory): Make "target" const.
8492 * corefile.c (gnutarget): Now const.
8493 * gdbcore.h (gnutarget): Now const.
8494
8495 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8496
8497 * NEWS: Mention support for WOW64 processes.
8498 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8499 (amd64_windows_segment_register_p): Remove static.
8500 (_initialize_amd64_windows_nat): Update.
8501 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8502 * i386-windows-nat.c (context_offset): Update.
8503 (i386_mappings): Rename and remove static.
8504 (i386_windows_segment_register_p): Remove static.
8505 (_initialize_i386_windows_nat): Update.
8506 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8507 (STATUS_WX86_SINGLE_STEP): New macro.
8508 (EnumProcessModulesEx): New macro.
8509 (Wow64SuspendThread): New macro.
8510 (Wow64GetThreadContext): New macro.
8511 (Wow64SetThreadContext): New macro.
8512 (Wow64GetThreadSelectorEntry): New macro.
8513 (windows_set_context_register_offsets): Add static.
8514 (windows_set_segment_register_p): Likewise.
8515 (windows_add_thread): Adapt for WOW64 processes.
8516 (windows_fetch_one_register): Likewise.
8517 (windows_nat_target::fetch_registers): Likewise.
8518 (windows_store_one_register): Likewise.
8519 (display_selector): Likewise.
8520 (display_selectors): Likewise.
8521 (handle_exception): Likewise.
8522 (windows_continue): Likewise.
8523 (windows_nat_target::resume): Likewise.
8524 (windows_add_all_dlls): Likewise.
8525 (do_initial_windows_stuff): Likewise.
8526 (windows_nat_target::attach): Likewise.
8527 (windows_get_exec_module_filename): Likewise.
8528 (windows_nat_target::create_inferior): Likewise.
8529 (windows_xfer_siginfo): Likewise.
8530 (_initialize_loadable): Initialize Wow64SuspendThread,
8531 Wow64GetThreadContext, Wow64SetThreadContext,
8532 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8533 * windows-nat.h (windows_set_context_register_offsets):
8534 Remove declaration.
8535 (windows_set_segment_register_p): Likewise.
8536 (i386_windows_segment_register_p): Add declaration.
8537 (amd64_windows_segment_register_p): Likewise.
8538
8539 2020-03-04 Luis Machado <luis.machado@linaro.org>
8540
8541 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8542 in "info registers" for AArch64/ARM.
8543
8544 The change caused "info registers" to not print GPR's.
8545
8546 gdb/ChangeLog:
8547
8548 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8549
8550 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8551 when reg->group is empty and reggroup is not.
8552
8553 2020-03-03 Tom Tromey <tromey@adacore.com>
8554
8555 * dwarf2/frame.c (struct dwarf2_frame_cache)
8556 <checked_tailcall_bottom, entry_cfa_sp_offset,
8557 entry_cfa_sp_offset_p>: Remove members.
8558 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8559 (dwarf2_frame_prev_register): Don't call
8560 dwarf2_tailcall_sniffer_first.
8561 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8562 * frame-unwind.c (add_unwinder): New fuction.
8563 (frame_unwind_init): Use it. Add tailcall unwinder.
8564
8565 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8566 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8567
8568 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8569 value should be printed as true.
8570
8571 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8572
8573 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8574 (windows_init_abi): Set and use windows_so_ops.
8575
8576 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8577
8578 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8579 when verifying if dealing with a convenience variable.
8580
8581 2020-03-03 Luis Machado <luis.machado@linaro.org>
8582
8583 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8584
8585 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8586
8587 * infrun.c (gdbarch_supports_displaced_stepping): New.
8588 (use_displaced_stepping): Break up conditions in smaller pieces.
8589 Use gdbarch_supports_displaced_stepping.
8590 (displaced_step_prepare_throw): Use
8591 gdbarch_supports_displaced_stepping.
8592
8593 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8594
8595 * NEWS: Mention new behaviour of the history filename.
8596 * top.c (write_history_p): Add comment.
8597 (show_write_history_p): Add header comment, give a different
8598 message when history writing is on, but the history filename is
8599 empty.
8600 (history_filename): Add comment.
8601 (history_filename_empty): New function.
8602 (show_history_filename): Add header comment, give a different
8603 message when the filename is empty.
8604 (init_history): Compare history_filename against nullptr, and only
8605 read history if the filename is not empty.
8606 (set_history_filename): Add header comment, and only make
8607 non-empty filenames absolute.
8608 (init_main): Make the filename argument to 'set history filename'
8609 optional.
8610
8611 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8612
8613 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8614 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8615 (fetch_fp_register): Update.
8616 (fetch_fp_regs): Update.
8617 (store_fp_register): Update.
8618 (store_fp_regs): Update.
8619 (arm_netbsd_nat_target::read_description): New function.
8620 (fetch_elfcore_registers): Update.
8621
8622 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8623
8624 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8625 general_thread if the stop reply is missing a thread-id.
8626 (remote_target::process_stop_reply): Use the first non-exited
8627 thread if the target didn't pass a thread-id.
8628 * infrun.c (do_target_wait): Move call to
8629 switch_to_inferior_no_thread to ....
8630 (do_target_wait_1): ... here.
8631
8632 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8633
8634 * debuginfod-support.c: Include defs.h first.
8635
8636 2020-02-28 Tom de Vries <tdevries@suse.de>
8637
8638 * symfile.c (set_initial_language): Use default language for lookup.
8639
8640 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8641
8642 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8643 reader variable, pass `this` to read_cutu_die_from_dwo.
8644
8645 2020-02-27 Aaron Merey <amerey@redhat.com>
8646
8647 * source.c (open_source_file): Check for nullptr when computing
8648 srcpath.
8649
8650 2020-02-27 Tom Tromey <tromey@adacore.com>
8651
8652 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8653 member.
8654 (dwarf2_add_field): Don't update nfields.
8655 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8656
8657 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8658
8659 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8660 abs.
8661
8662 2020-02-26 Tom Tromey <tom@tromey.com>
8663
8664 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8665 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8666 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8667 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8668 per_cu_data.
8669
8670 2020-02-26 Tom Tromey <tom@tromey.com>
8671
8672 * dwarf2/index-write.c (psym_index_map): Change type.
8673 (add_address_entry_worker, write_one_signatured_type)
8674 (recursively_count_psymbols, recursively_write_psymbols)
8675 (class debug_names, psyms_seen_size, write_gdbindex)
8676 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8677
8678 2020-02-26 Aaron Merey <amerey@redhat.com>
8679
8680 * Makefile.in: Handle optional debuginfod support.
8681 * NEWS: Update.
8682 * README: Add --with-debuginfod summary.
8683 * config.in: Regenerate.
8684 * configure: Regenerate.
8685 * configure.ac: Handle optional debuginfod support.
8686 * debuginfod-support.c: debuginfod helper functions.
8687 * debuginfod-support.h: Ditto.
8688 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8689 summary.
8690 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8691 when a dwz file cannot be found.
8692 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8693 debuginfo file cannot be found.
8694 * source.c (open_source_file): Query debuginfod servers when a
8695 source file cannot be found.
8696 * top.c (print_gdb_configuration): Include
8697 --{with,without}-debuginfod in the output.
8698
8699 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8700
8701 * thread.c (thr_try_catch_cmd): Print thread name.
8702
8703 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8704
8705 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8706 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8707 dwarf2_fetch_die_type_sect_off): Move to...
8708 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8709 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8710 dwarf2_fetch_die_type_sect_off): ... here.
8711 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8712 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8713 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8714
8715 2020-02-26 Tom de Vries <tdevries@suse.de>
8716
8717 PR gdb/25603
8718 * symfile.c (set_initial_language): Exit-early if
8719 language_mode == language_mode_manual.
8720
8721 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8722
8723 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8724 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8725 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8726
8727 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8728
8729 * gdbtypes.c (create_array_type_with_stride): Handle negative
8730 array strides.
8731 * valarith.c (value_subscripted_rvalue): Likewise.
8732
8733 2020-02-25 Luis Machado <luis.machado@linaro.org>
8734
8735 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8736
8737 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8738
8739 * loc.h (dwarf2_get_die_type): Move to...
8740 * read.h (dwarf2_get_die_type): ... here.
8741 * read.c (dwarf2_get_die_type): Move doc to header.
8742
8743 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8744
8745 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8746 'gnulib/Makefile.in' to the list.
8747
8748 2020-02-24 Tom Tromey <tom@tromey.com>
8749
8750 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8751 Remove.
8752 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8753 XOBNEWVEC.
8754
8755 2020-02-24 Tom Tromey <tom@tromey.com>
8756
8757 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8758 New method.
8759 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8760 (dw2_do_instantiate_symtab, dw2_get_file_names)
8761 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8762
8763 2020-02-24 Tom Tromey <tom@tromey.com>
8764
8765 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8766 make_scoped_restore.
8767 (dwarf2_psymtab::read_symtab): Don't clear
8768 reading_partial_symbols.
8769
8770 2020-02-24 Tom de Vries <tdevries@suse.de>
8771
8772 PR gdb/25592
8773 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8774
8775 2020-02-24 Tom de Vries <tdevries@suse.de>
8776
8777 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8778 commands layout next/prev/regs.
8779
8780 2020-02-22 Tom Tromey <tom@tromey.com>
8781
8782 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8783 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8784
8785 2020-02-22 Tom Tromey <tom@tromey.com>
8786
8787 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8788
8789 2020-02-22 Tom Tromey <tom@tromey.com>
8790
8791 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8792 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8793 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8794 * tui/tui.c (_initialize_tui): Add usage text.
8795
8796 2020-02-22 Tom Tromey <tom@tromey.com>
8797
8798 * tui/tui-win.c (tui_set_focus_command)
8799 (tui_set_win_height_command): Use error_no_arg.
8800 (_initialize_tui_win): Update help text.
8801 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8802
8803 2020-02-22 Tom Tromey <tom@tromey.com>
8804
8805 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8806 * tui/tui-disasm.h (struct tui_disasm_window)
8807 <display_start_addr>: Declare.
8808 * tui/tui-source.h (struct tui_source_window)
8809 <display_start_addr>: Declare.
8810 * tui/tui-winsource.h (struct tui_source_window_base)
8811 <show_source_line, display_start_addr>: New methods.
8812 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8813 Rename and move to protected section.
8814 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8815 (tui_source_window_base::do_erase_source_content): Update.
8816 (tui_source_window_base::show_source_line): Now a method.
8817 (tui_source_window_base::show_source_content)
8818 (tui_source_window_base::tui_source_window_base)
8819 (tui_source_window_base::rerender)
8820 (tui_source_window_base::refill)
8821 (tui_source_window_base::do_scroll_horizontal)
8822 (tui_source_window_base::set_is_exec_point_at)
8823 (tui_source_window_base::update_breakpoint_info)
8824 (tui_source_window_base::update_exec_info): Update.
8825 * tui/tui-source.c (tui_source_window::set_contents)
8826 (tui_source_window::showing_source_p)
8827 (tui_source_window::do_scroll_vertical)
8828 (tui_source_window::location_matches_p)
8829 (tui_source_window::line_is_displayed): Update.
8830 (tui_source_window::display_start_addr): New method.
8831 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8832 (tui_disasm_window::do_scroll_vertical)
8833 (tui_disasm_window::location_matches_p): Update.
8834 (tui_disasm_window::display_start_addr): New method.
8835
8836 2020-02-22 Tom Tromey <tom@tromey.com>
8837
8838 * NEWS: Add entry for gdb.register_window_type.
8839 * tui/tui-layout.h (window_factory): New typedef.
8840 (tui_register_window): Declare.
8841 * tui/tui-layout.c (saved_tui_windows): New global.
8842 (tui_apply_current_layout): Use it.
8843 (tui_register_window): New function.
8844 * python/python.c (do_start_initialization): Call
8845 gdbpy_initialize_tui.
8846 (python_GdbMethods): Add "register_window_type" function.
8847 * python/python-internal.h (gdbpy_register_tui_window)
8848 (gdbpy_initialize_tui): Declare.
8849 * python/py-tui.c: New file.
8850 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8851
8852 2020-02-22 Tom Tromey <tom@tromey.com>
8853
8854 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8855
8856 2020-02-22 Tom Tromey <tom@tromey.com>
8857
8858 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8859 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8860 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8861 (tui_set_win_focus_to): Move from tui-win.c.
8862
8863 2020-02-22 Tom Tromey <tom@tromey.com>
8864
8865 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8866 functions.
8867 (known_window_types): New global.
8868 (tui_get_window_by_name): Reimplement.
8869 (initialize_known_windows): New function.
8870 (validate_window_name): Rewrite.
8871 (_initialize_tui_layout): Call initialize_known_windows.
8872
8873 2020-02-22 Tom Tromey <tom@tromey.com>
8874
8875 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8876 Remove constants.
8877 * tui/tui-winsource.h (struct tui_source_window_base)
8878 <tui_source_window_base>: Remove parameter.
8879 * tui/tui-winsource.c
8880 (tui_source_window_base::tui_source_window_base): Remove
8881 parameter.
8882 (tui_source_window_base::refill): Update.
8883 * tui/tui-stack.h (struct tui_locator_window)
8884 <tui_locator_window>: Update.
8885 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8886 Default the constructor.
8887 * tui/tui-regs.h (struct tui_data_item_window)
8888 <tui_data_item_window>: Default the constructor.
8889 (struct tui_data_window) <tui_data_window>: Likewise.
8890 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8891 Default the constructor.
8892 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8893 Default the constructor.
8894 <type>: Remove.
8895 (struct tui_win_info) <tui_win_info>: Default the constructor.
8896 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8897 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8898 Default the constructor.
8899
8900 2020-02-22 Tom Tromey <tom@tromey.com>
8901
8902 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8903 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8904 * tui/tui-win.c (tui_resize_all): Don't call
8905 tui_delete_invisible_windows.
8906 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8907 done.
8908 (tui_set_layout): Update.
8909 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8910 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8911 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8912
8913 2020-02-22 Tom Tromey <tom@tromey.com>
8914
8915 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8916 correctly.
8917
8918 2020-02-22 Tom Tromey <tom@tromey.com>
8919
8920 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8921
8922 2020-02-22 Tom Tromey <tom@tromey.com>
8923
8924 * tui/tui-winsource.h (struct tui_source_window_iterator)
8925 <inner_iterator>: New etytypedef.
8926 <tui_source_window_iterator>: Take "end" parameter.
8927 <tui_source_window_iterator>: Take iterator.
8928 <operator*, advance>: Update.
8929 <m_iter>: Change type.
8930 <m_end>: New field.
8931 (struct tui_source_windows) <begin, end>: Update.
8932 * tui/tui-layout.c (tui_windows): New global.
8933 (tui_apply_current_layout): Clear tui_windows.
8934 (tui_layout_window::apply): Update tui_windows.
8935 * tui/tui-data.h (tui_windows): Declare.
8936 (all_tui_windows): Now inline function.
8937 (class tui_window_iterator, struct all_tui_windows): Remove.
8938
8939 2020-02-22 Tom Tromey <tom@tromey.com>
8940
8941 PR tui/17850:
8942 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8943 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8944 "height" argument.
8945 (class tui_layout_window) <get_sizes>: Likewise.
8946 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8947 argument.
8948 <get_sizes>: Add "height" argument.
8949 <m_vertical>: New field.
8950 * tui/tui-layout.c (tui_layout_split::clone): Update.
8951 (tui_layout_split::get_sizes): Add "height" argument.
8952 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8953 (tui_new_layout_command): Parse "-horizontal".
8954 (_initialize_tui_layout): Update help string.
8955 (tui_layout_split::specification): Add "-horizontal" when needed.
8956 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8957 argument.
8958 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8959 New methods.
8960
8961 2020-02-22 Tom Tromey <tom@tromey.com>
8962
8963 * tui/tui-layout.h (enum tui_adjust_result): New.
8964 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8965 (class tui_layout_window) <adjust_size>: Return
8966 tui_adjust_result. Rewrite.
8967 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8968 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8969
8970 2020-02-22 Tom Tromey <tom@tromey.com>
8971
8972 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8973 parameter and return types.
8974 (class tui_layout_base) <specification>: Add "depth".
8975 (class tui_layout_window) <specification>: Add "depth".
8976 (class tui_layout_split) <specification>: Add "depth".
8977 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8978 and return types.
8979 (tui_new_layout_command): Parse sub-layouts.
8980 (_initialize_tui_layout): Update help string.
8981 (tui_layout_window::specification): Add "depth".
8982 (add_layout_command): Update.
8983
8984 2020-02-22 Tom Tromey <tom@tromey.com>
8985
8986 * NEWS: Add "tui new-layout" item.
8987 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8988 Add new-layout command to help text.
8989 (validate_window_name): New function.
8990 (tui_new_layout_command): New function.
8991 (_initialize_tui_layout): Register "new-layout".
8992 (tui_layout_window::specification): New method.
8993 (tui_layout_window::specification): New method.
8994 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8995 method.
8996 (class tui_layout_window) <specification>: New method.
8997 (class tui_layout_split) <specification>: New method.
8998
8999 2020-02-22 Tom Tromey <tom@tromey.com>
9000
9001 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9002 * tui/tui-win.c (window_name_completer): Update comment.
9003 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9004 Declare method.
9005 (class tui_layout_window) <replace_window>: Likewise.
9006 (class tui_layout_split) <replace_window>: Likewise.
9007 (tui_set_layout): Don't declare.
9008 (tui_set_initial_layout): Declare function.
9009 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9010 (asm_regs_layout): New globals.
9011 (tui_current_layout, show_layout): Remove.
9012 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9013 (find_layout, tui_apply_layout): New function.
9014 (layout_completer): Remove.
9015 (tui_next_layout): Reimplement.
9016 (tui_next_layout_command): New function.
9017 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9018 (tui_regs_layout): Reimplement.
9019 (tui_regs_layout_command): New function.
9020 (extract_display_start_addr): Rewrite.
9021 (next_layout, prev_layout): Remove.
9022 (tui_layout_window::replace_window): New method.
9023 (tui_layout_split::replace_window): New method.
9024 (destroy_layout): New function.
9025 (layout_list): New global.
9026 (add_layout_command): New function.
9027 (initialize_layouts): Update.
9028 (tui_layout_command): New function.
9029 (_initialize_tui_layout): Install "layout" commands.
9030 * tui/tui-data.h (enum tui_layout_type): Remove.
9031 (tui_current_layout): Don't declare.
9032
9033 2020-02-22 Tom Tromey <tom@tromey.com>
9034
9035 * tui/tui-regs.c (tui_reg_layout): Remove.
9036 (tui_reg_command): Use tui_regs_layout.
9037 * tui/tui-layout.h (tui_reg_command): Declare.
9038 * tui/tui-layout.c (tui_reg_command): New function.
9039
9040 2020-02-22 Tom Tromey <tom@tromey.com>
9041
9042 * tui/tui.c (tui_rl_delete_other_windows): Call
9043 tui_remove_some_windows.
9044 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9045 Declare method.
9046 (class tui_layout_window) <remove_windows>: New method.
9047 (class tui_layout_split) <remove_windows>: Declare.
9048 (tui_remove_some_windows): Declare.
9049 * tui/tui-layout.c (tui_remove_some_windows): New function.
9050 (tui_layout_split::remove_windows): New method.
9051
9052 2020-02-22 Tom Tromey <tom@tromey.com>
9053
9054 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9055 * tui/tui-layout.h (tui_next_layout): Declare.
9056 * tui/tui-layout.c (tui_next_layout): New function.
9057
9058 2020-02-22 Tom Tromey <tom@tromey.com>
9059
9060 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9061 correct coordinates.
9062
9063 2020-02-22 Tom Tromey <tom@tromey.com>
9064
9065 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9066 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9067 DATA_WIN case.
9068
9069 2020-02-22 Tom Tromey <tom@tromey.com>
9070
9071 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9072 TUI_DISASM_WIN, not tui_win_list.
9073
9074 2020-02-22 Tom Tromey <tom@tromey.com>
9075
9076 * valprint.c (generic_val_print_enum_1)
9077 (val_print_type_code_flags): Style member names.
9078 * rust-lang.c (val_print_struct, rust_print_enum)
9079 (rust_print_struct_def, rust_internal_print_type): Style member
9080 names.
9081 * p-valprint.c (pascal_object_print_value_fields): Style member
9082 names. Only call fprintf_symbol_filtered for static members.
9083 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9084 * f-valprint.c (f_val_print): Style member names.
9085 * f-typeprint.c (f_type_print_base): Style member names.
9086 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9087 call fprintf_symbol_filtered for static members.
9088 (cp_print_class_member): Style member names.
9089 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9090 member names.
9091 * ada-valprint.c (ada_print_scalar): Style enum names.
9092 (ada_val_print_enum): Likewise.
9093 * ada-typeprint.c (print_enum_type): Style enum names.
9094
9095 2020-02-21 Tom Tromey <tom@tromey.com>
9096
9097 * psympriv.h (struct partial_symtab): Update comment.
9098
9099 2020-02-21 Tom Tromey <tromey@adacore.com>
9100
9101 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9102 type is CORE_ADDR.
9103
9104 2020-02-21 Tom de Vries <tdevries@suse.de>
9105
9106 PR gdb/25534
9107 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9108 if dependencies[i]->user != NULL.
9109
9110 2020-02-21 Ali Tamur <tamur@google.com>
9111
9112 * dwarf2/read.c (dwarf2_name): Add null check.
9113
9114 2020-02-20 Tom Tromey <tom@tromey.com>
9115
9116 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9117 ">=", in binary search.
9118 (dwarf2_find_containing_comp_unit): New overload.
9119 (run_test): New self-test.
9120 (_initialize_dwarf2_read): Register new test.
9121
9122 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9123
9124 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9125 * riscv-tdep.h: Likewise.
9126 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9127 rv32-only CSR.
9128 * features/riscv/64bit-csr.xml: Regenerated.
9129
9130 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9131 Tom Tromey <tom@tromey.com>
9132
9133 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9134 of 'fputc_unfiltered'.
9135 (putchar_unfiltered): Call 'fputc_unfiltered'.
9136 (fputc_unfiltered): Call 'fputs_unfiltered'.
9137
9138 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9139
9140 * config.in: Regenerate.
9141 * configure: Regenerate.
9142 * configure.ac: Add --with-python-libdir option.
9143 * main.c: Use WITH_PYTHON_LIBDIR.
9144
9145 2020-02-19 Tom Tromey <tom@tromey.com>
9146
9147 * symtab.c (general_symbol_info::compute_and_set_names): Use
9148 obstack_strndup. Simplify call to symbol_set_demangled_name.
9149
9150 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9151
9152 * dwarf2/read.c (allocate_signatured_type_table,
9153 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9154 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9155 Remove objfile parameter, update all callers.
9156
9157 2020-02-19 Doug Evans <dje@google.com>
9158
9159 PR rust/25535
9160 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9161 rust_enum_variant calculation.
9162
9163 2020-02-19 Tom Tromey <tromey@adacore.com>
9164
9165 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9166
9167 2020-02-19 Tom Tromey <tromey@adacore.com>
9168
9169 * ada-lang.c (cache_symbol): Use obstack_strdup.
9170
9171 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9172
9173 * configure: Regenerate.
9174
9175 2020-02-19 Tom Tromey <tromey@adacore.com>
9176
9177 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9178 NULL check.
9179
9180 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9181
9182 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9183
9184 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9185
9186 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9187 if GDBSERVER is not defined.
9188 (riscv_tdesc_cache): Likewise, also store const target_desc.
9189 (STATIC_IN_GDB): Define.
9190 (riscv_create_target_description): Update declaration with
9191 STATIC_IN_GDB.
9192 (riscv_lookup_target_description): New function, only define if
9193 GDBSERVER is not defined.
9194 * arch/riscv.h (riscv_create_target_description): Declare only
9195 when GDBSERVER is defined.
9196 (riscv_lookup_target_description): New declaration when GDBSERVER
9197 is not defined.
9198 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9199 (riscv_linux_read_features): ...this, and return
9200 riscv_gdbarch_features instead of target_desc.
9201 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9202 (riscv_linux_read_description): Rename to...
9203 (riscv_linux_read_features): ...this.
9204 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9205 Update to use riscv_gdbarch_features and
9206 riscv_lookup_target_description.
9207 * riscv-tdep.c (riscv_find_default_target_description): Use
9208 riscv_lookup_target_description instead of
9209 riscv_create_target_description.
9210
9211 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9212
9213 * valprint.c (generic_val_print_enum_1): When printing a flag
9214 enum with value 0 and there is no enumerator with value 0, print
9215 just "0" instead of "(unknown: 0x0)".
9216
9217 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9218
9219 * valprint.c (generic_val_print_enum_1): Print unknown part of
9220 flag enum in hex.
9221
9222 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9223
9224 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9225 flag enums to contain duplicate enumerators.
9226 * valprint.c (generic_val_print_enum_1): Update comment.
9227
9228 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9229
9230 * dwarf2/read.c: Include "count-one-bits.h".
9231 (update_enumeration_type_from_children): If an enumerator has
9232 multiple bits set, don't treat the enumeration as a "flag enum".
9233 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9234 of flag enums have 0 or 1 bit set.
9235
9236 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9237
9238 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9239 conversion.
9240 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9241 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9242 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9243 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9244 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9245
9246 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9247
9248 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9249
9250 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9251
9252 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9253 displaced_step_closure_up.
9254 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9255 (struct displaced_step_closure_up):
9256 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9257 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9258 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9259 Likewise.
9260 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9261 * gdbarch.c, gdbarch.h: Re-generate.
9262 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9263 displaced_step_closure_up.
9264 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9265 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9266 * infrun.h (displaced_step_closure_up): New type alias.
9267 (struct displaced_step_inferior_state) <step_closure>: Change
9268 type to displaced_step_closure_up.
9269 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9270 displaced_step_closure_up.
9271 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9272
9273 2020-02-14 Tom Tromey <tom@tromey.com>
9274
9275 * minidebug.c (gnu_debug_key): New global.
9276 (find_separate_debug_file_in_section): Use it.
9277
9278 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9279
9280 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9281 std::unique_ptr.
9282 * gdbarch.c: Re-generate.
9283 * gdbarch.h: Re-generate.
9284 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9285 change.
9286 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9287 type to std::unique_ptr.
9288 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9289 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9290 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9291 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9292 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9293 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9294 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9295 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9296 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9297
9298 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9299
9300 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9301 std::unique_ptr.
9302 (displaced_step_clear): Rename to...
9303 (displaced_step_reset): ... this. Just call displaced->reset ().
9304 (displaced_step_clear_cleanup): Rename to...
9305 (displaced_step_reset_cleanup): ... this.
9306 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9307 (displaced_step_fixup): Likewise.
9308 (resume_1): Likewise.
9309 (handle_inferior_event): Restore child's memory before calling
9310 displaced_step_fixup on the parent.
9311 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9312 to std::unique_ptr.
9313 <step_closure>: Change type to std::unique_ptr.
9314
9315 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9316
9317 * arm-tdep.c: Include count-one-bits.h.
9318 (cleanup_block_store_pc): Use count_one_bits.
9319 (cleanup_block_load_pc): Use count_one_bits.
9320 (arm_copy_block_xfer): Use count_one_bits.
9321 (thumb2_copy_block_xfer): Use count_one_bits.
9322 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9323 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9324 (thumb_get_next_pcs_raw): Use count_one_bits.
9325 (arm_get_next_pcs_raw): Use count_one_bits_l.
9326 * arch/arm.c (bitcount): Remove.
9327 * arch/arm.h (bitcount): Remove.
9328
9329 2020-02-14 Tom Tromey <tromey@adacore.com>
9330
9331 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9332 Update.
9333 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9334 * dwarf2/loc.c (call_site_find_chain_1): Return
9335 unique_xmalloc_ptr.
9336 (call_site_find_chain): Likewise.
9337
9338 2020-02-14 Richard Biener <rguenther@suse.de>
9339
9340 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9341 on expression with division operators.
9342
9343 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9344
9345 * MAINTAINERS (Write After Approval): Adding myself.
9346
9347 2020-02-12 Tom Tromey <tom@tromey.com>
9348
9349 * event-loop.c (event_data, gdb_event, event_handler_func):
9350 Remove.
9351
9352 2020-02-12 Tom Tromey <tom@tromey.com>
9353
9354 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9355 (dwarf2_frame_objfile_data): Add comment.
9356 (find_comp_unit, set_comp_unit): New functions.
9357 (dwarf2_frame_find_fde): Use find_comp_unit.
9358 (dwarf2_build_frame_info): Use set_comp_unit.
9359
9360 2020-02-12 Tom Tromey <tom@tromey.com>
9361
9362 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9363 (comp_unit): Don't initialize objfile.
9364 (execute_cfa_program): Add text_offset parameter.
9365 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9366 (dwarf2_frame_cache): Update.
9367 (dwarf2_build_frame_info): Don't set "objfile" member.
9368
9369 2020-02-12 Tom Tromey <tom@tromey.com>
9370
9371 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9372 (decode_frame_entry): Likewise.
9373 (dwarf2_build_frame_info): Update.
9374
9375 2020-02-12 Tom Tromey <tom@tromey.com>
9376
9377 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9378 (decode_frame_entry_1): Use the comp_unit obstack.
9379
9380 2020-02-12 Tom Tromey <tom@tromey.com>
9381
9382 * dwarf2/frame.c (struct comp_unit): Add initializers and
9383 constructor.
9384 (dwarf2_frame_objfile_data): Store a comp_unit.
9385 (dwarf2_frame_find_fde): Update.
9386 (dwarf2_build_frame_info): Use "new".
9387
9388 2020-02-12 Tom Tromey <tom@tromey.com>
9389
9390 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9391 (dwarf2_fde_table): Typedef for std::vector.
9392 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9393 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9394 (decode_frame_entry): Update.
9395 (dwarf2_build_frame_info): Use "new".
9396
9397 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9398
9399 * arm-tdep.c (arm_gdbarch_init): Update.
9400 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9401 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9402 have_neon, is_m>: Change to bool.
9403
9404 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9405
9406 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9407
9408 2020-02-12 Tom Tromey <tom@tromey.com>
9409
9410 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9411
9412 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9413
9414 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9415 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9416
9417 2020-02-11 Tom Tromey <tom@tromey.com>
9418
9419 * psymtab.h: Update comment.
9420
9421 2020-02-11 Tom Tromey <tom@tromey.com>
9422
9423 * gdb_obstack.h (struct auto_obstack): Use
9424 DISABLE_COPY_AND_ASSIGN.
9425
9426 2020-02-11 Tom Tromey <tom@tromey.com>
9427
9428 * dwarf2/frame.h (struct objfile): Don't forward declare.
9429
9430 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9431
9432 * cris-tdep.c (cris_supply_gregset): Change signature to match
9433 what struct regset expects.
9434 (cris_regset): New struct.
9435 (fetch_core_registers): Remove.
9436 (cris_iterate_over_regset_sections): New function.
9437 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9438 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9439
9440 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9441
9442 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9443 registers.
9444
9445 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9446
9447 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9448
9449 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9450
9451 * configure: Re-generate.
9452
9453 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9454
9455 * configure: Re-generate.
9456
9457 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9458
9459 * acinclude: Update warning.m4 path.
9460 * warning.m4: Move to gdbsupport.
9461
9462 2020-02-11 Tom Tromey <tromey@adacore.com>
9463
9464 * remote.c (remote_console_output): Update.
9465 * printcmd.c (printf_command): Update.
9466 * event-loop.c (gdb_wait_for_event): Update.
9467 * linux-nat.c (sigchld_handler): Update.
9468 * remote-sim.c (gdb_os_write_stdout): Update.
9469 (gdb_os_flush_stdout): Update.
9470 (gdb_os_flush_stderr): Update.
9471 (gdb_os_write_stderr): Update.
9472 * exceptions.c (print_exception): Update.
9473 * remote-fileio.c (remote_fileio_func_read): Update.
9474 (remote_fileio_func_write): Update.
9475 * tui/tui.c (tui_enable): Update.
9476 * tui/tui-interp.c (tui_interp::init): Update.
9477 * utils.c (init_page_info): Update.
9478 (putchar_unfiltered, fputc_unfiltered): Update.
9479 (gdb_flush): Update.
9480 (emit_style_escape): Update.
9481 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9482 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9483 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9484 (stderr_file::write): Update.
9485 (stderr_file::puts): Update.
9486 * ui-file.h (ui_file_isatty, ui_file_write)
9487 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9488 (ui_file_puts): Don't declare.
9489
9490 2020-02-10 Tom de Vries <tdevries@suse.de>
9491
9492 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9493 sentinel to char *.
9494
9495 2020-02-09 Tom de Vries <tdevries@suse.de>
9496
9497 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9498 filename if it matches "<artificial>".
9499
9500 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9501
9502 * windows-tdep.c (struct enum_value_name): New struct.
9503 (create_enum): New function.
9504 (windows_get_siginfo_type): Create and use enum types.
9505
9506 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9507
9508 * NEWS: Mention $_siginfo support for Windows.
9509 * windows-nat.c (handle_exception): Set siginfo_er.
9510 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9511 (windows_xfer_siginfo): New function.
9512 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9513 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9514 (init_windows_gdbarch_data): New function.
9515 (get_windows_gdbarch_data): New function.
9516 (windows_get_siginfo_type): New function.
9517 (windows_init_abi): Register windows_get_siginfo_type.
9518 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9519
9520 2020-02-08 Tom Tromey <tom@tromey.com>
9521
9522 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9523 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9524 <keep>: Declare method.
9525 <m_keep>: Remove member.
9526 <~cutu_reader>: Remove.
9527 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9528 (cutu_reader::cutu_reader): Update.
9529 (cutu_reader::keep): Rename from ~cutu_reader.
9530 (process_psymtab_comp_unit, build_type_psymtabs_1)
9531 (process_skeletonless_type_unit, load_partial_comp_unit)
9532 (load_full_comp_unit, dwarf2_read_addr_index)
9533 (read_signatured_type): Update.
9534
9535 2020-02-08 Tom Tromey <tom@tromey.com>
9536
9537 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9538 "want_partial_unit" parameter.
9539 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9540 Inline check for DW_TAG_partial_unit.
9541 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9542
9543 2020-02-08 Tom Tromey <tom@tromey.com>
9544
9545 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9546 read.c.
9547 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9548 read.c.
9549
9550 2020-02-08 Tom Tromey <tom@tromey.com>
9551
9552 * dwarf2/read.c (read_address): Move to comp-unit.c.
9553 (dwarf2_rnglists_process, dwarf2_ranges_process)
9554 (read_attribute_value, dwarf_decode_lines_1)
9555 (var_decode_location, decode_locdesc): Update.
9556 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9557 read.c. Remove "cu" parameter.
9558 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9559 method.
9560
9561 2020-02-08 Tom Tromey <tom@tromey.com>
9562
9563 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9564 (read_indirect_line_string): Update.
9565 * dwarf2/comp-unit.c (read_offset): Remove.
9566 (read_comp_unit_head): Update.
9567 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9568 method.
9569 (read_offset): Don't declare.
9570
9571 2020-02-08 Tom Tromey <tom@tromey.com>
9572
9573 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9574 * dwarf2/read.c (struct comp_unit_head): Move to
9575 dwarf2/comp-unit.h.
9576 (enum class rcuh_kind): Move to comp-unit.h.
9577 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9578 (read_comp_unit_head, error_check_comp_unit_head)
9579 (read_and_check_comp_unit_head): Move to comp-unit.c.
9580 (read_offset, dwarf_unit_type_name): Likewise.
9581 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9582 (cutu_reader::cutu_reader, read_call_site_scope)
9583 (find_partial_die, follow_die_offset): Update.
9584 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9585
9586 2020-02-08 Tom Tromey <tom@tromey.com>
9587
9588 * dwarf2/read.c (read_offset_1): Move to leb.c.
9589 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9590 (dwarf_decode_macro_bytes): Update.
9591 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9592 * dwarf2/leb.h (read_offset): Declare.
9593
9594 2020-02-08 Tom Tromey <tom@tromey.com>
9595
9596 * dwarf2/read.c (dwarf2_section_size): Remove.
9597 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9598 Update.
9599 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9600
9601 2020-02-08 Tom Tromey <tom@tromey.com>
9602
9603 * dwarf2/read.c (read_initial_length): Move to leb.c.
9604 * dwarf2/leb.h (read_initial_length): Declare.
9605 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9606 handle_nonstd parameter.
9607 * dwarf2/frame.c (read_initial_length): Remove.
9608 (decode_frame_entry_1): Update.
9609
9610 2020-02-08 Tom Tromey <tom@tromey.com>
9611
9612 * dwarf2/loc.c (dwarf2_find_location_expression)
9613 (dwarf_evaluate_loc_desc::get_tls_address)
9614 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9615 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9616 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9617 (dwarf2_compile_property_to_c)
9618 (dwarf2_loc_desc_get_symbol_read_needs)
9619 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9620 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9621 (loclist_describe_location, loclist_tracepoint_var_ref)
9622 (loclist_generate_c_location): Update.
9623 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9624 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9625 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9626 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9627 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9628 (dwarf2_per_cu_data::addr_size)
9629 (dwarf2_per_cu_data::ref_addr_size)
9630 (dwarf2_per_cu_data::text_offset)
9631 (dwarf2_per_cu_data::addr_type): Now methods.
9632 (per_cu_header_read_in): Make per_cu "const".
9633 (dwarf2_version): Remove.
9634 (dwarf2_per_cu_data::int_type): Now a method.
9635 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9636 (set_die_type, read_array_type, read_subrange_index_type)
9637 (read_tag_string_type, read_subrange_type): Update.
9638 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9639 offset_size, ref_addr_size, text_offset, addr_type, version,
9640 objfile, int_type, addr_sized_int_type>: Declare methods.
9641
9642 2020-02-08 Tom Tromey <tom@tromey.com>
9643
9644 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9645 Move earlier.
9646
9647 2020-02-08 Tom Tromey <tom@tromey.com>
9648
9649 * dwarf2/read.h (dwarf_line_debug): Declare.
9650 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9651 * dwarf2/read.c: Move line_header code to new files.
9652 (dwarf_line_debug): No longer static.
9653 * dwarf2/line-header.c: New file.
9654 * dwarf2/line-header.h: New file.
9655
9656 2020-02-08 Tom Tromey <tom@tromey.com>
9657
9658 * dwarf2/read.c (struct line_header) <file_full_name,
9659 file_file_name>: Return unique_xmalloc_ptr.
9660 (line_header::file_file_name): Update.
9661 (line_header::file_full_name): Update.
9662 (dw2_get_file_names_reader): Update.
9663 (macro_start_file): Update.
9664
9665 2020-02-08 Tom Tromey <tom@tromey.com>
9666
9667 * dwarf2/read.c (struct line_header) <file_full_name,
9668 file_file_name>: Declare methods.
9669 (dw2_get_file_names_reader): Update.
9670 (file_file_name): Now a method.
9671 (file_full_name): Likewise.
9672 (macro_start_file): Update.
9673
9674 2020-02-08 Tom Tromey <tom@tromey.com>
9675
9676 * dwarf2/read.c (dwarf_always_disassemble)
9677 (show_dwarf_always_disassemble): Move to loc.c.
9678 (_initialize_dwarf2_read): Move "always-disassemble" registration
9679 to loc.c.
9680 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9681 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9682 static.
9683 (show_dwarf_always_disassemble): Move from read.c.
9684 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9685
9686 2020-02-08 Tom Tromey <tom@tromey.com>
9687
9688 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9689 (create_quick_file_names_table): Return htab_up.
9690 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9691 Update.
9692 * dwarf2/read.h (struct dwarf2_per_objfile)
9693 <quick_file_names_table>: Now htab_up.
9694
9695 2020-02-08 Tom Tromey <tom@tromey.com>
9696
9697 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9698
9699 2020-02-08 Tom Tromey <tom@tromey.com>
9700
9701 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9702 Rewrite.
9703 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9704 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9705 (abbrev_table::abbrev_table): No longer inline.
9706 (ABBREV_HASH_SIZE): Remove.
9707 (abbrev_table::m_abbrevs): Now an htab_up.
9708
9709 2020-02-08 Tom Tromey <tom@tromey.com>
9710
9711 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9712 (cutu_reader): Update.
9713 (build_type_psymtabs_1): Update.
9714 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9715 (abbrev_table::alloc_abbrev): Update.
9716 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9717 (abbrev_table::read): New static method, renamed from
9718 abbrev_table_read_table.
9719 (abbrev_table::alloc_abbrev)
9720 (abbrev_table::add_abbrev): Now private.
9721 (abbrev_table::abbrev_table): Now private.
9722 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9723
9724 2020-02-08 Tom Tromey <tom@tromey.com>
9725
9726 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9727 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9728 htab_up.
9729
9730 2020-02-08 Tom Tromey <tom@tromey.com>
9731
9732 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9733 htab_up.
9734 (lookup_dwo_unit_in_dwp): Update.
9735 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9736 on obstack.
9737
9738 2020-02-08 Tom Tromey <tom@tromey.com>
9739
9740 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9741 obstack.
9742
9743 2020-02-08 Tom Tromey <tom@tromey.com>
9744
9745 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9746 line_header_hash.
9747 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9748 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9749 Change type to htab_up.
9750
9751 2020-02-08 Tom Tromey <tom@tromey.com>
9752
9753 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9754 htab_up. Don't allocate on obstack.
9755 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9756 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9757 Change type to htab_up.
9758
9759 2020-02-08 Tom Tromey <tom@tromey.com>
9760
9761 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9762 Change type to htab_up.
9763 * dwarf2/read.c (create_signatured_type_table_from_index)
9764 (create_signatured_type_table_from_debug_names)
9765 (create_all_type_units, add_type_unit)
9766 (lookup_dwo_signatured_type, lookup_signatured_type)
9767 (process_skeletonless_type_unit): Update.
9768 (create_debug_type_hash_table, create_debug_types_hash_table):
9769 Change type of types_htab.
9770 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9771 htab_up. Don't allocate on obstack.
9772 (create_cus_hash_table): Change type of cus_htab parameter.
9773 (struct dwo_file) <cus, tus>: Now htab_up.
9774 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9775 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9776 (queue_and_load_all_dwo_tus): Update.
9777 * dwarf2/index-write.c (write_gdbindex): Update.
9778 (write_debug_names): Update.
9779
9780 2020-02-08 Tom Tromey <tom@tromey.com>
9781
9782 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9783 dwarf2/read.c. Remove "next" member. Add constructor ntad
9784 destructor.
9785 (struct dwarf2_per_objfile) <queue>: New member.
9786 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9787 dwarf2/read.h.
9788 (dwarf2_queue, dwarf2_queue_tail): Remove.
9789 (class dwarf2_queue_guard): Add parameter to constructor. Use
9790 DISABLE_COPY_AND_ASSIGN.
9791 <m_per_objfile>: New member.
9792 <~dwarf2_queue_guard>: Rewrite.
9793 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9794 Update.
9795 (~dwarf2_queue_item): New.
9796
9797 2020-02-08 Tom Tromey <tom@tromey.com>
9798
9799 * dwarf2/read.c (struct die_info) <has_children>: New member.
9800 (dw2_get_file_names_reader): Remove has_children.
9801 (dw2_get_file_names): Update.
9802 (read_cutu_die_from_dwo): Remove has_children.
9803 (cutu_reader::init_tu_and_read_dwo_dies)
9804 (cutu_reader::cutu_reader): Update.
9805 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9806 Remove has_children.
9807 (build_type_psymtabs_1, process_skeletonless_type_unit)
9808 (load_partial_comp_unit, load_full_comp_unit): Update.
9809 (create_dwo_cu_reader): Remove has_children.
9810 (create_cus_hash_table, read_die_and_children): Update.
9811 (read_full_die_1,read_full_die): Remove has_children.
9812 (read_signatured_type): Update.
9813 (class cutu_reader) <has_children>: Remove.
9814
9815 2020-02-08 Tom Tromey <tom@tromey.com>
9816
9817 * dwarf2/expr.c: Rename from dwarf2expr.c.
9818 * dwarf2/expr.h: Rename from dwarf2expr.h.
9819 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9820 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9821 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9822 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9823 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9824 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9825 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9826 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9827 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9828 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9829 * dwarf2/loc.c: Rename from dwarf2loc.c.
9830 * dwarf2/loc.h: Rename from dwarf2loc.h.
9831 * dwarf2/read.c: Rename from dwarf2read.c.
9832 * dwarf2/read.h: Rename from dwarf2read.h.
9833 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9834 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9835 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9836 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9837 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9838 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9839 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9840 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9841 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9842 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9843 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9844 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9845 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9846 Update.
9847 * Makefile.in (COMMON_SFILES): Update.
9848 (HFILES_NO_SRCDIR): Update.
9849
9850 2020-02-08 Tom Tromey <tom@tromey.com>
9851
9852 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9853 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9854
9855 2020-02-08 Tom Tromey <tom@tromey.com>
9856
9857 * dwarf2read.h (struct die_info): Don't declare.
9858
9859 2020-02-08 Tom Tromey <tom@tromey.com>
9860
9861 * dwarf2read.h (die_info_ptr): Remove typedef.
9862
9863 2020-02-08 Tom Tromey <tom@tromey.com>
9864
9865 * dwarf2read.c (read_call_site_scope)
9866 (handle_data_member_location, dwarf2_add_member_fn)
9867 (mark_common_block_symbol_computed, read_common_block)
9868 (attr_to_dynamic_prop, partial_die_info::read)
9869 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9870 (dwarf2_symbol_mark_computed, set_die_type): Update.
9871 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9872 method.
9873 (attr_form_is_block): Don't declare.
9874 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9875
9876 2020-02-08 Tom Tromey <tom@tromey.com>
9877
9878 * dwarf2read.c (dwarf2_find_base_address, )
9879 (read_call_site_scope, rust_containing_type)
9880 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9881 (handle_data_member_location, dwarf2_add_member_fn)
9882 (get_alignment, read_structure_type, process_structure_scope)
9883 (mark_common_block_symbol_computed, read_common_block)
9884 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9885 (partial_die_info::read, read_attribute_value, new_symbol)
9886 (lookup_die_type, dwarf2_get_ref_die_offset)
9887 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9888 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9889 (dwarf2_symbol_mark_computed): Update.
9890 * dwarf2/attribute.h (struct attribute) <value_as_address,
9891 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9892 methods.
9893 (value_as_address, attr_form_is_section_offset)
9894 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9895 * dwarf2/attribute.c (attribute::value_as_address)
9896 (attribute::form_is_section_offset, attribute::form_is_constant)
9897 (attribute::form_is_ref): Now methods.
9898
9899 2020-02-08 Tom Tromey <tom@tromey.com>
9900
9901 * dwarf2read.c (struct attribute, DW_STRING)
9902 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9903 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9904 (attr_form_is_block, attr_form_is_section_offset)
9905 (attr_form_is_constant, attr_form_is_ref): Move.
9906 * dwarf2/attribute.h: New file.
9907 * dwarf2/attribute.c: New file, from dwarf2read.c.
9908 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9909
9910 2020-02-08 Tom Tromey <tom@tromey.com>
9911
9912 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9913 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9914 Move.
9915 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9916 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9917 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9918 abbrev.c.
9919 * dwarf2/abbrev.h: New file.
9920 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9921 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9922
9923 2020-02-08 Tom Tromey <tom@tromey.com>
9924
9925 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9926 (dwarf2_section_size, dwarf2_get_section_info)
9927 (create_signatured_type_table_from_debug_names)
9928 (create_addrmap_from_aranges, read_debug_names_from_section)
9929 (get_gdb_index_contents_from_section, read_comp_unit_head)
9930 (error_check_comp_unit_head, read_abbrev_offset)
9931 (create_debug_type_hash_table, init_cu_die_reader)
9932 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9933 (read_comp_units_from_section, create_cus_hash_table)
9934 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9935 (create_dwp_v2_section, dwarf2_rnglists_process)
9936 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9937 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9938 (read_indirect_string_from_dwz, read_addr_index_1)
9939 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9940 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9941 (fill_in_loclist_baton): Update.
9942 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9943 get_containing_section, get_bfd_owner, get_bfd_section,
9944 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9945 (dwarf2_read_section, get_section_name, get_section_file_name)
9946 (get_containing_section, get_section_bfd_owner)
9947 (get_section_bfd_section, get_section_name, get_section_file_name)
9948 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9949 declare.
9950 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9951 (dwarf2_section_info::get_bfd_owner)
9952 (dwarf2_section_info::get_bfd_section)
9953 (dwarf2_section_info::get_name)
9954 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9955 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9956 (dwarf2_section_info::read): Now methods.
9957 * dwarf-index-write.c (class debug_names): Update.
9958
9959 2020-02-08 Tom Tromey <tom@tromey.com>
9960
9961 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9962 Move to dwarf2/section.h.
9963 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9964 (get_section_bfd_section, get_section_name)
9965 (get_section_file_name, get_section_id, get_section_flags)
9966 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9967 dwarf2/section.c.
9968 * dwarf2/section.h: New file.
9969 * dwarf2/section.c: New file, from dwarf2read.c.
9970 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9971
9972 2020-02-08 Tom Tromey <tom@tromey.com>
9973
9974 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9975 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9976 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9977 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9978 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9979 * dwarf2/leb.h: New file, from dwarf2read.c.
9980 * dwarf2/leb.c: New file, from dwarf2read.c.
9981 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9982 Remove.
9983 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9984 (COMMON_SFILES): Add dwarf2/leb.c.
9985
9986 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9987
9988 GDB 9.1 released.
9989
9990 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9991
9992 PR gdb/25190:
9993 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9994 * gdb/remote.c (remote_console_output): Update.
9995 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9996 (ui_file_puts): ...this.
9997 * gdb/ui-file.h (ui_file_puts): Add declaration.
9998 * gdb/utils.c (emit_style_escape): Update.
9999 (flush_wrap_buffer): Update.
10000 (fputs_maybe_filtered): Update.
10001 (fputs_unfiltered): Add function.
10002
10003 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10004
10005 * gdb/event-loop.c (gdb_wait_for_event): Update.
10006 * gdb/printcmd.c (printf_command): Update.
10007 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10008 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10009 (gdb_os_flush_stderr): Update.
10010 * gdb/remote.c (remote_console_output): Update.
10011 * gdb/ui-file.c (gdb_flush): Rename to...
10012 (ui_file_flush): ...this.
10013 (stderr_file::write): Update.
10014 (stderr_file::puts): Update.
10015 * gdb/ui-file.h (gdb_flush): Rename to...
10016 (ui_file_flush): ...this.
10017 * gdb/utils.c (gdb_flush): Add function.
10018 * gdb/utils.h (gdb_flush): Add declaration.
10019
10020 2020-02-07 Tom Tromey <tromey@adacore.com>
10021
10022 PR breakpoints/24915:
10023 * source.c (find_and_open_source): Do not check basenames_may_differ.
10024
10025 2020-02-07 Tom Tromey <tom@tromey.com>
10026
10027 * README: Update gdbserver documentation.
10028 * gdbserver: Move to top level.
10029 * configure.tgt (build_gdbserver): Remove.
10030 * configure.ac: Remove --enable-gdbserver.
10031 * configure: Rebuild.
10032 * Makefile.in (distclean): Don't mention gdbserver.
10033
10034 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10035
10036 * source-cache.c (source_cache::ensure): Surround
10037 get_plain_source_lines with a try/catch.
10038 (source_cache::get_line_charpos): Get rid of try/catch
10039 and only check for the return value of "ensure".
10040 * tui/tui-source.c (tui_source_window::set_contents):
10041 Simplify "nlines" calculation.
10042
10043 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10044
10045 * MAINTAINERS (Write After Approval): Add myself.
10046
10047 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10048
10049 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10050 function call.
10051
10052 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10053
10054 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10055
10056 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10057
10058 * nat/riscv-linux-tdesc.h: New file.
10059 * nat/riscv-linux-tdesc.c: New file, taking code from...
10060 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10061 ... here.
10062 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10063 NATDEPFILES.
10064
10065 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10066
10067 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10068 we don't set the fake simulator ptid to the null_ptid.
10069
10070 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10071
10072 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10073 * gdbthread.h (class thread_info) <resumed>: Likewise.
10074 * infrun.c (resume_1): Likewise.
10075 (proceed): Likewise.
10076 (infrun_thread_stop_requested): Likewise.
10077 (stop_all_threads): Likewise.
10078 (handle_inferior_event): Likewise.
10079 (restart_threads): Likewise.
10080 (finish_step_over): Likewise.
10081 (keep_going_stepped_thread): Likewise.
10082 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10083 (linux_handle_extended_wait): Likewise.
10084 * record-btrace.c (get_thread_current_frame_id): Likewise.
10085 * record-full.c (record_full_wait_1): Likewise.
10086 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10087 * target.c (target_resume): Likewise.
10088 * thread.c (set_running_thread): Likewise.
10089
10090 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10091
10092 * f-valprint.c (f77_print_array_1): Changed datatype of index
10093 variable to LONGEST from int to enable it to contain bound
10094 values correctly.
10095
10096 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10097
10098 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10099 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10100 offsets according to FLEN determined.
10101 (riscv_linux_nat_target::read_description): Determine FLEN
10102 dynamically.
10103 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10104 according to FLEN determined.
10105 (riscv_linux_nat_target::store_registers): Likewise.
10106
10107 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10108
10109 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10110 when reg->group is empty and reggroup is not.
10111
10112 2020-01-31 Tom Tromey <tromey@adacore.com>
10113
10114 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10115 Call beneath target's mourn_inferior after unpushing.
10116
10117 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10118
10119 PR tui/9765
10120 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10121 have enough lines to fill the screen, still return the lowest
10122 address we found.
10123
10124 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10125
10126 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10127 '-', '<', and '>' commands.
10128
10129 2020-01-29 Pedro Alves <palves@redhat.com>
10130 Sergio Durigan Junior <sergiodj@redhat.com>
10131
10132 * infcmd.c (construct_inferior_arguments): Assert that
10133 'argc' is greater than 0.
10134
10135 2020-01-29 Luis Machado <luis.machado@linaro.org>
10136
10137 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10138 (BRK_INSN_MASK): Define to 0xd4200000.
10139 (aarch64_program_breakpoint_here_p): New function.
10140 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10141 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10142 breakpoint.c.
10143 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10144 breakpoint.h
10145 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10146 call gdbarch_program_breakpoint_here_p.
10147 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10148 default_program_breakpoint_here_p, changed return type to bool and
10149 simplified.
10150 * breakpoint.h (program_breakpoint_here): Moved prototype to
10151 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10152 return type to bool.
10153 * gdbarch.c: Regenerate.
10154 * gdbarch.h: Regenerate.
10155 * gdbarch.sh (program_breakpoint_here_p): New method.
10156 * infrun.c (handle_signal_stop): Call
10157 gdbarch_program_breakpoint_here_p.
10158
10159 2020-01-26 Tom Tromey <tom@tromey.com>
10160
10161 * ctfread.c (struct ctf_fp_info): Reindent.
10162 (_initialize_ctfread): Remove.
10163
10164 2020-01-26 Tom Tromey <tom@tromey.com>
10165
10166 * psymtab.c (partial_map_expand_apply)
10167 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10168 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10169 (psym_print_stats, psym_expand_symtabs_for_function)
10170 (psym_map_symbol_filenames, psym_map_matching_symbols)
10171 (psym_expand_symtabs_matching)
10172 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10173 (maintenance_check_psymtabs): Use new methods.
10174 * psympriv.h (struct partial_symtab) <readin_p,
10175 get_compunit_symtab>: New methods.
10176 <readin, compunit_symtab>: Remove members.
10177 (struct standard_psymtab): New.
10178 (struct legacy_psymtab): Derive from standard_psymtab.
10179 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10180 standard_psymtab.
10181 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10182
10183 2020-01-26 Tom Tromey <tom@tromey.com>
10184
10185 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10186 read_dependencies. Add assert.
10187 * psymtab.c (partial_symtab::read_dependencies): New method.
10188 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10189 method.
10190 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10191 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10192 read_dependencies.
10193 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10194 Add assert.
10195
10196 2020-01-26 Tom Tromey <tom@tromey.com>
10197
10198 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10199 Call expand_psymtab.
10200 (xcoff_read_symtab): Call expand_psymtab.
10201 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10202 legacy_expand_psymtab.
10203 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10204 method.
10205 (struct legacy_psymtab) <expand_psymtab>: Implement.
10206 <legacy_expand_psymtab>: New member.
10207 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10208 (parse_partial_symbols): Set legacy_expand_psymtab.
10209 (psymtab_to_symtab_1): Change argument order. Call
10210 expand_psymtab.
10211 (new_psymtab): Set legacy_expand_psymtab.
10212 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10213 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10214 expand_psymtab.
10215 (dwarf2_psymtab::expand_psymtab): Rename from
10216 psymtab_to_symtab_1. Call expand_psymtab.
10217 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10218 (dbx_end_psymtab): Likewise.
10219 (dbx_psymtab_to_symtab_1): Change argument order. Call
10220 expand_psymtab.
10221 (dbx_read_symtab): Call expand_psymtab.
10222 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10223 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10224 (ctf_psymtab::read_symtab): Call expand_psymtab.
10225
10226 2020-01-26 Tom Tromey <tom@tromey.com>
10227
10228 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10229 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10230 messages.
10231 * mdebugread.c (mdebug_read_symtab): Remove prints.
10232 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10233 assert.
10234 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10235
10236 2020-01-26 Tom Tromey <tom@tromey.com>
10237
10238 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10239 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10240 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10241 legacy_symtab.
10242 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10243 * psymtab.c (psymtab_to_symtab): Call method.
10244 (dump_psymtab): Update.
10245 * psympriv.h (struct partial_symtab): Add virtual destructor.
10246 <read_symtab>: New method.
10247 (struct legacy_symtab): New.
10248 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10249 (struct pst_map) <pst>: Now a legacy_psymtab.
10250 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10251 (new_psymtab): Use legacy_psymtab.
10252 * dwarf2read.h (struct dwarf2_psymtab): New.
10253 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10254 * dwarf2read.c (dwarf2_create_include_psymtab)
10255 (dwarf2_build_include_psymtabs, create_type_unit_group)
10256 (create_partial_symtab, process_psymtab_comp_unit_reader)
10257 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10258 (set_partial_user): Use dwarf2_psymtab.
10259 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10260 (psymtab_to_symtab_1, process_full_comp_unit)
10261 (process_full_type_unit, dwarf2_ranges_read)
10262 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10263 (dwarf_decode_lines): Use dwarf2_psymtab.
10264 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10265 (add_address_entry_worker, write_one_signatured_type)
10266 (recursively_count_psymbols, recursively_write_psymbols)
10267 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10268 (write_debug_names): Likewise.
10269 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10270 <pst>: Now a legacy_psymtab.
10271 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10272 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10273 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10274 * ctfread.c (struct ctf_psymtab): New.
10275 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10276 ctf_psymtab.
10277 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10278 (create_partial_symtab): Return a ctf_psymtab.
10279 (scan_partial_symbols): Update.
10280
10281 2020-01-26 Tom Tromey <tom@tromey.com>
10282
10283 * xcoffread.c (xcoff_start_psymtab): Use new.
10284 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10285 renamed from start_psymtab_common.
10286 * psympriv.h (struct partial_symtab): Add new constructor.
10287 (start_psymtab_common): Don't declare.
10288 * mdebugread.c (parse_partial_symbols): Use new.
10289 * dwarf2read.c (create_partial_symtab): Use new.
10290 * dbxread.c (start_psymtab): Use new.
10291 * ctfread.c (create_partial_symtab): Use new.
10292
10293 2020-01-26 Tom Tromey <tom@tromey.com>
10294
10295 * xcoffread.c (xcoff_end_psymtab): Use new.
10296 * psymtab.c (start_psymtab_common): Use new.
10297 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10298 Update.
10299 * psympriv.h (struct partial_symtab): Add parameters to
10300 constructor. Don't inline.
10301 (allocate_psymtab): Don't declare.
10302 * mdebugread.c (new_psymtab): Use new.
10303 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10304 * dbxread.c (dbx_end_psymtab): Use new.
10305
10306 2020-01-26 Tom Tromey <tom@tromey.com>
10307
10308 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10309 allocate_psymtab. Update documentation.
10310 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10311 allocate_psymtab. Do not use new.
10312 (allocate_psymtab): Use new. Update.
10313
10314 2020-01-26 Tom Tromey <tom@tromey.com>
10315
10316 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10317 * psymtab.c (psym_print_stats): Update.
10318 * psympriv.h (struct partial_symtab) <readin,
10319 psymtabs_addrmap_supported, anonymous>: Now bool.
10320 * mdebugread.c (psymtab_to_symtab_1): Update.
10321 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10322 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10323 (process_full_comp_unit, process_full_type_unit): Update.
10324 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10325 * ctfread.c (psymtab_to_symtab): Update.
10326
10327 2020-01-26 Tom Tromey <tom@tromey.com>
10328
10329 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10330 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10331 * psymtab.c (psymtab_storage): Delete psymtabs.
10332 (psymtab_storage::allocate_psymtab): Use new.
10333 (psymtab_storage::discard_psymtab): Use delete.
10334 * psympriv.h (struct partial_symtab): Add constructor and
10335 initializers.
10336
10337 2020-01-26 Tom Tromey <tom@tromey.com>
10338
10339 * machoread.c: Do not include psympriv.h.
10340
10341 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10342
10343 * NEWS: Mention the new option and the set/show commands.
10344
10345 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10346
10347 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10348 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10349 (validate_exec_file): New variables, enums, functions.
10350 (exec_file_locate_attach, print_section_info): Style the filenames.
10351 (_initialize_exec): Install show_exec_file_mismatch_command and
10352 set_exec_file_mismatch_command.
10353 * gdbcore.h (validate_exec_file): Declare.
10354 * infcmd.c (attach_command): Call validate_exec_file.
10355 * remote.c ( remote_target::remote_add_inferior): Likewise.
10356
10357 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10358
10359 * frame.c (find_frame_sal): Move call to get_next_frame into more
10360 inner scope.
10361 * inline-frame.c (inilne_state) <inline_state>: Update argument
10362 types.
10363 (inilne_state) <skipped_symbol>: Rename to...
10364 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10365 (skip_inline_frames): Build vector of skipped symbols and use this
10366 to reate the inline_state.
10367 (inline_skipped_symbol): Add a comment and some assertions, fetch
10368 skipped symbol from the list.
10369
10370 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10371
10372 * buildsym.c (lte_is_less_than): Delete.
10373 (buildsym_compunit::end_symtab_with_blockvector): Create local
10374 lambda function to sort line table entries, and use
10375 std::stable_sort instead of std::sort.
10376 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10377 markers when looking for a previous line.
10378
10379 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10380
10381 * dwarf2read.c (lnp_state_machine::record_line): Include
10382 end_sequence parameter in debug print out. Record the line if we
10383 are at an end_sequence marker even if it's not the start of a
10384 statement.
10385 * symmisc.c (maintenance_print_one_line_table): Print end of
10386 sequence markers with 'END' not '0'.
10387
10388 2020-01-24 Pedro Alves <palves@redhat.com>
10389
10390 PR gdb/25410
10391 * thread.c (scoped_restore_current_thread::restore): Use
10392 switch_to_inferior_no_thread.
10393 * exec.c: Include "progspace-and-thread.h".
10394 (add_target_sections, remove_target_sections):
10395 scoped_restore_current_pspace_and_thread instead of
10396 scoped_restore_current_thread.
10397 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10398 and aspace to the inferior before calling clone_program_space.
10399 Remove stale comment.
10400
10401 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10402
10403 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10404 (arm_netbsd_nat_target::fetch_registers): ...this.
10405 (arm_nbsd_nat_target::store_registers): Rename to...
10406 (arm_netbsd_nat_target::store_registers): ...this.
10407
10408 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10409
10410 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10411 register_t.
10412
10413 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10414
10415 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10416 Update comment.
10417 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10418 Likewise.
10419 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10420 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10421 the correct replacement (iterate_over_regset_sections).
10422 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10423 Update comment.
10424
10425 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10426
10427 PR gdb/23718
10428 * gdb/python/python.c (execute_gdb_command): Call
10429 async_enable_stdin in catch block.
10430
10431 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10432
10433 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10434 SWITCH_THRU_ALL_UIS.
10435
10436 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10437
10438 PR tui/9765
10439 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10440 comment, add extra parameter, and update to store previous symbol
10441 when appropriate.
10442 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10443 add extra parameter.
10444 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10445 remove unneeded parameter, add try/catch around gdb_print_insn,
10446 rewrite to add items to asm_lines vector.
10447 (tui_find_backward_disassembly_start_address): New function.
10448 (tui_find_disassembly_address): Updated throughout.
10449 (tui_disasm_window::set_contents): Update for changes to
10450 tui_disassemble.
10451 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10452 number of lines to scroll.
10453
10454 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10455
10456 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10457 (SECT_OFF_DATA): Likewise.
10458 (SECT_OFF_RODATA): Likewise.
10459 (SECT_OFF_TEXT): Likewise.
10460 (SECT_OFF_BSS): Likewise.
10461 (struct objfile) <text_section_offset, data_section_offset>: New
10462 methods.
10463 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10464 objfile::text_section_offset.
10465 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10466 * coffread.c (coff_symtab_read): Likewise.
10467 (enter_linenos): Likewise.
10468 (process_coff_symbol): Likewise.
10469 * ctfread.c (get_objfile_text_range): Likewise.
10470 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10471 Use objfile::data_section_offset.
10472 * dwarf2-frame.c (execute_cfa_program): Use
10473 objfile::text_section_offset.
10474 (dwarf2_frame_find_fde): Likewise.
10475 * dwarf2read.c (create_addrmap_from_index): Likewise.
10476 (create_addrmap_from_aranges): Likewise.
10477 (dw2_find_pc_sect_compunit_symtab): Likewise.
10478 (process_psymtab_comp_unit_reader): Likewise.
10479 (add_partial_symbol): Likewise.
10480 (add_partial_subprogram): Likewise.
10481 (process_full_comp_unit): Likewise.
10482 (read_file_scope): Likewise.
10483 (read_func_scope): Likewise.
10484 (read_lexical_block_scope): Likewise.
10485 (read_call_site_scope): Likewise.
10486 (dwarf2_rnglists_process): Likewise.
10487 (dwarf2_ranges_process): Likewise.
10488 (dwarf2_ranges_read): Likewise.
10489 (dwarf_decode_lines_1): Likewise.
10490 (new_symbol): Likewise.
10491 (dwarf2_fetch_die_loc_sect_off): Likewise.
10492 (dwarf2_per_cu_text_offset): Likewise.
10493 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10494 * hppa-tdep.c (read_unwind_info): Likewise.
10495 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10496 * psympriv.h (struct partial_symtab): Likewise.
10497 * psymtab.c (find_pc_sect_psymtab): Likewise.
10498 * solib-svr4.c (enable_break): Likewise.
10499 * stap-probe.c (relocate_address): Use
10500 objfile::data_section_offset.
10501 * xcoffread.c (enter_line_range): Use
10502 objfile::text_section_offset.
10503 (read_xcoff_symtab): Likewise.
10504
10505 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10506
10507 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10508 declaration to narrower scopes.
10509
10510 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10511
10512 * darwin-nat.h (struct darwin_exception_msg, enum
10513 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10514 Move up.
10515 (class darwin_nat_target) <wait_1, check_new_threads,
10516 decode_exception_message, decode_message, stop_inferior,
10517 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10518 * darwin-nat.c (darwin_check_new_threads): Rename to...
10519 (darwin_nat_target::check_new_threads): ... this.
10520 (darwin_suspend_inferior_it): Remove.
10521 (darwin_decode_exception_message): Rename to...
10522 (darwin_nat_target::decode_exception_message): ... this.
10523 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10524 (darwin_decode_message): Rename to...
10525 (darwin_nat_target::decode_message): ... this.
10526 (cancel_breakpoint): Rename to...
10527 (darwin_nat_target::cancel_breakpoint): ... this.
10528 (darwin_wait): Rename to...
10529 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10530 instead of iterate_over_inferiors.
10531 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10532 (darwin_stop_inferior): Rename to...
10533 (darwin_nat_target::stop_inferior): ... this.
10534 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10535 (darwin_init_thread_list): Rename to...
10536 (darwin_nat_target::init_thread_list): ... this.
10537 (darwin_ptrace_him): Rename to...
10538 (darwin_nat_target::ptrace_him): ... this.
10539 (darwin_nat_target::create_inferior): Pass lambda function to
10540 fork_inferior.
10541 (darwin_nat_target::detach): Call stop_inferior instead of
10542 darwin_stop_inferior.
10543 * fork-inferior.h (fork_inferior): Change init_trace_fun
10544 parameter to gdb::function_view.
10545 * fork-inferior.c (fork_inferior): Likewise.
10546
10547 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10548
10549 * i386-cygwin-tdep.c (core_process_module_section): Update.
10550 * windows-nat.c (struct lm_info_windows): Add text_offset.
10551 (windows_xfer_shared_libraries): Update.
10552 * windows-tdep.c (windows_xfer_shared_library):
10553 Add text_offset_cached argument.
10554 * windows-tdep.h (windows_xfer_shared_library): Update.
10555
10556 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10557
10558 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10559
10560 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10561
10562 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10563 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10564 replace with range-based for.
10565 (gdbsim_interrupt_inferior): Remove.
10566 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10567 with a range-based for. Inline code from
10568 gdbsim_interrupt_inferior.
10569
10570 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10571
10572 * infrun.c (proceed): Fix indentation.
10573
10574 2020-01-21 Tom Tromey <tromey@adacore.com>
10575
10576 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10577 * python/python.c (python_extension_ops): Update.
10578 (gdbpy_colorize): New function.
10579 * python/lib/gdb/__init__.py (colorize): New function.
10580 * extension.h (ext_lang_colorize): Declare.
10581 * extension.c (ext_lang_colorize): New function.
10582 * extension-priv.h (struct extension_language_ops) <colorize>: New
10583 member.
10584 * cli/cli-style.c (_initialize_cli_style): Update help text.
10585
10586 2020-01-21 Luis Machado <luis.machado@linaro.org>
10587
10588 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10589 <cond>: Change type to bool.
10590 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10591 (aarch64_displaced_step_cb): Likewise.
10592 (aarch64_displaced_step_tb): Likewise.
10593
10594 2020-01-21 Luis Machado <luis.machado@linaro.org>
10595
10596 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10597 output.
10598
10599 2020-01-21 Luis Machado <luis.machado@linaro.org>
10600
10601 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10602 <pc_adjust>: Adjust the documentation.
10603 (aarch64_displaced_step_fixup): Check if PC really moved before
10604 adjusting it.
10605
10606 2020-01-19 Tom Tromey <tom@tromey.com>
10607
10608 * disasm.c (~gdb_disassembler): New destructor.
10609 (gdb_buffered_insn_length): Call disassemble_free_target.
10610 * disasm.h (class gdb_disassembler): Declare destructor. Use
10611 DISABLE_COPY_AND_ASSIGN.
10612
10613 2020-01-19 Tom Tromey <tom@tromey.com>
10614
10615 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10616 (die_reader_func_ftype): Remove.
10617 (cutu_reader): New class.
10618 (dw2_get_file_names_reader): Remove "data" parameter.
10619 (dw2_get_file_names): Use cutu_reader.
10620 (create_debug_type_hash_table): Update.
10621 (read_cutu_die_from_dwo): Update comment.
10622 (lookup_dwo_unit): Add dwo_name parameter.
10623 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10624 die_reader_func_ftype and data parameters.
10625 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10626 Remove die_reader_func_ftype and data parameters.
10627 (~cutu_reader): New; from init_cutu_and_read_dies.
10628 (cutu_reader::cutu_reader): Rename from
10629 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10630 and data parameters.
10631 (init_cutu_and_read_dies_simple): Remove.
10632 (struct process_psymtab_comp_unit_data): Remove.
10633 (process_psymtab_comp_unit_reader): Remove data parameter; add
10634 want_partial_unit and pretend_language parameters.
10635 (process_psymtab_comp_unit): Use cutu_reader.
10636 (build_type_psymtabs_reader): Remove data parameter.
10637 (build_type_psymtabs_1): Use cutu_reader.
10638 (process_skeletonless_type_unit): Likewise.
10639 (load_partial_comp_unit_reader): Remove.
10640 (load_partial_comp_unit): Use cutu_reader.
10641 (load_full_comp_unit_reader): Remove.
10642 (load_full_comp_unit): Use cutu_reader.
10643 (struct create_dwo_cu_data): Remove.
10644 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10645 dwo_unit parameters.
10646 (create_cus_hash_table): Use cutu_reader.
10647 (struct dwarf2_read_addr_index_data): Remove.
10648 (dwarf2_read_addr_index_reader): Remove.
10649 (dwarf2_read_addr_index): Use cutu_reader.
10650 (read_signatured_type_reader): Remove.
10651 (read_signatured_type): Use cutu_reader.
10652
10653 2020-01-19 Tom Tromey <tom@tromey.com>
10654
10655 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10656 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10657 (tui_wrefresh): Declare.
10658 * tui/tui-wingeneral.c (suppress_output): New global.
10659 (tui_suppress_output, ~tui_suppress_output): New constructor and
10660 destructor.
10661 (tui_wrefresh): New function.
10662 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10663 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10664 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10665 method.
10666 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10667 tui_wrefresh.
10668 (tui_data_window::no_refresh): New method.
10669 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10670 (tui_reg_command): Use tui_suppress_output
10671 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10672 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10673 method.
10674 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10675
10676 2020-01-19 Tom Tromey <tom@tromey.com>
10677
10678 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10679 Handle case where symtab is null.
10680
10681 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10682
10683 * linux-fork.c (one_fork_p): Simplify.
10684
10685 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10686
10687 * top.c (struct qt_args): Remove.
10688 (kill_or_detach): Change return type to void, replace `void *`
10689 parameter with a proper one.
10690 (print_inferior_quit_action): Likewise.
10691 (quit_confirm): Use range-based for loop to iterate over inferiors.
10692 (quit_force): Likewise.
10693
10694 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10695
10696 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10697 `void *` parameter with proper parameters.
10698 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10699 (print_one_inferior): Change return type to void, replace `void *`
10700 parameter with proper parameters.
10701 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10702 inferiors.
10703 (get_other_inferior): Remove.
10704 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10705 inferiors.
10706
10707 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10708
10709 * mi/mi-interp.c (report_initial_inferior): Remove.
10710 (mi_interp::init): Use range-based for to iterate over inferiors.
10711
10712 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10713
10714 * python/py-inferior.c (build_inferior_list): Remove.
10715 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10716
10717 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10718
10719 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10720 (btrace_stitch_trace): Likewise.
10721 * charset.c (intermediate_encoding): Likewise (vaild).
10722 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10723 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10724 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10725
10726 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10727
10728 * windows-tdep.c (windows_get_tlb_type):
10729 Add rtl_user_process_parameters type.
10730
10731 2020-01-16 Pedro Alves <palves@redhat.com>
10732 Norbert Lange <nolange79@gmail.com>
10733
10734 PR build/24805
10735 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10736 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10737 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10738 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10739 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10740 (ps_plog): Redeclare exported functions with default visibility.
10741
10742 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10743
10744 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10745 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10746
10747 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10748
10749 * infcmd.c (post_create_inferior): Use get_thread_regcache
10750 instead of get_current_regcache.
10751
10752 2020-01-14 Tom Tromey <tom@tromey.com>
10753
10754 PR symtab/12535:
10755 * python/python.c (gdbpy_decode_line): Treat empty string the same
10756 as no argument.
10757
10758 2020-01-14 Tom Tromey <tom@tromey.com>
10759
10760 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10761
10762 2020-01-14 Tom Tromey <tom@tromey.com>
10763
10764 * nat/linux-btrace.c: Don't include <config.h>.
10765 * nat/linux-ptrace.c: Don't include <config.h>.
10766 * nat/x86-linux-dregs.c: Don't include <config.h>.
10767
10768 2020-01-14 Tom Tromey <tom@tromey.com>
10769
10770 * configure: Rebuild.
10771 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10772
10773 2020-01-14 Tom Tromey <tom@tromey.com>
10774
10775 * nat/x86-linux-dregs.c: Include configh.h.
10776 * nat/linux-ptrace.c: Include configh.h.
10777 * nat/linux-btrace.c: Include configh.h.
10778 * defs.h: Include config.h, bfd.h.
10779 * configure.ac: Don't source common.host.
10780 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10781 * configure: Rebuild.
10782 * acinclude.m4: Update path.
10783 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10784 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10785 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10786 (CLIBS): Add LIBSUPPORT.
10787 (CDEPS): Likewise.
10788 (COMMON_SFILES): Remove gdbsupport files.
10789 (HFILES_NO_SRCDIR): Likewise.
10790 (stamp-version): Update path to create-version.sh.
10791 (ALLDEPFILES): Remove gdbsupport files.
10792
10793 2020-01-14 Tom Tromey <tom@tromey.com>
10794
10795 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10796 USE_WIN32API when needed.
10797 * configure.ac (USE_WIN32API): Don't define.
10798 (WIN32LIBS): Use WIN32APILIBS.
10799 * configure: Rebuild.
10800
10801 2020-01-14 Tom Tromey <tom@tromey.com>
10802
10803 * configure: Rebuild.
10804 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10805
10806 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10807
10808 * skip.c (skip_function_command): Make skip w/o arguments use the
10809 name of the inlined function if pc is inside any inlined function.
10810
10811 2020-01-14 Luis Machado <luis.machado@linaro.org>
10812
10813 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10814 * infrun.c (resume_1): Likewise.
10815 (handle_inferior_event): Remove stale comment.
10816 * linux-nat.c (linux_nat_target::resume): Update comments.
10817 (save_stop_reason): Likewise.
10818 (linux_nat_filter_event): Likewise.
10819 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10820
10821 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10822
10823 * elfread.c (record_minimal_symbol): Set section index to 0 for
10824 non-allocatable sections.
10825
10826
10827 2020-01-13 Ali Tamur <tamur@google.com>
10828
10829 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10830 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10831 to gdb::optional. Update comments.
10832 (dwo_file): Update comments.
10833 (read_attribute): Update API to take an additional out parameter,
10834 need_reprocess. This is used to mark attributes that need other
10835 attributes (e.g. str_offsets_base) for correct computation which may not
10836 have been read yet.
10837 (read_attribute_reprocess): New function declaration.
10838 (read_addr_index): Likewise.
10839 (read_dwo_str_index): Likewise.
10840 (read_stub_str_index): Likewise.
10841 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10842 (lookup_addr_base): New function definition.
10843 (lookup_ranges_base): Likewise.
10844 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10845 lookup_ranges_base.
10846 (init_cutu_and_read_dies): Update comments.
10847 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10848 unit. This is used to inherit parent's str_offsets_base and addr_base.
10849 Update comments.
10850 (init_cutu_and_read_dies_simple): Reflect API changes.
10851 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10852 (create_cus_hash_table): Change API to take parent compile unit.
10853 Reflect API changes.
10854 (open_and_init_dwo_file): Reflect API changes.
10855 (dwarf2_get_pc_bounds): Update comments.
10856 (dwarf2_record_block_ranges): Likewise.
10857 (read_full_die_1): Change implementation to reprocess attributes that
10858 need str_offsets_base and addr_base.
10859 (partial_die_info::read): Likewise.
10860 (read_attribute_reprocess): New function definition.
10861 (read_attribute_value): Change API to take an additional out parameter,
10862 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10863 when a non-dwo compile unit has index based attributes.
10864 (read_attribute): Reflect API changes.
10865 (read_addr_index_1): Reflect API changes. Update comments.
10866 (dwarf2_read_addr_index_data): Reflect API changes.
10867 (dwarf2_read_addr_index): Likewise.
10868 (read_str_index): Change API and implementation. This becomes a helper
10869 to be used by the new string index related methods. Update error
10870 message and comments.
10871 (read_dwo_str_index): New function definition.
10872 (read_stub_str_index): Likewise.
10873 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10874 * symfile.h (dwarf2_debug_sections): Likewise.
10875 * xcoffread.c (dwarf2_debug_sections): Likewise.
10876
10877 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10878
10879 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10880 core_reg_sect type to gdb_byte *.
10881 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10882 * cris-tdep.c (fetch_core_registers): Likewise.
10883 * corelow.c (core_target::get_core_register_section): Change
10884 type of `contents` to gdb::byte_vector.
10885
10886 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10887
10888 * tui/tui-wingeneral.c (box_win): Position the title in the center
10889 of the border.
10890
10891 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10892
10893 * corelow.c (core_target::get_core_register_section): Use
10894 std::vector instead of alloca.
10895
10896 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10897
10898 * warning.m4: Add -Wmissing-declarations to build_warnings.
10899 * configure: Re-generate.
10900
10901 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10902
10903 * python/python.c (init__gdb_module): Add declaration.
10904
10905 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10906
10907 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10908 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10909 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10910 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10911 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10912 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10913 * ada-exp.y (_initialize_ada_exp): Add declaration.
10914 * ada-lang.c (_initialize_ada_language): Add declaration.
10915 * ada-tasks.c (_initialize_tasks): Add declaration.
10916 * agent.c (_initialize_agent): Add declaration.
10917 * aix-thread.c (_initialize_aix_thread): Add declaration.
10918 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10919 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10920 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10921 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10922 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10923 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10924 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10925 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10926 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10927 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10928 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10929 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10930 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10931 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10932 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10933 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10934 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10935 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10936 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10937 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10938 * annotate.c (_initialize_annotate): Add declaration.
10939 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10940 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10941 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10942 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10943 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10944 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10945 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10946 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10947 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10948 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10949 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10950 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10951 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10952 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10953 * auto-load.c (_initialize_auto_load): Add declaration.
10954 * auxv.c (_initialize_auxv): Add declaration.
10955 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10956 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10957 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10958 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10959 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10960 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10961 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10962 * breakpoint.c (_initialize_breakpoint): Add declaration.
10963 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10964 * btrace.c (_initialize_btrace): Add declaration.
10965 * charset.c (_initialize_charset): Add declaration.
10966 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10967 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10968 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10969 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10970 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10971 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10972 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10973 * coffread.c (_initialize_coffread): Add declaration.
10974 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10975 * compile/compile.c (_initialize_compile): Add declaration.
10976 * complaints.c (_initialize_complaints): Add declaration.
10977 * completer.c (_initialize_completer): Add declaration.
10978 * copying.c (_initialize_copying): Add declaration.
10979 * corefile.c (_initialize_core): Add declaration.
10980 * corelow.c (_initialize_corelow): Add declaration.
10981 * cp-abi.c (_initialize_cp_abi): Add declaration.
10982 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10983 * cp-support.c (_initialize_cp_support): Add declaration.
10984 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10985 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10986 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10987 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10988 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10989 * ctfread.c (_initialize_ctfread): Add declaration.
10990 * d-lang.c (_initialize_d_language): Add declaration.
10991 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10992 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10993 * dbxread.c (_initialize_dbxread): Add declaration.
10994 * dcache.c (_initialize_dcache): Add declaration.
10995 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10996 * disasm.c (_initialize_disasm): Add declaration.
10997 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10998 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10999 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11000 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11001 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11002 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11003 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11004 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11005 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11006 * elfread.c (_initialize_elfread): Add declaration.
11007 * exec.c (_initialize_exec): Add declaration.
11008 * extension.c (_initialize_extension): Add declaration.
11009 * f-lang.c (_initialize_f_language): Add declaration.
11010 * f-valprint.c (_initialize_f_valprint): Add declaration.
11011 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11012 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11013 * filesystem.c (_initialize_filesystem): Add declaration.
11014 * findcmd.c (_initialize_mem_search): Add declaration.
11015 * findvar.c (_initialize_findvar): Add declaration.
11016 * fork-child.c (_initialize_fork_child): Add declaration.
11017 * frame-base.c (_initialize_frame_base): Add declaration.
11018 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11019 * frame.c (_initialize_frame): Add declaration.
11020 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11021 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11022 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11023 * gcore.c (_initialize_gcore): Add declaration.
11024 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11025 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11026 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11027 * gdbarch.c (_initialize_gdbarch): Add declaration.
11028 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11029 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11030 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11031 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11032 * go-lang.c (_initialize_go_language): Add declaration.
11033 * go32-nat.c (_initialize_go32_nat): Add declaration.
11034 * guile/guile.c (_initialize_guile): Add declaration.
11035 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11036 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11037 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11038 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11039 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11040 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11041 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11042 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11043 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11044 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11045 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11046 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11047 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11048 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11049 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11050 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11051 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11052 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11053 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11054 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11055 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11056 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11057 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11058 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11059 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11060 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11061 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11062 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11063 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11064 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11065 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11066 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11067 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11068 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11069 * infcall.c (_initialize_infcall): Add declaration.
11070 * infcmd.c (_initialize_infcmd): Add declaration.
11071 * inflow.c (_initialize_inflow): Add declaration.
11072 * infrun.c (_initialize_infrun): Add declaration.
11073 * interps.c (_initialize_interpreter): Add declaration.
11074 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11075 * jit.c (_initialize_jit): Add declaration.
11076 * language.c (_initialize_language): Add declaration.
11077 * linux-fork.c (_initialize_linux_fork): Add declaration.
11078 * linux-nat.c (_initialize_linux_nat): Add declaration.
11079 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11080 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11081 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11082 * m2-lang.c (_initialize_m2_language): Add declaration.
11083 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11084 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11085 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11086 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11087 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11088 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11089 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11090 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11091 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11092 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11093 * machoread.c (_initialize_machoread): Add declaration.
11094 * macrocmd.c (_initialize_macrocmd): Add declaration.
11095 * macroscope.c (_initialize_macroscope): Add declaration.
11096 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11097 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11098 * maint.c (_initialize_maint_cmds): Add declaration.
11099 * mdebugread.c (_initialize_mdebugread): Add declaration.
11100 * memattr.c (_initialize_mem): Add declaration.
11101 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11102 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11103 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11104 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11105 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11106 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11107 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11108 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11109 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11110 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11111 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11112 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11113 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11114 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11115 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11116 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11117 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11118 * mipsread.c (_initialize_mipsread): Add declaration.
11119 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11120 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11121 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11122 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11123 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11124 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11125 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11126 * nto-procfs.c (_initialize_procfs): Add declaration.
11127 * objc-lang.c (_initialize_objc_language): Add declaration.
11128 * observable.c (_initialize_observer): Add declaration.
11129 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11130 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11131 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11132 * osabi.c (_initialize_gdb_osabi): Add declaration.
11133 * osdata.c (_initialize_osdata): Add declaration.
11134 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11135 * parse.c (_initialize_parse): Add declaration.
11136 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11137 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11138 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11139 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11140 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11141 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11142 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11143 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11144 * printcmd.c (_initialize_printcmd): Add declaration.
11145 * probe.c (_initialize_probe): Add declaration.
11146 * proc-api.c (_initialize_proc_api): Add declaration.
11147 * proc-events.c (_initialize_proc_events): Add declaration.
11148 * proc-service.c (_initialize_proc_service): Add declaration.
11149 * procfs.c (_initialize_procfs): Add declaration.
11150 * producer.c (_initialize_producer): Add declaration.
11151 * psymtab.c (_initialize_psymtab): Add declaration.
11152 * python/python.c (_initialize_python): Add declaration.
11153 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11154 * record-btrace.c (_initialize_record_btrace): Add declaration.
11155 * record-full.c (_initialize_record_full): Add declaration.
11156 * record.c (_initialize_record): Add declaration.
11157 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11158 * regcache.c (_initialize_regcache): Add declaration.
11159 * reggroups.c (_initialize_reggroup): Add declaration.
11160 * remote-notif.c (_initialize_notif): Add declaration.
11161 * remote-sim.c (_initialize_remote_sim): Add declaration.
11162 * remote.c (_initialize_remote): Add declaration.
11163 * reverse.c (_initialize_reverse): Add declaration.
11164 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11165 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11166 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11167 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11168 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11169 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11170 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11171 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11172 Add declaration.
11173 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11174 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11175 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11176 * rust-exp.y (_initialize_rust_exp): Add declaration.
11177 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11178 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11179 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11180 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11181 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11182 * score-tdep.c (_initialize_score_tdep): Add declaration.
11183 * ser-go32.c (_initialize_ser_dos): Add declaration.
11184 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11185 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11186 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11187 * ser-uds.c (_initialize_ser_socket): Add declaration.
11188 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11189 * serial.c (_initialize_serial): Add declaration.
11190 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11191 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11192 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11193 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11194 * skip.c (_initialize_step_skip): Add declaration.
11195 * sol-thread.c (_initialize_sol_thread): Add declaration.
11196 * solib-aix.c (_initialize_solib_aix): Add declaration.
11197 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11198 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11199 * solib-frv.c (_initialize_frv_solib): Add declaration.
11200 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11201 * solib-target.c (_initialize_solib_target): Add declaration.
11202 * solib.c (_initialize_solib): Add declaration.
11203 * source-cache.c (_initialize_source_cache): Add declaration.
11204 * source.c (_initialize_source): Add declaration.
11205 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11206 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11207 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11208 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11209 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11210 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11211 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11212 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11213 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11214 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11215 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11216 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11217 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11218 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11219 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11220 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11221 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11222 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11223 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11224 * stabsread.c (_initialize_stabsread): Add declaration.
11225 * stack.c (_initialize_stack): Add declaration.
11226 * stap-probe.c (_initialize_stap_probe): Add declaration.
11227 * std-regs.c (_initialize_frame_reg): Add declaration.
11228 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11229 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11230 * symfile.c (_initialize_symfile): Add declaration.
11231 * symmisc.c (_initialize_symmisc): Add declaration.
11232 * symtab.c (_initialize_symtab): Add declaration.
11233 * target.c (_initialize_target): Add declaration.
11234 * target-connection.c (_initialize_target_connection): Add
11235 declaration.
11236 * target-dcache.c (_initialize_target_dcache): Add declaration.
11237 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11238 * thread.c (_initialize_thread): Add declaration.
11239 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11240 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11241 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11242 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11243 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11244 * tracectf.c (_initialize_ctf): Add declaration.
11245 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11246 * tracefile.c (_initialize_tracefile): Add declaration.
11247 * tracepoint.c (_initialize_tracepoint): Add declaration.
11248 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11249 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11250 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11251 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11252 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11253 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11254 * tui/tui.c (_initialize_tui): Add declaration.
11255 * typeprint.c (_initialize_typeprint): Add declaration.
11256 * ui-style.c (_initialize_ui_style): Add declaration.
11257 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11258 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11259 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11260 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11261 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11262 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11263 * unittests/filtered_iterator-selftests.c
11264 (_initialize_filtered_iterator_selftests): Add declaration.
11265 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11266 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11267 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11268 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11269 * unittests/main-thread-selftests.c
11270 (_initialize_main_thread_selftests): Add declaration.
11271 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11272 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11273 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11274 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11275 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11276 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11277 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11278 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11279 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11280 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11281 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11282 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11283 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11284 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11285 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11286 declaration.
11287 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11288 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11289 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11290 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11291 * user-regs.c (_initialize_user_regs): Add declaration.
11292 * utils.c (_initialize_utils): Add declaration.
11293 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11294 * valops.c (_initialize_valops): Add declaration.
11295 * valprint.c (_initialize_valprint): Add declaration.
11296 * value.c (_initialize_values): Add declaration.
11297 * varobj.c (_initialize_varobj): Add declaration.
11298 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11299 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11300 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11301 * windows-nat.c (_initialize_windows_nat): Add declaration.
11302 (_initialize_check_for_gdb_ini): Add declaration.
11303 (_initialize_loadable): Add declaration.
11304 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11305 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11306 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11307 * xcoffread.c (_initialize_xcoffread): Add declaration.
11308 * xml-support.c (_initialize_xml_support): Add declaration.
11309 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11310 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11311 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11312 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11313
11314 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11315
11316 * regformats/regdat.sh: Generate declaration for init function.
11317
11318 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11319
11320 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11321 up.
11322 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11323 close_one_inferior>: New methods.
11324 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11325 pass down target to find_inferior_pid.
11326 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11327 Pass down target to find_inferior_ptid.
11328 (gdbsim_target::create_inferior): Pass down target to
11329 add_thread_silent.
11330 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11331 target down to find_inferior_ptid and switch_to_thread.
11332 (gdbsim_target::close): Update to call close_one_inferior.
11333 (struct resume_data): Remove.
11334 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11335 directly, rather than through a void pointer.
11336 (gdbsim_target::resume): Update to call resume_one_inferior.
11337
11338 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11339
11340 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11341
11342 2020-01-12 Pedro Alves <palves@redhat.com>
11343
11344 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11345 directly for the current inferior instead of
11346 discard_all_inferiors.
11347 (discard_all_inferiors): Delete.
11348
11349 2020-01-11 Tom Tromey <tom@tromey.com>
11350
11351 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11352 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11353 deprecated_safe_get_selected_frame.
11354
11355 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11356
11357 * inferior.c (print_inferior): Switch inferior before printing it.
11358
11359 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11360 Pedro Alves <palves@redhat.com>
11361
11362 * progspace-and-thread.c (switch_to_program_space_and_thread):
11363 Assert there's an inferior for PSPACE. Use
11364 switch_to_inferior_no_thread to switch the inferior too.
11365 * progspace.c (program_space::~program_space): Call
11366 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11367 (program_space::free_all_objfiles): Don't call clear_symtab_users
11368 here.
11369 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11370
11371 2020-01-10 Pedro Alves <palves@redhat.com>
11372
11373 * NEWS: Mention multi-target debugging, "info connections", and
11374 "add-inferior -no-connection".
11375
11376 2020-01-10 Pedro Alves <palves@redhat.com>
11377
11378 * infrun.c: Include "target-connection.h".
11379 (check_multi_target_resumption): New.
11380 (proceed): Call it.
11381 * target-connection.c (make_target_connection_string): Make
11382 extern.
11383 * target-connection.h (make_target_connection_string): Declare.
11384
11385 2020-01-10 Pedro Alves <palves@redhat.com>
11386
11387 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11388 * inferior.c (uiout_field_connection): New function.
11389 (print_inferior): Add new "connection-id" column.
11390 (add_inferior_command): Show connection number/string of added
11391 inferior.
11392 * process-stratum-target.h
11393 (process_stratum_target::connection_string): New virtual method.
11394 (process_stratum_target::connection_number): New field.
11395 * remote.c (remote_target::connection_string): New override.
11396 * target-connection.c: New file.
11397 * target-connection.h: New file.
11398 * target.c (decref_target): Remove process_stratum targets from
11399 the connection list.
11400 (target_stack::push): Add process_stratum targets to the
11401 connection list.
11402
11403 2020-01-10 Pedro Alves <palves@redhat.com>
11404
11405 Revert:
11406 2016-04-12 Pedro Alves <palves@redhat.com>
11407 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11408 Remove references to name.
11409 * serial.h (struct serial) <name>: Delete.
11410
11411 2020-01-10 Pedro Alves <palves@redhat.com>
11412
11413 * gdbarch-selftests.c (register_to_value_test): Remove "target
11414 already pushed" check.
11415
11416 2020-01-10 Pedro Alves <palves@redhat.com>
11417 John Baldwin <jhb@FreeBSD.org>
11418
11419 * aarch64-linux-nat.c
11420 (aarch64_linux_nat_target::thread_architecture): Adjust.
11421 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11422 (task_command_1): Likewise.
11423 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11424 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11425 (aix_thread_target::store_registers)
11426 (aix_thread_target::thread_alive): Adjust.
11427 * amd64-fbsd-tdep.c: Include "inferior.h".
11428 (amd64fbsd_get_thread_local_address): Pass down target.
11429 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11430 thread's gdbarch instead of target_gdbarch.
11431 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11432 get_last_target_status.
11433 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11434 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11435 inferiors.
11436 (update_inserted_breakpoint_locations): Skip if inferiors with no
11437 execution.
11438 (update_global_location_list): When handling moribund locations,
11439 find representative inferior for location's pspace, and use thread
11440 count of its process_stratum target.
11441 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11442 * bsd-uthread.c (bsd_uthread_target::wait): Use
11443 as_process_stratum_target and adjust thread_change_ptid and
11444 add_thread calls.
11445 (bsd_uthread_target::update_thread_list): Use
11446 as_process_stratum_target and adjust find_thread_ptid,
11447 thread_change_ptid and add_thread calls.
11448 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11449 find_thread_ptid call.
11450 * corelow.c (add_to_thread_list): Adjust add_thread call.
11451 (core_target_open): Adjust add_thread_silent and thread_count
11452 calls.
11453 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11454 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11455 * event-top.c (async_disconnect): Pop targets from all inferiors.
11456 * exec.c (add_target_sections): Push exec target on all inferiors
11457 sharing the program space.
11458 (remove_target_sections): Remove the exec target from all
11459 inferiors sharing the program space.
11460 (exec_on_vfork): New.
11461 * exec.h (exec_on_vfork): Declare.
11462 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11463 Pass it down.
11464 (fbsd_nat_target::update_thread_list): Adjust.
11465 (fbsd_nat_target::resume): Adjust.
11466 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11467 down.
11468 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11469 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11470 get_thread_arch_regcache call.
11471 * fork-child.c (gdb_startup_inferior): Pass target down to
11472 startup_inferior and set_executing.
11473 * gdbthread.h (struct process_stratum_target): Forward declare.
11474 (add_thread, add_thread_silent, add_thread_with_info)
11475 (in_thread_list): Add process_stratum_target parameter.
11476 (find_thread_ptid(inferior*, ptid_t)): New overload.
11477 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11478 parameter.
11479 (all_threads()): Delete overload.
11480 (all_threads, all_non_exited_threads): Add process_stratum_target
11481 parameter.
11482 (all_threads_safe): Use brace initialization.
11483 (thread_count): Add process_stratum_target parameter.
11484 (set_resumed, set_running, set_stop_requested, set_executing)
11485 (threads_are_executing, finish_thread_state): Add
11486 process_stratum_target parameter.
11487 (switch_to_thread): Use is_current_thread.
11488 * i386-fbsd-tdep.c: Include "inferior.h".
11489 (i386fbsd_get_thread_local_address): Pass down target.
11490 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11491 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11492 have_inferiors check.
11493 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11494 (inf_ptrace_target::attach): Adjust.
11495 * infcall.c (run_inferior_call): Adjust.
11496 * infcmd.c (run_command_1): Pass target to
11497 scoped_finish_thread_state.
11498 (proceed_thread_callback): Skip inferiors with no execution.
11499 (continue_command): Rename 'all_threads' local to avoid hiding
11500 'all_threads' function. Adjust get_last_target_status call.
11501 (prepare_one_step): Adjust set_running call.
11502 (signal_command): Use user_visible_resume_target. Compare thread
11503 pointers instead of inferior_ptid.
11504 (info_program_command): Adjust to pass down target.
11505 (attach_command): Mark target's 'thread_executing' flag.
11506 (stop_current_target_threads_ns): New, factored out from ...
11507 (interrupt_target_1): ... this. Switch inferior before making
11508 target calls.
11509 * inferior-iter.h
11510 (struct all_inferiors_iterator, struct all_inferiors_range)
11511 (struct all_inferiors_safe_range)
11512 (struct all_non_exited_inferiors_range): Filter on
11513 process_stratum_target too. Remove explicit.
11514 * inferior.c (inferior::inferior): Push dummy target on target
11515 stack.
11516 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11517 Add process_stratum_target parameter, and pass it down.
11518 (have_live_inferiors): Adjust.
11519 (switch_to_inferior_and_push_target): New.
11520 (add_inferior_command, clone_inferior_command): Handle
11521 "-no-connection" parameter. Use
11522 switch_to_inferior_and_push_target.
11523 (_initialize_inferior): Mention "-no-connection" option in
11524 the help of "add-inferior" and "clone-inferior" commands.
11525 * inferior.h: Include "process-stratum-target.h".
11526 (interrupt_target_1): Use bool.
11527 (struct inferior) <push_target, unpush_target, target_is_pushed,
11528 find_target_beneath, top_target, process_target, target_at,
11529 m_stack>: New.
11530 (discard_all_inferiors): Delete.
11531 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11532 (all_inferiors, all_non_exited_inferiors): Add
11533 process_stratum_target parameter.
11534 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11535 (target_last_proc_target): New global.
11536 (follow_fork_inferior): Push target on new inferior. Pass target
11537 to add_thread_silent. Call exec_on_vfork. Handle target's
11538 reference count.
11539 (follow_fork): Adjust get_last_target_status call. Also consider
11540 target.
11541 (follow_exec): Push target on new inferior.
11542 (struct execution_control_state) <target>: New field.
11543 (user_visible_resume_target): New.
11544 (do_target_resume): Call target_async.
11545 (resume_1): Set target's threads_executing flag. Consider resume
11546 target.
11547 (commit_resume_all_targets): New.
11548 (proceed): Also consider resume target. Skip threads of inferiors
11549 with no execution. Commit resumtion in all targets.
11550 (start_remote): Pass current inferior to wait_for_inferior.
11551 (infrun_thread_stop_requested): Consider target as well. Pass
11552 thread_info pointer to clear_inline_frame_state instead of ptid.
11553 (infrun_thread_thread_exit): Consider target as well.
11554 (random_pending_event_thread): New inferior parameter. Use it.
11555 (do_target_wait): Rename to ...
11556 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11557 down.
11558 (threads_are_resumed_pending_p, do_target_wait): New.
11559 (prepare_for_detach): Adjust calls.
11560 (wait_for_inferior): New inferior parameter. Handle it. Use
11561 do_target_wait_1 instead of do_target_wait.
11562 (fetch_inferior_event): Adjust. Switch to representative
11563 inferior. Pass target down.
11564 (set_last_target_status): Add process_stratum_target parameter.
11565 Save target in global.
11566 (get_last_target_status): Add process_stratum_target parameter and
11567 handle it.
11568 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11569 (context_switch): Check inferior_ptid == null_ptid before calling
11570 inferior_thread().
11571 (get_inferior_stop_soon): Pass down target.
11572 (wait_one): Rename to ...
11573 (poll_one_curr_target): ... this.
11574 (struct wait_one_event): New.
11575 (wait_one): New.
11576 (stop_all_threads): Adjust.
11577 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11578 event's target.
11579 (switch_back_to_stepped_thread): Also consider target.
11580 (print_stop_event): Update.
11581 (normal_stop): Update. Also consider the resume target.
11582 * infrun.h (wait_for_inferior): Remove declaration.
11583 (user_visible_resume_target): New declaration.
11584 (get_last_target_status, set_last_target_status): New
11585 process_stratum_target parameter.
11586 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11587 process_stratum_target parameter, and use it.
11588 (clear_inline_frame_state (thread_info*)): New.
11589 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11590 process_stratum_target parameter.
11591 (clear_inline_frame_state (thread_info*)): Declare.
11592 * linux-fork.c (delete_checkpoint_command): Pass target down to
11593 find_thread_ptid.
11594 (checkpoint_command): Adjust.
11595 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11596 instead of just tweaking inferior_ptid.
11597 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11598 (exit_lwp): Pass target down to find_thread_ptid.
11599 (attach_proc_task_lwp_callback): Pass target down to
11600 add_thread/set_running/set_executing.
11601 (linux_nat_target::attach): Pass target down to
11602 thread_change_ptid.
11603 (get_detach_signal): Pass target down to find_thread_ptid.
11604 Consider last target status's target.
11605 (linux_resume_one_lwp_throw, resume_lwp)
11606 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11607 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11608 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11609 (linux_nat_target::async_wait_fd): New.
11610 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11611 target down.
11612 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11613 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11614 * linux-thread-db.c (struct thread_db_info::process_target): New
11615 field.
11616 (add_thread_db_info): Save target.
11617 (get_thread_db_info): New process_stratum_target parameter. Also
11618 match target.
11619 (delete_thread_db_info): New process_stratum_target parameter.
11620 Also match target.
11621 (thread_from_lwp): Adjust to pass down target.
11622 (thread_db_notice_clone): Pass down target.
11623 (check_thread_db_callback): Pass down target.
11624 (try_thread_db_load_1): Always push the thread_db target.
11625 (try_thread_db_load, record_thread): Pass target down.
11626 (thread_db_target::detach): Pass target down. Always unpush the
11627 thread_db target.
11628 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11629 target down. Always unpush the thread_db target.
11630 (find_new_threads_callback, thread_db_find_new_threads_2)
11631 (thread_db_target::update_thread_list): Pass target down.
11632 (thread_db_target::pid_to_str): Pass current inferior down.
11633 (thread_db_target::get_thread_local_address): Pass target down.
11634 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11635 target down.
11636 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11637 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11638 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11639 (procfs_init_inferior): Rename to ...
11640 (procfs_target::procfs_init_inferior): ... this and adjust.
11641 (procfs_target::create_inferior, procfs_notice_thread)
11642 (procfs_do_thread_registers): Adjust.
11643 * ppc-fbsd-tdep.c: Include "inferior.h".
11644 (ppcfbsd_get_thread_local_address): Pass down target.
11645 * proc-service.c (ps_xfer_memory): Switch current inferior and
11646 program space as well.
11647 (get_ps_regcache): Pass target down.
11648 * process-stratum-target.c
11649 (process_stratum_target::thread_address_space)
11650 (process_stratum_target::thread_architecture): Pass target down.
11651 * process-stratum-target.h
11652 (process_stratum_target::threads_executing): New field.
11653 (as_process_stratum_target): New.
11654 * ravenscar-thread.c
11655 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11656 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11657 down.
11658 * record-btrace.c (record_btrace_target::info_record): Adjust.
11659 (record_btrace_target::record_method)
11660 (record_btrace_target::record_is_replaying)
11661 (record_btrace_target::fetch_registers)
11662 (get_thread_current_frame_id, record_btrace_target::resume)
11663 (record_btrace_target::wait, record_btrace_target::stop): Pass
11664 target down.
11665 * record-full.c (record_full_wait_1): Switch to event thread.
11666 Pass target down.
11667 * regcache.c (regcache::regcache)
11668 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11669 process_stratum_target parameter and handle it.
11670 (current_thread_target): New global.
11671 (get_thread_regcache): Add process_stratum_target parameter and
11672 handle it. Switch inferior before calling target method.
11673 (get_thread_regcache): Pass target down.
11674 (get_thread_regcache_for_ptid): Pass target down.
11675 (registers_changed_ptid): Add process_stratum_target parameter and
11676 handle it.
11677 (registers_changed_thread, registers_changed): Pass target down.
11678 (test_get_thread_arch_aspace_regcache): New.
11679 (current_regcache_test): Define a couple local test_target_ops
11680 instances and use them for testing.
11681 (readwrite_regcache): Pass process_stratum_target parameter.
11682 (cooked_read_test, cooked_write_test): Pass mock_target down.
11683 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11684 (get_thread_arch_aspace_regcache): Add process_stratum_target
11685 parameter.
11686 (regcache::target): New method.
11687 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11688 (regcache::registers_changed_ptid): Add process_stratum_target
11689 parameter.
11690 (regcache::m_target): New field.
11691 (registers_changed_ptid): Add process_stratum_target parameter.
11692 * remote.c (remote_state::supports_vCont_probed): New field.
11693 (remote_target::async_wait_fd): New method.
11694 (remote_unpush_and_throw): Add remote_target parameter.
11695 (get_current_remote_target): Adjust.
11696 (remote_target::remote_add_inferior): Push target.
11697 (remote_target::remote_add_thread)
11698 (remote_target::remote_notice_new_inferior)
11699 (get_remote_thread_info): Pass target down.
11700 (remote_target::update_thread_list): Skip threads of inferiors
11701 bound to other targets. (remote_target::close): Don't discard
11702 inferiors. (remote_target::add_current_inferior_and_thread)
11703 (remote_target::process_initial_stop_replies)
11704 (remote_target::start_remote)
11705 (remote_target::remote_serial_quit_handler): Pass down target.
11706 (remote_target::remote_unpush_target): New remote_target
11707 parameter. Unpush the target from all inferiors.
11708 (remote_target::remote_unpush_and_throw): New remote_target
11709 parameter. Pass it down.
11710 (remote_target::open_1): Check whether the current inferior has
11711 execution instead of checking whether any inferior is live. Pass
11712 target down.
11713 (remote_target::remote_detach_1): Pass down target. Use
11714 remote_unpush_target.
11715 (extended_remote_target::attach): Pass down target.
11716 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11717 (remote_target::append_resumption): Pass down target.
11718 (remote_target::append_pending_thread_resumptions)
11719 (remote_target::remote_resume_with_hc, remote_target::resume)
11720 (remote_target::commit_resume): Pass down target.
11721 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11722 (remote_target::interrupt_query)
11723 (remote_target::remove_new_fork_children)
11724 (remote_target::check_pending_events_prevent_wildcard_vcont)
11725 (remote_target::remote_parse_stop_reply)
11726 (remote_target::process_stop_reply): Pass down target.
11727 (first_remote_resumed_thread): New remote_target parameter. Pass
11728 it down.
11729 (remote_target::wait_as): Pass down target.
11730 (unpush_and_perror): New remote_target parameter. Pass it down.
11731 (remote_target::readchar, remote_target::remote_serial_write)
11732 (remote_target::getpkt_or_notif_sane_1)
11733 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11734 down target.
11735 (remote_target::mourn_inferior): Pass down target. Use
11736 remote_unpush_target.
11737 (remote_target::core_of_thread)
11738 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11739 (remote_target::pid_to_exec_file)
11740 (remote_target::thread_handle_to_thread_info): Pass down target.
11741 (remote_target::async_wait_fd): New.
11742 * riscv-fbsd-tdep.c: Include "inferior.h".
11743 (riscv_fbsd_get_thread_local_address): Pass down target.
11744 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11745 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11746 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11747 Adjust.
11748 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11749 * solib-svr4.c (enable_break): Pass down target.
11750 * spu-multiarch.c (parse_spufs_run): Pass down target.
11751 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11752 * target-delegates.c: Regenerate.
11753 * target.c (g_target_stack): Delete.
11754 (current_top_target): Return the current inferior's top target.
11755 (target_has_execution_1): Refer to the passed-in inferior's top
11756 target.
11757 (target_supports_terminal_ours): Check whether the initial
11758 inferior was already created.
11759 (decref_target): New.
11760 (target_stack::push): Incref/decref the target.
11761 (push_target, push_target, unpush_target): Adjust.
11762 (target_stack::unpush): Defref target.
11763 (target_is_pushed): Return bool. Adjust to refer to the current
11764 inferior's target stack.
11765 (dispose_inferior): Delete, and inline parts ...
11766 (target_preopen): ... here. Only dispose of the current inferior.
11767 (target_detach): Hold strong target reference while detaching.
11768 Pass target down.
11769 (target_thread_name): Add assertion.
11770 (target_resume): Pass down target.
11771 (target_ops::beneath, find_target_at): Adjust to refer to the
11772 current inferior's target stack.
11773 (get_dummy_target): New.
11774 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11775 has a thread running.
11776 (initialize_targets): Rename to ...
11777 (_initialize_target): ... this.
11778 * target.h: Include "gdbsupport/refcounted-object.h".
11779 (struct target_ops): Inherit refcounted_object.
11780 (target_ops::shortname, target_ops::longname): Make const.
11781 (target_ops::async_wait_fd): New method.
11782 (decref_target): Declare.
11783 (struct target_ops_ref_policy): New.
11784 (target_ops_ref): New typedef.
11785 (get_dummy_target): Declare function.
11786 (target_is_pushed): Return bool.
11787 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11788 (all_matching_threads_iterator::all_matching_threads_iterator):
11789 Handle filter target.
11790 * thread-iter.h (struct all_matching_threads_iterator, struct
11791 all_matching_threads_range, class all_non_exited_threads_range):
11792 Filter by target too. Remove explicit.
11793 * thread.c (threads_executing): Delete.
11794 (inferior_thread): Pass down current inferior.
11795 (clear_thread_inferior_resources): Pass down thread pointer
11796 instead of ptid_t.
11797 (add_thread_silent, add_thread_with_info, add_thread): Add
11798 process_stratum_target parameter. Use it for thread and inferior
11799 searches.
11800 (is_current_thread): New.
11801 (thread_info::deletable): Use it.
11802 (find_thread_ptid, thread_count, in_thread_list)
11803 (thread_change_ptid, set_resumed, set_running): New
11804 process_stratum_target parameter. Pass it down.
11805 (set_executing): New process_stratum_target parameter. Pass it
11806 down. Adjust reference to 'threads_executing'.
11807 (threads_are_executing): New process_stratum_target parameter.
11808 Adjust reference to 'threads_executing'.
11809 (set_stop_requested, finish_thread_state): New
11810 process_stratum_target parameter. Pass it down.
11811 (switch_to_thread): Also match inferior.
11812 (switch_to_thread): New process_stratum_target parameter. Pass it
11813 down.
11814 (update_threads_executing): Reimplement.
11815 * top.c (quit_force): Pop targets from all inferior.
11816 (gdb_init): Don't call initialize_targets.
11817 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11818 Declare.
11819 (windows_add_thread, windows_delete_thread): Adjust.
11820 (get_windows_debug_event): Rename to ...
11821 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11822 * tracefile-tfile.c (tfile_target_open): Pass down target.
11823 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11824 Forward declare.
11825 (switch_to_thread): Add process_stratum_target parameter.
11826 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11827 parameter. Use it.
11828 (mi_on_resume): Pass target down.
11829 * nat/fork-inferior.c (startup_inferior): Add
11830 process_stratum_target parameter. Pass it down.
11831 * nat/fork-inferior.h (startup_inferior): Add
11832 process_stratum_target parameter.
11833 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11834
11835 2020-01-10 Pedro Alves <palves@redhat.com>
11836
11837 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11838 directly. Instead find the first thread in the thread list and
11839 use switch_to_thread.
11840
11841 2020-01-10 Pedro Alves <palves@redhat.com>
11842
11843 * remote.c (remote_target::remote_add_inferior): Don't bind a
11844 process to the current inferior if the current inferior is already
11845 bound to a process.
11846
11847 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11848 Pedro Alves <palves@redhat.com>
11849
11850 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11851 If no process is specified, return null_ptid instead of
11852 inferior_ptid.
11853 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11854 TARGET_WAITKIND_SIGNALLED with no pid.
11855
11856 2020-01-10 Pedro Alves <palves@redhat.com>
11857
11858 * remote.c (first_remote_resumed_thread): New.
11859 (remote_target::wait_as): Use it as default event_ptid instead of
11860 inferior_ptid.
11861
11862 2020-01-10 Pedro Alves <palves@redhat.com>
11863
11864 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11865
11866 2020-01-10 Pedro Alves <palves@redhat.com>
11867
11868 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11869 not -1.
11870
11871 2020-01-10 Pedro Alves <palves@redhat.com>
11872
11873 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11874 ptid to get_last_target_status.
11875 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11876 ptid to get_last_target_status.
11877 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11878 get_last_target_status.
11879 (info_program_command): Don't pass a target_waitstatus to
11880 get_last_target_status.
11881 * infrun.c (init_wait_for_inferior): Use
11882 nullify_last_target_wait_ptid.
11883 (get_last_target_status): Handle nullptr arguments.
11884 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11885 (print_stop_event): Don't pass a ptid to get_last_target_status.
11886 (normal_stop): Don't pass a ptid to get_last_target_status.
11887 * infrun.h (get_last_target_status, set_last_target_status): Move
11888 comments here and update.
11889 (nullify_last_target_wait_ptid): Declare.
11890 * linux-fork.c (fork_load_infrun_state): Remove local extern
11891 declaration of nullify_last_target_wait_ptid.
11892 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11893 to get_last_target_status.
11894
11895 2020-01-10 Pedro Alves <palves@redhat.com>
11896
11897 * gdbthread.h (scoped_restore_current_thread)
11898 <dont_restore, restore, m_dont_restore>: Declare.
11899 * thread.c (thread_alive): Add assertion. Return bool.
11900 (switch_to_thread_if_alive): New.
11901 (prune_threads): Switch inferior/thread.
11902 (print_thread_info_1): Switch thread before calling target methods.
11903 (scoped_restore_current_thread::restore): New, factored out from
11904 ...
11905 (scoped_restore_current_thread::~scoped_restore_current_thread):
11906 ... this.
11907 (scoped_restore_current_thread::scoped_restore_current_thread):
11908 Add assertion.
11909 (thread_apply_all_command, thread_select): Use
11910 switch_to_thread_if_alive.
11911 * infrun.c (proceed, restart_threads, handle_signal_stop)
11912 (switch_back_to_stepped_thread): Switch current thread before
11913 calling target methods.
11914
11915 2020-01-10 Pedro Alves <palves@redhat.com>
11916
11917 * inferior.c (switch_to_inferior_no_thread): New function,
11918 factored out from ...
11919 (inferior_command): ... here.
11920 * inferior.h (switch_to_inferior_no_thread): Declare.
11921 * mi/mi-main.c (run_one_inferior): Use
11922 switch_to_inferior_no_thread.
11923
11924 2020-01-10 Pedro Alves <palves@redhat.com>
11925
11926 * infcmd.c (kill_command): Remove dead code.
11927
11928 2020-01-10 Pedro Alves <palves@redhat.com>
11929
11930 * remote.c (remote_target::mourn_inferior): No longer check
11931 whether the target is running.
11932
11933 2020-01-10 Pedro Alves <palves@redhat.com>
11934
11935 * corelow.c (core_target::has_execution): Change parameter type to
11936 inferior pointer.
11937 * inferior.c (number_of_live_inferiors): Use
11938 inferior::has_execution instead of target_has_execution_1.
11939 * inferior.h (inferior::has_execution): New.
11940 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11941 inferior::has_execution instead of target_has_execution_1.
11942 * process-stratum-target.c
11943 (process_stratum_target::has_execution): Change parameter type to
11944 inferior pointer. Check the inferior's PID instead of
11945 inferior_ptid.
11946 * process-stratum-target.h
11947 (process_stratum_target::has_execution): Change parameter type to
11948 inferior pointer.
11949 * record-full.c (record_full_core_target::has_execution): Change
11950 parameter type to inferior pointer.
11951 * target.c (target_has_execution_1): Change parameter type to
11952 inferior pointer.
11953 (target_has_execution_current): Adjust.
11954 * target.h (target_ops::has_execution): Change parameter type to
11955 inferior pointer.
11956 (target_has_execution_1): Change parameter type to inferior
11957 pointer. Change return type to bool.
11958 * tracefile.h (tracefile_target::has_execution): Change parameter
11959 type to inferior pointer.
11960
11961 2020-01-10 Pedro Alves <palves@redhat.com>
11962
11963 * exceptions.c (print_flush): Remove current_top_target() check.
11964
11965 2020-01-10 Pedro Alves <palves@redhat.com>
11966
11967 * remote.c (show_remote_exec_file): Show the current inferior's
11968 exec-file instead of the command variable's value.
11969
11970 2020-01-10 Pedro Alves <palves@redhat.com>
11971
11972 * record-full.c (record_full_resume_ptid): New global.
11973 (record_full_target::resume): Set it.
11974 (record_full_wait_1): Use record_full_resume_ptid instead of
11975 inferior_ptid.
11976
11977 2020-01-10 Pedro Alves <palves@redhat.com>
11978
11979 * gdbthread.h (scoped_restore_current_thread)
11980 <dont_restore, restore, m_dont_restore>: Declare.
11981 * thread.c (thread_alive): Add assertion. Return bool.
11982 (switch_to_thread_if_alive): New.
11983 (prune_threads): Switch inferior/thread.
11984 (print_thread_info_1): Switch thread before calling target methods.
11985 (scoped_restore_current_thread::restore): New, factored out from
11986 ...
11987 (scoped_restore_current_thread::~scoped_restore_current_thread):
11988 ... this.
11989 (scoped_restore_current_thread::scoped_restore_current_thread):
11990 Add assertion.
11991 (thread_apply_all_command, thread_select): Use
11992 switch_to_thread_if_alive.
11993
11994 2020-01-10 George Barrett <bob@bob131.so>
11995
11996 * stap-probe.c (stap_modify_semaphore): Don't check for null
11997 semaphores.
11998 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11999 for null semaphores.
12000
12001 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12002
12003 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12004 all source windows, and maintain horizontal scroll status while
12005 doing so.
12006
12007 2020-01-09 Tom Tromey <tom@tromey.com>
12008
12009 PR tui/18932:
12010 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12011 update_source_window, not print_source_lines.
12012
12013 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12014
12015 * tui/tui.c (tui_enable): Register tui hooks after calling
12016 tui_display_main.
12017
12018 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12019
12020 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12021
12022 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12023
12024 * thread.c (print_thread_info_1): Fix indentation.
12025
12026 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12027
12028 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12029 unique_xmalloc_ptr outside the if to always free the demangled name.
12030
12031 2020-01-08 Tom Tromey <tromey@adacore.com>
12032
12033 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12034 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12035 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12036 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12037 Remove.
12038 (section_offsets): New typedef.
12039 * symtab.c (fixup_section, get_msymbol_address): Update.
12040 * symmisc.c (dump_msymbols): Update.
12041 * symfile.h (relative_addr_info_to_section_offsets)
12042 (symfile_map_offsets_to_segments): Update.
12043 * symfile.c (build_section_addr_info_from_objfile)
12044 (init_objfile_sect_indices): Update.
12045 (struct place_section_arg): Change type of "offsets".
12046 (place_section): Update.
12047 (relative_addr_info_to_section_offsets): Change type of
12048 "section_offsets". Remove "num_sections" parameter.
12049 (default_symfile_offsets, syms_from_objfile_1)
12050 (set_objfile_default_section_offset): Update.
12051 (reread_symbols): No need to preserve section offsets by hand.
12052 (symfile_map_offsets_to_segments): Change type of "offsets".
12053 * stap-probe.c (relocate_address): Update.
12054 * stabsread.h (process_one_symbol): Update.
12055 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12056 (solib_target_relocate_section_addresses): Update.
12057 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12058 Update.
12059 * solib-frv.c (frv_relocate_main_executable): Update.
12060 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12061 * solib-aix.c (solib_aix_get_section_offsets): Change return
12062 type.
12063 (solib_aix_solib_create_inferior_hook): Update.
12064 * remote.c (remote_target::get_offsets): Update.
12065 * psymtab.c (find_pc_sect_psymtab): Update.
12066 * psympriv.h (struct partial_symbol) <address, text_low,
12067 text_high>: Update.
12068 * objfiles.h (obj_section_offset): Update.
12069 (struct objfile) <section_offsets>: Change type.
12070 <num_sections>: Remove.
12071 (objfile_relocate): Update.
12072 * objfiles.c (entry_point_address_query): Update
12073 (relocate_one_symbol): Change type of "section_offsets".
12074 (objfile_relocate1, objfile_relocate1): Change type of
12075 "new_offsets".
12076 (objfile_rebase1): Update.
12077 * mipsread.c (mipscoff_symfile_read): Update.
12078 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12079 parameter.
12080 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12081 (parse_external, psymtab_to_symtab_1): Update.
12082 * machoread.c (macho_symfile_offsets): Update.
12083 * ia64-tdep.c (ia64_find_unwind_table): Update.
12084 * hppa-tdep.c (read_unwind_info): Update.
12085 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12086 * dwarf2read.c (create_addrmap_from_index)
12087 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12088 (process_psymtab_comp_unit_reader, add_partial_symbol)
12089 (add_partial_subprogram, process_full_comp_unit)
12090 (read_file_scope, read_func_scope, read_lexical_block_scope)
12091 (read_call_site_scope, dwarf2_rnglists_process)
12092 (dwarf2_ranges_process, dwarf2_ranges_read)
12093 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12094 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12095 Update.
12096 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12097 Update.
12098 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12099 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12100 (process_one_symbol): Change type of "section_offsets".
12101 * ctfread.c (get_objfile_text_range): Update.
12102 * coffread.c (coff_symtab_read, enter_linenos)
12103 (process_coff_symbol): Update.
12104 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12105 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12106
12107 2020-01-08 Tom Tromey <tromey@adacore.com>
12108
12109 * dwarf2read.c (parse_macro_definition): Use std::string.
12110 (parse_macro_definition): Likewise.
12111
12112 2020-01-08 Tom Tromey <tromey@adacore.com>
12113
12114 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12115 (ATTR_ALLOC_CHUNK): Remove.
12116
12117 2020-01-08 Tom Tromey <tromey@adacore.com>
12118
12119 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12120
12121 2020-01-08 Tom Tromey <tromey@adacore.com>
12122
12123 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12124 (dwarf2_compute_name, open_dwo_file): Likewise.
12125 (process_enumeration_scope): Use std::vector.
12126 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12127 (partial_die_info::fixup, dwarf2_start_subfile)
12128 (guess_full_die_structure_name, dwarf2_name): Likewise.
12129 (determine_prefix): Update.
12130 (guess_full_die_structure_name): Make return type const.
12131 (partial_die_full_name): Return unique_xmalloc_ptr.
12132 (DW_FIELD_ALLOC_CHUNK): Remove.
12133
12134 2020-01-07 Tom Tromey <tromey@adacore.com>
12135
12136 PR build/24937:
12137 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12138
12139 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12140
12141 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12142
12143 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12144
12145 * stack.c (print_frame_info): Move disassemble_next_line code
12146 inside source_print block.
12147
12148 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12149
12150 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12151 gdb/signals.h, as we are now using native signal symbols.
12152
12153 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12154
12155 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12156 overflow by an early check of content vs threshold.
12157 * tui/tui-source.c (tui_source_window::line_is_displayed):
12158 Likewise.
12159
12160 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12161
12162 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12163
12164 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12165
12166 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12167 export table if no section contains it's RVA.
12168
12169 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12170
12171 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12172
12173 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12174
12175 * source.c (print_source_lines_base): Set last_line_listed.
12176
12177 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12178
12179 * tui/tui-disasm.c: Remove trailing spaces.
12180
12181 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12182 Pedro Alves <palves@redhat.com>
12183
12184 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12185 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12186 (windows_gdb_signal_to_target): New function, uses the above
12187 enumeration to convert GDB internal signal codes to equivalent
12188 Windows codes.
12189 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12190 * windows-nat.c: Include "gdb_wait.h".
12191 (get_windows_debug_event): Extract the fatal exception from the
12192 exit status and convert to the equivalent Posix signal number.
12193 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12194 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12195 * gdbsupport/gdb_wait.c: New file, implements
12196 windows_status_to_termsig.
12197 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12198 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12199
12200 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12201
12202 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12203 show_layout.
12204
12205 2020-01-05 Luis Machado <luis.machado@linaro.org>
12206
12207 * aarch64-linux-nat.c
12208 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12209 and bfd_mach_aarch64.
12210
12211 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12212
12213 * ui-file.c (stdio_file::can_emit_style_escape)
12214 (tee_file::can_emit_style_escape): Ensure style is used also on
12215 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12216 to gdb_stdout.
12217 * main.c (set_gdb_data_directory): Use file style to output the
12218 warning that the given pathname is not a directory.
12219 * top.c (show_history_filename, gdb_safe_append_history)
12220 (show_gdb_datadir): Use file style.
12221
12222 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12223
12224 * solib-target.c (struct lm_info_target):
12225 Change offsets to be a unique_xmalloc_ptr.
12226 (solib_target_relocate_section_addresses): Update.
12227
12228 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12229
12230 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12231
12232 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12233
12234 * MAINTAINERS (Write After Approval): Add myself.
12235
12236 2020-01-02 Luis Machado <luis.machado@linaro.org>
12237
12238 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12239 Cell BE architecture.
12240 * target.h (struct target_ops) <thread_architecture>: Likewise.
12241
12242 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12243
12244 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12245
12246 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12247
12248 * MAINTAINERS (Write After Approval): Add myself.
12249
12250 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12251
12252 * gdbarch.sh: Update copyright year range of generated files.
12253
12254 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12255
12256 Update copyright year range in all GDB files.
12257
12258 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12259
12260 * copyright.py: Convert to Python 3.
12261
12262 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12263
12264 * copyright.py: Adapt after move of gnulib directory from gdb
12265 directory to toplevel directory.
12266
12267 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12268
12269 * copyright.py (main): Exit if run from the wrong directory.
12270
12271 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12272
12273 * top.c (print_gdb_version): Change copyright year to 2020.
12274
12275 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12276
12277 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12278
12279 For older changes see ChangeLog-2019.
12280 \f
12281 Local Variables:
12282 mode: change-log
12283 left-margin: 8
12284 fill-column: 74
12285 version-control: never
12286 coding: utf-8
12287 End: