arc: Add ARCv2 XML target along with refactoring
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2
3 * arch/arc.h
4 (arc_gdbarch_features): New class to stir the selection of target XML.
5 (arc_create_target_description): Use FEATURES to choose XML target.
6 (arc_lookup_target_description): Use arc_create_target_description
7 to create _new_ target descriptions or return the already created
8 ones if the FEATURES is the same.
9 * arch/arc.c: Implementation of prototypes described above.
10 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
11 (arc_gdbarch_features_init): Initialize the FEATURES struct.
12 * arc-tdep.c (*_feature_name): Make feature names consistent.
13 (arc_register_feature): A new struct to hold information about
14 registers of a particular target/feature.
15 (arc_check_tdesc_feature): Check if XML provides registers in
16 compliance with ARC_REGISTER_FEATURE structs.
17 (arc_update_acc_reg_names): Add aliases for r58 and r59.
18 (determine_*_reg_feature_set): Which feature name to look for.
19 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
20 (mach_type_to_arc_isa): Convert from a set of binutils machine types
21 to expected ISA enums to be used in arc_gdbarch_features structs.
22 * features/Makefile (FEATURE_XMLFILES): Add new files.
23 * gdb/features/arc/v1-aux.c: New file.
24 * gdb/features/arc/v1-aux.xml: Likewise.
25 * gdb/features/arc/v1-core.c: Likewise.
26 * gdb/features/arc/v1-core.xml: Likewise.
27 * gdb/features/arc/v2-aux.c: Likewise.
28 * gdb/features/arc/v2-aux.xml: Likewise.
29 * gdb/features/arc/v2-core.c: Likewise.
30 * gdb/features/arc/v2-core.xml: Likewise.
31 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
32
33 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
34 Andrew Burgess <andrew.burgess@embecosm.com>
35
36 PR m2/26372
37 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
38 an assert. Remove single element array indexing pattern as the
39 MULTI_SUBSCRIPT support will handle this case too.
40
41 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
42
43 * value.h (valprint_check_validity): Move declaration from
44 here...
45 * valprint.h (valprint_check_validity): ... to here.
46
47 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
48
49 * debug.h: New file.
50 * debug.c (debug_prefixed_vprintf): New function.
51 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
52 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
53
54 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
55
56 * infrun.h (infrun_debug_printf_1): New function declaration.
57 (infrun_debug_printf): New macro.
58 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
59 throughout.
60 (infrun_debug_printf): New function.
61 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
62 (handle_jit_event): Likewise.
63
64 2020-08-21 Mark Wielaard <mark@klomp.org>
65
66 * ada-lex.l: Extend register warnings diagnostics comment for g++.
67
68 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
69
70 * frame.c (enum class frame_id_status): New.
71 (struct frame_info) <this_id::p>: Change type to frame_id_status.
72 (fprintf_frame): Update.
73 (compute_frame_id): Set frame id status to "computing" on entry.
74 Set it back to "not_computed" on failure and to "computed" on
75 success.
76 (get_frame_id): Assert the frame id is not being computed.
77 (create_sentinel_frame): Use frame_id_status::COMPUTED.
78 (create_new_frame): Likewise.
79 (frame_cleanup_after_sniffer): Update assert.
80
81 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
82
83 * regcache.c (pid_ptid_regcache_map): New type.
84 (target_ptid_regcache_map): Remove.
85 (target_pid_ptid_regcache_map): New type.
86 (regcaches): Change type to target_pid_ptid_regcache_map.
87 (get_thread_arch_aspace_regcache): Update.
88 (regcache_thread_ptid_changed): Update, handle pid-like ptid
89 case.
90 (regcaches_size): Update.
91 (regcache_count): Update.
92 (registers_changed_ptid_target_pid_test): New.
93 (_initialize_regcache): Register new test.
94
95 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
96
97 * regcache.c (regcache_count): New.
98 (struct regcache_test_data): New.
99 (regcache_test_data_up): New.
100 (populate_regcaches_for_test): New.
101 (regcaches_test): Remove.
102 (get_thread_arch_aspace_regcache_test): New.
103 (registers_changed_ptid_all_test): New.
104 (registers_changed_ptid_target_test): New.
105 (registers_changed_ptid_target_ptid_test): New.
106 (regcache_thread_ptid_changed): Remove regcache_count lambda.
107 (_initialize_regcache): Register new tests.
108
109 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
110
111 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
112 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
113 gdbarch and aspace parameter. Use current inferior's aspace.
114 Validate regcache's arch value.
115 (regcaches_test): Update.
116
117 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
118
119 * regcache.c (regcaches_test): Call registers_changed.
120
121 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
122
123 * infrun.c (process_event_stop_test): Fix typo "breapoint".
124
125 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
126
127 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
128 to find the end of prologue for flang compiled binaries.
129 * arm-tdep.c (arm_skip_prologue): Likewise.
130 * i386-tdep.c (i386_skip_prologue): Likewise.
131 * producer.c (producer_is_llvm): New function.
132 (producer_parsing_tests): Added new tests for clang/flang.
133 * producer.h (producer_is_llvm): New declaration.
134
135 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
136
137 * linux-nat.c (linux_nat_debug_printf): New function.
138 (linux_nat_debug_printf_1): New macro. Use throughout the file.
139
140 2020-08-18 Aaron Merey <amerey@redhat.com>
141
142 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
143 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
144 (CLIBS): Add DEBUGINFOD_LIBS.
145
146 2020-08-17 Sergei Trofimovich <siarheit@google.com>
147
148 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
149 'gdbarch_num_regs'.
150
151 2020-08-17 Tom Tromey <tromey@adacore.com>
152
153 * ada-varobj.c (ada_varobj_decode_var): Handle case where
154 ada_get_decoded_value returns NULL.
155
156 2020-08-17 Tom Tromey <tromey@adacore.com>
157
158 * python/py-inferior.c (infpy_search_memory): Use
159 gdb_py_object_from_ulongest.
160 * python/py-infevents.c (create_inferior_call_event_object)
161 (create_memory_changed_event_object): Use
162 gdb_py_object_from_ulongest.
163 * python/py-linetable.c (ltpy_entry_get_pc): Use
164 gdb_py_object_from_ulongest.
165
166 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
167
168 * loc.c (class symbol_needs_eval_context): Fix indentation.
169
170 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
171
172 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
173 bool.
174
175 2020-08-17 Tom de Vries <tdevries@suse.de>
176
177 PR gdb/26393
178 * gdbtypes.c (dump_dynamic_prop): New function.
179 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
180
181 2020-08-15 Tom de Vries <tdevries@suse.de>
182
183 PR backtrace/26390
184 * stack.c (print_frame_args): Temporarily set the selected
185 frame to FRAME while printing the frame's arguments.
186
187 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
188
189 PR breakpoints/26385
190 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
191 Always clear watchpoint with PTRACE_SET_DEBUGREG.
192
193 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
194
195 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
196 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
197 and >= to check return value instead of == -1 and != -1.
198
199 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
200
201 * utils.h (class gdb_argv) <as_array_view>: New method.
202 * utils.c (gdb_argv_as_array_view_test): New.
203 (_initialize_utils): Register selftest.
204 * maint.c (maintenance_selftest): Use the new method.
205
206 2020-08-13 Kamil Rytarowski <n54@gmx.com>
207
208 * target.h (supports_dumpcore, dumpcore): New
209 function declarations.
210 * target.c (supports_dumpcore, dumpcore): New
211 functions.
212 * target-delegates.c: Rebuild.
213 * gcore.c (gcore_command): Use target_supports_dumpcore ()
214 and target_dumpcore ().
215
216 2020-08-13 Aaron Merey <amerey@redhat.com>
217
218 * debuginfod-support.c: Replace global variables with user_data.
219
220 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
221
222 * maint.c (maintenance_selftest): Split args and pass array_view
223 to run_tests.
224
225 2020-08-12 Luis Machado <luis.machado@linaro.org>
226
227 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
228 type's length.
229 Use %s and pulongest to print the length.
230
231 2020-08-12 Pedro Alves <palves@redhat.com>
232
233 * NEWS: Move "Multi-target debugging support" item to the
234 "Changes since GDB 9" section.
235
236 2020-08-12 Pedro Alves <palves@redhat.com>
237
238 PR gdb/26336
239 * progspace.c (program_space::remove_objfile): Invalidate the
240 frame cache.
241
242 2020-08-11 Tom de Vries <tdevries@suse.de>
243
244 * MAINTAINERS: Mark ms1 as deleted.
245
246 2020-08-10 Luis Machado <luis.machado@linaro.org>
247
248 PR gdb/26310
249
250 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
251 act accordingly.
252 (aarch64_analyze_prologue_test): Add more unit tests to exercise
253 movz/str/stur/stp skipping behavior.
254
255 2020-08-10 Luis Machado <luis.machado@linaro.org>
256
257 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
258 struct user_sve_header instead of struct sve_context.
259
260 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
261
262 * read.h (dwarf2_fetch_die_loc_sect_off,
263 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
264 `void *` parameter with function_view.
265 * read.c (dwarf2_fetch_die_loc_sect_off,
266 dwarf2_fetch_die_loc_cu_off): Likewise.
267 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
268 (per_cu_dwarf_call): Adjust.
269 (get_frame_address_in_block_wrapper): Remove.
270 (indirect_synthetic_pointer): Adjust.
271 (get_ax_pc): Remove.
272 (dwarf2_compile_expr_to_ax): Adjust.
273
274 2020-08-08 Tom de Vries <tdevries@suse.de>
275
276 PR build/26344
277 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
278 constructor.
279 * regcache.c (get_thread_arch_aspace_regcache): Same.
280
281 2020-08-07 Tom Tromey <tromey@adacore.com>
282
283 * ravenscar-thread.c
284 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
285 New method.
286 (ravenscar_thread_target::wait): Check
287 runtime_initialized.
288 (ravenscar_thread_target::prepare_to_store)
289 (ravenscar_thread_target::stopped_by_sw_breakpoint)
290 (ravenscar_thread_target::stopped_by_hw_breakpoint)
291 (ravenscar_thread_target::stopped_by_watchpoint)
292 (ravenscar_thread_target::stopped_data_address)
293 (ravenscar_thread_target::core_of_thread): Use
294 scoped_restore_current_thread and
295 set_base_thread_from_ravenscar_task.
296
297 2020-08-07 Tom Tromey <tromey@adacore.com>
298
299 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
300
301 2020-08-07 Tom Tromey <tromey@adacore.com>
302
303 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
304 update_inferior_ptid before update_thread_list.
305 (temporarily_change_regcache_ptid): New class.
306 (ravenscar_thread_target::fetch_registers)
307 (ravenscar_thread_target::store_registers)
308 (ravenscar_thread_target::prepare_to_store): Use base thread when
309 forwarding operation.
310
311 2020-08-07 Tom Tromey <tromey@adacore.com>
312
313 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
314 "is_pid" case.
315
316 2020-08-07 Tom Tromey <tromey@adacore.com>
317
318 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
319 New methods.
320 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
321 first.
322 (ravenscar_thread_target::add_thread): Rename from
323 ravenscar_add_thread.
324 (ravenscar_thread_target::update_thread_list): Use a lambda.
325 (ravenscar_thread_target::xfer_partial): New method.
326
327 2020-08-07 Tom Tromey <tromey@adacore.com>
328
329 * ada-lang.h (ada_task_list_iterator_ftype): Now a
330 gdb::function_view.
331 (iterate_over_live_ada_tasks): Change type of argument.
332 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
333 of argument.
334
335 2020-08-07 Tom Tromey <tromey@adacore.com>
336
337 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
338 Remove.
339 (ravenscar_thread_target::extra_thread_info): Remove.
340 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
341 defer to target beneath for non-Ravenscar threads.
342
343 2020-08-07 Tom Tromey <tromey@adacore.com>
344
345 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
346 get_base_thread_from_ravenscar_task>: Now methods.
347 <m_cpu_map>: New member.
348 (ravenscar_thread_target::get_thread_base_cpu): Rename from
349 ravenscar_get_thread_base_cpu. Check m_cpu_map.
350 (ravenscar_thread_target::task_is_currently_active): Update.
351 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
352 Now a method.
353 (ravenscar_thread_target::add_active_thread): Put initial thread
354 into the m_cpu_map.
355
356 2020-08-07 Tom Tromey <tromey@adacore.com>
357
358 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
359 event_ptid.
360
361 2020-08-07 Tom Tromey <tromey@adacore.com>
362
363 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
364 runtime_initialized.
365
366 2020-08-07 Tom Tromey <tromey@adacore.com>
367
368 * ravenscar-thread.c (ravenscar_thread_target): Don't call
369 add_active_thread.
370 (ravenscar_thread_target::add_active_thread): Now public.
371 (ravenscar_inferior_created): Call add_active_thread after pushing
372 the target.
373
374 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
375
376 * regcache.c (ptid_regcache_map): New type.
377 (target_ptid_regcache_map): New type.
378 (regcaches): Change type to target_ptid_regcache_map.
379 (get_thread_arch_aspace_regcache): Update to regcaches' new
380 type.
381 (regcache_thread_ptid_changed): Likewise.
382 (registers_changed_ptid): Likewise.
383 (regcaches_size): Likewise.
384 (regcaches_test): Update.
385 (regcache_thread_ptid_changed): Update.
386 * regcache.h (regcache_up): New type.
387 * gdbsupport/ptid.h (hash_ptid): New struct.
388
389 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
390
391 * observable.h (thread_ptid_changed): Add parameter
392 `process_stratum_target *`.
393 * infrun.c (infrun_thread_ptid_changed): Add parameter
394 `process_stratum_target *` and use it.
395 (selftests): New namespace.
396 (infrun_thread_ptid_changed): New function.
397 (_initialize_infrun): Register selftest.
398 * regcache.c (regcache_thread_ptid_changed): Add parameter
399 `process_stratum_target *` and use it.
400 (regcache_thread_ptid_changed): New function.
401 (_initialize_regcache): Register selftest.
402 * thread.c (thread_change_ptid): Pass target to
403 thread_ptid_changed observable.
404
405 2020-08-06 Caroline Tice <cmtice@google.com>
406
407 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
408 (struct dwp_sections): Update field comments. Add loclists and
409 rnglists fields.
410 (struct virtual_v2_dwo_sections): Rename struct to
411 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
412 size & offset fields for loclists and rnglists.
413 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
414 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
415 skipping dummy type units.
416 (create_dwp_hash_table): Update the large comment above the function to
417 discuss Version 5 DWP files as well, with references. Update all the
418 version checks in the function to check for version 5 as well. Add new
419 section at the end to create dwp hash table for version 5.
420 (create_dwp_v2_section): Rename function to
421 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
422 Add V5 to error message text.
423 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
424 into calls to create_dwp_v2_or_v5_section.
425 (create_dwo_unit_in_dwp_v5): New function.
426 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
427 check for version2; add else clause to handle version 5.
428 (open_and_init_dwo_file): Add code to check dwarf version & only call
429 create_debug_types_hash_table (with sections.types) if version is not 5;
430 else call create_debug_type_hash_table, with sections.info.
431 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
432 version 5.
433 (dwarf2_locate_v5_dwp_sections): New function.
434 (open_and_init_dwp_file): Add else-if clause for version 5 to call
435 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
436
437 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
438
439 * regcache.h (class regcache): Remove friend
440 registers_changed_ptid.
441 <regcache_thread_ptid_changed>: Remove.
442 <regcaches>: Remove.
443 * regcache.c (regcache::regcaches): Rename to...
444 (regcaches): ... this. Make static.
445 (get_thread_arch_aspace_regcache): Update.
446 (regcache::regcache_thread_ptid_changed): Rename to...
447 (regcache_thread_ptid_changed): ... this. Update.
448 (class regcache_access): Remove.
449 (regcaches_test): Update.
450 (_initialize_regcache): Update.
451 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
452 <forward_list>.
453
454 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
455
456 * regcache.h (class regcache) <current_regcache>: Rename to...
457 <regcaches>: ... this. Move doc here.
458 * regcache.c (regcache::current_regcache) Rename to...
459 (regcache::regcaches): ... this. Move doc to header.
460 (get_thread_arch_aspace_regcache): Update.
461 (regcache::regcache_thread_ptid_changed): Update.
462 (registers_changed_ptid): Update.
463 (class regcache_access) <current_regcache_size>: Rename to...
464 <regcaches_size>: ... this.
465 (current_regcache_test): Rename to...
466 (regcaches_test): ... this.
467 (_initialize_regcache): Update.
468
469 2020-08-06 Victor Collod <vcollod@nvidia.com>
470
471 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
472
473 2020-08-05 Kevin Buettner <kevinb@redhat.com>
474
475 * corelow.c (core_target::build_file_mappings): Don't output
476 null pathname in warning.
477
478 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
479
480 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
481 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
482 gdb.dwarf2/dw2-single-line-discriminators.exp,
483 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
484
485 2020-08-05 Tom Tromey <tromey@adacore.com>
486
487 PR rust/26197:
488 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
489 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
490 Fix off-by-one and type size errors in ordinary case.
491
492 2020-08-05 Tom de Vries <tdevries@suse.de>
493
494 * gdbtypes.c (type_not_allocated, type_not_associated): Use
495 "prop->const_val () == 0" instead of "prop->const_val () != 0".
496
497 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
498
499 * frame.h (frame_id_p): Return bool.
500 (frame_id_artificial_p): Return bool.
501 (frame_id_eq): Return bool.
502 (has_stack_frames): Return bool.
503 (get_selected_frame): Fix typo in comment.
504 (get_frame_pc_if_available): Return bool.
505 (get_frame_address_in_block_if_available): Return bool.
506 (get_frame_func_if_available): Return bool.
507 (read_frame_register_unsigned): Return bool.
508 (get_frame_register_bytes): Return bool.
509 (safe_frame_unwind_memory): Return bool.
510 (deprecated_frame_register_read): Return bool.
511 (frame_unwinder_is): Return bool.
512 * frame.c (struct frame_info) <prev_arch::p>: Change type to
513 bool.
514 <this_id::p>: Likewise.
515 <prev_p>: Likewise.
516 (frame_stash_add): Return bool.
517 (get_frame_id): Use bool.
518 (frame_id_build_special) Use bool.
519 (frame_id_build_unavailable_stack): Use bool.
520 (frame_id_build): Use bool.
521 (frame_id_p): Return bool, use true/false instead of 1/0.
522 (frame_id_artificial_p): Likewise.
523 (frame_id_eq): Likewise.
524 (frame_id_inner): Likewise.
525 (get_frame_func_if_available): Likewise.
526 (read_frame_register_unsigned): Likewise.
527 (deprecated_frame_register_read): Likewise.
528 (get_frame_register_bytes): Likewise.
529 (has_stack_frames): Likewise.
530 (inside_main_func): Likewise.
531 (inside_entry_func): Likewise.
532 (get_frame_pc_if_available): Likewise.
533 (get_frame_address_in_block_if_available): Likewise.
534 (frame_unwinder_is): Likewise.
535 (safe_frame_unwind_memory): Likewise.
536 (frame_unwind_arch): Likewise.
537
538 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
539
540 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
541 type to cached_copy_status.
542 (fprintf_frame): Adjust.
543 (get_frame_func_if_available): Adjust.
544 (frame_cleanup_after_sniffer): Adjust.
545
546 2020-08-04 Mark Wielaard <mark@klomp.org>
547
548 * MAINTAINERS (Write After Approval): Update email address.
549
550 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
551
552 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
553 dynamic_prop::const_val.
554
555 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
556
557 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
558 dynamic_prop::kind.
559
560 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
561
562 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
563
564 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
565
566 * configure.tgt: Set gdb_sim for bpf-*-* targets.
567
568 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
569 Jose E. Marchesi <jose.marchesi@oracle.com>
570
571 * configure.tgt: Add entry for bpf-*-*.
572 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
573 (ALLDEPFILES): Add bpf-tdep.c.
574 * bpf-tdep.c: New file.
575 * MAINTAINERS: Add bpf target and maintainer.
576 * NEWS: Mention the support for the new target.
577
578 2020-08-04 Tom de Vries <tdevries@suse.de>
579
580 PR symtab/23270
581 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
582 Error.
583
584 2020-08-03 John Baldwin <jhb@FreeBSD.org>
585
586 * syscalls/freebsd.xml: Regenerate.
587
588 2020-08-03 John Baldwin <jhb@FreeBSD.org>
589
590 * syscalls/update-freebsd.sh: Fix usage and year range.
591
592 2020-08-03 Tom de Vries <tdevries@suse.de>
593
594 PR symtab/26333
595 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
596 DW_LNE_lo_user/DW_LNE_hi_user range.
597
598 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
599
600 PR ada/26318
601 * ada-lang.c (ada_modulus): Return 0 if property is not of const
602 kind.
603
604 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
605
606 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
607
608 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
609
610 * breakpoint.c (set_breakpoint_condition): Update the condition
611 expressions after checking that the input condition string parses
612 successfully and does not contain junk at the end.
613
614 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
615
616 * breakpoint.c (set_breakpoint_condition): Update the
617 condition string after parsing the new condition successfully.
618
619 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
620
621 * proc-api.c (_STRUCTURED_PROC): Don't define.
622 * proc-events.c: Likewise.
623 * proc-flags.c: Likewise.
624 * proc-why.c: Likewise.
625 * procfs.c: Likewise.
626
627 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
628 * configure, config.in: Regenerate.
629
630 2020-07-30 Tom de Vries <tdevries@suse.de>
631
632 PR build/26320
633 * ui-style.h (struct ui_file_style::color): Wrap m_value and
634 m_red/m_green/m_blue in a union.
635
636 2020-07-29 Tom de Vries <tdevries@suse.de>
637
638 PR tdep/26280
639 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
640
641 2020-07-28 Tom Tromey <tromey@adacore.com>
642
643 PR symtab/26270:
644 * symtab.h (find_pc_partial_function_sym): Declare.
645 * cli/cli-cmds.c (disassemble_command): Use
646 find_pc_partial_function_sym. Check asm_demangle.
647 * blockframe.c (cache_pc_function_sym): New global.
648 (cache_pc_function_name): Remove.
649 (clear_pc_function_cache): Update.
650 (find_pc_partial_function_sym): New function, from
651 find_pc_partial_function.
652 (find_pc_partial_function): Rewrite using
653 find_pc_partial_function_sym.
654
655 2020-07-28 Tom Tromey <tromey@adacore.com>
656
657 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
658 help. Add usage.
659
660 2020-07-28 Tom Tromey <tromey@adacore.com>
661
662 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
663 <DW_OP_GNU_variable_value>: Cast to address type.
664
665 2020-07-28 Kamil Rytarowski <n54@gmx.com>
666
667 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
668 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
669 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
670 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
671 (nbsd_get_siginfo_type): New.
672 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
673 (_initialize_nbsd_tdep): New.
674
675 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
676
677 PR binutils/26301
678 * configure: Regenerated.
679
680 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
681
682 PR binutils/26301
683 * configure: Regenerated.
684
685 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
686
687 * python/py-frame.c: Remove 'user-regs.h' include.
688 (frapy_read_register): Rewrite to make use of
689 gdbpy_parse_register_id.
690 * python/py-registers.c (gdbpy_parse_register_id): New function,
691 moved here from python/py-unwind.c. Updated the return type, and
692 also accepts register descriptor objects.
693 * python/py-unwind.c: Remove 'user-regs.h' include.
694 (pyuw_parse_register_id): Moved to python/py-registers.c.
695 (unwind_infopy_add_saved_register): Update to use
696 gdbpy_parse_register_id.
697 (pending_framepy_read_register): Likewise.
698 * python/python-internal.h (gdbpy_parse_register_id): Declare.
699
700 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
701
702 * python/py-registers.c: Add 'user-regs.h' include.
703 (register_descriptor_iter_find): New function.
704 (register_descriptor_iterator_object_methods): New static global
705 methods array.
706 (register_descriptor_iterator_object_type): Add pointer to methods
707 array.
708
709 2020-07-27 John Baldwin <jhb@FreeBSD.org>
710
711 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
712 for all architectures on FreeBSD 11.3 and later.
713
714 2020-07-27 Tom Tromey <tromey@adacore.com>
715
716 * gcore.h (load_corefile): Don't declare.
717
718 2020-07-27 Tom de Vries <tdevries@suse.de>
719
720 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
721 * config.in: Regenerate.
722 * configure: Regenerate.
723
724 2020-07-26 Eli Zaretskii <eliz@gnu.org>
725
726 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
727 ws2tcpip.h. When checking whether socklen_t type is defined, use
728 ws2tcpip.h if it is available and sys/socket.h isn't.
729 * configure: Regenerate.
730 * config.in: Regenerate.
731
732 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
733
734 PR fortran/23051
735 PR fortran/26139
736 * valops.c (value_ind): Pass address to
737 readjust_indirect_value_type.
738 * value.c (readjust_indirect_value_type): Make parameter
739 non-const, and add extra address parameter. Resolve original type
740 before using it.
741 * value.h (readjust_indirect_value_type): Update function
742 signature and comment.
743
744 2020-07-25 Tom de Vries <tdevries@suse.de>
745
746 PR symtab/26243
747 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
748 entries.
749
750 2020-07-24 Aaron Merey <amerey@redhat.com>
751
752 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
753 * configure: Rebuild.
754
755 2020-07-23 Kevin Buettner <kevinb@redhat.com>
756
757 PR corefiles/26294
758 * corelow.c (_initialize_corelow): Add period to help text
759 for "maintenance print core-file-backed-mappings".
760
761 2020-07-23 Pedro Alves <pedro@palves.net>
762
763 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
764 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
765 meanwhile.
766 * frame.c (frame_cache_generation, get_frame_cache_generation):
767 New.
768 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
769 (get_prev_frame_if_no_cycle): On exception, don't touch
770 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
771 * frame.h (get_frame_cache_generation): Declare.
772
773 2020-07-23 Tom de Vries <tdevries@suse.de>
774
775 PR tui/26282
776 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
777 New default constructor.
778
779 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
780
781 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
782 exclude non-statement entries.
783
784 2020-07-22 Kevin Buettner <kevinb@redhat.com>
785
786 * NEWS (New commands): Mention new command
787 "maintenance print core-file-backed-mappings".
788
789 2020-07-22 Kevin Buettner <kevinb@redhat.com>
790
791 * corelow.c (gdbcmd.h): Include.
792 (core_target::info_proc_mappings): New method.
793 (get_current_core_target): New function.
794 (maintenance_print_core_file_backed_mappings): New function.
795 (_initialize_corelow): Add core-file-backed-mappings to
796 "maint print" commands.
797
798 2020-07-22 Kevin Buettner <kevinb@redhat.com>
799
800 * linux-tdep.c (dump_note_entry_p): New function.
801 (linux_dump_mapping_p_ftype): New typedef.
802 (linux_find_memory_regions_full): Add new parameter,
803 should_dump_mapping_p.
804 (linux_find_memory_regions): Adjust call to
805 linux_find_memory_regions_full.
806 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
807 call to linux_find_memory_regions_full.
808
809 2020-07-22 Kevin Buettner <kevinb@redhat.com>
810
811 * corelow.c (solist.h, unordered_map): Include.
812 (class core_target): Add field m_core_file_mappings and
813 method build_file_mappings.
814 (core_target::core_target): Call build_file_mappings.
815 (core_target::~core_target): Free memory associated with
816 m_core_file_mappings.
817 (core_target::build_file_mappings): New method.
818 (core_target::xfer_partial): Use m_core_file_mappings
819 for memory transfers.
820 * linux-tdep.c (linux_read_core_file_mappings): New
821 function.
822 (linux_core_info_proc_mappings): Rewrite to use
823 linux_read_core_file_mappings.
824 (linux_init_abi): Register linux_read_core_file_mappings.
825
826 2020-07-22 Kevin Buettner <kevinb@redhat.com>
827
828 * arch-utils.c (default_read_core_file_mappings): New function.
829 * arch-utils.c (default_read_core_file_mappings): Declare.
830 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
831 * gdbarch.h, gdbarch.c: Regenerate.
832
833 2020-07-22 Kevin Buettner <kevinb@redhat.com>
834
835 PR corefiles/25631
836 * corelow.c (core_target:xfer_partial): Revise
837 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
838 case after first checking the stratum beneath the core
839 target.
840 (has_all_memory): Return true.
841 * target.c (raw_memory_xfer_partial): Revise comment
842 regarding use of has_all_memory.
843
844 2020-07-22 Kevin Buettner <kevinb@redhat.com>
845
846 * exec.h (section_table_xfer_memory): Revise declaration,
847 replacing section name parameter with an optional callback
848 predicate.
849 * exec.c (section_table_xfer_memory): Likewise.
850 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
851 of section_table_xfer_memory.
852
853 2020-07-22 Tom Tromey <tromey@adacore.com>
854
855 * mi/mi-cmd-stack.c (list_args_or_locals): Use
856 lookup_symbol_search_name.
857
858 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
859
860 * python/py-registers.c (gdbpy_register_object_data_init): Remove
861 redundant local variable.
862 (gdbpy_get_register_descriptor): Extract descriptor vector as a
863 reference, not pointer, update code accordingly.
864
865 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
866 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
867
868 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
869 * jit.c (jit_breakpoint_re_set_internal): Use the
870 `skip_jit_symbol_lookup` field.
871
872 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
873 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
874
875 * jit.c (jit_read_descriptor): Define the descriptor address once,
876 use twice.
877 (jit_breakpoint_deleted): Move the declaration of the loop variable
878 `iter` into the loop header.
879 (jit_breakpoint_re_set_internal): Move the declaration of the local
880 variable `objf_data` to the first point of definition.
881 (jit_event_handler): Move the declaration of local variables
882 `code_entry`, `entry_addr`, and `objf` to their first point of use.
883 Rename `objf` to `jited`.
884
885 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
886
887 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
888 Remove.
889 * jit.c (get_jiter_objfile_data): Update.
890
891 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
892 Simon Marchi <simon.marchi@polymtl.ca>
893
894 * jit.c (struct jit_program_space_data): Remove.
895 (jit_program_space_key): Remove.
896 (jiter_objfile_data::~jiter_objfile_data): Remove program space
897 stuff.
898 (get_jit_program_space_data): Remove.
899 (jit_breakpoint_deleted): Iterate on all of the program space's
900 objfiles.
901 (jit_inferior_init): Likewise.
902 (jit_breakpoint_re_set_internal): Likewise. Also change return
903 type to void.
904 (jit_breakpoint_re_set): Pass current_program_space to
905 jit_breakpoint_re_set_internal.
906
907 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
908
909 * jit.h (struct jiter_objfile_data) <cached_code_address,
910 jit_breakpoint>: Move to here from ...
911 * jit.c (jit_program_space_data): ... here.
912 (jiter_objfile_data::~jiter_objfile_data): Update.
913 (jit_breakpoint_deleted): Update.
914 (jit_breakpoint_re_set_internal): Update.
915
916 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
917
918 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
919 checks.
920 (jit_read_descriptor): Remove NULL check.
921 (jit_event_handler): Add an assertion.
922
923 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
924
925 * jit.h (struct jit_objfile_data): Split into...
926 (struct jiter_objfile_data): ... this ...
927 (struct jited_objfile_data): ... and this.
928 * objfiles.h (struct objfile) <jit_data>: Remove.
929 <jiter_data, jited_data>: New fields.
930 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
931 (jiter_objfile_data::~jiter_objfile_data): ... this.
932 (get_jit_objfile_data): Rename to ...
933 (get_jiter_objfile_data): ... this.
934 (add_objfile_entry): Update.
935 (jit_read_descriptor): Use get_jiter_objfile_data.
936 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
937 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
938 (jit_inferior_exit_hook): Use objfile's jited_data field.
939
940 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
941
942 * jit.h: Forward-declare `struct minimal_symbol`.
943 (struct jit_objfile_data): Migrate to here from jit.c; also add a
944 constructor, destructor, and an objfile* field.
945 * jit.c (jit_objfile_data): Remove.
946 (struct jit_objfile_data): Migrate from here to jit.h.
947 (jit_objfile_data::~jit_objfile_data): New destructor
948 implementation with code moved from free_objfile_data.
949 (free_objfile_data): Delete.
950 (get_jit_objfile_data): Update to use the jit_data field of objfile.
951 (jit_find_objf_with_entry_addr): Ditto.
952 (jit_inferior_exit_hook): Ditto.
953 (_initialize_jit): Remove the call to
954 register_objfile_data_with_cleanup.
955 * objfiles.h (struct objfile) <jit_data>: New field.
956
957 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
958
959 * jit.h: Forward-declare `struct objfile`.
960 (jit_event_handler): Add a second parameter, the JITer objfile.
961 * jit.c (jit_read_descriptor): Change the signature to take the
962 JITer objfile as an argument instead of the jit_program_space_data.
963 (jit_inferior_init): Update the call to jit_read_descriptor.
964 (jit_event_handler): Use the new JITer objfile argument when calling
965 jit_read_descriptor.
966 * breakpoint.c (handle_jit_event): Update the call to
967 jit_event_handler to pass the JITer objfile.
968
969 2020-07-21 John Baldwin <jhb@FreeBSD.org>
970
971 * gdbarch.c: Regenerate.
972 * gdbarch.h: Regenerate.
973 * gdbarch.sh (handle_segmentation_fault): Remove method.
974 * infrun.c (handle_segmentation_fault): Remove.
975 (print_signal_received_reason): Remove call to
976 handle_segmentation_fault.
977
978 2020-07-21 John Baldwin <jhb@FreeBSD.org>
979
980 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
981 Rename to sparc64_linux_report_signal_info and add siggnal
982 argument.
983 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
984 instead of sparc64_linux_handle_segmentation_fault.
985
986 2020-07-21 John Baldwin <jhb@FreeBSD.org>
987
988 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
989 i386_linux_report_signal_info instead of
990 i386_linux_handle_segmentation_fault.
991 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
992 to i386_linux_report_signal_info and add siggnal argument.
993 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
994 of i386_linux_handle_segmentation_fault.
995 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
996 to i386_linux_report_signal_info and add siggnal argument.
997
998 2020-07-21 John Baldwin <jhb@FreeBSD.org>
999
1000 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1001 hook if present.
1002
1003 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1004
1005 * gdbarch.c: Regenerate.
1006 * gdbarch.h: Regenerate.
1007 * gdbarch.sh (report_signal_info): New method.
1008 * infrun.c (print_signal_received_reason): Invoke gdbarch
1009 report_signal_info hook if present.
1010
1011 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1012
1013 * python/py-registers.c : Add 'unordered_map' include.
1014 (gdbpy_new_reggroup): Renamed to...
1015 (gdbpy_get_reggroup): ...this. Update to only create register
1016 group descriptors when needed.
1017 (gdbpy_reggroup_iter_next): Update.
1018
1019 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1020
1021 * python/py-registers.c (gdbpy_register_object_data): New static
1022 global.
1023 (gdbpy_register_object_data_init): New function.
1024 (gdbpy_new_register_descriptor): Renamed to...
1025 (gdbpy_get_register_descriptor): ...this, and update to reuse
1026 existing register descriptors where possible.
1027 (gdbpy_register_descriptor_iter_next): Update.
1028 (gdbpy_initialize_registers): Register new gdbarch data.
1029
1030 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1031
1032 * linux-nat.c (stopped_pids): Make static.
1033
1034 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1035
1036 PR ada/26235
1037 * gdbtypes.c (ada_discrete_type_low_bound,
1038 ada_discrete_type_high_bound): Handle undefined bounds.
1039
1040 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1041
1042 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1043 declaration.
1044 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1045 function.
1046
1047 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1048
1049 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1050 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1051 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1052 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1053 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1054 method.
1055
1056 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1057
1058 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1059 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1060 which are deprecated in Guile 3.0.
1061 * configure.ac (try_guile_versions): Add "guile-3.0".
1062 * configure (try_guile_versions): Regenerate.
1063 * NEWS: Update entry.
1064
1065 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1066 Doug Evans <dje@google.com>
1067
1068 PR gdb/21104
1069 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1070 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1071 USING_GUILE_BEFORE_2_2.
1072 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1073 Change type to 'scm_t_port_type *'.
1074 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1075 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1076 parameter and honor it. Update callers.
1077 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1078 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1079 functions.
1080 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1081 USING_GUILE_BEFORE_2_2.
1082 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1083 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1084 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1085 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1086 and 'SCM_PORT_TYPE'.
1087 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1088 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1089 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1090 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1091 [!USING_GUILE_BEFORE_2_2]: New functions.
1092 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1093 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1094 'gdbscm_memory_port_read'.
1095 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1096 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1097 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1098 function.
1099 (ioscm_init_memory_port): Remove.
1100 (ioscm_init_memory_port_stream): New function
1101 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1102 function.
1103 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1104 Return scm_from_uint (0).
1105 (gdbscm_set_memory_port_read_buffer_size_x)
1106 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1107 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1108 Return scm_from_uint (0).
1109 (gdbscm_set_memory_port_write_buffer_size_x)
1110 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1111 * configure.ac (try_guile_versions): Add "guile-2.2".
1112 * configure: Regenerate.
1113 * NEWS: Add entry.
1114
1115 2020-07-18 Tom Tromey <tom@tromey.com>
1116
1117 * linux-nat.c (linux_multi_process): Remove.
1118 (linux_nat_target::supports_multi_process): Return true.
1119
1120 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1121
1122 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1123 (riscv_lookup_target_description): Return pointer out of
1124 unique_ptr.
1125 * target-descriptions.c (allocate_target_description): Add
1126 comment.
1127 (target_desc_deleter::operator()): Likewise.
1128 * target-descriptions.h (struct target_desc_deleter): Moved to
1129 gdbsupport/tdesc.h.
1130 (target_desc_up): Likewise.
1131
1132 2020-07-17 Tom Tromey <tromey@adacore.com>
1133
1134 * linux-nat.c (linux_nat_target::supports_non_stop)
1135 (linux_nat_target::always_non_stop_p): Use "true".
1136 (linux_nat_target::supports_disable_randomization): Use "true" and
1137 "false".
1138
1139 2020-07-16 Caroline Tice <cmtice@google.com>
1140
1141 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1142 (RNGLIST_HEADER_SIZE64): New constant definition.
1143 (struct dwop_section_names): Add rnglists_dwo.
1144 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1145 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1146 (struct dwo_sections): Add rnglists field.
1147 (read_attribut_reprocess): Add tag parameter.
1148 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1149 (cu_debug_rnglists_section): New function (decl & definition).
1150 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1151 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1152 die whose range is being checked; get rnglist section from
1153 cu_debug_rnglists_section, to get from either objfile or dwo file as
1154 appropriate. Add cases for DW_RLE_base_addressx,
1155 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1156 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1157 test inside if-condition and updating complaint message.
1158 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1159 dwarf2_rnglists_process.
1160 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1161 dwarf2_ranges_process.
1162 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1163 need_ranges_base and update comment appropriately. Also pass die tag
1164 to dwarf2_ranges_read.
1165 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1166 need_ranges_base and update comment appropriately. Also pass die tag
1167 to dwarf2_ranges_process.
1168 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1169 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1170 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1171 need_ranges_base and update comment appropriately. Also pass die tag
1172 to read_attribute_reprocess and dwarf2_ranges_read.
1173 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1174 and update function comment appropriately.
1175 (read_loclist_index): Call read_loclists_rnglists_header instead of
1176 read_loclist_header.
1177 (read_rnglist_index): New function.
1178 (read_attribute_reprocess): Add tag parameter. Add code for
1179 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1180 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1181
1182 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1183
1184 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1185 being resolved.
1186
1187 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1188
1189 * arch-utils.c (show_architecture): Update formatting of messages.
1190
1191 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1192
1193 * gdbtypes.h (struct type) <bounds>: Handle array and string
1194 types.
1195 * ada-lang.c (assign_aggregate): Use type::bounds on
1196 array/string type.
1197 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1198 * c-varobj.c (c_number_of_children): Likewise.
1199 (c_describe_child): Likewise.
1200 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1201 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1202 (f_type_print_base): Likewise.
1203 * f-valprint.c (f77_array_offset_tbl): Likewise.
1204 (f77_get_upperbound): Likewise.
1205 (f77_print_array_1): Likewise.
1206 * guile/scm-type.c (gdbscm_type_range): Likewise.
1207 * m2-typeprint.c (m2_array): Likewise.
1208 (m2_is_long_set_of_type): Likewise.
1209 * m2-valprint.c (get_long_set_bounds): Likewise.
1210 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1211 * python/py-type.c (typy_range): Likewise.
1212 * rust-lang.c (rust_internal_print_type): Likewise.
1213 * type-stack.c (type_stack::follow_types): Likewise.
1214 * valarith.c (value_subscripted_rvalue): Likewise.
1215 * valops.c (value_cast): Likewise.
1216
1217 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1218
1219 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1220 callers to use the equivalent accessor methods.
1221
1222 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1223
1224 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1225 (struct type) <bit_stride>: New method.
1226 (TYPE_BIT_STRIDE): Remove.
1227 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1228
1229 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1230
1231 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1232 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1233 callers to use the equivalent accessor methods instead.
1234
1235 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1236
1237 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1238 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1239 callers to use the equivalent accessor methods instead.
1240
1241 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1242
1243 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1244 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1245 to use dynamic_prop::kind.
1246
1247 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1248
1249 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1250 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1251 to get the bound property's kind and check against
1252 PROP_UNDEFINED.
1253
1254 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1255
1256 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1257 all callers to use type::range_bounds followed by
1258 dynamic_prop::{low,high}.
1259
1260 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1261
1262 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1263 const_val, set_const_val, baton, set_locexpr, set_loclist,
1264 set_addr_offset, variant_parts, set_variant_parts,
1265 original_type, set_original_type>: New methods.
1266 <kind>: Rename to...
1267 <m_kind>: ... this. Update all users to use the new methods
1268 instead.
1269 <data>: Rename to...
1270 <m_data>: ... this. Update all users to use the new methods
1271 instead.
1272
1273 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1274
1275 * gdbtypes.c (get_discrete_bounds): Return failure if
1276 the range type's bounds are not both defined and constant
1277 values.
1278 (get_array_bounds): Update comment. Remove undefined bound check.
1279
1280 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1281
1282 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1283 the type::bounds method directly.
1284
1285 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1286
1287 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1288 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1289 are used to set the range type's bounds to use set_bounds.
1290
1291 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1292
1293 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1294
1295 2020-07-10 Pedro Alves <pedro@palves.net>
1296
1297 * gdbthread.h (inferior_ref): Define.
1298 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1299 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1300 * thread.c
1301 (scoped_restore_current_thread::restore):
1302 Adjust to gdb::ref_ptr.
1303 (scoped_restore_current_thread::~scoped_restore_current_thread):
1304 Remove manual decref handling.
1305 (scoped_restore_current_thread::scoped_restore_current_thread):
1306 Adjust to use
1307 inferior_ref::new_reference/thread_info_ref::new_reference.
1308 Incref the thread before calling get_frame_id instead of after.
1309 Let TARGET_CLOSE_ERROR propagate.
1310
1311 2020-07-10 Pedro Alves <pedro@palves.net>
1312
1313 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1314 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1315 NOT_AVAILABLE_ERROR.
1316 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1317 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1318
1319 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1320 Pedro Alves <pedro@palves.net>
1321
1322 PR gdb/26199
1323 * infrun.c (threads_are_resumed_pending_p): Delete.
1324 (do_target_wait): Remove threads_are_executing and
1325 threads_are_resumed_pending_p checks from the inferior_matches
1326 lambda. Update comments.
1327
1328 2020-07-10 Pedro Alves <pedro@palves.net>
1329
1330 PR gdb/26199
1331 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1332 executing threads.
1333
1334 2020-07-10 Pedro Alves <pedro@palves.net>
1335
1336 PR gdb/26199
1337 * infrun.c (handle_no_resumed): Handle multiple targets.
1338
1339 2020-07-10 Pedro Alves <pedro@palves.net>
1340
1341 PR gdb/26199
1342 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1343 target_is_async_p.
1344
1345 2020-07-10 Pedro Alves <pedro@palves.net>
1346
1347 PR gdb/26199
1348 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1349 threads, not all threads.
1350
1351 2020-07-10 Pedro Alves <pedro@palves.net>
1352
1353 PR gdb/26199
1354 * remote.c (remote_target::open_1): Pass remote target pointer as
1355 data to create_async_event_handler.
1356 (remote_async_inferior_event_handler): Mark async event handler
1357 before returning if the remote target still has either pending
1358 events or unacknowledged notifications.
1359
1360 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1361
1362 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1363 declaration.
1364 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1365 function.
1366
1367 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1368
1369 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1370 inferior_ptid.
1371
1372 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1373
1374 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1375 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1376 AT_FREEBSD_PS_STRINGS.
1377
1378 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1379
1380 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1381 of debugfile path on Windows.
1382
1383 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1384
1385 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1386 argument to 'data'.
1387
1388 2020-07-08 Tom Tromey <tromey@adacore.com>
1389
1390 * ada-lang.c (ada_exception_message_1): Use read_memory.
1391
1392 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1393
1394 PR python/22748
1395 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1396 special handling for inline frames.
1397 * findvar.c (value_of_register_lazy): Skip inline frames when
1398 creating lazy register values.
1399 * frame.c (frame_id_computed_p): Delete definition.
1400 * frame.h (frame_id_computed_p): Delete declaration.
1401
1402 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1403
1404 * NEWS: Mention additions to Python API.
1405 * python/py-arch.c (archpy_register_groups): New function.
1406 (arch_object_methods): Add 'register_groups' method.
1407 * python/py-registers.c (reggroup_iterator_object): New struct.
1408 (reggroup_object): New struct.
1409 (gdbpy_new_reggroup): New function.
1410 (gdbpy_reggroup_to_string): New function.
1411 (gdbpy_reggroup_name): New function.
1412 (gdbpy_reggroup_iter): New function.
1413 (gdbpy_reggroup_iter_next): New function.
1414 (gdbpy_new_reggroup_iterator): New function
1415 (gdbpy_initialize_registers): Register new types.
1416 (reggroup_iterator_object_type): Define new Python type.
1417 (gdbpy_reggroup_getset): New static global.
1418 (reggroup_object_type): Define new Python type.
1419 * python/python-internal.h
1420
1421 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1422
1423 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1424 * python/py-arch.c (archpy_registers): New function.
1425 (arch_object_methods): Add 'registers' method.
1426 * python/py-registers.c: New file.
1427 * python/python-internal.h
1428 (gdbpy_new_register_descriptor_iterator): Declare.
1429 (gdbpy_initialize_registers): Declare.
1430 * python/python.c (do_start_initialization): Call
1431 gdbpy_initialize_registers.
1432 * NEWS: Mention additions to the Python API.
1433
1434 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1435
1436 * NEWS: Mention new Python API method.
1437 * python/py-unwind.c (pending_framepy_architecture): New function.
1438 (pending_frame_object_methods): Add architecture method.
1439
1440 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1441
1442 * gdbarch.c: Regenerate.
1443 * gdbarch.h: Regenerate.
1444 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1445 (gdbarch_data): Use internal_error for the case where
1446 deprecated_set_gdbarch_data was originally needed.
1447 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1448 and use passed in obstack.
1449 (libunwind_frame_set_descr): Should no longer get back NULL from
1450 gdbarch_data.
1451 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1452 type.
1453 * user-regs.c (user_regs_init): Update parameters, and use passed
1454 in obstack.
1455 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1456 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1457
1458 2020-07-06 Tom de Vries <tdevries@suse.de>
1459
1460 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1461 End-Of-Sequence in lte_is_less_than.
1462 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1463 "gdb: Don't reorder line table entries too much when sorting".
1464
1465 2020-07-06 Tom de Vries <tdevries@suse.de>
1466
1467 PR tui/26205
1468 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1469
1470 2020-07-05 Tom de Vries <tdevries@suse.de>
1471
1472 PR build/26187
1473 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1474 std::uncaught_exceptions instead of deprecated
1475 std::uncaught_exception.
1476
1477 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1478
1479 * macroexp.h (macro_stringify): Return
1480 gdb::unique_xmalloc_ptr<char>.
1481 * macroexp.c (macro_stringify): Likewise.
1482 * macrotab.c (fixup_definition): Update.
1483
1484 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1485
1486 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1487 (lex_one_token): Update.
1488 * macroexp.c (struct macro_buffer) <release>: Return
1489 gdb::unique_xmalloc_ptr<char>.
1490 (macro_stringify): Update.
1491 (macro_expand): Update.
1492 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1493 * macroexp.h (macro_expand_next): Likewise.
1494
1495 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1496
1497 * macroexp.h (macro_lookup_ftype): Remove.
1498 (macro_expand, macro_expand_once, macro_expand_next): Remove
1499 lookup function parameters, add scope parameter.
1500 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1501 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1502 * macroscope.h (standard_macro_lookup): Change parameter type
1503 to macro_scope.
1504 * macroscope.c (standard_macro_lookup): Likewise.
1505 * c-exp.y (lex_one_token): Update.
1506 * macrocmd.c (macro_expand_command): Likewise.
1507 (macro_expand_once_command): Likewise.
1508
1509 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1510
1511 * inf-loop.c (inferior_event_handler): Remove client_data param.
1512 * inf-loop.h (inferior_event_handler): Likewise.
1513 * infcmd.c (step_1): Adjust.
1514 * infrun.c (proceed): Adjust.
1515 (fetch_inferior_event): Remove client_data param.
1516 (infrun_async_inferior_event_handler): Adjust.
1517 * infrun.h (fetch_inferior_event): Remove `void *` param.
1518 * linux-nat.c (handle_target_event): Adjust.
1519 * record-btrace.c (record_btrace_handle_async_inferior_event):
1520 Adjust.
1521 * record-full.c (record_full_async_inferior_event_handler):
1522 Adjust.
1523 * remote.c (remote_async_inferior_event_handler): Adjust.
1524
1525 2020-07-01 Tom Tromey <tom@tromey.com>
1526
1527 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1528 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1529
1530 2020-07-01 Tom Tromey <tom@tromey.com>
1531
1532 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1533 tui_gen_win_info.
1534 (tui_win_info::make_window): Merge with
1535 tui_gen_win_info::make_window.
1536 (tui_win_info::make_visible): Move from tui_gen_win_info.
1537 * tui/tui-win.c (tui_win_info::max_width): Move from
1538 tui_gen_win_info.
1539 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1540 type.
1541 <window_factory>: Likewise.
1542 * tui/tui-layout.c (tui_win_info::resize): Move from
1543 tui_gen_win_info.
1544 (make_standard_window): Change return type.
1545 (get_locator_window, tui_get_window_by_name): Likewise.
1546 (tui_layout_window::apply): Remove a cast.
1547 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1548 (struct tui_win_info): Merge with tui_gen_win_info.
1549 (struct tui_gen_win_info): Remove.
1550
1551 2020-07-01 Tom Tromey <tom@tromey.com>
1552
1553 * tui/tui-stack.h (struct tui_locator_window): Derive from
1554 tui_win_info.
1555 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1556 <can_box>: New method.
1557
1558 2020-07-01 Tom Tromey <tom@tromey.com>
1559
1560 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1561
1562 2020-07-01 Tom Tromey <tom@tromey.com>
1563
1564 * tui/tui-regs.c (tui_data_window::display_registers_from)
1565 (tui_data_window::display_registers_from)
1566 (tui_data_window::first_data_item_displayed)
1567 (tui_data_window::delete_data_content_windows): Update.
1568 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1569 Remove.
1570 (tui_data_window::check_register_values): Update.
1571 (tui_data_item_window::rerender): Add parameters. Update.
1572 (tui_data_item_window::refresh_window): Remove.
1573 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1574 virtual.
1575 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1576 tui_gen_win_info.
1577 <refresh_window, max_height, min_height>: Remove.
1578 <rerender>: Add parameters.
1579 <x, y, visible>: New members.
1580 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1581 <m_item_width>: New member.
1582
1583 2020-07-01 Tom Tromey <tom@tromey.com>
1584
1585 * tui/tui-regs.c (tui_data_window::show_register_group)
1586 (tui_data_window::check_register_values): Update.
1587 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1588 from item_no.
1589
1590 2020-07-01 Tom Tromey <tom@tromey.com>
1591
1592 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1593 useless "if".
1594
1595 2020-07-01 Tom Tromey <tom@tromey.com>
1596
1597 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1598 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1599
1600 2020-07-01 Tom Tromey <tom@tromey.com>
1601
1602 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1603 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1604 (struct tui_line_or_address): Move from tui-data.h.
1605 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1606 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1607 (tui_cmd_window, tui_source_window_base, tui_source_window)
1608 (tui_disasm_window): Don't declare.
1609 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1610 to tui-winsource.h.
1611 (SINGLE_KEY): Move to tui-stack.c.
1612
1613 2020-07-01 Tom Tromey <tom@tromey.com>
1614
1615 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1616 std::string.
1617 * tui/tui-regs.c (class tab_expansion_file): New.
1618 (tab_expansion_file::write): New method.
1619 (tui_register_format): Change return type. Use
1620 tab_expansion_file.
1621 (tui_get_register, tui_data_window::display_registers_from)
1622 (tui_data_item_window::rerender): Update.
1623 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1624 * tui/tui-io.c (tui_expand_tabs): Remove.
1625
1626 2020-07-01 Tom Tromey <tom@tromey.com>
1627
1628 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1629
1630 2020-07-01 Fangrui Song <maskray@google.com>
1631
1632 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1633
1634 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1635
1636 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1637 forms for DW_AT_associated and DW_AT_allocated attributes,
1638 which is already checked in function attr_to_dynamic_prop.
1639
1640 2020-06-30 Tom Tromey <tromey@adacore.com>
1641
1642 * dwarf2/read.c (quirk_rust_enum): Correctly call
1643 alloc_rust_variant for default-less enum.
1644
1645 2020-06-30 Tom Tromey <tromey@adacore.com>
1646
1647 PR build/26183:
1648 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1649 gdb::to_string.
1650
1651 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1652
1653 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1654 * gdbarch.h: Re-generate.
1655
1656 2020-06-28 Tom Tromey <tom@tromey.com>
1657
1658 * command.h (cmd_types): Remove.
1659 (cmd_type): Don't declare.
1660 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1661 typedef.
1662 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1663 * cli/cli-decode.c (cmd_type): Remove.
1664
1665 2020-06-27 Pedro Alves <palves@redhat.com>
1666
1667 * fork-child.c (prefork_hook): Adjust.
1668 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1669 Delete.
1670 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1671 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1672 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1673 Remove declarations.
1674 (struct inferior) <set_tty, tty>: New methods.
1675 (struct inferior) <terminal>: Rename to ...
1676 (struct inferior) <m_terminal>: ... this and make private.
1677 * main.c (captured_main_1): Adjust.
1678 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1679 (mi_cmd_inferior_tty_show): Adjust.
1680 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1681 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1682
1683 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1684
1685 * configure.ac: Add --enable-libctf: handle --disable-static
1686 properly.
1687 * acinclude.m4: sinclude ../config/enable.m4.
1688 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1689 (LIBCTF): Substitute in.
1690 (CTF_DEPS): New, likewise.
1691 (CLIBS): libctf needs symbols from libbfd: move earlier.
1692 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1693 flags.
1694 * ctfread.c: Surround in ENABLE_LIBCTF.
1695 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1696 * configure: Regenerate.
1697 * config.in: Likewise.
1698
1699 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1700
1701 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1702
1703 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1704
1705 * inferior.h (struct inferior) <terminal>: Change type to
1706 gdb::unique_xmalloc_ptr<char>.
1707 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1708 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1709 field, adjust to unique pointer.
1710 (get_inferior_io_terminal): Adjust to unique pointer.
1711
1712 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1713
1714 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1715 registers, not just the known core set of registers.
1716
1717 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1718
1719 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1720 fflags, frm, and fcsr registers.
1721 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1722 restore groups.
1723 (riscv_tdesc_unknown_reg): New function.
1724 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1725 tdesc_use_registers.
1726 * riscv-tdep.h (struct gdbarch_tdep): Add
1727 unknown_csrs_first_regnum, unknown_csrs_count,
1728 duplicate_fflags_regnum, duplicate_frm_regnum, and
1729 duplicate_fcsr_regnum fields.
1730
1731 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1732
1733 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1734 callback, use the callback (when not null) to help number unknown
1735 registers.
1736 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1737 (tdesc_use_registers): Add extra parameter to declaration.
1738
1739 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1740
1741 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1742 in the file.
1743 (class riscv_pending_register_alias): Likewise.
1744 (riscv_register_feature::register_info): Change 'required_p' field
1745 to 'required', and change its type. Add 'check' member function.
1746 (riscv_register_feature::register_info::check): Define new member
1747 function.
1748 (riscv_xreg_feature): Change initialisation of 'required' field.
1749 (riscv_freg_feature): Likewise.
1750 (riscv_virtual_feature): Likewise.
1751 (riscv_csr_feature): Likewise.
1752 (riscv_check_tdesc_feature): Take extra parameter, the csr
1753 tdesc_feature, rewrite the function to use the new
1754 riscv_register_feature::register_info::check function.
1755 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1756
1757 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1758
1759 * features/Makefile: Remove all references to the deleted files
1760 below.
1761 * features/riscv/32bit-csr.c: Deleted.
1762 * features/riscv/32bit-csr.xml: Deleted.
1763 * features/riscv/64bit-csr.c: Deleted.
1764 * features/riscv/64bit-csr.xml: Deleted.
1765 * features/riscv/rebuild-csr-xml.sh: Deleted.
1766
1767 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1768
1769 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1770 whitespace error for declaration of names member variable.
1771 (struct riscv_register_feature): Add new prefer_first_name member
1772 variable, and fix whitespace error in declaration of registers.
1773 (riscv_xreg_feature): Initialize prefer_first_name field.
1774 (riscv_freg_feature): Likewise.
1775 (riscv_virtual_feature): Likewise.
1776 (riscv_csr_feature): Likewise.
1777 (riscv_register_name): Expand on comments. Remove register name
1778 modifications for CSR and virtual registers.
1779
1780 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1781
1782 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1783 errors.
1784
1785 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1786
1787 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1788 riscv-opc.h.
1789 (class riscv_pending_register_alias): New class.
1790 (riscv_check_tdesc_feature): Take vector of pending aliases and
1791 populate it as appropriate.
1792 (riscv_setup_register_aliases): Delete.
1793 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1794 to riscv_check_tdesc_feature in all cases. Use the vector to
1795 create the register aliases.
1796
1797 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1798
1799 * sol2-tdep.c (sol2_static_transform_name): Remove.
1800 (sol2_init_abi): Don't register it.
1801 * gdbarch.sh (static_transform_name): Remove.
1802 * gdbarch.c, gdbarch.h: Regenerate.
1803
1804 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1805 gdbarch_static_transform_name.
1806 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1807 * stabsread.c (define_symbol) <'X'>: Remove.
1808 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1809 handling.
1810 <'V'>: Likewise.
1811 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1812 <'S'>: Remove call to gdbarch_static_transform_name.
1813
1814 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1815
1816 * procfs.c (procfs_pre_trace): New function.
1817 (procfs_target::create_inferior): Pass it to fork_inferior.
1818
1819 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1820
1821 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1822 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1823 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1824 sol2-tdep.o, sparc-sol2-tdep.o.
1825 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1826 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1827 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1828 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1829
1830 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1831
1832 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1833 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1834 Call sol2_init_abi.
1835 Remove calls to set_gdbarch_skip_solib_resolver,
1836 set_gdbarch_core_pid_to_str.
1837 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1838 (i386_sol2_static_transform_name): Remove.
1839 (i386_sol2_init_abi): Call sol2_init_abi.
1840 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1841 set_gdbarch_static_transform_name,
1842 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1843 Use sol2_sigtramp_p.
1844 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1845 (sol2_sigtramp_p): New function.
1846 (sol2_static_transform_name): New function.
1847 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1848 (sol2_init_abi): New function.
1849 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1850 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1851 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1852 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1853 (sparc_sol2_static_transform_name): Remove.
1854 (sparc32_sol2_init_abi): Call sol2_init_abi.
1855 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1856 set_gdbarch_static_transform_name,
1857 set_gdbarch_skip_solib_resolver,
1858 set_gdbarch_core_pid_to_str.
1859 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1860 (sparc_sol2_static_transform_name): Remove
1861 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1862 call sol2_sigtramp_p.
1863 (sparc64_sol2_init_abi): Call sol2_init_abi.
1864 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1865 set_gdbarch_static_transform_name,
1866 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1867
1868 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1869
1870 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1871 * exec.c (validate_exec_file): If from_tty, set both
1872 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1873 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1874 and from_tty, unconditionally ask a confirmation.
1875
1876 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1877
1878 * target-descriptions.c (tdesc_architecture_name): Protect against
1879 NULL pointer dereference.
1880 (maint_print_xml_tdesc_cmd): New function.
1881 (_initialize_target_descriptions): Register new 'maint print
1882 xml-tdesc' command and give it the filename completer.
1883 * NEWS: Mention new 'maint print xml-tdesc' command.
1884
1885 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1886
1887 * target-descriptions.c (class tdesc_compatible_info): New class.
1888 (struct target_desc): Change type of compatible vector.
1889 (tdesc_compatible_p): Update for change in type of
1890 target_desc::compatible.
1891 (tdesc_compatible_info_list): New function.
1892 (tdesc_compatible_info_arch_name): New function.
1893 (tdesc_add_compatible): Update for change in type of
1894 target_desc::compatible.
1895 (print_c_tdesc::visit_pre): Likewise.
1896
1897 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1898
1899 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1900 whitespace to underscore.
1901 (maint_print_c_tdesc_cmd): Use fake filename for target
1902 descriptions that came from the target.
1903 (_initialize_target_descriptions): Add filename command completion
1904 for 'maint print c-tdesc'.
1905
1906 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1907
1908 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1909 lines.
1910
1911 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1912
1913 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1914 lines.
1915 (dwarf2_find_location_expression): Likewise.
1916 (call_site_parameter_matches): Likewise.
1917 (dwarf2_compile_expr_to_ax): Likewise.
1918 (disassemble_dwarf_expression): Likewise.
1919 (loclist_describe_location): Likewise.
1920
1921 2020-06-23 Pedro Alves <palves@redhat.com>
1922
1923 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1924 progspace-and-thread.h. Include scoped-mock-context.h instead.
1925 (register_to_value_test): Use scoped_mock_context.
1926 * regcache.c: Include "scoped-mock-context.h".
1927 (cooked_read_test): Don't error out if a target is already pushed.
1928 Use scoped_mock_context. Adjust.
1929 * scoped-mock-context.h: New file.
1930
1931 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1932
1933 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1934 initializer.
1935 (ada_language::is_string_type_p): New member function.
1936 * c-lang.c (c_language_data): Delete la_is_string_type_p
1937 initializer.
1938 (cplus_language_data): Likewise.
1939 (asm_language_data): Likewise.
1940 (minimal_language_data): Likewise.
1941 * d-lang.c (d_language_data): Likewise.
1942 * f-lang.c (f_is_string_type_p): Delete function, implementation
1943 moved to f_language::is_string_type_p.
1944 (f_language_data): Delete la_is_string_type_p initializer.
1945 (f_language::is_string_type_p): New member function,
1946 implementation from f_is_string_type_p.
1947 * go-lang.c (go_is_string_type_p): Delete function, implementation
1948 moved to go_language::is_string_type_p.
1949 (go_language_data): Delete la_is_string_type_p initializer.
1950 (go_language::is_string_type_p): New member function,
1951 implementation from go_is_string_type_p.
1952 * language.c (language_defn::is_string_type_p): Define new member
1953 function.
1954 (default_is_string_type_p): Make static, add comment copied from
1955 header file.
1956 (unknown_language_data): Delete la_is_string_type_p initializer.
1957 (unknown_language::is_string_type_p): New member function.
1958 (auto_language_data): Delete la_is_string_type_p initializer.
1959 (auto_language::is_string_type_p): New member function.
1960 * language.h (language_data): Delete la_is_string_type_p field.
1961 (language_defn::is_string_type_p): Declare new function.
1962 (default_is_string_type_p): Delete desclaration, move comment to
1963 definition.
1964 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1965 moved to m2_language::is_string_type_p.
1966 (m2_language_data): Delete la_is_string_type_p initializer.
1967 (m2_language::is_string_type_p): New member function,
1968 implementation from m2_is_string_type_p.
1969 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1970 initializer.
1971 * opencl-lang.c (opencl_language_data): Likewise.
1972 * p-lang.c (pascal_is_string_type_p): Delete function,
1973 implementation moved to pascal_language::is_string_type_p.
1974 (pascal_language_data): Delete la_is_string_type_p initializer.
1975 (pascal_language::is_string_type_p): New member function,
1976 implementation from pascal_is_string_type_p.
1977 * rust-lang.c (rust_is_string_type_p): Delete function,
1978 implementation moved to rust_language::is_string_type_p.
1979 (rust_language_data): Delete la_is_string_type_p initializer.
1980 (rust_language::is_string_type_p): New member function,
1981 implementation from rust_is_string_type_p.
1982 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1983 is_string_type_p.
1984
1985 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1986
1987 * ada-lang.c (ada_language_data): Delete la_print_typedef
1988 initializer.
1989 (ada_language::print_typedef): New member function.
1990 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1991 (cplus_language_data): Likewise.
1992 (asm_language_data): Likewise.
1993 (minimal_language_data): Likewise.
1994 * d-lang.c (d_language_data): Likewise.
1995 * f-lang.c (f_language_data): Likewise.
1996 (f_language::print_typedef): New member function.
1997 * go-lang.c (go_language_data): Delete la_print_typedef
1998 initializer.
1999 * language.c (language_defn::print_typedef): Define member
2000 function.
2001 (unknown_language_data): Delete la_print_typedef initializer.
2002 (unknown_language::print_typedef): New member function.
2003 (auto_language_data): Delete la_print_typedef initializer.
2004 (auto_language::print_typedef): New member function.
2005 * language.h (language_data): Delete la_print_typedef field.
2006 (language_defn::print_typedef): Declare new member function.
2007 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2008 (default_print_typedef): Delete declaration.
2009 * m2-lang.c (m2_language_data): Delete la_print_typedef
2010 initializer.
2011 (m2_language::print_typedef): New member function.
2012 * objc-lang.c (objc_language_data): Delete la_print_typedef
2013 initializer.
2014 * opencl-lang.c (opencl_language_data): Likewise.
2015 * p-lang.c (pascal_language_data): Likewise.
2016 (pascal_language::print_typedef): New member function.
2017 * rust-lang.c (rust_print_typedef): Delete function,
2018 implementation moved to rust_language::print_typedef.
2019 (rust_language): Delete la_print_typedef initializer.
2020 (rust_language::print_typedef): New member function,
2021 implementation from rust_print_typedef.
2022 * typeprint.c (default_print_typedef): Delete.
2023
2024 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2025
2026 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2027 (ada_language::printstr): New member function.
2028 * c-lang.c (c_language_data): Delete la_printstr initializer.
2029 (cplus_language_data): Likewise.
2030 (asm_language_data): Likewise.
2031 (minimal_language_data): Likewise.
2032 * d-lang.c (d_language_data): Likewise.
2033 * f-lang.c (f_printstr): Rename to f_language::printstr.
2034 (f_language_data): Delete la_printstr initializer.
2035 (f_language::printstr): New member function, implementation from
2036 f_printstr.
2037 * go-lang.c (go_language_data): Delete la_printstr initializer.
2038 * language.c (language_defn::printstr): Define new member
2039 function.
2040 (unk_lang_printstr): Delete.
2041 (unknown_language_data): Delete la_printstr initializer.
2042 (unknown_language::printstr): New member function.
2043 (auto_language_data): Delete la_printstr initializer.
2044 (auto_language::printstr): New member function.
2045 * language.h (language_data): Delete la_printstr field.
2046 (language_defn::printstr): Declare new member function.
2047 (LA_PRINT_STRING): Update call to printstr.
2048 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2049 (m2_language_data): Delete la_printstr initializer.
2050 (m2_language::printstr): New member function, implementation from
2051 m2_printstr.
2052 * objc-lang.c (objc_language_data): Delete la_printstr
2053 initializer.
2054 * opencl-lang.c (opencl_language_data): Likewise.
2055 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2056 (pascal_language_data): Delete la_printstr initializer.
2057 (pascal_language::printstr): New member function, implementation
2058 from pascal_printstr.
2059 * p-lang.h (pascal_printstr): Delete declaration.
2060 * rust-lang.c (rust_printstr): Update header comment.
2061 (rust_language_data): Delete la_printstr initializer.
2062 (rust_language::printstr): New member function.
2063
2064 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2065
2066 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2067 (ada_language::printchar): New member function.
2068 * c-lang.c (c_language_data): Delete la_printchar initializer.
2069 (cplus_language_data): Likewise.
2070 (asm_language_data): Likewise.
2071 (minimal_language_data): Likewise.
2072 * d-lang.c (d_language_data): Likewise.
2073 * f-lang.c (f_printchar): Rename to f_language::printchar.
2074 (f_language_data): Delete la_printchar initializer.
2075 (f_language::printchar): New member function, implementation from
2076 f_printchar.
2077 * go-lang.c (go_language_data): Delete la_printchar initializer.
2078 * language.c (unk_lang_printchar): Delete.
2079 (language_defn::printchar): Define new member function.
2080 (unknown_language_data): Delete la_printchar initializer.
2081 (unknown_language::printchar): New member function.
2082 (auto_language_data): Delete la_printchar initializer.
2083 (auto_language::printchar): New member function.
2084 * language.h (language_data): Delete la_printchar field.
2085 (language_defn::printchar): Declare new member function.
2086 (LA_PRINT_CHAR): Update call to printchar.
2087 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2088 (m2_language::printchar): New member function.
2089 * objc-lang.c (objc_language_data): Delete la_printchar
2090 initializer.
2091 * opencl-lang.c (opencl_language_data): Likewise.
2092 * p-lang.c (pascal_language_data): Delete la_printchar
2093 initializer.
2094 (pascal_language::printchar): New member function.
2095 * rust-lang.c (rust_printchar): Rename to
2096 rust_language::printchar.
2097 (rust_language_data): Delete la_printchar initializer.
2098 (rust_language::printchar): New member function, implementation
2099 from rust_printchar.
2100
2101 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2102
2103 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2104 (ada_language_data): Delete la_emitchar initializer.
2105 (ada_language::emitchar): New member function, implementation from
2106 emit_char.
2107 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2108 (cplus_language_data): Likewise.
2109 (asm_language_data): Likewise.
2110 (minimal_language_data): Likewise.
2111 * d-lang.c (d_language_data): Likewise.
2112 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2113 (f_language_data): Delete la_emitchar initializer.
2114 (f_language::emitchar): New member function, implementation from
2115 f_emit_char.
2116 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2117 * language.c (unk_lang_emit_char): Delete.
2118 (language_defn::emitchar): New member function definition.
2119 (unknown_language_data): Delete la_emitchar initializer.
2120 (unknown_language::emitchar): New member function.
2121 (auto_language_data): Delete la_emitchar initializer.
2122 (auto_language::emitchar): New member function.
2123 * language.h (language_data): Delete la_emitchar field.
2124 (language_defn::emitchar): New member field declaration.
2125 (LA_EMIT_CHAR): Update call to emitchar.
2126 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2127 (m2_language_data): Delete la_emitchar initializer.
2128 (m2_language::emitchar): New member function, implementation from
2129 m2_emit_char.
2130 * objc-lang.c (objc_language_data): Delete la_emitchar
2131 initializer.
2132 * opencl-lang.c (opencl_language_data): Likewise.
2133 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2134 (pascal_language_data): Delete la_emitchar initializer.
2135 (pascal_language::emitchar): New member function, implementation
2136 from pascal_emit_char.
2137 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2138 (rust_language_data): Delete la_emitchar initializer.
2139 (rust_language::emitchar): New member function, implementation
2140 from rust_emitchar.
2141
2142 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2143
2144 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2145 (ada_language_data): Delete la_post_parser initializer.
2146 (ada_language::post_parser): New member function.
2147 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2148 (cplus_language_data): Likewise.
2149 (asm_language_data): Likewise.
2150 (minimal_language_data): Likewise.
2151 * d-lang.c (d_language_data): Likewise.
2152 * f-lang.c (f_language_data): Likewise.
2153 * go-lang.c (go_language_data): Likewise.
2154 * language.c (unknown_language_data): Likewise.
2155 (auto_language_data): Likewise.
2156 * language.h (language_data): Delete la_post_parser field.
2157 (language_defn::post_parser): New member function.
2158 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2159 * objc-lang.c (objc_language_data): Likewise.
2160 * opencl-lang.c (opencl_language_data): Likewise.
2161 * p-lang.c (pascal_language_data): Likewise.
2162 * parse.c (parse_exp_in_context): Update call to post_parser.
2163 (null_post_parser): Delete definition.
2164 * parser-defs.h (null_post_parser): Delete declaration.
2165 * rust-lang.c (rust_language_data): Delete la_post_parser
2166 initializer.
2167
2168 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2169
2170 * ada-lang.c (parse): Rename to ada_language::parser.
2171 (ada_language_data): Delete la_parser initializer.
2172 (ada_language::parser): New member function, implementation from
2173 parse.
2174 * c-lang.c (c_language_data): Delete la_parser initializer.
2175 (cplus_language_data): Likewise.
2176 (asm_language_data): Likewise.
2177 (minimal_language_data): Likewise.
2178 * d-lang.c (d_language_data): Likewise.
2179 (d_language::parser): New member function.
2180 * f-lang.c (f_language_data): Delete la_parser initializer.
2181 (f_language::parser): New member function.
2182 * go-lang.c (go_language_data): Delete la_parser initializer.
2183 (go_language::parser): New member function.
2184 * language.c (unk_lang_parser): Delete.
2185 (language_defn::parser): Define new member function.
2186 (unknown_language_data): Delete la_parser initializer.
2187 (unknown_language::parser): New member function.
2188 (auto_language_data): Delete la_parser initializer.
2189 (auto_language::parser): New member function.
2190 * language.h (language_data): Delete la_parser field.
2191 (language_defn::parser): Declare new member function.
2192 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2193 (m2_language::parser): New member function.
2194 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2195 * opencl-lang.c (opencl_language_data): Likewise.
2196 * p-lang.c (pascal_language_data): Likewise.
2197 (pascal_language::parser): New member function.
2198 * parse.c (parse_exp_in_context): Update call to parser.
2199 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2200 (rust_language::parser): New member function.
2201
2202 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2203
2204 * top.c (print_gdb_configuration): Print --with-python-libdir
2205 configuration value.
2206
2207 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2208
2209 * NEWS: Mention change to the alias command.
2210
2211 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2212
2213 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2214 (alias_command_completer)
2215 (make_alias_options_def_group): New functions.
2216 (alias_opts, alias_option_defs): New struct and array.
2217 (alias_usage_error): Update usage.
2218 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2219 Use option framework.
2220 (_initialize_cli_cmds): Update alias command help.
2221 Update aliases command help.
2222 (show_user):
2223 Add NULL for new default_args lookup_cmd argument.
2224 (valid_command_p): Rename to validate_aliased_command.
2225 Add NULL for new default_args lookup_cmd argument. Verify that the
2226 aliased_command has no default args.
2227 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2228 (lookup_cmd_1, lookup_cmd): New argument default_args.
2229 (add_alias_cmd):
2230 Add NULL for new default_args lookup_cmd argument.
2231 (print_help_for_command): Show default args under the layout
2232 alias some_alias = some_aliased_cmd some_alias_default_arg.
2233 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2234 xfree default_args in destructor.
2235 * cli/cli-script.c (process_next_line, do_define_command):
2236 Add NULL for new default_args lookup_cmd argument.
2237 * command.h: Declare new default_args argument in lookup_cmd
2238 and lookup_cmd_1.
2239 * completer.c (complete_line_internal_1):
2240 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2241 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2242 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2243 Likewise.
2244 * infcmd.c (_initialize_infcmd): Likewise.
2245 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2246 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2247 * python/py-param.c (add_setshow_generic): Likewise.
2248 * remote.c (_initialize_remote): Likewise.
2249 * top.c (execute_command): Prepend default_args if command has some.
2250 (set_verbose):
2251 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2252 * tracepoint.c (validate_actionline, encode_actions_1):
2253 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2254
2255 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2256
2257 * jit.c (jit_read_descriptor): Use bool as the return type.
2258 (jit_breakpoint_re_set_internal): Use bool as the return type.
2259 Invert the return value logic; return true if the jit breakpoint
2260 has been successfully initialized.
2261 (jit_inferior_init): Update the call to
2262 jit_breakpoint_re_set_internal.
2263
2264 2020-06-22 Pedro Alves <palves@redhat.com>
2265
2266 PR gdb/25939
2267 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2268 Use the current inferior instead. Don't return
2269 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2270 wait again.
2271 * sol-thread.c (sol_thread_target::wait): Don't reference
2272 inferior_ptid.
2273 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2274 (sol_update_thread_list_callback): Use the current inferior's pid
2275 instead of inferior_ptid.
2276
2277 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2278
2279 * procfs.c: Cleanup many comments.
2280
2281 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2282 (AFTER_WATCHFLAG): Replace by value.
2283
2284 (MAIN_PROC_NAME_FORMAT): Inline ...
2285 (create_procinfo): ... here.
2286
2287 (procfs_debug_inferior): Remove SYS_exec handling.
2288 (syscall_is_exec): Likewise.
2289 (procfs_set_exec_trap): Likewise.
2290
2291 (syscall_is_lwp_exit): Inline in callers.
2292 (syscall_is_exit): Likewise.
2293 (syscall_is_exec): Likewise.
2294 (syscall_is_lwp_create): Likewise.
2295
2296 (invalidate_cache): Remove #if 0 code.
2297
2298 (make_signal_thread_runnable): Remove.
2299 (procfs_target::resume): Remove #if 0 code.
2300
2301 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2302
2303 PR gdb/25939
2304 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2305 call ...
2306 (procfs_target::create_inferior): ... here.
2307
2308 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2309
2310 * exec.c (validate_exec_file): Ensure the build-id is up to
2311 date by calling reopen_exec_file (that checks file timestamp
2312 to decide to re-read the file).
2313
2314 2020-06-18 Pedro Alves <palves@redhat.com>
2315
2316 PR gdb/25412
2317 * gdbthread.h (delete_thread, delete_thread_silent)
2318 (find_thread_ptid): Update comments.
2319 * thread.c (current_thread_): New global.
2320 (is_current_thread): Move higher, and reimplement.
2321 (inferior_thread): Reimplement.
2322 (set_thread_exited): Use bool. Add assertions.
2323 (add_thread_silent): Simplify thread-reuse handling by always
2324 calling delete_thread.
2325 (delete_thread): Remove intro comment.
2326 (find_thread_ptid): Skip exited threads.
2327 (switch_to_thread_no_regs): Write to current_thread_.
2328 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2329 INFERIOR_PTID. Clear current_thread_.
2330
2331 2020-06-18 Pedro Alves <palves@redhat.com>
2332
2333 * aix-thread.c (pd_update): Use switch_to_thread.
2334
2335 2020-06-18 Pedro Alves <palves@redhat.com>
2336
2337 * ravenscar-thread.c (ravenscar_thread_target): Update.
2338 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2339 (ravenscar_thread_target::add_active_thread): ... this. Don't
2340 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2341 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2342
2343 2020-06-18 Pedro Alves <palves@redhat.com>
2344
2345 * nat/windows-nat.c (current_windows_thread): Remove.
2346 * nat/windows-nat.h (current_windows_thread): Remove.
2347 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2348 Adjust.
2349 (display_selectors): Adjust to fetch the current
2350 windows_thread_info based on inferior_ptid.
2351 (fake_create_process): No longer write to current_windows_thread.
2352 (windows_nat_target::get_windows_debug_event):
2353 Don't set inferior_ptid or current_windows_thread.
2354 (windows_nat_target::wait): Adjust to not rely on
2355 current_windows_thread.
2356 (do_initial_windows_stuff): Now a method of windows_nat_target.
2357 Switch to the last_ptid thread.
2358 (windows_nat_target::attach): Adjust.
2359 (windows_nat_target::detach): Use switch_to_no_thread instead of
2360 writing to inferior_ptid directly.
2361 (windows_nat_target::create_inferior): Adjust.
2362
2363 2020-06-18 Pedro Alves <palves@redhat.com>
2364
2365 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2366
2367 2020-06-18 Pedro Alves <palves@redhat.com>
2368
2369 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2370 after creating it, instead of writing to inferior_ptid. Don't
2371 write to inferior_ptid.
2372
2373 2020-06-18 Pedro Alves <palves@redhat.com>
2374
2375 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2376
2377 2020-06-18 Pedro Alves <palves@redhat.com>
2378
2379 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2380 it, instead of writing to inferior_ptid.
2381
2382 2020-06-18 Pedro Alves <palves@redhat.com>
2383
2384 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2385 to inferior_ptid.
2386
2387 2020-06-18 Pedro Alves <palves@redhat.com>
2388
2389 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2390 instead of writing to inferior_ptid directly.
2391
2392 2020-06-18 Pedro Alves <palves@redhat.com>
2393
2394 * corelow.c (core_target::close): Use switch_to_no_thread instead
2395 of writing to inferior_ptid directly.
2396 (add_to_thread_list, core_target_open): Use switch_to_thread
2397 instead of writing to inferior_ptid directly.
2398
2399 2020-06-18 Pedro Alves <palves@redhat.com>
2400
2401 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2402 inferior_ptid.
2403 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2404 inferior_ptid.
2405 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2406 inferior_ptid directly.
2407 (darwin_nat_target::init_thread_list): Switch to thread, instead
2408 of writing to inferior_ptid.
2409 (darwin_nat_target::attach): Don't write to inferior_ptid.
2410 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2411
2412 2020-06-18 Pedro Alves <palves@redhat.com>
2413
2414 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2415 thread.
2416 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2417 Instead use switch_to_thread.
2418 (gnu_nat_target::detach): Use switch_to_no_thread
2419 instead of writing to inferior_ptid directly. Used passed-in
2420 inferior instead of looking up the inferior by pid.
2421
2422 2020-06-18 Pedro Alves <palves@redhat.com>
2423
2424 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2425 inferior_ptid.
2426
2427 2020-06-18 Pedro Alves <palves@redhat.com>
2428
2429 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2430 inferior_ptid.
2431 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2432 thread.
2433 (nto_procfs_target::detach): Avoid referencing
2434 inferior_ptid. Use switch_to_no_thread instead of writing to
2435 inferior_ptid directly.
2436 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2437 instead of writing to inferior_ptid directly.
2438 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2439 to thread.
2440
2441 2020-06-18 Pedro Alves <palves@redhat.com>
2442
2443 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2444 after creating it, instead of writing to inferior_ptid.
2445 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2446 to inferior_ptid directly.
2447 (gdbsim_target::wait): Don't write to inferior_ptid.
2448
2449 2020-06-18 Pedro Alves <palves@redhat.com>
2450
2451 * remote.c (remote_target::remote_notice_new_inferior): Use
2452 switch_to_thread instead of writing to inferior_ptid directly.
2453 (remote_target::add_current_inferior_and_thread): Use
2454 switch_to_no_thread instead of writing to inferior_ptid directly.
2455 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2456 and switch_to_thread instead of using set_current_inferior or
2457 writing to inferior_ptid directly.
2458
2459 2020-06-18 Pedro Alves <palves@redhat.com>
2460
2461 * tracectf.c (ctf_target_open): Switch to added thread instead of
2462 writing to inferior_ptid directly.
2463 (ctf_target::close): Use switch_to_no_thread instead of writing to
2464 inferior_ptid directly.
2465
2466 2020-06-18 Pedro Alves <palves@redhat.com>
2467
2468 * tracefile-tfile.c (tfile_target_open): Don't write to
2469 inferior_ptid directly, instead switch to added thread.
2470 (tfile_target::close): Use switch_to_no_thread instead of writing
2471 to inferior_ptid directly.
2472
2473 2020-06-18 Pedro Alves <palves@redhat.com>
2474
2475 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2476 (procfs_target::detach): Use switch_to_no_thread
2477 instead of writing to inferior_ptid directly.
2478 (do_attach): Change return type to void. Switch to the added
2479 thread.
2480 (procfs_target::create_inferior): Switch to the added thread.
2481 (procfs_do_thread_registers): Don't write to inferior_ptid.
2482
2483 2020-06-18 Pedro Alves <palves@redhat.com>
2484
2485 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2486 of writing to inferior_ptid.
2487 (scoped_restore_exited_inferior): Delete.
2488 (handle_vfork_child_exec_or_exit): Simplify using
2489 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2490 instead of writing to inferior_ptid.
2491 (THREAD_STOPPED_BY): Delete.
2492 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2493 (thread_stopped_by_hw_breakpoint): Delete.
2494 (save_waitstatus): Use
2495 scoped_restore_current_thread+switch_to_thread, and call
2496 target_stopped_by_watchpoint instead of
2497 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2498 instead of thread_stopped_by_sw_breakpoint, and
2499 target_stopped_by_hw_breakpoint instead of
2500 thread_stopped_by_hw_breakpoint.
2501 (handle_inferior_event)
2502 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2503 inferior_ptid directly, nor
2504 set_current_inferior/set_current_program_space. Use
2505 switch_to_thread / switch_to_inferior_no_thread instead.
2506
2507 2020-06-18 Pedro Alves <palves@redhat.com>
2508
2509 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2510 instead of writing to inferior_ptid.
2511
2512 2020-06-18 Pedro Alves <palves@redhat.com>
2513
2514 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2515 added thread.
2516 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2517 to the added thread.
2518 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2519 instead of writing to inferior_ptid.
2520
2521 2020-06-18 Pedro Alves <palves@redhat.com>
2522
2523 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2524 (register_to_value_test): Mock a program_space too. Heap-allocate
2525 the address space. Don't write to inferior_ptid. Use
2526 switch_to_thread instead.
2527
2528 2020-06-18 Pedro Alves <palves@redhat.com>
2529
2530 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2531 Delete.
2532 (find_signalled_thread()): New, factored out from
2533 linux_make_corefile_notes and adjusted to handle exited threads.
2534 (linux_make_corefile_notes): Adjust to use the new
2535 find_signalled_thread.
2536
2537 2020-06-18 Pedro Alves <palves@redhat.com>
2538
2539 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2540 of saving/restoring inferior_ptid.
2541
2542 2020-06-17 Tom Tromey <tom@tromey.com>
2543
2544 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2545 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2546 declare.
2547 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2548
2549 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2550
2551 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2552 of partial symtabs.
2553
2554 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2555
2556 * regformats/reg-arm.dat: Remove.
2557 * regformats/reg-bfin.dat: Remove.
2558 * regformats/reg-cris.dat: Remove.
2559 * regformats/reg-crisv32.dat: Remove.
2560 * regformats/reg-m32r.dat: Remove.
2561 * regformats/reg-tilegx.dat: Remove.
2562 * regformats/reg-tilegx32.dat: Remove.
2563
2564 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2565
2566 * features/Makefile (WHICH): Remove arm files.
2567 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2568 * regformats/arm/arm-with-neon.dat: Remove.
2569 * regformats/arm/arm-with-vfpv2.dat: Remove.
2570 * regformats/arm/arm-with-vfpv3.dat: Remove.
2571
2572 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2573
2574 * features/Makefile (XMLTOC): Remove rx.xml.
2575
2576 2020-06-17 Pedro Alves <palves@redhat.com>
2577
2578 * gdbthread.h (thread_control_state) <trap_expected> Update
2579 comments.
2580
2581 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2582
2583 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2584 ada_language::lookup_symbol_nonlocal.
2585 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2586 (ada_language::lookup_symbol_nonlocal): New member function,
2587 implementation from ada_lookup_symbol_nonlocal.
2588 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2589 initializer.
2590 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2591 initializer.
2592 (cplus_language::lookup_symbol_nonlocal): New member function.
2593 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2594 (minimal_language_data) Likewise.
2595 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2596 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2597 initializer.
2598 (d_language::lookup_symbol_nonlocal): New member function.
2599 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2600 initializer.
2601 (f_language::lookup_symbol_nonlocal): New member function.
2602 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2603 initializer.
2604 * language.c (unknown_language_data): Likewise.
2605 (auto_language_data): Likewise.
2606 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2607 field.
2608 (language_defn::lookup_symbol_nonlocal): New member function.
2609 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2610 initializer.
2611 * objc-lang.c (objc_language_data): Likewise.
2612 * opencl-lang.c (opencl_language_data): Likewise.
2613 * p-lang.c (pascal_language_data): Likewise.
2614 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2615 rust_language::lookup_symbol_nonlocal.
2616 (rust_language_data): Delete la_lookup_symbol_nonlocal
2617 initializer.
2618 (rust_language::lookup_symbol_nonlocal): New member function,
2619 implementation from rust_lookup_symbol_nonlocal.
2620 * symtab.c (lookup_symbol_aux): Update call to
2621 lookup_symbol_nonlocal.
2622 (basic_lookup_symbol_nonlocal): Rename to...
2623 (language_defn::lookup_symbol_nonlocal): ...this, and update
2624 header comment. Remove language_defn parameter, and replace with
2625 uses of `this'.
2626 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2627
2628 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2629
2630 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2631 initializer.
2632 (ada_language::value_print_inner): New member function.
2633 * c-lang.c (c_language_data): Delete la_value_print_inner
2634 initializer.
2635 (cplus_language_data): Likewise.
2636 (asm_language_data): Likewise.
2637 (minimal_language_data): Likewise.
2638 * d-lang.c (d_language_data): Likewise.
2639 (d_language::value_print_inner): New member function.
2640 * f-lang.c (f_language_data): Delete la_value_print_inner
2641 initializer.
2642 (f_language::value_print_inner): New member function.
2643 * f-lang.h (f_value_print_innner): Rename to...
2644 (f_value_print_inner): ...this (note spelling of 'inner').
2645 * f-valprint.c (f_value_print_innner): Rename to...
2646 (f_value_print_inner): ...this (note spelling of 'inner').
2647 * go-lang.c (go_language_data): Delete la_value_print_inner
2648 initializer.
2649 (go_language::value_print_inner): New member function.
2650 * language.c (language_defn::value_print_inner): Define new member
2651 function.
2652 (unk_lang_value_print_inner): Delete.
2653 (unknown_language_data): Delete la_value_print_inner initializer.
2654 (unknown_language::value_print_inner): New member function.
2655 (auto_language_data): Delete la_value_print_inner initializer.
2656 (auto_language::value_print_inner): New member function.
2657 * language.h (language_data): Delete la_value_print_inner field.
2658 (language_defn::value_print_inner): Delcare new member function.
2659 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2660 initializer.
2661 (m2_language::value_print_inner): New member function.
2662 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2663 initializer.
2664 * opencl-lang.c (opencl_language_data): Likewise.
2665 * p-lang.c (pascal_language_data): Likewise.
2666 (pascal_language::value_print_inner): New member function.
2667 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2668 initializer.
2669 (rust_language::value_print_inner): New member function.
2670 * valprint.c (do_val_print): Update call to value_print_inner.
2671
2672 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2673
2674 * ada-lang.c (ada_language_data): Delete la_value_print
2675 initializer.
2676 (ada_language::value_print): New member function.
2677 * c-lang.c (c_language_data): Delete la_value_print initializer.
2678 (cplus_language_data): Likewise.
2679 (asm_language_data): Likewise.
2680 (minimal_language_data): Likewise.
2681 * d-lang.c (d_language_data): Likewise.
2682 * f-lang.c (f_language_data): Likewise.
2683 * go-lang.c (go_language_data): Likewise.
2684 * language.c (unk_lang_value_print): Delete.
2685 (language_defn::value_print): Define new member function.
2686 (unknown_language_data): Delete la_value_print initializer.
2687 (unknown_language::value_print): New member function.
2688 (auto_language_data): Delete la_value_print initializer.
2689 (auto_language::value_print): New member function.
2690 * language.h (language_data): Delete la_value_print field.
2691 (language_defn::value_print): Declare new member function.
2692 (LA_VALUE_PRINT): Update call to value_print.
2693 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2694 * objc-lang.c (objc_language_data): Likewise.
2695 * opencl-lang.c (opencl_language_data): Likewise.
2696 * p-lang.c (pascal_language_data): Likewise.
2697 (pascal_language::value_print): New member function.
2698 * rust-lang.c (rust_language_data): Delete la_value_print
2699 initializer.
2700
2701 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2702
2703 * ada-lang.c (ada_watch_location_expression): Rename to
2704 ada_language::watch_location_expression.
2705 (ada_language_data): Delete la_watch_location_expression
2706 initializer.
2707 (ada_language::watch_location_expression): New member function,
2708 implementation from ada_watch_location_expression.
2709 * breakpoint.c (watch_command_1): Update call to
2710 watch_location_expression.
2711 * c-lang.c (c_watch_location_expression): Rename to
2712 language_defn::watch_location_expression.
2713 (c_language_data): Delete la_watch_location_expression
2714 initializer.
2715 (cplus_language_data): Likewise.
2716 (asm_language_data): Likewise.
2717 (minimal_language_data): Likewise.
2718 * c-lang.h (c_watch_location_expression): Delete declaration.
2719 * d-lang.c (d_language_data): Delete la_watch_location_expression
2720 initializer.
2721 * f-lang.c (f_language_data): Likewise.
2722 * go-lang.c (go_language_data): Likewise.
2723 * language.c (language_defn::watch_location_expression): Member
2724 function implementation from c_watch_location_expression.
2725 (unknown_language_data): Delete la_watch_location_expression
2726 initializer.
2727 (auto_language_data): Likewise.
2728 * language.h (language_data): Delete la_watch_location_expression
2729 field.
2730 (language_defn::watch_location_expression): Declare new member
2731 function.
2732 * m2-lang.c (m2_language_data): Delete
2733 la_watch_location_expression initializer.
2734 * objc-lang.c (objc_language_data): Likewise.
2735 * opencl-lang.c (opencl_language_data): Likewise.
2736 * p-lang.c (pascal_language_data): Likewise.
2737 * rust-lang.c (rust_watch_location_expression): Rename to
2738 rust_language::watch_location_expression.
2739 (rust_language_data): Delete la_watch_location_expression
2740 initializer.
2741 (rust_language::watch_location_expression): New member function,
2742 implementation from rust_watch_location_expression.
2743
2744 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2745
2746 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2747 ada_language::collect_symbol_completion_matches.
2748 (ada_language_data): Delete la_collect_symbol_completion_matches
2749 initializer.
2750 (ada_language::collect_symbol_completion_matches): New member
2751 function, implementation from
2752 ada_collect_symbol_completion_matches.
2753 * c-lang.c (c_language_data): Delete
2754 la_collect_symbol_completion_matches initializer.
2755 (cplus_language_data): Likewise.
2756 (asm_language_data): Likewise.
2757 (minimal_language_data): Likewise.
2758 * d-lang.c (d_language_data): Likewise.
2759 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2760 f_language::collect_symbol_completion_matches.
2761 (f_language_data): Delete la_collect_symbol_completion_matches
2762 initializer.
2763 (f_language::collect_symbol_completion_matches) New member
2764 function, implementation from f_collect_symbol_completion_matches.
2765 * go-lang.c (go_language_data): Delete
2766 la_collect_symbol_completion_matches initializer.
2767 * language.c (unknown_language_data): Likewise.
2768 (auto_language_data): Likewise.
2769 * language.h (language_data): Delete
2770 la_collect_symbol_completion_matches field.
2771 (language_defn::collect_symbol_completion_matches): New member
2772 function.
2773 * m2-lang.c (m2_language_data): Delete
2774 la_collect_symbol_completion_matches initializer.
2775 * objc-lang.c (objc_language_data): Likewise.
2776 * opencl-lang.c (opencl_language_data): Likewise.
2777 * p-lang.c (pascal_language_data): Likewise.
2778 * rust-lang.c (rust_language_data): Likewise.
2779 * symtab.c (default_collect_symbol_completion_matches): Delete.
2780 (collect_symbol_completion_matches): Update call to
2781 collect_symbol_completion_matches.
2782 (collect_symbol_completion_matches_type): Likewise.
2783 * symtab.h (default_collect_symbol_completion_matches): Delete
2784 declaration.
2785
2786 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2787
2788 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2789 (ada_language_data): Delete la_word_break_characters initializer.
2790 (ada_language::word_break_characters): New member function.
2791 * c-lang.c (c_language_data): Delete la_word_break_characters
2792 initializer.
2793 (cplus_language_data): Likewise.
2794 (asm_language_data): Likewise.
2795 (minimal_language_data): Likewise.
2796 * completer.c: Update global comment.
2797 (advance_to_expression_complete_word_point): Update call to
2798 word_break_characters.
2799 (complete_files_symbols): Likewise.
2800 (complete_line_internal_1): Likewise.
2801 (default_completer_handle_brkchars): Likewise.
2802 (skip_quoted_chars): Likewise.
2803 * d-lang.c (d_language_data): Delete la_word_break_characters
2804 initializer.
2805 * f-lang.c (f_word_break_characters): Delete.
2806 (f_language_data): Delete la_word_break_characters initializer.
2807 (f_language::word_break_characters): New member function.
2808 * go-lang.c (go_language_data): Delete la_word_break_characters
2809 initializer.
2810 * language.c (unknown_language_data): Likewise.
2811 (auto_language_data): Likewise.
2812 * language.h (default_word_break_characters): Move declaration to
2813 earlier in the file.
2814 (language_data): Delete la_word_break_characters field.
2815 (language_defn::word_break_characters): New member function.
2816 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2817 initializer.
2818 * objc-lang.c (objc_language_data): Likewise.
2819 * opencl-lang.c (opencl_language_data): Likewise.
2820 * p-lang.c (pascal_language_data): Likewise.
2821 * rust-lang.c (rust_language_data): Likewise.
2822
2823 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2824
2825 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2826 (ada_language_data): Delete la_get_symbol_name_matcher
2827 initializer.
2828 (language_defn::get_symbol_name_matcher_inner): New member
2829 function.
2830 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2831 initializer.
2832 (cplus_language_data): Likewise.
2833 (cplus_language::get_symbol_name_matcher_inner): New member
2834 function.
2835 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2836 (minimal_language_data): Likewise.
2837 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2838 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2839 initializer.
2840 * dictionary.c (iter_match_first_hashed): Update call to
2841 get_symbol_name_matcher.
2842 (iter_match_next_hashed): Likewise.
2843 (iter_match_next_linear): Likewise.
2844 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2845 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2846 initializer.
2847 (f_language::get_symbol_name_matcher_inner): New member function.
2848 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2849 initializer.
2850 * language.c (default_symbol_name_matcher): Update header comment,
2851 make static.
2852 (language_defn::get_symbol_name_matcher): New definition.
2853 (language_defn::get_symbol_name_matcher_inner): Likewise.
2854 (get_symbol_name_matcher): Delete.
2855 (unknown_language_data): Delete la_get_symbol_name_matcher
2856 initializer.
2857 (auto_language_data): Likewise.
2858 * language.h (language_data): Delete la_get_symbol_name_matcher
2859 field.
2860 (language_defn::get_symbol_name_matcher): New member function.
2861 (language_defn::get_symbol_name_matcher_inner): Likewise.
2862 (default_symbol_name_matcher): Delete declaration.
2863 * linespec.c (find_methods): Update call to
2864 get_symbol_name_matcher.
2865 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2866 initializer.
2867 * minsyms.c (lookup_minimal_symbol): Update call to
2868 get_symbol_name_matcher.
2869 (iterate_over_minimal_symbols): Likewise.
2870 * objc-lang.c (objc_language_data): Delete
2871 la_get_symbol_name_matcher initializer.
2872 * opencl-lang.c (opencl_language_data): Likewise.
2873 * p-lang.c (pascal_language_data): Likewise.
2874 * psymtab.c (psymbol_name_matches): Update call to
2875 get_symbol_name_matcher.
2876 * rust-lang.c (rust_language_data): Delete
2877 la_get_symbol_name_matcher initializer.
2878 * symtab.c (symbol_matches_search_name): Update call to
2879 get_symbol_name_matcher.
2880 (compare_symbol_name): Likewise.
2881
2882 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2883
2884 * ada-lang.c (ada_language_data): Delete la_compute_program
2885 initializer.
2886 * c-lang.c (c_language_data): Likewise.
2887 (c_language::compute_program): New member function.
2888 (cplus_language_data): Delete la_compute_program initializer.
2889 (cplus_language::compute_program): New member function.
2890 (asm_language_data): Delete la_compute_program initializer.
2891 (minimal_language_data): Likewise.
2892 * c-lang.h (c_compute_program): Update comment.
2893 (cplus_compute_program): Likewise.
2894 * compile/compile-c-support.c (c_compute_program): Likewise.
2895 (cplus_compute_program): Likewise.
2896 * compile/compile.c (compile_to_object): Update call to
2897 la_compute_program.
2898 * d-lang.c (d_language_data): Delete la_compute_program
2899 initializer.
2900 * f-lang.c (f_language_data): Likewise.
2901 * go-lang.c (go_language_data): Likewise.
2902 * language.c (unknown_language_data): Likewise.
2903 (auto_language_data): Likewise.
2904 * language.h (language_data): Delete la_compute_program field.
2905 (language_defn::compute_program): New member function.
2906 * m2-lang.c (m2_language_data): Delete la_compute_program
2907 initializer.
2908 * objc-lang.c (objc_language_data): Likewise.
2909 * opencl-lang.c (opencl_language_data): Likewise.
2910 * p-lang.c (pascal_language_data): Likewise.
2911 * rust-lang.c (rust_language_data): Likewise.
2912
2913 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2914
2915 * ada-lang.c (ada_language_data) Delete
2916 la_class_name_from_physname initializer.
2917 * c-lang.c (c_language_data): Likewise.
2918 (cplus_language_data): Likewise.
2919 (cplus_language::class_name_from_physname): New member function.
2920 (asm_language_data): Delete la_class_name_from_physname
2921 initializer.
2922 (minimal_language_data): Likewise.
2923 * d-lang.c (d_language_data): Likewise.
2924 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2925 method on language_defn class.
2926 (guess_full_die_structure_name): Likewise.
2927 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2928 initializer.
2929 * go-lang.c (go_language_data): Likewise.
2930 * language.c (language_class_name_from_physname): Delete.
2931 (unk_lang_class_name): Delete.
2932 (unknown_language_data): Delete la_class_name_from_physname
2933 initializer.
2934 (auto_language_data): Likewise.
2935 * language.h (language_data): Delete la_class_name_from_physname
2936 field.
2937 (language_defn::class_name_from_physname): New function.
2938 (language_class_name_from_physname): Delete declaration.
2939 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2940 initializer.
2941 * objc-lang.c (objc_language_data): Likewise.
2942 * opencl-lang.c (opencl_language_data): Likewise.
2943 * p-lang.c (pascal_language_data): Likewise.
2944 * rust-lang.c (rust_language_data): Likewise.
2945
2946 2020-06-16 Tom Tromey <tom@tromey.com>
2947
2948 * tui/tui-data.h (STATUS_NAME): New macro.
2949 * tui/tui-layout.c (tui_remove_some_windows)
2950 (initialize_known_windows, tui_register_window)
2951 (tui_layout_split::remove_windows, initialize_layouts)
2952 (tui_new_layout_command): Don't use hard-coded window names.
2953
2954 2020-06-16 Tom Tromey <tom@tromey.com>
2955
2956 PR tui/25348:
2957 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2958 tui_initialize_readline. Only run once. Call rl_initialize.
2959 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2960 tui_initialize_readline.
2961 * tui/tui-io.c (tui_setup_io): Call
2962 tui_ensure_readline_initialized.
2963 * tui/tui-interp.c (tui_interp::init): Update.
2964
2965 2020-06-16 Tom Tromey <tom@tromey.com>
2966
2967 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2968 Also preserve the status window.
2969
2970 2020-06-16 Tom Tromey <tom@tromey.com>
2971
2972 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2973 where m_window==nullptr.
2974
2975 2020-06-15 Tom Tromey <tromey@adacore.com>
2976
2977 * windows-nat.c (windows_nat::handle_output_debug_string):
2978 Update.
2979 (windows_nat::handle_ms_vc_exception): Update.
2980 * target.h (target_read_string): Change API.
2981 * target.c (target_read_string): Change API.
2982 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2983 Update.
2984 * solib-frv.c (frv_current_sos): Update.
2985 * solib-dsbt.c (dsbt_current_sos): Update.
2986 * solib-darwin.c (darwin_current_sos): Update.
2987 * linux-thread-db.c (inferior_has_bug): Update.
2988 * expprint.c (print_subexp_standard): Update.
2989 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2990 (ada_exception_message_1): Update.
2991
2992 2020-06-15 Tom Tromey <tromey@adacore.com>
2993
2994 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2995
2996 2020-06-15 Tom Tromey <tromey@adacore.com>
2997
2998 * valprint.c (read_string): Update comment.
2999 * target.c (MIN): Remove.
3000 (target_read_string): Rewrite.
3001
3002 2020-06-15 Tom Tromey <tromey@adacore.com>
3003
3004 * corefile.c (read_memory_string): Remove.
3005 * ada-valprint.c (ada_value_print_ptr): Update.
3006 * ada-lang.h (ada_tag_name): Change return type.
3007 * ada-lang.c (type_from_tag): Update.
3008 (ada_tag_name_from_tsd): Change return type. Use
3009 target_read_string.
3010 (ada_tag_name): Likewise.
3011 * gdbcore.h (read_memory_string): Don't declare.
3012
3013 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3014
3015 * symtab.c (rbreak_command): Ignore Windows drive colon.
3016
3017 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3018
3019 * NEWS: Mention removed GDBserver host support.
3020
3021 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3022
3023 * features/riscv/rebuild-csr-xml.sh: Updated.
3024
3025 2020-06-11 Tom Tromey <tom@tromey.com>
3026
3027 PR gdb/18318:
3028 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3029
3030 2020-06-09 Jonny Grant <jg@jguk.org>
3031 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3032
3033 * main.c (captured_main_1): Don't print new line after help.
3034 (print_gdb_help): add mailing list and IRC channel information
3035 to --help. Add new lines between items in the footer. Remove
3036 quotes around bug url.
3037
3038 2020-06-11 Keith Seitz <keiths@redhat.com>
3039
3040 PR gdb/21356
3041 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3042 Resolve typedefs for type length calculations.
3043
3044 2020-06-10 Tom de Vries <tdevries@suse.de>
3045
3046 PR ada/24713
3047 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3048 (write_psymbols): Enable .gdb_index for ada.
3049 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3050 ada.
3051
3052 2020-06-10 Tom de Vries <tdevries@suse.de>
3053
3054 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3055 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3056 namei" instead of "const char *name" argument.
3057 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3058 dw2_symtab_iter_init.
3059
3060 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3061
3062 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3063 to use type::field and field::type instead.
3064
3065 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3066
3067 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3068 to use field::type instead.
3069
3070 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3071
3072 * gdbtypes.h (struct field) <type, set_type>: New methods.
3073 Rename `type` field to...
3074 <m_type>: ... this. Change references throughout to use type or
3075 set_type methods.
3076 (FIELD_TYPE): Use field::type. Change call sites that modify
3077 the field's type to use field::set_type instead.
3078
3079 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3080
3081 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3082 to use type::index_type instead.
3083
3084 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3085
3086 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3087 methods.
3088 (TYPE_INDEX_TYPE): Use type::index_type.
3089 * gdbtypes.c (create_array_type_with_stride): Likewise.
3090
3091 2020-06-07 Tom Tromey <tom@tromey.com>
3092
3093 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3094 parameter.
3095 (generic_value_print): Update.
3096
3097 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3098
3099 Revert commit 982a38f60b0.
3100 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3101
3102 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3103
3104 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3105 avoid use after free.
3106
3107 2020-06-05 Tom de Vries <tdevries@suse.de>
3108
3109 * NEWS: Fix typos.
3110
3111 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3112
3113 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3114 the per_bfd object.
3115 (dwarf2_read_debug_names): Likewise.
3116 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3117 object when re-using a per_bfd object with an index.
3118
3119 2020-06-03 Tom de Vries <tdevries@suse.de>
3120
3121 PR symtab/26046
3122 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3123 children for C++.
3124 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3125 DW_TAG_subprogram.
3126
3127 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3128
3129 * ada-lang.c (ada_language_data): Delete skip_trampoline
3130 initializer.
3131 * c-lang.c (c_language_data): Likewise.
3132 (cplus_language_data): Likewise.
3133 (cplus_language::skip_trampoline): New member function.
3134 (asm_language_data): Delete skip_trampoline initializer.
3135 (minimal_language_data): Likewise.
3136 * d-lang.c (d_language_data): Likewise.
3137 * f-lang.c (f_language_data): Likewise.
3138 * go-lang.c (go_language_data): Likewise.
3139 * language.c (unk_lang_trampoline): Delete function.
3140 (skip_language_trampoline): Update.
3141 (unknown_language_data): Delete skip_trampoline initializer.
3142 (auto_language_data): Likewise.
3143 * language.h (language_data): Delete skip_trampoline field.
3144 (language_defn::skip_trampoline): New function.
3145 * m2-lang.c (m2_language_data): Delete skip_trampoline
3146 initializer.
3147 * objc-lang.c (objc_skip_trampoline): Delete function, move
3148 implementation to objc_language::skip_trampoline.
3149 (objc_language_data): Delete skip_trampoline initializer.
3150 (objc_language::skip_trampoline): New member function with
3151 implementation from objc_skip_trampoline.
3152 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3153 initializer.
3154 * p-lang.c (pascal_language_data): Likewise.
3155 * rust-lang.c (rust_language_data): Likewise.
3156
3157 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3158
3159 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3160 (ada_language::demangle): New member function.
3161 * c-lang.c (c_language_data): Delete la_demangle initializer.
3162 (cplus_language_data): Delete la_demangle initializer.
3163 (cplus_language::demangle): New member function.
3164 (asm_language_data): Delete la_demangle initializer.
3165 (minimal_language_data): Delete la_demangle initializer.
3166 * d-lang.c (d_language_data): Delete la_demangle initializer.
3167 (d_language::demangle): New member function.
3168 * f-lang.c (f_language_data): Delete la_demangle initializer.
3169 (f_language::demangle): New member function.
3170 * go-lang.c (go_language_data): Delete la_demangle initializer.
3171 (go_language::demangle): New member function.
3172 * language.c (language_demangle): Update.
3173 (unk_lang_demangle): Delete.
3174 (unknown_language_data): Delete la_demangle initializer.
3175 (unknown_language::demangle): New member function.
3176 (auto_language_data): Delete la_demangle initializer.
3177 (auto_language::demangle): New member function.
3178 * language.h (language_data): Delete la_demangle field.
3179 (language_defn::demangle): New function.
3180 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3181 * objc-lang.c (objc_language_data): Delete la_demangle
3182 initializer.
3183 (objc_language::demangle): New member function.
3184 * opencl-lang.c (opencl_language_data): Delete la_demangle
3185 initializer.
3186 * p-lang.c (pascal_language_data): Likewise.
3187 * rust-lang.c (rust_language_data): Likewise.
3188 (rust_language::demangle): New member function.
3189
3190 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3191
3192 * ada-lang.c (ada_language_data): Delete la_print_type
3193 initializer.
3194 (ada_language::print_type): New member function.
3195 * c-lang.c (c_language_data): Delete la_print_type initializer.
3196 (c_language::print_type): New member function.
3197 (cplus_language_data): Delete la_print_type initializer.
3198 (cplus_language::print_type): New member function.
3199 (asm_language_data): Delete la_print_type initializer.
3200 (asm_language::print_type): New member function.
3201 (minimal_language_data): Delete la_print_type initializer.
3202 (minimal_language::print_type): New member function.
3203 * d-lang.c (d_language_data): Delete la_print_type initializer.
3204 (d_language::print_type): New member function.
3205 * f-lang.c (f_language_data): Delete la_print_type initializer.
3206 (f_language::print_type): New member function.
3207 * go-lang.c (go_language_data): Delete la_print_type initializer.
3208 (go_language::print_type): New member function.
3209 * language.c (unk_lang_print_type): Delete.
3210 (unknown_language_data): Delete la_print_type initializer.
3211 (unknown_language::print_type): New member function.
3212 (auto_language_data): Delete la_print_type initializer.
3213 (auto_language::print_type): New member function.
3214 * language.h (language_data): Delete la_print_type field.
3215 (language_defn::print_type): New function.
3216 (LA_PRINT_TYPE): Update.
3217 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3218 (m2_language::print_type): New member function.
3219 * objc-lang.c (objc_language_data): Delete la_print_type
3220 initializer.
3221 (objc_language::print_type): New member function.
3222 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3223 to opencl_language::print_type.
3224 (opencl_language_data): Delete la_print_type initializer.
3225 (opencl_language::print_type): New member function, implementation
3226 from opencl_print_type.
3227 * p-lang.c (pascal_language_data): Delete la_print_type
3228 initializer.
3229 (pascal_language::print_type): New member function.
3230 * rust-lang.c (rust_print_type): Delete, implementation moved to
3231 rust_language::print_type.
3232 (rust_language_data): Delete la_print_type initializer.
3233 (rust_language::print_type): New member function, implementation
3234 from rust_print_type.
3235
3236 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3237
3238 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3239 implementation moves to...
3240 (ada_language::sniff_from_mangled_name): ...here. Update return
3241 type.
3242 (ada_language_data): Delete la_sniff_from_mangled_name
3243 initializer.
3244 * c-lang.c (c_language_data): Likewise.
3245 (cplus_language_data): Likewise.
3246 (cplus_language::sniff_from_mangled_name): New member function,
3247 implementation taken from gdb_sniff_from_mangled_name.
3248 (asm_language_data): Delete la_sniff_from_mangled_name
3249 initializer.
3250 (minimal_language_data): Likewise.
3251 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3252 implementation moves to cplus_language::sniff_from_mangled_name.
3253 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3254 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3255 moves to...
3256 (d_language::sniff_from_mangled_name): ...here.
3257 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3258 * f-lang.c (f_language_data): Likewise.
3259 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3260 moves to...
3261 (go_language::sniff_from_mangled_name): ...here.
3262 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3263 * language.c (language_sniff_from_mangled_name): Delete.
3264 (unknown_language_data): Delete la_sniff_from_mangled_name
3265 initializer.
3266 (auto_language_data): Likewise.
3267 * language.h (language_data): Delete la_sniff_from_mangled_name
3268 field.
3269 (language_defn::sniff_from_mangled_name): New function.
3270 (language_sniff_from_mangled_name): Delete declaration.
3271 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3272 field.
3273 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3274 implementation moves to...
3275 (objc_language::sniff_from_mangled_name): ...here.
3276 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3277 * opencl-lang.c (opencl_language_data): Likewise.
3278 * p-lang.c (pascal_language_data): Likewise.
3279 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3280 implementation moves to...
3281 (rust_language::sniff_from_mangled_name): ...here.
3282 (rust_language_data): Delete la_sniff_from_mangled_name
3283 initializer.
3284 * symtab.c (symbol_find_demangled_name): Call
3285 sniff_from_mangled_name member function.
3286
3287 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3288
3289 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3290 initializer.
3291 * c-lang.c (c_language_data): Likewise.
3292 (cplus_language_data): Likewise.
3293 (cplus_language::search_name_hash): New member function.
3294 (asm_language_data): Delete la_search_name_hash initializer.
3295 (minimal_language_data): Likewise.
3296 * d-lang.c (d_language_data): Likewise.
3297 * dictionary.c (default_search_name_hash): Rename to...
3298 (language_defn::search_name_hash): ...this.
3299 * f-lang.c (f_language_data): Likewise.
3300 (f_language::search_name_hash): New member function.
3301 * go-lang.c (go_language_data): Delete la_search_name_hash
3302 initializer.
3303 * language.c (unknown_language_data): Likewise.
3304 (auto_language_data): Likewise.
3305 * language.h (struct language_data): Delete la_search_name_hash
3306 field.
3307 (language_defn::search_name_hash): Declare new member function.
3308 (default_search_name_hash): Delete declaration.
3309 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3310 initializer.
3311 * objc-lang.c (objc_language_data): Likewise.
3312 * opencl-lang.c (opencl_language_data): Likewise.
3313 * p-lang.c (pascal_language_data): Likewise.
3314 * rust-lang.c (rust_language_data): Likewise.
3315 * symtab.c (search_name_hash): Update call.
3316
3317 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3318
3319 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3320 initializer.
3321 * c-lang.c (class compile_instance): Declare.
3322 (c_language_data): Delete la_get_compile_instance initializer.
3323 (c_language::get_compile_instance): New member function.
3324 (cplus_language_data): Delete la_get_compile_instance initializer.
3325 (cplus_language::get_compile_instance): New member function.
3326 (asm_language_data): Delete la_get_compile_instance initializer.
3327 (minimal_language_data): Likewise.
3328 * c-lang.h (c_get_compile_context): Update comment.
3329 (cplus_get_compile_context): Update comment.
3330 * compile/compile.c (compile_to_object): Update calls, don't rely
3331 on function pointer being NULL.
3332 * d-lang.c (d_language_data): Delete la_get_compile_instance
3333 initializer.
3334 * f-lang.c (f_language_data): Likewise.
3335 * go-lang.c (go_language_data): Likewise.
3336 * language.c (unknown_language_data): Likewise.
3337 (auto_language_data): Likewise.
3338 * language.h (language_data): Delete la_get_compile_instance field.
3339 (language_defn::get_compile_instance): New member function.
3340 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3341 initializer.
3342 * objc-lang.c (objc_language_data): Likewise.
3343 * opencl-lang.c (opencl_language_data): Likewise.
3344 * p-lang.c (pascal_language_data): Likewise.
3345 * rust-lang.c (rust_language_data): Likewise.
3346
3347 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3348
3349 * ada-lang.c (ada_add_all_symbols): Update comment.
3350 (ada_iterate_over_symbols): Delete, move implementation to...
3351 (ada_language::iterate_over_symbols): ...here, a new member
3352 function, rewrite to use range based for loop.
3353 (ada_language_data): Delete la_iterate_over_symbols initializer.
3354 * c-lang.c (c_language_data): Likewise.
3355 (cplus_language_data): Likewise.
3356 (asm_language_data): Likewise.
3357 (minimal_language_data): Likewise.
3358 * d-lang.c (d_language_data): Likewise.
3359 * f-lang.c (f_language_data): Likewise.
3360 * go-lang.c (go_language_data): Likewise.
3361 * language.c (unknown_language_data): Likewise.
3362 (auto_language_data): Likewise.
3363 * language.h (language_data): Delete la_iterate_over_symbols field.
3364 (language_defn::iterate_over_symbols): New member function.
3365 (LA_ITERATE_OVER_SYMBOLS): Update.
3366 * linespec.c (iterate_over_all_matching_symtabs): Update.
3367 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3368 initializer.
3369 * objc-lang.c (objc_language_data): Likewise.
3370 * opencl-lang.c (opencl_language_data): Likewise.
3371 * p-lang.c (pascal_language_data): Likewise.
3372 * rust-lang.c (rust_language_data): Likewise.
3373
3374 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3375
3376 * ada-lang.c (ada_language_data): Delete
3377 la_lookup_transparent_type initializer.
3378 * c-lang.c (c_language_data): Likewise.
3379 (cplus_language_data): Likewise.
3380 (cplus_language::lookup_transparent_type): New member function.
3381 (asm_language_data): Delete la_lookup_transparent_type
3382 initializer.
3383 (minimal_language_data): Likewise.
3384 * d-lang.c (d_language_data): Likewise.
3385 * f-lang.c (f_language_data): Likewise.
3386 * go-lang.c (go_language_data): Likewise.
3387 * language.c (unknown_language_data): Likewise.
3388 (auto_language_data): Likewise.
3389 * language.h (struct language_data): Delete
3390 la_lookup_transparent_type field.
3391 (language_defn::lookup_transparent_type): New member function.
3392 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3393 initializer.
3394 * objc-lang.c (objc_language_data): Likewise.
3395 * opencl-lang.c (opencl_language_data): Likewise.
3396 * p-lang.c (pascal_language_data): Likewise.
3397 * rust-lang.c (rust_language_data): Likewise.
3398 * symtab.c (symbol_matches_domain): Update call.
3399
3400 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3401
3402 * ada-lang.c (ada_language_arch_info): Delete function, move
3403 implementation to...
3404 (ada_language::language_arch_info): ...here, a new member
3405 function.
3406 (ada_language_data): Delete la_language_arch_info.
3407 * c-lang.c (c_language_data): Likewise.
3408 (c_language::language_arch_info): New member function.
3409 (cplus_language_arch_info): Delete function, move
3410 implementation to...
3411 (cplus_language::language_arch_info): ...here, a new member
3412 function.
3413 (cplus_language_data): Delete la_language_arch_info.
3414 (asm_language_data): Likewise.
3415 (asm_language::language_arch_info): New member function.
3416 (minimal_language_data): Delete la_language_arch_info.
3417 (minimal_language::language_arch_info): New member function.
3418 * d-lang.c (d_language_arch_info): Delete function, move
3419 implementation to...
3420 (d_language::language_arch_info): ...here, a new member
3421 function.
3422 (d_language_data): Delete la_language_arch_info.
3423 * f-lang.c (f_language_arch_info): Delete function, move
3424 implementation to...
3425 (f_language::language_arch_info): ...here, a new member
3426 function.
3427 (f_language_data): Delete la_language_arch_info.
3428 * go-lang.c (go_language_arch_info): Delete function, move
3429 implementation to...
3430 (go_language::language_arch_info): ...here, a new member
3431 function.
3432 (go_language_data): Delete la_language_arch_info.
3433 * language.c (unknown_language_data): Likewise.
3434 (unknown_language::language_arch_info): New member function.
3435 (auto_language_data): Delete la_language_arch_info.
3436 (auto_language::language_arch_info): New member function.
3437 (language_gdbarch_post_init): Update call to
3438 la_language_arch_info.
3439 * language.h (language_data): Delete la_language_arch_info
3440 function pointer.
3441 (language_defn::language_arch_info): New function.
3442 * m2-lang.c (m2_language_arch_info): Delete function, move
3443 implementation to...
3444 (m2_language::language_arch_info): ...here, a new member
3445 function.
3446 (m2_language_data): Delete la_language_arch_info.
3447 * objc-lang.c (objc_language_arch_info): Delete function, move
3448 implementation to...
3449 (objc_language::language_arch_info): ...here, a new member
3450 function.
3451 (objc_language_data): Delete la_language_arch_info.
3452 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3453 implementation to...
3454 (opencl_language::language_arch_info): ...here, a new member
3455 function.
3456 (opencl_language_data): Delete la_language_arch_info.
3457 * p-lang.c (pascal_language_arch_info): Delete function, move
3458 implementation to...
3459 (pascal_language::language_arch_info): ...here, a new member
3460 function.
3461 (pascal_language_data): Delete la_language_arch_info.
3462 * rust-lang.c (rust_language_arch_info): Delete function, move
3463 implementation to...
3464 (rust_language::language_arch_info): ...here, a new member
3465 function.
3466 (rust_language_data): Delete la_language_arch_info.
3467
3468 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3469
3470 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3471 initializer.
3472 * c-lang.c (c_language_data): Likewise.
3473 (cplus_language_data): Likewise.
3474 (cplus_language::pass_by_reference_info): New method.
3475 (asm_language_data): Delete la_pass_by_reference initializer.
3476 (minimal_language_data): Likewise.
3477 * cp-abi.c (cp_pass_by_reference): Remove use of
3478 default_pass_by_reference.
3479 * d-lang.c (d_language_data): Likewise.
3480 * f-lang.c (f_language_data): Likewise.
3481 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3482 default_pass_by_reference.
3483 * go-lang.c (go_language_data): Likewise.
3484 * language.c (language_pass_by_reference): Update.
3485 (default_pass_by_reference): Delete.
3486 (unknown_language_data): Delete la_pass_by_reference
3487 initializer.
3488 (auto_language_data): Likewise.
3489 * language.h (struct language_data): Delete la_pass_by_reference
3490 field.
3491 (language_defn::pass_by_reference_info): New member function.
3492 (default_pass_by_reference): Delete declaration.
3493 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3494 initializer.
3495 * objc-lang.c (objc_language_data): Likewise.
3496 * opencl-lang.c (opencl_language_data): Likewise.
3497 * p-lang.c (pascal_language_data): Likewise.
3498 * rust-lang.c (rust_language_data): Likewise.
3499
3500 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3501
3502 * ada-lang.c (ada_read_var_value): Delete function, move
3503 implementation to...
3504 (ada_language::read_var_value): ...here.
3505 (ada_language_data): Delete la_read_var_value initializer.
3506 * c-lang.c (c_language_data): Likewise.
3507 (cplus_language_data): Likewise.
3508 (minimal_language_data): Likewise.
3509 * d-lang.c (d_language_data): Likewise.
3510 * f-lang.c (f_language_data): Likewise.
3511 * findvar.c (default_read_var_value): Rename to...
3512 (language_defn::read_var_value): ...this.
3513 * findvar.c (read_var_value): Update header comment, and change to
3514 call member function instead of function pointer.
3515 * go-lang.c (go_language_data): Likewise.
3516 * language.c (unknown_language_data): Delete la_read_var_value
3517 initializer.
3518 (auto_language_data): Likewise.
3519 * language.h (struct language_data): Delete la_read_var_value
3520 field.
3521 (language_defn::read_var_value): New member function.
3522 (default_read_var_value): Delete declaration.
3523 * m2-lang.c (m2_language_data): Delete la_read_var_value
3524 initializer.
3525 * objc-lang.c (objc_language_data): Likewise.
3526 * opencl-lang.c (opencl_language_data): Likewise.
3527 * p-lang.c (pascal_language_data): Likewise.
3528 * rust-lang.c (rust_language_data): Likewise.
3529 * value.h (default_read_var_value): Delete declaration.
3530
3531 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3532
3533 * ada-lang.c (ada_print_array_index): Delete function, move
3534 implementation to...
3535 (ada_language::print_array_index): ...here.
3536 (ada_language_data): Delete la_print_array_index initializer.
3537 * c-lang.c (c_language_data): Likewise.
3538 (cplus_language_data): Likewise.
3539 (minimal_language_data): Likewise.
3540 * d-lang.c (d_language_data): Likewise.
3541 * f-lang.c (f_language_data): Likewise.
3542 * go-lang.c (go_language_data): Likewise.
3543 * language.c (default_print_array_index): Delete function, move
3544 implementation to...
3545 (language_defn::print_array_index): ...here.
3546 (unknown_language_data): Delete la_print_array_index initializer.
3547 (auto_language_data): Likewise.
3548 * language.h (struct language_data): Delete la_print_array_index
3549 field.
3550 (language_defn::print_array_index): New member function.
3551 (LA_PRINT_ARRAY_INDEX): Update.
3552 (default_print_array_index): Delete declaration.
3553 * m2-lang.c (m2_language_data): Delete la_print_array_index
3554 initializer.
3555 * objc-lang.c (objc_language_data): Likewise.
3556 * opencl-lang.c (opencl_language_data): Likewise.
3557 * p-lang.c (pascal_language_data): Likewise.
3558 * rust-lang.c (rust_language_data): Likewise.
3559
3560 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3561
3562 * gdb/ada-lang.c (ada_language_defn): Convert to...
3563 (ada_language_data): ...this.
3564 (class ada_language): New class.
3565 (ada_language_defn): New static global.
3566 * gdb/c-lang.c (c_language_defn): Convert to...
3567 (c_language_data): ...this.
3568 (class c_language): New class.
3569 (c_language_defn): New static global.
3570 (cplus_language_defn): Convert to...
3571 (cplus_language_data): ...this.
3572 (class cplus_language): New class.
3573 (cplus_language_defn): New static global.
3574 (asm_language_defn): Convert to...
3575 (asm_language_data): ...this.
3576 (class asm_language): New class.
3577 (asm_language_defn): New static global.
3578 (minimal_language_defn): Convert to...
3579 (minimal_language_data): ...this.
3580 (class minimal_language): New class.
3581 (minimal_language_defn): New static global.
3582 * gdb/d-lang.c (d_language_defn): Convert to...
3583 (d_language_data): ...this.
3584 (class d_language): New class.
3585 (d_language_defn): New static global.
3586 * gdb/f-lang.c (f_language_defn): Convert to...
3587 (f_language_data): ...this.
3588 (class f_language): New class.
3589 (f_language_defn): New static global.
3590 * gdb/go-lang.c (go_language_defn): Convert to...
3591 (go_language_data): ...this.
3592 (class go_language): New class.
3593 (go_language_defn): New static global.
3594 * gdb/language.c (unknown_language_defn): Remove declaration.
3595 (current_language): Initialize to nullptr, real initialization is
3596 moved to _initialize_language.
3597 (languages): Delete global.
3598 (language_defn::languages): Define.
3599 (set_language_command): Use language_defn::languages.
3600 (set_language): Likewise.
3601 (range_error): Likewise.
3602 (language_enum): Likewise.
3603 (language_def): Likewise.
3604 (add_set_language_command): Use language_def::languages for the
3605 language list, and language_def to lookup language pointers.
3606 (skip_language_trampoline): Use language_defn::languages.
3607 (unknown_language_defn): Convert to...
3608 (unknown_language_data): ...this.
3609 (class unknown_language): New class.
3610 (unknown_language_defn): New static global.
3611 (auto_language_defn): Convert to...
3612 (auto_language_data): ...this.
3613 (class auto_language): New class.
3614 (auto_language_defn): New static global.
3615 (language_gdbarch_post_init): Use language_defn::languages.
3616 (_initialize_language): Initialize current_language.
3617 * gdb/language.h (struct language_defn): Rename to...
3618 (struct language_data): ...this.
3619 (struct language_defn): New.
3620 (auto_language_defn): Delete.
3621 (unknown_language_defn): Delete.
3622 (minimal_language_defn): Delete.
3623 (ada_language_defn): Delete.
3624 (asm_language_defn): Delete.
3625 (c_language_defn): Delete.
3626 (cplus_language_defn): Delete.
3627 (d_language_defn): Delete.
3628 (f_language_defn): Delete.
3629 (go_language_defn): Delete.
3630 (m2_language_defn): Delete.
3631 (objc_language_defn): Delete.
3632 (opencl_language_defn): Delete.
3633 (pascal_language_defn): Delete.
3634 (rust_language_defn): Delete.
3635 * gdb/m2-lang.c (m2_language_defn): Convert to...
3636 (m2_language_data): ...this.
3637 (class m2_language): New class.
3638 (m2_language_defn): New static global.
3639 * gdb/objc-lang.c (objc_language_defn): Convert to...
3640 (objc_language_data): ...this.
3641 (class objc_language): New class.
3642 (objc_language_defn): New static global.
3643 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3644 (opencl_language_data): ...this.
3645 (class opencl_language): New class.
3646 (opencl_language_defn): New static global.
3647 * gdb/p-lang.c (pascal_language_defn): Convert to...
3648 (pascal_language_data): ...this.
3649 (class pascal_language): New class.
3650 (pascal_language_defn): New static global.
3651 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3652 language pointer, update comment format.
3653 * gdb/rust-lang.c (rust_language_defn): Convert to...
3654 (rust_language_data): ...this.
3655 (class rust_language): New class.
3656 (rust_language_defn): New static global.
3657
3658 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3659
3660 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3661 member variable.
3662 <m_stmt_at_address>: New member variable.
3663 (lnp_state_machine::record_line): Don't record some lines, update
3664 tracking of is_stmt at the same address.
3665 (lnp_state_machine::lnp_state_machine): Initialise new member
3666 variables.
3667
3668 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3669
3670 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3671 "-include gnu-nat-mig.h".
3672 * gnu-nat-mig.h: New file.
3673 * gnu-nat.c: Include "gnu-nat-mig.h".
3674 (exc_server, msg_reply_server, notify_server,
3675 process_reply_server): Remove declarations.
3676
3677 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3678
3679 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3680 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3681 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3682 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3683 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3684 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3685 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3686 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3687 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3688 to gnu_nat_target class.
3689 * gnu-nat.c: Likewise.
3690 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3691 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3692 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3693 object.
3694 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3695 instead of `gnu_target'.
3696
3697 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3698
3699 * i386-gnu-tdep.c: Include "gdbcore.h"
3700 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3701 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3702 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3703 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3704 i386_gnu_sigcontext_addr): New functions
3705 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3706 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3707 tdep.
3708
3709 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3710
3711 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3712 before fork_inferior call. Avoid calling it if target_is_pushed returns
3713 true.
3714
3715 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3716
3717 * gnu-nat.h (gnu_target): New variable declaration.
3718 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3719 gnu_target.
3720 * gnu-nat.c (gnu_target): New variable.
3721 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3722 add_thread_silent, and add_thread calls.
3723 (gnu_nat_target::create_inferior): Pass gnu_target to
3724 add_thread_silent, thread_change_ptid call.
3725 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3726 call.
3727
3728 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3729
3730 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3731 (gnu_nat_target::find_memory_regions): Remove unused
3732 `old_address' variable.
3733
3734 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3735
3736 * gnu-nat.c: Include "gdbarch.h".
3737
3738 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3739
3740 * reply_mig_hack.awk (Error return): Cast function through
3741 void *, to bypass compiler function call check.
3742
3743 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3744
3745 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3746 $(srcdir)/reply_mig_hack.awk.
3747
3748 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3749
3750 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3751
3752 2020-05-30 Jonny Grant <jg@jguk.org>
3753
3754 * configure.ac (ACX_BUGURL): change bug URL to https.
3755
3756 2020-05-30 Pedro Alves <palves@redhat.com>
3757
3758 * cp-support.c (replace_typedefs_template): New.
3759 (replace_typedefs_qualified_name): Handle
3760 DEMANGLE_COMPONENT_TEMPLATE.
3761
3762 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3763
3764 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3765 dwarf2/index-cache.h, dwarf2/index-write.c,
3766 dwarf2/index-write.h, dwarf2/line-header.c,
3767 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3768 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3769 variables and fields from `dwarf2_per_objfile` to just
3770 `per_objfile` throughout.
3771
3772 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3773
3774 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3775 <push_dwarf_reg_entry_value>: Add comment.
3776
3777 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3778 Keith Seitz <keiths@redhat.com>
3779
3780 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3781 instead of PyEval_ReleaseLock.
3782 (class gdbpy_gil): Move to earlier in file.
3783 (finalize_python): Set gdb_python_initialized.
3784 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3785 when not initialized.
3786
3787 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3788
3789 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3790 <push_dwarf_reg_entry_value>: Remove assert. Override
3791 per_objfile with caller_per_objfile.
3792
3793 2020-05-28 Tom de Vries <tdevries@suse.de>
3794
3795 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3796 PR gold/15646 workaround to symbol kind "type".
3797
3798 2020-05-27 Tom Tromey <tromey@adacore.com>
3799
3800 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3801
3802 2020-05-27 Tom Tromey <tromey@adacore.com>
3803
3804 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3805 Use htab_find_with_hash.
3806 <add_abbrev>: Remove "abbrev_number" parameter.
3807 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3808 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3809 (hash_abbrev): Add comment.
3810 (abbrev_table::lookup_abbrev): Move to header file.
3811 (abbrev_table::read): Update.
3812
3813 2020-05-27 Tom Tromey <tromey@adacore.com>
3814
3815 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3816 method.
3817 <canonical_name>: New member.
3818 <raw_name>: Rename from "name".
3819 (partial_die_info): Initialize canonical_name.
3820 (scan_partial_symbols): Check raw_name.
3821 (partial_die_parent_scope, partial_die_full_name)
3822 (add_partial_symbol, add_partial_subprogram)
3823 (add_partial_enumeration, load_partial_dies): Use "name" method.
3824 (partial_die_info::name): New method.
3825 (partial_die_info::read, guess_partial_die_structure_name)
3826 (partial_die_info::fixup): Update.
3827
3828 2020-05-27 Tom Tromey <tromey@adacore.com>
3829
3830 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3831 <get_ref_die_offset>: Inline.
3832 <get_ref_die_offset_complaint>: New method.
3833 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3834 (attribute::get_ref_die_offset_complaint): Rename from
3835 get_ref_die_offset. Just issue complaint.
3836
3837 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3838
3839 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3840
3841 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3842
3843 * exec.c (exec_file_attach): Use errno value of first openp failure.
3844
3845 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3846
3847 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3848 Don't close thread handle.
3849
3850 2020-05-27 Tom Tromey <tom@tromey.com>
3851 Simon Marchi <simon.marchi@efficios.com>
3852
3853 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3854 shared_ptr.
3855 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3856 member.
3857 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3858 dwarf2_per_bfd_objfile_data_key>: New globals.
3859 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3860 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3861 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3862 shared.
3863 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3864 short-circuit when sharing.
3865 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3866 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3867
3868 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3869
3870 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3871 to...
3872 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3873 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3874
3875 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3876
3877 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3878 build_name_components, find_name_components_bounds>:
3879 Add per_objfile parameter.
3880 (struct mapped_index) <symbol_name_at>: Likewise.
3881 (struct mapped_debug_names): Remove constructor.
3882 <dwarf2_per_objfile>: Remove field.
3883 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3884 (mapped_index_base::find_name_components_bounds,
3885 mapped_index_base::build_name_components,
3886 dw2_expand_symtabs_matching_symbol): Likewise.
3887 (class mock_mapped_index) <symbol_name_at>: Likewise.
3888 (check_match): Likewise.
3889 (check_find_bounds_finds): Likewise.
3890 (test_mapped_index_find_name_component_bounds): Update.
3891 (CHECK_MATCH): Update.
3892 (dw2_expand_symtabs_matching): Update.
3893 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3894 per_objfile parameter.
3895 <find_vec_in_debug_names>: Likewise.
3896 <m_per_objfile>: New field.
3897 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3898 parameter.
3899 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3900 (dw2_debug_names_iterator::next): Update.
3901 (dw2_debug_names_lookup_symbol): Update.
3902 (dw2_debug_names_expand_symtabs_for_function): Update.
3903 (dw2_debug_names_map_matching_symbols): Update.
3904 (dw2_debug_names_expand_symtabs_matching): Update.
3905 (dwarf2_read_debug_names): Update.
3906
3907 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3908
3909 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3910 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3911 move to dwarf2_per_objfile.
3912 <read_in_chain>: Remove.
3913 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3914 remove_all_cus, age_comp_units>: New methods.
3915 <m_dwarf2_cus>: New member.
3916 (struct dwarf2_per_cu_data) <cu>: Remove.
3917 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3918 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3919 moved to methods of dwarf2_per_objfile.
3920 (dwarf2_clear_marks): Remove.
3921 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3922 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3923 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3924 (dwarf2_per_objfile::remove_all_cus): New.
3925 (class free_cached_comp_units) <~free_cached_comp_units>:
3926 Update.
3927 (load_cu): Update.
3928 (dw2_do_instantiate_symtab): Adjust.
3929 (fill_in_sig_entry_from_dwo_entry): Adjust.
3930 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3931 (cutu_reader::cutu_reader): Likewise.
3932 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3933 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3934 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3935 and dwarf2_per_objfile::age_comp_units.
3936 (load_partial_comp_unit): Update.
3937 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3938 (process_queue): Likewise.
3939 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3940 backlink.
3941 (dwarf2_read_addr_index): Likewise.
3942 (follow_die_offset): Likewise.
3943 (dwarf2_fetch_die_loc_sect_off): Likewise.
3944 (dwarf2_fetch_constant_bytes): Likewise.
3945 (dwarf2_fetch_die_type_sect_off): Likewise.
3946 (follow_die_sig_1): Likewise.
3947 (load_full_type_unit): Likewise.
3948 (read_signatured_type): Likewise.
3949 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3950 (dwarf2_cu::~dwarf2_cu): Remove.
3951 (dwarf2_per_objfile::get_cu): New.
3952 (dwarf2_per_objfile::set_cu): New.
3953 (age_cached_comp_units): Rename to...
3954 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3955 to std::unordered_map.
3956 (free_one_cached_comp_unit): Rename to...
3957 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3958 to std::unordered_map.
3959 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3960 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3961 a dwarf2_per_objfile in data.
3962 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3963 (dwarf2_clear_marks): Remove.
3964
3965 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3966
3967 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3968 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3969 (init_tu_and_read_dwo_dies): Likewise.
3970 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3971 (cutu_reader::cutu_reader): Likewise.
3972 (load_partial_comp_unit): Likewise.
3973 (process_psymtab_comp_unit): Update.
3974 (build_type_psymtabs_1): Update.
3975 (process_skeletonless_type_unit): Update.
3976 (load_full_comp_unit): Update.
3977 (find_partial_die): Update.
3978 (dwarf2_read_addr_index): Update.
3979 (read_signatured_type): Update.
3980
3981 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3982
3983 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3984 m_header_read_in>: New fields.
3985 <get_header>: New method.
3986 * dwarf2/read.c (per_cu_header_read_in): Remove.
3987 (dwarf2_per_cu_data::get_header): New.
3988 (dwarf2_per_cu_data::addr_size): Update.
3989 (dwarf2_per_cu_data::offset_size): Update.
3990 (dwarf2_per_cu_data::ref_addr_size): Update.
3991
3992 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3993
3994 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3995 (dw2_do_instantiate_symtab): Update.
3996 (queue_and_load_all_dwo_tus): Change parameter from
3997 dwarf2_per_cu_data to dwarf2_cu.
3998 (dwarf2_fetch_die_loc_sect_off): Update.
3999 (dwarf2_fetch_constant_bytes): Update.
4000 (dwarf2_fetch_die_type_sect_off): Update.
4001
4002 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4003
4004 * dwarf2/read.c (process_full_comp_unit,
4005 process_full_type_unit): Remove per_cu, per_objfile paramters.
4006 Add dwarf2_cu parameter.
4007 (process_queue): Update.
4008
4009 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4010
4011 * dwarf2/read.c (create_cu_from_index_list): Replace
4012 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4013 (create_cus_from_index_list): Likewise.
4014 (create_cus_from_index): Likewise.
4015 (create_signatured_type_table_from_index): Likewise.
4016 (create_cus_from_debug_names_list): Likewise.
4017 (create_cus_from_debug_names): Likewise.
4018 (dwarf2_read_gdb_index): Update.
4019 (dwarf2_read_debug_names): Update.
4020
4021 2020-05-27 Tom Tromey <tom@tromey.com>
4022 Simon Marchi <simon.marchi@efficios.com>
4023
4024 * dwarf2/read.h (struct dwarf2_per_objfile)
4025 <get_type_for_signatured_type, set_type_for_signatured_type>:
4026 New methods.
4027 <m_type_map>: New member.
4028 (struct signatured_type) <type>: Remove.
4029 * dwarf2/read.c
4030 (dwarf2_per_objfile::get_type_for_signatured_type,
4031 dwarf2_per_objfile::set_type_for_signatured_type): New.
4032 (get_signatured_type): Use new methods.
4033
4034 2020-05-27 Tom Tromey <tom@tromey.com>
4035 Simon Marchi <simon.marchi@efficios.com>
4036
4037 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4038 (struct dwarf2_per_objfile) <type_units>: New member.
4039 <get_type_unit_group_unshareable>: New method.
4040 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4041 num_symtabs, symtabs>: Remove; move to
4042 type_unit_group_unshareable.
4043 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4044 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4045 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4046
4047 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4048
4049 * dwarf2/read.h (struct dwarf2_per_cu_data):
4050 <dwarf2_per_objfile>: Remove.
4051 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4052 dwarf2_per_objfile.
4053 (create_signatured_type_table_from_index): Likewise.
4054 (create_signatured_type_table_from_debug_names): Likewise.
4055 (create_debug_type_hash_table): Likewise.
4056 (fill_in_sig_entry_from_dwo_entry): Likewise.
4057 (create_type_unit_group): Likewise.
4058 (read_comp_units_from_section): Likewise.
4059 (create_cus_hash_table): Likewise.
4060
4061 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4062
4063 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4064 dwarf2_per_cu_data::dwarf2_per_objfile.
4065 (compute_compunit_symtab_includes): Likewise.
4066 (dwarf2_cu::start_symtab): Likewise.
4067
4068 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4069
4070 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4071 parameter.
4072 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4073 (read_namespace_alias): Update.
4074 (lookup_die_type): Update.
4075 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4076 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4077 Update.
4078 (disassemble_dwarf_expression): Update.
4079
4080 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4081
4082 * dwarf2/read.h (struct dwarf2_queue_item): Add
4083 dwarf2_per_objfile parameter, assign new parameter.
4084 <per_objfile>: New field.
4085 * dwarf2/read.c (free_one_cached_comp_unit): Add
4086 dwarf2_per_objfile parameter.
4087 (queue_comp_unit): Likewise.
4088 (dw2_do_instantiate_symtab): Update.
4089 (process_psymtab_comp_unit): Update.
4090 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4091 (process_imported_unit_die): Update.
4092 (queue_and_load_dwo_tu): Update.
4093 (follow_die_offset): Update.
4094 (follow_die_sig_1): Update.
4095
4096 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4097
4098 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4099 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4100 (read_call_site_scope): Assign per_objfile.
4101 (dwarf2_per_cu_data::objfile): Remove.
4102 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4103 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4104 dwarf2_per_objfile parameter.
4105 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4106 dwarf2_per_objfile parameter.
4107 (dwarf_expr_reg_to_entry_parameter): Add output
4108 dwarf2_per_objfile parameter.
4109 (locexpr_get_frame_base): Update.
4110 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4111 <push_dwarf_reg_entry_value>: Update.
4112 <call_site_to_target_addr>: Update.
4113 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4114 parameter.
4115 (value_of_dwarf_reg_entry): Update.
4116 (rw_pieced_value): Update.
4117 (indirect_synthetic_pointer): Update.
4118 (dwarf2_evaluate_property): Update.
4119 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4120 parameter.
4121 (locexpr_read_variable): Update.
4122 (locexpr_get_symbol_read_needs): Update.
4123 (loclist_read_variable): Update.
4124
4125 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4126
4127 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4128 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4129 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4130 parameter.
4131 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4132 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4133 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4134 parameter.
4135 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4136 sect_variable_value): Add dwarf2_per_objfile parameter.
4137 (class dwarf_evaluate_loc_desc) <dwarf_call,
4138 dwarf_variable_value>: Update.
4139 (fetch_const_value_from_synthetic_pointer): Add
4140 dwarf2_per_objfile parameter.
4141 (fetch_const_value_from_synthetic_pointer): Update.
4142 (coerced_pieced_ref): Update.
4143 (class symbol_needs_eval_context) <dwarf_call,
4144 dwarf_variable_value>: Update.
4145 (dwarf2_compile_expr_to_ax): Update.
4146
4147 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4148
4149 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4150 parameter.
4151 (dwarf2_evaluate_loc_desc_full): Update.
4152
4153 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4154
4155 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4156 parameter.
4157 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4158 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4159 dwarf2_per_objfile parameter.
4160 (decode_debug_loc_dwo_addresses): Likewise.
4161 (dwarf2_find_location_expression): Update.
4162 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4163 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4164 parameter.
4165 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4166 parameter.
4167 (locexpr_describe_location_1): Likewise.
4168 (locexpr_describe_location): Update.
4169
4170 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4171
4172 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4173 Remove.
4174 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4175 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4176 (dwarf2_compile_property_to_c): Update.
4177 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4178 use text offset from objfile.
4179 (locexpr_tracepoint_var_ref): Update.
4180 (locexpr_generate_c_location): Update.
4181 (loclist_describe_location): Update.
4182 (loclist_tracepoint_var_ref): Update.
4183 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4184 dwarf2_per_objfile parameter.
4185 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4186 use text offset from objfile.
4187 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4188
4189 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4190
4191 * dwarf2/expr.h (struct dwarf_expr_context)
4192 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4193 <offset>: Remove.
4194 <per_objfile>: New member.
4195 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4196 dwarf2_per_objfile parameter. Don't set offset, set
4197 per_objfile.
4198 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4199 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4200 a dwarf2_per_objfile object instead of an offset.
4201 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4202 constructor.
4203 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4204 to dwarf2_expr_executor constructor. Don't set offset.
4205 (dwarf2_fetch_cfa_info): Update.
4206 (struct dwarf2_frame_cache) <text_offset>: Remove.
4207 <per_objfile>: New field.
4208 (dwarf2_frame_cache): Update.
4209 (dwarf2_frame_prev_register): Update.
4210 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4211 <dwarf_evaluate_loc_desc>: Add constructor.
4212 (dwarf2_evaluate_loc_desc_full): Update.
4213 (dwarf2_locexpr_baton_eval): Update.
4214 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4215 Add constructor.
4216 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4217
4218 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4219
4220 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4221 addr_sized_int_type>: Move to dwarf2_cu.
4222 <int_type>: Move to dwarf2_per_objfile.
4223 (struct dwarf2_per_objfile) <int_type>: Move here.
4224 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4225 addr_sized_int_type>: Move here.
4226 (read_func_scope): Update.
4227 (read_array_type): Update.
4228 (read_tag_string_type): Update.
4229 (attr_to_dynamic_prop): Update.
4230 (dwarf2_per_cu_data::int_type): Rename to...
4231 (dwarf2_per_objfile::int_type): ... this.
4232 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4233 (dwarf2_cu::addr_sized_int_type): ... this.
4234 (read_subrange_type): Update.
4235 (dwarf2_per_cu_data::addr_type): Rename to...
4236 (dwarf2_cu::addr_type): ... this.
4237 (set_die_type): Update.
4238
4239 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4240
4241 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4242 data through per_cu->cu.
4243
4244 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4245
4246 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4247 dwarf2_per_cu_data parameter fo dwarf2_cu.
4248 (lookup_dwo_type_unit): Likewise.
4249 (read_cutu_die_from_dwo): Likewise.
4250 (lookup_dwo_unit): Likewise.
4251 (open_and_init_dwo_file): Likewise.
4252 (lookup_dwo_cutu): Likewise.
4253 (lookup_dwo_comp_unit): Likewise.
4254 (lookup_dwo_type_unit): Likewise.
4255 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4256 (cutu_reader::cutu_reader): Update.
4257
4258 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4259
4260 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4261 parameter.
4262 (process_full_type_unit): Likewise.
4263 (process_queue): Update.
4264
4265 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4266
4267 * dwarf2/read.c (recursively_compute_inclusions): Add
4268 dwarf2_per_objfile parameter.
4269 (compute_compunit_symtab_includes): Likewise.
4270 (process_cu_includes): Update.
4271
4272 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4273
4274 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4275 parameter.
4276 (create_type_unit_group): Update.
4277 (process_psymtab_comp_unit_reader): Update.
4278 (build_type_psymtabs_reader): Update.
4279
4280 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4281
4282 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4283 object through m_this_cu->cu.
4284
4285 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4286
4287 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4288 the info parameter.
4289 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4290
4291 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4292
4293 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4294 per_objfile parameter.
4295 (load_full_type_unit): Add per_objfile parameter.
4296 (read_signatured_type): Likewise.
4297 (load_full_comp_unit): Likewise.
4298 (load_cu): Likewise.
4299 (dw2_do_instantiate_symtab): Likewise.
4300 (dw2_get_file_names): Likewise.
4301 (dw2_map_symtabs_matching_filename): Update.
4302 (dw_expand_symtabs_matching_file_matcher): Update.
4303 (dw2_map_symbol_filenames): Update.
4304 (process_psymtab_comp_unit): Add per_objfile parameter.
4305 (build_type_psymtabs_1): Update.
4306 (process_skeletonless_type_unit): Update.
4307 (dwarf2_build_psymtabs_hard): Update.
4308 (load_partial_comp_unit): Add per_objfile parameter.
4309 (scan_partial_symbols): Update.
4310 (load_full_comp_unit): Add per_objfile parameter.
4311 (process_imported_unit_die): Update.
4312 (create_cus_hash_table): Update.
4313 (find_partial_die): Update.
4314 (dwarf2_read_addr_index): Update.
4315 (follow_die_offset): Update.
4316 (dwarf2_fetch_die_loc_sect_off): Update.
4317 (dwarf2_fetch_constant_bytes): Update.
4318 (dwarf2_fetch_die_type_sect_off): Update.
4319 (follow_die_sig_1): Update.
4320 (load_full_type_unit): Add per_objfile parameter.
4321 (read_signatured_type): Likewise.
4322
4323 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4324
4325 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4326 of objfile_name.
4327
4328 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4329
4330 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4331 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4332 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4333 field.
4334 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4335 (create_cus_from_index): Update.
4336 (dwarf2_read_gdb_index): Update.
4337 (create_cus_from_debug_names): Update.
4338 (dwarf2_read_debug_names): Update.
4339 (get_abbrev_section_for_cu): Update.
4340 (create_all_comp_units): Update.
4341 (read_attribute_value): Update.
4342 (get_debug_line_section): Update.
4343 * dwarf2/index-cache.c (index_cache::store): Update.
4344 * dwarf2/index-write.c (save_gdb_index_command): Update.
4345 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4346
4347 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4348
4349 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4350 member.
4351 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4352 dwarf2_per_cu_data::per_bfd.
4353 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4354 (create_type_unit_group): Likewise.
4355 (queue_comp_unit): Remove reference to
4356 per_cu->dwarf2_per_objfile.
4357 (maybe_queue_comp_unit): Likewise.
4358 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4359 (create_cus_hash_table): Assign new field.
4360
4361 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4362
4363 * dwarf2/read.c: Replace
4364 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4365 dwarf2_cu->per_objfile throughout.
4366
4367 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4368
4369 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4370 parameter, don't use per_cu->dwarf2_per_objfile.
4371 (dw2_instantiate_symtab): Likewise.
4372 (dw2_find_last_source_symtab): Update.
4373 (dw2_map_expand_apply): Update.
4374 (dw2_lookup_symbol): Update.
4375 (dw2_expand_symtabs_for_function): Update.
4376 (dw2_expand_all_symtabs): Update.
4377 (dw2_expand_symtabs_with_fullname): Update.
4378 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4379 don't use per_cu->dwarf2_per_objfile.
4380 (dw2_expand_marked_cus): Update.
4381 (dw2_find_pc_sect_compunit_symtab): Update.
4382 (dw2_debug_names_lookup_symbol): Update.
4383 (dw2_debug_names_expand_symtabs_for_function): Update.
4384 (dw2_debug_names_map_matching_symbols): Update.
4385 (dwarf2_psymtab::expand_psymtab): Update.
4386
4387 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4388
4389 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4390 <per_objfile>: New member.
4391 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4392 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4393 call to dwarf2_cu.
4394 (cutu_reader::cutu_reader): Update.
4395 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4396
4397 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4398
4399 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4400 struct dwarf2_per_objfile.
4401 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4402 dwarf2_per_bfd.
4403 * dwarf2/read.c (set_die_type): Update.
4404 (get_die_type_at_offset): Update.
4405
4406 2020-05-27 Tom Tromey <tom@tromey.com>
4407 Simon Marchi <simon.marchi@efficios.com>
4408
4409 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4410 method.
4411 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4412 get_symtab, set_symtab>: New methods.
4413 <m_symtabs>: New field.
4414 (struct dwarf2_psymtab): Derive from partial_symtab.
4415 <readin_p, get_compunit_symtab>: Declare methods.
4416 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4417 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4418 New methods.
4419 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4420 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4421 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4422 (dw2_symtab_iter_next, dw2_print_stats)
4423 (dw2_expand_symtabs_with_fullname)
4424 (dw2_expand_symtabs_matching_one)
4425 (dw_expand_symtabs_matching_file_matcher)
4426 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4427 (dw2_debug_names_iterator::next)
4428 (dw2_debug_names_map_matching_symbols)
4429 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4430 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4431 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4432 New methods.
4433 (get_compunit_symtab, process_full_comp_unit)
4434 (process_full_type_unit): Update.
4435 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4436
4437 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4438
4439 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4440 then introduce a new dwarf2_per_objfile type.
4441 <read_line_string>: Move to the new dwarf2_per_objfile type.
4442 <objfile>: Likewise.
4443 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4444 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4445 dwarf2_per_objfile->per_bfd.
4446 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4447 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4448 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4449 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4450 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4451 (dwarf2_per_objfile::locate_sections): Rename to...
4452 (dwarf2_per_bfd::locate_sections): ... this.
4453 (dwarf2_per_objfile::get_cutu): Rename to...
4454 (dwarf2_per_bfd::get_cutu): ... this.
4455 (dwarf2_per_objfile::get_cu): Rename to...
4456 (dwarf2_per_bfd::get_cu): ... this.
4457 (dwarf2_per_objfile::get_tu): Rename to...
4458 (dwarf2_per_bfd::get_tu): ... this.
4459 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4460 (dwarf2_per_bfd::allocate_per_cu): ... this.
4461 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4462 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4463 (get_gdb_index_contents_ftype): Change parameter from
4464 dwarf2_per_objfile to dwarf2_per_bfd.
4465 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4466 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4467
4468 2020-05-27 Tom Tromey <tom@tromey.com>
4469 Simon Marchi <simon.marchi@efficios.com>
4470
4471 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4472 (allocate_piece_closure): Set "per_objfile" member.
4473 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4474 (locexpr_describe_location, loclist_describe_location): Use new
4475 member.
4476 * dwarf2/read.c (read_call_site_scope)
4477 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4478 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4479 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4480 handle_data_member_location): Set per_objfile member.
4481 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4482 member.
4483 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4484
4485 2020-05-27 Tom Tromey <tom@tromey.com>
4486
4487 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4488 allocate_signatured_type>: Declare new methods.
4489 <m_num_psymtabs>: New member.
4490 (struct dwarf2_per_cu_data) <index>: New member.
4491 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4492 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4493 (create_cu_from_index_list): Use allocate_per_cu.
4494 (create_signatured_type_table_from_index)
4495 (create_signatured_type_table_from_debug_names)
4496 (create_debug_type_hash_table, add_type_unit)
4497 (read_comp_units_from_section): Use allocate_signatured_type.
4498
4499 2020-05-27 Tom Tromey <tom@tromey.com>
4500
4501 * psymtab.c (partial_map_expand_apply)
4502 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4503 (psym_lookup_global_symbol_language)
4504 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4505 (psym_print_stats, psym_expand_symtabs_for_function)
4506 (psym_map_symbol_filenames, psym_map_matching_symbols)
4507 (psym_expand_symtabs_matching)
4508 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4509 (maintenance_check_psymtabs): Update.
4510 * psympriv.h (struct partial_symtab) <readin_p,
4511 get_compunit_symtab>: Add objfile parameter.
4512 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4513 Likewise.
4514 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4515 get_compunit_symtab>: Likewise.
4516 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4517
4518 2020-05-27 Tom Tromey <tom@tromey.com>
4519
4520 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4521 member.
4522 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4523 (create_cu_from_index_list)
4524 (create_signatured_type_table_from_index)
4525 (create_signatured_type_table_from_debug_names)
4526 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4527 (dwarf2_create_include_psymtab)
4528 (create_debug_type_hash_table, add_type_unit)
4529 (create_type_unit_group, read_comp_units_from_section)
4530 (dwarf2_compute_name, create_cus_hash_table)
4531 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4532 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4533 obstack.
4534 (dw2_get_real_path): Likewise. Change argument to
4535 dwarf2_per_objfile.
4536
4537 2020-05-27 Luis Machado <luis.machado@linaro.org>
4538
4539 PR tdep/26000
4540 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4541 for ldrd (immediate).
4542
4543 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4544
4545 * command.h: Add comment giving the name of class_tui.
4546 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4547 create the fake command for the help for class_tui.
4548
4549 2020-05-26 Tom Tromey <tromey@adacore.com>
4550
4551 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4552 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4553 (val_atr): New function.
4554 (value_val_atr): Use it.
4555 * ada-valprint.c (print_optional_low_bound): Change low bound
4556 handling for enums.
4557 (val_print_packed_array_elements): Don't call discrete_position.
4558 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4559 discrete_position for enum types.
4560 * language.c (default_print_array_index): Change type.
4561 * language.h (struct language_defn) <la_print_array_index>: Add
4562 index_type parameter, change type of index_value.
4563 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4564 (default_print_array_index): Update.
4565 * valprint.c (maybe_print_array_index): Don't call
4566 value_from_longest. Update.
4567 (value_print_array_elements): Don't call discrete_position.
4568
4569 2020-05-26 Tom Tromey <tromey@adacore.com>
4570
4571 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4572 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4573
4574 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4575
4576 PR gdb/13519
4577 * avr-tdep.c (avr_integer_to_address): Return data or code
4578 address accordingly to the second 'type' argument of the
4579 function.
4580
4581 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4582
4583 * infcmd.c, inferior.h: (construct_inferior_arguments):
4584 Moved function from here to gdbsupport/common-inferior.{h,cc}
4585
4586 2020-05-23 Tom Tromey <tom@tromey.com>
4587
4588 Revert commit eca1f90c:
4589 * NEWS: Remove entry for completion styling.
4590 * completer.c (_rl_completion_prefix_display_length): Move
4591 declaration later.
4592 (gdb_fnprint): Revert.
4593 (gdb_display_match_list_1): Likewise.
4594 * cli/cli-style.c (completion_prefix_style)
4595 (completion_difference_style, completion_suffix_style): Remove.
4596 (_initialize_cli_style): Revert.
4597 * cli/cli-style.h (completion_prefix_style)
4598 (completion_difference_style, completion_suffix_style): Don't
4599 declare.
4600
4601 2020-05-24 Pedro Alves <palves@redhat.com>
4602
4603 * symtab.c (completion_list_add_name): Return boolean indication
4604 of whether the symbol matched.
4605 (completion_list_add_symbol): Don't try to remove C++ aliases if
4606 the symbol didn't match in the first place.
4607 * symtab.h (completion_list_add_name): Return bool.
4608
4609 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4610
4611 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4612 type::field.
4613
4614 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4615
4616 GDB 9.2 released.
4617
4618 2020-05-23 Tom Tromey <tom@tromey.com>
4619
4620 * NEWS: Add entry for completion styling.
4621 * completer.c (_rl_completion_prefix_display_length): Move
4622 declaration earlier.
4623 (gdb_fnprint): Use completion_style.
4624 (gdb_display_match_list_1): Likewise.
4625 * cli/cli-style.c (completion_prefix_style)
4626 (completion_difference_style, completion_suffix_style): New
4627 globals.
4628 (_initialize_cli_style): Register new globals.
4629 * cli/cli-style.h (completion_prefix_style)
4630 (completion_difference_style, completion_suffix_style): Declare.
4631
4632 2020-05-23 Pedro Alves <palves@redhat.com>
4633
4634 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4635 (parse_escape): Use ISDIGIT instead of isdigit.
4636 (puts_debug): Use gdb_isprint instead of isprint.
4637 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4638 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4639 ISSPACE instead of isspace.
4640 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4641 instead of isspace.
4642 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4643 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4644 instead of isxdigit and ISDIGIT instead of isdigit.
4645
4646 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4647
4648 * gdbtypes.h (struct type) <field>: New method.
4649 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4650 or type::field.
4651
4652 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4653
4654 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4655 (TYPE_FIELDS): Use type::fields. Change all call sites that
4656 modify the propery to use type::set_fields instead.
4657
4658 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4659
4660 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4661 type::num_fields instead.
4662
4663 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4664
4665 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4666 methods.
4667 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4668 that modify the number of fields to use type::set_num_fields
4669 instead.
4670
4671 2020-05-22 Tom Tromey <tromey@adacore.com>
4672
4673 * compile/compile-object-load.h (munmap_list_free): Don't
4674 declare.
4675
4676 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4677
4678 * annotate.c (annotate_source_line): Update return type, add call
4679 to update current symtab and line.
4680 * annotate.h (annotate_source_line): Update return type, and
4681 extend header comment.
4682 * source.c (info_line_command): Check annotation_level before
4683 calling annotate_source_line.
4684 * stack.c (print_frame_info): If calling annotate_source_line
4685 returns true, then don't print any other source line information.
4686
4687 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4688
4689 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4690
4691 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4692
4693 * coffread.c (patch_type): Remove NULL check before xfree.
4694 * corefile.c (set_gnutarget): Likewise.
4695 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4696 * exec.c (build_section_table): Likewise.
4697 * remote.c (remote_target::pass_signals): Likewise.
4698 * utils.c (n_spaces): Likewise.
4699 * cli/cli-script.c (document_command): Likewise.
4700 * i386-windows-tdep.c (core_process_module_section): Likewise.
4701 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4702
4703 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4704
4705 * symfile.c (reread_symbols): Clear objfile's section_offsets
4706 vector and section indices, re-compute them by calling
4707 sym_offsets.
4708
4709 2020-05-20 Tom Tromey <tromey@adacore.com>
4710
4711 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4712 (desc_one_bound, desc_index_type): Compute field name.
4713
4714 2020-05-20 Tom de Vries <tdevries@suse.de>
4715
4716 PR symtab/25833
4717 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4718
4719 2020-05-20 Alan Modra <amodra@gmail.com>
4720
4721 PR 25993
4722 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4723 bfd_set_filename.
4724 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4725 passed to bfd_set_filename.
4726 * symfile-mem.c (add_vsyscall_page): Likewise for string
4727 passed to symbol_file_add_from_memory.
4728 (symbol_file_add_from_memory): Make name param a const char* and
4729 don't strdup.
4730
4731 2020-05-20 Alan Modra <amodra@gmail.com>
4732
4733 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4734 rather than accessing bfd->filename directly.
4735 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4736 and use bfd_section_name.
4737 * dwarf2/frame.c (decode_frame_entry): Likewise.
4738 * exec.c (exec_set_section_address): Likewise.
4739 * solib-aix.c (solib_aix_bfd_open): Likewise.
4740 * stap-probe.c (get_stap_base_address): Likewise.
4741 * symfile.c (reread_symbols): Likewise.
4742
4743 2020-05-19 Tom Tromey <tromey@adacore.com>
4744
4745 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4746
4747 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4748
4749 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4750
4751 2020-05-19 Pedro Alves <palves@redhat.com>
4752
4753 * NEWS (set exec-file-mismatch): Adjust entry.
4754 * exec.c: Include "build-id.h".
4755 (validate_exec_file): Try to match build IDs instead of filenames.
4756 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4757 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4758 and pass down 'warn_if_slow'.
4759 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4760 gdb_bfd_open_closure to pass it down.
4761 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4762
4763 2020-05-19 Pedro Alves <palves@redhat.com>
4764
4765 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4766 * target.c (target_fileio_open_1): Rename to target_fileio_open
4767 and make extern. Use bool.
4768 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4769 (target_fileio_read_alloc_1): Adjust.
4770 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4771 (target_fileio_open_warn_if_slow): Delete declaration.
4772
4773 2020-05-19 Pedro Alves <palves@redhat.com>
4774
4775 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4776 Adjust all callers.
4777
4778 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4779
4780 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4781 whether disp is negative.
4782
4783 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4784
4785 * symfile.h (struct symfile_segment_data)
4786 <~symfile_segment_data>: Remove.
4787 <segment_info>: Change to std::vector.
4788 * symfile.c (default_symfile_segments): Update.
4789 * elfread.c (elf_symfile_segments): Update.
4790
4791 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4792
4793 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4794 <segments>: New.
4795 <segment_bases, segment_sizes>: Remove.
4796 * symfile.c (default_symfile_segments): Update.
4797 * elfread.c (elf_symfile_segments): Update.
4798 * remote.c (remote_target::get_offsets): Update.
4799 * solib-target.c (solib_target_relocate_section_addresses):
4800 Update.
4801
4802 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4803
4804 * symfile.h (struct symfile_segment_data): Initialize fields.
4805 <~symfile_segment_data>: Add.
4806 (symfile_segment_data_up): New.
4807 (struct sym_fns) <sym_segments>: Return a
4808 symfile_segment_data_up.
4809 (default_symfile_segments): Return a symfile_segment_data_up.
4810 (free_symfile_segment_data): Remove.
4811 (get_symfile_segment_data): Return a symfile_segment_data_up.
4812 * symfile.c (default_symfile_segments): Likewise.
4813 (get_symfile_segment_data): Likewise.
4814 (free_symfile_segment_data): Remove.
4815 (symfile_find_segment_sections): Update.
4816 * elfread.c (elf_symfile_segments): Return a
4817 symfile_segment_data_up.
4818 * remote.c (remote_target::get_offsets): Update.
4819 * solib-target.c (solib_target_relocate_section_addresses):
4820 Update.
4821 * symfile-debug.c (debug_sym_segments): Return a
4822 symfile_segment_data_up.
4823
4824 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4825
4826 PR build/25981
4827 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4828 Hardcode register numbers.
4829
4830 PR build/25981
4831 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4832 procfs_find_LDT_entry): Remove.
4833 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4834 procfs_find_LDT_entry): Remove.
4835 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4836 Remove.
4837
4838 2020-05-17 Pedro Alves <palves@redhat.com>
4839 Andrew Burgess <andrew.burgess@embecosm.com>
4840 Keno Fischer <keno@juliacomputing.com>
4841
4842 PR gdb/25741
4843 * breakpoint.c (build_target_condition_list): Update comments.
4844 (build_target_command_list): Update comments and skip matching
4845 locations.
4846 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4847 a separate function. Simplify "set breakpoint auto-hw off"
4848 handling.
4849 (insert_breakpoints): Update comment.
4850 (tracepoint_locations_match): New parameter. For breakpoints,
4851 compare location types too, if the caller wants to.
4852 (handle_automatic_hardware_breakpoints): New functions.
4853 (bp_location_is_less_than): Also sort by location type and
4854 hardware breakpoint length.
4855 (update_global_location_list): Handle "set breakpoint auto-hw on"
4856 here.
4857 (update_breakpoint_locations): Ask breakpoint_locations_match to
4858 ignore location types.
4859
4860 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4861
4862 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4863 type::name instead.
4864
4865 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4866
4867 * gdbtypes.h (struct type) <name, set_name>: New methods.
4868 (TYPE_CODE): Use type::name. Change all call sites used to set
4869 the name to use type::set_name instead.
4870
4871 2020-05-16 Tom Tromey <tom@tromey.com>
4872
4873 * top.c (quit_force): Update.
4874 * infrun.c (handle_no_resumed): Update.
4875 * top.h (all_uis): New function.
4876 (ALL_UIS): Remove.
4877
4878 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4879
4880 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4881
4882 2020-05-16 Pedro Alves <palves@redhat.com>
4883
4884 * ia64-linux-nat.c
4885 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4886 Declare method.
4887 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4888
4889 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4890
4891 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4892 (sparc64_adi_info): Likewise.
4893
4894 2020-05-15 Tom Tromey <tom@tromey.com>
4895
4896 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4897 block_objfile.
4898 (lookup_objfile_from_block): Remove.
4899 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4900 (lookup_global_symbol): Use block_objfile.
4901 * symtab.h (lookup_objfile_from_block): Don't declare.
4902 * printcmd.c (clear_dangling_display_expressions): Use
4903 block_objfile.
4904 * parse.c (operator_check_standard): Use block_objfile.
4905
4906 2020-05-15 Tom Tromey <tom@tromey.com>
4907
4908 * language.c (language_alloc_type_symbol): Set
4909 SYMBOL_SECTION.
4910 * symtab.c (initialize_objfile_symbol): Remove.
4911 (allocate_symbol): Remove.
4912 (allocate_template_symbol): Remove.
4913 * dwarf2/read.c (fixup_go_packaging): Use "new".
4914 (new_symbol): Use "new".
4915 (read_variable): Don't call initialize_objfile_symbol. Use
4916 "new".
4917 (read_func_scope): Use "new".
4918 * xcoffread.c (process_xcoff_symbol): Don't call
4919 initialize_objfile_symbol.
4920 (SYMBOL_DUP): Remove.
4921 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4922 "new".
4923 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4924 (allocate_template_symbol): Don't declare.
4925 (struct symbol): Add copy constructor. Change defaults.
4926 * jit.c (finalize_symtab): Use "new".
4927 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4928 Use "new".
4929 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4930 (common_block_end): Use "new".
4931 * mdebugread.c (parse_symbol): Use "new".
4932 (new_symbol): Likewise.
4933
4934 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4935
4936 * NEWS: Mention changes to help and apropos.
4937
4938 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4939
4940 * command.h (enum command_class): Improve comments, document
4941 that class_alias is for user-defined aliases, give the class
4942 name for each class, remove unused class_xdb.
4943 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4944 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4945 by a precise class.
4946 * infcmd.c (_initialize_infcmd): Likewise.
4947 * reverse.c (_initialize_reverse): Likewise.
4948 * stack.c (_initialize_stack): Likewise.
4949 * symfile.c (_initialize_symfile): Likewise.
4950 * tracepoint.c (_initialize_tracepoint): Likewise.
4951
4952 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4953
4954 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4955 when their aliased command is traversed.
4956 (help_cmd): Add fput_command_names_styled call to
4957 output command name and aliases when command has an alias.
4958
4959 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4960
4961 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4962 * cli/cli-decode.c (help_cmd_list): Declare as static,
4963 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4964 a command together with the command.
4965 (fput_command_name_styled, fput_command_names_styled): New functions.
4966 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4967 fput_command_name_styled.
4968 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4969 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4970
4971 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4972
4973 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4974 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4975 * command.h (cmd_show_list): Likewise.
4976 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4977 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4978
4979 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4980
4981 * unittests/command-def-selftests.c (traverse_command_structure):
4982 Verify all commands of a list have the same prefix command and
4983 that only the top cmdlist commands have a null prefix.
4984
4985 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4986
4987 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4988 as prefix, not one of its aliases.
4989 (set_cmd_prefix): Remove.
4990 (do_add_cmd): Centralize the setting of the prefix of a command, when
4991 command is defined after its full chain of prefix commands.
4992 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4993 (add_setshow_cmd_full): Likewise.
4994 (update_prefix_field_of_prefixed_commands): New function.
4995 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4996 update_prefix_field_of_prefixed_commands.
4997 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4998 addresses of remote_set_cmdlist and remote_show_cmdlist given
4999 as argument, not the address of an argument.
5000 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5001 * gdb/remote.c (_initialize_remote): Likewise.
5002
5003 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5004
5005 * cli/cli-cmds.c (alias_command): Check for an existing alias
5006 using lookup_cmd_composition, as valid_command_p is too strict
5007 and forbids aliases that are the prefix of an existing alias
5008 or command.
5009 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5010 command is properly recognised as a valid command.
5011
5012 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5013
5014 * unittests/help-doc-selftests.c: Rename to
5015 unittests/command-def-selftests.c
5016 * unittests/command-def-selftests.c (help_doc_tests): Update some
5017 comments.
5018 (command_structure_tests, traverse_command_structure): New namespace
5019 and function.
5020 (command_structure_invariants_tests): New function.
5021 (_initialize_command_def_selftests) Renamed from
5022 _initialize_help_doc_selftests, register command_structure_invariants
5023 selftest.
5024
5025 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5026
5027 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5028 an alias of 'show'.
5029
5030 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5031
5032 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5033 ada_is_fixed_point_type. Update all callers.
5034 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5035 all callers.
5036 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5037 Update all callers.
5038 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5039 print_fixed_point_type. Update all callers.
5040 * ada-valprint.c (ada_value_print_num): Replace call to
5041 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5042
5043 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5044
5045 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5046 processors.
5047 (cpu_supports_bts): Add CV_AMD case.
5048
5049 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5050 Simon Marchi <simon.marchi@efficios.com>
5051
5052 * infrun.c (stop_all_threads): Collect multiple wait events at
5053 each pass.
5054
5055 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5056
5057 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5058 type::code instead.
5059
5060 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5061
5062 * gdbtypes.h (struct type) <code, set_code>: New methods.
5063 (TYPE_CODE): Use type::code. Change all call sites used to set
5064 the code to use type::set_code instead.
5065
5066 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5067 Tom de Vries <tdevries@suse.de>
5068 Pedro Alves <palves@redhat.com>
5069
5070 PR threads/25478
5071 * infrun.c (stop_all_threads): Do NOT ignore
5072 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5073 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5074 received.
5075 (handle_no_resumed): Remove code handling a live inferior with no
5076 threads.
5077 * remote.c (has_single_non_exited_thread): New.
5078 (remote_target::update_thread_list): Do not delete a thread if is
5079 the last thread of the process.
5080 * thread.c (thread_select): Call delete_exited_threads instead of
5081 prune_threads.
5082
5083 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5084
5085 * infrun.c (stop_all_threads): Enable/disable thread events of all
5086 targets. Move a debug message denoting the end of the function
5087 into the SCOPED_EXIT block.
5088
5089 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5090
5091 * process-stratum-target.h: Include <set>.
5092 (all_non_exited_process_targets, switch_to_target_no_thread): New
5093 function declarations.
5094 * process-stratum-target.c (all_non_exited_process_targets)
5095 (switch_to_target_no_thread): New function implementations.
5096
5097 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5098
5099 * infrun.c (handle_inferior_event): Extract out a piece of code
5100 into...
5101 (mark_non_executing_threads): ...this new function.
5102
5103 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5104
5105 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5106 use.
5107
5108 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5109
5110 * regcache.c (regcache_read_pc_protected): New function
5111 implementation that returns 0 if the PC cannot read via
5112 'regcache_read_pc'.
5113 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5114 instead of 'regcache_read_pc'.
5115 (keep_going_pass_signal): Ditto.
5116
5117 2020-05-13 Tom Tromey <tromey@adacore.com>
5118
5119 * ada-lang.c (align_value): Remove.
5120 (ada_template_to_fixed_record_type_1): Use align_up.
5121
5122 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5123
5124 * async-event.c: Update the copyright year.
5125 * async-event.h: Update the copyright year.
5126
5127 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5128
5129 * objfiles.h (is_addr_in_objfile,
5130 shared_objfile_contains_address_p): Return bool.
5131 * objfile.c (is_addr_in_objfile,
5132 shared_objfile_contains_address_p): Return bool.
5133
5134 2020-05-11 Tom Tromey <tromey@adacore.com>
5135
5136 * cli/cli-cmds.c (info_command): Restore.
5137 (_initialize_cli_cmds): Use add_prefix_command for "info".
5138 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5139
5140 2020-05-11 Tom Tromey <tromey@adacore.com>
5141
5142 * ada-lang.c (ada_value_primitive_field): Now public.
5143 * ada-lang.h (ada_value_primitive_field): Declare.
5144 * ada-valprint.c (print_field_values): Use
5145 ada_value_primitive_field for wrapper fields.
5146
5147 2020-05-11 Tom de Vries <tdevries@suse.de>
5148
5149 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5150 MODULE_DOMAIN.
5151
5152 2020-05-11 Tom de Vries <tdevries@suse.de>
5153
5154 PR symtab/25941
5155 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5156 with length 0, if not gdb-produced.
5157 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5158
5159 2020-05-09 Tom de Vries <tdevries@suse.de>
5160
5161 PR gdb/25955
5162 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5163 calculation.
5164
5165 2020-05-09 Tom Tromey <tom@tromey.com>
5166
5167 * top.c (server_command): Now bool.
5168 * top.h (server_command): Now bool.
5169
5170 2020-05-08 Tom Tromey <tromey@adacore.com>
5171
5172 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5173 already being processed.
5174
5175 2020-05-08 Tom Tromey <tom@tromey.com>
5176
5177 * printcmd.c (struct display) <next>: Remove.
5178 <display>: New constructor.
5179 <exp_string>: Now a std::string.
5180 <enabled_p>: Now a bool.
5181 (display_number): Move definition earlier.
5182 (displays): Rename from display_chain. Now a std::vector.
5183 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5184 (display_command): Update.
5185 (do_one_display, disable_display)
5186 (enable_disable_display_command, do_enable_disable_display):
5187 Update.
5188 (free_display): Remove.
5189 (clear_displays): Rewrite.
5190 (delete_display): Update.
5191 (map_display_numbers): Use function_view. Remove "data"
5192 parameter. Update.
5193 (do_delete_display): Remove.
5194 (undisplay_command): Update.
5195 (do_one_display, do_displays, disable_display)
5196 (info_display_command): Update.
5197 (do_enable_disable_display): Remove.
5198 (enable_disable_display_command)
5199 (clear_dangling_display_expressions): Update.
5200
5201 2020-05-08 Tom Tromey <tom@tromey.com>
5202
5203 * symtab.c (set_symbol_cache_size)
5204 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5205 (maintenance_print_symbol_cache_statistics): Update.
5206 * symmisc.c (print_symbol_bcache_statistics)
5207 (print_objfile_statistics, maintenance_print_objfiles)
5208 (maintenance_info_symtabs, maintenance_check_symtabs)
5209 (maintenance_expand_symtabs, maintenance_info_line_tables):
5210 Update.
5211 * symfile-debug.c (set_debug_symfile): Update.
5212 * source.c (forget_cached_source_info): Update.
5213 * python/python.c (gdbpy_progspaces): Update.
5214 * psymtab.c (maintenance_info_psymtabs): Update.
5215 * probe.c (parse_probes): Update.
5216 * linespec.c (iterate_over_all_matching_symtabs)
5217 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5218 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5219 * exec.c (exec_target::close): Update.
5220 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5221 * breakpoint.c (print_one_breakpoint_location)
5222 (create_longjmp_master_breakpoint)
5223 (create_std_terminate_master_breakpoint): Update.
5224 * progspace.c (program_spaces): Now a std::vector.
5225 (maybe_new_address_space): Update.
5226 (add_program_space): Remove.
5227 (program_space::program_space): Update.
5228 (remove_program_space): Update.
5229 (number_of_program_spaces): Remove.
5230 (print_program_space, update_address_spaces): Update.
5231 * progspace.h (program_spaces): Change type.
5232 (ALL_PSPACES): Remove.
5233 (number_of_program_spaces): Don't declare.
5234 (struct program_space) <next>: Remove.
5235
5236 2020-05-08 Tom Tromey <tom@tromey.com>
5237
5238 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5239 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5240 (enable_break): Update.
5241 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5242 (frv_fdpic_find_canonical_descriptor): Update.
5243 (frv_fetch_objfile_link_map): Update.
5244 * progspace.c (program_space::free_all_objfiles): Update.
5245 (program_space::solibs): New method.
5246 * progspace.h (struct program_space) <solibs>: New method.
5247 * solist.h (master_so_list): Don't declare.
5248 (ALL_SO_LIBS): Remove.
5249 * solib.h (so_list_head): Remove.
5250 (update_solib_list): Update comment.
5251 * solib.c (master_so_list): Remove.
5252 (solib_used, update_solib_list, solib_add)
5253 (info_sharedlibrary_command, clear_solib)
5254 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5255
5256 2020-05-08 Tom Tromey <tom@tromey.com>
5257
5258 * extension.c (extension_languages): Now a std::array.
5259 (ALL_EXTENSION_LANGUAGES): Remove.
5260 (get_ext_lang_defn, get_ext_lang_of_file)
5261 (eval_ext_lang_from_control_command): Update.
5262 (finish_ext_lang_initialization)
5263 (auto_load_ext_lang_scripts_for_objfile)
5264 (ext_lang_type_printers::ext_lang_type_printers)
5265 (apply_ext_lang_type_printers)
5266 (ext_lang_type_printers::~ext_lang_type_printers)
5267 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5268 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5269 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5270 (get_matching_xmethod_workers, ext_lang_colorize)
5271 (ext_lang_before_prompt): Update.
5272 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5273
5274 2020-05-08 Tom Tromey <tom@tromey.com>
5275
5276 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5277 overload.
5278 <swap_string, m_string>: Remove.
5279 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5280 Update.
5281 * stabsread.c (define_symbol, read_type): Update.
5282 * linespec.c (find_linespec_symbols): Update.
5283 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5284 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5285 * dbxread.c (read_dbx_symtab): Update.
5286 * cp-support.h (cp_canonicalize_string_full)
5287 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5288 Return unique_xmalloc_ptr.
5289 * cp-support.c (inspect_type): Update.
5290 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5291 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5292 Likewise.
5293 * c-typeprint.c (print_name_maybe_canonical): Update.
5294 * break-catch-throw.c (check_status_exception_catchpoint):
5295 Update.
5296
5297 2020-05-08 Tom de Vries <tdevries@suse.de>
5298
5299 * infrun.c (follow_fork): Copy current_line and current_symtab to
5300 child thread.
5301
5302 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5303
5304 * async-event.c (struct async_signal_handler, struct
5305 async_event_handler): Reformat, remove typedef.
5306
5307 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5308
5309 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5310 access thistype->main_type->dyn_prop_list directly.
5311
5312 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5313
5314 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5315 (remove_dyn_prop): Remove. Update all users to use
5316 type::remove_dyn_prop.
5317 * gdbtypes.c (remove_dyn_prop): Rename to...
5318 (type::remove_dyn_prop): ... this.
5319
5320 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5321
5322 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5323 (add_dyn_prop): Remove. Update all users to use
5324 type::add_dyn_prop.
5325 * gdbtypes.c (add_dyn_prop): Rename to...
5326 (type::add_dyn_prop): ... this.
5327
5328 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5329
5330 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5331 (get_dyn_prop): Remove. Update all users to use
5332 type::dyn_prop.
5333 * gdbtypes.c (get_dyn_prop): Rename to...
5334 (type::dyn_prop): ... this.
5335
5336 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5337
5338 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5339
5340 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5341
5342 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5343 instruction, skip it if it's there.
5344
5345 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5346
5347 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5348
5349 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5350
5351 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5352 * gdbtypes.c (recursive_dump_type): Remove use of
5353 TYPE_INCOMPLETE.
5354
5355 2020-05-03 Tom Tromey <tom@tromey.com>
5356
5357 * breakpoint.c (catch_command, tcatch_command): Remove.
5358 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5359 add_show_prefix_cmd.
5360 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5361 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5362 Remove.
5363 (add_internal_problem_command): Use add_basic_prefix_cmd,
5364 add_show_prefix_cmd.
5365 * mips-tdep.c (set_mipsfpu_command): Remove.
5366 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5367 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5368 (_initialize_index_cache): Use add_basic_prefix_cmd.
5369 * memattr.c (dummy_cmd): Remove.
5370 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5371 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5372 (_initialize_tui_win): Use add_basic_prefix_cmd,
5373 add_show_prefix_cmd.
5374 * cli/cli-logging.c (set_logging_command): Remove.
5375 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5376 add_show_prefix_cmd.
5377 (show_logging_command): Remove.
5378 * target.c (target_command): Remove.
5379 (add_target): Use add_basic_prefix_cmd.
5380
5381 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5382
5383 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5384
5385 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5386
5387 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5388 info_command.
5389
5390 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5391
5392 * nbsd-nat.c (nbsd_enable_proc_events)
5393 (nbsd_nat_target::post_startup_inferior): Add.
5394 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5395 (nbsd_nat_target::update_thread_list): Rewrite.
5396 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5397 "PTRACE_LWP_CREATE".
5398 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5399
5400 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5401
5402 * stack.c (_initialize_stack): Remove duplicated creation
5403 of "frame" command and "f" alias.
5404
5405 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5406
5407 PR gdb/18706
5408 * gdbtypes.c (check_typedef): Calculate size of array of
5409 stubbed type.
5410
5411 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5412
5413 PR gdb/15559
5414 * i386-tdep.c (i386_push_dummy_call): Call
5415 i386_thiscall_push_dummy_call.
5416 (i386_thiscall_push_dummy_call): New function.
5417 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5418 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5419 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5420
5421 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5422
5423 * gdbarch.sh (do_read): Add shellcheck disable directive for
5424 warning SC2162.
5425
5426 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5427
5428 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5429 "referenced but not assigned" warning.
5430
5431 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5432
5433 * gdbarch.sh: Remove code that sets fallbackdefault.
5434
5435 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5436
5437 * gdbarch.sh: Use shell operators && and || instead of
5438 -a and -o.
5439
5440 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5441
5442 * gdbarch.sh: Use $(...) instead of `...`.
5443
5444 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5445
5446 * gdbarch.sh: Use double quotes around variables.
5447
5448 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5449
5450 * gdbarch.sh: Use %s with printf, instead of variables in the
5451 format string.
5452
5453 2020-04-29 Tom Tromey <tromey@adacore.com>
5454
5455 PR ada/25875:
5456 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5457 type fields here.
5458 (read_enumeration_type): Call
5459 update_enumeration_type_from_children later. Update comments.
5460 (process_enumeration_scope): Don't create type fields.
5461
5462 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5463
5464 * nbsd-tdep.c: Include "xml-syscall.h".
5465 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5466
5467 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5468
5469 * nbsd-nat.c: Include "sys/wait.h".
5470 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5471 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5472 (nbsd_nat_target::remove_exec_catchpoint)
5473 (nbsd_nat_target::set_syscall_catchpoint): Add.
5474 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5475 (nbsd_nat_target::insert_exec_catchpoint)
5476 (nbsd_nat_target::remove_exec_catchpoint)
5477 (nbsd_nat_target::set_syscall_catchpoint): Add.
5478 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5479 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5480 `nbsd_get_syscall_number'.
5481
5482 2020-04-29 Tom Tromey <tom@tromey.com>
5483
5484 * stack.c (print_block_frame_labels): Remove.
5485
5486 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5487
5488 PR gdb/17320
5489 * ada-valprint.c (val_print_packed_array_elements): Move array
5490 end bracket to new line.
5491 (ada_val_print_string): Remove extra spaces before first array
5492 element.
5493 * c-valprint.c (c_value_print_array): Likewise.
5494 * m2-valprint.c (m2_print_array_contents): Likewise.
5495 (m2_value_print_inner): Likewise.
5496 * p-valprint.c (pascal_value_print_inner): Likewise.
5497 * valprint.c (generic_val_print_array): Likewise.
5498 (value_print_array_elements): Move first array element and array
5499 end bracket to new line.
5500
5501 2020-04-29 Tom de Vries <tdevries@suse.de>
5502
5503 PR symtab/25889
5504 * linespec.c (find_method): Fix ix calculation.
5505
5506 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5507
5508 * syscalls/update-netbsd.sh: New file.
5509 * syscalls/netbsd.xml: Regenerate.
5510 * data-directory/Makefile.in: Register `netbsd.xml' in
5511 `SYSCALLS_FILES'.
5512
5513 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5514
5515 * syscalls/update-freebsd.sh: Add double quotes.
5516
5517 2020-04-28 Tom Tromey <tom@tromey.com>
5518
5519 * NEWS: Update.
5520 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5521 (cmdpy_init): Allow class_tui.
5522
5523 2020-04-28 Mark Williams <mark@myosotissp.com>
5524
5525 PR gdb/24480
5526 * dwarf2read.c: Add missing assingments to list_in_scope when
5527 start_symtab was already called.
5528
5529 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5530
5531 PR gdb/25881
5532 * dwarf2/read.c (offset_map_type): Use
5533 gdb:hash_enum<sect_offset> as hash function.
5534
5535 2020-04-28 Tom de Vries <tdevries@suse.de>
5536
5537 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5538 with DW_AT_signature.
5539
5540 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5541
5542 * configure.ac: Remove check for fs_base/gs_base in
5543 user_regs_struct.
5544 * configure: Re-generate.
5545 * config.in: Re-generate.
5546 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5547 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5548 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5549
5550 2020-04-27 Luis Machado <luis.machado@linaro.org>
5551
5552 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5553 problematic inline frame unwinding situation.
5554 * frame.c (frame_id_computed_p): New function.
5555 * frame.h (frame_id_computed_p): New prototype.
5556
5557 2020-04-26 Tom Tromey <tom@tromey.com>
5558
5559 * command.h (enum command_class) <class_pseudo>: Remove.
5560
5561 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5562
5563 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5564 and whitespace.
5565
5566 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5567
5568 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5569 `PT_GET_PROCESS_STATE' block.
5570
5571 2020-04-24 Tom Tromey <tom@tromey.com>
5572
5573 * symtab.h (symbol_get_demangled_name): Don't declare.
5574 * symtab.c (symbol_get_demangled_name): Remove.
5575 (general_symbol_info::natural_name)
5576 (general_symbol_info::demangled_name): Update.
5577
5578 2020-04-24 Tom Tromey <tom@tromey.com>
5579
5580 PR rust/25025:
5581 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5582
5583 2020-04-24 Tom Tromey <tom@tromey.com>
5584
5585 PR symtab/12707:
5586 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5587 exists.
5588 (new_symbol): Likewise.
5589 * compile/compile-object-load.c (get_out_value_type): Use
5590 symbol_matches_search_name.
5591
5592 2020-04-24 Tom Tromey <tom@tromey.com>
5593
5594 * dwarf2/read.c (add_partial_symbol): Do not call
5595 compute_and_set_names.
5596
5597 2020-04-24 Tom Tromey <tom@tromey.com>
5598
5599 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5600 overload.
5601
5602 2020-04-24 Tom Tromey <tom@tromey.com>
5603
5604 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5605 (add_psymbol_to_list): New overload. Make old overload call new
5606 one.
5607 * psympriv.h (add_psymbol_to_list): New overload.
5608
5609 2020-04-24 Tom Tromey <tom@tromey.com>
5610
5611 * dwarf2/read.c (partial_die_info::read) <case
5612 DW_AT_linkage_name>: Use value_as_string.
5613 (dwarf2_string_attr): Use value_as_string.
5614 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5615 method.
5616 * dwarf2/attribute.c (attribute::value_as_string): New method.
5617
5618 2020-04-24 Tom Tromey <tom@tromey.com>
5619
5620 * symtab.c (general_symbol_info::natural_name)
5621 (general_symbol_info::demangled_name): Check for language_rust.
5622
5623 2020-04-24 Tom Tromey <tom@tromey.com>
5624
5625 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5626 (dwarf2_physname): ... from here.
5627 (partial_die_info::read): Add Rust "{" hack.
5628
5629 2020-04-24 Tom Tromey <tom@tromey.com>
5630
5631 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5632 method.
5633 (symbol_set_demangled_name): Don't declare.
5634 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5635 symbol_set_demangled_name.
5636 (general_symbol_info::set_language)
5637 (general_symbol_info::compute_and_set_names): Update.
5638 * minsyms.c (minimal_symbol_reader::install): Update.
5639 * dwarf2/read.c (new_symbol): Update.
5640
5641 2020-04-24 Tom Tromey <tromey@adacore.com>
5642
5643 PR python/23662:
5644 * python/py-type.c (convert_field): Handle
5645 FIELD_LOC_KIND_DWARF_BLOCK.
5646 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5647 (typy_get_dynamic): Nw function.
5648 (type_object_getset): Add "dynamic".
5649 * NEWS: Add entry.
5650
5651 2020-04-24 Tom Tromey <tromey@adacore.com>
5652
5653 * ada-typeprint.c (print_choices, print_variant_part)
5654 (print_record_field_types_dynamic): New functions.
5655 (print_record_field_types): Use print_record_field_types_dynamic.
5656
5657 2020-04-24 Tom Tromey <tromey@adacore.com>
5658
5659 * dwarf2/read.c (handle_data_member_location): New overload.
5660 (dwarf2_add_field): Use it.
5661 (decode_locdesc): Add "computed" parameter. Update comment.
5662 * gdbtypes.c (is_dynamic_type_internal): Also look for
5663 FIELD_LOC_KIND_DWARF_BLOCK.
5664 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5665 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5666 virtual base classes.
5667 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5668 FIELD_LOC_KIND_DWARF_BLOCK.
5669
5670 2020-04-24 Tom Tromey <tromey@adacore.com>
5671
5672 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5673 * gdbtypes.c (is_dynamic_type_internal): Check
5674 TYPE_HAS_DYNAMIC_LENGTH.
5675 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5676 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5677 New macros.
5678 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5679 constant.
5680
5681 2020-04-24 Tom Tromey <tromey@adacore.com>
5682
5683 * dwarf2/read.c (struct variant_field): Rewrite.
5684 (struct variant_part_builder): New.
5685 (struct nextfield): Remove "variant" field. Add "offset".
5686 (struct field_info): Add "current_variant_part" and
5687 "variant_parts".
5688 (alloc_discriminant_info): Remove.
5689 (alloc_rust_variant): New function.
5690 (quirk_rust_enum): Update.
5691 (dwarf2_add_field): Set "offset" member. Don't handle
5692 DW_TAG_variant_part.
5693 (offset_map_type): New typedef.
5694 (convert_variant_range, create_one_variant)
5695 (create_one_variant_part, create_variant_parts)
5696 (add_variant_property): New functions.
5697 (dwarf2_attach_fields_to_type): Call add_variant_property.
5698 (read_structure_type): Don't handle DW_TAG_variant_part.
5699 (handle_variant_part, handle_variant): New functions.
5700 (handle_struct_member_die): Use them.
5701 (process_structure_scope): Don't handle variant parts.
5702 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5703 (struct discriminant_info): Remove.
5704 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5705 (struct main_type) <flag_discriminated_union>: Remove.
5706 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5707 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5708 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5709 Update.
5710 * valops.c (value_union_variant): Remove.
5711 * value.h (value_union_variant): Don't declare.
5712
5713 2020-04-24 Tom Tromey <tromey@adacore.com>
5714
5715 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5716 (ada_value_primitive_packed_val): Update.
5717 * ada-valprint.c (ada_value_print_1): Update.
5718 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5719 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5720 just an address. Use evaluate_for_locexpr_baton.
5721 (dwarf2_evaluate_property): Update.
5722 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5723 array_view.
5724 * findvar.c (default_read_var_value): Update.
5725 * gdbtypes.c (compute_variant_fields_inner)
5726 (resolve_dynamic_type_internal): Update.
5727 (resolve_dynamic_type): Change type of valaddr parameter.
5728 * gdbtypes.h (resolve_dynamic_type): Update.
5729 * valarith.c (value_subscripted_rvalue): Update.
5730 * value.c (value_from_contents_and_address): Update.
5731
5732 2020-04-24 Tom Tromey <tromey@adacore.com>
5733
5734 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5735 "push_initial_value" parameter.
5736 (dwarf2_evaluate_property): Likewise.
5737 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5738
5739 2020-04-24 Tom Tromey <tromey@adacore.com>
5740
5741 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5742 (variant::matches, compute_variant_fields_recurse)
5743 (compute_variant_fields_inner, compute_variant_fields): New
5744 functions.
5745 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5746 Use resolved_type after type is made.
5747 (operator==): Add new cases.
5748 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5749 (struct discriminant_range, struct variant, struct variant_part):
5750 New.
5751 (union dynamic_prop_data) <variant_parts, original_type>: New
5752 members.
5753 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5754 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5755 constants.
5756 * value.c (unpack_bits_as_long): Now public.
5757 * value.h (unpack_bits_as_long): Declare.
5758
5759 2020-04-24 Tom Tromey <tromey@adacore.com>
5760
5761 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5762 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5763
5764 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5765
5766 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5767
5768 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5769
5770 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5771 (remove_fork_catchpoint, post_startup_inferior)
5772 (post_attach): Move...
5773 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5774 (remove_fork_catchpoint, post_startup_inferior)
5775 (post_attach): ...here.
5776 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5777 (remove_fork_catchpoint, post_startup_inferior)
5778 (post_attach): Move...
5779 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5780 (remove_fork_catchpoint, post_startup_inferior)
5781 (post_attach): ...here.
5782
5783 2020-04-24 Tom Tromey <tromey@adacore.com>
5784
5785 * nat/windows-nat.h (struct windows_thread_info)
5786 <pc_adjusted>: New member.
5787 * windows-nat.c (windows_fetch_one_register): Check
5788 pc_adjusted.
5789 (windows_nat_target::get_windows_debug_event)
5790 (windows_nat_target::wait): Set pc_adjusted.
5791
5792 2020-04-24 Tom de Vries <tdevries@suse.de>
5793
5794 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5795 Run gdb-add-index inside temp dir.
5796
5797 2020-04-23 Tom Tromey <tromey@adacore.com>
5798
5799 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5800 in loop.
5801
5802 2020-04-23 Luis Machado <luis.machado@linaro.org>
5803
5804 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5805 get_frame_register instead of gdbarch_unwind_pc.
5806
5807 2020-04-23 Tom de Vries <tdevries@suse.de>
5808
5809 * symtab.c (lookup_global_symbol): Prefer def over decl.
5810
5811 2020-04-23 Tom de Vries <tdevries@suse.de>
5812
5813 PR symtab/25807
5814 * block.c (best_symbol, better_symbol): Promote to external.
5815 * block.h (best_symbol, better_symbol): Declare.
5816 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5817 decl.
5818
5819 2020-04-23 Tom Tromey <tromey@adacore.com>
5820
5821 PR ada/25837:
5822 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5823 "const char *", not a "const std::string &".
5824 <name_and_matcher::operator==>: Update.
5825 * unittests/lookup_name_info-selftests.c: Change type of
5826 "result".
5827
5828 2020-04-23 Tom Tromey <tom@tromey.com>
5829
5830 * inferior.h (iterate_over_inferiors): Don't declare.
5831 * inferior.c (iterate_over_inferiors): Remove.
5832 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5833 Remove.
5834 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5835 use iterate_over_inferiors.
5836 (darwin_resume_inferior_it)
5837 (struct resume_inferior_threads_param)
5838 (darwin_resume_inferior_threads_it): Remove.
5839 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5840
5841 2020-04-23 Tom de Vries <tdevries@suse.de>
5842
5843 * blockframe.c (find_pc_partial_function): Use
5844 find_pc_sect_compunit_symtab rather than
5845 objfile->sf->qf->find_pc_sect_compunit_symtab.
5846
5847 2020-04-22 Tom de Vries <tdevries@suse.de>
5848
5849 PR symtab/25764
5850 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5851 in psymtabs.
5852
5853 2020-04-22 Tom de Vries <tdevries@suse.de>
5854
5855 PR symtab/25801
5856 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5857 symtabs.
5858
5859 2020-04-22 Tom de Vries <tdevries@suse.de>
5860
5861 PR symtab/25700
5862 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5863 CU if already created.
5864
5865 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5866
5867 * infrun.c (displaced_step_fixup): Switch to the event_thread
5868 before calling displaced_step_restore, not after.
5869
5870 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5871
5872 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5873 its inferior is not recorded by us.
5874 (record_btrace_target_open): Replace call to
5875 all_non_exited_threads () with call to current_inferior
5876 ()->non_exited_threads ().
5877 (record_btrace_target::stop_recording): Likewise.
5878 (record_btrace_target::close): Likewise.
5879 (record_btrace_target::wait): Likewise.
5880 (record_btrace_target::record_stop_replaying): Likewise.
5881
5882 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5883
5884 * btrace.c (btrace_enable): Throw an error on double enables and
5885 when enabling recording fails.
5886 (btrace_disable): Throw an error if the thread is not recorded.
5887
5888 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5889
5890 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5891 request if we do not have a thread_info.
5892
5893 2020-04-21 Tom de Vries <tdevries@suse.de>
5894
5895 PR gdb/25471
5896 * thread.c
5897 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5898 exception in get_frame_id.
5899
5900 2020-04-20 Tom Tromey <tromey@adacore.com>
5901
5902 * python/python.c (struct gdbpy_event): Mark move constructor as
5903 noexcept.
5904 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5905 constructor as noexcept.
5906 * completer.h (struct completion_result): Mark move constructor as
5907 noexcept.
5908 * completer.c (completion_result::completion_result): Use
5909 initialization style. Don't call reset_match_list.
5910
5911 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5912
5913 * MAINTAINERS (Write After Approval): Add myself.
5914
5915 2020-04-18 Tom Tromey <tom@tromey.com>
5916
5917 * windows-tdep.c (init_w32_command_list)
5918 (w32_prefix_command_valid): Restore.
5919 (_initialize_windows_tdep): Call init_w32_command_list.
5920
5921 2020-04-18 Tom Tromey <tom@tromey.com>
5922
5923 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5924 * value.c (value_fn_field): Update.
5925 * valops.c (find_function_in_inferior)
5926 (value_allocate_space_in_inferior): Update.
5927 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5928 Update.
5929 * tui/tui-source.c (tui_source_window::set_contents): Update.
5930 * symtab.c (lookup_global_or_static_symbol)
5931 (find_function_start_sal_1, skip_prologue_sal)
5932 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5933 * symmisc.c (dump_msymbols, dump_symtab_1)
5934 (maintenance_print_one_line_table): Update.
5935 * symfile.c (init_entry_point_info, section_is_mapped)
5936 (list_overlays_command, simple_read_overlay_table)
5937 (simple_overlay_update_1): Update.
5938 * stap-probe.c (handle_stap_probe): Update.
5939 * stabsread.c (dbx_init_float_type, define_symbol)
5940 (read_one_struct_field, read_enum_type, read_range_type): Update.
5941 * source.c (info_line_command): Update.
5942 * python/python.c (gdbpy_source_objfile_script)
5943 (gdbpy_execute_objfile_script): Update.
5944 * python/py-type.c (save_objfile_types): Update.
5945 * python/py-objfile.c (py_free_objfile): Update.
5946 * python/py-inferior.c (python_new_objfile): Update.
5947 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5948 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5949 (maintenance_check_psymtabs): Update.
5950 * printcmd.c (info_address_command): Update.
5951 * objfiles.h (struct objfile) <arch>: New method, from
5952 get_objfile_arch.
5953 (get_objfile_arch): Don't declare.
5954 * objfiles.c (get_objfile_arch): Remove.
5955 (filter_overlapping_sections): Update.
5956 * minsyms.c (msymbol_is_function): Update.
5957 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5958 (output_nondebug_symbol): Update.
5959 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5960 (mdebug_expand_psymtab): Update.
5961 * machoread.c (macho_add_oso_symfile): Update.
5962 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5963 Update.
5964 * linux-fork.c (checkpoint_command): Update.
5965 * linespec.c (convert_linespec_to_sals): Update.
5966 * jit.c (finalize_symtab): Update.
5967 * infrun.c (insert_exception_resume_from_probe): Update.
5968 * ia64-tdep.c (ia64_find_unwind_table): Update.
5969 * hppa-tdep.c (internalize_unwinds): Update.
5970 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5971 Update.
5972 * gcore.c (call_target_sbrk): Update.
5973 * elfread.c (record_minimal_symbol, elf_symtab_read)
5974 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5975 (elf_gnu_ifunc_resolve_by_got): Update.
5976 * dwarf2/read.c (create_addrmap_from_index)
5977 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5978 (read_debug_names_from_section)
5979 (process_psymtab_comp_unit_reader, add_partial_symbol)
5980 (add_partial_subprogram, process_full_comp_unit)
5981 (read_file_scope, read_func_scope, read_lexical_block_scope)
5982 (read_call_site_scope, dwarf2_ranges_read)
5983 (dwarf2_record_block_ranges, dwarf2_add_field)
5984 (mark_common_block_symbol_computed, read_tag_pointer_type)
5985 (read_tag_string_type, dwarf2_init_float_type)
5986 (dwarf2_init_complex_target_type, read_base_type)
5987 (partial_die_info::read, partial_die_info::read)
5988 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5989 (dwarf2_fetch_die_loc_sect_off): Update.
5990 * dwarf2/loc.c (dwarf2_find_location_expression)
5991 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5992 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5993 (dwarf2_loc_desc_get_symbol_read_needs)
5994 (locexpr_describe_location_piece, locexpr_describe_location_1)
5995 (loclist_describe_location): Update.
5996 * dwarf2/index-write.c (write_debug_names): Update.
5997 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5998 * dtrace-probe.c (dtrace_process_dof): Update.
5999 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6000 (process_one_symbol): Update.
6001 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6002 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6003 (coff_read_enum_type): Update.
6004 * cli/cli-cmds.c (edit_command, list_command): Update.
6005 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6006 * breakpoint.c (create_overlay_event_breakpoint)
6007 (create_longjmp_master_breakpoint)
6008 (create_std_terminate_master_breakpoint)
6009 (create_exception_master_breakpoint, get_sal_arch): Update.
6010 * block.c (block_gdbarch): Update.
6011 * annotate.c (annotate_source_line): Update.
6012
6013 2020-04-17 Tom Tromey <tromey@adacore.com>
6014
6015 * auto-load.c (show_auto_load_cmd): Remove.
6016 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6017 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6018 (maintenance_print_arc_command): Remove.
6019 * tui/tui-win.c (tui_command): Remove.
6020 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6021 * tui/tui-layout.c (tui_layout_command): Remove.
6022 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6023 * python/python.c (user_set_python, user_show_python): Remove.
6024 (_initialize_python): Use add_basic_prefix_cmd,
6025 add_show_prefix_cmd.
6026 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6027 (install_gdb_commands): Use add_basic_prefix_cmd,
6028 add_show_prefix_cmd.
6029 (info_guile_command): Remove.
6030 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6031 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6032 add_show_prefix_cmd.
6033 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6034 Remove do_set and do_show parameters.
6035 * cli/cli-style.c (set_style, show_style): Remove.
6036 (_initialize_cli_style): Use add_basic_prefix_cmd,
6037 add_show_prefix_cmd.
6038 (cli_style_option::add_setshow_commands): Remove do_set and
6039 do_show parameters.
6040 (cli_style_option::add_setshow_commands): Use
6041 add_basic_prefix_cmd, add_show_prefix_cmd.
6042 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6043 (set_style_name): Remove.
6044 * cli/cli-dump.c (dump_command, append_command): Remove.
6045 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6046 (tekhex_dump_command, binary_dump_command)
6047 (binary_append_command): Remove.
6048 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6049 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6050 (init_w32_command_list): Remove; move into ...
6051 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6052 * valprint.c (set_print, show_print, set_print_raw)
6053 (show_print_raw): Remove.
6054 (_initialize_valprint): Use add_basic_prefix_cmd,
6055 add_show_prefix_cmd.
6056 * typeprint.c (set_print_type, show_print_type): Remove.
6057 (_initialize_typeprint): Use add_basic_prefix_cmd,
6058 add_show_prefix_cmd.
6059 * record.c (set_record_command, show_record_command): Remove.
6060 (_initialize_record): Use add_basic_prefix_cmd,
6061 add_show_prefix_cmd.
6062 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6063 add_show_prefix_cmd.
6064 (info_command, show_command, set_debug, show_debug): Remove.
6065 * top.h (set_history, show_history): Don't declare.
6066 * top.c (set_history, show_history): Remove.
6067 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6068 (unset_tdesc_cmd): Remove.
6069 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6070 add_show_prefix_cmd.
6071 * symtab.c (info_module_command): Remove.
6072 (_initialize_symtab): Use add_basic_prefix_cmd.
6073 * symfile.c (overlay_command): Remove.
6074 (_initialize_symfile): Use add_basic_prefix_cmd.
6075 * sparc64-tdep.c (info_adi_command): Remove.
6076 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6077 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6078 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6079 add_show_prefix_cmd.
6080 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6081 (_initialize_serial): Use add_basic_prefix_cmd,
6082 add_show_prefix_cmd.
6083 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6084 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6085 add_show_prefix_cmd.
6086 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6087 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6088 add_show_prefix_cmd.
6089 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6090 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6091 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6092 add_show_prefix_cmd.
6093 * remote.c (remote_command, set_remote_cmd): Remove.
6094 (_initialize_remote): Use add_basic_prefix_cmd.
6095 * record-full.c (set_record_full_command)
6096 (show_record_full_command): Remove.
6097 (_initialize_record_full): Use add_basic_prefix_cmd,
6098 add_show_prefix_cmd.
6099 * record-btrace.c (cmd_set_record_btrace)
6100 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6101 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6102 (cmd_show_record_btrace_pt): Remove.
6103 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6104 add_show_prefix_cmd.
6105 * ravenscar-thread.c (set_ravenscar_command)
6106 (show_ravenscar_command): Remove.
6107 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6108 add_show_prefix_cmd.
6109 * mips-tdep.c (show_mips_command, set_mips_command)
6110 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6111 add_show_prefix_cmd.
6112 * maint.c (maintenance_command, maintenance_info_command)
6113 (maintenance_check_command, maintenance_print_command)
6114 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6115 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6116 add_show_prefix_cmd.
6117 (show_per_command_cmd): Remove.
6118 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6119 Remove.
6120 (maintenance_show_test_settings_cmd): Remove.
6121 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6122 add_show_prefix_cmd.
6123 * maint-test-options.c (maintenance_test_options_command):
6124 Remove.
6125 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6126 * macrocmd.c (macro_command): Remove
6127 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6128 * language.c (set_check, show_check): Remove.
6129 (_initialize_language): Use add_basic_prefix_cmd,
6130 add_show_prefix_cmd.
6131 * infcmd.c (unset_command): Remove.
6132 (_initialize_infcmd): Use add_basic_prefix_cmd.
6133 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6134 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6135 add_show_prefix_cmd.
6136 * go32-nat.c (go32_info_dos_command): Remove.
6137 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6138 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6139 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6140 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6141 (_initialize_frame): Use add_basic_prefix_cmd,
6142 add_show_prefix_cmd.
6143 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6144 (_initialize_dcache): Use add_basic_prefix_cmd,
6145 add_show_prefix_cmd.
6146 * cp-support.c (maint_cplus_command): Remove.
6147 (_initialize_cp_support): Use add_basic_prefix_cmd.
6148 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6149 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6150 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6151 add_basic_prefix_cmd, add_show_prefix_cmd.
6152 * breakpoint.c (save_command): Remove.
6153 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6154 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6155 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6156 add_show_prefix_cmd.
6157 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6158 (set_ada_command, show_ada_command): Remove.
6159 (_initialize_ada_language): Use add_basic_prefix_cmd,
6160 add_show_prefix_cmd.
6161 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6162
6163 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6164
6165 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6166 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6167
6168 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6169
6170 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6171 warning messages.
6172
6173 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6174
6175 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6176 import table is not at beginning of .idata section.
6177
6178 2020-04-16 Pedro Alves <palves@redhat.com>
6179
6180 * inferior.c (delete_inferior): Use delete operator directly
6181 instead of delete_program_space.
6182 * progspace.c (add_program_space): New, factored out from
6183 program_space::program_space.
6184 (remove_program_space): New, factored out from
6185 delete_program_space.
6186 (program_space::program_space): Remove intro comment. Rewrite.
6187 (program_space::~program_space): Remove intro comment. Call
6188 remove_program_space.
6189 (delete_program_space): Delete.
6190 * progspace.h (program_space::program_space): Make explicit. Move
6191 intro comment here, adjusted.
6192 (program_space::~program_space): Move intro comment here,
6193 adjusted.
6194 (delete_program_space): Remove.
6195
6196 2020-04-16 Tom Tromey <tromey@adacore.com>
6197
6198 * windows-nat.c (windows_nat::handle_access_violation): New
6199 function.
6200 * nat/windows-nat.h (handle_access_violation): Declare.
6201 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6202 windows-nat.c. Call handle_access_violation.
6203
6204 2020-04-16 Tom de Vries <tdevries@suse.de>
6205
6206 PR symtab/25791
6207 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6208 CUs without psymtab.
6209
6210 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6211
6212 * python/python.c (do_start_initialization): Don't call
6213 PyEval_InitThreads for Python 3.9 and beyond.
6214
6215 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6216
6217 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6218 thread functions.
6219 (obsd_nat_target::wait): Likewise.
6220
6221 2020-04-15 Tom Tromey <tromey@adacore.com>
6222
6223 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6224 (DEBUG_EXCEPT): Use debug_printf.
6225
6226 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6227
6228 * completer.c (class completion_tracker::completion_hash_entry)
6229 <hash_name>: New member function.
6230 (completion_tracker::discard_completions): New callback to hash a
6231 completion_hash_entry, pass this to htab_create_alloc.
6232
6233 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6234
6235 * windows-nat.c (windows_make_so): Warn rather than stopping with
6236 an error if realpath() fails.
6237
6238 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6239
6240 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6241 (nbsd_nat_target::info_proc): Add do_status.
6242
6243 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6244 Tom de Vries <tdevries@suse.de>
6245
6246 PR symtab/25718
6247 * psympriv.h (struct partial_symtab::read_symtab)
6248 (struct partial_symtab::expand_psymtab)
6249 (struct partial_symtab::read_dependencies): Update comments.
6250 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6251 read_symtab for includer.
6252 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6253 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6254 (struct dwarf2_include_psymtab::m_readin): Remove.
6255 (struct dwarf2_include_psymtab::includer): New member function.
6256 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6257
6258 2020-04-14 Tom de Vries <tdevries@suse.de>
6259
6260 PR symtab/25720
6261 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6262 with NULL symbol_matcher and lookup_name.
6263 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6264 and lookup_name.
6265 * dwarf2/read.c (dw2_expand_symtabs_matching)
6266 (dw2_debug_names_expand_symtabs_matching): Same.
6267 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6268 Make lookup_name a pointer. Update comment.
6269 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6270 lookup_name being a pointer.
6271 * symfile.c (expand_symtabs_matching): Same.
6272 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6273 * linespec.c (iterate_over_all_matching_symtabs): Same.
6274
6275 2020-04-13 Tom Tromey <tom@tromey.com>
6276
6277 * run-on-main-thread.c: Update include.
6278 * unittests/main-thread-selftests.c: Update include.
6279 * tui/tui-win.c: Update include.
6280 * tui/tui-io.c: Update include.
6281 * tui/tui-interp.c: Update include.
6282 * tui/tui-hooks.c: Update include.
6283 * top.h: Update include.
6284 * top.c: Update include.
6285 * ser-base.c: Update include.
6286 * remote.c: Update include.
6287 * remote-notif.c: Update include.
6288 * remote-fileio.c: Update include.
6289 * record-full.c: Update include.
6290 * record-btrace.c: Update include.
6291 * python/python.c: Update include.
6292 * posix-hdep.c: Update include.
6293 * mingw-hdep.c: Update include.
6294 * mi/mi-main.c: Update include.
6295 * mi/mi-interp.c: Update include.
6296 * main.c: Update include.
6297 * linux-nat.c: Update include.
6298 * interps.c: Update include.
6299 * infrun.c: Update include.
6300 * inf-loop.c: Update include.
6301 * event-top.c: Update include.
6302 * event-loop.c: Move to ../gdbsupport/.
6303 * event-loop.h: Move to ../gdbsupport/.
6304 * async-event.h: Update include.
6305 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6306
6307 2020-04-13 Tom Tromey <tom@tromey.com>
6308
6309 * tui/tui-win.c: Include async-event.h.
6310 * remote.c: Include async-event.h.
6311 * remote-notif.c: Include async-event.h.
6312 * record-full.c: Include async-event.h.
6313 * record-btrace.c: Include async-event.h.
6314 * infrun.c: Include async-event.h.
6315 * event-top.c: Include async-event.h.
6316 * event-loop.h: Move some declarations to async-event.h.
6317 * event-loop.c: Don't include ser-event.h or top.h. Move some
6318 code to async-event.c.
6319 * async-event.h: New file.
6320 * async-event.c: New file.
6321 * Makefile.in (COMMON_SFILES): Add async-event.c.
6322 (HFILES_NO_SRCDIR): Add async-event.h.
6323
6324 2020-04-13 Tom Tromey <tom@tromey.com>
6325
6326 * utils.c (flush_streams): New function.
6327 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6328
6329 2020-04-13 Tom Tromey <tom@tromey.com>
6330
6331 * event-loop.c (handle_file_event): Use warning, not
6332 printf_unfiltered.
6333
6334 2020-04-13 Tom Tromey <tom@tromey.com>
6335
6336 * event-loop.c: Include <chrono>.
6337
6338 2020-04-13 Tom Tromey <tom@tromey.com>
6339
6340 * gdb_select.h: Move to ../gdbsupport/.
6341 * event-loop.c: Update include path.
6342 * top.c: Update include path.
6343 * ser-base.c: Update include path.
6344 * ui-file.c: Update include path.
6345 * ser-tcp.c: Update include path.
6346 * guile/scm-ports.c: Update include path.
6347 * posix-hdep.c: Update include path.
6348 * ser-unix.c: Update include path.
6349 * gdb_usleep.c: Update include path.
6350 * mingw-hdep.c: Update include path.
6351 * inflow.c: Update include path.
6352 * infrun.c: Update include path.
6353 * event-top.c: Update include path.
6354
6355 2020-04-13 Tom Tromey <tom@tromey.com>
6356
6357 * configure: Rebuild.
6358 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6359
6360 2020-04-13 Tom Tromey <tom@tromey.com>
6361
6362 * event-loop.h (start_event_loop): Don't declare.
6363 * event-loop.c (start_event_loop): Move...
6364 * main.c (start_event_loop): ...here. Now static.
6365
6366 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6367
6368 * MAINTAINERS: Update my email address.
6369
6370 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6371
6372 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6373 IP_ALL.
6374
6375 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6376
6377 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6378 (nbsd_nat_target::info_proc): Add do_cmdline.
6379
6380 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6381
6382 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6383 (nbsd_nat_target::info_proc): Add do_cwd.
6384
6385 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6386
6387 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6388
6389 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6390
6391 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6392 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6393 (nbsd_nat_target::info_proc): New functions.
6394 * nbsd-nat.c (kinfo_get_vmmap): New function.
6395 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6396 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6397 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6398 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6399 functions.
6400 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6401 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6402 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6403 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6404 (KINFO_VME_FLAG_GROWS_DOWN): New.
6405
6406 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6407
6408 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6409 bit shift.
6410
6411 2020-04-10 Tom Tromey <tromey@adacore.com>
6412
6413 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6414
6415 2020-04-10 Tom Tromey <tromey@adacore.com>
6416
6417 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6418 separate debug files.
6419
6420 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6421
6422 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6423 Move to...
6424 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6425 ... here.
6426 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6427 Check for STATUS_WX86_BREAKPOINT.
6428 (windows_nat_target::wait): Same.
6429
6430 2020-04-10 Tom de Vries <tdevries@suse.de>
6431
6432 PR cli/25808
6433 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6434
6435 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6436
6437 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6438 (Write After Approval): Remove Tom de Vries.
6439
6440 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6441
6442 revert partially:
6443 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6444
6445 * buildsym.c (record_line): Fix undefined behavior and preserve
6446 lines at eof.
6447
6448 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6449
6450 * auxv.h (svr4_auxv_parse): New.
6451 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6452 and generic_auxv_parse.
6453 (svr4_auxv_parse): Add.
6454 * obsd-tdep.c: Include "auxv.h".
6455 (obsd_auxv_parse): Remove.
6456 (obsd_init_abi): Remove comment.
6457 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6458 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6459 * nbsd-tdep.c: Include "auxv.h".
6460 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6461
6462 2020-04-08 Tom Tromey <tromey@adacore.com>
6463
6464 * nat/windows-nat.h (last_wait_event): Don't declare.
6465 (wait_for_debug_event): Update comment.
6466 * nat/windows-nat.c (last_wait_event): Now static.
6467
6468 2020-04-08 Tom Tromey <tromey@adacore.com>
6469
6470 * windows-nat.c (wait_for_debug_event): Move to
6471 nat/windows-nat.c.
6472 * nat/windows-nat.h (wait_for_debug_event): Declare.
6473 * nat/windows-nat.c (wait_for_debug_event): Move from
6474 windows-nat.c. No longer static.
6475
6476 2020-04-08 Tom Tromey <tromey@adacore.com>
6477
6478 * windows-nat.c (get_windows_debug_event): Use
6479 fetch_pending_stop.
6480 * nat/windows-nat.h (fetch_pending_stop): Declare.
6481 * nat/windows-nat.c (fetch_pending_stop): New function.
6482
6483 2020-04-08 Tom Tromey <tromey@adacore.com>
6484
6485 * windows-nat.c (windows_continue): Use matching_pending_stop and
6486 continue_last_debug_event.
6487 * nat/windows-nat.h (matching_pending_stop)
6488 (continue_last_debug_event): Declare.
6489 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6490 (matching_pending_stop, continue_last_debug_event): New
6491 functions.
6492
6493 2020-04-08 Tom Tromey <tromey@adacore.com>
6494
6495 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6496 (handle_exception_result): Move to nat/windows-nat.h.
6497 (DEBUG_EXCEPTION_SIMPLE): Remove.
6498 (windows_nat::handle_ms_vc_exception): New function.
6499 (handle_exception): Move to nat/windows-nat.c.
6500 (get_windows_debug_event): Update.
6501 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6502 nat/windows-nat.c.
6503 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6504 (handle_exception_result): Move from windows-nat.c.
6505 (handle_exception): Declare.
6506 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6507 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6508 windows-nat.c.
6509
6510 2020-04-08 Tom Tromey <tromey@adacore.com>
6511
6512 * windows-nat.c (exception_count, event_count): Remove.
6513 (handle_exception, get_windows_debug_event)
6514 (do_initial_windows_stuff): Update.
6515
6516 2020-04-08 Tom Tromey <tromey@adacore.com>
6517
6518 * windows-nat.c (windows_nat::handle_load_dll)
6519 (windows_nat::handle_unload_dll): Rename. No longer static.
6520 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6521 Declare.
6522
6523 2020-04-08 Tom Tromey <tromey@adacore.com>
6524
6525 * complaints.h (stop_whining): Declare at top-level.
6526 (complaint): Don't declare stop_whining.
6527
6528 2020-04-08 Tom Tromey <tromey@adacore.com>
6529
6530 * windows-nat.c (windows_nat::handle_output_debug_string):
6531 Rename. No longer static.
6532 * nat/windows-nat.h (handle_output_debug_string): Declare.
6533
6534 2020-04-08 Tom Tromey <tromey@adacore.com>
6535
6536 * windows-nat.c (current_process_handle, current_process_id)
6537 (main_thread_id, last_sig, current_event, last_wait_event)
6538 (current_windows_thread, desired_stop_thread_id, pending_stops)
6539 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6540 (display_selectors, fake_create_process)
6541 (get_windows_debug_event): Update.
6542 * nat/windows-nat.h (current_process_handle, current_process_id)
6543 (main_thread_id, last_sig, current_event, last_wait_event)
6544 (current_windows_thread, desired_stop_thread_id, pending_stops)
6545 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6546 * nat/windows-nat.c (current_process_handle, current_process_id)
6547 (main_thread_id, last_sig, current_event, last_wait_event)
6548 (current_windows_thread, desired_stop_thread_id, pending_stops)
6549 (siginfo_er): New globals. Move from windows-nat.c.
6550
6551 2020-04-08 Tom Tromey <tromey@adacore.com>
6552
6553 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6554 (handle_load_dll): Update.
6555 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6556
6557 2020-04-08 Tom Tromey <tromey@adacore.com>
6558
6559 * windows-nat.c (enum thread_disposition_type): Move to
6560 nat/windows-nat.h.
6561 (windows_nat::thread_rec): Rename from thread_rec. No longer
6562 static.
6563 (windows_add_thread, windows_nat_target::fetch_registers)
6564 (windows_nat_target::store_registers, handle_exception)
6565 (windows_nat_target::resume, get_windows_debug_event)
6566 (windows_nat_target::get_tib_address)
6567 (windows_nat_target::thread_name)
6568 (windows_nat_target::thread_alive): Update.
6569 * nat/windows-nat.h (enum thread_disposition_type): Move from
6570 windows-nat.c.
6571 (thread_rec): Declare.
6572
6573 2020-04-08 Tom Tromey <tromey@adacore.com>
6574
6575 * windows-nat.c: Add "using namespace".
6576 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6577 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6578
6579 2020-04-08 Tom Tromey <tromey@adacore.com>
6580
6581 * nat/windows-nat.h (struct windows_thread_info): Declare
6582 destructor.
6583 * nat/windows-nat.c (~windows_thread_info): New.
6584
6585 2020-04-08 Tom Tromey <tromey@adacore.com>
6586
6587 PR gdb/22992
6588 * windows-nat.c (current_event): Update comment.
6589 (last_wait_event, desired_stop_thread_id): New globals.
6590 (struct pending_stop): New.
6591 (pending_stops): New global.
6592 (windows_nat_target) <stopped_by_sw_breakpoint>
6593 <supports_stopped_by_sw_breakpoint>: New methods.
6594 (windows_fetch_one_register): Add assertions. Adjust PC.
6595 (windows_continue): Handle pending stops. Suspend other threads
6596 when stepping. Use last_wait_event
6597 (wait_for_debug_event): New function.
6598 (get_windows_debug_event): Use wait_for_debug_event. Handle
6599 pending stops. Queue spurious stops.
6600 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6601 (windows_nat_target::kill): Use wait_for_debug_event.
6602 * nat/windows-nat.h (struct windows_thread_info)
6603 <stopped_at_software_breakpoint>: New field.
6604 * nat/windows-nat.c (windows_thread_info::resume): Clear
6605 stopped_at_software_breakpoint.
6606
6607 2020-04-08 Tom Tromey <tromey@adacore.com>
6608
6609 * windows-nat.c (enum thread_disposition_type): New.
6610 (thread_rec): Replace "get_context" parameter with "disposition";
6611 change type.
6612 (windows_add_thread, windows_nat_target::fetch_registers)
6613 (windows_nat_target::store_registers, handle_exception)
6614 (windows_nat_target::resume, get_windows_debug_event)
6615 (windows_nat_target::get_tib_address)
6616 (windows_nat_target::thread_name)
6617 (windows_nat_target::thread_alive): Update.
6618
6619 2020-04-08 Tom Tromey <tromey@adacore.com>
6620
6621 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6622 (windows_continue): Use windows_continue::resume.
6623 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6624 resume>: Declare new methods.
6625 * nat/windows-nat.c: New file.
6626 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6627
6628 2020-04-08 Tom Tromey <tromey@adacore.com>
6629
6630 * windows-nat.c (windows_add_thread, windows_delete_thread)
6631 (windows_nat_target::fetch_registers)
6632 (windows_nat_target::store_registers, fake_create_process)
6633 (windows_nat_target::resume, windows_nat_target::resume)
6634 (get_windows_debug_event, windows_nat_target::wait)
6635 (windows_nat_target::pid_to_str)
6636 (windows_nat_target::get_tib_address)
6637 (windows_nat_target::get_ada_task_ptid)
6638 (windows_nat_target::thread_name)
6639 (windows_nat_target::thread_alive): Use lwp, not tid.
6640
6641 2020-04-08 Tom Tromey <tromey@adacore.com>
6642
6643 * windows-nat.c (handle_exception)
6644 (windows_nat_target::thread_name): Update.
6645 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6646 <name>: Now unique_xmalloc_ptr.
6647
6648 2020-04-08 Tom Tromey <tromey@adacore.com>
6649
6650 * windows-nat.c (thread_rec)
6651 (windows_nat_target::fetch_registers): Update.
6652 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6653 Update comment.
6654 <debug_registers_changed, reload_context>: Now bool.
6655
6656 2020-04-08 Tom Tromey <tromey@adacore.com>
6657
6658 * windows-nat.c (windows_add_thread): Use new.
6659 (windows_init_thread_list, windows_delete_thread): Use delete.
6660 (get_windows_debug_event): Update.
6661 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6662 destructor, and initializers.
6663
6664 2020-04-08 Tom Tromey <tromey@adacore.com>
6665
6666 * windows-nat.c (struct windows_thread_info): Remove.
6667 * nat/windows-nat.h: New file.
6668
6669 2020-04-08 Tom Tromey <tromey@adacore.com>
6670
6671 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6672 (thread_rec, windows_add_thread, windows_delete_thread)
6673 (windows_continue): Update.
6674
6675 2020-04-08 Tom Tromey <tromey@adacore.com>
6676
6677 * windows-nat.c (struct windows_thread_info): Remove typedef.
6678 (thread_head): Remove.
6679 (thread_list): New global.
6680 (thread_rec, windows_add_thread, windows_init_thread_list)
6681 (windows_delete_thread, windows_continue): Update.
6682
6683 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6684
6685 * windows-tdep.h (windows_init_abi): Add comment.
6686 (cygwin_init_abi): New declaration.
6687 * windows-tdep.c: Split signal enumeration in two, one for
6688 Windows and one for Cygwin.
6689 (windows_gdb_signal_to_target): Only deal with signal of the
6690 Windows OS ABI.
6691 (cygwin_gdb_signal_to_target): New function.
6692 (windows_init_abi): Rename to windows_init_abi_common, don't set
6693 gdb_signal_to_target gdbarch method. Add new new function with
6694 this name.
6695 (cygwin_init_abi): New function.
6696 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6697 comment. Don't call windows_init_abi.
6698 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6699 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6700 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6701 i386_windows_init_abi_common, don't call windows_init_abi. Add
6702 a new function of this name.
6703 (i386_cygwin_init_abi): New function.
6704 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6705 OS ABI Cygwin.
6706
6707 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6708
6709 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6710 parameter.c.
6711 (dwarf2_read_gdb_index): Update.
6712
6713 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6714
6715 * nbsd-tdep.c: Include "objfiles.h".
6716 (nbsd_skip_solib_resolver): New.
6717 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6718
6719 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6720
6721 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6722 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6723 with DW_LLE_base_addressx are being emitted in DWARFv5.
6724 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6725 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6726 unsigned integer.
6727
6728 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6729
6730 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6731 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6732 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6733 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6734 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6735 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6736 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6737
6738
6739 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6740
6741 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6742 (read_loclist_index): New function definition.
6743 (lookup_loclist_base): New function definition.
6744 (read_loclist_header): New function definition.
6745 (dwarf2_cu): Add loclist_base and loclist_header field.
6746 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6747 (read_full_die_1): Read the value of DW_AT_loclists_base.
6748 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6749 (read_attribute_value): Handle DW_FORM_loclistx.
6750 (skip_one_die): Handle DW_FORM_loclistx.
6751 (loclist_header): New structure declaration.
6752 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6753
6754 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6755
6756 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6757 constructor. Remove `addr` parameter from other constructor and
6758 add `per_cu` parameter.
6759 * dwarf2/read.c (create_partial_symtab): Update.
6760
6761 2020-04-07 Tom de Vries <tdevries@suse.de>
6762
6763 PR symtab/25796
6764 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6765 (partial_die_info::fixup): Inherit has_const_value.
6766
6767 2020-04-07 Tom de Vries <tdevries@suse.de>
6768
6769 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6770 symbols without address.
6771
6772 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6773
6774 * nbsd-nat.h (struct thread_info): Add forward declaration.
6775 (nbsd_nat_target::thread_alive): Add.
6776 (nbsd_nat_target::thread_name): Likewise.
6777 (nbsd_nat_target::update_thread_list): Likewise.
6778 (update_thread_list::post_attach): Likewise.
6779 (post_attach::pid_to_str): Likewise.
6780 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6781 (nbsd_thread_lister): Add.
6782 (nbsd_nat_target::thread_alive): Likewise.
6783 (nbsd_nat_target::thread_name): Likewise.
6784 (nbsd_add_threads): Likewise.
6785 (update_thread_list::post_attach): Likewise.
6786 (nbsd_nat_target::update_thread_list): Likewise.
6787 (post_attach::pid_to_str): Likewise.
6788
6789 2020-04-06 Tom Tromey <tromey@adacore.com>
6790
6791 * ada-valprint.c (print_variant_part): Extract the variant field.
6792 (print_field_values): Use the field as the outer value when
6793 recursing.
6794
6795 2020-04-06 Tom Tromey <tromey@adacore.com>
6796
6797 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6798 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6799 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6800 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6801 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6802
6803 2020-04-06 Tom Tromey <tromey@adacore.com>
6804
6805 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6806 TYPE_CODE_ERROR.
6807
6808 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6809
6810 * nbsd-tdep.c: Include "gdbarch.h".
6811 Define enum with NetBSD signal numbers.
6812 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6813 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6814 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6815 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6816 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6817 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6818 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6819 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6820 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6821 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6822 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6823 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6824
6825 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6826
6827 PR gdb/25325
6828 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6829
6830 2020-04-03 Tom Tromey <tromey@adacore.com>
6831
6832 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6833 Read constant block.
6834
6835 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6836
6837 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6838 (gdb_bfd_get_full_section_contents): New declaration.
6839 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6840 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6841 gdb_bfd_get_full_section_contents.
6842
6843 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6844
6845 * exec.c (build_section_table): Replace internal_error with
6846 gdb_assert.
6847 (section_table_xfer_memory_partial): Likewise.
6848 * mdebugread.c (parse_partial_symbols): Likewise.
6849 * psymtab.c (lookup_partial_symbol): Likewise.
6850 * utils.c (wrap_here): Likewise.
6851
6852 2020-04-02 Tom Tromey <tromey@adacore.com>
6853
6854 * f-lang.c (build_fortran_types): Use arch_type to initialize
6855 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6856
6857 2020-04-02 Tom Tromey <tromey@adacore.com>
6858
6859 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6860 of attributes.
6861
6862 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6863 Bernd Edlinger <bernd.edlinger@hotmail.de>
6864 Tom Tromey <tromey@adacore.com>
6865
6866 * buildsym.c (buildsym_compunit::record_line): Remove
6867 deduplication code.
6868
6869 2020-04-02 Tom de Vries <tdevries@suse.de>
6870
6871 PR ada/24671
6872 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6873
6874 2020-04-02 Tom de Vries <tdevries@suse.de>
6875
6876 * dwarf2/read.c (dwarf2_gdb_index_functions,
6877 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6878 NULL.
6879 * psymtab.c (psym_lookup_global_symbol_language): New function.
6880 (psym_functions): Init psym_lookup_global_symbol_language with
6881 psym_lookup_global_symbol_language.
6882 * symfile-debug.c (debug_sym_quick_functions): Init
6883 lookup_global_symbol_language with NULL.
6884 * symfile.c (set_initial_language): Remove fixme comment.
6885 * symfile.h (struct quick_symbol_functions): Add
6886 lookup_global_symbol_language.
6887 * symtab.c (find_quick_global_symbol_language): New function.
6888 (find_main_name): Use find_quick_global_symbol_language.
6889
6890 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6891
6892 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6893
6894 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6895
6896 * buildsym.c (record_line): Fix undefined behavior and preserve
6897 lines at eof.
6898
6899 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6900
6901 * buildsym.c (record_line): Fix the resizing condition.
6902
6903 2020-04-01 Tom Tromey <tom@tromey.com>
6904
6905 * value.h (value_literal_complex): Add comment.
6906 * valops.c (value_literal_complex): Refer to value.h.
6907
6908 2020-04-01 Tom Tromey <tom@tromey.com>
6909
6910 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6911 (scalar_type): New rule, from typebase.
6912 (typebase): Use scalar_type. Recognize complex types.
6913 (field_name): Handle FLOAT_KEYWORD.
6914 (ident_tokens): Add _Complex and __complex__.
6915
6916 2020-04-01 Tom Tromey <tom@tromey.com>
6917
6918 PR exp/25299:
6919 * valarith.c (promotion_type, complex_binop): New functions.
6920 (scalar_binop): Handle complex numbers. Use promotion_type.
6921 (value_pos, value_neg, value_complement): Handle complex numbers.
6922
6923 2020-04-01 Tom Tromey <tom@tromey.com>
6924
6925 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6926 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6927 (parse_number): Handle complex numbers.
6928
6929 2020-04-01 Tom Tromey <tom@tromey.com>
6930
6931 * c-valprint.c (c_decorations): Change complex suffix to "i".
6932
6933 2020-04-01 Tom Tromey <tom@tromey.com>
6934
6935 * valprint.c (generic_value_print_complex): Use accessors.
6936 * value.h (value_real_part, value_imaginary_part): Declare.
6937 * valops.c (value_real_part, value_imaginary_part): New
6938 functions.
6939 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6940
6941 2020-04-01 Tom Tromey <tom@tromey.com>
6942
6943 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6944 (read_range_type): Update.
6945 * mdebugread.c (basic_type): Update.
6946 * go-lang.c (build_go_types): Use init_complex_type.
6947 * gdbtypes.h (struct main_type) <complex_type>: New member.
6948 (init_complex_type): Update.
6949 (arch_complex_type): Don't declare.
6950 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6951 Make name if none given. Use alloc_type_copy. Look for cached
6952 complex type.
6953 (arch_complex_type): Remove.
6954 (gdbtypes_post_init): Use init_complex_type.
6955 * f-lang.c (build_fortran_types): Use init_complex_type.
6956 * dwarf2/read.c (read_base_type): Update.
6957 * d-lang.c (build_d_types): Use init_complex_type.
6958 * ctfread.c (read_base_type): Update.
6959
6960 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6961
6962 * infrun.c (stop_all_threads): Update assertion, plus when
6963 stopping threads, take into account that we might be trying
6964 to stop an all-stop target.
6965 (stop_waiting): Call 'stop_all_threads' if there exists a
6966 non-stop target.
6967
6968 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6969
6970 * target.h (exists_non_stop_target): New function declaration.
6971 * target.c (exists_non_stop_target): New function.
6972
6973 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6974
6975 PR gdb/24789
6976 * eval.c (is_integral_or_integral_reference): New function.
6977 (evaluate_subexp_standard): Allow integer references in
6978 pointer arithmetic.
6979
6980 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6981
6982 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6983 check for no ptid in the stop reply when the target is non-stop.
6984
6985 2020-04-01 Tom Tromey <tromey@adacore.com>
6986
6987 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6988 "name" parameter to rvalue reference. Initialize m_name_holder.
6989 <lookup_name_info>: New overloads.
6990 <name>: Return gdb::string_view.
6991 <c_str>: New method.
6992 <make_ignore_params>: Update.
6993 <search_name_hash>: Update.
6994 <language_lookup_name>: Return const char *.
6995 <m_name>: Change type.
6996 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6997 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6998 (lookup_name_info::match_any): Update.
6999 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7000 Update.
7001 * minsyms.c (linkage_name_str): Update.
7002 * language.c (default_symbol_name_matcher): Update.
7003 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7004 Update.
7005 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7006 (ada_lookup_name_info::ada_lookup_name_info): Update.
7007 (literal_symbol_name_matcher): Update.
7008
7009 2020-04-01 Tom Tromey <tromey@adacore.com>
7010
7011 * psymtab.c (psymtab_search_name): Remove function.
7012 (psym_lookup_symbol): Create search name and lookup name here.
7013 (lookup_partial_symbol): Remove "name" parameter; add
7014 lookup_name.
7015 (psym_expand_symtabs_for_function): Update.
7016
7017 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7018
7019 PR tui/25597:
7020 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7021
7022 2020-03-31 Tom Tromey <tromey@adacore.com>
7023
7024 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7025 memcpy.
7026
7027 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7028
7029 * features/riscv/32bit-csr.xml: Regenerated.
7030 * features/riscv/64bit-csr.xml: Regenerated.
7031
7032 2020-03-30 Tom Tromey <tromey@adacore.com>
7033
7034 * ada-valprint.c (print_variant_part): Update.
7035 * ada-lang.h (ada_which_variant_applies): Update.
7036 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7037 outer_valaddr parameters; replace with "outer" value parameter.
7038 (to_fixed_variant_branch_type): Update.
7039
7040 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7041
7042 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7043 <list>. Remove inclusion of observable.h.
7044 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7045 (struct arch_lwp_info): New struct.
7046 (class ppc_linux_dreg_interface): New class.
7047 (struct ppc_linux_process_info): New struct.
7048 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7049 <low_new_clone, low_forget_process, low_prepare_to_resume>
7050 <copy_thread_dreg_state, mark_thread_stale>
7051 <mark_debug_registers_changed, register_hw_breakpoint>
7052 <clear_hw_breakpoint, register_wp, clear_wp>
7053 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7054 <num_memory_accesses, get_trigger_type>
7055 <create_watchpoint_request, hwdebug_point_cmp>
7056 <init_arch_lwp_info, get_arch_lwp_info>
7057 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7058 methods.
7059 <struct ptid_hash>: New inner struct.
7060 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7061 members.
7062 (saved_dabr_value, hwdebug_info, max_slots_number)
7063 (struct hw_break_tuple, struct thread_points, ppc_threads)
7064 (have_ptrace_hwdebug_interface)
7065 (hwdebug_find_thread_points_by_tid)
7066 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7067 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7068 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7069 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7070 use m_dreg_interface.
7071 (hwdebug_point_cmp): Change to...
7072 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7073 reference arguments instead of pointers.
7074 (ppc_linux_nat_target::ranged_break_num_registers): Use
7075 m_dreg_interface.
7076 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7077 m_dreg_interface. Call register_hw_breakpoint.
7078 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7079 m_dreg_interface. Call clear_hw_breakpoint.
7080 (get_trigger_type): Change to...
7081 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7082 comment.
7083 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7084 use m_dreg_interface. Call register_hw_breakpoint.
7085 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7086 use m_dreg_interface. Call clear_hw_breakpoint.
7087 (can_use_watchpoint_cond_accel): Change to...
7088 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7089 method. Update comment, use m_dreg_interface and
7090 m_process_info.
7091 (calculate_dvc): Change to...
7092 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7093 m_dreg_interface.
7094 (num_memory_accesses): Change to...
7095 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7096 (check_condition): Change to...
7097 (ppc_linux_nat_target::check_condition): ...this method.
7098 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7099 comment, use m_dreg_interface.
7100 (create_watchpoint_request): Change to...
7101 (ppc_linux_nat_target::create_watchpoint_request): ...this
7102 method. Use m_dreg_interface.
7103 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7104 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7105 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7106 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7107 (ppc_linux_nat_target::low_forget_process)
7108 (ppc_linux_nat_target::low_new_fork)
7109 (ppc_linux_nat_target::low_new_clone)
7110 (ppc_linux_nat_target::low_delete_thread)
7111 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7112 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7113 only call mark_thread_stale.
7114 (ppc_linux_thread_exit): Remove.
7115 (ppc_linux_nat_target::stopped_data_address): Change to...
7116 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7117 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7118 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7119 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7120 comment. Call low_stopped_data_address.
7121 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7122 m_dreg_interface.
7123 (ppc_linux_nat_target::masked_watch_num_registers): Use
7124 m_dreg_interface.
7125 (ppc_linux_nat_target::copy_thread_dreg_state)
7126 (ppc_linux_nat_target::mark_thread_stale)
7127 (ppc_linux_nat_target::mark_debug_registers_changed)
7128 (ppc_linux_nat_target::register_hw_breakpoint)
7129 (ppc_linux_nat_target::clear_hw_breakpoint)
7130 (ppc_linux_nat_target::register_wp)
7131 (ppc_linux_nat_target::clear_wp)
7132 (ppc_linux_nat_target::init_arch_lwp_info)
7133 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7134 (_initialize_ppc_linux_nat): Remove observer callback.
7135
7136 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7137
7138 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7139 (ppc_linux_nat_target::auxv_parse)
7140 (ppc_linux_nat_target::read_description)
7141 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7142 Move up.
7143
7144 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7145
7146 * linux-nat.h (low_new_clone): New method.
7147 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7148
7149 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7150
7151 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7152 (dbx_expand_psymtab): ... this.
7153 (start_psymtab): Update.
7154 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7155 (mdebug_expand_psymtab): ... this.
7156 (parse_partial_symbols): Update.
7157 (new_psymtab): Update.
7158 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7159 (xcoff_expand_psymtab): ... this.
7160 (xcoff_start_psymtab): Update.
7161
7162 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7163
7164 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7165 <expand_dependencies>: ... this.
7166 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7167 (partial_symtab::expand_dependencies): ... this.
7168 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7169 Update.
7170 (dwarf2_psymtab::expand_psymtab): Update.
7171 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7172 * mdebugread.c (psymtab_to_symtab_1): Update.
7173 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7174
7175 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7176
7177 * psympriv.h (discard_psymtab): Remove.
7178 * dbxread.c (dbx_end_psymtab): Update.
7179 * xcoffread.c (xcoff_end_psymtab): Update.
7180
7181 2020-03-28 Tom Tromey <tom@tromey.com>
7182
7183 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7184 comment.
7185
7186 2020-03-28 Tom Tromey <tom@tromey.com>
7187
7188 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7189
7190 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7191
7192 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7193
7194 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7195
7196 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7197
7198 2020-03-26 Tom Tromey <tom@tromey.com>
7199
7200 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7201 (mark_common_block_symbol_computed, read_tag_string_type)
7202 (attr_to_dynamic_prop, read_subrange_type): Update.
7203 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7204 to be methods on struct attribute.
7205 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7206 (read_call_site_scope, partial_die_info::read)
7207 (partial_die_info::read, lookup_die_type, follow_die_ref):
7208 Update.
7209 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7210 from dwarf2_get_ref_die_offset.
7211 (attribute::constant_value): New method, from
7212 dwarf2_get_attr_constant_value.
7213 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7214 Declare method.
7215 <constant_value>: New method.
7216
7217 2020-03-26 Tom Tromey <tom@tromey.com>
7218
7219 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7220 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7221 (dwarf_type_encoding_name): Move to stringify.c.
7222 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7223 * dwarf2/stringify.c: New file.
7224 * dwarf2/stringify.h: New file.
7225
7226 2020-03-26 Tom Tromey <tom@tromey.com>
7227
7228 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7229 Rewrite.
7230
7231 2020-03-26 Tom Tromey <tom@tromey.com>
7232
7233 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7234 methods.
7235 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7236 (lookup_ranges_base): Likewise.
7237 (read_cutu_die_from_dwo, read_full_die_1): Update.
7238
7239 2020-03-26 Tom Tromey <tom@tromey.com>
7240
7241 * dwarf2/read.c (read_import_statement, read_file_scope)
7242 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7243 (read_lexical_block_scope, read_call_site_scope)
7244 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7245 (handle_struct_member_die, process_structure_scope)
7246 (update_enumeration_type_from_children)
7247 (process_enumeration_scope, read_array_type, read_common_block)
7248 (read_namespace, read_module, read_subroutine_type): Update.
7249 (sibling_die): Remove.
7250
7251 2020-03-26 Tom Tromey <tom@tromey.com>
7252
7253 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7254 (build_type_psymtabs_reader, read_structure_type)
7255 (read_enumeration_type, read_full_die_1): Update.
7256 (dwarf2_attr_no_follow): Move to die.h.
7257 * dwarf2/die.h (struct die_info) <attr>: New method.
7258
7259 2020-03-26 Tom Tromey <tom@tromey.com>
7260
7261 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7262 <base_address>: Now an optional.
7263 (dwarf2_find_base_address, dwarf2_rnglists_process)
7264 (dwarf2_ranges_process, fill_in_loclist_baton)
7265 (dwarf2_symbol_mark_computed): Update.
7266
7267 2020-03-26 Tom Tromey <tom@tromey.com>
7268
7269 * dwarf2/read.c (struct die_info): Move to die.h.
7270 * dwarf2/die.h: New file.
7271
7272 2020-03-26 Tom Tromey <tom@tromey.com>
7273
7274 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7275 * dwarf2/read.c
7276 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7277 Move to line-header.c.
7278 (read_checked_initial_length_and_offset, read_formatted_entries):
7279 Likewise.
7280 (dwarf_decode_line_header): Split into two.
7281 * dwarf2/line-header.c
7282 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7283 Move from read.c.
7284 (read_checked_initial_length_and_offset, read_formatted_entries):
7285 Likewise.
7286 (dwarf_decode_line_header): New function, split from read.c.
7287
7288 2020-03-26 Tom Tromey <tom@tromey.com>
7289
7290 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7291 Declare method.
7292 * dwarf2/read.c (read_attribute_value): Update.
7293 (dwarf2_per_objfile::read_line_string): Rename from
7294 read_indirect_line_string.
7295 (read_formatted_entries): Update.
7296
7297 2020-03-26 Tom Tromey <tom@tromey.com>
7298
7299 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7300 variable.
7301
7302 2020-03-26 Tom Tromey <tom@tromey.com>
7303
7304 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7305 const.
7306 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7307 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7308 parameter const.
7309
7310 2020-03-26 Tom Tromey <tom@tromey.com>
7311
7312 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7313 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7314 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7315 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7316
7317 2020-03-26 Tom Tromey <tom@tromey.com>
7318
7319 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7320 file_names_size, file_full_name, file_file_name>: Use const.
7321 <file_name_at, file_names>: Add const overload.
7322 * dwarf2/line-header.c (line_header::file_file_name)
7323 (line_header::file_full_name): Update.
7324
7325 2020-03-26 Tom Tromey <tom@tromey.com>
7326
7327 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7328 (macro_start_file, consume_improper_spaces)
7329 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7330 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7331 (dwarf_decode_macros): Move to macro.c.
7332 * dwarf2/macro.c: New file.
7333 * dwarf2/macro.h: New file.
7334 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7335
7336 2020-03-26 Tom Tromey <tom@tromey.com>
7337
7338 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7339 method.
7340 * dwarf2/section.c: New method. From
7341 read_indirect_string_at_offset_from.
7342 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7343 (read_indirect_string_at_offset_from): Move to section.c.
7344 (read_indirect_string_at_offset): Rewrite.
7345 (read_indirect_line_string_at_offset): Remove.
7346 (read_indirect_string, read_indirect_line_string)
7347 (dwarf_decode_macro_bytes): Update.
7348
7349 2020-03-26 Tom Tromey <tom@tromey.com>
7350
7351 * dwarf2/section.h (struct dwarf2_section_info)
7352 <overload_complaint>: Declare.
7353 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7354 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7355 Rename from dwarf2_section_buffer_overflow_complaint.
7356 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7357 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7358
7359 2020-03-26 Tom Tromey <tom@tromey.com>
7360
7361 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7362 Declare.
7363 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7364 Move from read.c.
7365 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7366 to section.c.
7367
7368 2020-03-26 Tom Tromey <tom@tromey.com>
7369
7370 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7371
7372 2020-03-26 Tom Tromey <tom@tromey.com>
7373
7374 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7375 "builder".
7376 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7377 parameter.
7378 (dwarf_decode_macros): Update.
7379
7380 2020-03-26 Tom Tromey <tom@tromey.com>
7381
7382 * dwarf2/read.c (read_attribute_value): Update.
7383 (read_indirect_string_from_dwz): Move to dwz.c; change into
7384 method.
7385 (dwarf_decode_macro_bytes): Update.
7386 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7387 * dwarf2/dwz.c: New file.
7388 * Makefile.in (COMMON_SFILES): Add dwz.c.
7389
7390 2020-03-26 Tom Tromey <tom@tromey.com>
7391
7392 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7393 * dwarf2/read.c: Add include.
7394 * dwarf2/index-write.c: Add include.
7395 * dwarf2/index-cache.c: Add include.
7396 * dwarf2/dwz.h: New file.
7397
7398 2020-03-25 Tom Tromey <tom@tromey.com>
7399
7400 * compile/compile-object-load.c (get_out_value_type): Mention
7401 correct symbol name in error message.
7402
7403 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7404
7405 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7406
7407 2020-03-25 Tom de Vries <tdevries@suse.de>
7408
7409 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7410 * symmisc.c (dump_symtab_1): Print user and includes fields.
7411 (maintenance_info_symtabs): Same.
7412
7413 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7414
7415 PR gdb/25534
7416 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7417 (riscv_regcache_cooked_write): New function.
7418 (riscv_push_dummy_call): Use new function.
7419 (riscv_return_value): Likewise.
7420
7421 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7422
7423 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7424 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7425 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7426 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7427 * infrun.c (follow_fork): Likewise.
7428 (follow_fork_inferior): Likewise.
7429 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7430 * linux-nat.h (class linux_nat_target): Likewise.
7431 * remote.c (class remote_target) <follow_fork>: Likewise.
7432 (remote_target::follow_fork): Likewise.
7433 * target-delegates.c: Re-generate.
7434 * target.c (default_follow_fork): Likewise.
7435 (target_follow_fork): Likewise.
7436 * target.h (struct target_ops) <follow_fork>: Likewise.
7437 (target_follow_fork): Likewise.
7438
7439 2020-03-24 Tom de Vries <tdevries@suse.de>
7440
7441 * psymtab.c (maintenance_info_psymtabs): Print user field.
7442
7443 2020-03-20 Tom Tromey <tromey@adacore.com>
7444
7445 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7446 const.
7447 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7448 const.
7449
7450 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7451
7452 * ptrace.m4: Don't check for ptrace declaration.
7453 * config.in: Re-generate.
7454 * configure: Re-generate.
7455 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7456 not defined.
7457
7458 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7459
7460 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7461 `PTRACE_TYPE_RET'.
7462 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7463 * sparc-nat.c (gdb_ptrace): Likewise.
7464 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7465
7466 2020-03-20 Tom Tromey <tromey@adacore.com>
7467
7468 * c-exp.y (lex_one_token): Fix assert.
7469
7470 2020-03-20 Tom Tromey <tromey@adacore.com>
7471
7472 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7473 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7474 strncpy call.
7475
7476 2020-03-20 Tom Tromey <tromey@adacore.com>
7477
7478 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7479
7480 2020-03-20 Tom Tromey <tromey@adacore.com>
7481
7482 * ada-valprint.c (print_variant_part): Remove parameters; switch
7483 to value-based API.
7484 (print_field_values): Likewise.
7485 (ada_val_print_struct_union): Likewise.
7486 (ada_value_print_1): Update.
7487
7488 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7489
7490 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7491 nbsd_nat_target instead of inf_ptrace_target.
7492 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7493 nbsd_nat_target.
7494
7495 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7496
7497 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7498 it to the ptrace call.
7499 * (store_registers): Likewise.
7500
7501 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7502
7503 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7504 it to the ptrace call.
7505 * (store_registers): Likewise.
7506
7507 2020-03-19 Luis Machado <luis.machado@linaro.org>
7508
7509 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7510 valid, fetch vg value from ptrace.
7511
7512 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7513 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7514 * inf-ptrace.c: Likewise.
7515 * (gdb_ptrace): Add.
7516 * (inf_ptrace_target::resume): Update.
7517 * (inf_ptrace_target::xfer_partial): Likewise.
7518 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7519 * (inf_ptrace_peek_poke): Update.
7520
7521 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7522
7523 * x86-bsd-nat.c (gdb_ptrace): New.
7524 * (x86bsd_dr_set): Add new argument `ptid'.
7525 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7526 x86bsd_dr_set_addr): Update.
7527
7528 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7529
7530 * remote.c (remote_target::process_stop_reply): Handle events for
7531 all threads differently.
7532
7533 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7534
7535 * completer.c (completion_tracker::remove_completion): Define new
7536 function.
7537 * completer.h (completion_tracker::remove_completion): Declare new
7538 function.
7539 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7540 when adding a C++ function symbol.
7541
7542 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7543
7544 * completer.c (completion_tracker::completion_hash_entry): Define
7545 new class.
7546 (advance_to_filename_complete_word_point): Call
7547 recompute_lowest_common_denominator.
7548 (completion_tracker::completion_tracker): Call discard_completions
7549 to setup the hash table.
7550 (completion_tracker::discard_completions): Allow for being called
7551 from the constructor, pass new equal function, and element deleter
7552 when constructing the hash table. Initialise new class member
7553 variables.
7554 (completion_tracker::maybe_add_completion): Remove use of
7555 m_entries_vec, and store more information into m_entries_hash.
7556 (completion_tracker::recompute_lcd_visitor): New function, most
7557 content taken from...
7558 (completion_tracker::recompute_lowest_common_denominator):
7559 ...here, this now just visits each item in the hash calling the
7560 above visitor.
7561 (completion_tracker::build_completion_result): Remove use of
7562 m_entries_vec, call recompute_lowest_common_denominator.
7563 * completer.h (completion_tracker::have_completions): Remove use
7564 of m_entries_vec.
7565 (completion_tracker::completion_hash_entry): Declare new class.
7566 (completion_tracker::recompute_lowest_common_denominator): Change
7567 function signature.
7568 (completion_tracker::recompute_lcd_visitor): Declare new function.
7569 (completion_tracker::m_entries_vec): Delete.
7570 (completion_tracker::m_entries_hash): Initialize to NULL.
7571 (completion_tracker::m_lowest_common_denominator_valid): New
7572 member variable.
7573 (completion_tracker::m_lowest_common_denominator_max_length): New
7574 member variable.
7575
7576 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7577
7578 * regformats/regdef.h: Put reg in gdb namespace.
7579
7580 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7581
7582 * i386-bsd-nat.c (gdb_ptrace): New.
7583 * (i386bsd_fetch_inferior_registers,
7584 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7585 * (i386bsd_fetch_inferior_registers,
7586 i386bsd_store_inferior_registers) Use gdb_ptrace.
7587
7588 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7589
7590 * amd64-bsd-nat.c (gdb_ptrace): New.
7591 * (amd64bsd_fetch_inferior_registers,
7592 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7593 * (amd64bsd_fetch_inferior_registers,
7594 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7595
7596 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7597
7598 * user-regs.c (user_reg::read): Rename to...
7599 (user_reg::xread): ...this.
7600 * (append_user_reg): Rename argument `read' to `xread'.
7601 * (user_reg_add_builtin): Likewise.
7602 * (user_reg_add): Likewise.
7603 * (value_of_user_reg): Likewise.
7604
7605 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7606
7607 * sparc-nat.c (gdb_ptrace): New.
7608 * sparc-nat.c (sparc_fetch_inferior_registers)
7609 (sparc_store_inferior_registers) Remove obsolete comment.
7610 * sparc-nat.c (sparc_fetch_inferior_registers)
7611 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7612 * sparc-nat.c (sparc_fetch_inferior_registers)
7613 (sparc_store_inferior_registers) Use gdb_ptrace.
7614
7615 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7616
7617 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7618 it to the ptrace call.
7619 * sh-nbsd-nat.c (store_registers): Likewise.
7620
7621 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7622
7623 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7624 nbsd_nat_target instead of inf_ptrace_target.
7625 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7626 nbsd_nat_target.
7627
7628 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7629
7630 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7631
7632 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7633
7634 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7635 <sys/sysctl.h>.
7636 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7637
7638 2020-03-17 Tom de Vries <tdevries@suse.de>
7639
7640 PR gdb/23710
7641 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7642 fields.
7643 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7644 fields.
7645 (process_imported_unit_die): Skip import of c++ CUs.
7646
7647 2020-03-16 Tom Tromey <tom@tromey.com>
7648
7649 * p-valprint.c (pascal_object_print_value): Initialize
7650 base_value.
7651
7652 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7653 Shahab Vahedi <shahab@synopsys.com>
7654
7655 * Makefile.in: Add arch/arc.o
7656 * configure.tgt: Likewise.
7657 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7658 (_initialize_arc_tdep): Don't initialize old target descriptions.
7659 (arc_read_description): New function to cache target descriptions.
7660 * arc-tdep.h (arc_read_description): Add proto type.
7661 * arch/arc.c: New file.
7662 * arch/arc.h: Likewise.
7663 * features/Makefile: Replace old target descriptions with new.
7664 * features/arc-arcompact.c: Remove.
7665 * features/arc-arcompact.xml: Likewise.
7666 * features/arc-v2.c: Likewise
7667 * features/arc-v2.xml: Likewise
7668 * features/arc/aux-arcompact.xml: New file.
7669 * features/arc/aux-v2.xml: Likewise.
7670 * features/arc/core-arcompact.xml: Likewise.
7671 * features/arc/core-v2.xml: Likewise.
7672 * features/arc/aux-arcompact.c: Generate.
7673 * features/arc/aux-v2.c: Likewise.
7674 * features/arc/core-arcompact.c: Likewise.
7675 * features/arc/core-v2.c: Likewise.
7676 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7677
7678 2020-03-16 Tom Tromey <tromey@adacore.com>
7679
7680 PR gdb/25663:
7681 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7682 putting value into bcache.
7683
7684 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7685
7686 PR gdb/21500
7687 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7688 to...
7689 (amd64_windows_init_abi_common): ... this. Don't set size of
7690 long type.
7691 (amd64_windows_init_abi): New function.
7692 (amd64_cygwin_init_abi): New function.
7693 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7694 the Cygwin OS ABI.
7695 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7696 comment.
7697
7698 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7699
7700 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7701 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7702 (pe_import_directory_entry): New struct type.
7703 (is_linked_with_cygwin_dll): New function.
7704 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7705 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7706 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7707
7708 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7709
7710 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7711 i386_cygwin_core_osabi_sniffer.
7712
7713 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7714
7715 * i386-cygwin-tdep.c: Rename to...
7716 * i386-windows-tdep.c: ... this.
7717 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7718 i386-windows-tdep.c.
7719 * configure.tgt: Likewise.
7720
7721 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7722
7723 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7724 * osabi.c (gdb_osabi_names): Add "Windows".
7725 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7726 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7727 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7728 i386_cygwin_osabi_sniffer.
7729 (_initialize_i386_cygwin_tdep): Register OS ABI
7730 GDB_OSABI_WINDOWS for i386.
7731 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7732 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7733 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7734 for x86-64.
7735 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7736 when the target matches '*-*-mingw*'.
7737
7738 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7739
7740 * defs.h (enum gdb_osabi): Move to...
7741 * osabi.h (enum gdb_osabi): ... here.
7742 * gdbarch.sh: Include osabi.h in gdbarch.h.
7743 * gdbarch.h: Re-generate.
7744
7745 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7746
7747 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7748 function.
7749 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7750
7751 2020-03-14 Tom Tromey <tom@tromey.com>
7752
7753 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7754 for C++.
7755 (c_type_print_modifier): Likewise. Add "language" parameter.
7756 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7757 (c_type_print_base_1): Update.
7758 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7759 constants.
7760 * type-stack.c (type_stack::insert): Handle tp_atomic and
7761 tp_restrict.
7762 (type_stack::follow_type_instance_flags): Likewise.
7763 (type_stack::follow_types): Likewise. Merge type-following code.
7764 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7765 (space_identifier, cv_with_space_id)
7766 (const_or_volatile_or_space_identifier_noopt)
7767 (const_or_volatile_or_space_identifier): Remove.
7768 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7769 rules.
7770 (ptr_operator, typebase): Update.
7771 (enum token_flag) <FLAG_C>: New constant.
7772 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7773 "_Atomic".
7774 (lex_one_token): Handle FLAG_C.
7775
7776 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7777
7778 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7779 it to the ptrace call.
7780 * m68k-bsd-nat.c (store_registers): Likewise.
7781
7782 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7783
7784 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7785 gdb_byte *.
7786 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7787 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7788 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7789
7790 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7791
7792 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7793 nbsd_nat_target instead of inf_ptrace_target.
7794 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7795 nbsd_nat_target.
7796
7797 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7798
7799 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7800 register_t.
7801
7802 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7803
7804 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7805 it to the ptrace call.
7806 * alpha-bsd-nat.c (store_registers): Likewise.
7807
7808 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7809
7810 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7811 includes.
7812 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7813 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7814 fill_fpregset): Likewise.
7815
7816 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7817
7818 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7819 nbsd_nat_target instead of inf_ptrace_target.
7820 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7821 nbsd_nat_target.
7822
7823 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7824
7825 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7826 register_t.
7827
7828 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7829
7830 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7831 it to the ptrace call.
7832 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7833 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7834 * arm-nbsd-nat.c (store_register): Likewise.
7835 * arm-nbsd-nat.c (store_regs): Likewise.
7836 * arm-nbsd-nat.c (store_fp_register): Likewise.
7837 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7838
7839 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7840
7841 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7842 nbsd_nat_target instead of inf_ptrace_target.
7843 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7844 nbsd_nat_target.
7845
7846 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7847
7848 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7849 it to the ptrace call.
7850 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7851
7852 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7853
7854 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7855 it to the ptrace call.
7856 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7857
7858 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7859
7860 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7861 gdb_byte *.
7862 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7863
7864 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7865
7866 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7867 instead of inf_ptrace_target.
7868 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7869 nbsd_nat_target.
7870
7871 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7872
7873 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7874 register_t.
7875
7876 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7877
7878 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7879 register_t.
7880
7881 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7882
7883 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7884 register_t.
7885
7886 2020-03-13 Tom Tromey <tom@tromey.com>
7887
7888 * value.h (val_print): Don't declare.
7889 * valprint.h (val_print_array_elements)
7890 (val_print_scalar_formatted, generic_val_print): Don't declare.
7891 * valprint.c (generic_val_print_array): Take a struct value.
7892 (generic_val_print_ptr, generic_val_print_memberptr)
7893 (generic_val_print_bool, generic_val_print_int)
7894 (generic_val_print_char, generic_val_print_complex)
7895 (generic_val_print): Remove.
7896 (generic_value_print): Update.
7897 (do_val_print): Remove unused parameters. Don't call
7898 la_val_print.
7899 (val_print): Remove.
7900 (common_val_print): Update. Don't call value_check_printable.
7901 (val_print_scalar_formatted, val_print_array_elements): Remove.
7902 * rust-lang.c (rust_val_print): Remove.
7903 (rust_language_defn): Update.
7904 * p-valprint.c (pascal_val_print): Remove.
7905 (pascal_value_print_inner): Update.
7906 (pascal_object_print_val_fields, pascal_object_print_val):
7907 Remove.
7908 (pascal_object_print_static_field): Update.
7909 * p-lang.h (pascal_val_print): Don't declare.
7910 * p-lang.c (pascal_language_defn): Update.
7911 * opencl-lang.c (opencl_language_defn): Update.
7912 * objc-lang.c (objc_language_defn): Update.
7913 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7914 * m2-lang.h (m2_val_print): Don't declare.
7915 * m2-lang.c (m2_language_defn): Update.
7916 * language.h (struct language_defn) <la_val_print>: Remove.
7917 * language.c (unk_lang_value_print_inner): Rename. Change
7918 argument types.
7919 (unknown_language_defn, auto_language_defn): Update.
7920 * go-valprint.c (go_val_print): Remove.
7921 * go-lang.h (go_val_print): Don't declare.
7922 * go-lang.c (go_language_defn): Update.
7923 * f-valprint.c (f_val_print): Remove.
7924 * f-lang.h (f_value_print): Don't declare.
7925 * f-lang.c (f_language_defn): Update.
7926 * d-valprint.c (d_val_print): Remove.
7927 * d-lang.h (d_value_print): Don't declare.
7928 * d-lang.c (d_language_defn): Update.
7929 * cp-valprint.c (cp_print_value_fields)
7930 (cp_print_value_fields_rtti, cp_print_value): Remove.
7931 (cp_print_static_field): Update.
7932 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7933 (c_val_print_struct, c_val_print_union, c_val_print_int)
7934 (c_val_print_memberptr, c_val_print): Remove.
7935 * c-lang.h (c_val_print_array, cp_print_value_fields)
7936 (cp_print_value_fields_rtti): Don't declare.
7937 * c-lang.c (c_language_defn, cplus_language_defn)
7938 (asm_language_defn, minimal_language_defn): Update.
7939 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7940 (ada_val_print_enum): Take a struct value.
7941 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7942 (ada_val_print): Remove.
7943 (ada_value_print_1): Update.
7944 (printable_val_type): Remove.
7945 * ada-lang.h (ada_val_print): Don't declare.
7946 * ada-lang.c (ada_language_defn): Update.
7947
7948 2020-03-13 Tom Tromey <tom@tromey.com>
7949
7950 * valprint.c (do_val_print): Update.
7951 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7952 a struct value.
7953 (value_to_value_object_no_release): Declare.
7954 * python/py-value.c (value_to_value_object_no_release): New
7955 function.
7956 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7957 struct value.
7958 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7959 function.
7960 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7961 a struct value.
7962 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7963 Declare.
7964 (gdbscm_apply_val_pretty_printer): Take a struct value.
7965 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7966 value.
7967 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7968 value.
7969 * extension-priv.h (struct extension_language_ops)
7970 <apply_val_pretty_printer>: Take a struct value.
7971 * cp-valprint.c (cp_print_value): Create a struct value.
7972 (cp_print_value): Update.
7973
7974 2020-03-13 Tom Tromey <tom@tromey.com>
7975
7976 * ada-valprint.c (print_field_values): Call common_val_print.
7977
7978 2020-03-13 Tom Tromey <tom@tromey.com>
7979
7980 * ada-valprint.c (val_print_packed_array_elements): Remove
7981 bitoffset and val parameters. Call common_val_print.
7982 (ada_val_print_string): Remove offset, address, and original_value
7983 parameters.
7984 (ada_val_print_array): Update.
7985 (ada_value_print_array): New function.
7986 (ada_value_print_1): Call it.
7987
7988 2020-03-13 Tom Tromey <tom@tromey.com>
7989
7990 * ada-valprint.c (ada_value_print): Use common_val_print.
7991
7992 2020-03-13 Tom Tromey <tom@tromey.com>
7993
7994 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7995
7996 2020-03-13 Tom Tromey <tom@tromey.com>
7997
7998 * ada-valprint.c (ada_value_print_num): New function.
7999 (ada_value_print_1): Use it.
8000
8001 2020-03-13 Tom Tromey <tom@tromey.com>
8002
8003 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8004
8005 2020-03-13 Tom Tromey <tom@tromey.com>
8006
8007 * ada-valprint.c (ada_value_print_ptr): New function.
8008 (ada_value_print_1): Use it.
8009
8010 2020-03-13 Tom Tromey <tom@tromey.com>
8011
8012 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8013 call common_val_print.
8014 (ada_val_print_1): Update.
8015 (ada_value_print_1): New function.
8016 (ada_value_print_inner): Rewrite.
8017
8018 2020-03-13 Tom Tromey <tom@tromey.com>
8019
8020 * cp-valprint.c (cp_print_value_fields): Update.
8021 (cp_print_value): New function.
8022
8023 2020-03-13 Tom Tromey <tom@tromey.com>
8024
8025 * m2-valprint.c (m2_value_print_inner): Use
8026 cp_print_value_fields.
8027 * cp-valprint.c (cp_print_value_fields): New function.
8028 * c-valprint.c (c_value_print_struct): New function.
8029 (c_value_print_inner): Use c_value_print_struct.
8030 * c-lang.h (cp_print_value_fields): Declare.
8031
8032 2020-03-13 Tom Tromey <tom@tromey.com>
8033
8034 * c-valprint.c (c_value_print_array): New function.
8035 (c_value_print_inner): Use it.
8036
8037 2020-03-13 Tom Tromey <tom@tromey.com>
8038
8039 * c-valprint.c (c_value_print_memberptr): New function.
8040 (c_value_print_inner): Use it.
8041
8042 2020-03-13 Tom Tromey <tom@tromey.com>
8043
8044 * c-valprint.c (c_value_print_int): New function.
8045 (c_value_print_inner): Use it.
8046
8047 2020-03-13 Tom Tromey <tom@tromey.com>
8048
8049 * c-valprint.c (c_value_print_ptr): New function.
8050 (c_value_print_inner): Use it.
8051
8052 2020-03-13 Tom Tromey <tom@tromey.com>
8053
8054 * c-valprint.c (c_value_print_inner): Rewrite.
8055
8056 2020-03-13 Tom Tromey <tom@tromey.com>
8057
8058 * valprint.c (generic_value_print_complex): New function.
8059 (generic_value_print): Use it.
8060
8061 2020-03-13 Tom Tromey <tom@tromey.com>
8062
8063 * valprint.c (generic_val_print_float): Don't call
8064 val_print_scalar_formatted.
8065 (generic_val_print, generic_value_print): Update.
8066
8067 2020-03-13 Tom Tromey <tom@tromey.com>
8068
8069 * valprint.c (generic_value_print_char): New function
8070 (generic_value_print): Use it.
8071
8072 2020-03-13 Tom Tromey <tom@tromey.com>
8073
8074 * valprint.c (generic_value_print_int): New function.
8075 (generic_value_print): Use it.
8076
8077 2020-03-13 Tom Tromey <tom@tromey.com>
8078
8079 * valprint.c (generic_value_print_bool): New function.
8080 (generic_value_print): Use it.
8081
8082 2020-03-13 Tom Tromey <tom@tromey.com>
8083
8084 * valprint.c (generic_val_print_func): Simplify.
8085 (generic_val_print, generic_value_print): Update.
8086
8087 2020-03-13 Tom Tromey <tom@tromey.com>
8088
8089 * valprint.c (generic_val_print_flags): Remove.
8090 (generic_val_print, generic_value_print): Update.
8091 (val_print_type_code_flags): Add original_value parameter.
8092
8093 2020-03-13 Tom Tromey <tom@tromey.com>
8094
8095 * valprint.c (generic_val_print): Update.
8096 (generic_value_print): Update.
8097 * valprint.c (generic_val_print_enum): Don't call
8098 val_print_scalar_formatted.
8099
8100 2020-03-13 Tom Tromey <tom@tromey.com>
8101
8102 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8103 * valprint.c (generic_value_print_ptr): New function.
8104
8105 2020-03-13 Tom Tromey <tom@tromey.com>
8106
8107 * valprint.c (generic_value_print): Rewrite.
8108
8109 2020-03-13 Tom Tromey <tom@tromey.com>
8110
8111 * p-valprint.c (pascal_object_print_value_fields)
8112 (pascal_object_print_value): New functions.
8113
8114 2020-03-13 Tom Tromey <tom@tromey.com>
8115
8116 * p-valprint.c (pascal_value_print_inner): Rewrite.
8117
8118 2020-03-13 Tom Tromey <tom@tromey.com>
8119
8120 * f-valprint.c (f_value_print_innner): Rewrite.
8121
8122 2020-03-13 Tom Tromey <tom@tromey.com>
8123
8124 * m2-valprint.c (m2_print_unbounded_array): New overload.
8125 (m2_print_unbounded_array): Update.
8126 (m2_print_array_contents): Take a struct value.
8127 (m2_value_print_inner): Rewrite.
8128
8129 2020-03-13 Tom Tromey <tom@tromey.com>
8130
8131 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8132 (d_value_print_inner): New function.
8133 * d-lang.h (d_value_print_inner): Declare.
8134 * d-lang.c (d_language_defn): Use d_value_print_inner.
8135
8136 2020-03-13 Tom Tromey <tom@tromey.com>
8137
8138 * go-valprint.c (go_value_print_inner): New function.
8139 * go-lang.h (go_value_print_inner): Declare.
8140 * go-lang.c (go_language_defn): Use go_value_print_inner.
8141
8142 2020-03-13 Tom Tromey <tom@tromey.com>
8143
8144 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8145 API.
8146 (rust_val_print): Rewrite.
8147 (rust_value_print_inner): New function, from rust_val_print.
8148 (rust_language_defn): Use rust_value_print_inner.
8149
8150 2020-03-13 Tom Tromey <tom@tromey.com>
8151
8152 * ada-valprint.c (ada_value_print_inner): New function.
8153 * ada-lang.h (ada_value_print_inner): Declare.
8154 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8155
8156 2020-03-13 Tom Tromey <tom@tromey.com>
8157
8158 * f-valprint.c (f_value_print_innner): New function.
8159 * f-lang.h (f_value_print_innner): Declare.
8160 * f-lang.c (f_language_defn): Use f_value_print_innner.
8161
8162 2020-03-13 Tom Tromey <tom@tromey.com>
8163
8164 * p-valprint.c (pascal_value_print_inner): New function.
8165 * p-lang.h (pascal_value_print_inner): Declare.
8166 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8167
8168 2020-03-13 Tom Tromey <tom@tromey.com>
8169
8170 * m2-valprint.c (m2_value_print_inner): New function.
8171 * m2-lang.h (m2_value_print_inner): Declare.
8172 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8173
8174 2020-03-13 Tom Tromey <tom@tromey.com>
8175
8176 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8177 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8178 * c-valprint.c (c_value_print_inner): New function.
8179 * c-lang.h (c_value_print_inner): Declare.
8180 * c-lang.c (c_language_defn, cplus_language_defn)
8181 (asm_language_defn, minimal_language_defn): Use
8182 c_value_print_inner.
8183
8184 2020-03-13 Tom Tromey <tom@tromey.com>
8185
8186 * p-valprint.c (pascal_object_print_value_fields): Now static.
8187 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8188
8189 2020-03-13 Tom Tromey <tom@tromey.com>
8190
8191 * c-valprint.c (c_val_print_array): Simplify.
8192
8193 2020-03-13 Tom Tromey <tom@tromey.com>
8194
8195 * valprint.c (value_print_array_elements): New function.
8196 * valprint.h (value_print_array_elements): Declare.
8197
8198 2020-03-13 Tom Tromey <tom@tromey.com>
8199
8200 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8201 * mips-tdep.c (mips_print_register): Use
8202 value_print_scalar_formatted.
8203
8204 2020-03-13 Tom Tromey <tom@tromey.com>
8205
8206 * valprint.h (value_print_scalar_formatted): Declare.
8207 * valprint.c (value_print_scalar_formatted): New function.
8208
8209 2020-03-13 Tom Tromey <tom@tromey.com>
8210
8211 * valprint.h (generic_value_print): Declare.
8212 * valprint.c (generic_value_print): New function.
8213
8214 2020-03-13 Tom Tromey <tom@tromey.com>
8215
8216 * valprint.c (do_val_print): Call la_value_print_inner, if
8217 available.
8218 * rust-lang.c (rust_language_defn): Update.
8219 * p-lang.c (pascal_language_defn): Update.
8220 * opencl-lang.c (opencl_language_defn): Update.
8221 * objc-lang.c (objc_language_defn): Update.
8222 * m2-lang.c (m2_language_defn): Update.
8223 * language.h (struct language_defn) <la_value_print_inner>: New
8224 member.
8225 * language.c (unknown_language_defn, auto_language_defn): Update.
8226 * go-lang.c (go_language_defn): Update.
8227 * f-lang.c (f_language_defn): Update.
8228 * d-lang.c (d_language_defn): Update.
8229 * c-lang.c (c_language_defn, cplus_language_defn)
8230 (asm_language_defn, minimal_language_defn): Update.
8231 * ada-lang.c (ada_language_defn): Update.
8232
8233 2020-03-13 Tom Tromey <tom@tromey.com>
8234
8235 * c-valprint.c (c_value_print): Use common_val_print.
8236
8237 2020-03-13 Tom Tromey <tom@tromey.com>
8238
8239 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8240
8241 2020-03-13 Tom Tromey <tom@tromey.com>
8242
8243 * f-valprint.c (f77_print_array_1, f_val_print): Use
8244 common_val_print.
8245
8246 2020-03-13 Tom Tromey <tom@tromey.com>
8247
8248 * riscv-tdep.c (riscv_print_one_register_info): Use
8249 common_val_print.
8250
8251 2020-03-13 Tom Tromey <tom@tromey.com>
8252
8253 * mi/mi-main.c (output_register): Use common_val_print.
8254
8255 2020-03-13 Tom Tromey <tom@tromey.com>
8256
8257 * infcmd.c (default_print_one_register_info): Use
8258 common_val_print.
8259
8260 2020-03-13 Tom Tromey <tom@tromey.com>
8261
8262 * valprint.h (common_val_print_checked): Declare.
8263 * valprint.c (common_val_print_checked): New function.
8264 * stack.c (print_frame_arg): Use common_val_print_checked.
8265
8266 2020-03-13 Tom Tromey <tom@tromey.com>
8267
8268 * valprint.c (do_val_print): New function, from val_print.
8269 (val_print): Use do_val_print.
8270 (common_val_print): Use do_val_print.
8271
8272 2020-03-13 Tom Tromey <tom@tromey.com>
8273
8274 * valprint.c (value_print): Use scoped_value_mark.
8275
8276 2020-03-13 Tom de Vries <tdevries@suse.de>
8277
8278 PR symtab/25646
8279 * psymtab.c (partial_symtab::partial_symtab): Don't set
8280 globals_offset and statics_offset. Push element onto
8281 current_global_psymbols and current_static_psymbols stacks.
8282 (concat): New function.
8283 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8284 element from current_global_psymbols and current_static_psymbols
8285 stacks. Concat popped elements to global_psymbols and
8286 static_symbols.
8287 (add_psymbol_to_list): Use current_global_psymbols and
8288 current_static_psymbols stacks.
8289 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8290 current_static_psymbols fields.
8291
8292 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8293
8294 * corelow.c (sniff_core_bfd): Remove.
8295 (class core_target) <m_core_vec>: Remove.
8296 (core_target::core_target): Update.
8297 (core_file_fns): Remove.
8298 (deprecated_add_core_fns): Remove.
8299 (default_core_sniffer): Remove.
8300 (sniff_core_bfd): Remove.
8301 (default_check_format): Remove.
8302 (gdb_check_format): Remove.
8303 (core_target_open): Update.
8304 (core_target::get_core_register_section): Update.
8305 (get_core_registers_cb): Update.
8306 (core_target::fetch_registers): Update.
8307 * gdbcore.h (struct core_fns): Remove.
8308 (deprecated_add_core_fns): Remove.
8309 (default_core_sniffer): Remove.
8310 (default_check_format): Remove.
8311
8312 2020-03-12 Tom Tromey <tom@tromey.com>
8313
8314 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8315 CORE_ADDR.
8316 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8317
8318 2020-03-12 Tom Tromey <tom@tromey.com>
8319
8320 * remote.c (remote_target::download_tracepoint)
8321 (remote_target::enable_tracepoint)
8322 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8323 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8324 sprintf_vma.
8325
8326 2020-03-12 Tom Tromey <tom@tromey.com>
8327
8328 * symfile-mem.c: Update CORE_ADDR size assert.
8329
8330 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8331
8332 * selftest.m4: Move to gdbsupport/.
8333 * acinclude.m4: Update path to selftest.m4.
8334
8335 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8336
8337 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8338 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8339 gdbarch-selfselftests.c and selftest-arch.c.
8340 (SUBDIR_UNITTESTS_OBS): Rename to...
8341 (SELFTESTS_OBS): ... this.
8342 (COMMON_SFILES): Remove disasm-selftests.c and
8343 gdbarch-selftests.c.
8344 * configure.ac: Don't add selftest-arch.{c,o} to
8345 CONFIG_{SRCS,OBS}.
8346 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8347 preprocessor conditions.
8348
8349 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8350
8351 * configure.ac: Don't source bfd/development.sh.
8352 * selftest.m4: Modify comment.
8353 * configure: Re-generate.
8354
8355 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8356
8357 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8358 not "true" or "false".
8359 * configure: Re-generate.
8360
8361 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8362
8363 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8364 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8365 renamed to arm_nbsd_supply_gregset.
8366 (fetch_register): Update to call arm_nbsd_supply_gregset.
8367 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8368 (arm_netbsd_nat_target::fetch_registers): Update.
8369 (fetch_elfcore_registers): Removed.
8370 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8371 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8372 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8373 not require NetBSD system headers.
8374 (arm_nbsd_regset): New struct.
8375 (arm_nbsd_iterate_over_regset_sections): New function.
8376 (arm_netbsd_init_abi_common): Updated to call
8377 set_gdbarch_iterate_over_regset_sections.
8378 * arm-nbsd-tdep.h: New file.
8379
8380 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8381
8382 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8383 recursion.
8384
8385 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8386
8387 * configure: Re-generate.
8388
8389 2020-03-11 Tom Tromey <tromey@adacore.com>
8390
8391 * ada-typeprint.c (print_choices): Fix comment.
8392
8393 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8394
8395 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8396 previous item in the list, when the list has no items.
8397
8398 2020-03-11 Tom de Vries <tdevries@suse.de>
8399
8400 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8401 PROP_LOCLIST handling code.
8402
8403 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8404
8405 * buildsym-legacy.c (record_line): Pass extra parameter to
8406 record_line.
8407 * buildsym.c (buildsym_compunit::record_line): Take an extra
8408 parameter, reduce duplication in the line table, and record the
8409 is_stmt flag in the line table.
8410 * buildsym.h (buildsym_compunit::record_line): Add extra
8411 parameter.
8412 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8413 non-statement lines.
8414 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8415 this to the symtab builder.
8416 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8417 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8418 through to dwarf_record_line_1.
8419 * infrun.c (process_event_stop_test): When stepping, don't stop at
8420 a non-statement instruction, and only refresh the step info when
8421 we land in the middle of a line's range. Also add an extra
8422 comment.
8423 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8424 field.
8425 * record-btrace.c (btrace_find_line_range): Only record lines
8426 marked as is-statement.
8427 * stack.c (frame_show_address): Show the frame address if we are
8428 in a non-statement sal.
8429 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8430 (maintenance_print_one_line_table): Print a header for the is_stmt
8431 column, and include is_stmt information in the output.
8432 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8433 preference to non-statements.
8434 (find_pcs_for_symtab_line): Prefer is-statement entries.
8435 (find_line_common): Likewise.
8436 * symtab.h (struct linetable_entry): Add is_stmt field.
8437 (struct symtab_and_line): Likewise.
8438 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8439 arranging the line table.
8440
8441 2020-03-07 Tom de Vries <tdevries@suse.de>
8442
8443 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8444 DIE.
8445
8446 2020-03-07 Tom Tromey <tom@tromey.com>
8447
8448 * valops.c (value_literal_complex): Remove obsolete comment.
8449 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8450 comment.
8451
8452 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8453
8454 * infrun.h: Forward-declare thread_info.
8455 (set_step_info): Add thread_info parameter, add doc.
8456 * infrun.c (set_step_info): Add thread_info parameter, move doc
8457 to header.
8458 * infrun.c (process_event_stop_test): Pass thread to
8459 set_step_info call.
8460 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8461 set_step_info.
8462 (prepare_one_step): Add thread_info parameter, pass it to
8463 set_step_frame and prepare_one_step (recursive) call.
8464 (step_1): Pass thread to prepare_one_step call.
8465 (step_command_fsm::should_stop): Pass thread to
8466 prepare_one_step.
8467 (until_next_fsm): Pass thread to set_step_frame call.
8468 (finish_command): Pass thread to set_step_info call.
8469
8470 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8471
8472 * windows-tdep.c (windows_solib_create_inferior_hook):
8473 Check if inferior is running.
8474
8475 2020-03-06 Tom de Vries <tdevries@suse.de>
8476
8477 * NEWS: Fix "the the".
8478 * ctfread.c: Same.
8479
8480 2020-03-06 Tom de Vries <tdevries@suse.de>
8481
8482 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8483
8484 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8485
8486 * .dir-locals.el: Add a comment referencing the other copies of
8487 this file.
8488
8489 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8490
8491 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8492 psargs.
8493
8494 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8495
8496 * .gitattributes: New file.
8497
8498 2020-03-04 Tom Tromey <tom@tromey.com>
8499
8500 * symmisc.c (print_symbol_bcache_statistics)
8501 (print_objfile_statistics): Update.
8502 * symfile.c (allocate_symtab): Use intern.
8503 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8504 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8505 macro_cache>: Remove.
8506 <string_cache>: New member.
8507 (struct objfile) <intern>: New methods.
8508 * elfread.c (elf_symtab_read): Use intern.
8509 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8510 (dwarf2_compute_name, dwarf2_physname)
8511 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8512 names.
8513 (guess_partial_die_structure_name): Update.
8514 (partial_die_info::fixup): Intern name.
8515 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8516 name.
8517 (dwarf2_name): Intern name. Update.
8518 * buildsym.c (buildsym_compunit::get_macro_table): Use
8519 string_cache.
8520
8521 2020-03-04 Tom Tromey <tom@tromey.com>
8522
8523 * jit.c (bfd_open_from_target_memory): Make "target" const.
8524 * corefile.c (gnutarget): Now const.
8525 * gdbcore.h (gnutarget): Now const.
8526
8527 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8528
8529 * NEWS: Mention support for WOW64 processes.
8530 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8531 (amd64_windows_segment_register_p): Remove static.
8532 (_initialize_amd64_windows_nat): Update.
8533 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8534 * i386-windows-nat.c (context_offset): Update.
8535 (i386_mappings): Rename and remove static.
8536 (i386_windows_segment_register_p): Remove static.
8537 (_initialize_i386_windows_nat): Update.
8538 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8539 (STATUS_WX86_SINGLE_STEP): New macro.
8540 (EnumProcessModulesEx): New macro.
8541 (Wow64SuspendThread): New macro.
8542 (Wow64GetThreadContext): New macro.
8543 (Wow64SetThreadContext): New macro.
8544 (Wow64GetThreadSelectorEntry): New macro.
8545 (windows_set_context_register_offsets): Add static.
8546 (windows_set_segment_register_p): Likewise.
8547 (windows_add_thread): Adapt for WOW64 processes.
8548 (windows_fetch_one_register): Likewise.
8549 (windows_nat_target::fetch_registers): Likewise.
8550 (windows_store_one_register): Likewise.
8551 (display_selector): Likewise.
8552 (display_selectors): Likewise.
8553 (handle_exception): Likewise.
8554 (windows_continue): Likewise.
8555 (windows_nat_target::resume): Likewise.
8556 (windows_add_all_dlls): Likewise.
8557 (do_initial_windows_stuff): Likewise.
8558 (windows_nat_target::attach): Likewise.
8559 (windows_get_exec_module_filename): Likewise.
8560 (windows_nat_target::create_inferior): Likewise.
8561 (windows_xfer_siginfo): Likewise.
8562 (_initialize_loadable): Initialize Wow64SuspendThread,
8563 Wow64GetThreadContext, Wow64SetThreadContext,
8564 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8565 * windows-nat.h (windows_set_context_register_offsets):
8566 Remove declaration.
8567 (windows_set_segment_register_p): Likewise.
8568 (i386_windows_segment_register_p): Add declaration.
8569 (amd64_windows_segment_register_p): Likewise.
8570
8571 2020-03-04 Luis Machado <luis.machado@linaro.org>
8572
8573 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8574 in "info registers" for AArch64/ARM.
8575
8576 The change caused "info registers" to not print GPR's.
8577
8578 gdb/ChangeLog:
8579
8580 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8581
8582 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8583 when reg->group is empty and reggroup is not.
8584
8585 2020-03-03 Tom Tromey <tromey@adacore.com>
8586
8587 * dwarf2/frame.c (struct dwarf2_frame_cache)
8588 <checked_tailcall_bottom, entry_cfa_sp_offset,
8589 entry_cfa_sp_offset_p>: Remove members.
8590 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8591 (dwarf2_frame_prev_register): Don't call
8592 dwarf2_tailcall_sniffer_first.
8593 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8594 * frame-unwind.c (add_unwinder): New fuction.
8595 (frame_unwind_init): Use it. Add tailcall unwinder.
8596
8597 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8598 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8599
8600 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8601 value should be printed as true.
8602
8603 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8604
8605 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8606 (windows_init_abi): Set and use windows_so_ops.
8607
8608 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8609
8610 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8611 when verifying if dealing with a convenience variable.
8612
8613 2020-03-03 Luis Machado <luis.machado@linaro.org>
8614
8615 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8616
8617 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8618
8619 * infrun.c (gdbarch_supports_displaced_stepping): New.
8620 (use_displaced_stepping): Break up conditions in smaller pieces.
8621 Use gdbarch_supports_displaced_stepping.
8622 (displaced_step_prepare_throw): Use
8623 gdbarch_supports_displaced_stepping.
8624
8625 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8626
8627 * NEWS: Mention new behaviour of the history filename.
8628 * top.c (write_history_p): Add comment.
8629 (show_write_history_p): Add header comment, give a different
8630 message when history writing is on, but the history filename is
8631 empty.
8632 (history_filename): Add comment.
8633 (history_filename_empty): New function.
8634 (show_history_filename): Add header comment, give a different
8635 message when the filename is empty.
8636 (init_history): Compare history_filename against nullptr, and only
8637 read history if the filename is not empty.
8638 (set_history_filename): Add header comment, and only make
8639 non-empty filenames absolute.
8640 (init_main): Make the filename argument to 'set history filename'
8641 optional.
8642
8643 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8644
8645 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8646 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8647 (fetch_fp_register): Update.
8648 (fetch_fp_regs): Update.
8649 (store_fp_register): Update.
8650 (store_fp_regs): Update.
8651 (arm_netbsd_nat_target::read_description): New function.
8652 (fetch_elfcore_registers): Update.
8653
8654 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8655
8656 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8657 general_thread if the stop reply is missing a thread-id.
8658 (remote_target::process_stop_reply): Use the first non-exited
8659 thread if the target didn't pass a thread-id.
8660 * infrun.c (do_target_wait): Move call to
8661 switch_to_inferior_no_thread to ....
8662 (do_target_wait_1): ... here.
8663
8664 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8665
8666 * debuginfod-support.c: Include defs.h first.
8667
8668 2020-02-28 Tom de Vries <tdevries@suse.de>
8669
8670 * symfile.c (set_initial_language): Use default language for lookup.
8671
8672 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8673
8674 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8675 reader variable, pass `this` to read_cutu_die_from_dwo.
8676
8677 2020-02-27 Aaron Merey <amerey@redhat.com>
8678
8679 * source.c (open_source_file): Check for nullptr when computing
8680 srcpath.
8681
8682 2020-02-27 Tom Tromey <tromey@adacore.com>
8683
8684 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8685 member.
8686 (dwarf2_add_field): Don't update nfields.
8687 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8688
8689 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8690
8691 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8692 abs.
8693
8694 2020-02-26 Tom Tromey <tom@tromey.com>
8695
8696 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8697 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8698 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8699 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8700 per_cu_data.
8701
8702 2020-02-26 Tom Tromey <tom@tromey.com>
8703
8704 * dwarf2/index-write.c (psym_index_map): Change type.
8705 (add_address_entry_worker, write_one_signatured_type)
8706 (recursively_count_psymbols, recursively_write_psymbols)
8707 (class debug_names, psyms_seen_size, write_gdbindex)
8708 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8709
8710 2020-02-26 Aaron Merey <amerey@redhat.com>
8711
8712 * Makefile.in: Handle optional debuginfod support.
8713 * NEWS: Update.
8714 * README: Add --with-debuginfod summary.
8715 * config.in: Regenerate.
8716 * configure: Regenerate.
8717 * configure.ac: Handle optional debuginfod support.
8718 * debuginfod-support.c: debuginfod helper functions.
8719 * debuginfod-support.h: Ditto.
8720 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8721 summary.
8722 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8723 when a dwz file cannot be found.
8724 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8725 debuginfo file cannot be found.
8726 * source.c (open_source_file): Query debuginfod servers when a
8727 source file cannot be found.
8728 * top.c (print_gdb_configuration): Include
8729 --{with,without}-debuginfod in the output.
8730
8731 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8732
8733 * thread.c (thr_try_catch_cmd): Print thread name.
8734
8735 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8736
8737 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8738 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8739 dwarf2_fetch_die_type_sect_off): Move to...
8740 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8741 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8742 dwarf2_fetch_die_type_sect_off): ... here.
8743 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8744 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8745 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8746
8747 2020-02-26 Tom de Vries <tdevries@suse.de>
8748
8749 PR gdb/25603
8750 * symfile.c (set_initial_language): Exit-early if
8751 language_mode == language_mode_manual.
8752
8753 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8754
8755 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8756 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8757 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8758
8759 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8760
8761 * gdbtypes.c (create_array_type_with_stride): Handle negative
8762 array strides.
8763 * valarith.c (value_subscripted_rvalue): Likewise.
8764
8765 2020-02-25 Luis Machado <luis.machado@linaro.org>
8766
8767 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8768
8769 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8770
8771 * loc.h (dwarf2_get_die_type): Move to...
8772 * read.h (dwarf2_get_die_type): ... here.
8773 * read.c (dwarf2_get_die_type): Move doc to header.
8774
8775 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8776
8777 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8778 'gnulib/Makefile.in' to the list.
8779
8780 2020-02-24 Tom Tromey <tom@tromey.com>
8781
8782 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8783 Remove.
8784 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8785 XOBNEWVEC.
8786
8787 2020-02-24 Tom Tromey <tom@tromey.com>
8788
8789 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8790 New method.
8791 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8792 (dw2_do_instantiate_symtab, dw2_get_file_names)
8793 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8794
8795 2020-02-24 Tom Tromey <tom@tromey.com>
8796
8797 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8798 make_scoped_restore.
8799 (dwarf2_psymtab::read_symtab): Don't clear
8800 reading_partial_symbols.
8801
8802 2020-02-24 Tom de Vries <tdevries@suse.de>
8803
8804 PR gdb/25592
8805 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8806
8807 2020-02-24 Tom de Vries <tdevries@suse.de>
8808
8809 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8810 commands layout next/prev/regs.
8811
8812 2020-02-22 Tom Tromey <tom@tromey.com>
8813
8814 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8815 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8816
8817 2020-02-22 Tom Tromey <tom@tromey.com>
8818
8819 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8820
8821 2020-02-22 Tom Tromey <tom@tromey.com>
8822
8823 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8824 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8825 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8826 * tui/tui.c (_initialize_tui): Add usage text.
8827
8828 2020-02-22 Tom Tromey <tom@tromey.com>
8829
8830 * tui/tui-win.c (tui_set_focus_command)
8831 (tui_set_win_height_command): Use error_no_arg.
8832 (_initialize_tui_win): Update help text.
8833 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8834
8835 2020-02-22 Tom Tromey <tom@tromey.com>
8836
8837 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8838 * tui/tui-disasm.h (struct tui_disasm_window)
8839 <display_start_addr>: Declare.
8840 * tui/tui-source.h (struct tui_source_window)
8841 <display_start_addr>: Declare.
8842 * tui/tui-winsource.h (struct tui_source_window_base)
8843 <show_source_line, display_start_addr>: New methods.
8844 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8845 Rename and move to protected section.
8846 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8847 (tui_source_window_base::do_erase_source_content): Update.
8848 (tui_source_window_base::show_source_line): Now a method.
8849 (tui_source_window_base::show_source_content)
8850 (tui_source_window_base::tui_source_window_base)
8851 (tui_source_window_base::rerender)
8852 (tui_source_window_base::refill)
8853 (tui_source_window_base::do_scroll_horizontal)
8854 (tui_source_window_base::set_is_exec_point_at)
8855 (tui_source_window_base::update_breakpoint_info)
8856 (tui_source_window_base::update_exec_info): Update.
8857 * tui/tui-source.c (tui_source_window::set_contents)
8858 (tui_source_window::showing_source_p)
8859 (tui_source_window::do_scroll_vertical)
8860 (tui_source_window::location_matches_p)
8861 (tui_source_window::line_is_displayed): Update.
8862 (tui_source_window::display_start_addr): New method.
8863 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8864 (tui_disasm_window::do_scroll_vertical)
8865 (tui_disasm_window::location_matches_p): Update.
8866 (tui_disasm_window::display_start_addr): New method.
8867
8868 2020-02-22 Tom Tromey <tom@tromey.com>
8869
8870 * NEWS: Add entry for gdb.register_window_type.
8871 * tui/tui-layout.h (window_factory): New typedef.
8872 (tui_register_window): Declare.
8873 * tui/tui-layout.c (saved_tui_windows): New global.
8874 (tui_apply_current_layout): Use it.
8875 (tui_register_window): New function.
8876 * python/python.c (do_start_initialization): Call
8877 gdbpy_initialize_tui.
8878 (python_GdbMethods): Add "register_window_type" function.
8879 * python/python-internal.h (gdbpy_register_tui_window)
8880 (gdbpy_initialize_tui): Declare.
8881 * python/py-tui.c: New file.
8882 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8883
8884 2020-02-22 Tom Tromey <tom@tromey.com>
8885
8886 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8887
8888 2020-02-22 Tom Tromey <tom@tromey.com>
8889
8890 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8891 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8892 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8893 (tui_set_win_focus_to): Move from tui-win.c.
8894
8895 2020-02-22 Tom Tromey <tom@tromey.com>
8896
8897 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8898 functions.
8899 (known_window_types): New global.
8900 (tui_get_window_by_name): Reimplement.
8901 (initialize_known_windows): New function.
8902 (validate_window_name): Rewrite.
8903 (_initialize_tui_layout): Call initialize_known_windows.
8904
8905 2020-02-22 Tom Tromey <tom@tromey.com>
8906
8907 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8908 Remove constants.
8909 * tui/tui-winsource.h (struct tui_source_window_base)
8910 <tui_source_window_base>: Remove parameter.
8911 * tui/tui-winsource.c
8912 (tui_source_window_base::tui_source_window_base): Remove
8913 parameter.
8914 (tui_source_window_base::refill): Update.
8915 * tui/tui-stack.h (struct tui_locator_window)
8916 <tui_locator_window>: Update.
8917 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8918 Default the constructor.
8919 * tui/tui-regs.h (struct tui_data_item_window)
8920 <tui_data_item_window>: Default the constructor.
8921 (struct tui_data_window) <tui_data_window>: Likewise.
8922 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8923 Default the constructor.
8924 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8925 Default the constructor.
8926 <type>: Remove.
8927 (struct tui_win_info) <tui_win_info>: Default the constructor.
8928 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8929 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8930 Default the constructor.
8931
8932 2020-02-22 Tom Tromey <tom@tromey.com>
8933
8934 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8935 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8936 * tui/tui-win.c (tui_resize_all): Don't call
8937 tui_delete_invisible_windows.
8938 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8939 done.
8940 (tui_set_layout): Update.
8941 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8942 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8943 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8944
8945 2020-02-22 Tom Tromey <tom@tromey.com>
8946
8947 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8948 correctly.
8949
8950 2020-02-22 Tom Tromey <tom@tromey.com>
8951
8952 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8953
8954 2020-02-22 Tom Tromey <tom@tromey.com>
8955
8956 * tui/tui-winsource.h (struct tui_source_window_iterator)
8957 <inner_iterator>: New etytypedef.
8958 <tui_source_window_iterator>: Take "end" parameter.
8959 <tui_source_window_iterator>: Take iterator.
8960 <operator*, advance>: Update.
8961 <m_iter>: Change type.
8962 <m_end>: New field.
8963 (struct tui_source_windows) <begin, end>: Update.
8964 * tui/tui-layout.c (tui_windows): New global.
8965 (tui_apply_current_layout): Clear tui_windows.
8966 (tui_layout_window::apply): Update tui_windows.
8967 * tui/tui-data.h (tui_windows): Declare.
8968 (all_tui_windows): Now inline function.
8969 (class tui_window_iterator, struct all_tui_windows): Remove.
8970
8971 2020-02-22 Tom Tromey <tom@tromey.com>
8972
8973 PR tui/17850:
8974 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8975 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8976 "height" argument.
8977 (class tui_layout_window) <get_sizes>: Likewise.
8978 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8979 argument.
8980 <get_sizes>: Add "height" argument.
8981 <m_vertical>: New field.
8982 * tui/tui-layout.c (tui_layout_split::clone): Update.
8983 (tui_layout_split::get_sizes): Add "height" argument.
8984 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8985 (tui_new_layout_command): Parse "-horizontal".
8986 (_initialize_tui_layout): Update help string.
8987 (tui_layout_split::specification): Add "-horizontal" when needed.
8988 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8989 argument.
8990 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8991 New methods.
8992
8993 2020-02-22 Tom Tromey <tom@tromey.com>
8994
8995 * tui/tui-layout.h (enum tui_adjust_result): New.
8996 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8997 (class tui_layout_window) <adjust_size>: Return
8998 tui_adjust_result. Rewrite.
8999 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9000 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9001
9002 2020-02-22 Tom Tromey <tom@tromey.com>
9003
9004 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9005 parameter and return types.
9006 (class tui_layout_base) <specification>: Add "depth".
9007 (class tui_layout_window) <specification>: Add "depth".
9008 (class tui_layout_split) <specification>: Add "depth".
9009 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9010 and return types.
9011 (tui_new_layout_command): Parse sub-layouts.
9012 (_initialize_tui_layout): Update help string.
9013 (tui_layout_window::specification): Add "depth".
9014 (add_layout_command): Update.
9015
9016 2020-02-22 Tom Tromey <tom@tromey.com>
9017
9018 * NEWS: Add "tui new-layout" item.
9019 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9020 Add new-layout command to help text.
9021 (validate_window_name): New function.
9022 (tui_new_layout_command): New function.
9023 (_initialize_tui_layout): Register "new-layout".
9024 (tui_layout_window::specification): New method.
9025 (tui_layout_window::specification): New method.
9026 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9027 method.
9028 (class tui_layout_window) <specification>: New method.
9029 (class tui_layout_split) <specification>: New method.
9030
9031 2020-02-22 Tom Tromey <tom@tromey.com>
9032
9033 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9034 * tui/tui-win.c (window_name_completer): Update comment.
9035 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9036 Declare method.
9037 (class tui_layout_window) <replace_window>: Likewise.
9038 (class tui_layout_split) <replace_window>: Likewise.
9039 (tui_set_layout): Don't declare.
9040 (tui_set_initial_layout): Declare function.
9041 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9042 (asm_regs_layout): New globals.
9043 (tui_current_layout, show_layout): Remove.
9044 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9045 (find_layout, tui_apply_layout): New function.
9046 (layout_completer): Remove.
9047 (tui_next_layout): Reimplement.
9048 (tui_next_layout_command): New function.
9049 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9050 (tui_regs_layout): Reimplement.
9051 (tui_regs_layout_command): New function.
9052 (extract_display_start_addr): Rewrite.
9053 (next_layout, prev_layout): Remove.
9054 (tui_layout_window::replace_window): New method.
9055 (tui_layout_split::replace_window): New method.
9056 (destroy_layout): New function.
9057 (layout_list): New global.
9058 (add_layout_command): New function.
9059 (initialize_layouts): Update.
9060 (tui_layout_command): New function.
9061 (_initialize_tui_layout): Install "layout" commands.
9062 * tui/tui-data.h (enum tui_layout_type): Remove.
9063 (tui_current_layout): Don't declare.
9064
9065 2020-02-22 Tom Tromey <tom@tromey.com>
9066
9067 * tui/tui-regs.c (tui_reg_layout): Remove.
9068 (tui_reg_command): Use tui_regs_layout.
9069 * tui/tui-layout.h (tui_reg_command): Declare.
9070 * tui/tui-layout.c (tui_reg_command): New function.
9071
9072 2020-02-22 Tom Tromey <tom@tromey.com>
9073
9074 * tui/tui.c (tui_rl_delete_other_windows): Call
9075 tui_remove_some_windows.
9076 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9077 Declare method.
9078 (class tui_layout_window) <remove_windows>: New method.
9079 (class tui_layout_split) <remove_windows>: Declare.
9080 (tui_remove_some_windows): Declare.
9081 * tui/tui-layout.c (tui_remove_some_windows): New function.
9082 (tui_layout_split::remove_windows): New method.
9083
9084 2020-02-22 Tom Tromey <tom@tromey.com>
9085
9086 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9087 * tui/tui-layout.h (tui_next_layout): Declare.
9088 * tui/tui-layout.c (tui_next_layout): New function.
9089
9090 2020-02-22 Tom Tromey <tom@tromey.com>
9091
9092 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9093 correct coordinates.
9094
9095 2020-02-22 Tom Tromey <tom@tromey.com>
9096
9097 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9098 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9099 DATA_WIN case.
9100
9101 2020-02-22 Tom Tromey <tom@tromey.com>
9102
9103 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9104 TUI_DISASM_WIN, not tui_win_list.
9105
9106 2020-02-22 Tom Tromey <tom@tromey.com>
9107
9108 * valprint.c (generic_val_print_enum_1)
9109 (val_print_type_code_flags): Style member names.
9110 * rust-lang.c (val_print_struct, rust_print_enum)
9111 (rust_print_struct_def, rust_internal_print_type): Style member
9112 names.
9113 * p-valprint.c (pascal_object_print_value_fields): Style member
9114 names. Only call fprintf_symbol_filtered for static members.
9115 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9116 * f-valprint.c (f_val_print): Style member names.
9117 * f-typeprint.c (f_type_print_base): Style member names.
9118 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9119 call fprintf_symbol_filtered for static members.
9120 (cp_print_class_member): Style member names.
9121 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9122 member names.
9123 * ada-valprint.c (ada_print_scalar): Style enum names.
9124 (ada_val_print_enum): Likewise.
9125 * ada-typeprint.c (print_enum_type): Style enum names.
9126
9127 2020-02-21 Tom Tromey <tom@tromey.com>
9128
9129 * psympriv.h (struct partial_symtab): Update comment.
9130
9131 2020-02-21 Tom Tromey <tromey@adacore.com>
9132
9133 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9134 type is CORE_ADDR.
9135
9136 2020-02-21 Tom de Vries <tdevries@suse.de>
9137
9138 PR gdb/25534
9139 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9140 if dependencies[i]->user != NULL.
9141
9142 2020-02-21 Ali Tamur <tamur@google.com>
9143
9144 * dwarf2/read.c (dwarf2_name): Add null check.
9145
9146 2020-02-20 Tom Tromey <tom@tromey.com>
9147
9148 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9149 ">=", in binary search.
9150 (dwarf2_find_containing_comp_unit): New overload.
9151 (run_test): New self-test.
9152 (_initialize_dwarf2_read): Register new test.
9153
9154 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9155
9156 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9157 * riscv-tdep.h: Likewise.
9158 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9159 rv32-only CSR.
9160 * features/riscv/64bit-csr.xml: Regenerated.
9161
9162 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9163 Tom Tromey <tom@tromey.com>
9164
9165 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9166 of 'fputc_unfiltered'.
9167 (putchar_unfiltered): Call 'fputc_unfiltered'.
9168 (fputc_unfiltered): Call 'fputs_unfiltered'.
9169
9170 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9171
9172 * config.in: Regenerate.
9173 * configure: Regenerate.
9174 * configure.ac: Add --with-python-libdir option.
9175 * main.c: Use WITH_PYTHON_LIBDIR.
9176
9177 2020-02-19 Tom Tromey <tom@tromey.com>
9178
9179 * symtab.c (general_symbol_info::compute_and_set_names): Use
9180 obstack_strndup. Simplify call to symbol_set_demangled_name.
9181
9182 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9183
9184 * dwarf2/read.c (allocate_signatured_type_table,
9185 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9186 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9187 Remove objfile parameter, update all callers.
9188
9189 2020-02-19 Doug Evans <dje@google.com>
9190
9191 PR rust/25535
9192 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9193 rust_enum_variant calculation.
9194
9195 2020-02-19 Tom Tromey <tromey@adacore.com>
9196
9197 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9198
9199 2020-02-19 Tom Tromey <tromey@adacore.com>
9200
9201 * ada-lang.c (cache_symbol): Use obstack_strdup.
9202
9203 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9204
9205 * configure: Regenerate.
9206
9207 2020-02-19 Tom Tromey <tromey@adacore.com>
9208
9209 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9210 NULL check.
9211
9212 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9213
9214 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9215
9216 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9217
9218 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9219 if GDBSERVER is not defined.
9220 (riscv_tdesc_cache): Likewise, also store const target_desc.
9221 (STATIC_IN_GDB): Define.
9222 (riscv_create_target_description): Update declaration with
9223 STATIC_IN_GDB.
9224 (riscv_lookup_target_description): New function, only define if
9225 GDBSERVER is not defined.
9226 * arch/riscv.h (riscv_create_target_description): Declare only
9227 when GDBSERVER is defined.
9228 (riscv_lookup_target_description): New declaration when GDBSERVER
9229 is not defined.
9230 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9231 (riscv_linux_read_features): ...this, and return
9232 riscv_gdbarch_features instead of target_desc.
9233 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9234 (riscv_linux_read_description): Rename to...
9235 (riscv_linux_read_features): ...this.
9236 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9237 Update to use riscv_gdbarch_features and
9238 riscv_lookup_target_description.
9239 * riscv-tdep.c (riscv_find_default_target_description): Use
9240 riscv_lookup_target_description instead of
9241 riscv_create_target_description.
9242
9243 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9244
9245 * valprint.c (generic_val_print_enum_1): When printing a flag
9246 enum with value 0 and there is no enumerator with value 0, print
9247 just "0" instead of "(unknown: 0x0)".
9248
9249 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9250
9251 * valprint.c (generic_val_print_enum_1): Print unknown part of
9252 flag enum in hex.
9253
9254 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9255
9256 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9257 flag enums to contain duplicate enumerators.
9258 * valprint.c (generic_val_print_enum_1): Update comment.
9259
9260 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9261
9262 * dwarf2/read.c: Include "count-one-bits.h".
9263 (update_enumeration_type_from_children): If an enumerator has
9264 multiple bits set, don't treat the enumeration as a "flag enum".
9265 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9266 of flag enums have 0 or 1 bit set.
9267
9268 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9269
9270 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9271 conversion.
9272 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9273 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9274 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9275 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9276 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9277
9278 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9279
9280 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9281
9282 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9283
9284 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9285 displaced_step_closure_up.
9286 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9287 (struct displaced_step_closure_up):
9288 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9289 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9290 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9291 Likewise.
9292 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9293 * gdbarch.c, gdbarch.h: Re-generate.
9294 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9295 displaced_step_closure_up.
9296 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9297 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9298 * infrun.h (displaced_step_closure_up): New type alias.
9299 (struct displaced_step_inferior_state) <step_closure>: Change
9300 type to displaced_step_closure_up.
9301 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9302 displaced_step_closure_up.
9303 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9304
9305 2020-02-14 Tom Tromey <tom@tromey.com>
9306
9307 * minidebug.c (gnu_debug_key): New global.
9308 (find_separate_debug_file_in_section): Use it.
9309
9310 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9311
9312 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9313 std::unique_ptr.
9314 * gdbarch.c: Re-generate.
9315 * gdbarch.h: Re-generate.
9316 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9317 change.
9318 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9319 type to std::unique_ptr.
9320 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9321 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9322 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9323 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9324 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9325 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9326 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9327 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9328 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9329
9330 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9331
9332 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9333 std::unique_ptr.
9334 (displaced_step_clear): Rename to...
9335 (displaced_step_reset): ... this. Just call displaced->reset ().
9336 (displaced_step_clear_cleanup): Rename to...
9337 (displaced_step_reset_cleanup): ... this.
9338 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9339 (displaced_step_fixup): Likewise.
9340 (resume_1): Likewise.
9341 (handle_inferior_event): Restore child's memory before calling
9342 displaced_step_fixup on the parent.
9343 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9344 to std::unique_ptr.
9345 <step_closure>: Change type to std::unique_ptr.
9346
9347 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9348
9349 * arm-tdep.c: Include count-one-bits.h.
9350 (cleanup_block_store_pc): Use count_one_bits.
9351 (cleanup_block_load_pc): Use count_one_bits.
9352 (arm_copy_block_xfer): Use count_one_bits.
9353 (thumb2_copy_block_xfer): Use count_one_bits.
9354 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9355 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9356 (thumb_get_next_pcs_raw): Use count_one_bits.
9357 (arm_get_next_pcs_raw): Use count_one_bits_l.
9358 * arch/arm.c (bitcount): Remove.
9359 * arch/arm.h (bitcount): Remove.
9360
9361 2020-02-14 Tom Tromey <tromey@adacore.com>
9362
9363 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9364 Update.
9365 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9366 * dwarf2/loc.c (call_site_find_chain_1): Return
9367 unique_xmalloc_ptr.
9368 (call_site_find_chain): Likewise.
9369
9370 2020-02-14 Richard Biener <rguenther@suse.de>
9371
9372 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9373 on expression with division operators.
9374
9375 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9376
9377 * MAINTAINERS (Write After Approval): Adding myself.
9378
9379 2020-02-12 Tom Tromey <tom@tromey.com>
9380
9381 * event-loop.c (event_data, gdb_event, event_handler_func):
9382 Remove.
9383
9384 2020-02-12 Tom Tromey <tom@tromey.com>
9385
9386 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9387 (dwarf2_frame_objfile_data): Add comment.
9388 (find_comp_unit, set_comp_unit): New functions.
9389 (dwarf2_frame_find_fde): Use find_comp_unit.
9390 (dwarf2_build_frame_info): Use set_comp_unit.
9391
9392 2020-02-12 Tom Tromey <tom@tromey.com>
9393
9394 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9395 (comp_unit): Don't initialize objfile.
9396 (execute_cfa_program): Add text_offset parameter.
9397 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9398 (dwarf2_frame_cache): Update.
9399 (dwarf2_build_frame_info): Don't set "objfile" member.
9400
9401 2020-02-12 Tom Tromey <tom@tromey.com>
9402
9403 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9404 (decode_frame_entry): Likewise.
9405 (dwarf2_build_frame_info): Update.
9406
9407 2020-02-12 Tom Tromey <tom@tromey.com>
9408
9409 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9410 (decode_frame_entry_1): Use the comp_unit obstack.
9411
9412 2020-02-12 Tom Tromey <tom@tromey.com>
9413
9414 * dwarf2/frame.c (struct comp_unit): Add initializers and
9415 constructor.
9416 (dwarf2_frame_objfile_data): Store a comp_unit.
9417 (dwarf2_frame_find_fde): Update.
9418 (dwarf2_build_frame_info): Use "new".
9419
9420 2020-02-12 Tom Tromey <tom@tromey.com>
9421
9422 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9423 (dwarf2_fde_table): Typedef for std::vector.
9424 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9425 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9426 (decode_frame_entry): Update.
9427 (dwarf2_build_frame_info): Use "new".
9428
9429 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9430
9431 * arm-tdep.c (arm_gdbarch_init): Update.
9432 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9433 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9434 have_neon, is_m>: Change to bool.
9435
9436 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9437
9438 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9439
9440 2020-02-12 Tom Tromey <tom@tromey.com>
9441
9442 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9443
9444 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9445
9446 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9447 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9448
9449 2020-02-11 Tom Tromey <tom@tromey.com>
9450
9451 * psymtab.h: Update comment.
9452
9453 2020-02-11 Tom Tromey <tom@tromey.com>
9454
9455 * gdb_obstack.h (struct auto_obstack): Use
9456 DISABLE_COPY_AND_ASSIGN.
9457
9458 2020-02-11 Tom Tromey <tom@tromey.com>
9459
9460 * dwarf2/frame.h (struct objfile): Don't forward declare.
9461
9462 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9463
9464 * cris-tdep.c (cris_supply_gregset): Change signature to match
9465 what struct regset expects.
9466 (cris_regset): New struct.
9467 (fetch_core_registers): Remove.
9468 (cris_iterate_over_regset_sections): New function.
9469 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9470 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9471
9472 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9473
9474 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9475 registers.
9476
9477 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9478
9479 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9480
9481 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9482
9483 * configure: Re-generate.
9484
9485 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9486
9487 * configure: Re-generate.
9488
9489 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9490
9491 * acinclude: Update warning.m4 path.
9492 * warning.m4: Move to gdbsupport.
9493
9494 2020-02-11 Tom Tromey <tromey@adacore.com>
9495
9496 * remote.c (remote_console_output): Update.
9497 * printcmd.c (printf_command): Update.
9498 * event-loop.c (gdb_wait_for_event): Update.
9499 * linux-nat.c (sigchld_handler): Update.
9500 * remote-sim.c (gdb_os_write_stdout): Update.
9501 (gdb_os_flush_stdout): Update.
9502 (gdb_os_flush_stderr): Update.
9503 (gdb_os_write_stderr): Update.
9504 * exceptions.c (print_exception): Update.
9505 * remote-fileio.c (remote_fileio_func_read): Update.
9506 (remote_fileio_func_write): Update.
9507 * tui/tui.c (tui_enable): Update.
9508 * tui/tui-interp.c (tui_interp::init): Update.
9509 * utils.c (init_page_info): Update.
9510 (putchar_unfiltered, fputc_unfiltered): Update.
9511 (gdb_flush): Update.
9512 (emit_style_escape): Update.
9513 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9514 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9515 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9516 (stderr_file::write): Update.
9517 (stderr_file::puts): Update.
9518 * ui-file.h (ui_file_isatty, ui_file_write)
9519 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9520 (ui_file_puts): Don't declare.
9521
9522 2020-02-10 Tom de Vries <tdevries@suse.de>
9523
9524 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9525 sentinel to char *.
9526
9527 2020-02-09 Tom de Vries <tdevries@suse.de>
9528
9529 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9530 filename if it matches "<artificial>".
9531
9532 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9533
9534 * windows-tdep.c (struct enum_value_name): New struct.
9535 (create_enum): New function.
9536 (windows_get_siginfo_type): Create and use enum types.
9537
9538 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9539
9540 * NEWS: Mention $_siginfo support for Windows.
9541 * windows-nat.c (handle_exception): Set siginfo_er.
9542 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9543 (windows_xfer_siginfo): New function.
9544 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9545 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9546 (init_windows_gdbarch_data): New function.
9547 (get_windows_gdbarch_data): New function.
9548 (windows_get_siginfo_type): New function.
9549 (windows_init_abi): Register windows_get_siginfo_type.
9550 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9551
9552 2020-02-08 Tom Tromey <tom@tromey.com>
9553
9554 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9555 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9556 <keep>: Declare method.
9557 <m_keep>: Remove member.
9558 <~cutu_reader>: Remove.
9559 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9560 (cutu_reader::cutu_reader): Update.
9561 (cutu_reader::keep): Rename from ~cutu_reader.
9562 (process_psymtab_comp_unit, build_type_psymtabs_1)
9563 (process_skeletonless_type_unit, load_partial_comp_unit)
9564 (load_full_comp_unit, dwarf2_read_addr_index)
9565 (read_signatured_type): Update.
9566
9567 2020-02-08 Tom Tromey <tom@tromey.com>
9568
9569 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9570 "want_partial_unit" parameter.
9571 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9572 Inline check for DW_TAG_partial_unit.
9573 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9574
9575 2020-02-08 Tom Tromey <tom@tromey.com>
9576
9577 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9578 read.c.
9579 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9580 read.c.
9581
9582 2020-02-08 Tom Tromey <tom@tromey.com>
9583
9584 * dwarf2/read.c (read_address): Move to comp-unit.c.
9585 (dwarf2_rnglists_process, dwarf2_ranges_process)
9586 (read_attribute_value, dwarf_decode_lines_1)
9587 (var_decode_location, decode_locdesc): Update.
9588 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9589 read.c. Remove "cu" parameter.
9590 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9591 method.
9592
9593 2020-02-08 Tom Tromey <tom@tromey.com>
9594
9595 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9596 (read_indirect_line_string): Update.
9597 * dwarf2/comp-unit.c (read_offset): Remove.
9598 (read_comp_unit_head): Update.
9599 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9600 method.
9601 (read_offset): Don't declare.
9602
9603 2020-02-08 Tom Tromey <tom@tromey.com>
9604
9605 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9606 * dwarf2/read.c (struct comp_unit_head): Move to
9607 dwarf2/comp-unit.h.
9608 (enum class rcuh_kind): Move to comp-unit.h.
9609 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9610 (read_comp_unit_head, error_check_comp_unit_head)
9611 (read_and_check_comp_unit_head): Move to comp-unit.c.
9612 (read_offset, dwarf_unit_type_name): Likewise.
9613 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9614 (cutu_reader::cutu_reader, read_call_site_scope)
9615 (find_partial_die, follow_die_offset): Update.
9616 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9617
9618 2020-02-08 Tom Tromey <tom@tromey.com>
9619
9620 * dwarf2/read.c (read_offset_1): Move to leb.c.
9621 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9622 (dwarf_decode_macro_bytes): Update.
9623 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9624 * dwarf2/leb.h (read_offset): Declare.
9625
9626 2020-02-08 Tom Tromey <tom@tromey.com>
9627
9628 * dwarf2/read.c (dwarf2_section_size): Remove.
9629 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9630 Update.
9631 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9632
9633 2020-02-08 Tom Tromey <tom@tromey.com>
9634
9635 * dwarf2/read.c (read_initial_length): Move to leb.c.
9636 * dwarf2/leb.h (read_initial_length): Declare.
9637 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9638 handle_nonstd parameter.
9639 * dwarf2/frame.c (read_initial_length): Remove.
9640 (decode_frame_entry_1): Update.
9641
9642 2020-02-08 Tom Tromey <tom@tromey.com>
9643
9644 * dwarf2/loc.c (dwarf2_find_location_expression)
9645 (dwarf_evaluate_loc_desc::get_tls_address)
9646 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9647 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9648 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9649 (dwarf2_compile_property_to_c)
9650 (dwarf2_loc_desc_get_symbol_read_needs)
9651 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9652 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9653 (loclist_describe_location, loclist_tracepoint_var_ref)
9654 (loclist_generate_c_location): Update.
9655 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9656 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9657 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9658 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9659 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9660 (dwarf2_per_cu_data::addr_size)
9661 (dwarf2_per_cu_data::ref_addr_size)
9662 (dwarf2_per_cu_data::text_offset)
9663 (dwarf2_per_cu_data::addr_type): Now methods.
9664 (per_cu_header_read_in): Make per_cu "const".
9665 (dwarf2_version): Remove.
9666 (dwarf2_per_cu_data::int_type): Now a method.
9667 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9668 (set_die_type, read_array_type, read_subrange_index_type)
9669 (read_tag_string_type, read_subrange_type): Update.
9670 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9671 offset_size, ref_addr_size, text_offset, addr_type, version,
9672 objfile, int_type, addr_sized_int_type>: Declare methods.
9673
9674 2020-02-08 Tom Tromey <tom@tromey.com>
9675
9676 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9677 Move earlier.
9678
9679 2020-02-08 Tom Tromey <tom@tromey.com>
9680
9681 * dwarf2/read.h (dwarf_line_debug): Declare.
9682 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9683 * dwarf2/read.c: Move line_header code to new files.
9684 (dwarf_line_debug): No longer static.
9685 * dwarf2/line-header.c: New file.
9686 * dwarf2/line-header.h: New file.
9687
9688 2020-02-08 Tom Tromey <tom@tromey.com>
9689
9690 * dwarf2/read.c (struct line_header) <file_full_name,
9691 file_file_name>: Return unique_xmalloc_ptr.
9692 (line_header::file_file_name): Update.
9693 (line_header::file_full_name): Update.
9694 (dw2_get_file_names_reader): Update.
9695 (macro_start_file): Update.
9696
9697 2020-02-08 Tom Tromey <tom@tromey.com>
9698
9699 * dwarf2/read.c (struct line_header) <file_full_name,
9700 file_file_name>: Declare methods.
9701 (dw2_get_file_names_reader): Update.
9702 (file_file_name): Now a method.
9703 (file_full_name): Likewise.
9704 (macro_start_file): Update.
9705
9706 2020-02-08 Tom Tromey <tom@tromey.com>
9707
9708 * dwarf2/read.c (dwarf_always_disassemble)
9709 (show_dwarf_always_disassemble): Move to loc.c.
9710 (_initialize_dwarf2_read): Move "always-disassemble" registration
9711 to loc.c.
9712 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9713 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9714 static.
9715 (show_dwarf_always_disassemble): Move from read.c.
9716 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9717
9718 2020-02-08 Tom Tromey <tom@tromey.com>
9719
9720 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9721 (create_quick_file_names_table): Return htab_up.
9722 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9723 Update.
9724 * dwarf2/read.h (struct dwarf2_per_objfile)
9725 <quick_file_names_table>: Now htab_up.
9726
9727 2020-02-08 Tom Tromey <tom@tromey.com>
9728
9729 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9730
9731 2020-02-08 Tom Tromey <tom@tromey.com>
9732
9733 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9734 Rewrite.
9735 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9736 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9737 (abbrev_table::abbrev_table): No longer inline.
9738 (ABBREV_HASH_SIZE): Remove.
9739 (abbrev_table::m_abbrevs): Now an htab_up.
9740
9741 2020-02-08 Tom Tromey <tom@tromey.com>
9742
9743 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9744 (cutu_reader): Update.
9745 (build_type_psymtabs_1): Update.
9746 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9747 (abbrev_table::alloc_abbrev): Update.
9748 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9749 (abbrev_table::read): New static method, renamed from
9750 abbrev_table_read_table.
9751 (abbrev_table::alloc_abbrev)
9752 (abbrev_table::add_abbrev): Now private.
9753 (abbrev_table::abbrev_table): Now private.
9754 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9755
9756 2020-02-08 Tom Tromey <tom@tromey.com>
9757
9758 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9759 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9760 htab_up.
9761
9762 2020-02-08 Tom Tromey <tom@tromey.com>
9763
9764 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9765 htab_up.
9766 (lookup_dwo_unit_in_dwp): Update.
9767 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9768 on obstack.
9769
9770 2020-02-08 Tom Tromey <tom@tromey.com>
9771
9772 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9773 obstack.
9774
9775 2020-02-08 Tom Tromey <tom@tromey.com>
9776
9777 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9778 line_header_hash.
9779 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9780 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9781 Change type to htab_up.
9782
9783 2020-02-08 Tom Tromey <tom@tromey.com>
9784
9785 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9786 htab_up. Don't allocate on obstack.
9787 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9788 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9789 Change type to htab_up.
9790
9791 2020-02-08 Tom Tromey <tom@tromey.com>
9792
9793 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9794 Change type to htab_up.
9795 * dwarf2/read.c (create_signatured_type_table_from_index)
9796 (create_signatured_type_table_from_debug_names)
9797 (create_all_type_units, add_type_unit)
9798 (lookup_dwo_signatured_type, lookup_signatured_type)
9799 (process_skeletonless_type_unit): Update.
9800 (create_debug_type_hash_table, create_debug_types_hash_table):
9801 Change type of types_htab.
9802 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9803 htab_up. Don't allocate on obstack.
9804 (create_cus_hash_table): Change type of cus_htab parameter.
9805 (struct dwo_file) <cus, tus>: Now htab_up.
9806 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9807 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9808 (queue_and_load_all_dwo_tus): Update.
9809 * dwarf2/index-write.c (write_gdbindex): Update.
9810 (write_debug_names): Update.
9811
9812 2020-02-08 Tom Tromey <tom@tromey.com>
9813
9814 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9815 dwarf2/read.c. Remove "next" member. Add constructor ntad
9816 destructor.
9817 (struct dwarf2_per_objfile) <queue>: New member.
9818 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9819 dwarf2/read.h.
9820 (dwarf2_queue, dwarf2_queue_tail): Remove.
9821 (class dwarf2_queue_guard): Add parameter to constructor. Use
9822 DISABLE_COPY_AND_ASSIGN.
9823 <m_per_objfile>: New member.
9824 <~dwarf2_queue_guard>: Rewrite.
9825 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9826 Update.
9827 (~dwarf2_queue_item): New.
9828
9829 2020-02-08 Tom Tromey <tom@tromey.com>
9830
9831 * dwarf2/read.c (struct die_info) <has_children>: New member.
9832 (dw2_get_file_names_reader): Remove has_children.
9833 (dw2_get_file_names): Update.
9834 (read_cutu_die_from_dwo): Remove has_children.
9835 (cutu_reader::init_tu_and_read_dwo_dies)
9836 (cutu_reader::cutu_reader): Update.
9837 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9838 Remove has_children.
9839 (build_type_psymtabs_1, process_skeletonless_type_unit)
9840 (load_partial_comp_unit, load_full_comp_unit): Update.
9841 (create_dwo_cu_reader): Remove has_children.
9842 (create_cus_hash_table, read_die_and_children): Update.
9843 (read_full_die_1,read_full_die): Remove has_children.
9844 (read_signatured_type): Update.
9845 (class cutu_reader) <has_children>: Remove.
9846
9847 2020-02-08 Tom Tromey <tom@tromey.com>
9848
9849 * dwarf2/expr.c: Rename from dwarf2expr.c.
9850 * dwarf2/expr.h: Rename from dwarf2expr.h.
9851 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9852 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9853 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9854 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9855 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9856 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9857 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9858 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9859 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9860 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9861 * dwarf2/loc.c: Rename from dwarf2loc.c.
9862 * dwarf2/loc.h: Rename from dwarf2loc.h.
9863 * dwarf2/read.c: Rename from dwarf2read.c.
9864 * dwarf2/read.h: Rename from dwarf2read.h.
9865 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9866 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9867 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9868 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9869 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9870 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9871 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9872 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9873 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9874 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9875 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9876 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9877 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9878 Update.
9879 * Makefile.in (COMMON_SFILES): Update.
9880 (HFILES_NO_SRCDIR): Update.
9881
9882 2020-02-08 Tom Tromey <tom@tromey.com>
9883
9884 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9885 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9886
9887 2020-02-08 Tom Tromey <tom@tromey.com>
9888
9889 * dwarf2read.h (struct die_info): Don't declare.
9890
9891 2020-02-08 Tom Tromey <tom@tromey.com>
9892
9893 * dwarf2read.h (die_info_ptr): Remove typedef.
9894
9895 2020-02-08 Tom Tromey <tom@tromey.com>
9896
9897 * dwarf2read.c (read_call_site_scope)
9898 (handle_data_member_location, dwarf2_add_member_fn)
9899 (mark_common_block_symbol_computed, read_common_block)
9900 (attr_to_dynamic_prop, partial_die_info::read)
9901 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9902 (dwarf2_symbol_mark_computed, set_die_type): Update.
9903 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9904 method.
9905 (attr_form_is_block): Don't declare.
9906 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9907
9908 2020-02-08 Tom Tromey <tom@tromey.com>
9909
9910 * dwarf2read.c (dwarf2_find_base_address, )
9911 (read_call_site_scope, rust_containing_type)
9912 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9913 (handle_data_member_location, dwarf2_add_member_fn)
9914 (get_alignment, read_structure_type, process_structure_scope)
9915 (mark_common_block_symbol_computed, read_common_block)
9916 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9917 (partial_die_info::read, read_attribute_value, new_symbol)
9918 (lookup_die_type, dwarf2_get_ref_die_offset)
9919 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9920 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9921 (dwarf2_symbol_mark_computed): Update.
9922 * dwarf2/attribute.h (struct attribute) <value_as_address,
9923 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9924 methods.
9925 (value_as_address, attr_form_is_section_offset)
9926 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9927 * dwarf2/attribute.c (attribute::value_as_address)
9928 (attribute::form_is_section_offset, attribute::form_is_constant)
9929 (attribute::form_is_ref): Now methods.
9930
9931 2020-02-08 Tom Tromey <tom@tromey.com>
9932
9933 * dwarf2read.c (struct attribute, DW_STRING)
9934 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9935 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9936 (attr_form_is_block, attr_form_is_section_offset)
9937 (attr_form_is_constant, attr_form_is_ref): Move.
9938 * dwarf2/attribute.h: New file.
9939 * dwarf2/attribute.c: New file, from dwarf2read.c.
9940 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9941
9942 2020-02-08 Tom Tromey <tom@tromey.com>
9943
9944 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9945 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9946 Move.
9947 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9948 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9949 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9950 abbrev.c.
9951 * dwarf2/abbrev.h: New file.
9952 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9953 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9954
9955 2020-02-08 Tom Tromey <tom@tromey.com>
9956
9957 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9958 (dwarf2_section_size, dwarf2_get_section_info)
9959 (create_signatured_type_table_from_debug_names)
9960 (create_addrmap_from_aranges, read_debug_names_from_section)
9961 (get_gdb_index_contents_from_section, read_comp_unit_head)
9962 (error_check_comp_unit_head, read_abbrev_offset)
9963 (create_debug_type_hash_table, init_cu_die_reader)
9964 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9965 (read_comp_units_from_section, create_cus_hash_table)
9966 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9967 (create_dwp_v2_section, dwarf2_rnglists_process)
9968 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9969 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9970 (read_indirect_string_from_dwz, read_addr_index_1)
9971 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9972 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9973 (fill_in_loclist_baton): Update.
9974 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9975 get_containing_section, get_bfd_owner, get_bfd_section,
9976 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9977 (dwarf2_read_section, get_section_name, get_section_file_name)
9978 (get_containing_section, get_section_bfd_owner)
9979 (get_section_bfd_section, get_section_name, get_section_file_name)
9980 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9981 declare.
9982 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9983 (dwarf2_section_info::get_bfd_owner)
9984 (dwarf2_section_info::get_bfd_section)
9985 (dwarf2_section_info::get_name)
9986 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9987 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9988 (dwarf2_section_info::read): Now methods.
9989 * dwarf-index-write.c (class debug_names): Update.
9990
9991 2020-02-08 Tom Tromey <tom@tromey.com>
9992
9993 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9994 Move to dwarf2/section.h.
9995 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9996 (get_section_bfd_section, get_section_name)
9997 (get_section_file_name, get_section_id, get_section_flags)
9998 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9999 dwarf2/section.c.
10000 * dwarf2/section.h: New file.
10001 * dwarf2/section.c: New file, from dwarf2read.c.
10002 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10003
10004 2020-02-08 Tom Tromey <tom@tromey.com>
10005
10006 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10007 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10008 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10009 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10010 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10011 * dwarf2/leb.h: New file, from dwarf2read.c.
10012 * dwarf2/leb.c: New file, from dwarf2read.c.
10013 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10014 Remove.
10015 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10016 (COMMON_SFILES): Add dwarf2/leb.c.
10017
10018 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10019
10020 GDB 9.1 released.
10021
10022 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10023
10024 PR gdb/25190:
10025 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10026 * gdb/remote.c (remote_console_output): Update.
10027 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10028 (ui_file_puts): ...this.
10029 * gdb/ui-file.h (ui_file_puts): Add declaration.
10030 * gdb/utils.c (emit_style_escape): Update.
10031 (flush_wrap_buffer): Update.
10032 (fputs_maybe_filtered): Update.
10033 (fputs_unfiltered): Add function.
10034
10035 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10036
10037 * gdb/event-loop.c (gdb_wait_for_event): Update.
10038 * gdb/printcmd.c (printf_command): Update.
10039 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10040 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10041 (gdb_os_flush_stderr): Update.
10042 * gdb/remote.c (remote_console_output): Update.
10043 * gdb/ui-file.c (gdb_flush): Rename to...
10044 (ui_file_flush): ...this.
10045 (stderr_file::write): Update.
10046 (stderr_file::puts): Update.
10047 * gdb/ui-file.h (gdb_flush): Rename to...
10048 (ui_file_flush): ...this.
10049 * gdb/utils.c (gdb_flush): Add function.
10050 * gdb/utils.h (gdb_flush): Add declaration.
10051
10052 2020-02-07 Tom Tromey <tromey@adacore.com>
10053
10054 PR breakpoints/24915:
10055 * source.c (find_and_open_source): Do not check basenames_may_differ.
10056
10057 2020-02-07 Tom Tromey <tom@tromey.com>
10058
10059 * README: Update gdbserver documentation.
10060 * gdbserver: Move to top level.
10061 * configure.tgt (build_gdbserver): Remove.
10062 * configure.ac: Remove --enable-gdbserver.
10063 * configure: Rebuild.
10064 * Makefile.in (distclean): Don't mention gdbserver.
10065
10066 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10067
10068 * source-cache.c (source_cache::ensure): Surround
10069 get_plain_source_lines with a try/catch.
10070 (source_cache::get_line_charpos): Get rid of try/catch
10071 and only check for the return value of "ensure".
10072 * tui/tui-source.c (tui_source_window::set_contents):
10073 Simplify "nlines" calculation.
10074
10075 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10076
10077 * MAINTAINERS (Write After Approval): Add myself.
10078
10079 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10080
10081 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10082 function call.
10083
10084 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10085
10086 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10087
10088 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10089
10090 * nat/riscv-linux-tdesc.h: New file.
10091 * nat/riscv-linux-tdesc.c: New file, taking code from...
10092 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10093 ... here.
10094 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10095 NATDEPFILES.
10096
10097 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10098
10099 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10100 we don't set the fake simulator ptid to the null_ptid.
10101
10102 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10103
10104 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10105 * gdbthread.h (class thread_info) <resumed>: Likewise.
10106 * infrun.c (resume_1): Likewise.
10107 (proceed): Likewise.
10108 (infrun_thread_stop_requested): Likewise.
10109 (stop_all_threads): Likewise.
10110 (handle_inferior_event): Likewise.
10111 (restart_threads): Likewise.
10112 (finish_step_over): Likewise.
10113 (keep_going_stepped_thread): Likewise.
10114 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10115 (linux_handle_extended_wait): Likewise.
10116 * record-btrace.c (get_thread_current_frame_id): Likewise.
10117 * record-full.c (record_full_wait_1): Likewise.
10118 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10119 * target.c (target_resume): Likewise.
10120 * thread.c (set_running_thread): Likewise.
10121
10122 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10123
10124 * f-valprint.c (f77_print_array_1): Changed datatype of index
10125 variable to LONGEST from int to enable it to contain bound
10126 values correctly.
10127
10128 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10129
10130 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10131 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10132 offsets according to FLEN determined.
10133 (riscv_linux_nat_target::read_description): Determine FLEN
10134 dynamically.
10135 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10136 according to FLEN determined.
10137 (riscv_linux_nat_target::store_registers): Likewise.
10138
10139 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10140
10141 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10142 when reg->group is empty and reggroup is not.
10143
10144 2020-01-31 Tom Tromey <tromey@adacore.com>
10145
10146 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10147 Call beneath target's mourn_inferior after unpushing.
10148
10149 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10150
10151 PR tui/9765
10152 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10153 have enough lines to fill the screen, still return the lowest
10154 address we found.
10155
10156 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10157
10158 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10159 '-', '<', and '>' commands.
10160
10161 2020-01-29 Pedro Alves <palves@redhat.com>
10162 Sergio Durigan Junior <sergiodj@redhat.com>
10163
10164 * infcmd.c (construct_inferior_arguments): Assert that
10165 'argc' is greater than 0.
10166
10167 2020-01-29 Luis Machado <luis.machado@linaro.org>
10168
10169 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10170 (BRK_INSN_MASK): Define to 0xd4200000.
10171 (aarch64_program_breakpoint_here_p): New function.
10172 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10173 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10174 breakpoint.c.
10175 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10176 breakpoint.h
10177 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10178 call gdbarch_program_breakpoint_here_p.
10179 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10180 default_program_breakpoint_here_p, changed return type to bool and
10181 simplified.
10182 * breakpoint.h (program_breakpoint_here): Moved prototype to
10183 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10184 return type to bool.
10185 * gdbarch.c: Regenerate.
10186 * gdbarch.h: Regenerate.
10187 * gdbarch.sh (program_breakpoint_here_p): New method.
10188 * infrun.c (handle_signal_stop): Call
10189 gdbarch_program_breakpoint_here_p.
10190
10191 2020-01-26 Tom Tromey <tom@tromey.com>
10192
10193 * ctfread.c (struct ctf_fp_info): Reindent.
10194 (_initialize_ctfread): Remove.
10195
10196 2020-01-26 Tom Tromey <tom@tromey.com>
10197
10198 * psymtab.c (partial_map_expand_apply)
10199 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10200 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10201 (psym_print_stats, psym_expand_symtabs_for_function)
10202 (psym_map_symbol_filenames, psym_map_matching_symbols)
10203 (psym_expand_symtabs_matching)
10204 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10205 (maintenance_check_psymtabs): Use new methods.
10206 * psympriv.h (struct partial_symtab) <readin_p,
10207 get_compunit_symtab>: New methods.
10208 <readin, compunit_symtab>: Remove members.
10209 (struct standard_psymtab): New.
10210 (struct legacy_psymtab): Derive from standard_psymtab.
10211 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10212 standard_psymtab.
10213 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10214
10215 2020-01-26 Tom Tromey <tom@tromey.com>
10216
10217 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10218 read_dependencies. Add assert.
10219 * psymtab.c (partial_symtab::read_dependencies): New method.
10220 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10221 method.
10222 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10223 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10224 read_dependencies.
10225 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10226 Add assert.
10227
10228 2020-01-26 Tom Tromey <tom@tromey.com>
10229
10230 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10231 Call expand_psymtab.
10232 (xcoff_read_symtab): Call expand_psymtab.
10233 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10234 legacy_expand_psymtab.
10235 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10236 method.
10237 (struct legacy_psymtab) <expand_psymtab>: Implement.
10238 <legacy_expand_psymtab>: New member.
10239 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10240 (parse_partial_symbols): Set legacy_expand_psymtab.
10241 (psymtab_to_symtab_1): Change argument order. Call
10242 expand_psymtab.
10243 (new_psymtab): Set legacy_expand_psymtab.
10244 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10245 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10246 expand_psymtab.
10247 (dwarf2_psymtab::expand_psymtab): Rename from
10248 psymtab_to_symtab_1. Call expand_psymtab.
10249 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10250 (dbx_end_psymtab): Likewise.
10251 (dbx_psymtab_to_symtab_1): Change argument order. Call
10252 expand_psymtab.
10253 (dbx_read_symtab): Call expand_psymtab.
10254 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10255 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10256 (ctf_psymtab::read_symtab): Call expand_psymtab.
10257
10258 2020-01-26 Tom Tromey <tom@tromey.com>
10259
10260 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10261 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10262 messages.
10263 * mdebugread.c (mdebug_read_symtab): Remove prints.
10264 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10265 assert.
10266 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10267
10268 2020-01-26 Tom Tromey <tom@tromey.com>
10269
10270 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10271 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10272 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10273 legacy_symtab.
10274 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10275 * psymtab.c (psymtab_to_symtab): Call method.
10276 (dump_psymtab): Update.
10277 * psympriv.h (struct partial_symtab): Add virtual destructor.
10278 <read_symtab>: New method.
10279 (struct legacy_symtab): New.
10280 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10281 (struct pst_map) <pst>: Now a legacy_psymtab.
10282 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10283 (new_psymtab): Use legacy_psymtab.
10284 * dwarf2read.h (struct dwarf2_psymtab): New.
10285 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10286 * dwarf2read.c (dwarf2_create_include_psymtab)
10287 (dwarf2_build_include_psymtabs, create_type_unit_group)
10288 (create_partial_symtab, process_psymtab_comp_unit_reader)
10289 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10290 (set_partial_user): Use dwarf2_psymtab.
10291 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10292 (psymtab_to_symtab_1, process_full_comp_unit)
10293 (process_full_type_unit, dwarf2_ranges_read)
10294 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10295 (dwarf_decode_lines): Use dwarf2_psymtab.
10296 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10297 (add_address_entry_worker, write_one_signatured_type)
10298 (recursively_count_psymbols, recursively_write_psymbols)
10299 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10300 (write_debug_names): Likewise.
10301 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10302 <pst>: Now a legacy_psymtab.
10303 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10304 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10305 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10306 * ctfread.c (struct ctf_psymtab): New.
10307 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10308 ctf_psymtab.
10309 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10310 (create_partial_symtab): Return a ctf_psymtab.
10311 (scan_partial_symbols): Update.
10312
10313 2020-01-26 Tom Tromey <tom@tromey.com>
10314
10315 * xcoffread.c (xcoff_start_psymtab): Use new.
10316 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10317 renamed from start_psymtab_common.
10318 * psympriv.h (struct partial_symtab): Add new constructor.
10319 (start_psymtab_common): Don't declare.
10320 * mdebugread.c (parse_partial_symbols): Use new.
10321 * dwarf2read.c (create_partial_symtab): Use new.
10322 * dbxread.c (start_psymtab): Use new.
10323 * ctfread.c (create_partial_symtab): Use new.
10324
10325 2020-01-26 Tom Tromey <tom@tromey.com>
10326
10327 * xcoffread.c (xcoff_end_psymtab): Use new.
10328 * psymtab.c (start_psymtab_common): Use new.
10329 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10330 Update.
10331 * psympriv.h (struct partial_symtab): Add parameters to
10332 constructor. Don't inline.
10333 (allocate_psymtab): Don't declare.
10334 * mdebugread.c (new_psymtab): Use new.
10335 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10336 * dbxread.c (dbx_end_psymtab): Use new.
10337
10338 2020-01-26 Tom Tromey <tom@tromey.com>
10339
10340 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10341 allocate_psymtab. Update documentation.
10342 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10343 allocate_psymtab. Do not use new.
10344 (allocate_psymtab): Use new. Update.
10345
10346 2020-01-26 Tom Tromey <tom@tromey.com>
10347
10348 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10349 * psymtab.c (psym_print_stats): Update.
10350 * psympriv.h (struct partial_symtab) <readin,
10351 psymtabs_addrmap_supported, anonymous>: Now bool.
10352 * mdebugread.c (psymtab_to_symtab_1): Update.
10353 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10354 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10355 (process_full_comp_unit, process_full_type_unit): Update.
10356 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10357 * ctfread.c (psymtab_to_symtab): Update.
10358
10359 2020-01-26 Tom Tromey <tom@tromey.com>
10360
10361 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10362 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10363 * psymtab.c (psymtab_storage): Delete psymtabs.
10364 (psymtab_storage::allocate_psymtab): Use new.
10365 (psymtab_storage::discard_psymtab): Use delete.
10366 * psympriv.h (struct partial_symtab): Add constructor and
10367 initializers.
10368
10369 2020-01-26 Tom Tromey <tom@tromey.com>
10370
10371 * machoread.c: Do not include psympriv.h.
10372
10373 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10374
10375 * NEWS: Mention the new option and the set/show commands.
10376
10377 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10378
10379 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10380 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10381 (validate_exec_file): New variables, enums, functions.
10382 (exec_file_locate_attach, print_section_info): Style the filenames.
10383 (_initialize_exec): Install show_exec_file_mismatch_command and
10384 set_exec_file_mismatch_command.
10385 * gdbcore.h (validate_exec_file): Declare.
10386 * infcmd.c (attach_command): Call validate_exec_file.
10387 * remote.c ( remote_target::remote_add_inferior): Likewise.
10388
10389 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10390
10391 * frame.c (find_frame_sal): Move call to get_next_frame into more
10392 inner scope.
10393 * inline-frame.c (inilne_state) <inline_state>: Update argument
10394 types.
10395 (inilne_state) <skipped_symbol>: Rename to...
10396 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10397 (skip_inline_frames): Build vector of skipped symbols and use this
10398 to reate the inline_state.
10399 (inline_skipped_symbol): Add a comment and some assertions, fetch
10400 skipped symbol from the list.
10401
10402 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10403
10404 * buildsym.c (lte_is_less_than): Delete.
10405 (buildsym_compunit::end_symtab_with_blockvector): Create local
10406 lambda function to sort line table entries, and use
10407 std::stable_sort instead of std::sort.
10408 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10409 markers when looking for a previous line.
10410
10411 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10412
10413 * dwarf2read.c (lnp_state_machine::record_line): Include
10414 end_sequence parameter in debug print out. Record the line if we
10415 are at an end_sequence marker even if it's not the start of a
10416 statement.
10417 * symmisc.c (maintenance_print_one_line_table): Print end of
10418 sequence markers with 'END' not '0'.
10419
10420 2020-01-24 Pedro Alves <palves@redhat.com>
10421
10422 PR gdb/25410
10423 * thread.c (scoped_restore_current_thread::restore): Use
10424 switch_to_inferior_no_thread.
10425 * exec.c: Include "progspace-and-thread.h".
10426 (add_target_sections, remove_target_sections):
10427 scoped_restore_current_pspace_and_thread instead of
10428 scoped_restore_current_thread.
10429 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10430 and aspace to the inferior before calling clone_program_space.
10431 Remove stale comment.
10432
10433 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10434
10435 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10436 (arm_netbsd_nat_target::fetch_registers): ...this.
10437 (arm_nbsd_nat_target::store_registers): Rename to...
10438 (arm_netbsd_nat_target::store_registers): ...this.
10439
10440 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10441
10442 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10443 register_t.
10444
10445 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10446
10447 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10448 Update comment.
10449 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10450 Likewise.
10451 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10452 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10453 the correct replacement (iterate_over_regset_sections).
10454 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10455 Update comment.
10456
10457 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10458
10459 PR gdb/23718
10460 * gdb/python/python.c (execute_gdb_command): Call
10461 async_enable_stdin in catch block.
10462
10463 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10464
10465 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10466 SWITCH_THRU_ALL_UIS.
10467
10468 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10469
10470 PR tui/9765
10471 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10472 comment, add extra parameter, and update to store previous symbol
10473 when appropriate.
10474 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10475 add extra parameter.
10476 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10477 remove unneeded parameter, add try/catch around gdb_print_insn,
10478 rewrite to add items to asm_lines vector.
10479 (tui_find_backward_disassembly_start_address): New function.
10480 (tui_find_disassembly_address): Updated throughout.
10481 (tui_disasm_window::set_contents): Update for changes to
10482 tui_disassemble.
10483 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10484 number of lines to scroll.
10485
10486 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10487
10488 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10489 (SECT_OFF_DATA): Likewise.
10490 (SECT_OFF_RODATA): Likewise.
10491 (SECT_OFF_TEXT): Likewise.
10492 (SECT_OFF_BSS): Likewise.
10493 (struct objfile) <text_section_offset, data_section_offset>: New
10494 methods.
10495 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10496 objfile::text_section_offset.
10497 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10498 * coffread.c (coff_symtab_read): Likewise.
10499 (enter_linenos): Likewise.
10500 (process_coff_symbol): Likewise.
10501 * ctfread.c (get_objfile_text_range): Likewise.
10502 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10503 Use objfile::data_section_offset.
10504 * dwarf2-frame.c (execute_cfa_program): Use
10505 objfile::text_section_offset.
10506 (dwarf2_frame_find_fde): Likewise.
10507 * dwarf2read.c (create_addrmap_from_index): Likewise.
10508 (create_addrmap_from_aranges): Likewise.
10509 (dw2_find_pc_sect_compunit_symtab): Likewise.
10510 (process_psymtab_comp_unit_reader): Likewise.
10511 (add_partial_symbol): Likewise.
10512 (add_partial_subprogram): Likewise.
10513 (process_full_comp_unit): Likewise.
10514 (read_file_scope): Likewise.
10515 (read_func_scope): Likewise.
10516 (read_lexical_block_scope): Likewise.
10517 (read_call_site_scope): Likewise.
10518 (dwarf2_rnglists_process): Likewise.
10519 (dwarf2_ranges_process): Likewise.
10520 (dwarf2_ranges_read): Likewise.
10521 (dwarf_decode_lines_1): Likewise.
10522 (new_symbol): Likewise.
10523 (dwarf2_fetch_die_loc_sect_off): Likewise.
10524 (dwarf2_per_cu_text_offset): Likewise.
10525 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10526 * hppa-tdep.c (read_unwind_info): Likewise.
10527 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10528 * psympriv.h (struct partial_symtab): Likewise.
10529 * psymtab.c (find_pc_sect_psymtab): Likewise.
10530 * solib-svr4.c (enable_break): Likewise.
10531 * stap-probe.c (relocate_address): Use
10532 objfile::data_section_offset.
10533 * xcoffread.c (enter_line_range): Use
10534 objfile::text_section_offset.
10535 (read_xcoff_symtab): Likewise.
10536
10537 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10538
10539 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10540 declaration to narrower scopes.
10541
10542 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10543
10544 * darwin-nat.h (struct darwin_exception_msg, enum
10545 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10546 Move up.
10547 (class darwin_nat_target) <wait_1, check_new_threads,
10548 decode_exception_message, decode_message, stop_inferior,
10549 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10550 * darwin-nat.c (darwin_check_new_threads): Rename to...
10551 (darwin_nat_target::check_new_threads): ... this.
10552 (darwin_suspend_inferior_it): Remove.
10553 (darwin_decode_exception_message): Rename to...
10554 (darwin_nat_target::decode_exception_message): ... this.
10555 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10556 (darwin_decode_message): Rename to...
10557 (darwin_nat_target::decode_message): ... this.
10558 (cancel_breakpoint): Rename to...
10559 (darwin_nat_target::cancel_breakpoint): ... this.
10560 (darwin_wait): Rename to...
10561 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10562 instead of iterate_over_inferiors.
10563 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10564 (darwin_stop_inferior): Rename to...
10565 (darwin_nat_target::stop_inferior): ... this.
10566 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10567 (darwin_init_thread_list): Rename to...
10568 (darwin_nat_target::init_thread_list): ... this.
10569 (darwin_ptrace_him): Rename to...
10570 (darwin_nat_target::ptrace_him): ... this.
10571 (darwin_nat_target::create_inferior): Pass lambda function to
10572 fork_inferior.
10573 (darwin_nat_target::detach): Call stop_inferior instead of
10574 darwin_stop_inferior.
10575 * fork-inferior.h (fork_inferior): Change init_trace_fun
10576 parameter to gdb::function_view.
10577 * fork-inferior.c (fork_inferior): Likewise.
10578
10579 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10580
10581 * i386-cygwin-tdep.c (core_process_module_section): Update.
10582 * windows-nat.c (struct lm_info_windows): Add text_offset.
10583 (windows_xfer_shared_libraries): Update.
10584 * windows-tdep.c (windows_xfer_shared_library):
10585 Add text_offset_cached argument.
10586 * windows-tdep.h (windows_xfer_shared_library): Update.
10587
10588 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10589
10590 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10591
10592 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10593
10594 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10595 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10596 replace with range-based for.
10597 (gdbsim_interrupt_inferior): Remove.
10598 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10599 with a range-based for. Inline code from
10600 gdbsim_interrupt_inferior.
10601
10602 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10603
10604 * infrun.c (proceed): Fix indentation.
10605
10606 2020-01-21 Tom Tromey <tromey@adacore.com>
10607
10608 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10609 * python/python.c (python_extension_ops): Update.
10610 (gdbpy_colorize): New function.
10611 * python/lib/gdb/__init__.py (colorize): New function.
10612 * extension.h (ext_lang_colorize): Declare.
10613 * extension.c (ext_lang_colorize): New function.
10614 * extension-priv.h (struct extension_language_ops) <colorize>: New
10615 member.
10616 * cli/cli-style.c (_initialize_cli_style): Update help text.
10617
10618 2020-01-21 Luis Machado <luis.machado@linaro.org>
10619
10620 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10621 <cond>: Change type to bool.
10622 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10623 (aarch64_displaced_step_cb): Likewise.
10624 (aarch64_displaced_step_tb): Likewise.
10625
10626 2020-01-21 Luis Machado <luis.machado@linaro.org>
10627
10628 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10629 output.
10630
10631 2020-01-21 Luis Machado <luis.machado@linaro.org>
10632
10633 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10634 <pc_adjust>: Adjust the documentation.
10635 (aarch64_displaced_step_fixup): Check if PC really moved before
10636 adjusting it.
10637
10638 2020-01-19 Tom Tromey <tom@tromey.com>
10639
10640 * disasm.c (~gdb_disassembler): New destructor.
10641 (gdb_buffered_insn_length): Call disassemble_free_target.
10642 * disasm.h (class gdb_disassembler): Declare destructor. Use
10643 DISABLE_COPY_AND_ASSIGN.
10644
10645 2020-01-19 Tom Tromey <tom@tromey.com>
10646
10647 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10648 (die_reader_func_ftype): Remove.
10649 (cutu_reader): New class.
10650 (dw2_get_file_names_reader): Remove "data" parameter.
10651 (dw2_get_file_names): Use cutu_reader.
10652 (create_debug_type_hash_table): Update.
10653 (read_cutu_die_from_dwo): Update comment.
10654 (lookup_dwo_unit): Add dwo_name parameter.
10655 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10656 die_reader_func_ftype and data parameters.
10657 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10658 Remove die_reader_func_ftype and data parameters.
10659 (~cutu_reader): New; from init_cutu_and_read_dies.
10660 (cutu_reader::cutu_reader): Rename from
10661 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10662 and data parameters.
10663 (init_cutu_and_read_dies_simple): Remove.
10664 (struct process_psymtab_comp_unit_data): Remove.
10665 (process_psymtab_comp_unit_reader): Remove data parameter; add
10666 want_partial_unit and pretend_language parameters.
10667 (process_psymtab_comp_unit): Use cutu_reader.
10668 (build_type_psymtabs_reader): Remove data parameter.
10669 (build_type_psymtabs_1): Use cutu_reader.
10670 (process_skeletonless_type_unit): Likewise.
10671 (load_partial_comp_unit_reader): Remove.
10672 (load_partial_comp_unit): Use cutu_reader.
10673 (load_full_comp_unit_reader): Remove.
10674 (load_full_comp_unit): Use cutu_reader.
10675 (struct create_dwo_cu_data): Remove.
10676 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10677 dwo_unit parameters.
10678 (create_cus_hash_table): Use cutu_reader.
10679 (struct dwarf2_read_addr_index_data): Remove.
10680 (dwarf2_read_addr_index_reader): Remove.
10681 (dwarf2_read_addr_index): Use cutu_reader.
10682 (read_signatured_type_reader): Remove.
10683 (read_signatured_type): Use cutu_reader.
10684
10685 2020-01-19 Tom Tromey <tom@tromey.com>
10686
10687 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10688 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10689 (tui_wrefresh): Declare.
10690 * tui/tui-wingeneral.c (suppress_output): New global.
10691 (tui_suppress_output, ~tui_suppress_output): New constructor and
10692 destructor.
10693 (tui_wrefresh): New function.
10694 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10695 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10696 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10697 method.
10698 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10699 tui_wrefresh.
10700 (tui_data_window::no_refresh): New method.
10701 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10702 (tui_reg_command): Use tui_suppress_output
10703 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10704 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10705 method.
10706 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10707
10708 2020-01-19 Tom Tromey <tom@tromey.com>
10709
10710 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10711 Handle case where symtab is null.
10712
10713 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10714
10715 * linux-fork.c (one_fork_p): Simplify.
10716
10717 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10718
10719 * top.c (struct qt_args): Remove.
10720 (kill_or_detach): Change return type to void, replace `void *`
10721 parameter with a proper one.
10722 (print_inferior_quit_action): Likewise.
10723 (quit_confirm): Use range-based for loop to iterate over inferiors.
10724 (quit_force): Likewise.
10725
10726 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10727
10728 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10729 `void *` parameter with proper parameters.
10730 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10731 (print_one_inferior): Change return type to void, replace `void *`
10732 parameter with proper parameters.
10733 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10734 inferiors.
10735 (get_other_inferior): Remove.
10736 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10737 inferiors.
10738
10739 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10740
10741 * mi/mi-interp.c (report_initial_inferior): Remove.
10742 (mi_interp::init): Use range-based for to iterate over inferiors.
10743
10744 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10745
10746 * python/py-inferior.c (build_inferior_list): Remove.
10747 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10748
10749 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10750
10751 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10752 (btrace_stitch_trace): Likewise.
10753 * charset.c (intermediate_encoding): Likewise (vaild).
10754 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10755 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10756 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10757
10758 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10759
10760 * windows-tdep.c (windows_get_tlb_type):
10761 Add rtl_user_process_parameters type.
10762
10763 2020-01-16 Pedro Alves <palves@redhat.com>
10764 Norbert Lange <nolange79@gmail.com>
10765
10766 PR build/24805
10767 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10768 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10769 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10770 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10771 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10772 (ps_plog): Redeclare exported functions with default visibility.
10773
10774 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10775
10776 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10777 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10778
10779 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10780
10781 * infcmd.c (post_create_inferior): Use get_thread_regcache
10782 instead of get_current_regcache.
10783
10784 2020-01-14 Tom Tromey <tom@tromey.com>
10785
10786 PR symtab/12535:
10787 * python/python.c (gdbpy_decode_line): Treat empty string the same
10788 as no argument.
10789
10790 2020-01-14 Tom Tromey <tom@tromey.com>
10791
10792 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10793
10794 2020-01-14 Tom Tromey <tom@tromey.com>
10795
10796 * nat/linux-btrace.c: Don't include <config.h>.
10797 * nat/linux-ptrace.c: Don't include <config.h>.
10798 * nat/x86-linux-dregs.c: Don't include <config.h>.
10799
10800 2020-01-14 Tom Tromey <tom@tromey.com>
10801
10802 * configure: Rebuild.
10803 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10804
10805 2020-01-14 Tom Tromey <tom@tromey.com>
10806
10807 * nat/x86-linux-dregs.c: Include configh.h.
10808 * nat/linux-ptrace.c: Include configh.h.
10809 * nat/linux-btrace.c: Include configh.h.
10810 * defs.h: Include config.h, bfd.h.
10811 * configure.ac: Don't source common.host.
10812 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10813 * configure: Rebuild.
10814 * acinclude.m4: Update path.
10815 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10816 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10817 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10818 (CLIBS): Add LIBSUPPORT.
10819 (CDEPS): Likewise.
10820 (COMMON_SFILES): Remove gdbsupport files.
10821 (HFILES_NO_SRCDIR): Likewise.
10822 (stamp-version): Update path to create-version.sh.
10823 (ALLDEPFILES): Remove gdbsupport files.
10824
10825 2020-01-14 Tom Tromey <tom@tromey.com>
10826
10827 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10828 USE_WIN32API when needed.
10829 * configure.ac (USE_WIN32API): Don't define.
10830 (WIN32LIBS): Use WIN32APILIBS.
10831 * configure: Rebuild.
10832
10833 2020-01-14 Tom Tromey <tom@tromey.com>
10834
10835 * configure: Rebuild.
10836 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10837
10838 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10839
10840 * skip.c (skip_function_command): Make skip w/o arguments use the
10841 name of the inlined function if pc is inside any inlined function.
10842
10843 2020-01-14 Luis Machado <luis.machado@linaro.org>
10844
10845 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10846 * infrun.c (resume_1): Likewise.
10847 (handle_inferior_event): Remove stale comment.
10848 * linux-nat.c (linux_nat_target::resume): Update comments.
10849 (save_stop_reason): Likewise.
10850 (linux_nat_filter_event): Likewise.
10851 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10852
10853 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10854
10855 * elfread.c (record_minimal_symbol): Set section index to 0 for
10856 non-allocatable sections.
10857
10858
10859 2020-01-13 Ali Tamur <tamur@google.com>
10860
10861 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10862 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10863 to gdb::optional. Update comments.
10864 (dwo_file): Update comments.
10865 (read_attribute): Update API to take an additional out parameter,
10866 need_reprocess. This is used to mark attributes that need other
10867 attributes (e.g. str_offsets_base) for correct computation which may not
10868 have been read yet.
10869 (read_attribute_reprocess): New function declaration.
10870 (read_addr_index): Likewise.
10871 (read_dwo_str_index): Likewise.
10872 (read_stub_str_index): Likewise.
10873 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10874 (lookup_addr_base): New function definition.
10875 (lookup_ranges_base): Likewise.
10876 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10877 lookup_ranges_base.
10878 (init_cutu_and_read_dies): Update comments.
10879 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10880 unit. This is used to inherit parent's str_offsets_base and addr_base.
10881 Update comments.
10882 (init_cutu_and_read_dies_simple): Reflect API changes.
10883 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10884 (create_cus_hash_table): Change API to take parent compile unit.
10885 Reflect API changes.
10886 (open_and_init_dwo_file): Reflect API changes.
10887 (dwarf2_get_pc_bounds): Update comments.
10888 (dwarf2_record_block_ranges): Likewise.
10889 (read_full_die_1): Change implementation to reprocess attributes that
10890 need str_offsets_base and addr_base.
10891 (partial_die_info::read): Likewise.
10892 (read_attribute_reprocess): New function definition.
10893 (read_attribute_value): Change API to take an additional out parameter,
10894 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10895 when a non-dwo compile unit has index based attributes.
10896 (read_attribute): Reflect API changes.
10897 (read_addr_index_1): Reflect API changes. Update comments.
10898 (dwarf2_read_addr_index_data): Reflect API changes.
10899 (dwarf2_read_addr_index): Likewise.
10900 (read_str_index): Change API and implementation. This becomes a helper
10901 to be used by the new string index related methods. Update error
10902 message and comments.
10903 (read_dwo_str_index): New function definition.
10904 (read_stub_str_index): Likewise.
10905 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10906 * symfile.h (dwarf2_debug_sections): Likewise.
10907 * xcoffread.c (dwarf2_debug_sections): Likewise.
10908
10909 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10910
10911 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10912 core_reg_sect type to gdb_byte *.
10913 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10914 * cris-tdep.c (fetch_core_registers): Likewise.
10915 * corelow.c (core_target::get_core_register_section): Change
10916 type of `contents` to gdb::byte_vector.
10917
10918 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10919
10920 * tui/tui-wingeneral.c (box_win): Position the title in the center
10921 of the border.
10922
10923 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10924
10925 * corelow.c (core_target::get_core_register_section): Use
10926 std::vector instead of alloca.
10927
10928 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10929
10930 * warning.m4: Add -Wmissing-declarations to build_warnings.
10931 * configure: Re-generate.
10932
10933 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10934
10935 * python/python.c (init__gdb_module): Add declaration.
10936
10937 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10938
10939 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10940 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10941 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10942 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10943 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10944 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10945 * ada-exp.y (_initialize_ada_exp): Add declaration.
10946 * ada-lang.c (_initialize_ada_language): Add declaration.
10947 * ada-tasks.c (_initialize_tasks): Add declaration.
10948 * agent.c (_initialize_agent): Add declaration.
10949 * aix-thread.c (_initialize_aix_thread): Add declaration.
10950 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10951 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10952 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10953 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10954 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10955 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10956 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10957 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10958 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10959 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10960 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10961 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10962 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10963 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10964 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10965 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10966 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10967 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10968 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10969 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10970 * annotate.c (_initialize_annotate): Add declaration.
10971 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10972 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10973 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10974 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10975 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10976 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10977 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10978 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10979 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10980 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10981 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10982 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10983 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10984 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10985 * auto-load.c (_initialize_auto_load): Add declaration.
10986 * auxv.c (_initialize_auxv): Add declaration.
10987 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10988 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10989 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10990 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10991 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10992 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10993 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10994 * breakpoint.c (_initialize_breakpoint): Add declaration.
10995 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10996 * btrace.c (_initialize_btrace): Add declaration.
10997 * charset.c (_initialize_charset): Add declaration.
10998 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10999 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11000 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11001 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11002 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11003 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11004 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11005 * coffread.c (_initialize_coffread): Add declaration.
11006 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11007 * compile/compile.c (_initialize_compile): Add declaration.
11008 * complaints.c (_initialize_complaints): Add declaration.
11009 * completer.c (_initialize_completer): Add declaration.
11010 * copying.c (_initialize_copying): Add declaration.
11011 * corefile.c (_initialize_core): Add declaration.
11012 * corelow.c (_initialize_corelow): Add declaration.
11013 * cp-abi.c (_initialize_cp_abi): Add declaration.
11014 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11015 * cp-support.c (_initialize_cp_support): Add declaration.
11016 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11017 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11018 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11019 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11020 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11021 * ctfread.c (_initialize_ctfread): Add declaration.
11022 * d-lang.c (_initialize_d_language): Add declaration.
11023 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11024 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11025 * dbxread.c (_initialize_dbxread): Add declaration.
11026 * dcache.c (_initialize_dcache): Add declaration.
11027 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11028 * disasm.c (_initialize_disasm): Add declaration.
11029 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11030 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11031 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11032 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11033 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11034 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11035 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11036 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11037 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11038 * elfread.c (_initialize_elfread): Add declaration.
11039 * exec.c (_initialize_exec): Add declaration.
11040 * extension.c (_initialize_extension): Add declaration.
11041 * f-lang.c (_initialize_f_language): Add declaration.
11042 * f-valprint.c (_initialize_f_valprint): Add declaration.
11043 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11044 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11045 * filesystem.c (_initialize_filesystem): Add declaration.
11046 * findcmd.c (_initialize_mem_search): Add declaration.
11047 * findvar.c (_initialize_findvar): Add declaration.
11048 * fork-child.c (_initialize_fork_child): Add declaration.
11049 * frame-base.c (_initialize_frame_base): Add declaration.
11050 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11051 * frame.c (_initialize_frame): Add declaration.
11052 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11053 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11054 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11055 * gcore.c (_initialize_gcore): Add declaration.
11056 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11057 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11058 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11059 * gdbarch.c (_initialize_gdbarch): Add declaration.
11060 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11061 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11062 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11063 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11064 * go-lang.c (_initialize_go_language): Add declaration.
11065 * go32-nat.c (_initialize_go32_nat): Add declaration.
11066 * guile/guile.c (_initialize_guile): Add declaration.
11067 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11068 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11069 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11070 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11071 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11072 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11073 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11074 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11075 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11076 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11077 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11078 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11079 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11080 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11081 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11082 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11083 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11084 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11085 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11086 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11087 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11088 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11089 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11090 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11091 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11092 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11093 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11094 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11095 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11096 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11097 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11098 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11099 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11100 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11101 * infcall.c (_initialize_infcall): Add declaration.
11102 * infcmd.c (_initialize_infcmd): Add declaration.
11103 * inflow.c (_initialize_inflow): Add declaration.
11104 * infrun.c (_initialize_infrun): Add declaration.
11105 * interps.c (_initialize_interpreter): Add declaration.
11106 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11107 * jit.c (_initialize_jit): Add declaration.
11108 * language.c (_initialize_language): Add declaration.
11109 * linux-fork.c (_initialize_linux_fork): Add declaration.
11110 * linux-nat.c (_initialize_linux_nat): Add declaration.
11111 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11112 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11113 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11114 * m2-lang.c (_initialize_m2_language): Add declaration.
11115 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11116 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11117 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11118 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11119 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11120 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11121 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11122 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11123 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11124 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11125 * machoread.c (_initialize_machoread): Add declaration.
11126 * macrocmd.c (_initialize_macrocmd): Add declaration.
11127 * macroscope.c (_initialize_macroscope): Add declaration.
11128 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11129 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11130 * maint.c (_initialize_maint_cmds): Add declaration.
11131 * mdebugread.c (_initialize_mdebugread): Add declaration.
11132 * memattr.c (_initialize_mem): Add declaration.
11133 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11134 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11135 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11136 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11137 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11138 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11139 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11140 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11141 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11142 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11143 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11144 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11145 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11146 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11147 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11148 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11149 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11150 * mipsread.c (_initialize_mipsread): Add declaration.
11151 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11152 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11153 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11154 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11155 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11156 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11157 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11158 * nto-procfs.c (_initialize_procfs): Add declaration.
11159 * objc-lang.c (_initialize_objc_language): Add declaration.
11160 * observable.c (_initialize_observer): Add declaration.
11161 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11162 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11163 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11164 * osabi.c (_initialize_gdb_osabi): Add declaration.
11165 * osdata.c (_initialize_osdata): Add declaration.
11166 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11167 * parse.c (_initialize_parse): Add declaration.
11168 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11169 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11170 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11171 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11172 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11173 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11174 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11175 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11176 * printcmd.c (_initialize_printcmd): Add declaration.
11177 * probe.c (_initialize_probe): Add declaration.
11178 * proc-api.c (_initialize_proc_api): Add declaration.
11179 * proc-events.c (_initialize_proc_events): Add declaration.
11180 * proc-service.c (_initialize_proc_service): Add declaration.
11181 * procfs.c (_initialize_procfs): Add declaration.
11182 * producer.c (_initialize_producer): Add declaration.
11183 * psymtab.c (_initialize_psymtab): Add declaration.
11184 * python/python.c (_initialize_python): Add declaration.
11185 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11186 * record-btrace.c (_initialize_record_btrace): Add declaration.
11187 * record-full.c (_initialize_record_full): Add declaration.
11188 * record.c (_initialize_record): Add declaration.
11189 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11190 * regcache.c (_initialize_regcache): Add declaration.
11191 * reggroups.c (_initialize_reggroup): Add declaration.
11192 * remote-notif.c (_initialize_notif): Add declaration.
11193 * remote-sim.c (_initialize_remote_sim): Add declaration.
11194 * remote.c (_initialize_remote): Add declaration.
11195 * reverse.c (_initialize_reverse): Add declaration.
11196 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11197 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11198 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11199 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11200 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11201 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11202 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11203 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11204 Add declaration.
11205 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11206 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11207 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11208 * rust-exp.y (_initialize_rust_exp): Add declaration.
11209 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11210 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11211 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11212 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11213 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11214 * score-tdep.c (_initialize_score_tdep): Add declaration.
11215 * ser-go32.c (_initialize_ser_dos): Add declaration.
11216 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11217 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11218 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11219 * ser-uds.c (_initialize_ser_socket): Add declaration.
11220 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11221 * serial.c (_initialize_serial): Add declaration.
11222 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11223 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11224 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11225 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11226 * skip.c (_initialize_step_skip): Add declaration.
11227 * sol-thread.c (_initialize_sol_thread): Add declaration.
11228 * solib-aix.c (_initialize_solib_aix): Add declaration.
11229 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11230 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11231 * solib-frv.c (_initialize_frv_solib): Add declaration.
11232 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11233 * solib-target.c (_initialize_solib_target): Add declaration.
11234 * solib.c (_initialize_solib): Add declaration.
11235 * source-cache.c (_initialize_source_cache): Add declaration.
11236 * source.c (_initialize_source): Add declaration.
11237 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11238 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11239 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11240 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11241 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11242 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11243 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11244 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11245 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11246 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11247 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11248 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11249 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11250 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11251 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11252 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11253 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11254 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11255 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11256 * stabsread.c (_initialize_stabsread): Add declaration.
11257 * stack.c (_initialize_stack): Add declaration.
11258 * stap-probe.c (_initialize_stap_probe): Add declaration.
11259 * std-regs.c (_initialize_frame_reg): Add declaration.
11260 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11261 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11262 * symfile.c (_initialize_symfile): Add declaration.
11263 * symmisc.c (_initialize_symmisc): Add declaration.
11264 * symtab.c (_initialize_symtab): Add declaration.
11265 * target.c (_initialize_target): Add declaration.
11266 * target-connection.c (_initialize_target_connection): Add
11267 declaration.
11268 * target-dcache.c (_initialize_target_dcache): Add declaration.
11269 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11270 * thread.c (_initialize_thread): Add declaration.
11271 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11272 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11273 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11274 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11275 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11276 * tracectf.c (_initialize_ctf): Add declaration.
11277 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11278 * tracefile.c (_initialize_tracefile): Add declaration.
11279 * tracepoint.c (_initialize_tracepoint): Add declaration.
11280 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11281 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11282 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11283 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11284 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11285 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11286 * tui/tui.c (_initialize_tui): Add declaration.
11287 * typeprint.c (_initialize_typeprint): Add declaration.
11288 * ui-style.c (_initialize_ui_style): Add declaration.
11289 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11290 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11291 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11292 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11293 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11294 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11295 * unittests/filtered_iterator-selftests.c
11296 (_initialize_filtered_iterator_selftests): Add declaration.
11297 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11298 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11299 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11300 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11301 * unittests/main-thread-selftests.c
11302 (_initialize_main_thread_selftests): Add declaration.
11303 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11304 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11305 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11306 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11307 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11308 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11309 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11310 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11311 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11312 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11313 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11314 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11315 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11316 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11317 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11318 declaration.
11319 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11320 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11321 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11322 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11323 * user-regs.c (_initialize_user_regs): Add declaration.
11324 * utils.c (_initialize_utils): Add declaration.
11325 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11326 * valops.c (_initialize_valops): Add declaration.
11327 * valprint.c (_initialize_valprint): Add declaration.
11328 * value.c (_initialize_values): Add declaration.
11329 * varobj.c (_initialize_varobj): Add declaration.
11330 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11331 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11332 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11333 * windows-nat.c (_initialize_windows_nat): Add declaration.
11334 (_initialize_check_for_gdb_ini): Add declaration.
11335 (_initialize_loadable): Add declaration.
11336 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11337 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11338 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11339 * xcoffread.c (_initialize_xcoffread): Add declaration.
11340 * xml-support.c (_initialize_xml_support): Add declaration.
11341 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11342 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11343 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11344 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11345
11346 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11347
11348 * regformats/regdat.sh: Generate declaration for init function.
11349
11350 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11351
11352 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11353 up.
11354 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11355 close_one_inferior>: New methods.
11356 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11357 pass down target to find_inferior_pid.
11358 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11359 Pass down target to find_inferior_ptid.
11360 (gdbsim_target::create_inferior): Pass down target to
11361 add_thread_silent.
11362 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11363 target down to find_inferior_ptid and switch_to_thread.
11364 (gdbsim_target::close): Update to call close_one_inferior.
11365 (struct resume_data): Remove.
11366 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11367 directly, rather than through a void pointer.
11368 (gdbsim_target::resume): Update to call resume_one_inferior.
11369
11370 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11371
11372 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11373
11374 2020-01-12 Pedro Alves <palves@redhat.com>
11375
11376 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11377 directly for the current inferior instead of
11378 discard_all_inferiors.
11379 (discard_all_inferiors): Delete.
11380
11381 2020-01-11 Tom Tromey <tom@tromey.com>
11382
11383 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11384 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11385 deprecated_safe_get_selected_frame.
11386
11387 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11388
11389 * inferior.c (print_inferior): Switch inferior before printing it.
11390
11391 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11392 Pedro Alves <palves@redhat.com>
11393
11394 * progspace-and-thread.c (switch_to_program_space_and_thread):
11395 Assert there's an inferior for PSPACE. Use
11396 switch_to_inferior_no_thread to switch the inferior too.
11397 * progspace.c (program_space::~program_space): Call
11398 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11399 (program_space::free_all_objfiles): Don't call clear_symtab_users
11400 here.
11401 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11402
11403 2020-01-10 Pedro Alves <palves@redhat.com>
11404
11405 * NEWS: Mention multi-target debugging, "info connections", and
11406 "add-inferior -no-connection".
11407
11408 2020-01-10 Pedro Alves <palves@redhat.com>
11409
11410 * infrun.c: Include "target-connection.h".
11411 (check_multi_target_resumption): New.
11412 (proceed): Call it.
11413 * target-connection.c (make_target_connection_string): Make
11414 extern.
11415 * target-connection.h (make_target_connection_string): Declare.
11416
11417 2020-01-10 Pedro Alves <palves@redhat.com>
11418
11419 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11420 * inferior.c (uiout_field_connection): New function.
11421 (print_inferior): Add new "connection-id" column.
11422 (add_inferior_command): Show connection number/string of added
11423 inferior.
11424 * process-stratum-target.h
11425 (process_stratum_target::connection_string): New virtual method.
11426 (process_stratum_target::connection_number): New field.
11427 * remote.c (remote_target::connection_string): New override.
11428 * target-connection.c: New file.
11429 * target-connection.h: New file.
11430 * target.c (decref_target): Remove process_stratum targets from
11431 the connection list.
11432 (target_stack::push): Add process_stratum targets to the
11433 connection list.
11434
11435 2020-01-10 Pedro Alves <palves@redhat.com>
11436
11437 Revert:
11438 2016-04-12 Pedro Alves <palves@redhat.com>
11439 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11440 Remove references to name.
11441 * serial.h (struct serial) <name>: Delete.
11442
11443 2020-01-10 Pedro Alves <palves@redhat.com>
11444
11445 * gdbarch-selftests.c (register_to_value_test): Remove "target
11446 already pushed" check.
11447
11448 2020-01-10 Pedro Alves <palves@redhat.com>
11449 John Baldwin <jhb@FreeBSD.org>
11450
11451 * aarch64-linux-nat.c
11452 (aarch64_linux_nat_target::thread_architecture): Adjust.
11453 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11454 (task_command_1): Likewise.
11455 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11456 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11457 (aix_thread_target::store_registers)
11458 (aix_thread_target::thread_alive): Adjust.
11459 * amd64-fbsd-tdep.c: Include "inferior.h".
11460 (amd64fbsd_get_thread_local_address): Pass down target.
11461 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11462 thread's gdbarch instead of target_gdbarch.
11463 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11464 get_last_target_status.
11465 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11466 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11467 inferiors.
11468 (update_inserted_breakpoint_locations): Skip if inferiors with no
11469 execution.
11470 (update_global_location_list): When handling moribund locations,
11471 find representative inferior for location's pspace, and use thread
11472 count of its process_stratum target.
11473 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11474 * bsd-uthread.c (bsd_uthread_target::wait): Use
11475 as_process_stratum_target and adjust thread_change_ptid and
11476 add_thread calls.
11477 (bsd_uthread_target::update_thread_list): Use
11478 as_process_stratum_target and adjust find_thread_ptid,
11479 thread_change_ptid and add_thread calls.
11480 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11481 find_thread_ptid call.
11482 * corelow.c (add_to_thread_list): Adjust add_thread call.
11483 (core_target_open): Adjust add_thread_silent and thread_count
11484 calls.
11485 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11486 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11487 * event-top.c (async_disconnect): Pop targets from all inferiors.
11488 * exec.c (add_target_sections): Push exec target on all inferiors
11489 sharing the program space.
11490 (remove_target_sections): Remove the exec target from all
11491 inferiors sharing the program space.
11492 (exec_on_vfork): New.
11493 * exec.h (exec_on_vfork): Declare.
11494 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11495 Pass it down.
11496 (fbsd_nat_target::update_thread_list): Adjust.
11497 (fbsd_nat_target::resume): Adjust.
11498 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11499 down.
11500 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11501 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11502 get_thread_arch_regcache call.
11503 * fork-child.c (gdb_startup_inferior): Pass target down to
11504 startup_inferior and set_executing.
11505 * gdbthread.h (struct process_stratum_target): Forward declare.
11506 (add_thread, add_thread_silent, add_thread_with_info)
11507 (in_thread_list): Add process_stratum_target parameter.
11508 (find_thread_ptid(inferior*, ptid_t)): New overload.
11509 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11510 parameter.
11511 (all_threads()): Delete overload.
11512 (all_threads, all_non_exited_threads): Add process_stratum_target
11513 parameter.
11514 (all_threads_safe): Use brace initialization.
11515 (thread_count): Add process_stratum_target parameter.
11516 (set_resumed, set_running, set_stop_requested, set_executing)
11517 (threads_are_executing, finish_thread_state): Add
11518 process_stratum_target parameter.
11519 (switch_to_thread): Use is_current_thread.
11520 * i386-fbsd-tdep.c: Include "inferior.h".
11521 (i386fbsd_get_thread_local_address): Pass down target.
11522 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11523 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11524 have_inferiors check.
11525 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11526 (inf_ptrace_target::attach): Adjust.
11527 * infcall.c (run_inferior_call): Adjust.
11528 * infcmd.c (run_command_1): Pass target to
11529 scoped_finish_thread_state.
11530 (proceed_thread_callback): Skip inferiors with no execution.
11531 (continue_command): Rename 'all_threads' local to avoid hiding
11532 'all_threads' function. Adjust get_last_target_status call.
11533 (prepare_one_step): Adjust set_running call.
11534 (signal_command): Use user_visible_resume_target. Compare thread
11535 pointers instead of inferior_ptid.
11536 (info_program_command): Adjust to pass down target.
11537 (attach_command): Mark target's 'thread_executing' flag.
11538 (stop_current_target_threads_ns): New, factored out from ...
11539 (interrupt_target_1): ... this. Switch inferior before making
11540 target calls.
11541 * inferior-iter.h
11542 (struct all_inferiors_iterator, struct all_inferiors_range)
11543 (struct all_inferiors_safe_range)
11544 (struct all_non_exited_inferiors_range): Filter on
11545 process_stratum_target too. Remove explicit.
11546 * inferior.c (inferior::inferior): Push dummy target on target
11547 stack.
11548 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11549 Add process_stratum_target parameter, and pass it down.
11550 (have_live_inferiors): Adjust.
11551 (switch_to_inferior_and_push_target): New.
11552 (add_inferior_command, clone_inferior_command): Handle
11553 "-no-connection" parameter. Use
11554 switch_to_inferior_and_push_target.
11555 (_initialize_inferior): Mention "-no-connection" option in
11556 the help of "add-inferior" and "clone-inferior" commands.
11557 * inferior.h: Include "process-stratum-target.h".
11558 (interrupt_target_1): Use bool.
11559 (struct inferior) <push_target, unpush_target, target_is_pushed,
11560 find_target_beneath, top_target, process_target, target_at,
11561 m_stack>: New.
11562 (discard_all_inferiors): Delete.
11563 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11564 (all_inferiors, all_non_exited_inferiors): Add
11565 process_stratum_target parameter.
11566 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11567 (target_last_proc_target): New global.
11568 (follow_fork_inferior): Push target on new inferior. Pass target
11569 to add_thread_silent. Call exec_on_vfork. Handle target's
11570 reference count.
11571 (follow_fork): Adjust get_last_target_status call. Also consider
11572 target.
11573 (follow_exec): Push target on new inferior.
11574 (struct execution_control_state) <target>: New field.
11575 (user_visible_resume_target): New.
11576 (do_target_resume): Call target_async.
11577 (resume_1): Set target's threads_executing flag. Consider resume
11578 target.
11579 (commit_resume_all_targets): New.
11580 (proceed): Also consider resume target. Skip threads of inferiors
11581 with no execution. Commit resumtion in all targets.
11582 (start_remote): Pass current inferior to wait_for_inferior.
11583 (infrun_thread_stop_requested): Consider target as well. Pass
11584 thread_info pointer to clear_inline_frame_state instead of ptid.
11585 (infrun_thread_thread_exit): Consider target as well.
11586 (random_pending_event_thread): New inferior parameter. Use it.
11587 (do_target_wait): Rename to ...
11588 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11589 down.
11590 (threads_are_resumed_pending_p, do_target_wait): New.
11591 (prepare_for_detach): Adjust calls.
11592 (wait_for_inferior): New inferior parameter. Handle it. Use
11593 do_target_wait_1 instead of do_target_wait.
11594 (fetch_inferior_event): Adjust. Switch to representative
11595 inferior. Pass target down.
11596 (set_last_target_status): Add process_stratum_target parameter.
11597 Save target in global.
11598 (get_last_target_status): Add process_stratum_target parameter and
11599 handle it.
11600 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11601 (context_switch): Check inferior_ptid == null_ptid before calling
11602 inferior_thread().
11603 (get_inferior_stop_soon): Pass down target.
11604 (wait_one): Rename to ...
11605 (poll_one_curr_target): ... this.
11606 (struct wait_one_event): New.
11607 (wait_one): New.
11608 (stop_all_threads): Adjust.
11609 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11610 event's target.
11611 (switch_back_to_stepped_thread): Also consider target.
11612 (print_stop_event): Update.
11613 (normal_stop): Update. Also consider the resume target.
11614 * infrun.h (wait_for_inferior): Remove declaration.
11615 (user_visible_resume_target): New declaration.
11616 (get_last_target_status, set_last_target_status): New
11617 process_stratum_target parameter.
11618 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11619 process_stratum_target parameter, and use it.
11620 (clear_inline_frame_state (thread_info*)): New.
11621 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11622 process_stratum_target parameter.
11623 (clear_inline_frame_state (thread_info*)): Declare.
11624 * linux-fork.c (delete_checkpoint_command): Pass target down to
11625 find_thread_ptid.
11626 (checkpoint_command): Adjust.
11627 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11628 instead of just tweaking inferior_ptid.
11629 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11630 (exit_lwp): Pass target down to find_thread_ptid.
11631 (attach_proc_task_lwp_callback): Pass target down to
11632 add_thread/set_running/set_executing.
11633 (linux_nat_target::attach): Pass target down to
11634 thread_change_ptid.
11635 (get_detach_signal): Pass target down to find_thread_ptid.
11636 Consider last target status's target.
11637 (linux_resume_one_lwp_throw, resume_lwp)
11638 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11639 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11640 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11641 (linux_nat_target::async_wait_fd): New.
11642 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11643 target down.
11644 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11645 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11646 * linux-thread-db.c (struct thread_db_info::process_target): New
11647 field.
11648 (add_thread_db_info): Save target.
11649 (get_thread_db_info): New process_stratum_target parameter. Also
11650 match target.
11651 (delete_thread_db_info): New process_stratum_target parameter.
11652 Also match target.
11653 (thread_from_lwp): Adjust to pass down target.
11654 (thread_db_notice_clone): Pass down target.
11655 (check_thread_db_callback): Pass down target.
11656 (try_thread_db_load_1): Always push the thread_db target.
11657 (try_thread_db_load, record_thread): Pass target down.
11658 (thread_db_target::detach): Pass target down. Always unpush the
11659 thread_db target.
11660 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11661 target down. Always unpush the thread_db target.
11662 (find_new_threads_callback, thread_db_find_new_threads_2)
11663 (thread_db_target::update_thread_list): Pass target down.
11664 (thread_db_target::pid_to_str): Pass current inferior down.
11665 (thread_db_target::get_thread_local_address): Pass target down.
11666 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11667 target down.
11668 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11669 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11670 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11671 (procfs_init_inferior): Rename to ...
11672 (procfs_target::procfs_init_inferior): ... this and adjust.
11673 (procfs_target::create_inferior, procfs_notice_thread)
11674 (procfs_do_thread_registers): Adjust.
11675 * ppc-fbsd-tdep.c: Include "inferior.h".
11676 (ppcfbsd_get_thread_local_address): Pass down target.
11677 * proc-service.c (ps_xfer_memory): Switch current inferior and
11678 program space as well.
11679 (get_ps_regcache): Pass target down.
11680 * process-stratum-target.c
11681 (process_stratum_target::thread_address_space)
11682 (process_stratum_target::thread_architecture): Pass target down.
11683 * process-stratum-target.h
11684 (process_stratum_target::threads_executing): New field.
11685 (as_process_stratum_target): New.
11686 * ravenscar-thread.c
11687 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11688 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11689 down.
11690 * record-btrace.c (record_btrace_target::info_record): Adjust.
11691 (record_btrace_target::record_method)
11692 (record_btrace_target::record_is_replaying)
11693 (record_btrace_target::fetch_registers)
11694 (get_thread_current_frame_id, record_btrace_target::resume)
11695 (record_btrace_target::wait, record_btrace_target::stop): Pass
11696 target down.
11697 * record-full.c (record_full_wait_1): Switch to event thread.
11698 Pass target down.
11699 * regcache.c (regcache::regcache)
11700 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11701 process_stratum_target parameter and handle it.
11702 (current_thread_target): New global.
11703 (get_thread_regcache): Add process_stratum_target parameter and
11704 handle it. Switch inferior before calling target method.
11705 (get_thread_regcache): Pass target down.
11706 (get_thread_regcache_for_ptid): Pass target down.
11707 (registers_changed_ptid): Add process_stratum_target parameter and
11708 handle it.
11709 (registers_changed_thread, registers_changed): Pass target down.
11710 (test_get_thread_arch_aspace_regcache): New.
11711 (current_regcache_test): Define a couple local test_target_ops
11712 instances and use them for testing.
11713 (readwrite_regcache): Pass process_stratum_target parameter.
11714 (cooked_read_test, cooked_write_test): Pass mock_target down.
11715 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11716 (get_thread_arch_aspace_regcache): Add process_stratum_target
11717 parameter.
11718 (regcache::target): New method.
11719 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11720 (regcache::registers_changed_ptid): Add process_stratum_target
11721 parameter.
11722 (regcache::m_target): New field.
11723 (registers_changed_ptid): Add process_stratum_target parameter.
11724 * remote.c (remote_state::supports_vCont_probed): New field.
11725 (remote_target::async_wait_fd): New method.
11726 (remote_unpush_and_throw): Add remote_target parameter.
11727 (get_current_remote_target): Adjust.
11728 (remote_target::remote_add_inferior): Push target.
11729 (remote_target::remote_add_thread)
11730 (remote_target::remote_notice_new_inferior)
11731 (get_remote_thread_info): Pass target down.
11732 (remote_target::update_thread_list): Skip threads of inferiors
11733 bound to other targets. (remote_target::close): Don't discard
11734 inferiors. (remote_target::add_current_inferior_and_thread)
11735 (remote_target::process_initial_stop_replies)
11736 (remote_target::start_remote)
11737 (remote_target::remote_serial_quit_handler): Pass down target.
11738 (remote_target::remote_unpush_target): New remote_target
11739 parameter. Unpush the target from all inferiors.
11740 (remote_target::remote_unpush_and_throw): New remote_target
11741 parameter. Pass it down.
11742 (remote_target::open_1): Check whether the current inferior has
11743 execution instead of checking whether any inferior is live. Pass
11744 target down.
11745 (remote_target::remote_detach_1): Pass down target. Use
11746 remote_unpush_target.
11747 (extended_remote_target::attach): Pass down target.
11748 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11749 (remote_target::append_resumption): Pass down target.
11750 (remote_target::append_pending_thread_resumptions)
11751 (remote_target::remote_resume_with_hc, remote_target::resume)
11752 (remote_target::commit_resume): Pass down target.
11753 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11754 (remote_target::interrupt_query)
11755 (remote_target::remove_new_fork_children)
11756 (remote_target::check_pending_events_prevent_wildcard_vcont)
11757 (remote_target::remote_parse_stop_reply)
11758 (remote_target::process_stop_reply): Pass down target.
11759 (first_remote_resumed_thread): New remote_target parameter. Pass
11760 it down.
11761 (remote_target::wait_as): Pass down target.
11762 (unpush_and_perror): New remote_target parameter. Pass it down.
11763 (remote_target::readchar, remote_target::remote_serial_write)
11764 (remote_target::getpkt_or_notif_sane_1)
11765 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11766 down target.
11767 (remote_target::mourn_inferior): Pass down target. Use
11768 remote_unpush_target.
11769 (remote_target::core_of_thread)
11770 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11771 (remote_target::pid_to_exec_file)
11772 (remote_target::thread_handle_to_thread_info): Pass down target.
11773 (remote_target::async_wait_fd): New.
11774 * riscv-fbsd-tdep.c: Include "inferior.h".
11775 (riscv_fbsd_get_thread_local_address): Pass down target.
11776 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11777 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11778 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11779 Adjust.
11780 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11781 * solib-svr4.c (enable_break): Pass down target.
11782 * spu-multiarch.c (parse_spufs_run): Pass down target.
11783 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11784 * target-delegates.c: Regenerate.
11785 * target.c (g_target_stack): Delete.
11786 (current_top_target): Return the current inferior's top target.
11787 (target_has_execution_1): Refer to the passed-in inferior's top
11788 target.
11789 (target_supports_terminal_ours): Check whether the initial
11790 inferior was already created.
11791 (decref_target): New.
11792 (target_stack::push): Incref/decref the target.
11793 (push_target, push_target, unpush_target): Adjust.
11794 (target_stack::unpush): Defref target.
11795 (target_is_pushed): Return bool. Adjust to refer to the current
11796 inferior's target stack.
11797 (dispose_inferior): Delete, and inline parts ...
11798 (target_preopen): ... here. Only dispose of the current inferior.
11799 (target_detach): Hold strong target reference while detaching.
11800 Pass target down.
11801 (target_thread_name): Add assertion.
11802 (target_resume): Pass down target.
11803 (target_ops::beneath, find_target_at): Adjust to refer to the
11804 current inferior's target stack.
11805 (get_dummy_target): New.
11806 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11807 has a thread running.
11808 (initialize_targets): Rename to ...
11809 (_initialize_target): ... this.
11810 * target.h: Include "gdbsupport/refcounted-object.h".
11811 (struct target_ops): Inherit refcounted_object.
11812 (target_ops::shortname, target_ops::longname): Make const.
11813 (target_ops::async_wait_fd): New method.
11814 (decref_target): Declare.
11815 (struct target_ops_ref_policy): New.
11816 (target_ops_ref): New typedef.
11817 (get_dummy_target): Declare function.
11818 (target_is_pushed): Return bool.
11819 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11820 (all_matching_threads_iterator::all_matching_threads_iterator):
11821 Handle filter target.
11822 * thread-iter.h (struct all_matching_threads_iterator, struct
11823 all_matching_threads_range, class all_non_exited_threads_range):
11824 Filter by target too. Remove explicit.
11825 * thread.c (threads_executing): Delete.
11826 (inferior_thread): Pass down current inferior.
11827 (clear_thread_inferior_resources): Pass down thread pointer
11828 instead of ptid_t.
11829 (add_thread_silent, add_thread_with_info, add_thread): Add
11830 process_stratum_target parameter. Use it for thread and inferior
11831 searches.
11832 (is_current_thread): New.
11833 (thread_info::deletable): Use it.
11834 (find_thread_ptid, thread_count, in_thread_list)
11835 (thread_change_ptid, set_resumed, set_running): New
11836 process_stratum_target parameter. Pass it down.
11837 (set_executing): New process_stratum_target parameter. Pass it
11838 down. Adjust reference to 'threads_executing'.
11839 (threads_are_executing): New process_stratum_target parameter.
11840 Adjust reference to 'threads_executing'.
11841 (set_stop_requested, finish_thread_state): New
11842 process_stratum_target parameter. Pass it down.
11843 (switch_to_thread): Also match inferior.
11844 (switch_to_thread): New process_stratum_target parameter. Pass it
11845 down.
11846 (update_threads_executing): Reimplement.
11847 * top.c (quit_force): Pop targets from all inferior.
11848 (gdb_init): Don't call initialize_targets.
11849 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11850 Declare.
11851 (windows_add_thread, windows_delete_thread): Adjust.
11852 (get_windows_debug_event): Rename to ...
11853 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11854 * tracefile-tfile.c (tfile_target_open): Pass down target.
11855 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11856 Forward declare.
11857 (switch_to_thread): Add process_stratum_target parameter.
11858 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11859 parameter. Use it.
11860 (mi_on_resume): Pass target down.
11861 * nat/fork-inferior.c (startup_inferior): Add
11862 process_stratum_target parameter. Pass it down.
11863 * nat/fork-inferior.h (startup_inferior): Add
11864 process_stratum_target parameter.
11865 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11866
11867 2020-01-10 Pedro Alves <palves@redhat.com>
11868
11869 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11870 directly. Instead find the first thread in the thread list and
11871 use switch_to_thread.
11872
11873 2020-01-10 Pedro Alves <palves@redhat.com>
11874
11875 * remote.c (remote_target::remote_add_inferior): Don't bind a
11876 process to the current inferior if the current inferior is already
11877 bound to a process.
11878
11879 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11880 Pedro Alves <palves@redhat.com>
11881
11882 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11883 If no process is specified, return null_ptid instead of
11884 inferior_ptid.
11885 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11886 TARGET_WAITKIND_SIGNALLED with no pid.
11887
11888 2020-01-10 Pedro Alves <palves@redhat.com>
11889
11890 * remote.c (first_remote_resumed_thread): New.
11891 (remote_target::wait_as): Use it as default event_ptid instead of
11892 inferior_ptid.
11893
11894 2020-01-10 Pedro Alves <palves@redhat.com>
11895
11896 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11897
11898 2020-01-10 Pedro Alves <palves@redhat.com>
11899
11900 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11901 not -1.
11902
11903 2020-01-10 Pedro Alves <palves@redhat.com>
11904
11905 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11906 ptid to get_last_target_status.
11907 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11908 ptid to get_last_target_status.
11909 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11910 get_last_target_status.
11911 (info_program_command): Don't pass a target_waitstatus to
11912 get_last_target_status.
11913 * infrun.c (init_wait_for_inferior): Use
11914 nullify_last_target_wait_ptid.
11915 (get_last_target_status): Handle nullptr arguments.
11916 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11917 (print_stop_event): Don't pass a ptid to get_last_target_status.
11918 (normal_stop): Don't pass a ptid to get_last_target_status.
11919 * infrun.h (get_last_target_status, set_last_target_status): Move
11920 comments here and update.
11921 (nullify_last_target_wait_ptid): Declare.
11922 * linux-fork.c (fork_load_infrun_state): Remove local extern
11923 declaration of nullify_last_target_wait_ptid.
11924 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11925 to get_last_target_status.
11926
11927 2020-01-10 Pedro Alves <palves@redhat.com>
11928
11929 * gdbthread.h (scoped_restore_current_thread)
11930 <dont_restore, restore, m_dont_restore>: Declare.
11931 * thread.c (thread_alive): Add assertion. Return bool.
11932 (switch_to_thread_if_alive): New.
11933 (prune_threads): Switch inferior/thread.
11934 (print_thread_info_1): Switch thread before calling target methods.
11935 (scoped_restore_current_thread::restore): New, factored out from
11936 ...
11937 (scoped_restore_current_thread::~scoped_restore_current_thread):
11938 ... this.
11939 (scoped_restore_current_thread::scoped_restore_current_thread):
11940 Add assertion.
11941 (thread_apply_all_command, thread_select): Use
11942 switch_to_thread_if_alive.
11943 * infrun.c (proceed, restart_threads, handle_signal_stop)
11944 (switch_back_to_stepped_thread): Switch current thread before
11945 calling target methods.
11946
11947 2020-01-10 Pedro Alves <palves@redhat.com>
11948
11949 * inferior.c (switch_to_inferior_no_thread): New function,
11950 factored out from ...
11951 (inferior_command): ... here.
11952 * inferior.h (switch_to_inferior_no_thread): Declare.
11953 * mi/mi-main.c (run_one_inferior): Use
11954 switch_to_inferior_no_thread.
11955
11956 2020-01-10 Pedro Alves <palves@redhat.com>
11957
11958 * infcmd.c (kill_command): Remove dead code.
11959
11960 2020-01-10 Pedro Alves <palves@redhat.com>
11961
11962 * remote.c (remote_target::mourn_inferior): No longer check
11963 whether the target is running.
11964
11965 2020-01-10 Pedro Alves <palves@redhat.com>
11966
11967 * corelow.c (core_target::has_execution): Change parameter type to
11968 inferior pointer.
11969 * inferior.c (number_of_live_inferiors): Use
11970 inferior::has_execution instead of target_has_execution_1.
11971 * inferior.h (inferior::has_execution): New.
11972 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11973 inferior::has_execution instead of target_has_execution_1.
11974 * process-stratum-target.c
11975 (process_stratum_target::has_execution): Change parameter type to
11976 inferior pointer. Check the inferior's PID instead of
11977 inferior_ptid.
11978 * process-stratum-target.h
11979 (process_stratum_target::has_execution): Change parameter type to
11980 inferior pointer.
11981 * record-full.c (record_full_core_target::has_execution): Change
11982 parameter type to inferior pointer.
11983 * target.c (target_has_execution_1): Change parameter type to
11984 inferior pointer.
11985 (target_has_execution_current): Adjust.
11986 * target.h (target_ops::has_execution): Change parameter type to
11987 inferior pointer.
11988 (target_has_execution_1): Change parameter type to inferior
11989 pointer. Change return type to bool.
11990 * tracefile.h (tracefile_target::has_execution): Change parameter
11991 type to inferior pointer.
11992
11993 2020-01-10 Pedro Alves <palves@redhat.com>
11994
11995 * exceptions.c (print_flush): Remove current_top_target() check.
11996
11997 2020-01-10 Pedro Alves <palves@redhat.com>
11998
11999 * remote.c (show_remote_exec_file): Show the current inferior's
12000 exec-file instead of the command variable's value.
12001
12002 2020-01-10 Pedro Alves <palves@redhat.com>
12003
12004 * record-full.c (record_full_resume_ptid): New global.
12005 (record_full_target::resume): Set it.
12006 (record_full_wait_1): Use record_full_resume_ptid instead of
12007 inferior_ptid.
12008
12009 2020-01-10 Pedro Alves <palves@redhat.com>
12010
12011 * gdbthread.h (scoped_restore_current_thread)
12012 <dont_restore, restore, m_dont_restore>: Declare.
12013 * thread.c (thread_alive): Add assertion. Return bool.
12014 (switch_to_thread_if_alive): New.
12015 (prune_threads): Switch inferior/thread.
12016 (print_thread_info_1): Switch thread before calling target methods.
12017 (scoped_restore_current_thread::restore): New, factored out from
12018 ...
12019 (scoped_restore_current_thread::~scoped_restore_current_thread):
12020 ... this.
12021 (scoped_restore_current_thread::scoped_restore_current_thread):
12022 Add assertion.
12023 (thread_apply_all_command, thread_select): Use
12024 switch_to_thread_if_alive.
12025
12026 2020-01-10 George Barrett <bob@bob131.so>
12027
12028 * stap-probe.c (stap_modify_semaphore): Don't check for null
12029 semaphores.
12030 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12031 for null semaphores.
12032
12033 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12034
12035 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12036 all source windows, and maintain horizontal scroll status while
12037 doing so.
12038
12039 2020-01-09 Tom Tromey <tom@tromey.com>
12040
12041 PR tui/18932:
12042 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12043 update_source_window, not print_source_lines.
12044
12045 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12046
12047 * tui/tui.c (tui_enable): Register tui hooks after calling
12048 tui_display_main.
12049
12050 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12051
12052 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12053
12054 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12055
12056 * thread.c (print_thread_info_1): Fix indentation.
12057
12058 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12059
12060 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12061 unique_xmalloc_ptr outside the if to always free the demangled name.
12062
12063 2020-01-08 Tom Tromey <tromey@adacore.com>
12064
12065 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12066 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12067 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12068 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12069 Remove.
12070 (section_offsets): New typedef.
12071 * symtab.c (fixup_section, get_msymbol_address): Update.
12072 * symmisc.c (dump_msymbols): Update.
12073 * symfile.h (relative_addr_info_to_section_offsets)
12074 (symfile_map_offsets_to_segments): Update.
12075 * symfile.c (build_section_addr_info_from_objfile)
12076 (init_objfile_sect_indices): Update.
12077 (struct place_section_arg): Change type of "offsets".
12078 (place_section): Update.
12079 (relative_addr_info_to_section_offsets): Change type of
12080 "section_offsets". Remove "num_sections" parameter.
12081 (default_symfile_offsets, syms_from_objfile_1)
12082 (set_objfile_default_section_offset): Update.
12083 (reread_symbols): No need to preserve section offsets by hand.
12084 (symfile_map_offsets_to_segments): Change type of "offsets".
12085 * stap-probe.c (relocate_address): Update.
12086 * stabsread.h (process_one_symbol): Update.
12087 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12088 (solib_target_relocate_section_addresses): Update.
12089 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12090 Update.
12091 * solib-frv.c (frv_relocate_main_executable): Update.
12092 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12093 * solib-aix.c (solib_aix_get_section_offsets): Change return
12094 type.
12095 (solib_aix_solib_create_inferior_hook): Update.
12096 * remote.c (remote_target::get_offsets): Update.
12097 * psymtab.c (find_pc_sect_psymtab): Update.
12098 * psympriv.h (struct partial_symbol) <address, text_low,
12099 text_high>: Update.
12100 * objfiles.h (obj_section_offset): Update.
12101 (struct objfile) <section_offsets>: Change type.
12102 <num_sections>: Remove.
12103 (objfile_relocate): Update.
12104 * objfiles.c (entry_point_address_query): Update
12105 (relocate_one_symbol): Change type of "section_offsets".
12106 (objfile_relocate1, objfile_relocate1): Change type of
12107 "new_offsets".
12108 (objfile_rebase1): Update.
12109 * mipsread.c (mipscoff_symfile_read): Update.
12110 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12111 parameter.
12112 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12113 (parse_external, psymtab_to_symtab_1): Update.
12114 * machoread.c (macho_symfile_offsets): Update.
12115 * ia64-tdep.c (ia64_find_unwind_table): Update.
12116 * hppa-tdep.c (read_unwind_info): Update.
12117 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12118 * dwarf2read.c (create_addrmap_from_index)
12119 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12120 (process_psymtab_comp_unit_reader, add_partial_symbol)
12121 (add_partial_subprogram, process_full_comp_unit)
12122 (read_file_scope, read_func_scope, read_lexical_block_scope)
12123 (read_call_site_scope, dwarf2_rnglists_process)
12124 (dwarf2_ranges_process, dwarf2_ranges_read)
12125 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12126 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12127 Update.
12128 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12129 Update.
12130 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12131 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12132 (process_one_symbol): Change type of "section_offsets".
12133 * ctfread.c (get_objfile_text_range): Update.
12134 * coffread.c (coff_symtab_read, enter_linenos)
12135 (process_coff_symbol): Update.
12136 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12137 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12138
12139 2020-01-08 Tom Tromey <tromey@adacore.com>
12140
12141 * dwarf2read.c (parse_macro_definition): Use std::string.
12142 (parse_macro_definition): Likewise.
12143
12144 2020-01-08 Tom Tromey <tromey@adacore.com>
12145
12146 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12147 (ATTR_ALLOC_CHUNK): Remove.
12148
12149 2020-01-08 Tom Tromey <tromey@adacore.com>
12150
12151 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12152
12153 2020-01-08 Tom Tromey <tromey@adacore.com>
12154
12155 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12156 (dwarf2_compute_name, open_dwo_file): Likewise.
12157 (process_enumeration_scope): Use std::vector.
12158 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12159 (partial_die_info::fixup, dwarf2_start_subfile)
12160 (guess_full_die_structure_name, dwarf2_name): Likewise.
12161 (determine_prefix): Update.
12162 (guess_full_die_structure_name): Make return type const.
12163 (partial_die_full_name): Return unique_xmalloc_ptr.
12164 (DW_FIELD_ALLOC_CHUNK): Remove.
12165
12166 2020-01-07 Tom Tromey <tromey@adacore.com>
12167
12168 PR build/24937:
12169 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12170
12171 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12172
12173 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12174
12175 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12176
12177 * stack.c (print_frame_info): Move disassemble_next_line code
12178 inside source_print block.
12179
12180 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12181
12182 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12183 gdb/signals.h, as we are now using native signal symbols.
12184
12185 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12186
12187 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12188 overflow by an early check of content vs threshold.
12189 * tui/tui-source.c (tui_source_window::line_is_displayed):
12190 Likewise.
12191
12192 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12193
12194 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12195
12196 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12197
12198 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12199 export table if no section contains it's RVA.
12200
12201 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12202
12203 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12204
12205 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12206
12207 * source.c (print_source_lines_base): Set last_line_listed.
12208
12209 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12210
12211 * tui/tui-disasm.c: Remove trailing spaces.
12212
12213 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12214 Pedro Alves <palves@redhat.com>
12215
12216 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12217 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12218 (windows_gdb_signal_to_target): New function, uses the above
12219 enumeration to convert GDB internal signal codes to equivalent
12220 Windows codes.
12221 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12222 * windows-nat.c: Include "gdb_wait.h".
12223 (get_windows_debug_event): Extract the fatal exception from the
12224 exit status and convert to the equivalent Posix signal number.
12225 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12226 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12227 * gdbsupport/gdb_wait.c: New file, implements
12228 windows_status_to_termsig.
12229 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12230 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12231
12232 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12233
12234 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12235 show_layout.
12236
12237 2020-01-05 Luis Machado <luis.machado@linaro.org>
12238
12239 * aarch64-linux-nat.c
12240 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12241 and bfd_mach_aarch64.
12242
12243 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12244
12245 * ui-file.c (stdio_file::can_emit_style_escape)
12246 (tee_file::can_emit_style_escape): Ensure style is used also on
12247 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12248 to gdb_stdout.
12249 * main.c (set_gdb_data_directory): Use file style to output the
12250 warning that the given pathname is not a directory.
12251 * top.c (show_history_filename, gdb_safe_append_history)
12252 (show_gdb_datadir): Use file style.
12253
12254 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12255
12256 * solib-target.c (struct lm_info_target):
12257 Change offsets to be a unique_xmalloc_ptr.
12258 (solib_target_relocate_section_addresses): Update.
12259
12260 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12261
12262 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12263
12264 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12265
12266 * MAINTAINERS (Write After Approval): Add myself.
12267
12268 2020-01-02 Luis Machado <luis.machado@linaro.org>
12269
12270 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12271 Cell BE architecture.
12272 * target.h (struct target_ops) <thread_architecture>: Likewise.
12273
12274 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12275
12276 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12277
12278 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12279
12280 * MAINTAINERS (Write After Approval): Add myself.
12281
12282 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12283
12284 * gdbarch.sh: Update copyright year range of generated files.
12285
12286 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12287
12288 Update copyright year range in all GDB files.
12289
12290 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12291
12292 * copyright.py: Convert to Python 3.
12293
12294 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12295
12296 * copyright.py: Adapt after move of gnulib directory from gdb
12297 directory to toplevel directory.
12298
12299 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12300
12301 * copyright.py (main): Exit if run from the wrong directory.
12302
12303 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12304
12305 * top.c (print_gdb_version): Change copyright year to 2020.
12306
12307 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12308
12309 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12310
12311 For older changes see ChangeLog-2019.
12312 \f
12313 Local Variables:
12314 mode: change-log
12315 left-margin: 8
12316 fill-column: 74
12317 version-control: never
12318 coding: utf-8
12319 End:
This page took 0.282908 seconds and 5 git commands to generate.