]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
gdb: fix whitespace issues in ChangeLog files
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4 gdb_bfd_sections): New.
5 * maint.c (print_bfd_section_info): Change param type to
6 maint_print_section_data.
7 (print_objfile_section_info): Likewise.
8 (print_bfd_section_info_maybe_relocated): Likewise.
9 (maintenance_info_sections): Use gdb_bfd_sections.
10
11 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
12
13 * MAINTAINERS: Add ARC target and maintainer.
14
15 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
16
17 * configure.tgt: ARC support for GNU/Linux.
18 * Makefile.in (ALL_TARGET_OBJS): Likewise.
19 * arc-linux-tdep.c: New file.
20 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
21 * arc-tdep.c (arc_write_pc): Use it.
22
23 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
24
25 * arc-tdep.c (arc_check_for_hardware_loop): New.
26 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
27
28 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
29
30 * arc-tdep.h: Include "gdbarch.h".
31
32 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
33
34 * arch/arc.h
35 (arc_gdbarch_features): New class to stir the selection of target XML.
36 (arc_create_target_description): Use FEATURES to choose XML target.
37 (arc_lookup_target_description): Use arc_create_target_description
38 to create _new_ target descriptions or return the already created
39 ones if the FEATURES is the same.
40 * arch/arc.c: Implementation of prototypes described above.
41 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
42 (arc_gdbarch_features_init): Initialize the FEATURES struct.
43 * arc-tdep.c (*_feature_name): Make feature names consistent.
44 (arc_register_feature): A new struct to hold information about
45 registers of a particular target/feature.
46 (arc_check_tdesc_feature): Check if XML provides registers in
47 compliance with ARC_REGISTER_FEATURE structs.
48 (arc_update_acc_reg_names): Add aliases for r58 and r59.
49 (determine_*_reg_feature_set): Which feature name to look for.
50 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
51 (mach_type_to_arc_isa): Convert from a set of binutils machine types
52 to expected ISA enums to be used in arc_gdbarch_features structs.
53 * features/Makefile (FEATURE_XMLFILES): Add new files.
54 * gdb/features/arc/v1-aux.c: New file.
55 * gdb/features/arc/v1-aux.xml: Likewise.
56 * gdb/features/arc/v1-core.c: Likewise.
57 * gdb/features/arc/v1-core.xml: Likewise.
58 * gdb/features/arc/v2-aux.c: Likewise.
59 * gdb/features/arc/v2-aux.xml: Likewise.
60 * gdb/features/arc/v2-core.c: Likewise.
61 * gdb/features/arc/v2-core.xml: Likewise.
62 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
63
64 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
65 Andrew Burgess <andrew.burgess@embecosm.com>
66
67 PR m2/26372
68 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
69 an assert. Remove single element array indexing pattern as the
70 MULTI_SUBSCRIPT support will handle this case too.
71
72 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
73
74 * value.h (valprint_check_validity): Move declaration from
75 here...
76 * valprint.h (valprint_check_validity): ... to here.
77
78 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
79
80 * debug.h: New file.
81 * debug.c (debug_prefixed_vprintf): New function.
82 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
83 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
84
85 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
86
87 * infrun.h (infrun_debug_printf_1): New function declaration.
88 (infrun_debug_printf): New macro.
89 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
90 throughout.
91 (infrun_debug_printf): New function.
92 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
93 (handle_jit_event): Likewise.
94
95 2020-08-21 Mark Wielaard <mark@klomp.org>
96
97 * ada-lex.l: Extend register warnings diagnostics comment for g++.
98
99 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
100
101 * frame.c (enum class frame_id_status): New.
102 (struct frame_info) <this_id::p>: Change type to frame_id_status.
103 (fprintf_frame): Update.
104 (compute_frame_id): Set frame id status to "computing" on entry.
105 Set it back to "not_computed" on failure and to "computed" on
106 success.
107 (get_frame_id): Assert the frame id is not being computed.
108 (create_sentinel_frame): Use frame_id_status::COMPUTED.
109 (create_new_frame): Likewise.
110 (frame_cleanup_after_sniffer): Update assert.
111
112 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
113
114 * regcache.c (pid_ptid_regcache_map): New type.
115 (target_ptid_regcache_map): Remove.
116 (target_pid_ptid_regcache_map): New type.
117 (regcaches): Change type to target_pid_ptid_regcache_map.
118 (get_thread_arch_aspace_regcache): Update.
119 (regcache_thread_ptid_changed): Update, handle pid-like ptid
120 case.
121 (regcaches_size): Update.
122 (regcache_count): Update.
123 (registers_changed_ptid_target_pid_test): New.
124 (_initialize_regcache): Register new test.
125
126 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
127
128 * regcache.c (regcache_count): New.
129 (struct regcache_test_data): New.
130 (regcache_test_data_up): New.
131 (populate_regcaches_for_test): New.
132 (regcaches_test): Remove.
133 (get_thread_arch_aspace_regcache_test): New.
134 (registers_changed_ptid_all_test): New.
135 (registers_changed_ptid_target_test): New.
136 (registers_changed_ptid_target_ptid_test): New.
137 (regcache_thread_ptid_changed): Remove regcache_count lambda.
138 (_initialize_regcache): Register new tests.
139
140 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
141
142 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
143 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
144 gdbarch and aspace parameter. Use current inferior's aspace.
145 Validate regcache's arch value.
146 (regcaches_test): Update.
147
148 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
149
150 * regcache.c (regcaches_test): Call registers_changed.
151
152 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
153
154 * infrun.c (process_event_stop_test): Fix typo "breapoint".
155
156 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
157
158 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
159 to find the end of prologue for flang compiled binaries.
160 * arm-tdep.c (arm_skip_prologue): Likewise.
161 * i386-tdep.c (i386_skip_prologue): Likewise.
162 * producer.c (producer_is_llvm): New function.
163 (producer_parsing_tests): Added new tests for clang/flang.
164 * producer.h (producer_is_llvm): New declaration.
165
166 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
167
168 * linux-nat.c (linux_nat_debug_printf): New function.
169 (linux_nat_debug_printf_1): New macro. Use throughout the file.
170
171 2020-08-18 Aaron Merey <amerey@redhat.com>
172
173 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
174 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
175 (CLIBS): Add DEBUGINFOD_LIBS.
176
177 2020-08-17 Sergei Trofimovich <siarheit@google.com>
178
179 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
180 'gdbarch_num_regs'.
181
182 2020-08-17 Tom Tromey <tromey@adacore.com>
183
184 * ada-varobj.c (ada_varobj_decode_var): Handle case where
185 ada_get_decoded_value returns NULL.
186
187 2020-08-17 Tom Tromey <tromey@adacore.com>
188
189 * python/py-inferior.c (infpy_search_memory): Use
190 gdb_py_object_from_ulongest.
191 * python/py-infevents.c (create_inferior_call_event_object)
192 (create_memory_changed_event_object): Use
193 gdb_py_object_from_ulongest.
194 * python/py-linetable.c (ltpy_entry_get_pc): Use
195 gdb_py_object_from_ulongest.
196
197 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
198
199 * loc.c (class symbol_needs_eval_context): Fix indentation.
200
201 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
202
203 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
204 bool.
205
206 2020-08-17 Tom de Vries <tdevries@suse.de>
207
208 PR gdb/26393
209 * gdbtypes.c (dump_dynamic_prop): New function.
210 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
211
212 2020-08-15 Tom de Vries <tdevries@suse.de>
213
214 PR backtrace/26390
215 * stack.c (print_frame_args): Temporarily set the selected
216 frame to FRAME while printing the frame's arguments.
217
218 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
219
220 PR breakpoints/26385
221 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
222 Always clear watchpoint with PTRACE_SET_DEBUGREG.
223
224 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
225
226 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
227 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
228 and >= to check return value instead of == -1 and != -1.
229
230 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
231
232 * utils.h (class gdb_argv) <as_array_view>: New method.
233 * utils.c (gdb_argv_as_array_view_test): New.
234 (_initialize_utils): Register selftest.
235 * maint.c (maintenance_selftest): Use the new method.
236
237 2020-08-13 Kamil Rytarowski <n54@gmx.com>
238
239 * target.h (supports_dumpcore, dumpcore): New
240 function declarations.
241 * target.c (supports_dumpcore, dumpcore): New
242 functions.
243 * target-delegates.c: Rebuild.
244 * gcore.c (gcore_command): Use target_supports_dumpcore ()
245 and target_dumpcore ().
246
247 2020-08-13 Aaron Merey <amerey@redhat.com>
248
249 * debuginfod-support.c: Replace global variables with user_data.
250
251 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
252
253 * maint.c (maintenance_selftest): Split args and pass array_view
254 to run_tests.
255
256 2020-08-12 Luis Machado <luis.machado@linaro.org>
257
258 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
259 type's length.
260 Use %s and pulongest to print the length.
261
262 2020-08-12 Pedro Alves <palves@redhat.com>
263
264 * NEWS: Move "Multi-target debugging support" item to the
265 "Changes since GDB 9" section.
266
267 2020-08-12 Pedro Alves <palves@redhat.com>
268
269 PR gdb/26336
270 * progspace.c (program_space::remove_objfile): Invalidate the
271 frame cache.
272
273 2020-08-11 Tom de Vries <tdevries@suse.de>
274
275 * MAINTAINERS: Mark ms1 as deleted.
276
277 2020-08-10 Luis Machado <luis.machado@linaro.org>
278
279 PR gdb/26310
280
281 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
282 act accordingly.
283 (aarch64_analyze_prologue_test): Add more unit tests to exercise
284 movz/str/stur/stp skipping behavior.
285
286 2020-08-10 Luis Machado <luis.machado@linaro.org>
287
288 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
289 struct user_sve_header instead of struct sve_context.
290
291 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
292
293 * read.h (dwarf2_fetch_die_loc_sect_off,
294 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
295 `void *` parameter with function_view.
296 * read.c (dwarf2_fetch_die_loc_sect_off,
297 dwarf2_fetch_die_loc_cu_off): Likewise.
298 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
299 (per_cu_dwarf_call): Adjust.
300 (get_frame_address_in_block_wrapper): Remove.
301 (indirect_synthetic_pointer): Adjust.
302 (get_ax_pc): Remove.
303 (dwarf2_compile_expr_to_ax): Adjust.
304
305 2020-08-08 Tom de Vries <tdevries@suse.de>
306
307 PR build/26344
308 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
309 constructor.
310 * regcache.c (get_thread_arch_aspace_regcache): Same.
311
312 2020-08-07 Tom Tromey <tromey@adacore.com>
313
314 * ravenscar-thread.c
315 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
316 New method.
317 (ravenscar_thread_target::wait): Check
318 runtime_initialized.
319 (ravenscar_thread_target::prepare_to_store)
320 (ravenscar_thread_target::stopped_by_sw_breakpoint)
321 (ravenscar_thread_target::stopped_by_hw_breakpoint)
322 (ravenscar_thread_target::stopped_by_watchpoint)
323 (ravenscar_thread_target::stopped_data_address)
324 (ravenscar_thread_target::core_of_thread): Use
325 scoped_restore_current_thread and
326 set_base_thread_from_ravenscar_task.
327
328 2020-08-07 Tom Tromey <tromey@adacore.com>
329
330 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
331
332 2020-08-07 Tom Tromey <tromey@adacore.com>
333
334 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
335 update_inferior_ptid before update_thread_list.
336 (temporarily_change_regcache_ptid): New class.
337 (ravenscar_thread_target::fetch_registers)
338 (ravenscar_thread_target::store_registers)
339 (ravenscar_thread_target::prepare_to_store): Use base thread when
340 forwarding operation.
341
342 2020-08-07 Tom Tromey <tromey@adacore.com>
343
344 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
345 "is_pid" case.
346
347 2020-08-07 Tom Tromey <tromey@adacore.com>
348
349 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
350 New methods.
351 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
352 first.
353 (ravenscar_thread_target::add_thread): Rename from
354 ravenscar_add_thread.
355 (ravenscar_thread_target::update_thread_list): Use a lambda.
356 (ravenscar_thread_target::xfer_partial): New method.
357
358 2020-08-07 Tom Tromey <tromey@adacore.com>
359
360 * ada-lang.h (ada_task_list_iterator_ftype): Now a
361 gdb::function_view.
362 (iterate_over_live_ada_tasks): Change type of argument.
363 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
364 of argument.
365
366 2020-08-07 Tom Tromey <tromey@adacore.com>
367
368 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
369 Remove.
370 (ravenscar_thread_target::extra_thread_info): Remove.
371 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
372 defer to target beneath for non-Ravenscar threads.
373
374 2020-08-07 Tom Tromey <tromey@adacore.com>
375
376 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
377 get_base_thread_from_ravenscar_task>: Now methods.
378 <m_cpu_map>: New member.
379 (ravenscar_thread_target::get_thread_base_cpu): Rename from
380 ravenscar_get_thread_base_cpu. Check m_cpu_map.
381 (ravenscar_thread_target::task_is_currently_active): Update.
382 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
383 Now a method.
384 (ravenscar_thread_target::add_active_thread): Put initial thread
385 into the m_cpu_map.
386
387 2020-08-07 Tom Tromey <tromey@adacore.com>
388
389 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
390 event_ptid.
391
392 2020-08-07 Tom Tromey <tromey@adacore.com>
393
394 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
395 runtime_initialized.
396
397 2020-08-07 Tom Tromey <tromey@adacore.com>
398
399 * ravenscar-thread.c (ravenscar_thread_target): Don't call
400 add_active_thread.
401 (ravenscar_thread_target::add_active_thread): Now public.
402 (ravenscar_inferior_created): Call add_active_thread after pushing
403 the target.
404
405 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
406
407 * regcache.c (ptid_regcache_map): New type.
408 (target_ptid_regcache_map): New type.
409 (regcaches): Change type to target_ptid_regcache_map.
410 (get_thread_arch_aspace_regcache): Update to regcaches' new
411 type.
412 (regcache_thread_ptid_changed): Likewise.
413 (registers_changed_ptid): Likewise.
414 (regcaches_size): Likewise.
415 (regcaches_test): Update.
416 (regcache_thread_ptid_changed): Update.
417 * regcache.h (regcache_up): New type.
418 * gdbsupport/ptid.h (hash_ptid): New struct.
419
420 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
421
422 * observable.h (thread_ptid_changed): Add parameter
423 `process_stratum_target *`.
424 * infrun.c (infrun_thread_ptid_changed): Add parameter
425 `process_stratum_target *` and use it.
426 (selftests): New namespace.
427 (infrun_thread_ptid_changed): New function.
428 (_initialize_infrun): Register selftest.
429 * regcache.c (regcache_thread_ptid_changed): Add parameter
430 `process_stratum_target *` and use it.
431 (regcache_thread_ptid_changed): New function.
432 (_initialize_regcache): Register selftest.
433 * thread.c (thread_change_ptid): Pass target to
434 thread_ptid_changed observable.
435
436 2020-08-06 Caroline Tice <cmtice@google.com>
437
438 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
439 (struct dwp_sections): Update field comments. Add loclists and
440 rnglists fields.
441 (struct virtual_v2_dwo_sections): Rename struct to
442 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
443 size & offset fields for loclists and rnglists.
444 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
445 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
446 skipping dummy type units.
447 (create_dwp_hash_table): Update the large comment above the function to
448 discuss Version 5 DWP files as well, with references. Update all the
449 version checks in the function to check for version 5 as well. Add new
450 section at the end to create dwp hash table for version 5.
451 (create_dwp_v2_section): Rename function to
452 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
453 Add V5 to error message text.
454 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
455 into calls to create_dwp_v2_or_v5_section.
456 (create_dwo_unit_in_dwp_v5): New function.
457 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
458 check for version2; add else clause to handle version 5.
459 (open_and_init_dwo_file): Add code to check dwarf version & only call
460 create_debug_types_hash_table (with sections.types) if version is not 5;
461 else call create_debug_type_hash_table, with sections.info.
462 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
463 version 5.
464 (dwarf2_locate_v5_dwp_sections): New function.
465 (open_and_init_dwp_file): Add else-if clause for version 5 to call
466 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
467
468 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
469
470 * regcache.h (class regcache): Remove friend
471 registers_changed_ptid.
472 <regcache_thread_ptid_changed>: Remove.
473 <regcaches>: Remove.
474 * regcache.c (regcache::regcaches): Rename to...
475 (regcaches): ... this. Make static.
476 (get_thread_arch_aspace_regcache): Update.
477 (regcache::regcache_thread_ptid_changed): Rename to...
478 (regcache_thread_ptid_changed): ... this. Update.
479 (class regcache_access): Remove.
480 (regcaches_test): Update.
481 (_initialize_regcache): Update.
482 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
483 <forward_list>.
484
485 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
486
487 * regcache.h (class regcache) <current_regcache>: Rename to...
488 <regcaches>: ... this. Move doc here.
489 * regcache.c (regcache::current_regcache) Rename to...
490 (regcache::regcaches): ... this. Move doc to header.
491 (get_thread_arch_aspace_regcache): Update.
492 (regcache::regcache_thread_ptid_changed): Update.
493 (registers_changed_ptid): Update.
494 (class regcache_access) <current_regcache_size>: Rename to...
495 <regcaches_size>: ... this.
496 (current_regcache_test): Rename to...
497 (regcaches_test): ... this.
498 (_initialize_regcache): Update.
499
500 2020-08-06 Victor Collod <vcollod@nvidia.com>
501
502 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
503
504 2020-08-05 Kevin Buettner <kevinb@redhat.com>
505
506 * corelow.c (core_target::build_file_mappings): Don't output
507 null pathname in warning.
508
509 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
510
511 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
512 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
513 gdb.dwarf2/dw2-single-line-discriminators.exp,
514 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
515
516 2020-08-05 Tom Tromey <tromey@adacore.com>
517
518 PR rust/26197:
519 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
520 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
521 Fix off-by-one and type size errors in ordinary case.
522
523 2020-08-05 Tom de Vries <tdevries@suse.de>
524
525 * gdbtypes.c (type_not_allocated, type_not_associated): Use
526 "prop->const_val () == 0" instead of "prop->const_val () != 0".
527
528 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
529
530 * frame.h (frame_id_p): Return bool.
531 (frame_id_artificial_p): Return bool.
532 (frame_id_eq): Return bool.
533 (has_stack_frames): Return bool.
534 (get_selected_frame): Fix typo in comment.
535 (get_frame_pc_if_available): Return bool.
536 (get_frame_address_in_block_if_available): Return bool.
537 (get_frame_func_if_available): Return bool.
538 (read_frame_register_unsigned): Return bool.
539 (get_frame_register_bytes): Return bool.
540 (safe_frame_unwind_memory): Return bool.
541 (deprecated_frame_register_read): Return bool.
542 (frame_unwinder_is): Return bool.
543 * frame.c (struct frame_info) <prev_arch::p>: Change type to
544 bool.
545 <this_id::p>: Likewise.
546 <prev_p>: Likewise.
547 (frame_stash_add): Return bool.
548 (get_frame_id): Use bool.
549 (frame_id_build_special) Use bool.
550 (frame_id_build_unavailable_stack): Use bool.
551 (frame_id_build): Use bool.
552 (frame_id_p): Return bool, use true/false instead of 1/0.
553 (frame_id_artificial_p): Likewise.
554 (frame_id_eq): Likewise.
555 (frame_id_inner): Likewise.
556 (get_frame_func_if_available): Likewise.
557 (read_frame_register_unsigned): Likewise.
558 (deprecated_frame_register_read): Likewise.
559 (get_frame_register_bytes): Likewise.
560 (has_stack_frames): Likewise.
561 (inside_main_func): Likewise.
562 (inside_entry_func): Likewise.
563 (get_frame_pc_if_available): Likewise.
564 (get_frame_address_in_block_if_available): Likewise.
565 (frame_unwinder_is): Likewise.
566 (safe_frame_unwind_memory): Likewise.
567 (frame_unwind_arch): Likewise.
568
569 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
570
571 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
572 type to cached_copy_status.
573 (fprintf_frame): Adjust.
574 (get_frame_func_if_available): Adjust.
575 (frame_cleanup_after_sniffer): Adjust.
576
577 2020-08-04 Mark Wielaard <mark@klomp.org>
578
579 * MAINTAINERS (Write After Approval): Update email address.
580
581 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
582
583 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
584 dynamic_prop::const_val.
585
586 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
587
588 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
589 dynamic_prop::kind.
590
591 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
592
593 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
594
595 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
596
597 * configure.tgt: Set gdb_sim for bpf-*-* targets.
598
599 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
600 Jose E. Marchesi <jose.marchesi@oracle.com>
601
602 * configure.tgt: Add entry for bpf-*-*.
603 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
604 (ALLDEPFILES): Add bpf-tdep.c.
605 * bpf-tdep.c: New file.
606 * MAINTAINERS: Add bpf target and maintainer.
607 * NEWS: Mention the support for the new target.
608
609 2020-08-04 Tom de Vries <tdevries@suse.de>
610
611 PR symtab/23270
612 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
613 Error.
614
615 2020-08-03 John Baldwin <jhb@FreeBSD.org>
616
617 * syscalls/freebsd.xml: Regenerate.
618
619 2020-08-03 John Baldwin <jhb@FreeBSD.org>
620
621 * syscalls/update-freebsd.sh: Fix usage and year range.
622
623 2020-08-03 Tom de Vries <tdevries@suse.de>
624
625 PR symtab/26333
626 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
627 DW_LNE_lo_user/DW_LNE_hi_user range.
628
629 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
630
631 PR ada/26318
632 * ada-lang.c (ada_modulus): Return 0 if property is not of const
633 kind.
634
635 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
636
637 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
638
639 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
640
641 * breakpoint.c (set_breakpoint_condition): Update the condition
642 expressions after checking that the input condition string parses
643 successfully and does not contain junk at the end.
644
645 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
646
647 * breakpoint.c (set_breakpoint_condition): Update the
648 condition string after parsing the new condition successfully.
649
650 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
651
652 * proc-api.c (_STRUCTURED_PROC): Don't define.
653 * proc-events.c: Likewise.
654 * proc-flags.c: Likewise.
655 * proc-why.c: Likewise.
656 * procfs.c: Likewise.
657
658 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
659 * configure, config.in: Regenerate.
660
661 2020-07-30 Tom de Vries <tdevries@suse.de>
662
663 PR build/26320
664 * ui-style.h (struct ui_file_style::color): Wrap m_value and
665 m_red/m_green/m_blue in a union.
666
667 2020-07-29 Tom de Vries <tdevries@suse.de>
668
669 PR tdep/26280
670 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
671
672 2020-07-28 Tom Tromey <tromey@adacore.com>
673
674 PR symtab/26270:
675 * symtab.h (find_pc_partial_function_sym): Declare.
676 * cli/cli-cmds.c (disassemble_command): Use
677 find_pc_partial_function_sym. Check asm_demangle.
678 * blockframe.c (cache_pc_function_sym): New global.
679 (cache_pc_function_name): Remove.
680 (clear_pc_function_cache): Update.
681 (find_pc_partial_function_sym): New function, from
682 find_pc_partial_function.
683 (find_pc_partial_function): Rewrite using
684 find_pc_partial_function_sym.
685
686 2020-07-28 Tom Tromey <tromey@adacore.com>
687
688 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
689 help. Add usage.
690
691 2020-07-28 Tom Tromey <tromey@adacore.com>
692
693 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
694 <DW_OP_GNU_variable_value>: Cast to address type.
695
696 2020-07-28 Kamil Rytarowski <n54@gmx.com>
697
698 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
699 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
700 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
701 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
702 (nbsd_get_siginfo_type): New.
703 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
704 (_initialize_nbsd_tdep): New.
705
706 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
707
708 PR binutils/26301
709 * configure: Regenerated.
710
711 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
712
713 PR binutils/26301
714 * configure: Regenerated.
715
716 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
717
718 * python/py-frame.c: Remove 'user-regs.h' include.
719 (frapy_read_register): Rewrite to make use of
720 gdbpy_parse_register_id.
721 * python/py-registers.c (gdbpy_parse_register_id): New function,
722 moved here from python/py-unwind.c. Updated the return type, and
723 also accepts register descriptor objects.
724 * python/py-unwind.c: Remove 'user-regs.h' include.
725 (pyuw_parse_register_id): Moved to python/py-registers.c.
726 (unwind_infopy_add_saved_register): Update to use
727 gdbpy_parse_register_id.
728 (pending_framepy_read_register): Likewise.
729 * python/python-internal.h (gdbpy_parse_register_id): Declare.
730
731 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
732
733 * python/py-registers.c: Add 'user-regs.h' include.
734 (register_descriptor_iter_find): New function.
735 (register_descriptor_iterator_object_methods): New static global
736 methods array.
737 (register_descriptor_iterator_object_type): Add pointer to methods
738 array.
739
740 2020-07-27 John Baldwin <jhb@FreeBSD.org>
741
742 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
743 for all architectures on FreeBSD 11.3 and later.
744
745 2020-07-27 Tom Tromey <tromey@adacore.com>
746
747 * gcore.h (load_corefile): Don't declare.
748
749 2020-07-27 Tom de Vries <tdevries@suse.de>
750
751 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
752 * config.in: Regenerate.
753 * configure: Regenerate.
754
755 2020-07-26 Eli Zaretskii <eliz@gnu.org>
756
757 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
758 ws2tcpip.h. When checking whether socklen_t type is defined, use
759 ws2tcpip.h if it is available and sys/socket.h isn't.
760 * configure: Regenerate.
761 * config.in: Regenerate.
762
763 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
764
765 PR fortran/23051
766 PR fortran/26139
767 * valops.c (value_ind): Pass address to
768 readjust_indirect_value_type.
769 * value.c (readjust_indirect_value_type): Make parameter
770 non-const, and add extra address parameter. Resolve original type
771 before using it.
772 * value.h (readjust_indirect_value_type): Update function
773 signature and comment.
774
775 2020-07-25 Tom de Vries <tdevries@suse.de>
776
777 PR symtab/26243
778 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
779 entries.
780
781 2020-07-24 Aaron Merey <amerey@redhat.com>
782
783 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
784 * configure: Rebuild.
785
786 2020-07-23 Kevin Buettner <kevinb@redhat.com>
787
788 PR corefiles/26294
789 * corelow.c (_initialize_corelow): Add period to help text
790 for "maintenance print core-file-backed-mappings".
791
792 2020-07-23 Pedro Alves <pedro@palves.net>
793
794 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
795 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
796 meanwhile.
797 * frame.c (frame_cache_generation, get_frame_cache_generation):
798 New.
799 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
800 (get_prev_frame_if_no_cycle): On exception, don't touch
801 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
802 * frame.h (get_frame_cache_generation): Declare.
803
804 2020-07-23 Tom de Vries <tdevries@suse.de>
805
806 PR tui/26282
807 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
808 New default constructor.
809
810 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
811
812 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
813 exclude non-statement entries.
814
815 2020-07-22 Kevin Buettner <kevinb@redhat.com>
816
817 * NEWS (New commands): Mention new command
818 "maintenance print core-file-backed-mappings".
819
820 2020-07-22 Kevin Buettner <kevinb@redhat.com>
821
822 * corelow.c (gdbcmd.h): Include.
823 (core_target::info_proc_mappings): New method.
824 (get_current_core_target): New function.
825 (maintenance_print_core_file_backed_mappings): New function.
826 (_initialize_corelow): Add core-file-backed-mappings to
827 "maint print" commands.
828
829 2020-07-22 Kevin Buettner <kevinb@redhat.com>
830
831 * linux-tdep.c (dump_note_entry_p): New function.
832 (linux_dump_mapping_p_ftype): New typedef.
833 (linux_find_memory_regions_full): Add new parameter,
834 should_dump_mapping_p.
835 (linux_find_memory_regions): Adjust call to
836 linux_find_memory_regions_full.
837 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
838 call to linux_find_memory_regions_full.
839
840 2020-07-22 Kevin Buettner <kevinb@redhat.com>
841
842 * corelow.c (solist.h, unordered_map): Include.
843 (class core_target): Add field m_core_file_mappings and
844 method build_file_mappings.
845 (core_target::core_target): Call build_file_mappings.
846 (core_target::~core_target): Free memory associated with
847 m_core_file_mappings.
848 (core_target::build_file_mappings): New method.
849 (core_target::xfer_partial): Use m_core_file_mappings
850 for memory transfers.
851 * linux-tdep.c (linux_read_core_file_mappings): New
852 function.
853 (linux_core_info_proc_mappings): Rewrite to use
854 linux_read_core_file_mappings.
855 (linux_init_abi): Register linux_read_core_file_mappings.
856
857 2020-07-22 Kevin Buettner <kevinb@redhat.com>
858
859 * arch-utils.c (default_read_core_file_mappings): New function.
860 * arch-utils.c (default_read_core_file_mappings): Declare.
861 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
862 * gdbarch.h, gdbarch.c: Regenerate.
863
864 2020-07-22 Kevin Buettner <kevinb@redhat.com>
865
866 PR corefiles/25631
867 * corelow.c (core_target:xfer_partial): Revise
868 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
869 case after first checking the stratum beneath the core
870 target.
871 (has_all_memory): Return true.
872 * target.c (raw_memory_xfer_partial): Revise comment
873 regarding use of has_all_memory.
874
875 2020-07-22 Kevin Buettner <kevinb@redhat.com>
876
877 * exec.h (section_table_xfer_memory): Revise declaration,
878 replacing section name parameter with an optional callback
879 predicate.
880 * exec.c (section_table_xfer_memory): Likewise.
881 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
882 of section_table_xfer_memory.
883
884 2020-07-22 Tom Tromey <tromey@adacore.com>
885
886 * mi/mi-cmd-stack.c (list_args_or_locals): Use
887 lookup_symbol_search_name.
888
889 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
890
891 * python/py-registers.c (gdbpy_register_object_data_init): Remove
892 redundant local variable.
893 (gdbpy_get_register_descriptor): Extract descriptor vector as a
894 reference, not pointer, update code accordingly.
895
896 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
897 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
898
899 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
900 * jit.c (jit_breakpoint_re_set_internal): Use the
901 `skip_jit_symbol_lookup` field.
902
903 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
904 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
905
906 * jit.c (jit_read_descriptor): Define the descriptor address once,
907 use twice.
908 (jit_breakpoint_deleted): Move the declaration of the loop variable
909 `iter` into the loop header.
910 (jit_breakpoint_re_set_internal): Move the declaration of the local
911 variable `objf_data` to the first point of definition.
912 (jit_event_handler): Move the declaration of local variables
913 `code_entry`, `entry_addr`, and `objf` to their first point of use.
914 Rename `objf` to `jited`.
915
916 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
917
918 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
919 Remove.
920 * jit.c (get_jiter_objfile_data): Update.
921
922 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
923 Simon Marchi <simon.marchi@polymtl.ca>
924
925 * jit.c (struct jit_program_space_data): Remove.
926 (jit_program_space_key): Remove.
927 (jiter_objfile_data::~jiter_objfile_data): Remove program space
928 stuff.
929 (get_jit_program_space_data): Remove.
930 (jit_breakpoint_deleted): Iterate on all of the program space's
931 objfiles.
932 (jit_inferior_init): Likewise.
933 (jit_breakpoint_re_set_internal): Likewise. Also change return
934 type to void.
935 (jit_breakpoint_re_set): Pass current_program_space to
936 jit_breakpoint_re_set_internal.
937
938 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
939
940 * jit.h (struct jiter_objfile_data) <cached_code_address,
941 jit_breakpoint>: Move to here from ...
942 * jit.c (jit_program_space_data): ... here.
943 (jiter_objfile_data::~jiter_objfile_data): Update.
944 (jit_breakpoint_deleted): Update.
945 (jit_breakpoint_re_set_internal): Update.
946
947 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
948
949 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
950 checks.
951 (jit_read_descriptor): Remove NULL check.
952 (jit_event_handler): Add an assertion.
953
954 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
955
956 * jit.h (struct jit_objfile_data): Split into...
957 (struct jiter_objfile_data): ... this ...
958 (struct jited_objfile_data): ... and this.
959 * objfiles.h (struct objfile) <jit_data>: Remove.
960 <jiter_data, jited_data>: New fields.
961 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
962 (jiter_objfile_data::~jiter_objfile_data): ... this.
963 (get_jit_objfile_data): Rename to ...
964 (get_jiter_objfile_data): ... this.
965 (add_objfile_entry): Update.
966 (jit_read_descriptor): Use get_jiter_objfile_data.
967 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
968 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
969 (jit_inferior_exit_hook): Use objfile's jited_data field.
970
971 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
972
973 * jit.h: Forward-declare `struct minimal_symbol`.
974 (struct jit_objfile_data): Migrate to here from jit.c; also add a
975 constructor, destructor, and an objfile* field.
976 * jit.c (jit_objfile_data): Remove.
977 (struct jit_objfile_data): Migrate from here to jit.h.
978 (jit_objfile_data::~jit_objfile_data): New destructor
979 implementation with code moved from free_objfile_data.
980 (free_objfile_data): Delete.
981 (get_jit_objfile_data): Update to use the jit_data field of objfile.
982 (jit_find_objf_with_entry_addr): Ditto.
983 (jit_inferior_exit_hook): Ditto.
984 (_initialize_jit): Remove the call to
985 register_objfile_data_with_cleanup.
986 * objfiles.h (struct objfile) <jit_data>: New field.
987
988 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
989
990 * jit.h: Forward-declare `struct objfile`.
991 (jit_event_handler): Add a second parameter, the JITer objfile.
992 * jit.c (jit_read_descriptor): Change the signature to take the
993 JITer objfile as an argument instead of the jit_program_space_data.
994 (jit_inferior_init): Update the call to jit_read_descriptor.
995 (jit_event_handler): Use the new JITer objfile argument when calling
996 jit_read_descriptor.
997 * breakpoint.c (handle_jit_event): Update the call to
998 jit_event_handler to pass the JITer objfile.
999
1000 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1001
1002 * gdbarch.c: Regenerate.
1003 * gdbarch.h: Regenerate.
1004 * gdbarch.sh (handle_segmentation_fault): Remove method.
1005 * infrun.c (handle_segmentation_fault): Remove.
1006 (print_signal_received_reason): Remove call to
1007 handle_segmentation_fault.
1008
1009 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1010
1011 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1012 Rename to sparc64_linux_report_signal_info and add siggnal
1013 argument.
1014 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1015 instead of sparc64_linux_handle_segmentation_fault.
1016
1017 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1018
1019 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1020 i386_linux_report_signal_info instead of
1021 i386_linux_handle_segmentation_fault.
1022 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1023 to i386_linux_report_signal_info and add siggnal argument.
1024 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1025 of i386_linux_handle_segmentation_fault.
1026 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1027 to i386_linux_report_signal_info and add siggnal argument.
1028
1029 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1030
1031 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1032 hook if present.
1033
1034 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1035
1036 * gdbarch.c: Regenerate.
1037 * gdbarch.h: Regenerate.
1038 * gdbarch.sh (report_signal_info): New method.
1039 * infrun.c (print_signal_received_reason): Invoke gdbarch
1040 report_signal_info hook if present.
1041
1042 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1043
1044 * python/py-registers.c : Add 'unordered_map' include.
1045 (gdbpy_new_reggroup): Renamed to...
1046 (gdbpy_get_reggroup): ...this. Update to only create register
1047 group descriptors when needed.
1048 (gdbpy_reggroup_iter_next): Update.
1049
1050 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1051
1052 * python/py-registers.c (gdbpy_register_object_data): New static
1053 global.
1054 (gdbpy_register_object_data_init): New function.
1055 (gdbpy_new_register_descriptor): Renamed to...
1056 (gdbpy_get_register_descriptor): ...this, and update to reuse
1057 existing register descriptors where possible.
1058 (gdbpy_register_descriptor_iter_next): Update.
1059 (gdbpy_initialize_registers): Register new gdbarch data.
1060
1061 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1062
1063 * linux-nat.c (stopped_pids): Make static.
1064
1065 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1066
1067 PR ada/26235
1068 * gdbtypes.c (ada_discrete_type_low_bound,
1069 ada_discrete_type_high_bound): Handle undefined bounds.
1070
1071 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1072
1073 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1074 declaration.
1075 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1076 function.
1077
1078 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1079
1080 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1081 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1082 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1083 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1084 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1085 method.
1086
1087 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1088
1089 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1090 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1091 which are deprecated in Guile 3.0.
1092 * configure.ac (try_guile_versions): Add "guile-3.0".
1093 * configure (try_guile_versions): Regenerate.
1094 * NEWS: Update entry.
1095
1096 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1097 Doug Evans <dje@google.com>
1098
1099 PR gdb/21104
1100 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1101 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1102 USING_GUILE_BEFORE_2_2.
1103 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1104 Change type to 'scm_t_port_type *'.
1105 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1106 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1107 parameter and honor it. Update callers.
1108 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1109 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1110 functions.
1111 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1112 USING_GUILE_BEFORE_2_2.
1113 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1114 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1115 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1116 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1117 and 'SCM_PORT_TYPE'.
1118 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1119 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1120 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1121 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1122 [!USING_GUILE_BEFORE_2_2]: New functions.
1123 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1124 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1125 'gdbscm_memory_port_read'.
1126 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1127 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1128 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1129 function.
1130 (ioscm_init_memory_port): Remove.
1131 (ioscm_init_memory_port_stream): New function
1132 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1133 function.
1134 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1135 Return scm_from_uint (0).
1136 (gdbscm_set_memory_port_read_buffer_size_x)
1137 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1138 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1139 Return scm_from_uint (0).
1140 (gdbscm_set_memory_port_write_buffer_size_x)
1141 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1142 * configure.ac (try_guile_versions): Add "guile-2.2".
1143 * configure: Regenerate.
1144 * NEWS: Add entry.
1145
1146 2020-07-18 Tom Tromey <tom@tromey.com>
1147
1148 * linux-nat.c (linux_multi_process): Remove.
1149 (linux_nat_target::supports_multi_process): Return true.
1150
1151 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1152
1153 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1154 (riscv_lookup_target_description): Return pointer out of
1155 unique_ptr.
1156 * target-descriptions.c (allocate_target_description): Add
1157 comment.
1158 (target_desc_deleter::operator()): Likewise.
1159 * target-descriptions.h (struct target_desc_deleter): Moved to
1160 gdbsupport/tdesc.h.
1161 (target_desc_up): Likewise.
1162
1163 2020-07-17 Tom Tromey <tromey@adacore.com>
1164
1165 * linux-nat.c (linux_nat_target::supports_non_stop)
1166 (linux_nat_target::always_non_stop_p): Use "true".
1167 (linux_nat_target::supports_disable_randomization): Use "true" and
1168 "false".
1169
1170 2020-07-16 Caroline Tice <cmtice@google.com>
1171
1172 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1173 (RNGLIST_HEADER_SIZE64): New constant definition.
1174 (struct dwop_section_names): Add rnglists_dwo.
1175 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1176 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1177 (struct dwo_sections): Add rnglists field.
1178 (read_attribut_reprocess): Add tag parameter.
1179 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1180 (cu_debug_rnglists_section): New function (decl & definition).
1181 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1182 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1183 die whose range is being checked; get rnglist section from
1184 cu_debug_rnglists_section, to get from either objfile or dwo file as
1185 appropriate. Add cases for DW_RLE_base_addressx,
1186 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1187 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1188 test inside if-condition and updating complaint message.
1189 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1190 dwarf2_rnglists_process.
1191 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1192 dwarf2_ranges_process.
1193 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1194 need_ranges_base and update comment appropriately. Also pass die tag
1195 to dwarf2_ranges_read.
1196 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1197 need_ranges_base and update comment appropriately. Also pass die tag
1198 to dwarf2_ranges_process.
1199 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1200 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1201 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1202 need_ranges_base and update comment appropriately. Also pass die tag
1203 to read_attribute_reprocess and dwarf2_ranges_read.
1204 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1205 and update function comment appropriately.
1206 (read_loclist_index): Call read_loclists_rnglists_header instead of
1207 read_loclist_header.
1208 (read_rnglist_index): New function.
1209 (read_attribute_reprocess): Add tag parameter. Add code for
1210 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1211 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1212
1213 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1214
1215 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1216 being resolved.
1217
1218 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1219
1220 * arch-utils.c (show_architecture): Update formatting of messages.
1221
1222 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1223
1224 * gdbtypes.h (struct type) <bounds>: Handle array and string
1225 types.
1226 * ada-lang.c (assign_aggregate): Use type::bounds on
1227 array/string type.
1228 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1229 * c-varobj.c (c_number_of_children): Likewise.
1230 (c_describe_child): Likewise.
1231 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1232 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1233 (f_type_print_base): Likewise.
1234 * f-valprint.c (f77_array_offset_tbl): Likewise.
1235 (f77_get_upperbound): Likewise.
1236 (f77_print_array_1): Likewise.
1237 * guile/scm-type.c (gdbscm_type_range): Likewise.
1238 * m2-typeprint.c (m2_array): Likewise.
1239 (m2_is_long_set_of_type): Likewise.
1240 * m2-valprint.c (get_long_set_bounds): Likewise.
1241 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1242 * python/py-type.c (typy_range): Likewise.
1243 * rust-lang.c (rust_internal_print_type): Likewise.
1244 * type-stack.c (type_stack::follow_types): Likewise.
1245 * valarith.c (value_subscripted_rvalue): Likewise.
1246 * valops.c (value_cast): Likewise.
1247
1248 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1249
1250 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1251 callers to use the equivalent accessor methods.
1252
1253 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1254
1255 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1256 (struct type) <bit_stride>: New method.
1257 (TYPE_BIT_STRIDE): Remove.
1258 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1259
1260 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1261
1262 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1263 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1264 callers to use the equivalent accessor methods instead.
1265
1266 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1267
1268 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1269 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1270 callers to use the equivalent accessor methods instead.
1271
1272 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1273
1274 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1275 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1276 to use dynamic_prop::kind.
1277
1278 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1279
1280 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1281 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1282 to get the bound property's kind and check against
1283 PROP_UNDEFINED.
1284
1285 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1286
1287 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1288 all callers to use type::range_bounds followed by
1289 dynamic_prop::{low,high}.
1290
1291 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1292
1293 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1294 const_val, set_const_val, baton, set_locexpr, set_loclist,
1295 set_addr_offset, variant_parts, set_variant_parts,
1296 original_type, set_original_type>: New methods.
1297 <kind>: Rename to...
1298 <m_kind>: ... this. Update all users to use the new methods
1299 instead.
1300 <data>: Rename to...
1301 <m_data>: ... this. Update all users to use the new methods
1302 instead.
1303
1304 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1305
1306 * gdbtypes.c (get_discrete_bounds): Return failure if
1307 the range type's bounds are not both defined and constant
1308 values.
1309 (get_array_bounds): Update comment. Remove undefined bound check.
1310
1311 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1312
1313 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1314 the type::bounds method directly.
1315
1316 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1317
1318 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1319 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1320 are used to set the range type's bounds to use set_bounds.
1321
1322 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1323
1324 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1325
1326 2020-07-10 Pedro Alves <pedro@palves.net>
1327
1328 * gdbthread.h (inferior_ref): Define.
1329 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1330 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1331 * thread.c
1332 (scoped_restore_current_thread::restore):
1333 Adjust to gdb::ref_ptr.
1334 (scoped_restore_current_thread::~scoped_restore_current_thread):
1335 Remove manual decref handling.
1336 (scoped_restore_current_thread::scoped_restore_current_thread):
1337 Adjust to use
1338 inferior_ref::new_reference/thread_info_ref::new_reference.
1339 Incref the thread before calling get_frame_id instead of after.
1340 Let TARGET_CLOSE_ERROR propagate.
1341
1342 2020-07-10 Pedro Alves <pedro@palves.net>
1343
1344 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1345 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1346 NOT_AVAILABLE_ERROR.
1347 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1348 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1349
1350 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1351 Pedro Alves <pedro@palves.net>
1352
1353 PR gdb/26199
1354 * infrun.c (threads_are_resumed_pending_p): Delete.
1355 (do_target_wait): Remove threads_are_executing and
1356 threads_are_resumed_pending_p checks from the inferior_matches
1357 lambda. Update comments.
1358
1359 2020-07-10 Pedro Alves <pedro@palves.net>
1360
1361 PR gdb/26199
1362 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1363 executing threads.
1364
1365 2020-07-10 Pedro Alves <pedro@palves.net>
1366
1367 PR gdb/26199
1368 * infrun.c (handle_no_resumed): Handle multiple targets.
1369
1370 2020-07-10 Pedro Alves <pedro@palves.net>
1371
1372 PR gdb/26199
1373 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1374 target_is_async_p.
1375
1376 2020-07-10 Pedro Alves <pedro@palves.net>
1377
1378 PR gdb/26199
1379 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1380 threads, not all threads.
1381
1382 2020-07-10 Pedro Alves <pedro@palves.net>
1383
1384 PR gdb/26199
1385 * remote.c (remote_target::open_1): Pass remote target pointer as
1386 data to create_async_event_handler.
1387 (remote_async_inferior_event_handler): Mark async event handler
1388 before returning if the remote target still has either pending
1389 events or unacknowledged notifications.
1390
1391 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1392
1393 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1394 declaration.
1395 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1396 function.
1397
1398 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1399
1400 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1401 inferior_ptid.
1402
1403 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1404
1405 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1406 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1407 AT_FREEBSD_PS_STRINGS.
1408
1409 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1410
1411 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1412 of debugfile path on Windows.
1413
1414 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1415
1416 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1417 argument to 'data'.
1418
1419 2020-07-08 Tom Tromey <tromey@adacore.com>
1420
1421 * ada-lang.c (ada_exception_message_1): Use read_memory.
1422
1423 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1424
1425 PR python/22748
1426 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1427 special handling for inline frames.
1428 * findvar.c (value_of_register_lazy): Skip inline frames when
1429 creating lazy register values.
1430 * frame.c (frame_id_computed_p): Delete definition.
1431 * frame.h (frame_id_computed_p): Delete declaration.
1432
1433 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1434
1435 * NEWS: Mention additions to Python API.
1436 * python/py-arch.c (archpy_register_groups): New function.
1437 (arch_object_methods): Add 'register_groups' method.
1438 * python/py-registers.c (reggroup_iterator_object): New struct.
1439 (reggroup_object): New struct.
1440 (gdbpy_new_reggroup): New function.
1441 (gdbpy_reggroup_to_string): New function.
1442 (gdbpy_reggroup_name): New function.
1443 (gdbpy_reggroup_iter): New function.
1444 (gdbpy_reggroup_iter_next): New function.
1445 (gdbpy_new_reggroup_iterator): New function
1446 (gdbpy_initialize_registers): Register new types.
1447 (reggroup_iterator_object_type): Define new Python type.
1448 (gdbpy_reggroup_getset): New static global.
1449 (reggroup_object_type): Define new Python type.
1450 * python/python-internal.h
1451
1452 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1453
1454 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1455 * python/py-arch.c (archpy_registers): New function.
1456 (arch_object_methods): Add 'registers' method.
1457 * python/py-registers.c: New file.
1458 * python/python-internal.h
1459 (gdbpy_new_register_descriptor_iterator): Declare.
1460 (gdbpy_initialize_registers): Declare.
1461 * python/python.c (do_start_initialization): Call
1462 gdbpy_initialize_registers.
1463 * NEWS: Mention additions to the Python API.
1464
1465 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1466
1467 * NEWS: Mention new Python API method.
1468 * python/py-unwind.c (pending_framepy_architecture): New function.
1469 (pending_frame_object_methods): Add architecture method.
1470
1471 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1472
1473 * gdbarch.c: Regenerate.
1474 * gdbarch.h: Regenerate.
1475 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1476 (gdbarch_data): Use internal_error for the case where
1477 deprecated_set_gdbarch_data was originally needed.
1478 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1479 and use passed in obstack.
1480 (libunwind_frame_set_descr): Should no longer get back NULL from
1481 gdbarch_data.
1482 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1483 type.
1484 * user-regs.c (user_regs_init): Update parameters, and use passed
1485 in obstack.
1486 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1487 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1488
1489 2020-07-06 Tom de Vries <tdevries@suse.de>
1490
1491 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1492 End-Of-Sequence in lte_is_less_than.
1493 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1494 "gdb: Don't reorder line table entries too much when sorting".
1495
1496 2020-07-06 Tom de Vries <tdevries@suse.de>
1497
1498 PR tui/26205
1499 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1500
1501 2020-07-05 Tom de Vries <tdevries@suse.de>
1502
1503 PR build/26187
1504 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1505 std::uncaught_exceptions instead of deprecated
1506 std::uncaught_exception.
1507
1508 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1509
1510 * macroexp.h (macro_stringify): Return
1511 gdb::unique_xmalloc_ptr<char>.
1512 * macroexp.c (macro_stringify): Likewise.
1513 * macrotab.c (fixup_definition): Update.
1514
1515 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1516
1517 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1518 (lex_one_token): Update.
1519 * macroexp.c (struct macro_buffer) <release>: Return
1520 gdb::unique_xmalloc_ptr<char>.
1521 (macro_stringify): Update.
1522 (macro_expand): Update.
1523 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1524 * macroexp.h (macro_expand_next): Likewise.
1525
1526 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1527
1528 * macroexp.h (macro_lookup_ftype): Remove.
1529 (macro_expand, macro_expand_once, macro_expand_next): Remove
1530 lookup function parameters, add scope parameter.
1531 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1532 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1533 * macroscope.h (standard_macro_lookup): Change parameter type
1534 to macro_scope.
1535 * macroscope.c (standard_macro_lookup): Likewise.
1536 * c-exp.y (lex_one_token): Update.
1537 * macrocmd.c (macro_expand_command): Likewise.
1538 (macro_expand_once_command): Likewise.
1539
1540 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1541
1542 * inf-loop.c (inferior_event_handler): Remove client_data param.
1543 * inf-loop.h (inferior_event_handler): Likewise.
1544 * infcmd.c (step_1): Adjust.
1545 * infrun.c (proceed): Adjust.
1546 (fetch_inferior_event): Remove client_data param.
1547 (infrun_async_inferior_event_handler): Adjust.
1548 * infrun.h (fetch_inferior_event): Remove `void *` param.
1549 * linux-nat.c (handle_target_event): Adjust.
1550 * record-btrace.c (record_btrace_handle_async_inferior_event):
1551 Adjust.
1552 * record-full.c (record_full_async_inferior_event_handler):
1553 Adjust.
1554 * remote.c (remote_async_inferior_event_handler): Adjust.
1555
1556 2020-07-01 Tom Tromey <tom@tromey.com>
1557
1558 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1559 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1560
1561 2020-07-01 Tom Tromey <tom@tromey.com>
1562
1563 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1564 tui_gen_win_info.
1565 (tui_win_info::make_window): Merge with
1566 tui_gen_win_info::make_window.
1567 (tui_win_info::make_visible): Move from tui_gen_win_info.
1568 * tui/tui-win.c (tui_win_info::max_width): Move from
1569 tui_gen_win_info.
1570 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1571 type.
1572 <window_factory>: Likewise.
1573 * tui/tui-layout.c (tui_win_info::resize): Move from
1574 tui_gen_win_info.
1575 (make_standard_window): Change return type.
1576 (get_locator_window, tui_get_window_by_name): Likewise.
1577 (tui_layout_window::apply): Remove a cast.
1578 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1579 (struct tui_win_info): Merge with tui_gen_win_info.
1580 (struct tui_gen_win_info): Remove.
1581
1582 2020-07-01 Tom Tromey <tom@tromey.com>
1583
1584 * tui/tui-stack.h (struct tui_locator_window): Derive from
1585 tui_win_info.
1586 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1587 <can_box>: New method.
1588
1589 2020-07-01 Tom Tromey <tom@tromey.com>
1590
1591 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1592
1593 2020-07-01 Tom Tromey <tom@tromey.com>
1594
1595 * tui/tui-regs.c (tui_data_window::display_registers_from)
1596 (tui_data_window::display_registers_from)
1597 (tui_data_window::first_data_item_displayed)
1598 (tui_data_window::delete_data_content_windows): Update.
1599 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1600 Remove.
1601 (tui_data_window::check_register_values): Update.
1602 (tui_data_item_window::rerender): Add parameters. Update.
1603 (tui_data_item_window::refresh_window): Remove.
1604 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1605 virtual.
1606 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1607 tui_gen_win_info.
1608 <refresh_window, max_height, min_height>: Remove.
1609 <rerender>: Add parameters.
1610 <x, y, visible>: New members.
1611 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1612 <m_item_width>: New member.
1613
1614 2020-07-01 Tom Tromey <tom@tromey.com>
1615
1616 * tui/tui-regs.c (tui_data_window::show_register_group)
1617 (tui_data_window::check_register_values): Update.
1618 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1619 from item_no.
1620
1621 2020-07-01 Tom Tromey <tom@tromey.com>
1622
1623 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1624 useless "if".
1625
1626 2020-07-01 Tom Tromey <tom@tromey.com>
1627
1628 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1629 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1630
1631 2020-07-01 Tom Tromey <tom@tromey.com>
1632
1633 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1634 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1635 (struct tui_line_or_address): Move from tui-data.h.
1636 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1637 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1638 (tui_cmd_window, tui_source_window_base, tui_source_window)
1639 (tui_disasm_window): Don't declare.
1640 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1641 to tui-winsource.h.
1642 (SINGLE_KEY): Move to tui-stack.c.
1643
1644 2020-07-01 Tom Tromey <tom@tromey.com>
1645
1646 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1647 std::string.
1648 * tui/tui-regs.c (class tab_expansion_file): New.
1649 (tab_expansion_file::write): New method.
1650 (tui_register_format): Change return type. Use
1651 tab_expansion_file.
1652 (tui_get_register, tui_data_window::display_registers_from)
1653 (tui_data_item_window::rerender): Update.
1654 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1655 * tui/tui-io.c (tui_expand_tabs): Remove.
1656
1657 2020-07-01 Tom Tromey <tom@tromey.com>
1658
1659 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1660
1661 2020-07-01 Fangrui Song <maskray@google.com>
1662
1663 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1664
1665 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1666
1667 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1668 forms for DW_AT_associated and DW_AT_allocated attributes,
1669 which is already checked in function attr_to_dynamic_prop.
1670
1671 2020-06-30 Tom Tromey <tromey@adacore.com>
1672
1673 * dwarf2/read.c (quirk_rust_enum): Correctly call
1674 alloc_rust_variant for default-less enum.
1675
1676 2020-06-30 Tom Tromey <tromey@adacore.com>
1677
1678 PR build/26183:
1679 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1680 gdb::to_string.
1681
1682 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1683
1684 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1685 * gdbarch.h: Re-generate.
1686
1687 2020-06-28 Tom Tromey <tom@tromey.com>
1688
1689 * command.h (cmd_types): Remove.
1690 (cmd_type): Don't declare.
1691 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1692 typedef.
1693 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1694 * cli/cli-decode.c (cmd_type): Remove.
1695
1696 2020-06-27 Pedro Alves <palves@redhat.com>
1697
1698 * fork-child.c (prefork_hook): Adjust.
1699 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1700 Delete.
1701 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1702 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1703 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1704 Remove declarations.
1705 (struct inferior) <set_tty, tty>: New methods.
1706 (struct inferior) <terminal>: Rename to ...
1707 (struct inferior) <m_terminal>: ... this and make private.
1708 * main.c (captured_main_1): Adjust.
1709 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1710 (mi_cmd_inferior_tty_show): Adjust.
1711 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1712 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1713
1714 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1715
1716 * configure.ac: Add --enable-libctf: handle --disable-static
1717 properly.
1718 * acinclude.m4: sinclude ../config/enable.m4.
1719 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1720 (LIBCTF): Substitute in.
1721 (CTF_DEPS): New, likewise.
1722 (CLIBS): libctf needs symbols from libbfd: move earlier.
1723 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1724 flags.
1725 * ctfread.c: Surround in ENABLE_LIBCTF.
1726 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1727 * configure: Regenerate.
1728 * config.in: Likewise.
1729
1730 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1731
1732 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1733
1734 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1735
1736 * inferior.h (struct inferior) <terminal>: Change type to
1737 gdb::unique_xmalloc_ptr<char>.
1738 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1739 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1740 field, adjust to unique pointer.
1741 (get_inferior_io_terminal): Adjust to unique pointer.
1742
1743 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1744
1745 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1746 registers, not just the known core set of registers.
1747
1748 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1749
1750 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1751 fflags, frm, and fcsr registers.
1752 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1753 restore groups.
1754 (riscv_tdesc_unknown_reg): New function.
1755 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1756 tdesc_use_registers.
1757 * riscv-tdep.h (struct gdbarch_tdep): Add
1758 unknown_csrs_first_regnum, unknown_csrs_count,
1759 duplicate_fflags_regnum, duplicate_frm_regnum, and
1760 duplicate_fcsr_regnum fields.
1761
1762 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1763
1764 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1765 callback, use the callback (when not null) to help number unknown
1766 registers.
1767 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1768 (tdesc_use_registers): Add extra parameter to declaration.
1769
1770 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1771
1772 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1773 in the file.
1774 (class riscv_pending_register_alias): Likewise.
1775 (riscv_register_feature::register_info): Change 'required_p' field
1776 to 'required', and change its type. Add 'check' member function.
1777 (riscv_register_feature::register_info::check): Define new member
1778 function.
1779 (riscv_xreg_feature): Change initialisation of 'required' field.
1780 (riscv_freg_feature): Likewise.
1781 (riscv_virtual_feature): Likewise.
1782 (riscv_csr_feature): Likewise.
1783 (riscv_check_tdesc_feature): Take extra parameter, the csr
1784 tdesc_feature, rewrite the function to use the new
1785 riscv_register_feature::register_info::check function.
1786 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1787
1788 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1789
1790 * features/Makefile: Remove all references to the deleted files
1791 below.
1792 * features/riscv/32bit-csr.c: Deleted.
1793 * features/riscv/32bit-csr.xml: Deleted.
1794 * features/riscv/64bit-csr.c: Deleted.
1795 * features/riscv/64bit-csr.xml: Deleted.
1796 * features/riscv/rebuild-csr-xml.sh: Deleted.
1797
1798 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1799
1800 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1801 whitespace error for declaration of names member variable.
1802 (struct riscv_register_feature): Add new prefer_first_name member
1803 variable, and fix whitespace error in declaration of registers.
1804 (riscv_xreg_feature): Initialize prefer_first_name field.
1805 (riscv_freg_feature): Likewise.
1806 (riscv_virtual_feature): Likewise.
1807 (riscv_csr_feature): Likewise.
1808 (riscv_register_name): Expand on comments. Remove register name
1809 modifications for CSR and virtual registers.
1810
1811 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1812
1813 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1814 errors.
1815
1816 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1817
1818 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1819 riscv-opc.h.
1820 (class riscv_pending_register_alias): New class.
1821 (riscv_check_tdesc_feature): Take vector of pending aliases and
1822 populate it as appropriate.
1823 (riscv_setup_register_aliases): Delete.
1824 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1825 to riscv_check_tdesc_feature in all cases. Use the vector to
1826 create the register aliases.
1827
1828 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1829
1830 * sol2-tdep.c (sol2_static_transform_name): Remove.
1831 (sol2_init_abi): Don't register it.
1832 * gdbarch.sh (static_transform_name): Remove.
1833 * gdbarch.c, gdbarch.h: Regenerate.
1834
1835 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1836 gdbarch_static_transform_name.
1837 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1838 * stabsread.c (define_symbol) <'X'>: Remove.
1839 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1840 handling.
1841 <'V'>: Likewise.
1842 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1843 <'S'>: Remove call to gdbarch_static_transform_name.
1844
1845 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1846
1847 * procfs.c (procfs_pre_trace): New function.
1848 (procfs_target::create_inferior): Pass it to fork_inferior.
1849
1850 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1851
1852 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1853 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1854 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1855 sol2-tdep.o, sparc-sol2-tdep.o.
1856 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1857 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1858 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1859 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1860
1861 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1862
1863 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1864 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1865 Call sol2_init_abi.
1866 Remove calls to set_gdbarch_skip_solib_resolver,
1867 set_gdbarch_core_pid_to_str.
1868 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1869 (i386_sol2_static_transform_name): Remove.
1870 (i386_sol2_init_abi): Call sol2_init_abi.
1871 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1872 set_gdbarch_static_transform_name,
1873 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1874 Use sol2_sigtramp_p.
1875 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1876 (sol2_sigtramp_p): New function.
1877 (sol2_static_transform_name): New function.
1878 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1879 (sol2_init_abi): New function.
1880 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1881 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1882 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1883 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1884 (sparc_sol2_static_transform_name): Remove.
1885 (sparc32_sol2_init_abi): Call sol2_init_abi.
1886 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1887 set_gdbarch_static_transform_name,
1888 set_gdbarch_skip_solib_resolver,
1889 set_gdbarch_core_pid_to_str.
1890 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1891 (sparc_sol2_static_transform_name): Remove
1892 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1893 call sol2_sigtramp_p.
1894 (sparc64_sol2_init_abi): Call sol2_init_abi.
1895 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1896 set_gdbarch_static_transform_name,
1897 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1898
1899 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1900
1901 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1902 * exec.c (validate_exec_file): If from_tty, set both
1903 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1904 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1905 and from_tty, unconditionally ask a confirmation.
1906
1907 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1908
1909 * target-descriptions.c (tdesc_architecture_name): Protect against
1910 NULL pointer dereference.
1911 (maint_print_xml_tdesc_cmd): New function.
1912 (_initialize_target_descriptions): Register new 'maint print
1913 xml-tdesc' command and give it the filename completer.
1914 * NEWS: Mention new 'maint print xml-tdesc' command.
1915
1916 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1917
1918 * target-descriptions.c (class tdesc_compatible_info): New class.
1919 (struct target_desc): Change type of compatible vector.
1920 (tdesc_compatible_p): Update for change in type of
1921 target_desc::compatible.
1922 (tdesc_compatible_info_list): New function.
1923 (tdesc_compatible_info_arch_name): New function.
1924 (tdesc_add_compatible): Update for change in type of
1925 target_desc::compatible.
1926 (print_c_tdesc::visit_pre): Likewise.
1927
1928 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1929
1930 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1931 whitespace to underscore.
1932 (maint_print_c_tdesc_cmd): Use fake filename for target
1933 descriptions that came from the target.
1934 (_initialize_target_descriptions): Add filename command completion
1935 for 'maint print c-tdesc'.
1936
1937 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1938
1939 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1940 lines.
1941
1942 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1943
1944 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1945 lines.
1946 (dwarf2_find_location_expression): Likewise.
1947 (call_site_parameter_matches): Likewise.
1948 (dwarf2_compile_expr_to_ax): Likewise.
1949 (disassemble_dwarf_expression): Likewise.
1950 (loclist_describe_location): Likewise.
1951
1952 2020-06-23 Pedro Alves <palves@redhat.com>
1953
1954 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1955 progspace-and-thread.h. Include scoped-mock-context.h instead.
1956 (register_to_value_test): Use scoped_mock_context.
1957 * regcache.c: Include "scoped-mock-context.h".
1958 (cooked_read_test): Don't error out if a target is already pushed.
1959 Use scoped_mock_context. Adjust.
1960 * scoped-mock-context.h: New file.
1961
1962 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1963
1964 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1965 initializer.
1966 (ada_language::is_string_type_p): New member function.
1967 * c-lang.c (c_language_data): Delete la_is_string_type_p
1968 initializer.
1969 (cplus_language_data): Likewise.
1970 (asm_language_data): Likewise.
1971 (minimal_language_data): Likewise.
1972 * d-lang.c (d_language_data): Likewise.
1973 * f-lang.c (f_is_string_type_p): Delete function, implementation
1974 moved to f_language::is_string_type_p.
1975 (f_language_data): Delete la_is_string_type_p initializer.
1976 (f_language::is_string_type_p): New member function,
1977 implementation from f_is_string_type_p.
1978 * go-lang.c (go_is_string_type_p): Delete function, implementation
1979 moved to go_language::is_string_type_p.
1980 (go_language_data): Delete la_is_string_type_p initializer.
1981 (go_language::is_string_type_p): New member function,
1982 implementation from go_is_string_type_p.
1983 * language.c (language_defn::is_string_type_p): Define new member
1984 function.
1985 (default_is_string_type_p): Make static, add comment copied from
1986 header file.
1987 (unknown_language_data): Delete la_is_string_type_p initializer.
1988 (unknown_language::is_string_type_p): New member function.
1989 (auto_language_data): Delete la_is_string_type_p initializer.
1990 (auto_language::is_string_type_p): New member function.
1991 * language.h (language_data): Delete la_is_string_type_p field.
1992 (language_defn::is_string_type_p): Declare new function.
1993 (default_is_string_type_p): Delete desclaration, move comment to
1994 definition.
1995 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1996 moved to m2_language::is_string_type_p.
1997 (m2_language_data): Delete la_is_string_type_p initializer.
1998 (m2_language::is_string_type_p): New member function,
1999 implementation from m2_is_string_type_p.
2000 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2001 initializer.
2002 * opencl-lang.c (opencl_language_data): Likewise.
2003 * p-lang.c (pascal_is_string_type_p): Delete function,
2004 implementation moved to pascal_language::is_string_type_p.
2005 (pascal_language_data): Delete la_is_string_type_p initializer.
2006 (pascal_language::is_string_type_p): New member function,
2007 implementation from pascal_is_string_type_p.
2008 * rust-lang.c (rust_is_string_type_p): Delete function,
2009 implementation moved to rust_language::is_string_type_p.
2010 (rust_language_data): Delete la_is_string_type_p initializer.
2011 (rust_language::is_string_type_p): New member function,
2012 implementation from rust_is_string_type_p.
2013 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2014 is_string_type_p.
2015
2016 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2017
2018 * ada-lang.c (ada_language_data): Delete la_print_typedef
2019 initializer.
2020 (ada_language::print_typedef): New member function.
2021 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2022 (cplus_language_data): Likewise.
2023 (asm_language_data): Likewise.
2024 (minimal_language_data): Likewise.
2025 * d-lang.c (d_language_data): Likewise.
2026 * f-lang.c (f_language_data): Likewise.
2027 (f_language::print_typedef): New member function.
2028 * go-lang.c (go_language_data): Delete la_print_typedef
2029 initializer.
2030 * language.c (language_defn::print_typedef): Define member
2031 function.
2032 (unknown_language_data): Delete la_print_typedef initializer.
2033 (unknown_language::print_typedef): New member function.
2034 (auto_language_data): Delete la_print_typedef initializer.
2035 (auto_language::print_typedef): New member function.
2036 * language.h (language_data): Delete la_print_typedef field.
2037 (language_defn::print_typedef): Declare new member function.
2038 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2039 (default_print_typedef): Delete declaration.
2040 * m2-lang.c (m2_language_data): Delete la_print_typedef
2041 initializer.
2042 (m2_language::print_typedef): New member function.
2043 * objc-lang.c (objc_language_data): Delete la_print_typedef
2044 initializer.
2045 * opencl-lang.c (opencl_language_data): Likewise.
2046 * p-lang.c (pascal_language_data): Likewise.
2047 (pascal_language::print_typedef): New member function.
2048 * rust-lang.c (rust_print_typedef): Delete function,
2049 implementation moved to rust_language::print_typedef.
2050 (rust_language): Delete la_print_typedef initializer.
2051 (rust_language::print_typedef): New member function,
2052 implementation from rust_print_typedef.
2053 * typeprint.c (default_print_typedef): Delete.
2054
2055 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2056
2057 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2058 (ada_language::printstr): New member function.
2059 * c-lang.c (c_language_data): Delete la_printstr initializer.
2060 (cplus_language_data): Likewise.
2061 (asm_language_data): Likewise.
2062 (minimal_language_data): Likewise.
2063 * d-lang.c (d_language_data): Likewise.
2064 * f-lang.c (f_printstr): Rename to f_language::printstr.
2065 (f_language_data): Delete la_printstr initializer.
2066 (f_language::printstr): New member function, implementation from
2067 f_printstr.
2068 * go-lang.c (go_language_data): Delete la_printstr initializer.
2069 * language.c (language_defn::printstr): Define new member
2070 function.
2071 (unk_lang_printstr): Delete.
2072 (unknown_language_data): Delete la_printstr initializer.
2073 (unknown_language::printstr): New member function.
2074 (auto_language_data): Delete la_printstr initializer.
2075 (auto_language::printstr): New member function.
2076 * language.h (language_data): Delete la_printstr field.
2077 (language_defn::printstr): Declare new member function.
2078 (LA_PRINT_STRING): Update call to printstr.
2079 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2080 (m2_language_data): Delete la_printstr initializer.
2081 (m2_language::printstr): New member function, implementation from
2082 m2_printstr.
2083 * objc-lang.c (objc_language_data): Delete la_printstr
2084 initializer.
2085 * opencl-lang.c (opencl_language_data): Likewise.
2086 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2087 (pascal_language_data): Delete la_printstr initializer.
2088 (pascal_language::printstr): New member function, implementation
2089 from pascal_printstr.
2090 * p-lang.h (pascal_printstr): Delete declaration.
2091 * rust-lang.c (rust_printstr): Update header comment.
2092 (rust_language_data): Delete la_printstr initializer.
2093 (rust_language::printstr): New member function.
2094
2095 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2096
2097 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2098 (ada_language::printchar): New member function.
2099 * c-lang.c (c_language_data): Delete la_printchar initializer.
2100 (cplus_language_data): Likewise.
2101 (asm_language_data): Likewise.
2102 (minimal_language_data): Likewise.
2103 * d-lang.c (d_language_data): Likewise.
2104 * f-lang.c (f_printchar): Rename to f_language::printchar.
2105 (f_language_data): Delete la_printchar initializer.
2106 (f_language::printchar): New member function, implementation from
2107 f_printchar.
2108 * go-lang.c (go_language_data): Delete la_printchar initializer.
2109 * language.c (unk_lang_printchar): Delete.
2110 (language_defn::printchar): Define new member function.
2111 (unknown_language_data): Delete la_printchar initializer.
2112 (unknown_language::printchar): New member function.
2113 (auto_language_data): Delete la_printchar initializer.
2114 (auto_language::printchar): New member function.
2115 * language.h (language_data): Delete la_printchar field.
2116 (language_defn::printchar): Declare new member function.
2117 (LA_PRINT_CHAR): Update call to printchar.
2118 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2119 (m2_language::printchar): New member function.
2120 * objc-lang.c (objc_language_data): Delete la_printchar
2121 initializer.
2122 * opencl-lang.c (opencl_language_data): Likewise.
2123 * p-lang.c (pascal_language_data): Delete la_printchar
2124 initializer.
2125 (pascal_language::printchar): New member function.
2126 * rust-lang.c (rust_printchar): Rename to
2127 rust_language::printchar.
2128 (rust_language_data): Delete la_printchar initializer.
2129 (rust_language::printchar): New member function, implementation
2130 from rust_printchar.
2131
2132 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2133
2134 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2135 (ada_language_data): Delete la_emitchar initializer.
2136 (ada_language::emitchar): New member function, implementation from
2137 emit_char.
2138 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2139 (cplus_language_data): Likewise.
2140 (asm_language_data): Likewise.
2141 (minimal_language_data): Likewise.
2142 * d-lang.c (d_language_data): Likewise.
2143 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2144 (f_language_data): Delete la_emitchar initializer.
2145 (f_language::emitchar): New member function, implementation from
2146 f_emit_char.
2147 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2148 * language.c (unk_lang_emit_char): Delete.
2149 (language_defn::emitchar): New member function definition.
2150 (unknown_language_data): Delete la_emitchar initializer.
2151 (unknown_language::emitchar): New member function.
2152 (auto_language_data): Delete la_emitchar initializer.
2153 (auto_language::emitchar): New member function.
2154 * language.h (language_data): Delete la_emitchar field.
2155 (language_defn::emitchar): New member field declaration.
2156 (LA_EMIT_CHAR): Update call to emitchar.
2157 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2158 (m2_language_data): Delete la_emitchar initializer.
2159 (m2_language::emitchar): New member function, implementation from
2160 m2_emit_char.
2161 * objc-lang.c (objc_language_data): Delete la_emitchar
2162 initializer.
2163 * opencl-lang.c (opencl_language_data): Likewise.
2164 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2165 (pascal_language_data): Delete la_emitchar initializer.
2166 (pascal_language::emitchar): New member function, implementation
2167 from pascal_emit_char.
2168 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2169 (rust_language_data): Delete la_emitchar initializer.
2170 (rust_language::emitchar): New member function, implementation
2171 from rust_emitchar.
2172
2173 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2174
2175 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2176 (ada_language_data): Delete la_post_parser initializer.
2177 (ada_language::post_parser): New member function.
2178 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2179 (cplus_language_data): Likewise.
2180 (asm_language_data): Likewise.
2181 (minimal_language_data): Likewise.
2182 * d-lang.c (d_language_data): Likewise.
2183 * f-lang.c (f_language_data): Likewise.
2184 * go-lang.c (go_language_data): Likewise.
2185 * language.c (unknown_language_data): Likewise.
2186 (auto_language_data): Likewise.
2187 * language.h (language_data): Delete la_post_parser field.
2188 (language_defn::post_parser): New member function.
2189 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2190 * objc-lang.c (objc_language_data): Likewise.
2191 * opencl-lang.c (opencl_language_data): Likewise.
2192 * p-lang.c (pascal_language_data): Likewise.
2193 * parse.c (parse_exp_in_context): Update call to post_parser.
2194 (null_post_parser): Delete definition.
2195 * parser-defs.h (null_post_parser): Delete declaration.
2196 * rust-lang.c (rust_language_data): Delete la_post_parser
2197 initializer.
2198
2199 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2200
2201 * ada-lang.c (parse): Rename to ada_language::parser.
2202 (ada_language_data): Delete la_parser initializer.
2203 (ada_language::parser): New member function, implementation from
2204 parse.
2205 * c-lang.c (c_language_data): Delete la_parser initializer.
2206 (cplus_language_data): Likewise.
2207 (asm_language_data): Likewise.
2208 (minimal_language_data): Likewise.
2209 * d-lang.c (d_language_data): Likewise.
2210 (d_language::parser): New member function.
2211 * f-lang.c (f_language_data): Delete la_parser initializer.
2212 (f_language::parser): New member function.
2213 * go-lang.c (go_language_data): Delete la_parser initializer.
2214 (go_language::parser): New member function.
2215 * language.c (unk_lang_parser): Delete.
2216 (language_defn::parser): Define new member function.
2217 (unknown_language_data): Delete la_parser initializer.
2218 (unknown_language::parser): New member function.
2219 (auto_language_data): Delete la_parser initializer.
2220 (auto_language::parser): New member function.
2221 * language.h (language_data): Delete la_parser field.
2222 (language_defn::parser): Declare new member function.
2223 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2224 (m2_language::parser): New member function.
2225 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2226 * opencl-lang.c (opencl_language_data): Likewise.
2227 * p-lang.c (pascal_language_data): Likewise.
2228 (pascal_language::parser): New member function.
2229 * parse.c (parse_exp_in_context): Update call to parser.
2230 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2231 (rust_language::parser): New member function.
2232
2233 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2234
2235 * top.c (print_gdb_configuration): Print --with-python-libdir
2236 configuration value.
2237
2238 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2239
2240 * NEWS: Mention change to the alias command.
2241
2242 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2243
2244 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2245 (alias_command_completer)
2246 (make_alias_options_def_group): New functions.
2247 (alias_opts, alias_option_defs): New struct and array.
2248 (alias_usage_error): Update usage.
2249 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2250 Use option framework.
2251 (_initialize_cli_cmds): Update alias command help.
2252 Update aliases command help.
2253 (show_user):
2254 Add NULL for new default_args lookup_cmd argument.
2255 (valid_command_p): Rename to validate_aliased_command.
2256 Add NULL for new default_args lookup_cmd argument. Verify that the
2257 aliased_command has no default args.
2258 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2259 (lookup_cmd_1, lookup_cmd): New argument default_args.
2260 (add_alias_cmd):
2261 Add NULL for new default_args lookup_cmd argument.
2262 (print_help_for_command): Show default args under the layout
2263 alias some_alias = some_aliased_cmd some_alias_default_arg.
2264 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2265 xfree default_args in destructor.
2266 * cli/cli-script.c (process_next_line, do_define_command):
2267 Add NULL for new default_args lookup_cmd argument.
2268 * command.h: Declare new default_args argument in lookup_cmd
2269 and lookup_cmd_1.
2270 * completer.c (complete_line_internal_1):
2271 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2272 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2273 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2274 Likewise.
2275 * infcmd.c (_initialize_infcmd): Likewise.
2276 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2277 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2278 * python/py-param.c (add_setshow_generic): Likewise.
2279 * remote.c (_initialize_remote): Likewise.
2280 * top.c (execute_command): Prepend default_args if command has some.
2281 (set_verbose):
2282 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2283 * tracepoint.c (validate_actionline, encode_actions_1):
2284 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2285
2286 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2287
2288 * jit.c (jit_read_descriptor): Use bool as the return type.
2289 (jit_breakpoint_re_set_internal): Use bool as the return type.
2290 Invert the return value logic; return true if the jit breakpoint
2291 has been successfully initialized.
2292 (jit_inferior_init): Update the call to
2293 jit_breakpoint_re_set_internal.
2294
2295 2020-06-22 Pedro Alves <palves@redhat.com>
2296
2297 PR gdb/25939
2298 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2299 Use the current inferior instead. Don't return
2300 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2301 wait again.
2302 * sol-thread.c (sol_thread_target::wait): Don't reference
2303 inferior_ptid.
2304 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2305 (sol_update_thread_list_callback): Use the current inferior's pid
2306 instead of inferior_ptid.
2307
2308 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2309
2310 * procfs.c: Cleanup many comments.
2311
2312 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2313 (AFTER_WATCHFLAG): Replace by value.
2314
2315 (MAIN_PROC_NAME_FORMAT): Inline ...
2316 (create_procinfo): ... here.
2317
2318 (procfs_debug_inferior): Remove SYS_exec handling.
2319 (syscall_is_exec): Likewise.
2320 (procfs_set_exec_trap): Likewise.
2321
2322 (syscall_is_lwp_exit): Inline in callers.
2323 (syscall_is_exit): Likewise.
2324 (syscall_is_exec): Likewise.
2325 (syscall_is_lwp_create): Likewise.
2326
2327 (invalidate_cache): Remove #if 0 code.
2328
2329 (make_signal_thread_runnable): Remove.
2330 (procfs_target::resume): Remove #if 0 code.
2331
2332 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2333
2334 PR gdb/25939
2335 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2336 call ...
2337 (procfs_target::create_inferior): ... here.
2338
2339 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2340
2341 * exec.c (validate_exec_file): Ensure the build-id is up to
2342 date by calling reopen_exec_file (that checks file timestamp
2343 to decide to re-read the file).
2344
2345 2020-06-18 Pedro Alves <palves@redhat.com>
2346
2347 PR gdb/25412
2348 * gdbthread.h (delete_thread, delete_thread_silent)
2349 (find_thread_ptid): Update comments.
2350 * thread.c (current_thread_): New global.
2351 (is_current_thread): Move higher, and reimplement.
2352 (inferior_thread): Reimplement.
2353 (set_thread_exited): Use bool. Add assertions.
2354 (add_thread_silent): Simplify thread-reuse handling by always
2355 calling delete_thread.
2356 (delete_thread): Remove intro comment.
2357 (find_thread_ptid): Skip exited threads.
2358 (switch_to_thread_no_regs): Write to current_thread_.
2359 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2360 INFERIOR_PTID. Clear current_thread_.
2361
2362 2020-06-18 Pedro Alves <palves@redhat.com>
2363
2364 * aix-thread.c (pd_update): Use switch_to_thread.
2365
2366 2020-06-18 Pedro Alves <palves@redhat.com>
2367
2368 * ravenscar-thread.c (ravenscar_thread_target): Update.
2369 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2370 (ravenscar_thread_target::add_active_thread): ... this. Don't
2371 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2372 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2373
2374 2020-06-18 Pedro Alves <palves@redhat.com>
2375
2376 * nat/windows-nat.c (current_windows_thread): Remove.
2377 * nat/windows-nat.h (current_windows_thread): Remove.
2378 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2379 Adjust.
2380 (display_selectors): Adjust to fetch the current
2381 windows_thread_info based on inferior_ptid.
2382 (fake_create_process): No longer write to current_windows_thread.
2383 (windows_nat_target::get_windows_debug_event):
2384 Don't set inferior_ptid or current_windows_thread.
2385 (windows_nat_target::wait): Adjust to not rely on
2386 current_windows_thread.
2387 (do_initial_windows_stuff): Now a method of windows_nat_target.
2388 Switch to the last_ptid thread.
2389 (windows_nat_target::attach): Adjust.
2390 (windows_nat_target::detach): Use switch_to_no_thread instead of
2391 writing to inferior_ptid directly.
2392 (windows_nat_target::create_inferior): Adjust.
2393
2394 2020-06-18 Pedro Alves <palves@redhat.com>
2395
2396 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2397
2398 2020-06-18 Pedro Alves <palves@redhat.com>
2399
2400 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2401 after creating it, instead of writing to inferior_ptid. Don't
2402 write to inferior_ptid.
2403
2404 2020-06-18 Pedro Alves <palves@redhat.com>
2405
2406 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2407
2408 2020-06-18 Pedro Alves <palves@redhat.com>
2409
2410 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2411 it, instead of writing to inferior_ptid.
2412
2413 2020-06-18 Pedro Alves <palves@redhat.com>
2414
2415 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2416 to inferior_ptid.
2417
2418 2020-06-18 Pedro Alves <palves@redhat.com>
2419
2420 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2421 instead of writing to inferior_ptid directly.
2422
2423 2020-06-18 Pedro Alves <palves@redhat.com>
2424
2425 * corelow.c (core_target::close): Use switch_to_no_thread instead
2426 of writing to inferior_ptid directly.
2427 (add_to_thread_list, core_target_open): Use switch_to_thread
2428 instead of writing to inferior_ptid directly.
2429
2430 2020-06-18 Pedro Alves <palves@redhat.com>
2431
2432 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2433 inferior_ptid.
2434 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2435 inferior_ptid.
2436 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2437 inferior_ptid directly.
2438 (darwin_nat_target::init_thread_list): Switch to thread, instead
2439 of writing to inferior_ptid.
2440 (darwin_nat_target::attach): Don't write to inferior_ptid.
2441 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2442
2443 2020-06-18 Pedro Alves <palves@redhat.com>
2444
2445 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2446 thread.
2447 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2448 Instead use switch_to_thread.
2449 (gnu_nat_target::detach): Use switch_to_no_thread
2450 instead of writing to inferior_ptid directly. Used passed-in
2451 inferior instead of looking up the inferior by pid.
2452
2453 2020-06-18 Pedro Alves <palves@redhat.com>
2454
2455 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2456 inferior_ptid.
2457
2458 2020-06-18 Pedro Alves <palves@redhat.com>
2459
2460 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2461 inferior_ptid.
2462 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2463 thread.
2464 (nto_procfs_target::detach): Avoid referencing
2465 inferior_ptid. Use switch_to_no_thread instead of writing to
2466 inferior_ptid directly.
2467 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2468 instead of writing to inferior_ptid directly.
2469 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2470 to thread.
2471
2472 2020-06-18 Pedro Alves <palves@redhat.com>
2473
2474 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2475 after creating it, instead of writing to inferior_ptid.
2476 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2477 to inferior_ptid directly.
2478 (gdbsim_target::wait): Don't write to inferior_ptid.
2479
2480 2020-06-18 Pedro Alves <palves@redhat.com>
2481
2482 * remote.c (remote_target::remote_notice_new_inferior): Use
2483 switch_to_thread instead of writing to inferior_ptid directly.
2484 (remote_target::add_current_inferior_and_thread): Use
2485 switch_to_no_thread instead of writing to inferior_ptid directly.
2486 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2487 and switch_to_thread instead of using set_current_inferior or
2488 writing to inferior_ptid directly.
2489
2490 2020-06-18 Pedro Alves <palves@redhat.com>
2491
2492 * tracectf.c (ctf_target_open): Switch to added thread instead of
2493 writing to inferior_ptid directly.
2494 (ctf_target::close): Use switch_to_no_thread instead of writing to
2495 inferior_ptid directly.
2496
2497 2020-06-18 Pedro Alves <palves@redhat.com>
2498
2499 * tracefile-tfile.c (tfile_target_open): Don't write to
2500 inferior_ptid directly, instead switch to added thread.
2501 (tfile_target::close): Use switch_to_no_thread instead of writing
2502 to inferior_ptid directly.
2503
2504 2020-06-18 Pedro Alves <palves@redhat.com>
2505
2506 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2507 (procfs_target::detach): Use switch_to_no_thread
2508 instead of writing to inferior_ptid directly.
2509 (do_attach): Change return type to void. Switch to the added
2510 thread.
2511 (procfs_target::create_inferior): Switch to the added thread.
2512 (procfs_do_thread_registers): Don't write to inferior_ptid.
2513
2514 2020-06-18 Pedro Alves <palves@redhat.com>
2515
2516 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2517 of writing to inferior_ptid.
2518 (scoped_restore_exited_inferior): Delete.
2519 (handle_vfork_child_exec_or_exit): Simplify using
2520 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2521 instead of writing to inferior_ptid.
2522 (THREAD_STOPPED_BY): Delete.
2523 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2524 (thread_stopped_by_hw_breakpoint): Delete.
2525 (save_waitstatus): Use
2526 scoped_restore_current_thread+switch_to_thread, and call
2527 target_stopped_by_watchpoint instead of
2528 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2529 instead of thread_stopped_by_sw_breakpoint, and
2530 target_stopped_by_hw_breakpoint instead of
2531 thread_stopped_by_hw_breakpoint.
2532 (handle_inferior_event)
2533 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2534 inferior_ptid directly, nor
2535 set_current_inferior/set_current_program_space. Use
2536 switch_to_thread / switch_to_inferior_no_thread instead.
2537
2538 2020-06-18 Pedro Alves <palves@redhat.com>
2539
2540 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2541 instead of writing to inferior_ptid.
2542
2543 2020-06-18 Pedro Alves <palves@redhat.com>
2544
2545 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2546 added thread.
2547 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2548 to the added thread.
2549 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2550 instead of writing to inferior_ptid.
2551
2552 2020-06-18 Pedro Alves <palves@redhat.com>
2553
2554 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2555 (register_to_value_test): Mock a program_space too. Heap-allocate
2556 the address space. Don't write to inferior_ptid. Use
2557 switch_to_thread instead.
2558
2559 2020-06-18 Pedro Alves <palves@redhat.com>
2560
2561 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2562 Delete.
2563 (find_signalled_thread()): New, factored out from
2564 linux_make_corefile_notes and adjusted to handle exited threads.
2565 (linux_make_corefile_notes): Adjust to use the new
2566 find_signalled_thread.
2567
2568 2020-06-18 Pedro Alves <palves@redhat.com>
2569
2570 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2571 of saving/restoring inferior_ptid.
2572
2573 2020-06-17 Tom Tromey <tom@tromey.com>
2574
2575 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2576 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2577 declare.
2578 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2579
2580 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2581
2582 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2583 of partial symtabs.
2584
2585 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2586
2587 * regformats/reg-arm.dat: Remove.
2588 * regformats/reg-bfin.dat: Remove.
2589 * regformats/reg-cris.dat: Remove.
2590 * regformats/reg-crisv32.dat: Remove.
2591 * regformats/reg-m32r.dat: Remove.
2592 * regformats/reg-tilegx.dat: Remove.
2593 * regformats/reg-tilegx32.dat: Remove.
2594
2595 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2596
2597 * features/Makefile (WHICH): Remove arm files.
2598 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2599 * regformats/arm/arm-with-neon.dat: Remove.
2600 * regformats/arm/arm-with-vfpv2.dat: Remove.
2601 * regformats/arm/arm-with-vfpv3.dat: Remove.
2602
2603 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2604
2605 * features/Makefile (XMLTOC): Remove rx.xml.
2606
2607 2020-06-17 Pedro Alves <palves@redhat.com>
2608
2609 * gdbthread.h (thread_control_state) <trap_expected> Update
2610 comments.
2611
2612 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2613
2614 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2615 ada_language::lookup_symbol_nonlocal.
2616 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2617 (ada_language::lookup_symbol_nonlocal): New member function,
2618 implementation from ada_lookup_symbol_nonlocal.
2619 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2620 initializer.
2621 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2622 initializer.
2623 (cplus_language::lookup_symbol_nonlocal): New member function.
2624 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2625 (minimal_language_data) Likewise.
2626 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2627 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2628 initializer.
2629 (d_language::lookup_symbol_nonlocal): New member function.
2630 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2631 initializer.
2632 (f_language::lookup_symbol_nonlocal): New member function.
2633 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2634 initializer.
2635 * language.c (unknown_language_data): Likewise.
2636 (auto_language_data): Likewise.
2637 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2638 field.
2639 (language_defn::lookup_symbol_nonlocal): New member function.
2640 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2641 initializer.
2642 * objc-lang.c (objc_language_data): Likewise.
2643 * opencl-lang.c (opencl_language_data): Likewise.
2644 * p-lang.c (pascal_language_data): Likewise.
2645 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2646 rust_language::lookup_symbol_nonlocal.
2647 (rust_language_data): Delete la_lookup_symbol_nonlocal
2648 initializer.
2649 (rust_language::lookup_symbol_nonlocal): New member function,
2650 implementation from rust_lookup_symbol_nonlocal.
2651 * symtab.c (lookup_symbol_aux): Update call to
2652 lookup_symbol_nonlocal.
2653 (basic_lookup_symbol_nonlocal): Rename to...
2654 (language_defn::lookup_symbol_nonlocal): ...this, and update
2655 header comment. Remove language_defn parameter, and replace with
2656 uses of `this'.
2657 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2658
2659 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2660
2661 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2662 initializer.
2663 (ada_language::value_print_inner): New member function.
2664 * c-lang.c (c_language_data): Delete la_value_print_inner
2665 initializer.
2666 (cplus_language_data): Likewise.
2667 (asm_language_data): Likewise.
2668 (minimal_language_data): Likewise.
2669 * d-lang.c (d_language_data): Likewise.
2670 (d_language::value_print_inner): New member function.
2671 * f-lang.c (f_language_data): Delete la_value_print_inner
2672 initializer.
2673 (f_language::value_print_inner): New member function.
2674 * f-lang.h (f_value_print_innner): Rename to...
2675 (f_value_print_inner): ...this (note spelling of 'inner').
2676 * f-valprint.c (f_value_print_innner): Rename to...
2677 (f_value_print_inner): ...this (note spelling of 'inner').
2678 * go-lang.c (go_language_data): Delete la_value_print_inner
2679 initializer.
2680 (go_language::value_print_inner): New member function.
2681 * language.c (language_defn::value_print_inner): Define new member
2682 function.
2683 (unk_lang_value_print_inner): Delete.
2684 (unknown_language_data): Delete la_value_print_inner initializer.
2685 (unknown_language::value_print_inner): New member function.
2686 (auto_language_data): Delete la_value_print_inner initializer.
2687 (auto_language::value_print_inner): New member function.
2688 * language.h (language_data): Delete la_value_print_inner field.
2689 (language_defn::value_print_inner): Delcare new member function.
2690 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2691 initializer.
2692 (m2_language::value_print_inner): New member function.
2693 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2694 initializer.
2695 * opencl-lang.c (opencl_language_data): Likewise.
2696 * p-lang.c (pascal_language_data): Likewise.
2697 (pascal_language::value_print_inner): New member function.
2698 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2699 initializer.
2700 (rust_language::value_print_inner): New member function.
2701 * valprint.c (do_val_print): Update call to value_print_inner.
2702
2703 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2704
2705 * ada-lang.c (ada_language_data): Delete la_value_print
2706 initializer.
2707 (ada_language::value_print): New member function.
2708 * c-lang.c (c_language_data): Delete la_value_print initializer.
2709 (cplus_language_data): Likewise.
2710 (asm_language_data): Likewise.
2711 (minimal_language_data): Likewise.
2712 * d-lang.c (d_language_data): Likewise.
2713 * f-lang.c (f_language_data): Likewise.
2714 * go-lang.c (go_language_data): Likewise.
2715 * language.c (unk_lang_value_print): Delete.
2716 (language_defn::value_print): Define new member function.
2717 (unknown_language_data): Delete la_value_print initializer.
2718 (unknown_language::value_print): New member function.
2719 (auto_language_data): Delete la_value_print initializer.
2720 (auto_language::value_print): New member function.
2721 * language.h (language_data): Delete la_value_print field.
2722 (language_defn::value_print): Declare new member function.
2723 (LA_VALUE_PRINT): Update call to value_print.
2724 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2725 * objc-lang.c (objc_language_data): Likewise.
2726 * opencl-lang.c (opencl_language_data): Likewise.
2727 * p-lang.c (pascal_language_data): Likewise.
2728 (pascal_language::value_print): New member function.
2729 * rust-lang.c (rust_language_data): Delete la_value_print
2730 initializer.
2731
2732 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2733
2734 * ada-lang.c (ada_watch_location_expression): Rename to
2735 ada_language::watch_location_expression.
2736 (ada_language_data): Delete la_watch_location_expression
2737 initializer.
2738 (ada_language::watch_location_expression): New member function,
2739 implementation from ada_watch_location_expression.
2740 * breakpoint.c (watch_command_1): Update call to
2741 watch_location_expression.
2742 * c-lang.c (c_watch_location_expression): Rename to
2743 language_defn::watch_location_expression.
2744 (c_language_data): Delete la_watch_location_expression
2745 initializer.
2746 (cplus_language_data): Likewise.
2747 (asm_language_data): Likewise.
2748 (minimal_language_data): Likewise.
2749 * c-lang.h (c_watch_location_expression): Delete declaration.
2750 * d-lang.c (d_language_data): Delete la_watch_location_expression
2751 initializer.
2752 * f-lang.c (f_language_data): Likewise.
2753 * go-lang.c (go_language_data): Likewise.
2754 * language.c (language_defn::watch_location_expression): Member
2755 function implementation from c_watch_location_expression.
2756 (unknown_language_data): Delete la_watch_location_expression
2757 initializer.
2758 (auto_language_data): Likewise.
2759 * language.h (language_data): Delete la_watch_location_expression
2760 field.
2761 (language_defn::watch_location_expression): Declare new member
2762 function.
2763 * m2-lang.c (m2_language_data): Delete
2764 la_watch_location_expression initializer.
2765 * objc-lang.c (objc_language_data): Likewise.
2766 * opencl-lang.c (opencl_language_data): Likewise.
2767 * p-lang.c (pascal_language_data): Likewise.
2768 * rust-lang.c (rust_watch_location_expression): Rename to
2769 rust_language::watch_location_expression.
2770 (rust_language_data): Delete la_watch_location_expression
2771 initializer.
2772 (rust_language::watch_location_expression): New member function,
2773 implementation from rust_watch_location_expression.
2774
2775 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2776
2777 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2778 ada_language::collect_symbol_completion_matches.
2779 (ada_language_data): Delete la_collect_symbol_completion_matches
2780 initializer.
2781 (ada_language::collect_symbol_completion_matches): New member
2782 function, implementation from
2783 ada_collect_symbol_completion_matches.
2784 * c-lang.c (c_language_data): Delete
2785 la_collect_symbol_completion_matches initializer.
2786 (cplus_language_data): Likewise.
2787 (asm_language_data): Likewise.
2788 (minimal_language_data): Likewise.
2789 * d-lang.c (d_language_data): Likewise.
2790 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2791 f_language::collect_symbol_completion_matches.
2792 (f_language_data): Delete la_collect_symbol_completion_matches
2793 initializer.
2794 (f_language::collect_symbol_completion_matches) New member
2795 function, implementation from f_collect_symbol_completion_matches.
2796 * go-lang.c (go_language_data): Delete
2797 la_collect_symbol_completion_matches initializer.
2798 * language.c (unknown_language_data): Likewise.
2799 (auto_language_data): Likewise.
2800 * language.h (language_data): Delete
2801 la_collect_symbol_completion_matches field.
2802 (language_defn::collect_symbol_completion_matches): New member
2803 function.
2804 * m2-lang.c (m2_language_data): Delete
2805 la_collect_symbol_completion_matches initializer.
2806 * objc-lang.c (objc_language_data): Likewise.
2807 * opencl-lang.c (opencl_language_data): Likewise.
2808 * p-lang.c (pascal_language_data): Likewise.
2809 * rust-lang.c (rust_language_data): Likewise.
2810 * symtab.c (default_collect_symbol_completion_matches): Delete.
2811 (collect_symbol_completion_matches): Update call to
2812 collect_symbol_completion_matches.
2813 (collect_symbol_completion_matches_type): Likewise.
2814 * symtab.h (default_collect_symbol_completion_matches): Delete
2815 declaration.
2816
2817 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2818
2819 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2820 (ada_language_data): Delete la_word_break_characters initializer.
2821 (ada_language::word_break_characters): New member function.
2822 * c-lang.c (c_language_data): Delete la_word_break_characters
2823 initializer.
2824 (cplus_language_data): Likewise.
2825 (asm_language_data): Likewise.
2826 (minimal_language_data): Likewise.
2827 * completer.c: Update global comment.
2828 (advance_to_expression_complete_word_point): Update call to
2829 word_break_characters.
2830 (complete_files_symbols): Likewise.
2831 (complete_line_internal_1): Likewise.
2832 (default_completer_handle_brkchars): Likewise.
2833 (skip_quoted_chars): Likewise.
2834 * d-lang.c (d_language_data): Delete la_word_break_characters
2835 initializer.
2836 * f-lang.c (f_word_break_characters): Delete.
2837 (f_language_data): Delete la_word_break_characters initializer.
2838 (f_language::word_break_characters): New member function.
2839 * go-lang.c (go_language_data): Delete la_word_break_characters
2840 initializer.
2841 * language.c (unknown_language_data): Likewise.
2842 (auto_language_data): Likewise.
2843 * language.h (default_word_break_characters): Move declaration to
2844 earlier in the file.
2845 (language_data): Delete la_word_break_characters field.
2846 (language_defn::word_break_characters): New member function.
2847 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2848 initializer.
2849 * objc-lang.c (objc_language_data): Likewise.
2850 * opencl-lang.c (opencl_language_data): Likewise.
2851 * p-lang.c (pascal_language_data): Likewise.
2852 * rust-lang.c (rust_language_data): Likewise.
2853
2854 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2855
2856 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2857 (ada_language_data): Delete la_get_symbol_name_matcher
2858 initializer.
2859 (language_defn::get_symbol_name_matcher_inner): New member
2860 function.
2861 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2862 initializer.
2863 (cplus_language_data): Likewise.
2864 (cplus_language::get_symbol_name_matcher_inner): New member
2865 function.
2866 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2867 (minimal_language_data): Likewise.
2868 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2869 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2870 initializer.
2871 * dictionary.c (iter_match_first_hashed): Update call to
2872 get_symbol_name_matcher.
2873 (iter_match_next_hashed): Likewise.
2874 (iter_match_next_linear): Likewise.
2875 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2876 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2877 initializer.
2878 (f_language::get_symbol_name_matcher_inner): New member function.
2879 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2880 initializer.
2881 * language.c (default_symbol_name_matcher): Update header comment,
2882 make static.
2883 (language_defn::get_symbol_name_matcher): New definition.
2884 (language_defn::get_symbol_name_matcher_inner): Likewise.
2885 (get_symbol_name_matcher): Delete.
2886 (unknown_language_data): Delete la_get_symbol_name_matcher
2887 initializer.
2888 (auto_language_data): Likewise.
2889 * language.h (language_data): Delete la_get_symbol_name_matcher
2890 field.
2891 (language_defn::get_symbol_name_matcher): New member function.
2892 (language_defn::get_symbol_name_matcher_inner): Likewise.
2893 (default_symbol_name_matcher): Delete declaration.
2894 * linespec.c (find_methods): Update call to
2895 get_symbol_name_matcher.
2896 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2897 initializer.
2898 * minsyms.c (lookup_minimal_symbol): Update call to
2899 get_symbol_name_matcher.
2900 (iterate_over_minimal_symbols): Likewise.
2901 * objc-lang.c (objc_language_data): Delete
2902 la_get_symbol_name_matcher initializer.
2903 * opencl-lang.c (opencl_language_data): Likewise.
2904 * p-lang.c (pascal_language_data): Likewise.
2905 * psymtab.c (psymbol_name_matches): Update call to
2906 get_symbol_name_matcher.
2907 * rust-lang.c (rust_language_data): Delete
2908 la_get_symbol_name_matcher initializer.
2909 * symtab.c (symbol_matches_search_name): Update call to
2910 get_symbol_name_matcher.
2911 (compare_symbol_name): Likewise.
2912
2913 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2914
2915 * ada-lang.c (ada_language_data): Delete la_compute_program
2916 initializer.
2917 * c-lang.c (c_language_data): Likewise.
2918 (c_language::compute_program): New member function.
2919 (cplus_language_data): Delete la_compute_program initializer.
2920 (cplus_language::compute_program): New member function.
2921 (asm_language_data): Delete la_compute_program initializer.
2922 (minimal_language_data): Likewise.
2923 * c-lang.h (c_compute_program): Update comment.
2924 (cplus_compute_program): Likewise.
2925 * compile/compile-c-support.c (c_compute_program): Likewise.
2926 (cplus_compute_program): Likewise.
2927 * compile/compile.c (compile_to_object): Update call to
2928 la_compute_program.
2929 * d-lang.c (d_language_data): Delete la_compute_program
2930 initializer.
2931 * f-lang.c (f_language_data): Likewise.
2932 * go-lang.c (go_language_data): Likewise.
2933 * language.c (unknown_language_data): Likewise.
2934 (auto_language_data): Likewise.
2935 * language.h (language_data): Delete la_compute_program field.
2936 (language_defn::compute_program): New member function.
2937 * m2-lang.c (m2_language_data): Delete la_compute_program
2938 initializer.
2939 * objc-lang.c (objc_language_data): Likewise.
2940 * opencl-lang.c (opencl_language_data): Likewise.
2941 * p-lang.c (pascal_language_data): Likewise.
2942 * rust-lang.c (rust_language_data): Likewise.
2943
2944 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2945
2946 * ada-lang.c (ada_language_data) Delete
2947 la_class_name_from_physname initializer.
2948 * c-lang.c (c_language_data): Likewise.
2949 (cplus_language_data): Likewise.
2950 (cplus_language::class_name_from_physname): New member function.
2951 (asm_language_data): Delete la_class_name_from_physname
2952 initializer.
2953 (minimal_language_data): Likewise.
2954 * d-lang.c (d_language_data): Likewise.
2955 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2956 method on language_defn class.
2957 (guess_full_die_structure_name): Likewise.
2958 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2959 initializer.
2960 * go-lang.c (go_language_data): Likewise.
2961 * language.c (language_class_name_from_physname): Delete.
2962 (unk_lang_class_name): Delete.
2963 (unknown_language_data): Delete la_class_name_from_physname
2964 initializer.
2965 (auto_language_data): Likewise.
2966 * language.h (language_data): Delete la_class_name_from_physname
2967 field.
2968 (language_defn::class_name_from_physname): New function.
2969 (language_class_name_from_physname): Delete declaration.
2970 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2971 initializer.
2972 * objc-lang.c (objc_language_data): Likewise.
2973 * opencl-lang.c (opencl_language_data): Likewise.
2974 * p-lang.c (pascal_language_data): Likewise.
2975 * rust-lang.c (rust_language_data): Likewise.
2976
2977 2020-06-16 Tom Tromey <tom@tromey.com>
2978
2979 * tui/tui-data.h (STATUS_NAME): New macro.
2980 * tui/tui-layout.c (tui_remove_some_windows)
2981 (initialize_known_windows, tui_register_window)
2982 (tui_layout_split::remove_windows, initialize_layouts)
2983 (tui_new_layout_command): Don't use hard-coded window names.
2984
2985 2020-06-16 Tom Tromey <tom@tromey.com>
2986
2987 PR tui/25348:
2988 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2989 tui_initialize_readline. Only run once. Call rl_initialize.
2990 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2991 tui_initialize_readline.
2992 * tui/tui-io.c (tui_setup_io): Call
2993 tui_ensure_readline_initialized.
2994 * tui/tui-interp.c (tui_interp::init): Update.
2995
2996 2020-06-16 Tom Tromey <tom@tromey.com>
2997
2998 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2999 Also preserve the status window.
3000
3001 2020-06-16 Tom Tromey <tom@tromey.com>
3002
3003 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3004 where m_window==nullptr.
3005
3006 2020-06-15 Tom Tromey <tromey@adacore.com>
3007
3008 * windows-nat.c (windows_nat::handle_output_debug_string):
3009 Update.
3010 (windows_nat::handle_ms_vc_exception): Update.
3011 * target.h (target_read_string): Change API.
3012 * target.c (target_read_string): Change API.
3013 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3014 Update.
3015 * solib-frv.c (frv_current_sos): Update.
3016 * solib-dsbt.c (dsbt_current_sos): Update.
3017 * solib-darwin.c (darwin_current_sos): Update.
3018 * linux-thread-db.c (inferior_has_bug): Update.
3019 * expprint.c (print_subexp_standard): Update.
3020 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3021 (ada_exception_message_1): Update.
3022
3023 2020-06-15 Tom Tromey <tromey@adacore.com>
3024
3025 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3026
3027 2020-06-15 Tom Tromey <tromey@adacore.com>
3028
3029 * valprint.c (read_string): Update comment.
3030 * target.c (MIN): Remove.
3031 (target_read_string): Rewrite.
3032
3033 2020-06-15 Tom Tromey <tromey@adacore.com>
3034
3035 * corefile.c (read_memory_string): Remove.
3036 * ada-valprint.c (ada_value_print_ptr): Update.
3037 * ada-lang.h (ada_tag_name): Change return type.
3038 * ada-lang.c (type_from_tag): Update.
3039 (ada_tag_name_from_tsd): Change return type. Use
3040 target_read_string.
3041 (ada_tag_name): Likewise.
3042 * gdbcore.h (read_memory_string): Don't declare.
3043
3044 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3045
3046 * symtab.c (rbreak_command): Ignore Windows drive colon.
3047
3048 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3049
3050 * NEWS: Mention removed GDBserver host support.
3051
3052 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3053
3054 * features/riscv/rebuild-csr-xml.sh: Updated.
3055
3056 2020-06-11 Tom Tromey <tom@tromey.com>
3057
3058 PR gdb/18318:
3059 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3060
3061 2020-06-09 Jonny Grant <jg@jguk.org>
3062 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3063
3064 * main.c (captured_main_1): Don't print new line after help.
3065 (print_gdb_help): add mailing list and IRC channel information
3066 to --help. Add new lines between items in the footer. Remove
3067 quotes around bug url.
3068
3069 2020-06-11 Keith Seitz <keiths@redhat.com>
3070
3071 PR gdb/21356
3072 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3073 Resolve typedefs for type length calculations.
3074
3075 2020-06-10 Tom de Vries <tdevries@suse.de>
3076
3077 PR ada/24713
3078 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3079 (write_psymbols): Enable .gdb_index for ada.
3080 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3081 ada.
3082
3083 2020-06-10 Tom de Vries <tdevries@suse.de>
3084
3085 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3086 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3087 namei" instead of "const char *name" argument.
3088 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3089 dw2_symtab_iter_init.
3090
3091 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3092
3093 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3094 to use type::field and field::type instead.
3095
3096 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3097
3098 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3099 to use field::type instead.
3100
3101 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3102
3103 * gdbtypes.h (struct field) <type, set_type>: New methods.
3104 Rename `type` field to...
3105 <m_type>: ... this. Change references throughout to use type or
3106 set_type methods.
3107 (FIELD_TYPE): Use field::type. Change call sites that modify
3108 the field's type to use field::set_type instead.
3109
3110 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3111
3112 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3113 to use type::index_type instead.
3114
3115 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3116
3117 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3118 methods.
3119 (TYPE_INDEX_TYPE): Use type::index_type.
3120 * gdbtypes.c (create_array_type_with_stride): Likewise.
3121
3122 2020-06-07 Tom Tromey <tom@tromey.com>
3123
3124 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3125 parameter.
3126 (generic_value_print): Update.
3127
3128 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3129
3130 Revert commit 982a38f60b0.
3131 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3132
3133 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3134
3135 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3136 avoid use after free.
3137
3138 2020-06-05 Tom de Vries <tdevries@suse.de>
3139
3140 * NEWS: Fix typos.
3141
3142 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3143
3144 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3145 the per_bfd object.
3146 (dwarf2_read_debug_names): Likewise.
3147 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3148 object when re-using a per_bfd object with an index.
3149
3150 2020-06-03 Tom de Vries <tdevries@suse.de>
3151
3152 PR symtab/26046
3153 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3154 children for C++.
3155 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3156 DW_TAG_subprogram.
3157
3158 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3159
3160 * ada-lang.c (ada_language_data): Delete skip_trampoline
3161 initializer.
3162 * c-lang.c (c_language_data): Likewise.
3163 (cplus_language_data): Likewise.
3164 (cplus_language::skip_trampoline): New member function.
3165 (asm_language_data): Delete skip_trampoline initializer.
3166 (minimal_language_data): Likewise.
3167 * d-lang.c (d_language_data): Likewise.
3168 * f-lang.c (f_language_data): Likewise.
3169 * go-lang.c (go_language_data): Likewise.
3170 * language.c (unk_lang_trampoline): Delete function.
3171 (skip_language_trampoline): Update.
3172 (unknown_language_data): Delete skip_trampoline initializer.
3173 (auto_language_data): Likewise.
3174 * language.h (language_data): Delete skip_trampoline field.
3175 (language_defn::skip_trampoline): New function.
3176 * m2-lang.c (m2_language_data): Delete skip_trampoline
3177 initializer.
3178 * objc-lang.c (objc_skip_trampoline): Delete function, move
3179 implementation to objc_language::skip_trampoline.
3180 (objc_language_data): Delete skip_trampoline initializer.
3181 (objc_language::skip_trampoline): New member function with
3182 implementation from objc_skip_trampoline.
3183 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3184 initializer.
3185 * p-lang.c (pascal_language_data): Likewise.
3186 * rust-lang.c (rust_language_data): Likewise.
3187
3188 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3189
3190 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3191 (ada_language::demangle): New member function.
3192 * c-lang.c (c_language_data): Delete la_demangle initializer.
3193 (cplus_language_data): Delete la_demangle initializer.
3194 (cplus_language::demangle): New member function.
3195 (asm_language_data): Delete la_demangle initializer.
3196 (minimal_language_data): Delete la_demangle initializer.
3197 * d-lang.c (d_language_data): Delete la_demangle initializer.
3198 (d_language::demangle): New member function.
3199 * f-lang.c (f_language_data): Delete la_demangle initializer.
3200 (f_language::demangle): New member function.
3201 * go-lang.c (go_language_data): Delete la_demangle initializer.
3202 (go_language::demangle): New member function.
3203 * language.c (language_demangle): Update.
3204 (unk_lang_demangle): Delete.
3205 (unknown_language_data): Delete la_demangle initializer.
3206 (unknown_language::demangle): New member function.
3207 (auto_language_data): Delete la_demangle initializer.
3208 (auto_language::demangle): New member function.
3209 * language.h (language_data): Delete la_demangle field.
3210 (language_defn::demangle): New function.
3211 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3212 * objc-lang.c (objc_language_data): Delete la_demangle
3213 initializer.
3214 (objc_language::demangle): New member function.
3215 * opencl-lang.c (opencl_language_data): Delete la_demangle
3216 initializer.
3217 * p-lang.c (pascal_language_data): Likewise.
3218 * rust-lang.c (rust_language_data): Likewise.
3219 (rust_language::demangle): New member function.
3220
3221 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3222
3223 * ada-lang.c (ada_language_data): Delete la_print_type
3224 initializer.
3225 (ada_language::print_type): New member function.
3226 * c-lang.c (c_language_data): Delete la_print_type initializer.
3227 (c_language::print_type): New member function.
3228 (cplus_language_data): Delete la_print_type initializer.
3229 (cplus_language::print_type): New member function.
3230 (asm_language_data): Delete la_print_type initializer.
3231 (asm_language::print_type): New member function.
3232 (minimal_language_data): Delete la_print_type initializer.
3233 (minimal_language::print_type): New member function.
3234 * d-lang.c (d_language_data): Delete la_print_type initializer.
3235 (d_language::print_type): New member function.
3236 * f-lang.c (f_language_data): Delete la_print_type initializer.
3237 (f_language::print_type): New member function.
3238 * go-lang.c (go_language_data): Delete la_print_type initializer.
3239 (go_language::print_type): New member function.
3240 * language.c (unk_lang_print_type): Delete.
3241 (unknown_language_data): Delete la_print_type initializer.
3242 (unknown_language::print_type): New member function.
3243 (auto_language_data): Delete la_print_type initializer.
3244 (auto_language::print_type): New member function.
3245 * language.h (language_data): Delete la_print_type field.
3246 (language_defn::print_type): New function.
3247 (LA_PRINT_TYPE): Update.
3248 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3249 (m2_language::print_type): New member function.
3250 * objc-lang.c (objc_language_data): Delete la_print_type
3251 initializer.
3252 (objc_language::print_type): New member function.
3253 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3254 to opencl_language::print_type.
3255 (opencl_language_data): Delete la_print_type initializer.
3256 (opencl_language::print_type): New member function, implementation
3257 from opencl_print_type.
3258 * p-lang.c (pascal_language_data): Delete la_print_type
3259 initializer.
3260 (pascal_language::print_type): New member function.
3261 * rust-lang.c (rust_print_type): Delete, implementation moved to
3262 rust_language::print_type.
3263 (rust_language_data): Delete la_print_type initializer.
3264 (rust_language::print_type): New member function, implementation
3265 from rust_print_type.
3266
3267 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3268
3269 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3270 implementation moves to...
3271 (ada_language::sniff_from_mangled_name): ...here. Update return
3272 type.
3273 (ada_language_data): Delete la_sniff_from_mangled_name
3274 initializer.
3275 * c-lang.c (c_language_data): Likewise.
3276 (cplus_language_data): Likewise.
3277 (cplus_language::sniff_from_mangled_name): New member function,
3278 implementation taken from gdb_sniff_from_mangled_name.
3279 (asm_language_data): Delete la_sniff_from_mangled_name
3280 initializer.
3281 (minimal_language_data): Likewise.
3282 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3283 implementation moves to cplus_language::sniff_from_mangled_name.
3284 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3285 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3286 moves to...
3287 (d_language::sniff_from_mangled_name): ...here.
3288 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3289 * f-lang.c (f_language_data): Likewise.
3290 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3291 moves to...
3292 (go_language::sniff_from_mangled_name): ...here.
3293 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3294 * language.c (language_sniff_from_mangled_name): Delete.
3295 (unknown_language_data): Delete la_sniff_from_mangled_name
3296 initializer.
3297 (auto_language_data): Likewise.
3298 * language.h (language_data): Delete la_sniff_from_mangled_name
3299 field.
3300 (language_defn::sniff_from_mangled_name): New function.
3301 (language_sniff_from_mangled_name): Delete declaration.
3302 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3303 field.
3304 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3305 implementation moves to...
3306 (objc_language::sniff_from_mangled_name): ...here.
3307 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3308 * opencl-lang.c (opencl_language_data): Likewise.
3309 * p-lang.c (pascal_language_data): Likewise.
3310 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3311 implementation moves to...
3312 (rust_language::sniff_from_mangled_name): ...here.
3313 (rust_language_data): Delete la_sniff_from_mangled_name
3314 initializer.
3315 * symtab.c (symbol_find_demangled_name): Call
3316 sniff_from_mangled_name member function.
3317
3318 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3319
3320 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3321 initializer.
3322 * c-lang.c (c_language_data): Likewise.
3323 (cplus_language_data): Likewise.
3324 (cplus_language::search_name_hash): New member function.
3325 (asm_language_data): Delete la_search_name_hash initializer.
3326 (minimal_language_data): Likewise.
3327 * d-lang.c (d_language_data): Likewise.
3328 * dictionary.c (default_search_name_hash): Rename to...
3329 (language_defn::search_name_hash): ...this.
3330 * f-lang.c (f_language_data): Likewise.
3331 (f_language::search_name_hash): New member function.
3332 * go-lang.c (go_language_data): Delete la_search_name_hash
3333 initializer.
3334 * language.c (unknown_language_data): Likewise.
3335 (auto_language_data): Likewise.
3336 * language.h (struct language_data): Delete la_search_name_hash
3337 field.
3338 (language_defn::search_name_hash): Declare new member function.
3339 (default_search_name_hash): Delete declaration.
3340 * m2-lang.c (m2_language_data): Delete la_search_name_hash
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 * symtab.c (search_name_hash): Update call.
3347
3348 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3349
3350 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3351 initializer.
3352 * c-lang.c (class compile_instance): Declare.
3353 (c_language_data): Delete la_get_compile_instance initializer.
3354 (c_language::get_compile_instance): New member function.
3355 (cplus_language_data): Delete la_get_compile_instance initializer.
3356 (cplus_language::get_compile_instance): New member function.
3357 (asm_language_data): Delete la_get_compile_instance initializer.
3358 (minimal_language_data): Likewise.
3359 * c-lang.h (c_get_compile_context): Update comment.
3360 (cplus_get_compile_context): Update comment.
3361 * compile/compile.c (compile_to_object): Update calls, don't rely
3362 on function pointer being NULL.
3363 * d-lang.c (d_language_data): Delete la_get_compile_instance
3364 initializer.
3365 * f-lang.c (f_language_data): Likewise.
3366 * go-lang.c (go_language_data): Likewise.
3367 * language.c (unknown_language_data): Likewise.
3368 (auto_language_data): Likewise.
3369 * language.h (language_data): Delete la_get_compile_instance field.
3370 (language_defn::get_compile_instance): New member function.
3371 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3372 initializer.
3373 * objc-lang.c (objc_language_data): Likewise.
3374 * opencl-lang.c (opencl_language_data): Likewise.
3375 * p-lang.c (pascal_language_data): Likewise.
3376 * rust-lang.c (rust_language_data): Likewise.
3377
3378 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3379
3380 * ada-lang.c (ada_add_all_symbols): Update comment.
3381 (ada_iterate_over_symbols): Delete, move implementation to...
3382 (ada_language::iterate_over_symbols): ...here, a new member
3383 function, rewrite to use range based for loop.
3384 (ada_language_data): Delete la_iterate_over_symbols initializer.
3385 * c-lang.c (c_language_data): Likewise.
3386 (cplus_language_data): Likewise.
3387 (asm_language_data): Likewise.
3388 (minimal_language_data): Likewise.
3389 * d-lang.c (d_language_data): Likewise.
3390 * f-lang.c (f_language_data): Likewise.
3391 * go-lang.c (go_language_data): Likewise.
3392 * language.c (unknown_language_data): Likewise.
3393 (auto_language_data): Likewise.
3394 * language.h (language_data): Delete la_iterate_over_symbols field.
3395 (language_defn::iterate_over_symbols): New member function.
3396 (LA_ITERATE_OVER_SYMBOLS): Update.
3397 * linespec.c (iterate_over_all_matching_symtabs): Update.
3398 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3399 initializer.
3400 * objc-lang.c (objc_language_data): Likewise.
3401 * opencl-lang.c (opencl_language_data): Likewise.
3402 * p-lang.c (pascal_language_data): Likewise.
3403 * rust-lang.c (rust_language_data): Likewise.
3404
3405 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3406
3407 * ada-lang.c (ada_language_data): Delete
3408 la_lookup_transparent_type initializer.
3409 * c-lang.c (c_language_data): Likewise.
3410 (cplus_language_data): Likewise.
3411 (cplus_language::lookup_transparent_type): New member function.
3412 (asm_language_data): Delete la_lookup_transparent_type
3413 initializer.
3414 (minimal_language_data): Likewise.
3415 * d-lang.c (d_language_data): Likewise.
3416 * f-lang.c (f_language_data): Likewise.
3417 * go-lang.c (go_language_data): Likewise.
3418 * language.c (unknown_language_data): Likewise.
3419 (auto_language_data): Likewise.
3420 * language.h (struct language_data): Delete
3421 la_lookup_transparent_type field.
3422 (language_defn::lookup_transparent_type): New member function.
3423 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3424 initializer.
3425 * objc-lang.c (objc_language_data): Likewise.
3426 * opencl-lang.c (opencl_language_data): Likewise.
3427 * p-lang.c (pascal_language_data): Likewise.
3428 * rust-lang.c (rust_language_data): Likewise.
3429 * symtab.c (symbol_matches_domain): Update call.
3430
3431 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3432
3433 * ada-lang.c (ada_language_arch_info): Delete function, move
3434 implementation to...
3435 (ada_language::language_arch_info): ...here, a new member
3436 function.
3437 (ada_language_data): Delete la_language_arch_info.
3438 * c-lang.c (c_language_data): Likewise.
3439 (c_language::language_arch_info): New member function.
3440 (cplus_language_arch_info): Delete function, move
3441 implementation to...
3442 (cplus_language::language_arch_info): ...here, a new member
3443 function.
3444 (cplus_language_data): Delete la_language_arch_info.
3445 (asm_language_data): Likewise.
3446 (asm_language::language_arch_info): New member function.
3447 (minimal_language_data): Delete la_language_arch_info.
3448 (minimal_language::language_arch_info): New member function.
3449 * d-lang.c (d_language_arch_info): Delete function, move
3450 implementation to...
3451 (d_language::language_arch_info): ...here, a new member
3452 function.
3453 (d_language_data): Delete la_language_arch_info.
3454 * f-lang.c (f_language_arch_info): Delete function, move
3455 implementation to...
3456 (f_language::language_arch_info): ...here, a new member
3457 function.
3458 (f_language_data): Delete la_language_arch_info.
3459 * go-lang.c (go_language_arch_info): Delete function, move
3460 implementation to...
3461 (go_language::language_arch_info): ...here, a new member
3462 function.
3463 (go_language_data): Delete la_language_arch_info.
3464 * language.c (unknown_language_data): Likewise.
3465 (unknown_language::language_arch_info): New member function.
3466 (auto_language_data): Delete la_language_arch_info.
3467 (auto_language::language_arch_info): New member function.
3468 (language_gdbarch_post_init): Update call to
3469 la_language_arch_info.
3470 * language.h (language_data): Delete la_language_arch_info
3471 function pointer.
3472 (language_defn::language_arch_info): New function.
3473 * m2-lang.c (m2_language_arch_info): Delete function, move
3474 implementation to...
3475 (m2_language::language_arch_info): ...here, a new member
3476 function.
3477 (m2_language_data): Delete la_language_arch_info.
3478 * objc-lang.c (objc_language_arch_info): Delete function, move
3479 implementation to...
3480 (objc_language::language_arch_info): ...here, a new member
3481 function.
3482 (objc_language_data): Delete la_language_arch_info.
3483 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3484 implementation to...
3485 (opencl_language::language_arch_info): ...here, a new member
3486 function.
3487 (opencl_language_data): Delete la_language_arch_info.
3488 * p-lang.c (pascal_language_arch_info): Delete function, move
3489 implementation to...
3490 (pascal_language::language_arch_info): ...here, a new member
3491 function.
3492 (pascal_language_data): Delete la_language_arch_info.
3493 * rust-lang.c (rust_language_arch_info): Delete function, move
3494 implementation to...
3495 (rust_language::language_arch_info): ...here, a new member
3496 function.
3497 (rust_language_data): Delete la_language_arch_info.
3498
3499 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3500
3501 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3502 initializer.
3503 * c-lang.c (c_language_data): Likewise.
3504 (cplus_language_data): Likewise.
3505 (cplus_language::pass_by_reference_info): New method.
3506 (asm_language_data): Delete la_pass_by_reference initializer.
3507 (minimal_language_data): Likewise.
3508 * cp-abi.c (cp_pass_by_reference): Remove use of
3509 default_pass_by_reference.
3510 * d-lang.c (d_language_data): Likewise.
3511 * f-lang.c (f_language_data): Likewise.
3512 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3513 default_pass_by_reference.
3514 * go-lang.c (go_language_data): Likewise.
3515 * language.c (language_pass_by_reference): Update.
3516 (default_pass_by_reference): Delete.
3517 (unknown_language_data): Delete la_pass_by_reference
3518 initializer.
3519 (auto_language_data): Likewise.
3520 * language.h (struct language_data): Delete la_pass_by_reference
3521 field.
3522 (language_defn::pass_by_reference_info): New member function.
3523 (default_pass_by_reference): Delete declaration.
3524 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3525 initializer.
3526 * objc-lang.c (objc_language_data): Likewise.
3527 * opencl-lang.c (opencl_language_data): Likewise.
3528 * p-lang.c (pascal_language_data): Likewise.
3529 * rust-lang.c (rust_language_data): Likewise.
3530
3531 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3532
3533 * ada-lang.c (ada_read_var_value): Delete function, move
3534 implementation to...
3535 (ada_language::read_var_value): ...here.
3536 (ada_language_data): Delete la_read_var_value 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 * findvar.c (default_read_var_value): Rename to...
3543 (language_defn::read_var_value): ...this.
3544 * findvar.c (read_var_value): Update header comment, and change to
3545 call member function instead of function pointer.
3546 * go-lang.c (go_language_data): Likewise.
3547 * language.c (unknown_language_data): Delete la_read_var_value
3548 initializer.
3549 (auto_language_data): Likewise.
3550 * language.h (struct language_data): Delete la_read_var_value
3551 field.
3552 (language_defn::read_var_value): New member function.
3553 (default_read_var_value): Delete declaration.
3554 * m2-lang.c (m2_language_data): Delete la_read_var_value
3555 initializer.
3556 * objc-lang.c (objc_language_data): Likewise.
3557 * opencl-lang.c (opencl_language_data): Likewise.
3558 * p-lang.c (pascal_language_data): Likewise.
3559 * rust-lang.c (rust_language_data): Likewise.
3560 * value.h (default_read_var_value): Delete declaration.
3561
3562 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3563
3564 * ada-lang.c (ada_print_array_index): Delete function, move
3565 implementation to...
3566 (ada_language::print_array_index): ...here.
3567 (ada_language_data): Delete la_print_array_index initializer.
3568 * c-lang.c (c_language_data): Likewise.
3569 (cplus_language_data): Likewise.
3570 (minimal_language_data): Likewise.
3571 * d-lang.c (d_language_data): Likewise.
3572 * f-lang.c (f_language_data): Likewise.
3573 * go-lang.c (go_language_data): Likewise.
3574 * language.c (default_print_array_index): Delete function, move
3575 implementation to...
3576 (language_defn::print_array_index): ...here.
3577 (unknown_language_data): Delete la_print_array_index initializer.
3578 (auto_language_data): Likewise.
3579 * language.h (struct language_data): Delete la_print_array_index
3580 field.
3581 (language_defn::print_array_index): New member function.
3582 (LA_PRINT_ARRAY_INDEX): Update.
3583 (default_print_array_index): Delete declaration.
3584 * m2-lang.c (m2_language_data): Delete la_print_array_index
3585 initializer.
3586 * objc-lang.c (objc_language_data): Likewise.
3587 * opencl-lang.c (opencl_language_data): Likewise.
3588 * p-lang.c (pascal_language_data): Likewise.
3589 * rust-lang.c (rust_language_data): Likewise.
3590
3591 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3592
3593 * gdb/ada-lang.c (ada_language_defn): Convert to...
3594 (ada_language_data): ...this.
3595 (class ada_language): New class.
3596 (ada_language_defn): New static global.
3597 * gdb/c-lang.c (c_language_defn): Convert to...
3598 (c_language_data): ...this.
3599 (class c_language): New class.
3600 (c_language_defn): New static global.
3601 (cplus_language_defn): Convert to...
3602 (cplus_language_data): ...this.
3603 (class cplus_language): New class.
3604 (cplus_language_defn): New static global.
3605 (asm_language_defn): Convert to...
3606 (asm_language_data): ...this.
3607 (class asm_language): New class.
3608 (asm_language_defn): New static global.
3609 (minimal_language_defn): Convert to...
3610 (minimal_language_data): ...this.
3611 (class minimal_language): New class.
3612 (minimal_language_defn): New static global.
3613 * gdb/d-lang.c (d_language_defn): Convert to...
3614 (d_language_data): ...this.
3615 (class d_language): New class.
3616 (d_language_defn): New static global.
3617 * gdb/f-lang.c (f_language_defn): Convert to...
3618 (f_language_data): ...this.
3619 (class f_language): New class.
3620 (f_language_defn): New static global.
3621 * gdb/go-lang.c (go_language_defn): Convert to...
3622 (go_language_data): ...this.
3623 (class go_language): New class.
3624 (go_language_defn): New static global.
3625 * gdb/language.c (unknown_language_defn): Remove declaration.
3626 (current_language): Initialize to nullptr, real initialization is
3627 moved to _initialize_language.
3628 (languages): Delete global.
3629 (language_defn::languages): Define.
3630 (set_language_command): Use language_defn::languages.
3631 (set_language): Likewise.
3632 (range_error): Likewise.
3633 (language_enum): Likewise.
3634 (language_def): Likewise.
3635 (add_set_language_command): Use language_def::languages for the
3636 language list, and language_def to lookup language pointers.
3637 (skip_language_trampoline): Use language_defn::languages.
3638 (unknown_language_defn): Convert to...
3639 (unknown_language_data): ...this.
3640 (class unknown_language): New class.
3641 (unknown_language_defn): New static global.
3642 (auto_language_defn): Convert to...
3643 (auto_language_data): ...this.
3644 (class auto_language): New class.
3645 (auto_language_defn): New static global.
3646 (language_gdbarch_post_init): Use language_defn::languages.
3647 (_initialize_language): Initialize current_language.
3648 * gdb/language.h (struct language_defn): Rename to...
3649 (struct language_data): ...this.
3650 (struct language_defn): New.
3651 (auto_language_defn): Delete.
3652 (unknown_language_defn): Delete.
3653 (minimal_language_defn): Delete.
3654 (ada_language_defn): Delete.
3655 (asm_language_defn): Delete.
3656 (c_language_defn): Delete.
3657 (cplus_language_defn): Delete.
3658 (d_language_defn): Delete.
3659 (f_language_defn): Delete.
3660 (go_language_defn): Delete.
3661 (m2_language_defn): Delete.
3662 (objc_language_defn): Delete.
3663 (opencl_language_defn): Delete.
3664 (pascal_language_defn): Delete.
3665 (rust_language_defn): Delete.
3666 * gdb/m2-lang.c (m2_language_defn): Convert to...
3667 (m2_language_data): ...this.
3668 (class m2_language): New class.
3669 (m2_language_defn): New static global.
3670 * gdb/objc-lang.c (objc_language_defn): Convert to...
3671 (objc_language_data): ...this.
3672 (class objc_language): New class.
3673 (objc_language_defn): New static global.
3674 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3675 (opencl_language_data): ...this.
3676 (class opencl_language): New class.
3677 (opencl_language_defn): New static global.
3678 * gdb/p-lang.c (pascal_language_defn): Convert to...
3679 (pascal_language_data): ...this.
3680 (class pascal_language): New class.
3681 (pascal_language_defn): New static global.
3682 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3683 language pointer, update comment format.
3684 * gdb/rust-lang.c (rust_language_defn): Convert to...
3685 (rust_language_data): ...this.
3686 (class rust_language): New class.
3687 (rust_language_defn): New static global.
3688
3689 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3690
3691 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3692 member variable.
3693 <m_stmt_at_address>: New member variable.
3694 (lnp_state_machine::record_line): Don't record some lines, update
3695 tracking of is_stmt at the same address.
3696 (lnp_state_machine::lnp_state_machine): Initialise new member
3697 variables.
3698
3699 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3700
3701 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3702 "-include gnu-nat-mig.h".
3703 * gnu-nat-mig.h: New file.
3704 * gnu-nat.c: Include "gnu-nat-mig.h".
3705 (exc_server, msg_reply_server, notify_server,
3706 process_reply_server): Remove declarations.
3707
3708 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3709
3710 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3711 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3712 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3713 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3714 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3715 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3716 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3717 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3718 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3719 to gnu_nat_target class.
3720 * gnu-nat.c: Likewise.
3721 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3722 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3723 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3724 object.
3725 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3726 instead of `gnu_target'.
3727
3728 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3729
3730 * i386-gnu-tdep.c: Include "gdbcore.h"
3731 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3732 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3733 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3734 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3735 i386_gnu_sigcontext_addr): New functions
3736 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3737 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3738 tdep.
3739
3740 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3741
3742 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3743 before fork_inferior call. Avoid calling it if target_is_pushed returns
3744 true.
3745
3746 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3747
3748 * gnu-nat.h (gnu_target): New variable declaration.
3749 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3750 gnu_target.
3751 * gnu-nat.c (gnu_target): New variable.
3752 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3753 add_thread_silent, and add_thread calls.
3754 (gnu_nat_target::create_inferior): Pass gnu_target to
3755 add_thread_silent, thread_change_ptid call.
3756 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3757 call.
3758
3759 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3760
3761 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3762 (gnu_nat_target::find_memory_regions): Remove unused
3763 `old_address' variable.
3764
3765 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3766
3767 * gnu-nat.c: Include "gdbarch.h".
3768
3769 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3770
3771 * reply_mig_hack.awk (Error return): Cast function through
3772 void *, to bypass compiler function call check.
3773
3774 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3775
3776 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3777 $(srcdir)/reply_mig_hack.awk.
3778
3779 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3780
3781 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3782
3783 2020-05-30 Jonny Grant <jg@jguk.org>
3784
3785 * configure.ac (ACX_BUGURL): change bug URL to https.
3786
3787 2020-05-30 Pedro Alves <palves@redhat.com>
3788
3789 * cp-support.c (replace_typedefs_template): New.
3790 (replace_typedefs_qualified_name): Handle
3791 DEMANGLE_COMPONENT_TEMPLATE.
3792
3793 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3794
3795 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3796 dwarf2/index-cache.h, dwarf2/index-write.c,
3797 dwarf2/index-write.h, dwarf2/line-header.c,
3798 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3799 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3800 variables and fields from `dwarf2_per_objfile` to just
3801 `per_objfile` throughout.
3802
3803 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3804
3805 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3806 <push_dwarf_reg_entry_value>: Add comment.
3807
3808 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3809 Keith Seitz <keiths@redhat.com>
3810
3811 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3812 instead of PyEval_ReleaseLock.
3813 (class gdbpy_gil): Move to earlier in file.
3814 (finalize_python): Set gdb_python_initialized.
3815 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3816 when not initialized.
3817
3818 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3819
3820 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3821 <push_dwarf_reg_entry_value>: Remove assert. Override
3822 per_objfile with caller_per_objfile.
3823
3824 2020-05-28 Tom de Vries <tdevries@suse.de>
3825
3826 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3827 PR gold/15646 workaround to symbol kind "type".
3828
3829 2020-05-27 Tom Tromey <tromey@adacore.com>
3830
3831 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3832
3833 2020-05-27 Tom Tromey <tromey@adacore.com>
3834
3835 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3836 Use htab_find_with_hash.
3837 <add_abbrev>: Remove "abbrev_number" parameter.
3838 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3839 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3840 (hash_abbrev): Add comment.
3841 (abbrev_table::lookup_abbrev): Move to header file.
3842 (abbrev_table::read): Update.
3843
3844 2020-05-27 Tom Tromey <tromey@adacore.com>
3845
3846 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3847 method.
3848 <canonical_name>: New member.
3849 <raw_name>: Rename from "name".
3850 (partial_die_info): Initialize canonical_name.
3851 (scan_partial_symbols): Check raw_name.
3852 (partial_die_parent_scope, partial_die_full_name)
3853 (add_partial_symbol, add_partial_subprogram)
3854 (add_partial_enumeration, load_partial_dies): Use "name" method.
3855 (partial_die_info::name): New method.
3856 (partial_die_info::read, guess_partial_die_structure_name)
3857 (partial_die_info::fixup): Update.
3858
3859 2020-05-27 Tom Tromey <tromey@adacore.com>
3860
3861 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3862 <get_ref_die_offset>: Inline.
3863 <get_ref_die_offset_complaint>: New method.
3864 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3865 (attribute::get_ref_die_offset_complaint): Rename from
3866 get_ref_die_offset. Just issue complaint.
3867
3868 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3869
3870 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3871
3872 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3873
3874 * exec.c (exec_file_attach): Use errno value of first openp failure.
3875
3876 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3877
3878 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3879 Don't close thread handle.
3880
3881 2020-05-27 Tom Tromey <tom@tromey.com>
3882 Simon Marchi <simon.marchi@efficios.com>
3883
3884 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3885 shared_ptr.
3886 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3887 member.
3888 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3889 dwarf2_per_bfd_objfile_data_key>: New globals.
3890 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3891 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3892 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3893 shared.
3894 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3895 short-circuit when sharing.
3896 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3897 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3898
3899 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3900
3901 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3902 to...
3903 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3904 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3905
3906 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3907
3908 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3909 build_name_components, find_name_components_bounds>:
3910 Add per_objfile parameter.
3911 (struct mapped_index) <symbol_name_at>: Likewise.
3912 (struct mapped_debug_names): Remove constructor.
3913 <dwarf2_per_objfile>: Remove field.
3914 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3915 (mapped_index_base::find_name_components_bounds,
3916 mapped_index_base::build_name_components,
3917 dw2_expand_symtabs_matching_symbol): Likewise.
3918 (class mock_mapped_index) <symbol_name_at>: Likewise.
3919 (check_match): Likewise.
3920 (check_find_bounds_finds): Likewise.
3921 (test_mapped_index_find_name_component_bounds): Update.
3922 (CHECK_MATCH): Update.
3923 (dw2_expand_symtabs_matching): Update.
3924 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3925 per_objfile parameter.
3926 <find_vec_in_debug_names>: Likewise.
3927 <m_per_objfile>: New field.
3928 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3929 parameter.
3930 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3931 (dw2_debug_names_iterator::next): Update.
3932 (dw2_debug_names_lookup_symbol): Update.
3933 (dw2_debug_names_expand_symtabs_for_function): Update.
3934 (dw2_debug_names_map_matching_symbols): Update.
3935 (dw2_debug_names_expand_symtabs_matching): Update.
3936 (dwarf2_read_debug_names): Update.
3937
3938 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3939
3940 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3941 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3942 move to dwarf2_per_objfile.
3943 <read_in_chain>: Remove.
3944 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3945 remove_all_cus, age_comp_units>: New methods.
3946 <m_dwarf2_cus>: New member.
3947 (struct dwarf2_per_cu_data) <cu>: Remove.
3948 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3949 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3950 moved to methods of dwarf2_per_objfile.
3951 (dwarf2_clear_marks): Remove.
3952 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3953 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3954 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3955 (dwarf2_per_objfile::remove_all_cus): New.
3956 (class free_cached_comp_units) <~free_cached_comp_units>:
3957 Update.
3958 (load_cu): Update.
3959 (dw2_do_instantiate_symtab): Adjust.
3960 (fill_in_sig_entry_from_dwo_entry): Adjust.
3961 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3962 (cutu_reader::cutu_reader): Likewise.
3963 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3964 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3965 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3966 and dwarf2_per_objfile::age_comp_units.
3967 (load_partial_comp_unit): Update.
3968 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3969 (process_queue): Likewise.
3970 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3971 backlink.
3972 (dwarf2_read_addr_index): Likewise.
3973 (follow_die_offset): Likewise.
3974 (dwarf2_fetch_die_loc_sect_off): Likewise.
3975 (dwarf2_fetch_constant_bytes): Likewise.
3976 (dwarf2_fetch_die_type_sect_off): Likewise.
3977 (follow_die_sig_1): Likewise.
3978 (load_full_type_unit): Likewise.
3979 (read_signatured_type): Likewise.
3980 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3981 (dwarf2_cu::~dwarf2_cu): Remove.
3982 (dwarf2_per_objfile::get_cu): New.
3983 (dwarf2_per_objfile::set_cu): New.
3984 (age_cached_comp_units): Rename to...
3985 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3986 to std::unordered_map.
3987 (free_one_cached_comp_unit): Rename to...
3988 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3989 to std::unordered_map.
3990 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3991 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3992 a dwarf2_per_objfile in data.
3993 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3994 (dwarf2_clear_marks): Remove.
3995
3996 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3997
3998 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3999 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4000 (init_tu_and_read_dwo_dies): Likewise.
4001 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4002 (cutu_reader::cutu_reader): Likewise.
4003 (load_partial_comp_unit): Likewise.
4004 (process_psymtab_comp_unit): Update.
4005 (build_type_psymtabs_1): Update.
4006 (process_skeletonless_type_unit): Update.
4007 (load_full_comp_unit): Update.
4008 (find_partial_die): Update.
4009 (dwarf2_read_addr_index): Update.
4010 (read_signatured_type): Update.
4011
4012 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4013
4014 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4015 m_header_read_in>: New fields.
4016 <get_header>: New method.
4017 * dwarf2/read.c (per_cu_header_read_in): Remove.
4018 (dwarf2_per_cu_data::get_header): New.
4019 (dwarf2_per_cu_data::addr_size): Update.
4020 (dwarf2_per_cu_data::offset_size): Update.
4021 (dwarf2_per_cu_data::ref_addr_size): Update.
4022
4023 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4024
4025 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4026 (dw2_do_instantiate_symtab): Update.
4027 (queue_and_load_all_dwo_tus): Change parameter from
4028 dwarf2_per_cu_data to dwarf2_cu.
4029 (dwarf2_fetch_die_loc_sect_off): Update.
4030 (dwarf2_fetch_constant_bytes): Update.
4031 (dwarf2_fetch_die_type_sect_off): Update.
4032
4033 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4034
4035 * dwarf2/read.c (process_full_comp_unit,
4036 process_full_type_unit): Remove per_cu, per_objfile paramters.
4037 Add dwarf2_cu parameter.
4038 (process_queue): Update.
4039
4040 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4041
4042 * dwarf2/read.c (create_cu_from_index_list): Replace
4043 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4044 (create_cus_from_index_list): Likewise.
4045 (create_cus_from_index): Likewise.
4046 (create_signatured_type_table_from_index): Likewise.
4047 (create_cus_from_debug_names_list): Likewise.
4048 (create_cus_from_debug_names): Likewise.
4049 (dwarf2_read_gdb_index): Update.
4050 (dwarf2_read_debug_names): Update.
4051
4052 2020-05-27 Tom Tromey <tom@tromey.com>
4053 Simon Marchi <simon.marchi@efficios.com>
4054
4055 * dwarf2/read.h (struct dwarf2_per_objfile)
4056 <get_type_for_signatured_type, set_type_for_signatured_type>:
4057 New methods.
4058 <m_type_map>: New member.
4059 (struct signatured_type) <type>: Remove.
4060 * dwarf2/read.c
4061 (dwarf2_per_objfile::get_type_for_signatured_type,
4062 dwarf2_per_objfile::set_type_for_signatured_type): New.
4063 (get_signatured_type): Use new methods.
4064
4065 2020-05-27 Tom Tromey <tom@tromey.com>
4066 Simon Marchi <simon.marchi@efficios.com>
4067
4068 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4069 (struct dwarf2_per_objfile) <type_units>: New member.
4070 <get_type_unit_group_unshareable>: New method.
4071 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4072 num_symtabs, symtabs>: Remove; move to
4073 type_unit_group_unshareable.
4074 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4075 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4076 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4077
4078 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4079
4080 * dwarf2/read.h (struct dwarf2_per_cu_data):
4081 <dwarf2_per_objfile>: Remove.
4082 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4083 dwarf2_per_objfile.
4084 (create_signatured_type_table_from_index): Likewise.
4085 (create_signatured_type_table_from_debug_names): Likewise.
4086 (create_debug_type_hash_table): Likewise.
4087 (fill_in_sig_entry_from_dwo_entry): Likewise.
4088 (create_type_unit_group): Likewise.
4089 (read_comp_units_from_section): Likewise.
4090 (create_cus_hash_table): Likewise.
4091
4092 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4093
4094 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4095 dwarf2_per_cu_data::dwarf2_per_objfile.
4096 (compute_compunit_symtab_includes): Likewise.
4097 (dwarf2_cu::start_symtab): Likewise.
4098
4099 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4100
4101 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4102 parameter.
4103 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4104 (read_namespace_alias): Update.
4105 (lookup_die_type): Update.
4106 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4107 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4108 Update.
4109 (disassemble_dwarf_expression): Update.
4110
4111 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4112
4113 * dwarf2/read.h (struct dwarf2_queue_item): Add
4114 dwarf2_per_objfile parameter, assign new parameter.
4115 <per_objfile>: New field.
4116 * dwarf2/read.c (free_one_cached_comp_unit): Add
4117 dwarf2_per_objfile parameter.
4118 (queue_comp_unit): Likewise.
4119 (dw2_do_instantiate_symtab): Update.
4120 (process_psymtab_comp_unit): Update.
4121 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4122 (process_imported_unit_die): Update.
4123 (queue_and_load_dwo_tu): Update.
4124 (follow_die_offset): Update.
4125 (follow_die_sig_1): Update.
4126
4127 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4128
4129 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4130 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4131 (read_call_site_scope): Assign per_objfile.
4132 (dwarf2_per_cu_data::objfile): Remove.
4133 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4134 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4135 dwarf2_per_objfile parameter.
4136 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4137 dwarf2_per_objfile parameter.
4138 (dwarf_expr_reg_to_entry_parameter): Add output
4139 dwarf2_per_objfile parameter.
4140 (locexpr_get_frame_base): Update.
4141 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4142 <push_dwarf_reg_entry_value>: Update.
4143 <call_site_to_target_addr>: Update.
4144 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4145 parameter.
4146 (value_of_dwarf_reg_entry): Update.
4147 (rw_pieced_value): Update.
4148 (indirect_synthetic_pointer): Update.
4149 (dwarf2_evaluate_property): Update.
4150 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4151 parameter.
4152 (locexpr_read_variable): Update.
4153 (locexpr_get_symbol_read_needs): Update.
4154 (loclist_read_variable): Update.
4155
4156 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4157
4158 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4159 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4160 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4161 parameter.
4162 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4163 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4164 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4165 parameter.
4166 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4167 sect_variable_value): Add dwarf2_per_objfile parameter.
4168 (class dwarf_evaluate_loc_desc) <dwarf_call,
4169 dwarf_variable_value>: Update.
4170 (fetch_const_value_from_synthetic_pointer): Add
4171 dwarf2_per_objfile parameter.
4172 (fetch_const_value_from_synthetic_pointer): Update.
4173 (coerced_pieced_ref): Update.
4174 (class symbol_needs_eval_context) <dwarf_call,
4175 dwarf_variable_value>: Update.
4176 (dwarf2_compile_expr_to_ax): Update.
4177
4178 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4179
4180 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4181 parameter.
4182 (dwarf2_evaluate_loc_desc_full): Update.
4183
4184 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4185
4186 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4187 parameter.
4188 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4189 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4190 dwarf2_per_objfile parameter.
4191 (decode_debug_loc_dwo_addresses): Likewise.
4192 (dwarf2_find_location_expression): Update.
4193 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4194 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4195 parameter.
4196 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4197 parameter.
4198 (locexpr_describe_location_1): Likewise.
4199 (locexpr_describe_location): Update.
4200
4201 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4202
4203 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4204 Remove.
4205 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4206 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4207 (dwarf2_compile_property_to_c): Update.
4208 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4209 use text offset from objfile.
4210 (locexpr_tracepoint_var_ref): Update.
4211 (locexpr_generate_c_location): Update.
4212 (loclist_describe_location): Update.
4213 (loclist_tracepoint_var_ref): Update.
4214 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4215 dwarf2_per_objfile parameter.
4216 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4217 use text offset from objfile.
4218 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4219
4220 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4221
4222 * dwarf2/expr.h (struct dwarf_expr_context)
4223 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4224 <offset>: Remove.
4225 <per_objfile>: New member.
4226 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4227 dwarf2_per_objfile parameter. Don't set offset, set
4228 per_objfile.
4229 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4230 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4231 a dwarf2_per_objfile object instead of an offset.
4232 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4233 constructor.
4234 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4235 to dwarf2_expr_executor constructor. Don't set offset.
4236 (dwarf2_fetch_cfa_info): Update.
4237 (struct dwarf2_frame_cache) <text_offset>: Remove.
4238 <per_objfile>: New field.
4239 (dwarf2_frame_cache): Update.
4240 (dwarf2_frame_prev_register): Update.
4241 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4242 <dwarf_evaluate_loc_desc>: Add constructor.
4243 (dwarf2_evaluate_loc_desc_full): Update.
4244 (dwarf2_locexpr_baton_eval): Update.
4245 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4246 Add constructor.
4247 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4248
4249 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4250
4251 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4252 addr_sized_int_type>: Move to dwarf2_cu.
4253 <int_type>: Move to dwarf2_per_objfile.
4254 (struct dwarf2_per_objfile) <int_type>: Move here.
4255 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4256 addr_sized_int_type>: Move here.
4257 (read_func_scope): Update.
4258 (read_array_type): Update.
4259 (read_tag_string_type): Update.
4260 (attr_to_dynamic_prop): Update.
4261 (dwarf2_per_cu_data::int_type): Rename to...
4262 (dwarf2_per_objfile::int_type): ... this.
4263 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4264 (dwarf2_cu::addr_sized_int_type): ... this.
4265 (read_subrange_type): Update.
4266 (dwarf2_per_cu_data::addr_type): Rename to...
4267 (dwarf2_cu::addr_type): ... this.
4268 (set_die_type): Update.
4269
4270 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4271
4272 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4273 data through per_cu->cu.
4274
4275 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4276
4277 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4278 dwarf2_per_cu_data parameter fo dwarf2_cu.
4279 (lookup_dwo_type_unit): Likewise.
4280 (read_cutu_die_from_dwo): Likewise.
4281 (lookup_dwo_unit): Likewise.
4282 (open_and_init_dwo_file): Likewise.
4283 (lookup_dwo_cutu): Likewise.
4284 (lookup_dwo_comp_unit): Likewise.
4285 (lookup_dwo_type_unit): Likewise.
4286 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4287 (cutu_reader::cutu_reader): Update.
4288
4289 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4290
4291 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4292 parameter.
4293 (process_full_type_unit): Likewise.
4294 (process_queue): Update.
4295
4296 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4297
4298 * dwarf2/read.c (recursively_compute_inclusions): Add
4299 dwarf2_per_objfile parameter.
4300 (compute_compunit_symtab_includes): Likewise.
4301 (process_cu_includes): Update.
4302
4303 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4304
4305 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4306 parameter.
4307 (create_type_unit_group): Update.
4308 (process_psymtab_comp_unit_reader): Update.
4309 (build_type_psymtabs_reader): Update.
4310
4311 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4312
4313 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4314 object through m_this_cu->cu.
4315
4316 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4317
4318 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4319 the info parameter.
4320 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4321
4322 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4323
4324 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4325 per_objfile parameter.
4326 (load_full_type_unit): Add per_objfile parameter.
4327 (read_signatured_type): Likewise.
4328 (load_full_comp_unit): Likewise.
4329 (load_cu): Likewise.
4330 (dw2_do_instantiate_symtab): Likewise.
4331 (dw2_get_file_names): Likewise.
4332 (dw2_map_symtabs_matching_filename): Update.
4333 (dw_expand_symtabs_matching_file_matcher): Update.
4334 (dw2_map_symbol_filenames): Update.
4335 (process_psymtab_comp_unit): Add per_objfile parameter.
4336 (build_type_psymtabs_1): Update.
4337 (process_skeletonless_type_unit): Update.
4338 (dwarf2_build_psymtabs_hard): Update.
4339 (load_partial_comp_unit): Add per_objfile parameter.
4340 (scan_partial_symbols): Update.
4341 (load_full_comp_unit): Add per_objfile parameter.
4342 (process_imported_unit_die): Update.
4343 (create_cus_hash_table): Update.
4344 (find_partial_die): Update.
4345 (dwarf2_read_addr_index): Update.
4346 (follow_die_offset): Update.
4347 (dwarf2_fetch_die_loc_sect_off): Update.
4348 (dwarf2_fetch_constant_bytes): Update.
4349 (dwarf2_fetch_die_type_sect_off): Update.
4350 (follow_die_sig_1): Update.
4351 (load_full_type_unit): Add per_objfile parameter.
4352 (read_signatured_type): Likewise.
4353
4354 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4355
4356 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4357 of objfile_name.
4358
4359 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4360
4361 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4362 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4363 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4364 field.
4365 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4366 (create_cus_from_index): Update.
4367 (dwarf2_read_gdb_index): Update.
4368 (create_cus_from_debug_names): Update.
4369 (dwarf2_read_debug_names): Update.
4370 (get_abbrev_section_for_cu): Update.
4371 (create_all_comp_units): Update.
4372 (read_attribute_value): Update.
4373 (get_debug_line_section): Update.
4374 * dwarf2/index-cache.c (index_cache::store): Update.
4375 * dwarf2/index-write.c (save_gdb_index_command): Update.
4376 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4377
4378 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4379
4380 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4381 member.
4382 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4383 dwarf2_per_cu_data::per_bfd.
4384 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4385 (create_type_unit_group): Likewise.
4386 (queue_comp_unit): Remove reference to
4387 per_cu->dwarf2_per_objfile.
4388 (maybe_queue_comp_unit): Likewise.
4389 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4390 (create_cus_hash_table): Assign new field.
4391
4392 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4393
4394 * dwarf2/read.c: Replace
4395 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4396 dwarf2_cu->per_objfile throughout.
4397
4398 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4399
4400 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4401 parameter, don't use per_cu->dwarf2_per_objfile.
4402 (dw2_instantiate_symtab): Likewise.
4403 (dw2_find_last_source_symtab): Update.
4404 (dw2_map_expand_apply): Update.
4405 (dw2_lookup_symbol): Update.
4406 (dw2_expand_symtabs_for_function): Update.
4407 (dw2_expand_all_symtabs): Update.
4408 (dw2_expand_symtabs_with_fullname): Update.
4409 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4410 don't use per_cu->dwarf2_per_objfile.
4411 (dw2_expand_marked_cus): Update.
4412 (dw2_find_pc_sect_compunit_symtab): Update.
4413 (dw2_debug_names_lookup_symbol): Update.
4414 (dw2_debug_names_expand_symtabs_for_function): Update.
4415 (dw2_debug_names_map_matching_symbols): Update.
4416 (dwarf2_psymtab::expand_psymtab): Update.
4417
4418 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4419
4420 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4421 <per_objfile>: New member.
4422 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4423 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4424 call to dwarf2_cu.
4425 (cutu_reader::cutu_reader): Update.
4426 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4427
4428 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4429
4430 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4431 struct dwarf2_per_objfile.
4432 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4433 dwarf2_per_bfd.
4434 * dwarf2/read.c (set_die_type): Update.
4435 (get_die_type_at_offset): Update.
4436
4437 2020-05-27 Tom Tromey <tom@tromey.com>
4438 Simon Marchi <simon.marchi@efficios.com>
4439
4440 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4441 method.
4442 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4443 get_symtab, set_symtab>: New methods.
4444 <m_symtabs>: New field.
4445 (struct dwarf2_psymtab): Derive from partial_symtab.
4446 <readin_p, get_compunit_symtab>: Declare methods.
4447 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4448 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4449 New methods.
4450 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4451 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4452 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4453 (dw2_symtab_iter_next, dw2_print_stats)
4454 (dw2_expand_symtabs_with_fullname)
4455 (dw2_expand_symtabs_matching_one)
4456 (dw_expand_symtabs_matching_file_matcher)
4457 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4458 (dw2_debug_names_iterator::next)
4459 (dw2_debug_names_map_matching_symbols)
4460 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4461 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4462 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4463 New methods.
4464 (get_compunit_symtab, process_full_comp_unit)
4465 (process_full_type_unit): Update.
4466 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4467
4468 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4469
4470 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4471 then introduce a new dwarf2_per_objfile type.
4472 <read_line_string>: Move to the new dwarf2_per_objfile type.
4473 <objfile>: Likewise.
4474 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4475 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4476 dwarf2_per_objfile->per_bfd.
4477 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4478 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4479 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4480 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4481 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4482 (dwarf2_per_objfile::locate_sections): Rename to...
4483 (dwarf2_per_bfd::locate_sections): ... this.
4484 (dwarf2_per_objfile::get_cutu): Rename to...
4485 (dwarf2_per_bfd::get_cutu): ... this.
4486 (dwarf2_per_objfile::get_cu): Rename to...
4487 (dwarf2_per_bfd::get_cu): ... this.
4488 (dwarf2_per_objfile::get_tu): Rename to...
4489 (dwarf2_per_bfd::get_tu): ... this.
4490 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4491 (dwarf2_per_bfd::allocate_per_cu): ... this.
4492 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4493 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4494 (get_gdb_index_contents_ftype): Change parameter from
4495 dwarf2_per_objfile to dwarf2_per_bfd.
4496 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4497 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4498
4499 2020-05-27 Tom Tromey <tom@tromey.com>
4500 Simon Marchi <simon.marchi@efficios.com>
4501
4502 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4503 (allocate_piece_closure): Set "per_objfile" member.
4504 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4505 (locexpr_describe_location, loclist_describe_location): Use new
4506 member.
4507 * dwarf2/read.c (read_call_site_scope)
4508 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4509 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4510 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4511 handle_data_member_location): Set per_objfile member.
4512 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4513 member.
4514 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4515
4516 2020-05-27 Tom Tromey <tom@tromey.com>
4517
4518 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4519 allocate_signatured_type>: Declare new methods.
4520 <m_num_psymtabs>: New member.
4521 (struct dwarf2_per_cu_data) <index>: New member.
4522 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4523 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4524 (create_cu_from_index_list): Use allocate_per_cu.
4525 (create_signatured_type_table_from_index)
4526 (create_signatured_type_table_from_debug_names)
4527 (create_debug_type_hash_table, add_type_unit)
4528 (read_comp_units_from_section): Use allocate_signatured_type.
4529
4530 2020-05-27 Tom Tromey <tom@tromey.com>
4531
4532 * psymtab.c (partial_map_expand_apply)
4533 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4534 (psym_lookup_global_symbol_language)
4535 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4536 (psym_print_stats, psym_expand_symtabs_for_function)
4537 (psym_map_symbol_filenames, psym_map_matching_symbols)
4538 (psym_expand_symtabs_matching)
4539 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4540 (maintenance_check_psymtabs): Update.
4541 * psympriv.h (struct partial_symtab) <readin_p,
4542 get_compunit_symtab>: Add objfile parameter.
4543 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4544 Likewise.
4545 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4546 get_compunit_symtab>: Likewise.
4547 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4548
4549 2020-05-27 Tom Tromey <tom@tromey.com>
4550
4551 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4552 member.
4553 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4554 (create_cu_from_index_list)
4555 (create_signatured_type_table_from_index)
4556 (create_signatured_type_table_from_debug_names)
4557 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4558 (dwarf2_create_include_psymtab)
4559 (create_debug_type_hash_table, add_type_unit)
4560 (create_type_unit_group, read_comp_units_from_section)
4561 (dwarf2_compute_name, create_cus_hash_table)
4562 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4563 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4564 obstack.
4565 (dw2_get_real_path): Likewise. Change argument to
4566 dwarf2_per_objfile.
4567
4568 2020-05-27 Luis Machado <luis.machado@linaro.org>
4569
4570 PR tdep/26000
4571 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4572 for ldrd (immediate).
4573
4574 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4575
4576 * command.h: Add comment giving the name of class_tui.
4577 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4578 create the fake command for the help for class_tui.
4579
4580 2020-05-26 Tom Tromey <tromey@adacore.com>
4581
4582 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4583 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4584 (val_atr): New function.
4585 (value_val_atr): Use it.
4586 * ada-valprint.c (print_optional_low_bound): Change low bound
4587 handling for enums.
4588 (val_print_packed_array_elements): Don't call discrete_position.
4589 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4590 discrete_position for enum types.
4591 * language.c (default_print_array_index): Change type.
4592 * language.h (struct language_defn) <la_print_array_index>: Add
4593 index_type parameter, change type of index_value.
4594 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4595 (default_print_array_index): Update.
4596 * valprint.c (maybe_print_array_index): Don't call
4597 value_from_longest. Update.
4598 (value_print_array_elements): Don't call discrete_position.
4599
4600 2020-05-26 Tom Tromey <tromey@adacore.com>
4601
4602 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4603 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4604
4605 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4606
4607 PR gdb/13519
4608 * avr-tdep.c (avr_integer_to_address): Return data or code
4609 address accordingly to the second 'type' argument of the
4610 function.
4611
4612 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4613
4614 * infcmd.c, inferior.h: (construct_inferior_arguments):
4615 Moved function from here to gdbsupport/common-inferior.{h,cc}
4616
4617 2020-05-23 Tom Tromey <tom@tromey.com>
4618
4619 Revert commit eca1f90c:
4620 * NEWS: Remove entry for completion styling.
4621 * completer.c (_rl_completion_prefix_display_length): Move
4622 declaration later.
4623 (gdb_fnprint): Revert.
4624 (gdb_display_match_list_1): Likewise.
4625 * cli/cli-style.c (completion_prefix_style)
4626 (completion_difference_style, completion_suffix_style): Remove.
4627 (_initialize_cli_style): Revert.
4628 * cli/cli-style.h (completion_prefix_style)
4629 (completion_difference_style, completion_suffix_style): Don't
4630 declare.
4631
4632 2020-05-24 Pedro Alves <palves@redhat.com>
4633
4634 * symtab.c (completion_list_add_name): Return boolean indication
4635 of whether the symbol matched.
4636 (completion_list_add_symbol): Don't try to remove C++ aliases if
4637 the symbol didn't match in the first place.
4638 * symtab.h (completion_list_add_name): Return bool.
4639
4640 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4641
4642 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4643 type::field.
4644
4645 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4646
4647 GDB 9.2 released.
4648
4649 2020-05-23 Tom Tromey <tom@tromey.com>
4650
4651 * NEWS: Add entry for completion styling.
4652 * completer.c (_rl_completion_prefix_display_length): Move
4653 declaration earlier.
4654 (gdb_fnprint): Use completion_style.
4655 (gdb_display_match_list_1): Likewise.
4656 * cli/cli-style.c (completion_prefix_style)
4657 (completion_difference_style, completion_suffix_style): New
4658 globals.
4659 (_initialize_cli_style): Register new globals.
4660 * cli/cli-style.h (completion_prefix_style)
4661 (completion_difference_style, completion_suffix_style): Declare.
4662
4663 2020-05-23 Pedro Alves <palves@redhat.com>
4664
4665 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4666 (parse_escape): Use ISDIGIT instead of isdigit.
4667 (puts_debug): Use gdb_isprint instead of isprint.
4668 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4669 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4670 ISSPACE instead of isspace.
4671 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4672 instead of isspace.
4673 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4674 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4675 instead of isxdigit and ISDIGIT instead of isdigit.
4676
4677 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4678
4679 * gdbtypes.h (struct type) <field>: New method.
4680 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4681 or type::field.
4682
4683 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4684
4685 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4686 (TYPE_FIELDS): Use type::fields. Change all call sites that
4687 modify the propery to use type::set_fields instead.
4688
4689 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4690
4691 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4692 type::num_fields instead.
4693
4694 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4695
4696 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4697 methods.
4698 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4699 that modify the number of fields to use type::set_num_fields
4700 instead.
4701
4702 2020-05-22 Tom Tromey <tromey@adacore.com>
4703
4704 * compile/compile-object-load.h (munmap_list_free): Don't
4705 declare.
4706
4707 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4708
4709 * annotate.c (annotate_source_line): Update return type, add call
4710 to update current symtab and line.
4711 * annotate.h (annotate_source_line): Update return type, and
4712 extend header comment.
4713 * source.c (info_line_command): Check annotation_level before
4714 calling annotate_source_line.
4715 * stack.c (print_frame_info): If calling annotate_source_line
4716 returns true, then don't print any other source line information.
4717
4718 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4719
4720 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4721
4722 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4723
4724 * coffread.c (patch_type): Remove NULL check before xfree.
4725 * corefile.c (set_gnutarget): Likewise.
4726 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4727 * exec.c (build_section_table): Likewise.
4728 * remote.c (remote_target::pass_signals): Likewise.
4729 * utils.c (n_spaces): Likewise.
4730 * cli/cli-script.c (document_command): Likewise.
4731 * i386-windows-tdep.c (core_process_module_section): Likewise.
4732 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4733
4734 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4735
4736 * symfile.c (reread_symbols): Clear objfile's section_offsets
4737 vector and section indices, re-compute them by calling
4738 sym_offsets.
4739
4740 2020-05-20 Tom Tromey <tromey@adacore.com>
4741
4742 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4743 (desc_one_bound, desc_index_type): Compute field name.
4744
4745 2020-05-20 Tom de Vries <tdevries@suse.de>
4746
4747 PR symtab/25833
4748 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4749
4750 2020-05-20 Alan Modra <amodra@gmail.com>
4751
4752 PR 25993
4753 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4754 bfd_set_filename.
4755 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4756 passed to bfd_set_filename.
4757 * symfile-mem.c (add_vsyscall_page): Likewise for string
4758 passed to symbol_file_add_from_memory.
4759 (symbol_file_add_from_memory): Make name param a const char* and
4760 don't strdup.
4761
4762 2020-05-20 Alan Modra <amodra@gmail.com>
4763
4764 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4765 rather than accessing bfd->filename directly.
4766 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4767 and use bfd_section_name.
4768 * dwarf2/frame.c (decode_frame_entry): Likewise.
4769 * exec.c (exec_set_section_address): Likewise.
4770 * solib-aix.c (solib_aix_bfd_open): Likewise.
4771 * stap-probe.c (get_stap_base_address): Likewise.
4772 * symfile.c (reread_symbols): Likewise.
4773
4774 2020-05-19 Tom Tromey <tromey@adacore.com>
4775
4776 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4777
4778 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4779
4780 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4781
4782 2020-05-19 Pedro Alves <palves@redhat.com>
4783
4784 * NEWS (set exec-file-mismatch): Adjust entry.
4785 * exec.c: Include "build-id.h".
4786 (validate_exec_file): Try to match build IDs instead of filenames.
4787 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4788 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4789 and pass down 'warn_if_slow'.
4790 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4791 gdb_bfd_open_closure to pass it down.
4792 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4793
4794 2020-05-19 Pedro Alves <palves@redhat.com>
4795
4796 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4797 * target.c (target_fileio_open_1): Rename to target_fileio_open
4798 and make extern. Use bool.
4799 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4800 (target_fileio_read_alloc_1): Adjust.
4801 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4802 (target_fileio_open_warn_if_slow): Delete declaration.
4803
4804 2020-05-19 Pedro Alves <palves@redhat.com>
4805
4806 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4807 Adjust all callers.
4808
4809 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4810
4811 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4812 whether disp is negative.
4813
4814 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4815
4816 * symfile.h (struct symfile_segment_data)
4817 <~symfile_segment_data>: Remove.
4818 <segment_info>: Change to std::vector.
4819 * symfile.c (default_symfile_segments): Update.
4820 * elfread.c (elf_symfile_segments): Update.
4821
4822 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4823
4824 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4825 <segments>: New.
4826 <segment_bases, segment_sizes>: Remove.
4827 * symfile.c (default_symfile_segments): Update.
4828 * elfread.c (elf_symfile_segments): Update.
4829 * remote.c (remote_target::get_offsets): Update.
4830 * solib-target.c (solib_target_relocate_section_addresses):
4831 Update.
4832
4833 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4834
4835 * symfile.h (struct symfile_segment_data): Initialize fields.
4836 <~symfile_segment_data>: Add.
4837 (symfile_segment_data_up): New.
4838 (struct sym_fns) <sym_segments>: Return a
4839 symfile_segment_data_up.
4840 (default_symfile_segments): Return a symfile_segment_data_up.
4841 (free_symfile_segment_data): Remove.
4842 (get_symfile_segment_data): Return a symfile_segment_data_up.
4843 * symfile.c (default_symfile_segments): Likewise.
4844 (get_symfile_segment_data): Likewise.
4845 (free_symfile_segment_data): Remove.
4846 (symfile_find_segment_sections): Update.
4847 * elfread.c (elf_symfile_segments): Return a
4848 symfile_segment_data_up.
4849 * remote.c (remote_target::get_offsets): Update.
4850 * solib-target.c (solib_target_relocate_section_addresses):
4851 Update.
4852 * symfile-debug.c (debug_sym_segments): Return a
4853 symfile_segment_data_up.
4854
4855 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4856
4857 PR build/25981
4858 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4859 Hardcode register numbers.
4860
4861 PR build/25981
4862 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4863 procfs_find_LDT_entry): Remove.
4864 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4865 procfs_find_LDT_entry): Remove.
4866 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4867 Remove.
4868
4869 2020-05-17 Pedro Alves <palves@redhat.com>
4870 Andrew Burgess <andrew.burgess@embecosm.com>
4871 Keno Fischer <keno@juliacomputing.com>
4872
4873 PR gdb/25741
4874 * breakpoint.c (build_target_condition_list): Update comments.
4875 (build_target_command_list): Update comments and skip matching
4876 locations.
4877 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4878 a separate function. Simplify "set breakpoint auto-hw off"
4879 handling.
4880 (insert_breakpoints): Update comment.
4881 (tracepoint_locations_match): New parameter. For breakpoints,
4882 compare location types too, if the caller wants to.
4883 (handle_automatic_hardware_breakpoints): New functions.
4884 (bp_location_is_less_than): Also sort by location type and
4885 hardware breakpoint length.
4886 (update_global_location_list): Handle "set breakpoint auto-hw on"
4887 here.
4888 (update_breakpoint_locations): Ask breakpoint_locations_match to
4889 ignore location types.
4890
4891 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4892
4893 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4894 type::name instead.
4895
4896 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4897
4898 * gdbtypes.h (struct type) <name, set_name>: New methods.
4899 (TYPE_CODE): Use type::name. Change all call sites used to set
4900 the name to use type::set_name instead.
4901
4902 2020-05-16 Tom Tromey <tom@tromey.com>
4903
4904 * top.c (quit_force): Update.
4905 * infrun.c (handle_no_resumed): Update.
4906 * top.h (all_uis): New function.
4907 (ALL_UIS): Remove.
4908
4909 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4910
4911 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4912
4913 2020-05-16 Pedro Alves <palves@redhat.com>
4914
4915 * ia64-linux-nat.c
4916 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4917 Declare method.
4918 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4919
4920 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4921
4922 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4923 (sparc64_adi_info): Likewise.
4924
4925 2020-05-15 Tom Tromey <tom@tromey.com>
4926
4927 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4928 block_objfile.
4929 (lookup_objfile_from_block): Remove.
4930 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4931 (lookup_global_symbol): Use block_objfile.
4932 * symtab.h (lookup_objfile_from_block): Don't declare.
4933 * printcmd.c (clear_dangling_display_expressions): Use
4934 block_objfile.
4935 * parse.c (operator_check_standard): Use block_objfile.
4936
4937 2020-05-15 Tom Tromey <tom@tromey.com>
4938
4939 * language.c (language_alloc_type_symbol): Set
4940 SYMBOL_SECTION.
4941 * symtab.c (initialize_objfile_symbol): Remove.
4942 (allocate_symbol): Remove.
4943 (allocate_template_symbol): Remove.
4944 * dwarf2/read.c (fixup_go_packaging): Use "new".
4945 (new_symbol): Use "new".
4946 (read_variable): Don't call initialize_objfile_symbol. Use
4947 "new".
4948 (read_func_scope): Use "new".
4949 * xcoffread.c (process_xcoff_symbol): Don't call
4950 initialize_objfile_symbol.
4951 (SYMBOL_DUP): Remove.
4952 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4953 "new".
4954 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4955 (allocate_template_symbol): Don't declare.
4956 (struct symbol): Add copy constructor. Change defaults.
4957 * jit.c (finalize_symtab): Use "new".
4958 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4959 Use "new".
4960 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4961 (common_block_end): Use "new".
4962 * mdebugread.c (parse_symbol): Use "new".
4963 (new_symbol): Likewise.
4964
4965 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4966
4967 * NEWS: Mention changes to help and apropos.
4968
4969 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4970
4971 * command.h (enum command_class): Improve comments, document
4972 that class_alias is for user-defined aliases, give the class
4973 name for each class, remove unused class_xdb.
4974 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4975 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4976 by a precise class.
4977 * infcmd.c (_initialize_infcmd): Likewise.
4978 * reverse.c (_initialize_reverse): Likewise.
4979 * stack.c (_initialize_stack): Likewise.
4980 * symfile.c (_initialize_symfile): Likewise.
4981 * tracepoint.c (_initialize_tracepoint): Likewise.
4982
4983 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4984
4985 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4986 when their aliased command is traversed.
4987 (help_cmd): Add fput_command_names_styled call to
4988 output command name and aliases when command has an alias.
4989
4990 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4991
4992 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4993 * cli/cli-decode.c (help_cmd_list): Declare as static,
4994 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4995 a command together with the command.
4996 (fput_command_name_styled, fput_command_names_styled): New functions.
4997 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4998 fput_command_name_styled.
4999 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5000 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5001
5002 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5003
5004 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5005 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5006 * command.h (cmd_show_list): Likewise.
5007 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5008 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5009
5010 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5011
5012 * unittests/command-def-selftests.c (traverse_command_structure):
5013 Verify all commands of a list have the same prefix command and
5014 that only the top cmdlist commands have a null prefix.
5015
5016 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5017
5018 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5019 as prefix, not one of its aliases.
5020 (set_cmd_prefix): Remove.
5021 (do_add_cmd): Centralize the setting of the prefix of a command, when
5022 command is defined after its full chain of prefix commands.
5023 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5024 (add_setshow_cmd_full): Likewise.
5025 (update_prefix_field_of_prefixed_commands): New function.
5026 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5027 update_prefix_field_of_prefixed_commands.
5028 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5029 addresses of remote_set_cmdlist and remote_show_cmdlist given
5030 as argument, not the address of an argument.
5031 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5032 * gdb/remote.c (_initialize_remote): Likewise.
5033
5034 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5035
5036 * cli/cli-cmds.c (alias_command): Check for an existing alias
5037 using lookup_cmd_composition, as valid_command_p is too strict
5038 and forbids aliases that are the prefix of an existing alias
5039 or command.
5040 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5041 command is properly recognised as a valid command.
5042
5043 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5044
5045 * unittests/help-doc-selftests.c: Rename to
5046 unittests/command-def-selftests.c
5047 * unittests/command-def-selftests.c (help_doc_tests): Update some
5048 comments.
5049 (command_structure_tests, traverse_command_structure): New namespace
5050 and function.
5051 (command_structure_invariants_tests): New function.
5052 (_initialize_command_def_selftests) Renamed from
5053 _initialize_help_doc_selftests, register command_structure_invariants
5054 selftest.
5055
5056 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5057
5058 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5059 an alias of 'show'.
5060
5061 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5062
5063 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5064 ada_is_fixed_point_type. Update all callers.
5065 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5066 all callers.
5067 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5068 Update all callers.
5069 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5070 print_fixed_point_type. Update all callers.
5071 * ada-valprint.c (ada_value_print_num): Replace call to
5072 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5073
5074 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5075
5076 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5077 processors.
5078 (cpu_supports_bts): Add CV_AMD case.
5079
5080 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5081 Simon Marchi <simon.marchi@efficios.com>
5082
5083 * infrun.c (stop_all_threads): Collect multiple wait events at
5084 each pass.
5085
5086 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5087
5088 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5089 type::code instead.
5090
5091 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5092
5093 * gdbtypes.h (struct type) <code, set_code>: New methods.
5094 (TYPE_CODE): Use type::code. Change all call sites used to set
5095 the code to use type::set_code instead.
5096
5097 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5098 Tom de Vries <tdevries@suse.de>
5099 Pedro Alves <palves@redhat.com>
5100
5101 PR threads/25478
5102 * infrun.c (stop_all_threads): Do NOT ignore
5103 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5104 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5105 received.
5106 (handle_no_resumed): Remove code handling a live inferior with no
5107 threads.
5108 * remote.c (has_single_non_exited_thread): New.
5109 (remote_target::update_thread_list): Do not delete a thread if is
5110 the last thread of the process.
5111 * thread.c (thread_select): Call delete_exited_threads instead of
5112 prune_threads.
5113
5114 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5115
5116 * infrun.c (stop_all_threads): Enable/disable thread events of all
5117 targets. Move a debug message denoting the end of the function
5118 into the SCOPED_EXIT block.
5119
5120 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5121
5122 * process-stratum-target.h: Include <set>.
5123 (all_non_exited_process_targets, switch_to_target_no_thread): New
5124 function declarations.
5125 * process-stratum-target.c (all_non_exited_process_targets)
5126 (switch_to_target_no_thread): New function implementations.
5127
5128 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5129
5130 * infrun.c (handle_inferior_event): Extract out a piece of code
5131 into...
5132 (mark_non_executing_threads): ...this new function.
5133
5134 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5135
5136 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5137 use.
5138
5139 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5140
5141 * regcache.c (regcache_read_pc_protected): New function
5142 implementation that returns 0 if the PC cannot read via
5143 'regcache_read_pc'.
5144 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5145 instead of 'regcache_read_pc'.
5146 (keep_going_pass_signal): Ditto.
5147
5148 2020-05-13 Tom Tromey <tromey@adacore.com>
5149
5150 * ada-lang.c (align_value): Remove.
5151 (ada_template_to_fixed_record_type_1): Use align_up.
5152
5153 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5154
5155 * async-event.c: Update the copyright year.
5156 * async-event.h: Update the copyright year.
5157
5158 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5159
5160 * objfiles.h (is_addr_in_objfile,
5161 shared_objfile_contains_address_p): Return bool.
5162 * objfile.c (is_addr_in_objfile,
5163 shared_objfile_contains_address_p): Return bool.
5164
5165 2020-05-11 Tom Tromey <tromey@adacore.com>
5166
5167 * cli/cli-cmds.c (info_command): Restore.
5168 (_initialize_cli_cmds): Use add_prefix_command for "info".
5169 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5170
5171 2020-05-11 Tom Tromey <tromey@adacore.com>
5172
5173 * ada-lang.c (ada_value_primitive_field): Now public.
5174 * ada-lang.h (ada_value_primitive_field): Declare.
5175 * ada-valprint.c (print_field_values): Use
5176 ada_value_primitive_field for wrapper fields.
5177
5178 2020-05-11 Tom de Vries <tdevries@suse.de>
5179
5180 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5181 MODULE_DOMAIN.
5182
5183 2020-05-11 Tom de Vries <tdevries@suse.de>
5184
5185 PR symtab/25941
5186 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5187 with length 0, if not gdb-produced.
5188 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5189
5190 2020-05-09 Tom de Vries <tdevries@suse.de>
5191
5192 PR gdb/25955
5193 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5194 calculation.
5195
5196 2020-05-09 Tom Tromey <tom@tromey.com>
5197
5198 * top.c (server_command): Now bool.
5199 * top.h (server_command): Now bool.
5200
5201 2020-05-08 Tom Tromey <tromey@adacore.com>
5202
5203 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5204 already being processed.
5205
5206 2020-05-08 Tom Tromey <tom@tromey.com>
5207
5208 * printcmd.c (struct display) <next>: Remove.
5209 <display>: New constructor.
5210 <exp_string>: Now a std::string.
5211 <enabled_p>: Now a bool.
5212 (display_number): Move definition earlier.
5213 (displays): Rename from display_chain. Now a std::vector.
5214 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5215 (display_command): Update.
5216 (do_one_display, disable_display)
5217 (enable_disable_display_command, do_enable_disable_display):
5218 Update.
5219 (free_display): Remove.
5220 (clear_displays): Rewrite.
5221 (delete_display): Update.
5222 (map_display_numbers): Use function_view. Remove "data"
5223 parameter. Update.
5224 (do_delete_display): Remove.
5225 (undisplay_command): Update.
5226 (do_one_display, do_displays, disable_display)
5227 (info_display_command): Update.
5228 (do_enable_disable_display): Remove.
5229 (enable_disable_display_command)
5230 (clear_dangling_display_expressions): Update.
5231
5232 2020-05-08 Tom Tromey <tom@tromey.com>
5233
5234 * symtab.c (set_symbol_cache_size)
5235 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5236 (maintenance_print_symbol_cache_statistics): Update.
5237 * symmisc.c (print_symbol_bcache_statistics)
5238 (print_objfile_statistics, maintenance_print_objfiles)
5239 (maintenance_info_symtabs, maintenance_check_symtabs)
5240 (maintenance_expand_symtabs, maintenance_info_line_tables):
5241 Update.
5242 * symfile-debug.c (set_debug_symfile): Update.
5243 * source.c (forget_cached_source_info): Update.
5244 * python/python.c (gdbpy_progspaces): Update.
5245 * psymtab.c (maintenance_info_psymtabs): Update.
5246 * probe.c (parse_probes): Update.
5247 * linespec.c (iterate_over_all_matching_symtabs)
5248 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5249 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5250 * exec.c (exec_target::close): Update.
5251 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5252 * breakpoint.c (print_one_breakpoint_location)
5253 (create_longjmp_master_breakpoint)
5254 (create_std_terminate_master_breakpoint): Update.
5255 * progspace.c (program_spaces): Now a std::vector.
5256 (maybe_new_address_space): Update.
5257 (add_program_space): Remove.
5258 (program_space::program_space): Update.
5259 (remove_program_space): Update.
5260 (number_of_program_spaces): Remove.
5261 (print_program_space, update_address_spaces): Update.
5262 * progspace.h (program_spaces): Change type.
5263 (ALL_PSPACES): Remove.
5264 (number_of_program_spaces): Don't declare.
5265 (struct program_space) <next>: Remove.
5266
5267 2020-05-08 Tom Tromey <tom@tromey.com>
5268
5269 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5270 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5271 (enable_break): Update.
5272 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5273 (frv_fdpic_find_canonical_descriptor): Update.
5274 (frv_fetch_objfile_link_map): Update.
5275 * progspace.c (program_space::free_all_objfiles): Update.
5276 (program_space::solibs): New method.
5277 * progspace.h (struct program_space) <solibs>: New method.
5278 * solist.h (master_so_list): Don't declare.
5279 (ALL_SO_LIBS): Remove.
5280 * solib.h (so_list_head): Remove.
5281 (update_solib_list): Update comment.
5282 * solib.c (master_so_list): Remove.
5283 (solib_used, update_solib_list, solib_add)
5284 (info_sharedlibrary_command, clear_solib)
5285 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5286
5287 2020-05-08 Tom Tromey <tom@tromey.com>
5288
5289 * extension.c (extension_languages): Now a std::array.
5290 (ALL_EXTENSION_LANGUAGES): Remove.
5291 (get_ext_lang_defn, get_ext_lang_of_file)
5292 (eval_ext_lang_from_control_command): Update.
5293 (finish_ext_lang_initialization)
5294 (auto_load_ext_lang_scripts_for_objfile)
5295 (ext_lang_type_printers::ext_lang_type_printers)
5296 (apply_ext_lang_type_printers)
5297 (ext_lang_type_printers::~ext_lang_type_printers)
5298 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5299 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5300 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5301 (get_matching_xmethod_workers, ext_lang_colorize)
5302 (ext_lang_before_prompt): Update.
5303 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5304
5305 2020-05-08 Tom Tromey <tom@tromey.com>
5306
5307 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5308 overload.
5309 <swap_string, m_string>: Remove.
5310 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5311 Update.
5312 * stabsread.c (define_symbol, read_type): Update.
5313 * linespec.c (find_linespec_symbols): Update.
5314 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5315 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5316 * dbxread.c (read_dbx_symtab): Update.
5317 * cp-support.h (cp_canonicalize_string_full)
5318 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5319 Return unique_xmalloc_ptr.
5320 * cp-support.c (inspect_type): Update.
5321 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5322 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5323 Likewise.
5324 * c-typeprint.c (print_name_maybe_canonical): Update.
5325 * break-catch-throw.c (check_status_exception_catchpoint):
5326 Update.
5327
5328 2020-05-08 Tom de Vries <tdevries@suse.de>
5329
5330 * infrun.c (follow_fork): Copy current_line and current_symtab to
5331 child thread.
5332
5333 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5334
5335 * async-event.c (struct async_signal_handler, struct
5336 async_event_handler): Reformat, remove typedef.
5337
5338 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5339
5340 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5341 access thistype->main_type->dyn_prop_list directly.
5342
5343 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5344
5345 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5346 (remove_dyn_prop): Remove. Update all users to use
5347 type::remove_dyn_prop.
5348 * gdbtypes.c (remove_dyn_prop): Rename to...
5349 (type::remove_dyn_prop): ... this.
5350
5351 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5352
5353 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5354 (add_dyn_prop): Remove. Update all users to use
5355 type::add_dyn_prop.
5356 * gdbtypes.c (add_dyn_prop): Rename to...
5357 (type::add_dyn_prop): ... this.
5358
5359 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5360
5361 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5362 (get_dyn_prop): Remove. Update all users to use
5363 type::dyn_prop.
5364 * gdbtypes.c (get_dyn_prop): Rename to...
5365 (type::dyn_prop): ... this.
5366
5367 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5368
5369 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5370
5371 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5372
5373 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5374 instruction, skip it if it's there.
5375
5376 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5377
5378 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5379
5380 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5381
5382 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5383 * gdbtypes.c (recursive_dump_type): Remove use of
5384 TYPE_INCOMPLETE.
5385
5386 2020-05-03 Tom Tromey <tom@tromey.com>
5387
5388 * breakpoint.c (catch_command, tcatch_command): Remove.
5389 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5390 add_show_prefix_cmd.
5391 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5392 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5393 Remove.
5394 (add_internal_problem_command): Use add_basic_prefix_cmd,
5395 add_show_prefix_cmd.
5396 * mips-tdep.c (set_mipsfpu_command): Remove.
5397 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5398 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5399 (_initialize_index_cache): Use add_basic_prefix_cmd.
5400 * memattr.c (dummy_cmd): Remove.
5401 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5402 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5403 (_initialize_tui_win): Use add_basic_prefix_cmd,
5404 add_show_prefix_cmd.
5405 * cli/cli-logging.c (set_logging_command): Remove.
5406 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5407 add_show_prefix_cmd.
5408 (show_logging_command): Remove.
5409 * target.c (target_command): Remove.
5410 (add_target): Use add_basic_prefix_cmd.
5411
5412 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5413
5414 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5415
5416 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5417
5418 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5419 info_command.
5420
5421 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5422
5423 * nbsd-nat.c (nbsd_enable_proc_events)
5424 (nbsd_nat_target::post_startup_inferior): Add.
5425 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5426 (nbsd_nat_target::update_thread_list): Rewrite.
5427 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5428 "PTRACE_LWP_CREATE".
5429 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5430
5431 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5432
5433 * stack.c (_initialize_stack): Remove duplicated creation
5434 of "frame" command and "f" alias.
5435
5436 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5437
5438 PR gdb/18706
5439 * gdbtypes.c (check_typedef): Calculate size of array of
5440 stubbed type.
5441
5442 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5443
5444 PR gdb/15559
5445 * i386-tdep.c (i386_push_dummy_call): Call
5446 i386_thiscall_push_dummy_call.
5447 (i386_thiscall_push_dummy_call): New function.
5448 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5449 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5450 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5451
5452 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5453
5454 * gdbarch.sh (do_read): Add shellcheck disable directive for
5455 warning SC2162.
5456
5457 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5458
5459 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5460 "referenced but not assigned" warning.
5461
5462 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5463
5464 * gdbarch.sh: Remove code that sets fallbackdefault.
5465
5466 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5467
5468 * gdbarch.sh: Use shell operators && and || instead of
5469 -a and -o.
5470
5471 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5472
5473 * gdbarch.sh: Use $(...) instead of `...`.
5474
5475 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5476
5477 * gdbarch.sh: Use double quotes around variables.
5478
5479 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5480
5481 * gdbarch.sh: Use %s with printf, instead of variables in the
5482 format string.
5483
5484 2020-04-29 Tom Tromey <tromey@adacore.com>
5485
5486 PR ada/25875:
5487 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5488 type fields here.
5489 (read_enumeration_type): Call
5490 update_enumeration_type_from_children later. Update comments.
5491 (process_enumeration_scope): Don't create type fields.
5492
5493 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5494
5495 * nbsd-tdep.c: Include "xml-syscall.h".
5496 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5497
5498 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5499
5500 * nbsd-nat.c: Include "sys/wait.h".
5501 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5502 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5503 (nbsd_nat_target::remove_exec_catchpoint)
5504 (nbsd_nat_target::set_syscall_catchpoint): Add.
5505 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5506 (nbsd_nat_target::insert_exec_catchpoint)
5507 (nbsd_nat_target::remove_exec_catchpoint)
5508 (nbsd_nat_target::set_syscall_catchpoint): Add.
5509 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5510 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5511 `nbsd_get_syscall_number'.
5512
5513 2020-04-29 Tom Tromey <tom@tromey.com>
5514
5515 * stack.c (print_block_frame_labels): Remove.
5516
5517 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5518
5519 PR gdb/17320
5520 * ada-valprint.c (val_print_packed_array_elements): Move array
5521 end bracket to new line.
5522 (ada_val_print_string): Remove extra spaces before first array
5523 element.
5524 * c-valprint.c (c_value_print_array): Likewise.
5525 * m2-valprint.c (m2_print_array_contents): Likewise.
5526 (m2_value_print_inner): Likewise.
5527 * p-valprint.c (pascal_value_print_inner): Likewise.
5528 * valprint.c (generic_val_print_array): Likewise.
5529 (value_print_array_elements): Move first array element and array
5530 end bracket to new line.
5531
5532 2020-04-29 Tom de Vries <tdevries@suse.de>
5533
5534 PR symtab/25889
5535 * linespec.c (find_method): Fix ix calculation.
5536
5537 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5538
5539 * syscalls/update-netbsd.sh: New file.
5540 * syscalls/netbsd.xml: Regenerate.
5541 * data-directory/Makefile.in: Register `netbsd.xml' in
5542 `SYSCALLS_FILES'.
5543
5544 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5545
5546 * syscalls/update-freebsd.sh: Add double quotes.
5547
5548 2020-04-28 Tom Tromey <tom@tromey.com>
5549
5550 * NEWS: Update.
5551 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5552 (cmdpy_init): Allow class_tui.
5553
5554 2020-04-28 Mark Williams <mark@myosotissp.com>
5555
5556 PR gdb/24480
5557 * dwarf2read.c: Add missing assingments to list_in_scope when
5558 start_symtab was already called.
5559
5560 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5561
5562 PR gdb/25881
5563 * dwarf2/read.c (offset_map_type): Use
5564 gdb:hash_enum<sect_offset> as hash function.
5565
5566 2020-04-28 Tom de Vries <tdevries@suse.de>
5567
5568 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5569 with DW_AT_signature.
5570
5571 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5572
5573 * configure.ac: Remove check for fs_base/gs_base in
5574 user_regs_struct.
5575 * configure: Re-generate.
5576 * config.in: Re-generate.
5577 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5578 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5579 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5580
5581 2020-04-27 Luis Machado <luis.machado@linaro.org>
5582
5583 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5584 problematic inline frame unwinding situation.
5585 * frame.c (frame_id_computed_p): New function.
5586 * frame.h (frame_id_computed_p): New prototype.
5587
5588 2020-04-26 Tom Tromey <tom@tromey.com>
5589
5590 * command.h (enum command_class) <class_pseudo>: Remove.
5591
5592 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5593
5594 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5595 and whitespace.
5596
5597 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5598
5599 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5600 `PT_GET_PROCESS_STATE' block.
5601
5602 2020-04-24 Tom Tromey <tom@tromey.com>
5603
5604 * symtab.h (symbol_get_demangled_name): Don't declare.
5605 * symtab.c (symbol_get_demangled_name): Remove.
5606 (general_symbol_info::natural_name)
5607 (general_symbol_info::demangled_name): Update.
5608
5609 2020-04-24 Tom Tromey <tom@tromey.com>
5610
5611 PR rust/25025:
5612 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5613
5614 2020-04-24 Tom Tromey <tom@tromey.com>
5615
5616 PR symtab/12707:
5617 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5618 exists.
5619 (new_symbol): Likewise.
5620 * compile/compile-object-load.c (get_out_value_type): Use
5621 symbol_matches_search_name.
5622
5623 2020-04-24 Tom Tromey <tom@tromey.com>
5624
5625 * dwarf2/read.c (add_partial_symbol): Do not call
5626 compute_and_set_names.
5627
5628 2020-04-24 Tom Tromey <tom@tromey.com>
5629
5630 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5631 overload.
5632
5633 2020-04-24 Tom Tromey <tom@tromey.com>
5634
5635 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5636 (add_psymbol_to_list): New overload. Make old overload call new
5637 one.
5638 * psympriv.h (add_psymbol_to_list): New overload.
5639
5640 2020-04-24 Tom Tromey <tom@tromey.com>
5641
5642 * dwarf2/read.c (partial_die_info::read) <case
5643 DW_AT_linkage_name>: Use value_as_string.
5644 (dwarf2_string_attr): Use value_as_string.
5645 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5646 method.
5647 * dwarf2/attribute.c (attribute::value_as_string): New method.
5648
5649 2020-04-24 Tom Tromey <tom@tromey.com>
5650
5651 * symtab.c (general_symbol_info::natural_name)
5652 (general_symbol_info::demangled_name): Check for language_rust.
5653
5654 2020-04-24 Tom Tromey <tom@tromey.com>
5655
5656 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5657 (dwarf2_physname): ... from here.
5658 (partial_die_info::read): Add Rust "{" hack.
5659
5660 2020-04-24 Tom Tromey <tom@tromey.com>
5661
5662 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5663 method.
5664 (symbol_set_demangled_name): Don't declare.
5665 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5666 symbol_set_demangled_name.
5667 (general_symbol_info::set_language)
5668 (general_symbol_info::compute_and_set_names): Update.
5669 * minsyms.c (minimal_symbol_reader::install): Update.
5670 * dwarf2/read.c (new_symbol): Update.
5671
5672 2020-04-24 Tom Tromey <tromey@adacore.com>
5673
5674 PR python/23662:
5675 * python/py-type.c (convert_field): Handle
5676 FIELD_LOC_KIND_DWARF_BLOCK.
5677 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5678 (typy_get_dynamic): Nw function.
5679 (type_object_getset): Add "dynamic".
5680 * NEWS: Add entry.
5681
5682 2020-04-24 Tom Tromey <tromey@adacore.com>
5683
5684 * ada-typeprint.c (print_choices, print_variant_part)
5685 (print_record_field_types_dynamic): New functions.
5686 (print_record_field_types): Use print_record_field_types_dynamic.
5687
5688 2020-04-24 Tom Tromey <tromey@adacore.com>
5689
5690 * dwarf2/read.c (handle_data_member_location): New overload.
5691 (dwarf2_add_field): Use it.
5692 (decode_locdesc): Add "computed" parameter. Update comment.
5693 * gdbtypes.c (is_dynamic_type_internal): Also look for
5694 FIELD_LOC_KIND_DWARF_BLOCK.
5695 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5696 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5697 virtual base classes.
5698 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5699 FIELD_LOC_KIND_DWARF_BLOCK.
5700
5701 2020-04-24 Tom Tromey <tromey@adacore.com>
5702
5703 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5704 * gdbtypes.c (is_dynamic_type_internal): Check
5705 TYPE_HAS_DYNAMIC_LENGTH.
5706 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5707 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5708 New macros.
5709 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5710 constant.
5711
5712 2020-04-24 Tom Tromey <tromey@adacore.com>
5713
5714 * dwarf2/read.c (struct variant_field): Rewrite.
5715 (struct variant_part_builder): New.
5716 (struct nextfield): Remove "variant" field. Add "offset".
5717 (struct field_info): Add "current_variant_part" and
5718 "variant_parts".
5719 (alloc_discriminant_info): Remove.
5720 (alloc_rust_variant): New function.
5721 (quirk_rust_enum): Update.
5722 (dwarf2_add_field): Set "offset" member. Don't handle
5723 DW_TAG_variant_part.
5724 (offset_map_type): New typedef.
5725 (convert_variant_range, create_one_variant)
5726 (create_one_variant_part, create_variant_parts)
5727 (add_variant_property): New functions.
5728 (dwarf2_attach_fields_to_type): Call add_variant_property.
5729 (read_structure_type): Don't handle DW_TAG_variant_part.
5730 (handle_variant_part, handle_variant): New functions.
5731 (handle_struct_member_die): Use them.
5732 (process_structure_scope): Don't handle variant parts.
5733 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5734 (struct discriminant_info): Remove.
5735 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5736 (struct main_type) <flag_discriminated_union>: Remove.
5737 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5738 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5739 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5740 Update.
5741 * valops.c (value_union_variant): Remove.
5742 * value.h (value_union_variant): Don't declare.
5743
5744 2020-04-24 Tom Tromey <tromey@adacore.com>
5745
5746 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5747 (ada_value_primitive_packed_val): Update.
5748 * ada-valprint.c (ada_value_print_1): Update.
5749 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5750 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5751 just an address. Use evaluate_for_locexpr_baton.
5752 (dwarf2_evaluate_property): Update.
5753 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5754 array_view.
5755 * findvar.c (default_read_var_value): Update.
5756 * gdbtypes.c (compute_variant_fields_inner)
5757 (resolve_dynamic_type_internal): Update.
5758 (resolve_dynamic_type): Change type of valaddr parameter.
5759 * gdbtypes.h (resolve_dynamic_type): Update.
5760 * valarith.c (value_subscripted_rvalue): Update.
5761 * value.c (value_from_contents_and_address): Update.
5762
5763 2020-04-24 Tom Tromey <tromey@adacore.com>
5764
5765 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5766 "push_initial_value" parameter.
5767 (dwarf2_evaluate_property): Likewise.
5768 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5769
5770 2020-04-24 Tom Tromey <tromey@adacore.com>
5771
5772 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5773 (variant::matches, compute_variant_fields_recurse)
5774 (compute_variant_fields_inner, compute_variant_fields): New
5775 functions.
5776 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5777 Use resolved_type after type is made.
5778 (operator==): Add new cases.
5779 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5780 (struct discriminant_range, struct variant, struct variant_part):
5781 New.
5782 (union dynamic_prop_data) <variant_parts, original_type>: New
5783 members.
5784 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5785 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5786 constants.
5787 * value.c (unpack_bits_as_long): Now public.
5788 * value.h (unpack_bits_as_long): Declare.
5789
5790 2020-04-24 Tom Tromey <tromey@adacore.com>
5791
5792 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5793 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5794
5795 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5796
5797 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5798
5799 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5800
5801 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5802 (remove_fork_catchpoint, post_startup_inferior)
5803 (post_attach): Move...
5804 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5805 (remove_fork_catchpoint, post_startup_inferior)
5806 (post_attach): ...here.
5807 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5808 (remove_fork_catchpoint, post_startup_inferior)
5809 (post_attach): Move...
5810 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5811 (remove_fork_catchpoint, post_startup_inferior)
5812 (post_attach): ...here.
5813
5814 2020-04-24 Tom Tromey <tromey@adacore.com>
5815
5816 * nat/windows-nat.h (struct windows_thread_info)
5817 <pc_adjusted>: New member.
5818 * windows-nat.c (windows_fetch_one_register): Check
5819 pc_adjusted.
5820 (windows_nat_target::get_windows_debug_event)
5821 (windows_nat_target::wait): Set pc_adjusted.
5822
5823 2020-04-24 Tom de Vries <tdevries@suse.de>
5824
5825 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5826 Run gdb-add-index inside temp dir.
5827
5828 2020-04-23 Tom Tromey <tromey@adacore.com>
5829
5830 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5831 in loop.
5832
5833 2020-04-23 Luis Machado <luis.machado@linaro.org>
5834
5835 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5836 get_frame_register instead of gdbarch_unwind_pc.
5837
5838 2020-04-23 Tom de Vries <tdevries@suse.de>
5839
5840 * symtab.c (lookup_global_symbol): Prefer def over decl.
5841
5842 2020-04-23 Tom de Vries <tdevries@suse.de>
5843
5844 PR symtab/25807
5845 * block.c (best_symbol, better_symbol): Promote to external.
5846 * block.h (best_symbol, better_symbol): Declare.
5847 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5848 decl.
5849
5850 2020-04-23 Tom Tromey <tromey@adacore.com>
5851
5852 PR ada/25837:
5853 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5854 "const char *", not a "const std::string &".
5855 <name_and_matcher::operator==>: Update.
5856 * unittests/lookup_name_info-selftests.c: Change type of
5857 "result".
5858
5859 2020-04-23 Tom Tromey <tom@tromey.com>
5860
5861 * inferior.h (iterate_over_inferiors): Don't declare.
5862 * inferior.c (iterate_over_inferiors): Remove.
5863 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5864 Remove.
5865 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5866 use iterate_over_inferiors.
5867 (darwin_resume_inferior_it)
5868 (struct resume_inferior_threads_param)
5869 (darwin_resume_inferior_threads_it): Remove.
5870 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5871
5872 2020-04-23 Tom de Vries <tdevries@suse.de>
5873
5874 * blockframe.c (find_pc_partial_function): Use
5875 find_pc_sect_compunit_symtab rather than
5876 objfile->sf->qf->find_pc_sect_compunit_symtab.
5877
5878 2020-04-22 Tom de Vries <tdevries@suse.de>
5879
5880 PR symtab/25764
5881 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5882 in psymtabs.
5883
5884 2020-04-22 Tom de Vries <tdevries@suse.de>
5885
5886 PR symtab/25801
5887 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5888 symtabs.
5889
5890 2020-04-22 Tom de Vries <tdevries@suse.de>
5891
5892 PR symtab/25700
5893 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5894 CU if already created.
5895
5896 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5897
5898 * infrun.c (displaced_step_fixup): Switch to the event_thread
5899 before calling displaced_step_restore, not after.
5900
5901 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5902
5903 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5904 its inferior is not recorded by us.
5905 (record_btrace_target_open): Replace call to
5906 all_non_exited_threads () with call to current_inferior
5907 ()->non_exited_threads ().
5908 (record_btrace_target::stop_recording): Likewise.
5909 (record_btrace_target::close): Likewise.
5910 (record_btrace_target::wait): Likewise.
5911 (record_btrace_target::record_stop_replaying): Likewise.
5912
5913 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5914
5915 * btrace.c (btrace_enable): Throw an error on double enables and
5916 when enabling recording fails.
5917 (btrace_disable): Throw an error if the thread is not recorded.
5918
5919 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5920
5921 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5922 request if we do not have a thread_info.
5923
5924 2020-04-21 Tom de Vries <tdevries@suse.de>
5925
5926 PR gdb/25471
5927 * thread.c
5928 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5929 exception in get_frame_id.
5930
5931 2020-04-20 Tom Tromey <tromey@adacore.com>
5932
5933 * python/python.c (struct gdbpy_event): Mark move constructor as
5934 noexcept.
5935 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5936 constructor as noexcept.
5937 * completer.h (struct completion_result): Mark move constructor as
5938 noexcept.
5939 * completer.c (completion_result::completion_result): Use
5940 initialization style. Don't call reset_match_list.
5941
5942 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5943
5944 * MAINTAINERS (Write After Approval): Add myself.
5945
5946 2020-04-18 Tom Tromey <tom@tromey.com>
5947
5948 * windows-tdep.c (init_w32_command_list)
5949 (w32_prefix_command_valid): Restore.
5950 (_initialize_windows_tdep): Call init_w32_command_list.
5951
5952 2020-04-18 Tom Tromey <tom@tromey.com>
5953
5954 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5955 * value.c (value_fn_field): Update.
5956 * valops.c (find_function_in_inferior)
5957 (value_allocate_space_in_inferior): Update.
5958 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5959 Update.
5960 * tui/tui-source.c (tui_source_window::set_contents): Update.
5961 * symtab.c (lookup_global_or_static_symbol)
5962 (find_function_start_sal_1, skip_prologue_sal)
5963 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5964 * symmisc.c (dump_msymbols, dump_symtab_1)
5965 (maintenance_print_one_line_table): Update.
5966 * symfile.c (init_entry_point_info, section_is_mapped)
5967 (list_overlays_command, simple_read_overlay_table)
5968 (simple_overlay_update_1): Update.
5969 * stap-probe.c (handle_stap_probe): Update.
5970 * stabsread.c (dbx_init_float_type, define_symbol)
5971 (read_one_struct_field, read_enum_type, read_range_type): Update.
5972 * source.c (info_line_command): Update.
5973 * python/python.c (gdbpy_source_objfile_script)
5974 (gdbpy_execute_objfile_script): Update.
5975 * python/py-type.c (save_objfile_types): Update.
5976 * python/py-objfile.c (py_free_objfile): Update.
5977 * python/py-inferior.c (python_new_objfile): Update.
5978 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5979 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5980 (maintenance_check_psymtabs): Update.
5981 * printcmd.c (info_address_command): Update.
5982 * objfiles.h (struct objfile) <arch>: New method, from
5983 get_objfile_arch.
5984 (get_objfile_arch): Don't declare.
5985 * objfiles.c (get_objfile_arch): Remove.
5986 (filter_overlapping_sections): Update.
5987 * minsyms.c (msymbol_is_function): Update.
5988 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5989 (output_nondebug_symbol): Update.
5990 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5991 (mdebug_expand_psymtab): Update.
5992 * machoread.c (macho_add_oso_symfile): Update.
5993 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5994 Update.
5995 * linux-fork.c (checkpoint_command): Update.
5996 * linespec.c (convert_linespec_to_sals): Update.
5997 * jit.c (finalize_symtab): Update.
5998 * infrun.c (insert_exception_resume_from_probe): Update.
5999 * ia64-tdep.c (ia64_find_unwind_table): Update.
6000 * hppa-tdep.c (internalize_unwinds): Update.
6001 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6002 Update.
6003 * gcore.c (call_target_sbrk): Update.
6004 * elfread.c (record_minimal_symbol, elf_symtab_read)
6005 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6006 (elf_gnu_ifunc_resolve_by_got): Update.
6007 * dwarf2/read.c (create_addrmap_from_index)
6008 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6009 (read_debug_names_from_section)
6010 (process_psymtab_comp_unit_reader, add_partial_symbol)
6011 (add_partial_subprogram, process_full_comp_unit)
6012 (read_file_scope, read_func_scope, read_lexical_block_scope)
6013 (read_call_site_scope, dwarf2_ranges_read)
6014 (dwarf2_record_block_ranges, dwarf2_add_field)
6015 (mark_common_block_symbol_computed, read_tag_pointer_type)
6016 (read_tag_string_type, dwarf2_init_float_type)
6017 (dwarf2_init_complex_target_type, read_base_type)
6018 (partial_die_info::read, partial_die_info::read)
6019 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6020 (dwarf2_fetch_die_loc_sect_off): Update.
6021 * dwarf2/loc.c (dwarf2_find_location_expression)
6022 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6023 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6024 (dwarf2_loc_desc_get_symbol_read_needs)
6025 (locexpr_describe_location_piece, locexpr_describe_location_1)
6026 (loclist_describe_location): Update.
6027 * dwarf2/index-write.c (write_debug_names): Update.
6028 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6029 * dtrace-probe.c (dtrace_process_dof): Update.
6030 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6031 (process_one_symbol): Update.
6032 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6033 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6034 (coff_read_enum_type): Update.
6035 * cli/cli-cmds.c (edit_command, list_command): Update.
6036 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6037 * breakpoint.c (create_overlay_event_breakpoint)
6038 (create_longjmp_master_breakpoint)
6039 (create_std_terminate_master_breakpoint)
6040 (create_exception_master_breakpoint, get_sal_arch): Update.
6041 * block.c (block_gdbarch): Update.
6042 * annotate.c (annotate_source_line): Update.
6043
6044 2020-04-17 Tom Tromey <tromey@adacore.com>
6045
6046 * auto-load.c (show_auto_load_cmd): Remove.
6047 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6048 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6049 (maintenance_print_arc_command): Remove.
6050 * tui/tui-win.c (tui_command): Remove.
6051 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6052 * tui/tui-layout.c (tui_layout_command): Remove.
6053 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6054 * python/python.c (user_set_python, user_show_python): Remove.
6055 (_initialize_python): Use add_basic_prefix_cmd,
6056 add_show_prefix_cmd.
6057 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6058 (install_gdb_commands): Use add_basic_prefix_cmd,
6059 add_show_prefix_cmd.
6060 (info_guile_command): Remove.
6061 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6062 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6063 add_show_prefix_cmd.
6064 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6065 Remove do_set and do_show parameters.
6066 * cli/cli-style.c (set_style, show_style): Remove.
6067 (_initialize_cli_style): Use add_basic_prefix_cmd,
6068 add_show_prefix_cmd.
6069 (cli_style_option::add_setshow_commands): Remove do_set and
6070 do_show parameters.
6071 (cli_style_option::add_setshow_commands): Use
6072 add_basic_prefix_cmd, add_show_prefix_cmd.
6073 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6074 (set_style_name): Remove.
6075 * cli/cli-dump.c (dump_command, append_command): Remove.
6076 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6077 (tekhex_dump_command, binary_dump_command)
6078 (binary_append_command): Remove.
6079 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6080 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6081 (init_w32_command_list): Remove; move into ...
6082 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6083 * valprint.c (set_print, show_print, set_print_raw)
6084 (show_print_raw): Remove.
6085 (_initialize_valprint): Use add_basic_prefix_cmd,
6086 add_show_prefix_cmd.
6087 * typeprint.c (set_print_type, show_print_type): Remove.
6088 (_initialize_typeprint): Use add_basic_prefix_cmd,
6089 add_show_prefix_cmd.
6090 * record.c (set_record_command, show_record_command): Remove.
6091 (_initialize_record): Use add_basic_prefix_cmd,
6092 add_show_prefix_cmd.
6093 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6094 add_show_prefix_cmd.
6095 (info_command, show_command, set_debug, show_debug): Remove.
6096 * top.h (set_history, show_history): Don't declare.
6097 * top.c (set_history, show_history): Remove.
6098 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6099 (unset_tdesc_cmd): Remove.
6100 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6101 add_show_prefix_cmd.
6102 * symtab.c (info_module_command): Remove.
6103 (_initialize_symtab): Use add_basic_prefix_cmd.
6104 * symfile.c (overlay_command): Remove.
6105 (_initialize_symfile): Use add_basic_prefix_cmd.
6106 * sparc64-tdep.c (info_adi_command): Remove.
6107 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6108 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6109 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6110 add_show_prefix_cmd.
6111 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6112 (_initialize_serial): Use add_basic_prefix_cmd,
6113 add_show_prefix_cmd.
6114 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6115 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6116 add_show_prefix_cmd.
6117 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6118 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6119 add_show_prefix_cmd.
6120 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6121 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6122 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6123 add_show_prefix_cmd.
6124 * remote.c (remote_command, set_remote_cmd): Remove.
6125 (_initialize_remote): Use add_basic_prefix_cmd.
6126 * record-full.c (set_record_full_command)
6127 (show_record_full_command): Remove.
6128 (_initialize_record_full): Use add_basic_prefix_cmd,
6129 add_show_prefix_cmd.
6130 * record-btrace.c (cmd_set_record_btrace)
6131 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6132 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6133 (cmd_show_record_btrace_pt): Remove.
6134 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6135 add_show_prefix_cmd.
6136 * ravenscar-thread.c (set_ravenscar_command)
6137 (show_ravenscar_command): Remove.
6138 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6139 add_show_prefix_cmd.
6140 * mips-tdep.c (show_mips_command, set_mips_command)
6141 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6142 add_show_prefix_cmd.
6143 * maint.c (maintenance_command, maintenance_info_command)
6144 (maintenance_check_command, maintenance_print_command)
6145 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6146 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6147 add_show_prefix_cmd.
6148 (show_per_command_cmd): Remove.
6149 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6150 Remove.
6151 (maintenance_show_test_settings_cmd): Remove.
6152 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6153 add_show_prefix_cmd.
6154 * maint-test-options.c (maintenance_test_options_command):
6155 Remove.
6156 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6157 * macrocmd.c (macro_command): Remove
6158 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6159 * language.c (set_check, show_check): Remove.
6160 (_initialize_language): Use add_basic_prefix_cmd,
6161 add_show_prefix_cmd.
6162 * infcmd.c (unset_command): Remove.
6163 (_initialize_infcmd): Use add_basic_prefix_cmd.
6164 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6165 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6166 add_show_prefix_cmd.
6167 * go32-nat.c (go32_info_dos_command): Remove.
6168 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6169 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6170 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6171 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6172 (_initialize_frame): Use add_basic_prefix_cmd,
6173 add_show_prefix_cmd.
6174 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6175 (_initialize_dcache): Use add_basic_prefix_cmd,
6176 add_show_prefix_cmd.
6177 * cp-support.c (maint_cplus_command): Remove.
6178 (_initialize_cp_support): Use add_basic_prefix_cmd.
6179 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6180 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6181 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6182 add_basic_prefix_cmd, add_show_prefix_cmd.
6183 * breakpoint.c (save_command): Remove.
6184 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6185 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6186 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6187 add_show_prefix_cmd.
6188 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6189 (set_ada_command, show_ada_command): Remove.
6190 (_initialize_ada_language): Use add_basic_prefix_cmd,
6191 add_show_prefix_cmd.
6192 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6193
6194 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6195
6196 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6197 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6198
6199 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6200
6201 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6202 warning messages.
6203
6204 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6205
6206 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6207 import table is not at beginning of .idata section.
6208
6209 2020-04-16 Pedro Alves <palves@redhat.com>
6210
6211 * inferior.c (delete_inferior): Use delete operator directly
6212 instead of delete_program_space.
6213 * progspace.c (add_program_space): New, factored out from
6214 program_space::program_space.
6215 (remove_program_space): New, factored out from
6216 delete_program_space.
6217 (program_space::program_space): Remove intro comment. Rewrite.
6218 (program_space::~program_space): Remove intro comment. Call
6219 remove_program_space.
6220 (delete_program_space): Delete.
6221 * progspace.h (program_space::program_space): Make explicit. Move
6222 intro comment here, adjusted.
6223 (program_space::~program_space): Move intro comment here,
6224 adjusted.
6225 (delete_program_space): Remove.
6226
6227 2020-04-16 Tom Tromey <tromey@adacore.com>
6228
6229 * windows-nat.c (windows_nat::handle_access_violation): New
6230 function.
6231 * nat/windows-nat.h (handle_access_violation): Declare.
6232 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6233 windows-nat.c. Call handle_access_violation.
6234
6235 2020-04-16 Tom de Vries <tdevries@suse.de>
6236
6237 PR symtab/25791
6238 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6239 CUs without psymtab.
6240
6241 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6242
6243 * python/python.c (do_start_initialization): Don't call
6244 PyEval_InitThreads for Python 3.9 and beyond.
6245
6246 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6247
6248 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6249 thread functions.
6250 (obsd_nat_target::wait): Likewise.
6251
6252 2020-04-15 Tom Tromey <tromey@adacore.com>
6253
6254 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6255 (DEBUG_EXCEPT): Use debug_printf.
6256
6257 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6258
6259 * completer.c (class completion_tracker::completion_hash_entry)
6260 <hash_name>: New member function.
6261 (completion_tracker::discard_completions): New callback to hash a
6262 completion_hash_entry, pass this to htab_create_alloc.
6263
6264 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6265
6266 * windows-nat.c (windows_make_so): Warn rather than stopping with
6267 an error if realpath() fails.
6268
6269 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6270
6271 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6272 (nbsd_nat_target::info_proc): Add do_status.
6273
6274 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6275 Tom de Vries <tdevries@suse.de>
6276
6277 PR symtab/25718
6278 * psympriv.h (struct partial_symtab::read_symtab)
6279 (struct partial_symtab::expand_psymtab)
6280 (struct partial_symtab::read_dependencies): Update comments.
6281 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6282 read_symtab for includer.
6283 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6284 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6285 (struct dwarf2_include_psymtab::m_readin): Remove.
6286 (struct dwarf2_include_psymtab::includer): New member function.
6287 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6288
6289 2020-04-14 Tom de Vries <tdevries@suse.de>
6290
6291 PR symtab/25720
6292 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6293 with NULL symbol_matcher and lookup_name.
6294 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6295 and lookup_name.
6296 * dwarf2/read.c (dw2_expand_symtabs_matching)
6297 (dw2_debug_names_expand_symtabs_matching): Same.
6298 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6299 Make lookup_name a pointer. Update comment.
6300 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6301 lookup_name being a pointer.
6302 * symfile.c (expand_symtabs_matching): Same.
6303 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6304 * linespec.c (iterate_over_all_matching_symtabs): Same.
6305
6306 2020-04-13 Tom Tromey <tom@tromey.com>
6307
6308 * run-on-main-thread.c: Update include.
6309 * unittests/main-thread-selftests.c: Update include.
6310 * tui/tui-win.c: Update include.
6311 * tui/tui-io.c: Update include.
6312 * tui/tui-interp.c: Update include.
6313 * tui/tui-hooks.c: Update include.
6314 * top.h: Update include.
6315 * top.c: Update include.
6316 * ser-base.c: Update include.
6317 * remote.c: Update include.
6318 * remote-notif.c: Update include.
6319 * remote-fileio.c: Update include.
6320 * record-full.c: Update include.
6321 * record-btrace.c: Update include.
6322 * python/python.c: Update include.
6323 * posix-hdep.c: Update include.
6324 * mingw-hdep.c: Update include.
6325 * mi/mi-main.c: Update include.
6326 * mi/mi-interp.c: Update include.
6327 * main.c: Update include.
6328 * linux-nat.c: Update include.
6329 * interps.c: Update include.
6330 * infrun.c: Update include.
6331 * inf-loop.c: Update include.
6332 * event-top.c: Update include.
6333 * event-loop.c: Move to ../gdbsupport/.
6334 * event-loop.h: Move to ../gdbsupport/.
6335 * async-event.h: Update include.
6336 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6337
6338 2020-04-13 Tom Tromey <tom@tromey.com>
6339
6340 * tui/tui-win.c: Include async-event.h.
6341 * remote.c: Include async-event.h.
6342 * remote-notif.c: Include async-event.h.
6343 * record-full.c: Include async-event.h.
6344 * record-btrace.c: Include async-event.h.
6345 * infrun.c: Include async-event.h.
6346 * event-top.c: Include async-event.h.
6347 * event-loop.h: Move some declarations to async-event.h.
6348 * event-loop.c: Don't include ser-event.h or top.h. Move some
6349 code to async-event.c.
6350 * async-event.h: New file.
6351 * async-event.c: New file.
6352 * Makefile.in (COMMON_SFILES): Add async-event.c.
6353 (HFILES_NO_SRCDIR): Add async-event.h.
6354
6355 2020-04-13 Tom Tromey <tom@tromey.com>
6356
6357 * utils.c (flush_streams): New function.
6358 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6359
6360 2020-04-13 Tom Tromey <tom@tromey.com>
6361
6362 * event-loop.c (handle_file_event): Use warning, not
6363 printf_unfiltered.
6364
6365 2020-04-13 Tom Tromey <tom@tromey.com>
6366
6367 * event-loop.c: Include <chrono>.
6368
6369 2020-04-13 Tom Tromey <tom@tromey.com>
6370
6371 * gdb_select.h: Move to ../gdbsupport/.
6372 * event-loop.c: Update include path.
6373 * top.c: Update include path.
6374 * ser-base.c: Update include path.
6375 * ui-file.c: Update include path.
6376 * ser-tcp.c: Update include path.
6377 * guile/scm-ports.c: Update include path.
6378 * posix-hdep.c: Update include path.
6379 * ser-unix.c: Update include path.
6380 * gdb_usleep.c: Update include path.
6381 * mingw-hdep.c: Update include path.
6382 * inflow.c: Update include path.
6383 * infrun.c: Update include path.
6384 * event-top.c: Update include path.
6385
6386 2020-04-13 Tom Tromey <tom@tromey.com>
6387
6388 * configure: Rebuild.
6389 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6390
6391 2020-04-13 Tom Tromey <tom@tromey.com>
6392
6393 * event-loop.h (start_event_loop): Don't declare.
6394 * event-loop.c (start_event_loop): Move...
6395 * main.c (start_event_loop): ...here. Now static.
6396
6397 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6398
6399 * MAINTAINERS: Update my email address.
6400
6401 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6402
6403 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6404 IP_ALL.
6405
6406 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6407
6408 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6409 (nbsd_nat_target::info_proc): Add do_cmdline.
6410
6411 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6412
6413 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6414 (nbsd_nat_target::info_proc): Add do_cwd.
6415
6416 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6417
6418 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6419
6420 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6421
6422 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6423 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6424 (nbsd_nat_target::info_proc): New functions.
6425 * nbsd-nat.c (kinfo_get_vmmap): New function.
6426 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6427 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6428 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6429 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6430 functions.
6431 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6432 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6433 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6434 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6435 (KINFO_VME_FLAG_GROWS_DOWN): New.
6436
6437 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6438
6439 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6440 bit shift.
6441
6442 2020-04-10 Tom Tromey <tromey@adacore.com>
6443
6444 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6445
6446 2020-04-10 Tom Tromey <tromey@adacore.com>
6447
6448 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6449 separate debug files.
6450
6451 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6452
6453 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6454 Move to...
6455 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6456 ... here.
6457 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6458 Check for STATUS_WX86_BREAKPOINT.
6459 (windows_nat_target::wait): Same.
6460
6461 2020-04-10 Tom de Vries <tdevries@suse.de>
6462
6463 PR cli/25808
6464 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6465
6466 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6467
6468 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6469 (Write After Approval): Remove Tom de Vries.
6470
6471 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6472
6473 revert partially:
6474 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6475
6476 * buildsym.c (record_line): Fix undefined behavior and preserve
6477 lines at eof.
6478
6479 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6480
6481 * auxv.h (svr4_auxv_parse): New.
6482 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6483 and generic_auxv_parse.
6484 (svr4_auxv_parse): Add.
6485 * obsd-tdep.c: Include "auxv.h".
6486 (obsd_auxv_parse): Remove.
6487 (obsd_init_abi): Remove comment.
6488 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6489 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6490 * nbsd-tdep.c: Include "auxv.h".
6491 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6492
6493 2020-04-08 Tom Tromey <tromey@adacore.com>
6494
6495 * nat/windows-nat.h (last_wait_event): Don't declare.
6496 (wait_for_debug_event): Update comment.
6497 * nat/windows-nat.c (last_wait_event): Now static.
6498
6499 2020-04-08 Tom Tromey <tromey@adacore.com>
6500
6501 * windows-nat.c (wait_for_debug_event): Move to
6502 nat/windows-nat.c.
6503 * nat/windows-nat.h (wait_for_debug_event): Declare.
6504 * nat/windows-nat.c (wait_for_debug_event): Move from
6505 windows-nat.c. No longer static.
6506
6507 2020-04-08 Tom Tromey <tromey@adacore.com>
6508
6509 * windows-nat.c (get_windows_debug_event): Use
6510 fetch_pending_stop.
6511 * nat/windows-nat.h (fetch_pending_stop): Declare.
6512 * nat/windows-nat.c (fetch_pending_stop): New function.
6513
6514 2020-04-08 Tom Tromey <tromey@adacore.com>
6515
6516 * windows-nat.c (windows_continue): Use matching_pending_stop and
6517 continue_last_debug_event.
6518 * nat/windows-nat.h (matching_pending_stop)
6519 (continue_last_debug_event): Declare.
6520 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6521 (matching_pending_stop, continue_last_debug_event): New
6522 functions.
6523
6524 2020-04-08 Tom Tromey <tromey@adacore.com>
6525
6526 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6527 (handle_exception_result): Move to nat/windows-nat.h.
6528 (DEBUG_EXCEPTION_SIMPLE): Remove.
6529 (windows_nat::handle_ms_vc_exception): New function.
6530 (handle_exception): Move to nat/windows-nat.c.
6531 (get_windows_debug_event): Update.
6532 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6533 nat/windows-nat.c.
6534 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6535 (handle_exception_result): Move from windows-nat.c.
6536 (handle_exception): Declare.
6537 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6538 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6539 windows-nat.c.
6540
6541 2020-04-08 Tom Tromey <tromey@adacore.com>
6542
6543 * windows-nat.c (exception_count, event_count): Remove.
6544 (handle_exception, get_windows_debug_event)
6545 (do_initial_windows_stuff): Update.
6546
6547 2020-04-08 Tom Tromey <tromey@adacore.com>
6548
6549 * windows-nat.c (windows_nat::handle_load_dll)
6550 (windows_nat::handle_unload_dll): Rename. No longer static.
6551 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6552 Declare.
6553
6554 2020-04-08 Tom Tromey <tromey@adacore.com>
6555
6556 * complaints.h (stop_whining): Declare at top-level.
6557 (complaint): Don't declare stop_whining.
6558
6559 2020-04-08 Tom Tromey <tromey@adacore.com>
6560
6561 * windows-nat.c (windows_nat::handle_output_debug_string):
6562 Rename. No longer static.
6563 * nat/windows-nat.h (handle_output_debug_string): Declare.
6564
6565 2020-04-08 Tom Tromey <tromey@adacore.com>
6566
6567 * windows-nat.c (current_process_handle, current_process_id)
6568 (main_thread_id, last_sig, current_event, last_wait_event)
6569 (current_windows_thread, desired_stop_thread_id, pending_stops)
6570 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6571 (display_selectors, fake_create_process)
6572 (get_windows_debug_event): Update.
6573 * nat/windows-nat.h (current_process_handle, current_process_id)
6574 (main_thread_id, last_sig, current_event, last_wait_event)
6575 (current_windows_thread, desired_stop_thread_id, pending_stops)
6576 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6577 * nat/windows-nat.c (current_process_handle, current_process_id)
6578 (main_thread_id, last_sig, current_event, last_wait_event)
6579 (current_windows_thread, desired_stop_thread_id, pending_stops)
6580 (siginfo_er): New globals. Move from windows-nat.c.
6581
6582 2020-04-08 Tom Tromey <tromey@adacore.com>
6583
6584 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6585 (handle_load_dll): Update.
6586 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6587
6588 2020-04-08 Tom Tromey <tromey@adacore.com>
6589
6590 * windows-nat.c (enum thread_disposition_type): Move to
6591 nat/windows-nat.h.
6592 (windows_nat::thread_rec): Rename from thread_rec. No longer
6593 static.
6594 (windows_add_thread, windows_nat_target::fetch_registers)
6595 (windows_nat_target::store_registers, handle_exception)
6596 (windows_nat_target::resume, get_windows_debug_event)
6597 (windows_nat_target::get_tib_address)
6598 (windows_nat_target::thread_name)
6599 (windows_nat_target::thread_alive): Update.
6600 * nat/windows-nat.h (enum thread_disposition_type): Move from
6601 windows-nat.c.
6602 (thread_rec): Declare.
6603
6604 2020-04-08 Tom Tromey <tromey@adacore.com>
6605
6606 * windows-nat.c: Add "using namespace".
6607 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6608 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6609
6610 2020-04-08 Tom Tromey <tromey@adacore.com>
6611
6612 * nat/windows-nat.h (struct windows_thread_info): Declare
6613 destructor.
6614 * nat/windows-nat.c (~windows_thread_info): New.
6615
6616 2020-04-08 Tom Tromey <tromey@adacore.com>
6617
6618 PR gdb/22992
6619 * windows-nat.c (current_event): Update comment.
6620 (last_wait_event, desired_stop_thread_id): New globals.
6621 (struct pending_stop): New.
6622 (pending_stops): New global.
6623 (windows_nat_target) <stopped_by_sw_breakpoint>
6624 <supports_stopped_by_sw_breakpoint>: New methods.
6625 (windows_fetch_one_register): Add assertions. Adjust PC.
6626 (windows_continue): Handle pending stops. Suspend other threads
6627 when stepping. Use last_wait_event
6628 (wait_for_debug_event): New function.
6629 (get_windows_debug_event): Use wait_for_debug_event. Handle
6630 pending stops. Queue spurious stops.
6631 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6632 (windows_nat_target::kill): Use wait_for_debug_event.
6633 * nat/windows-nat.h (struct windows_thread_info)
6634 <stopped_at_software_breakpoint>: New field.
6635 * nat/windows-nat.c (windows_thread_info::resume): Clear
6636 stopped_at_software_breakpoint.
6637
6638 2020-04-08 Tom Tromey <tromey@adacore.com>
6639
6640 * windows-nat.c (enum thread_disposition_type): New.
6641 (thread_rec): Replace "get_context" parameter with "disposition";
6642 change type.
6643 (windows_add_thread, windows_nat_target::fetch_registers)
6644 (windows_nat_target::store_registers, handle_exception)
6645 (windows_nat_target::resume, get_windows_debug_event)
6646 (windows_nat_target::get_tib_address)
6647 (windows_nat_target::thread_name)
6648 (windows_nat_target::thread_alive): Update.
6649
6650 2020-04-08 Tom Tromey <tromey@adacore.com>
6651
6652 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6653 (windows_continue): Use windows_continue::resume.
6654 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6655 resume>: Declare new methods.
6656 * nat/windows-nat.c: New file.
6657 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6658
6659 2020-04-08 Tom Tromey <tromey@adacore.com>
6660
6661 * windows-nat.c (windows_add_thread, windows_delete_thread)
6662 (windows_nat_target::fetch_registers)
6663 (windows_nat_target::store_registers, fake_create_process)
6664 (windows_nat_target::resume, windows_nat_target::resume)
6665 (get_windows_debug_event, windows_nat_target::wait)
6666 (windows_nat_target::pid_to_str)
6667 (windows_nat_target::get_tib_address)
6668 (windows_nat_target::get_ada_task_ptid)
6669 (windows_nat_target::thread_name)
6670 (windows_nat_target::thread_alive): Use lwp, not tid.
6671
6672 2020-04-08 Tom Tromey <tromey@adacore.com>
6673
6674 * windows-nat.c (handle_exception)
6675 (windows_nat_target::thread_name): Update.
6676 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6677 <name>: Now unique_xmalloc_ptr.
6678
6679 2020-04-08 Tom Tromey <tromey@adacore.com>
6680
6681 * windows-nat.c (thread_rec)
6682 (windows_nat_target::fetch_registers): Update.
6683 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6684 Update comment.
6685 <debug_registers_changed, reload_context>: Now bool.
6686
6687 2020-04-08 Tom Tromey <tromey@adacore.com>
6688
6689 * windows-nat.c (windows_add_thread): Use new.
6690 (windows_init_thread_list, windows_delete_thread): Use delete.
6691 (get_windows_debug_event): Update.
6692 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6693 destructor, and initializers.
6694
6695 2020-04-08 Tom Tromey <tromey@adacore.com>
6696
6697 * windows-nat.c (struct windows_thread_info): Remove.
6698 * nat/windows-nat.h: New file.
6699
6700 2020-04-08 Tom Tromey <tromey@adacore.com>
6701
6702 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6703 (thread_rec, windows_add_thread, windows_delete_thread)
6704 (windows_continue): Update.
6705
6706 2020-04-08 Tom Tromey <tromey@adacore.com>
6707
6708 * windows-nat.c (struct windows_thread_info): Remove typedef.
6709 (thread_head): Remove.
6710 (thread_list): New global.
6711 (thread_rec, windows_add_thread, windows_init_thread_list)
6712 (windows_delete_thread, windows_continue): Update.
6713
6714 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6715
6716 * windows-tdep.h (windows_init_abi): Add comment.
6717 (cygwin_init_abi): New declaration.
6718 * windows-tdep.c: Split signal enumeration in two, one for
6719 Windows and one for Cygwin.
6720 (windows_gdb_signal_to_target): Only deal with signal of the
6721 Windows OS ABI.
6722 (cygwin_gdb_signal_to_target): New function.
6723 (windows_init_abi): Rename to windows_init_abi_common, don't set
6724 gdb_signal_to_target gdbarch method. Add new new function with
6725 this name.
6726 (cygwin_init_abi): New function.
6727 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6728 comment. Don't call windows_init_abi.
6729 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6730 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6731 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6732 i386_windows_init_abi_common, don't call windows_init_abi. Add
6733 a new function of this name.
6734 (i386_cygwin_init_abi): New function.
6735 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6736 OS ABI Cygwin.
6737
6738 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6739
6740 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6741 parameter.c.
6742 (dwarf2_read_gdb_index): Update.
6743
6744 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6745
6746 * nbsd-tdep.c: Include "objfiles.h".
6747 (nbsd_skip_solib_resolver): New.
6748 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6749
6750 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6751
6752 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6753 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6754 with DW_LLE_base_addressx are being emitted in DWARFv5.
6755 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6756 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6757 unsigned integer.
6758
6759 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6760
6761 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6762 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6763 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6764 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6765 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6766 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6767 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6768
6769
6770 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6771
6772 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6773 (read_loclist_index): New function definition.
6774 (lookup_loclist_base): New function definition.
6775 (read_loclist_header): New function definition.
6776 (dwarf2_cu): Add loclist_base and loclist_header field.
6777 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6778 (read_full_die_1): Read the value of DW_AT_loclists_base.
6779 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6780 (read_attribute_value): Handle DW_FORM_loclistx.
6781 (skip_one_die): Handle DW_FORM_loclistx.
6782 (loclist_header): New structure declaration.
6783 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6784
6785 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6786
6787 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6788 constructor. Remove `addr` parameter from other constructor and
6789 add `per_cu` parameter.
6790 * dwarf2/read.c (create_partial_symtab): Update.
6791
6792 2020-04-07 Tom de Vries <tdevries@suse.de>
6793
6794 PR symtab/25796
6795 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6796 (partial_die_info::fixup): Inherit has_const_value.
6797
6798 2020-04-07 Tom de Vries <tdevries@suse.de>
6799
6800 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6801 symbols without address.
6802
6803 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6804
6805 * nbsd-nat.h (struct thread_info): Add forward declaration.
6806 (nbsd_nat_target::thread_alive): Add.
6807 (nbsd_nat_target::thread_name): Likewise.
6808 (nbsd_nat_target::update_thread_list): Likewise.
6809 (update_thread_list::post_attach): Likewise.
6810 (post_attach::pid_to_str): Likewise.
6811 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6812 (nbsd_thread_lister): Add.
6813 (nbsd_nat_target::thread_alive): Likewise.
6814 (nbsd_nat_target::thread_name): Likewise.
6815 (nbsd_add_threads): Likewise.
6816 (update_thread_list::post_attach): Likewise.
6817 (nbsd_nat_target::update_thread_list): Likewise.
6818 (post_attach::pid_to_str): Likewise.
6819
6820 2020-04-06 Tom Tromey <tromey@adacore.com>
6821
6822 * ada-valprint.c (print_variant_part): Extract the variant field.
6823 (print_field_values): Use the field as the outer value when
6824 recursing.
6825
6826 2020-04-06 Tom Tromey <tromey@adacore.com>
6827
6828 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6829 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6830 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6831 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6832 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6833
6834 2020-04-06 Tom Tromey <tromey@adacore.com>
6835
6836 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6837 TYPE_CODE_ERROR.
6838
6839 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6840
6841 * nbsd-tdep.c: Include "gdbarch.h".
6842 Define enum with NetBSD signal numbers.
6843 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6844 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6845 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6846 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6847 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6848 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6849 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6850 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6851 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6852 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6853 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6854 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6855
6856 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6857
6858 PR gdb/25325
6859 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6860
6861 2020-04-03 Tom Tromey <tromey@adacore.com>
6862
6863 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6864 Read constant block.
6865
6866 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6867
6868 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6869 (gdb_bfd_get_full_section_contents): New declaration.
6870 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6871 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6872 gdb_bfd_get_full_section_contents.
6873
6874 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6875
6876 * exec.c (build_section_table): Replace internal_error with
6877 gdb_assert.
6878 (section_table_xfer_memory_partial): Likewise.
6879 * mdebugread.c (parse_partial_symbols): Likewise.
6880 * psymtab.c (lookup_partial_symbol): Likewise.
6881 * utils.c (wrap_here): Likewise.
6882
6883 2020-04-02 Tom Tromey <tromey@adacore.com>
6884
6885 * f-lang.c (build_fortran_types): Use arch_type to initialize
6886 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6887
6888 2020-04-02 Tom Tromey <tromey@adacore.com>
6889
6890 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6891 of attributes.
6892
6893 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6894 Bernd Edlinger <bernd.edlinger@hotmail.de>
6895 Tom Tromey <tromey@adacore.com>
6896
6897 * buildsym.c (buildsym_compunit::record_line): Remove
6898 deduplication code.
6899
6900 2020-04-02 Tom de Vries <tdevries@suse.de>
6901
6902 PR ada/24671
6903 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6904
6905 2020-04-02 Tom de Vries <tdevries@suse.de>
6906
6907 * dwarf2/read.c (dwarf2_gdb_index_functions,
6908 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6909 NULL.
6910 * psymtab.c (psym_lookup_global_symbol_language): New function.
6911 (psym_functions): Init psym_lookup_global_symbol_language with
6912 psym_lookup_global_symbol_language.
6913 * symfile-debug.c (debug_sym_quick_functions): Init
6914 lookup_global_symbol_language with NULL.
6915 * symfile.c (set_initial_language): Remove fixme comment.
6916 * symfile.h (struct quick_symbol_functions): Add
6917 lookup_global_symbol_language.
6918 * symtab.c (find_quick_global_symbol_language): New function.
6919 (find_main_name): Use find_quick_global_symbol_language.
6920
6921 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6922
6923 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6924
6925 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6926
6927 * buildsym.c (record_line): Fix undefined behavior and preserve
6928 lines at eof.
6929
6930 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6931
6932 * buildsym.c (record_line): Fix the resizing condition.
6933
6934 2020-04-01 Tom Tromey <tom@tromey.com>
6935
6936 * value.h (value_literal_complex): Add comment.
6937 * valops.c (value_literal_complex): Refer to value.h.
6938
6939 2020-04-01 Tom Tromey <tom@tromey.com>
6940
6941 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6942 (scalar_type): New rule, from typebase.
6943 (typebase): Use scalar_type. Recognize complex types.
6944 (field_name): Handle FLOAT_KEYWORD.
6945 (ident_tokens): Add _Complex and __complex__.
6946
6947 2020-04-01 Tom Tromey <tom@tromey.com>
6948
6949 PR exp/25299:
6950 * valarith.c (promotion_type, complex_binop): New functions.
6951 (scalar_binop): Handle complex numbers. Use promotion_type.
6952 (value_pos, value_neg, value_complement): Handle complex numbers.
6953
6954 2020-04-01 Tom Tromey <tom@tromey.com>
6955
6956 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6957 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6958 (parse_number): Handle complex numbers.
6959
6960 2020-04-01 Tom Tromey <tom@tromey.com>
6961
6962 * c-valprint.c (c_decorations): Change complex suffix to "i".
6963
6964 2020-04-01 Tom Tromey <tom@tromey.com>
6965
6966 * valprint.c (generic_value_print_complex): Use accessors.
6967 * value.h (value_real_part, value_imaginary_part): Declare.
6968 * valops.c (value_real_part, value_imaginary_part): New
6969 functions.
6970 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6971
6972 2020-04-01 Tom Tromey <tom@tromey.com>
6973
6974 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6975 (read_range_type): Update.
6976 * mdebugread.c (basic_type): Update.
6977 * go-lang.c (build_go_types): Use init_complex_type.
6978 * gdbtypes.h (struct main_type) <complex_type>: New member.
6979 (init_complex_type): Update.
6980 (arch_complex_type): Don't declare.
6981 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6982 Make name if none given. Use alloc_type_copy. Look for cached
6983 complex type.
6984 (arch_complex_type): Remove.
6985 (gdbtypes_post_init): Use init_complex_type.
6986 * f-lang.c (build_fortran_types): Use init_complex_type.
6987 * dwarf2/read.c (read_base_type): Update.
6988 * d-lang.c (build_d_types): Use init_complex_type.
6989 * ctfread.c (read_base_type): Update.
6990
6991 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6992
6993 * infrun.c (stop_all_threads): Update assertion, plus when
6994 stopping threads, take into account that we might be trying
6995 to stop an all-stop target.
6996 (stop_waiting): Call 'stop_all_threads' if there exists a
6997 non-stop target.
6998
6999 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7000
7001 * target.h (exists_non_stop_target): New function declaration.
7002 * target.c (exists_non_stop_target): New function.
7003
7004 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7005
7006 PR gdb/24789
7007 * eval.c (is_integral_or_integral_reference): New function.
7008 (evaluate_subexp_standard): Allow integer references in
7009 pointer arithmetic.
7010
7011 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7012
7013 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7014 check for no ptid in the stop reply when the target is non-stop.
7015
7016 2020-04-01 Tom Tromey <tromey@adacore.com>
7017
7018 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7019 "name" parameter to rvalue reference. Initialize m_name_holder.
7020 <lookup_name_info>: New overloads.
7021 <name>: Return gdb::string_view.
7022 <c_str>: New method.
7023 <make_ignore_params>: Update.
7024 <search_name_hash>: Update.
7025 <language_lookup_name>: Return const char *.
7026 <m_name>: Change type.
7027 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7028 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7029 (lookup_name_info::match_any): Update.
7030 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7031 Update.
7032 * minsyms.c (linkage_name_str): Update.
7033 * language.c (default_symbol_name_matcher): Update.
7034 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7035 Update.
7036 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7037 (ada_lookup_name_info::ada_lookup_name_info): Update.
7038 (literal_symbol_name_matcher): Update.
7039
7040 2020-04-01 Tom Tromey <tromey@adacore.com>
7041
7042 * psymtab.c (psymtab_search_name): Remove function.
7043 (psym_lookup_symbol): Create search name and lookup name here.
7044 (lookup_partial_symbol): Remove "name" parameter; add
7045 lookup_name.
7046 (psym_expand_symtabs_for_function): Update.
7047
7048 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7049
7050 PR tui/25597:
7051 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7052
7053 2020-03-31 Tom Tromey <tromey@adacore.com>
7054
7055 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7056 memcpy.
7057
7058 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7059
7060 * features/riscv/32bit-csr.xml: Regenerated.
7061 * features/riscv/64bit-csr.xml: Regenerated.
7062
7063 2020-03-30 Tom Tromey <tromey@adacore.com>
7064
7065 * ada-valprint.c (print_variant_part): Update.
7066 * ada-lang.h (ada_which_variant_applies): Update.
7067 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7068 outer_valaddr parameters; replace with "outer" value parameter.
7069 (to_fixed_variant_branch_type): Update.
7070
7071 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7072
7073 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7074 <list>. Remove inclusion of observable.h.
7075 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7076 (struct arch_lwp_info): New struct.
7077 (class ppc_linux_dreg_interface): New class.
7078 (struct ppc_linux_process_info): New struct.
7079 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7080 <low_new_clone, low_forget_process, low_prepare_to_resume>
7081 <copy_thread_dreg_state, mark_thread_stale>
7082 <mark_debug_registers_changed, register_hw_breakpoint>
7083 <clear_hw_breakpoint, register_wp, clear_wp>
7084 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7085 <num_memory_accesses, get_trigger_type>
7086 <create_watchpoint_request, hwdebug_point_cmp>
7087 <init_arch_lwp_info, get_arch_lwp_info>
7088 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7089 methods.
7090 <struct ptid_hash>: New inner struct.
7091 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7092 members.
7093 (saved_dabr_value, hwdebug_info, max_slots_number)
7094 (struct hw_break_tuple, struct thread_points, ppc_threads)
7095 (have_ptrace_hwdebug_interface)
7096 (hwdebug_find_thread_points_by_tid)
7097 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7098 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7099 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7100 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7101 use m_dreg_interface.
7102 (hwdebug_point_cmp): Change to...
7103 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7104 reference arguments instead of pointers.
7105 (ppc_linux_nat_target::ranged_break_num_registers): Use
7106 m_dreg_interface.
7107 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7108 m_dreg_interface. Call register_hw_breakpoint.
7109 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7110 m_dreg_interface. Call clear_hw_breakpoint.
7111 (get_trigger_type): Change to...
7112 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7113 comment.
7114 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7115 use m_dreg_interface. Call register_hw_breakpoint.
7116 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7117 use m_dreg_interface. Call clear_hw_breakpoint.
7118 (can_use_watchpoint_cond_accel): Change to...
7119 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7120 method. Update comment, use m_dreg_interface and
7121 m_process_info.
7122 (calculate_dvc): Change to...
7123 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7124 m_dreg_interface.
7125 (num_memory_accesses): Change to...
7126 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7127 (check_condition): Change to...
7128 (ppc_linux_nat_target::check_condition): ...this method.
7129 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7130 comment, use m_dreg_interface.
7131 (create_watchpoint_request): Change to...
7132 (ppc_linux_nat_target::create_watchpoint_request): ...this
7133 method. Use m_dreg_interface.
7134 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7135 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7136 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7137 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7138 (ppc_linux_nat_target::low_forget_process)
7139 (ppc_linux_nat_target::low_new_fork)
7140 (ppc_linux_nat_target::low_new_clone)
7141 (ppc_linux_nat_target::low_delete_thread)
7142 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7143 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7144 only call mark_thread_stale.
7145 (ppc_linux_thread_exit): Remove.
7146 (ppc_linux_nat_target::stopped_data_address): Change to...
7147 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7148 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7149 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7150 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7151 comment. Call low_stopped_data_address.
7152 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7153 m_dreg_interface.
7154 (ppc_linux_nat_target::masked_watch_num_registers): Use
7155 m_dreg_interface.
7156 (ppc_linux_nat_target::copy_thread_dreg_state)
7157 (ppc_linux_nat_target::mark_thread_stale)
7158 (ppc_linux_nat_target::mark_debug_registers_changed)
7159 (ppc_linux_nat_target::register_hw_breakpoint)
7160 (ppc_linux_nat_target::clear_hw_breakpoint)
7161 (ppc_linux_nat_target::register_wp)
7162 (ppc_linux_nat_target::clear_wp)
7163 (ppc_linux_nat_target::init_arch_lwp_info)
7164 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7165 (_initialize_ppc_linux_nat): Remove observer callback.
7166
7167 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7168
7169 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7170 (ppc_linux_nat_target::auxv_parse)
7171 (ppc_linux_nat_target::read_description)
7172 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7173 Move up.
7174
7175 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7176
7177 * linux-nat.h (low_new_clone): New method.
7178 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7179
7180 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7181
7182 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7183 (dbx_expand_psymtab): ... this.
7184 (start_psymtab): Update.
7185 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7186 (mdebug_expand_psymtab): ... this.
7187 (parse_partial_symbols): Update.
7188 (new_psymtab): Update.
7189 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7190 (xcoff_expand_psymtab): ... this.
7191 (xcoff_start_psymtab): Update.
7192
7193 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7194
7195 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7196 <expand_dependencies>: ... this.
7197 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7198 (partial_symtab::expand_dependencies): ... this.
7199 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7200 Update.
7201 (dwarf2_psymtab::expand_psymtab): Update.
7202 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7203 * mdebugread.c (psymtab_to_symtab_1): Update.
7204 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7205
7206 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7207
7208 * psympriv.h (discard_psymtab): Remove.
7209 * dbxread.c (dbx_end_psymtab): Update.
7210 * xcoffread.c (xcoff_end_psymtab): Update.
7211
7212 2020-03-28 Tom Tromey <tom@tromey.com>
7213
7214 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7215 comment.
7216
7217 2020-03-28 Tom Tromey <tom@tromey.com>
7218
7219 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7220
7221 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7222
7223 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7224
7225 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7226
7227 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7228
7229 2020-03-26 Tom Tromey <tom@tromey.com>
7230
7231 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7232 (mark_common_block_symbol_computed, read_tag_string_type)
7233 (attr_to_dynamic_prop, read_subrange_type): Update.
7234 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7235 to be methods on struct attribute.
7236 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7237 (read_call_site_scope, partial_die_info::read)
7238 (partial_die_info::read, lookup_die_type, follow_die_ref):
7239 Update.
7240 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7241 from dwarf2_get_ref_die_offset.
7242 (attribute::constant_value): New method, from
7243 dwarf2_get_attr_constant_value.
7244 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7245 Declare method.
7246 <constant_value>: New method.
7247
7248 2020-03-26 Tom Tromey <tom@tromey.com>
7249
7250 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7251 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7252 (dwarf_type_encoding_name): Move to stringify.c.
7253 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7254 * dwarf2/stringify.c: New file.
7255 * dwarf2/stringify.h: New file.
7256
7257 2020-03-26 Tom Tromey <tom@tromey.com>
7258
7259 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7260 Rewrite.
7261
7262 2020-03-26 Tom Tromey <tom@tromey.com>
7263
7264 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7265 methods.
7266 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7267 (lookup_ranges_base): Likewise.
7268 (read_cutu_die_from_dwo, read_full_die_1): Update.
7269
7270 2020-03-26 Tom Tromey <tom@tromey.com>
7271
7272 * dwarf2/read.c (read_import_statement, read_file_scope)
7273 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7274 (read_lexical_block_scope, read_call_site_scope)
7275 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7276 (handle_struct_member_die, process_structure_scope)
7277 (update_enumeration_type_from_children)
7278 (process_enumeration_scope, read_array_type, read_common_block)
7279 (read_namespace, read_module, read_subroutine_type): Update.
7280 (sibling_die): Remove.
7281
7282 2020-03-26 Tom Tromey <tom@tromey.com>
7283
7284 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7285 (build_type_psymtabs_reader, read_structure_type)
7286 (read_enumeration_type, read_full_die_1): Update.
7287 (dwarf2_attr_no_follow): Move to die.h.
7288 * dwarf2/die.h (struct die_info) <attr>: New method.
7289
7290 2020-03-26 Tom Tromey <tom@tromey.com>
7291
7292 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7293 <base_address>: Now an optional.
7294 (dwarf2_find_base_address, dwarf2_rnglists_process)
7295 (dwarf2_ranges_process, fill_in_loclist_baton)
7296 (dwarf2_symbol_mark_computed): Update.
7297
7298 2020-03-26 Tom Tromey <tom@tromey.com>
7299
7300 * dwarf2/read.c (struct die_info): Move to die.h.
7301 * dwarf2/die.h: New file.
7302
7303 2020-03-26 Tom Tromey <tom@tromey.com>
7304
7305 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7306 * dwarf2/read.c
7307 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7308 Move to line-header.c.
7309 (read_checked_initial_length_and_offset, read_formatted_entries):
7310 Likewise.
7311 (dwarf_decode_line_header): Split into two.
7312 * dwarf2/line-header.c
7313 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7314 Move from read.c.
7315 (read_checked_initial_length_and_offset, read_formatted_entries):
7316 Likewise.
7317 (dwarf_decode_line_header): New function, split from read.c.
7318
7319 2020-03-26 Tom Tromey <tom@tromey.com>
7320
7321 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7322 Declare method.
7323 * dwarf2/read.c (read_attribute_value): Update.
7324 (dwarf2_per_objfile::read_line_string): Rename from
7325 read_indirect_line_string.
7326 (read_formatted_entries): Update.
7327
7328 2020-03-26 Tom Tromey <tom@tromey.com>
7329
7330 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7331 variable.
7332
7333 2020-03-26 Tom Tromey <tom@tromey.com>
7334
7335 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7336 const.
7337 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7338 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7339 parameter const.
7340
7341 2020-03-26 Tom Tromey <tom@tromey.com>
7342
7343 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7344 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7345 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7346 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7347
7348 2020-03-26 Tom Tromey <tom@tromey.com>
7349
7350 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7351 file_names_size, file_full_name, file_file_name>: Use const.
7352 <file_name_at, file_names>: Add const overload.
7353 * dwarf2/line-header.c (line_header::file_file_name)
7354 (line_header::file_full_name): Update.
7355
7356 2020-03-26 Tom Tromey <tom@tromey.com>
7357
7358 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7359 (macro_start_file, consume_improper_spaces)
7360 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7361 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7362 (dwarf_decode_macros): Move to macro.c.
7363 * dwarf2/macro.c: New file.
7364 * dwarf2/macro.h: New file.
7365 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7366
7367 2020-03-26 Tom Tromey <tom@tromey.com>
7368
7369 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7370 method.
7371 * dwarf2/section.c: New method. From
7372 read_indirect_string_at_offset_from.
7373 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7374 (read_indirect_string_at_offset_from): Move to section.c.
7375 (read_indirect_string_at_offset): Rewrite.
7376 (read_indirect_line_string_at_offset): Remove.
7377 (read_indirect_string, read_indirect_line_string)
7378 (dwarf_decode_macro_bytes): Update.
7379
7380 2020-03-26 Tom Tromey <tom@tromey.com>
7381
7382 * dwarf2/section.h (struct dwarf2_section_info)
7383 <overload_complaint>: Declare.
7384 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7385 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7386 Rename from dwarf2_section_buffer_overflow_complaint.
7387 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7388 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7389
7390 2020-03-26 Tom Tromey <tom@tromey.com>
7391
7392 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7393 Declare.
7394 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7395 Move from read.c.
7396 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7397 to section.c.
7398
7399 2020-03-26 Tom Tromey <tom@tromey.com>
7400
7401 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7402
7403 2020-03-26 Tom Tromey <tom@tromey.com>
7404
7405 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7406 "builder".
7407 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7408 parameter.
7409 (dwarf_decode_macros): Update.
7410
7411 2020-03-26 Tom Tromey <tom@tromey.com>
7412
7413 * dwarf2/read.c (read_attribute_value): Update.
7414 (read_indirect_string_from_dwz): Move to dwz.c; change into
7415 method.
7416 (dwarf_decode_macro_bytes): Update.
7417 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7418 * dwarf2/dwz.c: New file.
7419 * Makefile.in (COMMON_SFILES): Add dwz.c.
7420
7421 2020-03-26 Tom Tromey <tom@tromey.com>
7422
7423 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7424 * dwarf2/read.c: Add include.
7425 * dwarf2/index-write.c: Add include.
7426 * dwarf2/index-cache.c: Add include.
7427 * dwarf2/dwz.h: New file.
7428
7429 2020-03-25 Tom Tromey <tom@tromey.com>
7430
7431 * compile/compile-object-load.c (get_out_value_type): Mention
7432 correct symbol name in error message.
7433
7434 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7435
7436 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7437
7438 2020-03-25 Tom de Vries <tdevries@suse.de>
7439
7440 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7441 * symmisc.c (dump_symtab_1): Print user and includes fields.
7442 (maintenance_info_symtabs): Same.
7443
7444 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7445
7446 PR gdb/25534
7447 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7448 (riscv_regcache_cooked_write): New function.
7449 (riscv_push_dummy_call): Use new function.
7450 (riscv_return_value): Likewise.
7451
7452 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7453
7454 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7455 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7456 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7457 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7458 * infrun.c (follow_fork): Likewise.
7459 (follow_fork_inferior): Likewise.
7460 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7461 * linux-nat.h (class linux_nat_target): Likewise.
7462 * remote.c (class remote_target) <follow_fork>: Likewise.
7463 (remote_target::follow_fork): Likewise.
7464 * target-delegates.c: Re-generate.
7465 * target.c (default_follow_fork): Likewise.
7466 (target_follow_fork): Likewise.
7467 * target.h (struct target_ops) <follow_fork>: Likewise.
7468 (target_follow_fork): Likewise.
7469
7470 2020-03-24 Tom de Vries <tdevries@suse.de>
7471
7472 * psymtab.c (maintenance_info_psymtabs): Print user field.
7473
7474 2020-03-20 Tom Tromey <tromey@adacore.com>
7475
7476 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7477 const.
7478 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7479 const.
7480
7481 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7482
7483 * ptrace.m4: Don't check for ptrace declaration.
7484 * config.in: Re-generate.
7485 * configure: Re-generate.
7486 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7487 not defined.
7488
7489 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7490
7491 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7492 `PTRACE_TYPE_RET'.
7493 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7494 * sparc-nat.c (gdb_ptrace): Likewise.
7495 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7496
7497 2020-03-20 Tom Tromey <tromey@adacore.com>
7498
7499 * c-exp.y (lex_one_token): Fix assert.
7500
7501 2020-03-20 Tom Tromey <tromey@adacore.com>
7502
7503 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7504 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7505 strncpy call.
7506
7507 2020-03-20 Tom Tromey <tromey@adacore.com>
7508
7509 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7510
7511 2020-03-20 Tom Tromey <tromey@adacore.com>
7512
7513 * ada-valprint.c (print_variant_part): Remove parameters; switch
7514 to value-based API.
7515 (print_field_values): Likewise.
7516 (ada_val_print_struct_union): Likewise.
7517 (ada_value_print_1): Update.
7518
7519 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7520
7521 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7522 nbsd_nat_target instead of inf_ptrace_target.
7523 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7524 nbsd_nat_target.
7525
7526 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7527
7528 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7529 it to the ptrace call.
7530 * (store_registers): Likewise.
7531
7532 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7533
7534 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7535 it to the ptrace call.
7536 * (store_registers): Likewise.
7537
7538 2020-03-19 Luis Machado <luis.machado@linaro.org>
7539
7540 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7541 valid, fetch vg value from ptrace.
7542
7543 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7544 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7545 * inf-ptrace.c: Likewise.
7546 * (gdb_ptrace): Add.
7547 * (inf_ptrace_target::resume): Update.
7548 * (inf_ptrace_target::xfer_partial): Likewise.
7549 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7550 * (inf_ptrace_peek_poke): Update.
7551
7552 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7553
7554 * x86-bsd-nat.c (gdb_ptrace): New.
7555 * (x86bsd_dr_set): Add new argument `ptid'.
7556 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7557 x86bsd_dr_set_addr): Update.
7558
7559 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7560
7561 * remote.c (remote_target::process_stop_reply): Handle events for
7562 all threads differently.
7563
7564 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7565
7566 * completer.c (completion_tracker::remove_completion): Define new
7567 function.
7568 * completer.h (completion_tracker::remove_completion): Declare new
7569 function.
7570 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7571 when adding a C++ function symbol.
7572
7573 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7574
7575 * completer.c (completion_tracker::completion_hash_entry): Define
7576 new class.
7577 (advance_to_filename_complete_word_point): Call
7578 recompute_lowest_common_denominator.
7579 (completion_tracker::completion_tracker): Call discard_completions
7580 to setup the hash table.
7581 (completion_tracker::discard_completions): Allow for being called
7582 from the constructor, pass new equal function, and element deleter
7583 when constructing the hash table. Initialise new class member
7584 variables.
7585 (completion_tracker::maybe_add_completion): Remove use of
7586 m_entries_vec, and store more information into m_entries_hash.
7587 (completion_tracker::recompute_lcd_visitor): New function, most
7588 content taken from...
7589 (completion_tracker::recompute_lowest_common_denominator):
7590 ...here, this now just visits each item in the hash calling the
7591 above visitor.
7592 (completion_tracker::build_completion_result): Remove use of
7593 m_entries_vec, call recompute_lowest_common_denominator.
7594 * completer.h (completion_tracker::have_completions): Remove use
7595 of m_entries_vec.
7596 (completion_tracker::completion_hash_entry): Declare new class.
7597 (completion_tracker::recompute_lowest_common_denominator): Change
7598 function signature.
7599 (completion_tracker::recompute_lcd_visitor): Declare new function.
7600 (completion_tracker::m_entries_vec): Delete.
7601 (completion_tracker::m_entries_hash): Initialize to NULL.
7602 (completion_tracker::m_lowest_common_denominator_valid): New
7603 member variable.
7604 (completion_tracker::m_lowest_common_denominator_max_length): New
7605 member variable.
7606
7607 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7608
7609 * regformats/regdef.h: Put reg in gdb namespace.
7610
7611 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7612
7613 * i386-bsd-nat.c (gdb_ptrace): New.
7614 * (i386bsd_fetch_inferior_registers,
7615 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7616 * (i386bsd_fetch_inferior_registers,
7617 i386bsd_store_inferior_registers) Use gdb_ptrace.
7618
7619 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7620
7621 * amd64-bsd-nat.c (gdb_ptrace): New.
7622 * (amd64bsd_fetch_inferior_registers,
7623 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7624 * (amd64bsd_fetch_inferior_registers,
7625 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7626
7627 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7628
7629 * user-regs.c (user_reg::read): Rename to...
7630 (user_reg::xread): ...this.
7631 * (append_user_reg): Rename argument `read' to `xread'.
7632 * (user_reg_add_builtin): Likewise.
7633 * (user_reg_add): Likewise.
7634 * (value_of_user_reg): Likewise.
7635
7636 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7637
7638 * sparc-nat.c (gdb_ptrace): New.
7639 * sparc-nat.c (sparc_fetch_inferior_registers)
7640 (sparc_store_inferior_registers) Remove obsolete comment.
7641 * sparc-nat.c (sparc_fetch_inferior_registers)
7642 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7643 * sparc-nat.c (sparc_fetch_inferior_registers)
7644 (sparc_store_inferior_registers) Use gdb_ptrace.
7645
7646 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7647
7648 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7649 it to the ptrace call.
7650 * sh-nbsd-nat.c (store_registers): Likewise.
7651
7652 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7653
7654 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7655 nbsd_nat_target instead of inf_ptrace_target.
7656 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7657 nbsd_nat_target.
7658
7659 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7660
7661 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7662
7663 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7664
7665 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7666 <sys/sysctl.h>.
7667 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7668
7669 2020-03-17 Tom de Vries <tdevries@suse.de>
7670
7671 PR gdb/23710
7672 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7673 fields.
7674 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7675 fields.
7676 (process_imported_unit_die): Skip import of c++ CUs.
7677
7678 2020-03-16 Tom Tromey <tom@tromey.com>
7679
7680 * p-valprint.c (pascal_object_print_value): Initialize
7681 base_value.
7682
7683 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7684 Shahab Vahedi <shahab@synopsys.com>
7685
7686 * Makefile.in: Add arch/arc.o
7687 * configure.tgt: Likewise.
7688 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7689 (_initialize_arc_tdep): Don't initialize old target descriptions.
7690 (arc_read_description): New function to cache target descriptions.
7691 * arc-tdep.h (arc_read_description): Add proto type.
7692 * arch/arc.c: New file.
7693 * arch/arc.h: Likewise.
7694 * features/Makefile: Replace old target descriptions with new.
7695 * features/arc-arcompact.c: Remove.
7696 * features/arc-arcompact.xml: Likewise.
7697 * features/arc-v2.c: Likewise
7698 * features/arc-v2.xml: Likewise
7699 * features/arc/aux-arcompact.xml: New file.
7700 * features/arc/aux-v2.xml: Likewise.
7701 * features/arc/core-arcompact.xml: Likewise.
7702 * features/arc/core-v2.xml: Likewise.
7703 * features/arc/aux-arcompact.c: Generate.
7704 * features/arc/aux-v2.c: Likewise.
7705 * features/arc/core-arcompact.c: Likewise.
7706 * features/arc/core-v2.c: Likewise.
7707 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7708
7709 2020-03-16 Tom Tromey <tromey@adacore.com>
7710
7711 PR gdb/25663:
7712 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7713 putting value into bcache.
7714
7715 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7716
7717 PR gdb/21500
7718 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7719 to...
7720 (amd64_windows_init_abi_common): ... this. Don't set size of
7721 long type.
7722 (amd64_windows_init_abi): New function.
7723 (amd64_cygwin_init_abi): New function.
7724 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7725 the Cygwin OS ABI.
7726 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7727 comment.
7728
7729 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7730
7731 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7732 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7733 (pe_import_directory_entry): New struct type.
7734 (is_linked_with_cygwin_dll): New function.
7735 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7736 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7737 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7738
7739 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7740
7741 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7742 i386_cygwin_core_osabi_sniffer.
7743
7744 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7745
7746 * i386-cygwin-tdep.c: Rename to...
7747 * i386-windows-tdep.c: ... this.
7748 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7749 i386-windows-tdep.c.
7750 * configure.tgt: Likewise.
7751
7752 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7753
7754 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7755 * osabi.c (gdb_osabi_names): Add "Windows".
7756 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7757 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7758 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7759 i386_cygwin_osabi_sniffer.
7760 (_initialize_i386_cygwin_tdep): Register OS ABI
7761 GDB_OSABI_WINDOWS for i386.
7762 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7763 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7764 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7765 for x86-64.
7766 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7767 when the target matches '*-*-mingw*'.
7768
7769 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7770
7771 * defs.h (enum gdb_osabi): Move to...
7772 * osabi.h (enum gdb_osabi): ... here.
7773 * gdbarch.sh: Include osabi.h in gdbarch.h.
7774 * gdbarch.h: Re-generate.
7775
7776 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7777
7778 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7779 function.
7780 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7781
7782 2020-03-14 Tom Tromey <tom@tromey.com>
7783
7784 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7785 for C++.
7786 (c_type_print_modifier): Likewise. Add "language" parameter.
7787 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7788 (c_type_print_base_1): Update.
7789 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7790 constants.
7791 * type-stack.c (type_stack::insert): Handle tp_atomic and
7792 tp_restrict.
7793 (type_stack::follow_type_instance_flags): Likewise.
7794 (type_stack::follow_types): Likewise. Merge type-following code.
7795 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7796 (space_identifier, cv_with_space_id)
7797 (const_or_volatile_or_space_identifier_noopt)
7798 (const_or_volatile_or_space_identifier): Remove.
7799 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7800 rules.
7801 (ptr_operator, typebase): Update.
7802 (enum token_flag) <FLAG_C>: New constant.
7803 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7804 "_Atomic".
7805 (lex_one_token): Handle FLAG_C.
7806
7807 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7808
7809 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7810 it to the ptrace call.
7811 * m68k-bsd-nat.c (store_registers): Likewise.
7812
7813 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7814
7815 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7816 gdb_byte *.
7817 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7818 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7819 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7820
7821 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7822
7823 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7824 nbsd_nat_target instead of inf_ptrace_target.
7825 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7826 nbsd_nat_target.
7827
7828 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7829
7830 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7831 register_t.
7832
7833 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7834
7835 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7836 it to the ptrace call.
7837 * alpha-bsd-nat.c (store_registers): Likewise.
7838
7839 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7840
7841 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7842 includes.
7843 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7844 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7845 fill_fpregset): Likewise.
7846
7847 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7848
7849 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7850 nbsd_nat_target instead of inf_ptrace_target.
7851 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7852 nbsd_nat_target.
7853
7854 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7855
7856 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7857 register_t.
7858
7859 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7860
7861 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7862 it to the ptrace call.
7863 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7864 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7865 * arm-nbsd-nat.c (store_register): Likewise.
7866 * arm-nbsd-nat.c (store_regs): Likewise.
7867 * arm-nbsd-nat.c (store_fp_register): Likewise.
7868 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7869
7870 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7871
7872 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7873 nbsd_nat_target instead of inf_ptrace_target.
7874 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7875 nbsd_nat_target.
7876
7877 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7878
7879 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7880 it to the ptrace call.
7881 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7882
7883 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7884
7885 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7886 it to the ptrace call.
7887 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7888
7889 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7890
7891 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7892 gdb_byte *.
7893 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7894
7895 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7896
7897 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7898 instead of inf_ptrace_target.
7899 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7900 nbsd_nat_target.
7901
7902 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7903
7904 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7905 register_t.
7906
7907 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7908
7909 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7910 register_t.
7911
7912 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7913
7914 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7915 register_t.
7916
7917 2020-03-13 Tom Tromey <tom@tromey.com>
7918
7919 * value.h (val_print): Don't declare.
7920 * valprint.h (val_print_array_elements)
7921 (val_print_scalar_formatted, generic_val_print): Don't declare.
7922 * valprint.c (generic_val_print_array): Take a struct value.
7923 (generic_val_print_ptr, generic_val_print_memberptr)
7924 (generic_val_print_bool, generic_val_print_int)
7925 (generic_val_print_char, generic_val_print_complex)
7926 (generic_val_print): Remove.
7927 (generic_value_print): Update.
7928 (do_val_print): Remove unused parameters. Don't call
7929 la_val_print.
7930 (val_print): Remove.
7931 (common_val_print): Update. Don't call value_check_printable.
7932 (val_print_scalar_formatted, val_print_array_elements): Remove.
7933 * rust-lang.c (rust_val_print): Remove.
7934 (rust_language_defn): Update.
7935 * p-valprint.c (pascal_val_print): Remove.
7936 (pascal_value_print_inner): Update.
7937 (pascal_object_print_val_fields, pascal_object_print_val):
7938 Remove.
7939 (pascal_object_print_static_field): Update.
7940 * p-lang.h (pascal_val_print): Don't declare.
7941 * p-lang.c (pascal_language_defn): Update.
7942 * opencl-lang.c (opencl_language_defn): Update.
7943 * objc-lang.c (objc_language_defn): Update.
7944 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7945 * m2-lang.h (m2_val_print): Don't declare.
7946 * m2-lang.c (m2_language_defn): Update.
7947 * language.h (struct language_defn) <la_val_print>: Remove.
7948 * language.c (unk_lang_value_print_inner): Rename. Change
7949 argument types.
7950 (unknown_language_defn, auto_language_defn): Update.
7951 * go-valprint.c (go_val_print): Remove.
7952 * go-lang.h (go_val_print): Don't declare.
7953 * go-lang.c (go_language_defn): Update.
7954 * f-valprint.c (f_val_print): Remove.
7955 * f-lang.h (f_value_print): Don't declare.
7956 * f-lang.c (f_language_defn): Update.
7957 * d-valprint.c (d_val_print): Remove.
7958 * d-lang.h (d_value_print): Don't declare.
7959 * d-lang.c (d_language_defn): Update.
7960 * cp-valprint.c (cp_print_value_fields)
7961 (cp_print_value_fields_rtti, cp_print_value): Remove.
7962 (cp_print_static_field): Update.
7963 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7964 (c_val_print_struct, c_val_print_union, c_val_print_int)
7965 (c_val_print_memberptr, c_val_print): Remove.
7966 * c-lang.h (c_val_print_array, cp_print_value_fields)
7967 (cp_print_value_fields_rtti): Don't declare.
7968 * c-lang.c (c_language_defn, cplus_language_defn)
7969 (asm_language_defn, minimal_language_defn): Update.
7970 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7971 (ada_val_print_enum): Take a struct value.
7972 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7973 (ada_val_print): Remove.
7974 (ada_value_print_1): Update.
7975 (printable_val_type): Remove.
7976 * ada-lang.h (ada_val_print): Don't declare.
7977 * ada-lang.c (ada_language_defn): Update.
7978
7979 2020-03-13 Tom Tromey <tom@tromey.com>
7980
7981 * valprint.c (do_val_print): Update.
7982 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7983 a struct value.
7984 (value_to_value_object_no_release): Declare.
7985 * python/py-value.c (value_to_value_object_no_release): New
7986 function.
7987 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7988 struct value.
7989 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7990 function.
7991 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7992 a struct value.
7993 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7994 Declare.
7995 (gdbscm_apply_val_pretty_printer): Take a struct value.
7996 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7997 value.
7998 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7999 value.
8000 * extension-priv.h (struct extension_language_ops)
8001 <apply_val_pretty_printer>: Take a struct value.
8002 * cp-valprint.c (cp_print_value): Create a struct value.
8003 (cp_print_value): Update.
8004
8005 2020-03-13 Tom Tromey <tom@tromey.com>
8006
8007 * ada-valprint.c (print_field_values): Call common_val_print.
8008
8009 2020-03-13 Tom Tromey <tom@tromey.com>
8010
8011 * ada-valprint.c (val_print_packed_array_elements): Remove
8012 bitoffset and val parameters. Call common_val_print.
8013 (ada_val_print_string): Remove offset, address, and original_value
8014 parameters.
8015 (ada_val_print_array): Update.
8016 (ada_value_print_array): New function.
8017 (ada_value_print_1): Call it.
8018
8019 2020-03-13 Tom Tromey <tom@tromey.com>
8020
8021 * ada-valprint.c (ada_value_print): Use common_val_print.
8022
8023 2020-03-13 Tom Tromey <tom@tromey.com>
8024
8025 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8026
8027 2020-03-13 Tom Tromey <tom@tromey.com>
8028
8029 * ada-valprint.c (ada_value_print_num): New function.
8030 (ada_value_print_1): Use it.
8031
8032 2020-03-13 Tom Tromey <tom@tromey.com>
8033
8034 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8035
8036 2020-03-13 Tom Tromey <tom@tromey.com>
8037
8038 * ada-valprint.c (ada_value_print_ptr): New function.
8039 (ada_value_print_1): Use it.
8040
8041 2020-03-13 Tom Tromey <tom@tromey.com>
8042
8043 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8044 call common_val_print.
8045 (ada_val_print_1): Update.
8046 (ada_value_print_1): New function.
8047 (ada_value_print_inner): Rewrite.
8048
8049 2020-03-13 Tom Tromey <tom@tromey.com>
8050
8051 * cp-valprint.c (cp_print_value_fields): Update.
8052 (cp_print_value): New function.
8053
8054 2020-03-13 Tom Tromey <tom@tromey.com>
8055
8056 * m2-valprint.c (m2_value_print_inner): Use
8057 cp_print_value_fields.
8058 * cp-valprint.c (cp_print_value_fields): New function.
8059 * c-valprint.c (c_value_print_struct): New function.
8060 (c_value_print_inner): Use c_value_print_struct.
8061 * c-lang.h (cp_print_value_fields): Declare.
8062
8063 2020-03-13 Tom Tromey <tom@tromey.com>
8064
8065 * c-valprint.c (c_value_print_array): New function.
8066 (c_value_print_inner): Use it.
8067
8068 2020-03-13 Tom Tromey <tom@tromey.com>
8069
8070 * c-valprint.c (c_value_print_memberptr): New function.
8071 (c_value_print_inner): Use it.
8072
8073 2020-03-13 Tom Tromey <tom@tromey.com>
8074
8075 * c-valprint.c (c_value_print_int): New function.
8076 (c_value_print_inner): Use it.
8077
8078 2020-03-13 Tom Tromey <tom@tromey.com>
8079
8080 * c-valprint.c (c_value_print_ptr): New function.
8081 (c_value_print_inner): Use it.
8082
8083 2020-03-13 Tom Tromey <tom@tromey.com>
8084
8085 * c-valprint.c (c_value_print_inner): Rewrite.
8086
8087 2020-03-13 Tom Tromey <tom@tromey.com>
8088
8089 * valprint.c (generic_value_print_complex): New function.
8090 (generic_value_print): Use it.
8091
8092 2020-03-13 Tom Tromey <tom@tromey.com>
8093
8094 * valprint.c (generic_val_print_float): Don't call
8095 val_print_scalar_formatted.
8096 (generic_val_print, generic_value_print): Update.
8097
8098 2020-03-13 Tom Tromey <tom@tromey.com>
8099
8100 * valprint.c (generic_value_print_char): New function
8101 (generic_value_print): Use it.
8102
8103 2020-03-13 Tom Tromey <tom@tromey.com>
8104
8105 * valprint.c (generic_value_print_int): New function.
8106 (generic_value_print): Use it.
8107
8108 2020-03-13 Tom Tromey <tom@tromey.com>
8109
8110 * valprint.c (generic_value_print_bool): New function.
8111 (generic_value_print): Use it.
8112
8113 2020-03-13 Tom Tromey <tom@tromey.com>
8114
8115 * valprint.c (generic_val_print_func): Simplify.
8116 (generic_val_print, generic_value_print): Update.
8117
8118 2020-03-13 Tom Tromey <tom@tromey.com>
8119
8120 * valprint.c (generic_val_print_flags): Remove.
8121 (generic_val_print, generic_value_print): Update.
8122 (val_print_type_code_flags): Add original_value parameter.
8123
8124 2020-03-13 Tom Tromey <tom@tromey.com>
8125
8126 * valprint.c (generic_val_print): Update.
8127 (generic_value_print): Update.
8128 * valprint.c (generic_val_print_enum): Don't call
8129 val_print_scalar_formatted.
8130
8131 2020-03-13 Tom Tromey <tom@tromey.com>
8132
8133 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8134 * valprint.c (generic_value_print_ptr): New function.
8135
8136 2020-03-13 Tom Tromey <tom@tromey.com>
8137
8138 * valprint.c (generic_value_print): Rewrite.
8139
8140 2020-03-13 Tom Tromey <tom@tromey.com>
8141
8142 * p-valprint.c (pascal_object_print_value_fields)
8143 (pascal_object_print_value): New functions.
8144
8145 2020-03-13 Tom Tromey <tom@tromey.com>
8146
8147 * p-valprint.c (pascal_value_print_inner): Rewrite.
8148
8149 2020-03-13 Tom Tromey <tom@tromey.com>
8150
8151 * f-valprint.c (f_value_print_innner): Rewrite.
8152
8153 2020-03-13 Tom Tromey <tom@tromey.com>
8154
8155 * m2-valprint.c (m2_print_unbounded_array): New overload.
8156 (m2_print_unbounded_array): Update.
8157 (m2_print_array_contents): Take a struct value.
8158 (m2_value_print_inner): Rewrite.
8159
8160 2020-03-13 Tom Tromey <tom@tromey.com>
8161
8162 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8163 (d_value_print_inner): New function.
8164 * d-lang.h (d_value_print_inner): Declare.
8165 * d-lang.c (d_language_defn): Use d_value_print_inner.
8166
8167 2020-03-13 Tom Tromey <tom@tromey.com>
8168
8169 * go-valprint.c (go_value_print_inner): New function.
8170 * go-lang.h (go_value_print_inner): Declare.
8171 * go-lang.c (go_language_defn): Use go_value_print_inner.
8172
8173 2020-03-13 Tom Tromey <tom@tromey.com>
8174
8175 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8176 API.
8177 (rust_val_print): Rewrite.
8178 (rust_value_print_inner): New function, from rust_val_print.
8179 (rust_language_defn): Use rust_value_print_inner.
8180
8181 2020-03-13 Tom Tromey <tom@tromey.com>
8182
8183 * ada-valprint.c (ada_value_print_inner): New function.
8184 * ada-lang.h (ada_value_print_inner): Declare.
8185 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8186
8187 2020-03-13 Tom Tromey <tom@tromey.com>
8188
8189 * f-valprint.c (f_value_print_innner): New function.
8190 * f-lang.h (f_value_print_innner): Declare.
8191 * f-lang.c (f_language_defn): Use f_value_print_innner.
8192
8193 2020-03-13 Tom Tromey <tom@tromey.com>
8194
8195 * p-valprint.c (pascal_value_print_inner): New function.
8196 * p-lang.h (pascal_value_print_inner): Declare.
8197 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8198
8199 2020-03-13 Tom Tromey <tom@tromey.com>
8200
8201 * m2-valprint.c (m2_value_print_inner): New function.
8202 * m2-lang.h (m2_value_print_inner): Declare.
8203 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8204
8205 2020-03-13 Tom Tromey <tom@tromey.com>
8206
8207 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8208 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8209 * c-valprint.c (c_value_print_inner): New function.
8210 * c-lang.h (c_value_print_inner): Declare.
8211 * c-lang.c (c_language_defn, cplus_language_defn)
8212 (asm_language_defn, minimal_language_defn): Use
8213 c_value_print_inner.
8214
8215 2020-03-13 Tom Tromey <tom@tromey.com>
8216
8217 * p-valprint.c (pascal_object_print_value_fields): Now static.
8218 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8219
8220 2020-03-13 Tom Tromey <tom@tromey.com>
8221
8222 * c-valprint.c (c_val_print_array): Simplify.
8223
8224 2020-03-13 Tom Tromey <tom@tromey.com>
8225
8226 * valprint.c (value_print_array_elements): New function.
8227 * valprint.h (value_print_array_elements): Declare.
8228
8229 2020-03-13 Tom Tromey <tom@tromey.com>
8230
8231 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8232 * mips-tdep.c (mips_print_register): Use
8233 value_print_scalar_formatted.
8234
8235 2020-03-13 Tom Tromey <tom@tromey.com>
8236
8237 * valprint.h (value_print_scalar_formatted): Declare.
8238 * valprint.c (value_print_scalar_formatted): New function.
8239
8240 2020-03-13 Tom Tromey <tom@tromey.com>
8241
8242 * valprint.h (generic_value_print): Declare.
8243 * valprint.c (generic_value_print): New function.
8244
8245 2020-03-13 Tom Tromey <tom@tromey.com>
8246
8247 * valprint.c (do_val_print): Call la_value_print_inner, if
8248 available.
8249 * rust-lang.c (rust_language_defn): Update.
8250 * p-lang.c (pascal_language_defn): Update.
8251 * opencl-lang.c (opencl_language_defn): Update.
8252 * objc-lang.c (objc_language_defn): Update.
8253 * m2-lang.c (m2_language_defn): Update.
8254 * language.h (struct language_defn) <la_value_print_inner>: New
8255 member.
8256 * language.c (unknown_language_defn, auto_language_defn): Update.
8257 * go-lang.c (go_language_defn): Update.
8258 * f-lang.c (f_language_defn): Update.
8259 * d-lang.c (d_language_defn): Update.
8260 * c-lang.c (c_language_defn, cplus_language_defn)
8261 (asm_language_defn, minimal_language_defn): Update.
8262 * ada-lang.c (ada_language_defn): Update.
8263
8264 2020-03-13 Tom Tromey <tom@tromey.com>
8265
8266 * c-valprint.c (c_value_print): Use common_val_print.
8267
8268 2020-03-13 Tom Tromey <tom@tromey.com>
8269
8270 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8271
8272 2020-03-13 Tom Tromey <tom@tromey.com>
8273
8274 * f-valprint.c (f77_print_array_1, f_val_print): Use
8275 common_val_print.
8276
8277 2020-03-13 Tom Tromey <tom@tromey.com>
8278
8279 * riscv-tdep.c (riscv_print_one_register_info): Use
8280 common_val_print.
8281
8282 2020-03-13 Tom Tromey <tom@tromey.com>
8283
8284 * mi/mi-main.c (output_register): Use common_val_print.
8285
8286 2020-03-13 Tom Tromey <tom@tromey.com>
8287
8288 * infcmd.c (default_print_one_register_info): Use
8289 common_val_print.
8290
8291 2020-03-13 Tom Tromey <tom@tromey.com>
8292
8293 * valprint.h (common_val_print_checked): Declare.
8294 * valprint.c (common_val_print_checked): New function.
8295 * stack.c (print_frame_arg): Use common_val_print_checked.
8296
8297 2020-03-13 Tom Tromey <tom@tromey.com>
8298
8299 * valprint.c (do_val_print): New function, from val_print.
8300 (val_print): Use do_val_print.
8301 (common_val_print): Use do_val_print.
8302
8303 2020-03-13 Tom Tromey <tom@tromey.com>
8304
8305 * valprint.c (value_print): Use scoped_value_mark.
8306
8307 2020-03-13 Tom de Vries <tdevries@suse.de>
8308
8309 PR symtab/25646
8310 * psymtab.c (partial_symtab::partial_symtab): Don't set
8311 globals_offset and statics_offset. Push element onto
8312 current_global_psymbols and current_static_psymbols stacks.
8313 (concat): New function.
8314 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8315 element from current_global_psymbols and current_static_psymbols
8316 stacks. Concat popped elements to global_psymbols and
8317 static_symbols.
8318 (add_psymbol_to_list): Use current_global_psymbols and
8319 current_static_psymbols stacks.
8320 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8321 current_static_psymbols fields.
8322
8323 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8324
8325 * corelow.c (sniff_core_bfd): Remove.
8326 (class core_target) <m_core_vec>: Remove.
8327 (core_target::core_target): Update.
8328 (core_file_fns): Remove.
8329 (deprecated_add_core_fns): Remove.
8330 (default_core_sniffer): Remove.
8331 (sniff_core_bfd): Remove.
8332 (default_check_format): Remove.
8333 (gdb_check_format): Remove.
8334 (core_target_open): Update.
8335 (core_target::get_core_register_section): Update.
8336 (get_core_registers_cb): Update.
8337 (core_target::fetch_registers): Update.
8338 * gdbcore.h (struct core_fns): Remove.
8339 (deprecated_add_core_fns): Remove.
8340 (default_core_sniffer): Remove.
8341 (default_check_format): Remove.
8342
8343 2020-03-12 Tom Tromey <tom@tromey.com>
8344
8345 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8346 CORE_ADDR.
8347 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8348
8349 2020-03-12 Tom Tromey <tom@tromey.com>
8350
8351 * remote.c (remote_target::download_tracepoint)
8352 (remote_target::enable_tracepoint)
8353 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8354 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8355 sprintf_vma.
8356
8357 2020-03-12 Tom Tromey <tom@tromey.com>
8358
8359 * symfile-mem.c: Update CORE_ADDR size assert.
8360
8361 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8362
8363 * selftest.m4: Move to gdbsupport/.
8364 * acinclude.m4: Update path to selftest.m4.
8365
8366 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8367
8368 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8369 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8370 gdbarch-selfselftests.c and selftest-arch.c.
8371 (SUBDIR_UNITTESTS_OBS): Rename to...
8372 (SELFTESTS_OBS): ... this.
8373 (COMMON_SFILES): Remove disasm-selftests.c and
8374 gdbarch-selftests.c.
8375 * configure.ac: Don't add selftest-arch.{c,o} to
8376 CONFIG_{SRCS,OBS}.
8377 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8378 preprocessor conditions.
8379
8380 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8381
8382 * configure.ac: Don't source bfd/development.sh.
8383 * selftest.m4: Modify comment.
8384 * configure: Re-generate.
8385
8386 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8387
8388 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8389 not "true" or "false".
8390 * configure: Re-generate.
8391
8392 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8393
8394 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8395 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8396 renamed to arm_nbsd_supply_gregset.
8397 (fetch_register): Update to call arm_nbsd_supply_gregset.
8398 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8399 (arm_netbsd_nat_target::fetch_registers): Update.
8400 (fetch_elfcore_registers): Removed.
8401 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8402 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8403 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8404 not require NetBSD system headers.
8405 (arm_nbsd_regset): New struct.
8406 (arm_nbsd_iterate_over_regset_sections): New function.
8407 (arm_netbsd_init_abi_common): Updated to call
8408 set_gdbarch_iterate_over_regset_sections.
8409 * arm-nbsd-tdep.h: New file.
8410
8411 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8412
8413 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8414 recursion.
8415
8416 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8417
8418 * configure: Re-generate.
8419
8420 2020-03-11 Tom Tromey <tromey@adacore.com>
8421
8422 * ada-typeprint.c (print_choices): Fix comment.
8423
8424 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8425
8426 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8427 previous item in the list, when the list has no items.
8428
8429 2020-03-11 Tom de Vries <tdevries@suse.de>
8430
8431 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8432 PROP_LOCLIST handling code.
8433
8434 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8435
8436 * buildsym-legacy.c (record_line): Pass extra parameter to
8437 record_line.
8438 * buildsym.c (buildsym_compunit::record_line): Take an extra
8439 parameter, reduce duplication in the line table, and record the
8440 is_stmt flag in the line table.
8441 * buildsym.h (buildsym_compunit::record_line): Add extra
8442 parameter.
8443 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8444 non-statement lines.
8445 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8446 this to the symtab builder.
8447 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8448 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8449 through to dwarf_record_line_1.
8450 * infrun.c (process_event_stop_test): When stepping, don't stop at
8451 a non-statement instruction, and only refresh the step info when
8452 we land in the middle of a line's range. Also add an extra
8453 comment.
8454 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8455 field.
8456 * record-btrace.c (btrace_find_line_range): Only record lines
8457 marked as is-statement.
8458 * stack.c (frame_show_address): Show the frame address if we are
8459 in a non-statement sal.
8460 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8461 (maintenance_print_one_line_table): Print a header for the is_stmt
8462 column, and include is_stmt information in the output.
8463 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8464 preference to non-statements.
8465 (find_pcs_for_symtab_line): Prefer is-statement entries.
8466 (find_line_common): Likewise.
8467 * symtab.h (struct linetable_entry): Add is_stmt field.
8468 (struct symtab_and_line): Likewise.
8469 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8470 arranging the line table.
8471
8472 2020-03-07 Tom de Vries <tdevries@suse.de>
8473
8474 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8475 DIE.
8476
8477 2020-03-07 Tom Tromey <tom@tromey.com>
8478
8479 * valops.c (value_literal_complex): Remove obsolete comment.
8480 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8481 comment.
8482
8483 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8484
8485 * infrun.h: Forward-declare thread_info.
8486 (set_step_info): Add thread_info parameter, add doc.
8487 * infrun.c (set_step_info): Add thread_info parameter, move doc
8488 to header.
8489 * infrun.c (process_event_stop_test): Pass thread to
8490 set_step_info call.
8491 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8492 set_step_info.
8493 (prepare_one_step): Add thread_info parameter, pass it to
8494 set_step_frame and prepare_one_step (recursive) call.
8495 (step_1): Pass thread to prepare_one_step call.
8496 (step_command_fsm::should_stop): Pass thread to
8497 prepare_one_step.
8498 (until_next_fsm): Pass thread to set_step_frame call.
8499 (finish_command): Pass thread to set_step_info call.
8500
8501 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8502
8503 * windows-tdep.c (windows_solib_create_inferior_hook):
8504 Check if inferior is running.
8505
8506 2020-03-06 Tom de Vries <tdevries@suse.de>
8507
8508 * NEWS: Fix "the the".
8509 * ctfread.c: Same.
8510
8511 2020-03-06 Tom de Vries <tdevries@suse.de>
8512
8513 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8514
8515 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8516
8517 * .dir-locals.el: Add a comment referencing the other copies of
8518 this file.
8519
8520 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8521
8522 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8523 psargs.
8524
8525 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8526
8527 * .gitattributes: New file.
8528
8529 2020-03-04 Tom Tromey <tom@tromey.com>
8530
8531 * symmisc.c (print_symbol_bcache_statistics)
8532 (print_objfile_statistics): Update.
8533 * symfile.c (allocate_symtab): Use intern.
8534 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8535 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8536 macro_cache>: Remove.
8537 <string_cache>: New member.
8538 (struct objfile) <intern>: New methods.
8539 * elfread.c (elf_symtab_read): Use intern.
8540 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8541 (dwarf2_compute_name, dwarf2_physname)
8542 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8543 names.
8544 (guess_partial_die_structure_name): Update.
8545 (partial_die_info::fixup): Intern name.
8546 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8547 name.
8548 (dwarf2_name): Intern name. Update.
8549 * buildsym.c (buildsym_compunit::get_macro_table): Use
8550 string_cache.
8551
8552 2020-03-04 Tom Tromey <tom@tromey.com>
8553
8554 * jit.c (bfd_open_from_target_memory): Make "target" const.
8555 * corefile.c (gnutarget): Now const.
8556 * gdbcore.h (gnutarget): Now const.
8557
8558 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8559
8560 * NEWS: Mention support for WOW64 processes.
8561 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8562 (amd64_windows_segment_register_p): Remove static.
8563 (_initialize_amd64_windows_nat): Update.
8564 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8565 * i386-windows-nat.c (context_offset): Update.
8566 (i386_mappings): Rename and remove static.
8567 (i386_windows_segment_register_p): Remove static.
8568 (_initialize_i386_windows_nat): Update.
8569 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8570 (STATUS_WX86_SINGLE_STEP): New macro.
8571 (EnumProcessModulesEx): New macro.
8572 (Wow64SuspendThread): New macro.
8573 (Wow64GetThreadContext): New macro.
8574 (Wow64SetThreadContext): New macro.
8575 (Wow64GetThreadSelectorEntry): New macro.
8576 (windows_set_context_register_offsets): Add static.
8577 (windows_set_segment_register_p): Likewise.
8578 (windows_add_thread): Adapt for WOW64 processes.
8579 (windows_fetch_one_register): Likewise.
8580 (windows_nat_target::fetch_registers): Likewise.
8581 (windows_store_one_register): Likewise.
8582 (display_selector): Likewise.
8583 (display_selectors): Likewise.
8584 (handle_exception): Likewise.
8585 (windows_continue): Likewise.
8586 (windows_nat_target::resume): Likewise.
8587 (windows_add_all_dlls): Likewise.
8588 (do_initial_windows_stuff): Likewise.
8589 (windows_nat_target::attach): Likewise.
8590 (windows_get_exec_module_filename): Likewise.
8591 (windows_nat_target::create_inferior): Likewise.
8592 (windows_xfer_siginfo): Likewise.
8593 (_initialize_loadable): Initialize Wow64SuspendThread,
8594 Wow64GetThreadContext, Wow64SetThreadContext,
8595 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8596 * windows-nat.h (windows_set_context_register_offsets):
8597 Remove declaration.
8598 (windows_set_segment_register_p): Likewise.
8599 (i386_windows_segment_register_p): Add declaration.
8600 (amd64_windows_segment_register_p): Likewise.
8601
8602 2020-03-04 Luis Machado <luis.machado@linaro.org>
8603
8604 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8605 in "info registers" for AArch64/ARM.
8606
8607 The change caused "info registers" to not print GPR's.
8608
8609 gdb/ChangeLog:
8610
8611 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8612
8613 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8614 when reg->group is empty and reggroup is not.
8615
8616 2020-03-03 Tom Tromey <tromey@adacore.com>
8617
8618 * dwarf2/frame.c (struct dwarf2_frame_cache)
8619 <checked_tailcall_bottom, entry_cfa_sp_offset,
8620 entry_cfa_sp_offset_p>: Remove members.
8621 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8622 (dwarf2_frame_prev_register): Don't call
8623 dwarf2_tailcall_sniffer_first.
8624 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8625 * frame-unwind.c (add_unwinder): New fuction.
8626 (frame_unwind_init): Use it. Add tailcall unwinder.
8627
8628 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8629 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8630
8631 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8632 value should be printed as true.
8633
8634 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8635
8636 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8637 (windows_init_abi): Set and use windows_so_ops.
8638
8639 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8640
8641 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8642 when verifying if dealing with a convenience variable.
8643
8644 2020-03-03 Luis Machado <luis.machado@linaro.org>
8645
8646 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8647
8648 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8649
8650 * infrun.c (gdbarch_supports_displaced_stepping): New.
8651 (use_displaced_stepping): Break up conditions in smaller pieces.
8652 Use gdbarch_supports_displaced_stepping.
8653 (displaced_step_prepare_throw): Use
8654 gdbarch_supports_displaced_stepping.
8655
8656 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8657
8658 * NEWS: Mention new behaviour of the history filename.
8659 * top.c (write_history_p): Add comment.
8660 (show_write_history_p): Add header comment, give a different
8661 message when history writing is on, but the history filename is
8662 empty.
8663 (history_filename): Add comment.
8664 (history_filename_empty): New function.
8665 (show_history_filename): Add header comment, give a different
8666 message when the filename is empty.
8667 (init_history): Compare history_filename against nullptr, and only
8668 read history if the filename is not empty.
8669 (set_history_filename): Add header comment, and only make
8670 non-empty filenames absolute.
8671 (init_main): Make the filename argument to 'set history filename'
8672 optional.
8673
8674 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8675
8676 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8677 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8678 (fetch_fp_register): Update.
8679 (fetch_fp_regs): Update.
8680 (store_fp_register): Update.
8681 (store_fp_regs): Update.
8682 (arm_netbsd_nat_target::read_description): New function.
8683 (fetch_elfcore_registers): Update.
8684
8685 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8686
8687 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8688 general_thread if the stop reply is missing a thread-id.
8689 (remote_target::process_stop_reply): Use the first non-exited
8690 thread if the target didn't pass a thread-id.
8691 * infrun.c (do_target_wait): Move call to
8692 switch_to_inferior_no_thread to ....
8693 (do_target_wait_1): ... here.
8694
8695 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8696
8697 * debuginfod-support.c: Include defs.h first.
8698
8699 2020-02-28 Tom de Vries <tdevries@suse.de>
8700
8701 * symfile.c (set_initial_language): Use default language for lookup.
8702
8703 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8704
8705 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8706 reader variable, pass `this` to read_cutu_die_from_dwo.
8707
8708 2020-02-27 Aaron Merey <amerey@redhat.com>
8709
8710 * source.c (open_source_file): Check for nullptr when computing
8711 srcpath.
8712
8713 2020-02-27 Tom Tromey <tromey@adacore.com>
8714
8715 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8716 member.
8717 (dwarf2_add_field): Don't update nfields.
8718 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8719
8720 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8721
8722 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8723 abs.
8724
8725 2020-02-26 Tom Tromey <tom@tromey.com>
8726
8727 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8728 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8729 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8730 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8731 per_cu_data.
8732
8733 2020-02-26 Tom Tromey <tom@tromey.com>
8734
8735 * dwarf2/index-write.c (psym_index_map): Change type.
8736 (add_address_entry_worker, write_one_signatured_type)
8737 (recursively_count_psymbols, recursively_write_psymbols)
8738 (class debug_names, psyms_seen_size, write_gdbindex)
8739 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8740
8741 2020-02-26 Aaron Merey <amerey@redhat.com>
8742
8743 * Makefile.in: Handle optional debuginfod support.
8744 * NEWS: Update.
8745 * README: Add --with-debuginfod summary.
8746 * config.in: Regenerate.
8747 * configure: Regenerate.
8748 * configure.ac: Handle optional debuginfod support.
8749 * debuginfod-support.c: debuginfod helper functions.
8750 * debuginfod-support.h: Ditto.
8751 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8752 summary.
8753 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8754 when a dwz file cannot be found.
8755 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8756 debuginfo file cannot be found.
8757 * source.c (open_source_file): Query debuginfod servers when a
8758 source file cannot be found.
8759 * top.c (print_gdb_configuration): Include
8760 --{with,without}-debuginfod in the output.
8761
8762 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8763
8764 * thread.c (thr_try_catch_cmd): Print thread name.
8765
8766 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8767
8768 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8769 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8770 dwarf2_fetch_die_type_sect_off): Move to...
8771 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8772 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8773 dwarf2_fetch_die_type_sect_off): ... here.
8774 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8775 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8776 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8777
8778 2020-02-26 Tom de Vries <tdevries@suse.de>
8779
8780 PR gdb/25603
8781 * symfile.c (set_initial_language): Exit-early if
8782 language_mode == language_mode_manual.
8783
8784 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8785
8786 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8787 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8788 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8789
8790 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8791
8792 * gdbtypes.c (create_array_type_with_stride): Handle negative
8793 array strides.
8794 * valarith.c (value_subscripted_rvalue): Likewise.
8795
8796 2020-02-25 Luis Machado <luis.machado@linaro.org>
8797
8798 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8799
8800 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8801
8802 * loc.h (dwarf2_get_die_type): Move to...
8803 * read.h (dwarf2_get_die_type): ... here.
8804 * read.c (dwarf2_get_die_type): Move doc to header.
8805
8806 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8807
8808 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8809 'gnulib/Makefile.in' to the list.
8810
8811 2020-02-24 Tom Tromey <tom@tromey.com>
8812
8813 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8814 Remove.
8815 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8816 XOBNEWVEC.
8817
8818 2020-02-24 Tom Tromey <tom@tromey.com>
8819
8820 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8821 New method.
8822 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8823 (dw2_do_instantiate_symtab, dw2_get_file_names)
8824 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8825
8826 2020-02-24 Tom Tromey <tom@tromey.com>
8827
8828 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8829 make_scoped_restore.
8830 (dwarf2_psymtab::read_symtab): Don't clear
8831 reading_partial_symbols.
8832
8833 2020-02-24 Tom de Vries <tdevries@suse.de>
8834
8835 PR gdb/25592
8836 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8837
8838 2020-02-24 Tom de Vries <tdevries@suse.de>
8839
8840 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8841 commands layout next/prev/regs.
8842
8843 2020-02-22 Tom Tromey <tom@tromey.com>
8844
8845 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8846 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8847
8848 2020-02-22 Tom Tromey <tom@tromey.com>
8849
8850 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8851
8852 2020-02-22 Tom Tromey <tom@tromey.com>
8853
8854 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8855 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8856 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8857 * tui/tui.c (_initialize_tui): Add usage text.
8858
8859 2020-02-22 Tom Tromey <tom@tromey.com>
8860
8861 * tui/tui-win.c (tui_set_focus_command)
8862 (tui_set_win_height_command): Use error_no_arg.
8863 (_initialize_tui_win): Update help text.
8864 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8865
8866 2020-02-22 Tom Tromey <tom@tromey.com>
8867
8868 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8869 * tui/tui-disasm.h (struct tui_disasm_window)
8870 <display_start_addr>: Declare.
8871 * tui/tui-source.h (struct tui_source_window)
8872 <display_start_addr>: Declare.
8873 * tui/tui-winsource.h (struct tui_source_window_base)
8874 <show_source_line, display_start_addr>: New methods.
8875 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8876 Rename and move to protected section.
8877 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8878 (tui_source_window_base::do_erase_source_content): Update.
8879 (tui_source_window_base::show_source_line): Now a method.
8880 (tui_source_window_base::show_source_content)
8881 (tui_source_window_base::tui_source_window_base)
8882 (tui_source_window_base::rerender)
8883 (tui_source_window_base::refill)
8884 (tui_source_window_base::do_scroll_horizontal)
8885 (tui_source_window_base::set_is_exec_point_at)
8886 (tui_source_window_base::update_breakpoint_info)
8887 (tui_source_window_base::update_exec_info): Update.
8888 * tui/tui-source.c (tui_source_window::set_contents)
8889 (tui_source_window::showing_source_p)
8890 (tui_source_window::do_scroll_vertical)
8891 (tui_source_window::location_matches_p)
8892 (tui_source_window::line_is_displayed): Update.
8893 (tui_source_window::display_start_addr): New method.
8894 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8895 (tui_disasm_window::do_scroll_vertical)
8896 (tui_disasm_window::location_matches_p): Update.
8897 (tui_disasm_window::display_start_addr): New method.
8898
8899 2020-02-22 Tom Tromey <tom@tromey.com>
8900
8901 * NEWS: Add entry for gdb.register_window_type.
8902 * tui/tui-layout.h (window_factory): New typedef.
8903 (tui_register_window): Declare.
8904 * tui/tui-layout.c (saved_tui_windows): New global.
8905 (tui_apply_current_layout): Use it.
8906 (tui_register_window): New function.
8907 * python/python.c (do_start_initialization): Call
8908 gdbpy_initialize_tui.
8909 (python_GdbMethods): Add "register_window_type" function.
8910 * python/python-internal.h (gdbpy_register_tui_window)
8911 (gdbpy_initialize_tui): Declare.
8912 * python/py-tui.c: New file.
8913 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8914
8915 2020-02-22 Tom Tromey <tom@tromey.com>
8916
8917 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8918
8919 2020-02-22 Tom Tromey <tom@tromey.com>
8920
8921 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8922 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8923 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8924 (tui_set_win_focus_to): Move from tui-win.c.
8925
8926 2020-02-22 Tom Tromey <tom@tromey.com>
8927
8928 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8929 functions.
8930 (known_window_types): New global.
8931 (tui_get_window_by_name): Reimplement.
8932 (initialize_known_windows): New function.
8933 (validate_window_name): Rewrite.
8934 (_initialize_tui_layout): Call initialize_known_windows.
8935
8936 2020-02-22 Tom Tromey <tom@tromey.com>
8937
8938 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8939 Remove constants.
8940 * tui/tui-winsource.h (struct tui_source_window_base)
8941 <tui_source_window_base>: Remove parameter.
8942 * tui/tui-winsource.c
8943 (tui_source_window_base::tui_source_window_base): Remove
8944 parameter.
8945 (tui_source_window_base::refill): Update.
8946 * tui/tui-stack.h (struct tui_locator_window)
8947 <tui_locator_window>: Update.
8948 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8949 Default the constructor.
8950 * tui/tui-regs.h (struct tui_data_item_window)
8951 <tui_data_item_window>: Default the constructor.
8952 (struct tui_data_window) <tui_data_window>: Likewise.
8953 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8954 Default the constructor.
8955 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8956 Default the constructor.
8957 <type>: Remove.
8958 (struct tui_win_info) <tui_win_info>: Default the constructor.
8959 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8960 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8961 Default the constructor.
8962
8963 2020-02-22 Tom Tromey <tom@tromey.com>
8964
8965 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8966 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8967 * tui/tui-win.c (tui_resize_all): Don't call
8968 tui_delete_invisible_windows.
8969 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8970 done.
8971 (tui_set_layout): Update.
8972 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8973 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8974 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8975
8976 2020-02-22 Tom Tromey <tom@tromey.com>
8977
8978 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8979 correctly.
8980
8981 2020-02-22 Tom Tromey <tom@tromey.com>
8982
8983 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8984
8985 2020-02-22 Tom Tromey <tom@tromey.com>
8986
8987 * tui/tui-winsource.h (struct tui_source_window_iterator)
8988 <inner_iterator>: New etytypedef.
8989 <tui_source_window_iterator>: Take "end" parameter.
8990 <tui_source_window_iterator>: Take iterator.
8991 <operator*, advance>: Update.
8992 <m_iter>: Change type.
8993 <m_end>: New field.
8994 (struct tui_source_windows) <begin, end>: Update.
8995 * tui/tui-layout.c (tui_windows): New global.
8996 (tui_apply_current_layout): Clear tui_windows.
8997 (tui_layout_window::apply): Update tui_windows.
8998 * tui/tui-data.h (tui_windows): Declare.
8999 (all_tui_windows): Now inline function.
9000 (class tui_window_iterator, struct all_tui_windows): Remove.
9001
9002 2020-02-22 Tom Tromey <tom@tromey.com>
9003
9004 PR tui/17850:
9005 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9006 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9007 "height" argument.
9008 (class tui_layout_window) <get_sizes>: Likewise.
9009 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9010 argument.
9011 <get_sizes>: Add "height" argument.
9012 <m_vertical>: New field.
9013 * tui/tui-layout.c (tui_layout_split::clone): Update.
9014 (tui_layout_split::get_sizes): Add "height" argument.
9015 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9016 (tui_new_layout_command): Parse "-horizontal".
9017 (_initialize_tui_layout): Update help string.
9018 (tui_layout_split::specification): Add "-horizontal" when needed.
9019 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9020 argument.
9021 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9022 New methods.
9023
9024 2020-02-22 Tom Tromey <tom@tromey.com>
9025
9026 * tui/tui-layout.h (enum tui_adjust_result): New.
9027 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9028 (class tui_layout_window) <adjust_size>: Return
9029 tui_adjust_result. Rewrite.
9030 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9031 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9032
9033 2020-02-22 Tom Tromey <tom@tromey.com>
9034
9035 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9036 parameter and return types.
9037 (class tui_layout_base) <specification>: Add "depth".
9038 (class tui_layout_window) <specification>: Add "depth".
9039 (class tui_layout_split) <specification>: Add "depth".
9040 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9041 and return types.
9042 (tui_new_layout_command): Parse sub-layouts.
9043 (_initialize_tui_layout): Update help string.
9044 (tui_layout_window::specification): Add "depth".
9045 (add_layout_command): Update.
9046
9047 2020-02-22 Tom Tromey <tom@tromey.com>
9048
9049 * NEWS: Add "tui new-layout" item.
9050 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9051 Add new-layout command to help text.
9052 (validate_window_name): New function.
9053 (tui_new_layout_command): New function.
9054 (_initialize_tui_layout): Register "new-layout".
9055 (tui_layout_window::specification): New method.
9056 (tui_layout_window::specification): New method.
9057 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9058 method.
9059 (class tui_layout_window) <specification>: New method.
9060 (class tui_layout_split) <specification>: New method.
9061
9062 2020-02-22 Tom Tromey <tom@tromey.com>
9063
9064 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9065 * tui/tui-win.c (window_name_completer): Update comment.
9066 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9067 Declare method.
9068 (class tui_layout_window) <replace_window>: Likewise.
9069 (class tui_layout_split) <replace_window>: Likewise.
9070 (tui_set_layout): Don't declare.
9071 (tui_set_initial_layout): Declare function.
9072 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9073 (asm_regs_layout): New globals.
9074 (tui_current_layout, show_layout): Remove.
9075 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9076 (find_layout, tui_apply_layout): New function.
9077 (layout_completer): Remove.
9078 (tui_next_layout): Reimplement.
9079 (tui_next_layout_command): New function.
9080 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9081 (tui_regs_layout): Reimplement.
9082 (tui_regs_layout_command): New function.
9083 (extract_display_start_addr): Rewrite.
9084 (next_layout, prev_layout): Remove.
9085 (tui_layout_window::replace_window): New method.
9086 (tui_layout_split::replace_window): New method.
9087 (destroy_layout): New function.
9088 (layout_list): New global.
9089 (add_layout_command): New function.
9090 (initialize_layouts): Update.
9091 (tui_layout_command): New function.
9092 (_initialize_tui_layout): Install "layout" commands.
9093 * tui/tui-data.h (enum tui_layout_type): Remove.
9094 (tui_current_layout): Don't declare.
9095
9096 2020-02-22 Tom Tromey <tom@tromey.com>
9097
9098 * tui/tui-regs.c (tui_reg_layout): Remove.
9099 (tui_reg_command): Use tui_regs_layout.
9100 * tui/tui-layout.h (tui_reg_command): Declare.
9101 * tui/tui-layout.c (tui_reg_command): New function.
9102
9103 2020-02-22 Tom Tromey <tom@tromey.com>
9104
9105 * tui/tui.c (tui_rl_delete_other_windows): Call
9106 tui_remove_some_windows.
9107 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9108 Declare method.
9109 (class tui_layout_window) <remove_windows>: New method.
9110 (class tui_layout_split) <remove_windows>: Declare.
9111 (tui_remove_some_windows): Declare.
9112 * tui/tui-layout.c (tui_remove_some_windows): New function.
9113 (tui_layout_split::remove_windows): New method.
9114
9115 2020-02-22 Tom Tromey <tom@tromey.com>
9116
9117 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9118 * tui/tui-layout.h (tui_next_layout): Declare.
9119 * tui/tui-layout.c (tui_next_layout): New function.
9120
9121 2020-02-22 Tom Tromey <tom@tromey.com>
9122
9123 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9124 correct coordinates.
9125
9126 2020-02-22 Tom Tromey <tom@tromey.com>
9127
9128 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9129 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9130 DATA_WIN case.
9131
9132 2020-02-22 Tom Tromey <tom@tromey.com>
9133
9134 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9135 TUI_DISASM_WIN, not tui_win_list.
9136
9137 2020-02-22 Tom Tromey <tom@tromey.com>
9138
9139 * valprint.c (generic_val_print_enum_1)
9140 (val_print_type_code_flags): Style member names.
9141 * rust-lang.c (val_print_struct, rust_print_enum)
9142 (rust_print_struct_def, rust_internal_print_type): Style member
9143 names.
9144 * p-valprint.c (pascal_object_print_value_fields): Style member
9145 names. Only call fprintf_symbol_filtered for static members.
9146 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9147 * f-valprint.c (f_val_print): Style member names.
9148 * f-typeprint.c (f_type_print_base): Style member names.
9149 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9150 call fprintf_symbol_filtered for static members.
9151 (cp_print_class_member): Style member names.
9152 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9153 member names.
9154 * ada-valprint.c (ada_print_scalar): Style enum names.
9155 (ada_val_print_enum): Likewise.
9156 * ada-typeprint.c (print_enum_type): Style enum names.
9157
9158 2020-02-21 Tom Tromey <tom@tromey.com>
9159
9160 * psympriv.h (struct partial_symtab): Update comment.
9161
9162 2020-02-21 Tom Tromey <tromey@adacore.com>
9163
9164 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9165 type is CORE_ADDR.
9166
9167 2020-02-21 Tom de Vries <tdevries@suse.de>
9168
9169 PR gdb/25534
9170 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9171 if dependencies[i]->user != NULL.
9172
9173 2020-02-21 Ali Tamur <tamur@google.com>
9174
9175 * dwarf2/read.c (dwarf2_name): Add null check.
9176
9177 2020-02-20 Tom Tromey <tom@tromey.com>
9178
9179 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9180 ">=", in binary search.
9181 (dwarf2_find_containing_comp_unit): New overload.
9182 (run_test): New self-test.
9183 (_initialize_dwarf2_read): Register new test.
9184
9185 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9186
9187 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9188 * riscv-tdep.h: Likewise.
9189 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9190 rv32-only CSR.
9191 * features/riscv/64bit-csr.xml: Regenerated.
9192
9193 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9194 Tom Tromey <tom@tromey.com>
9195
9196 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9197 of 'fputc_unfiltered'.
9198 (putchar_unfiltered): Call 'fputc_unfiltered'.
9199 (fputc_unfiltered): Call 'fputs_unfiltered'.
9200
9201 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9202
9203 * config.in: Regenerate.
9204 * configure: Regenerate.
9205 * configure.ac: Add --with-python-libdir option.
9206 * main.c: Use WITH_PYTHON_LIBDIR.
9207
9208 2020-02-19 Tom Tromey <tom@tromey.com>
9209
9210 * symtab.c (general_symbol_info::compute_and_set_names): Use
9211 obstack_strndup. Simplify call to symbol_set_demangled_name.
9212
9213 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9214
9215 * dwarf2/read.c (allocate_signatured_type_table,
9216 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9217 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9218 Remove objfile parameter, update all callers.
9219
9220 2020-02-19 Doug Evans <dje@google.com>
9221
9222 PR rust/25535
9223 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9224 rust_enum_variant calculation.
9225
9226 2020-02-19 Tom Tromey <tromey@adacore.com>
9227
9228 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9229
9230 2020-02-19 Tom Tromey <tromey@adacore.com>
9231
9232 * ada-lang.c (cache_symbol): Use obstack_strdup.
9233
9234 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9235
9236 * configure: Regenerate.
9237
9238 2020-02-19 Tom Tromey <tromey@adacore.com>
9239
9240 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9241 NULL check.
9242
9243 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9244
9245 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9246
9247 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9248
9249 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9250 if GDBSERVER is not defined.
9251 (riscv_tdesc_cache): Likewise, also store const target_desc.
9252 (STATIC_IN_GDB): Define.
9253 (riscv_create_target_description): Update declaration with
9254 STATIC_IN_GDB.
9255 (riscv_lookup_target_description): New function, only define if
9256 GDBSERVER is not defined.
9257 * arch/riscv.h (riscv_create_target_description): Declare only
9258 when GDBSERVER is defined.
9259 (riscv_lookup_target_description): New declaration when GDBSERVER
9260 is not defined.
9261 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9262 (riscv_linux_read_features): ...this, and return
9263 riscv_gdbarch_features instead of target_desc.
9264 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9265 (riscv_linux_read_description): Rename to...
9266 (riscv_linux_read_features): ...this.
9267 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9268 Update to use riscv_gdbarch_features and
9269 riscv_lookup_target_description.
9270 * riscv-tdep.c (riscv_find_default_target_description): Use
9271 riscv_lookup_target_description instead of
9272 riscv_create_target_description.
9273
9274 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9275
9276 * valprint.c (generic_val_print_enum_1): When printing a flag
9277 enum with value 0 and there is no enumerator with value 0, print
9278 just "0" instead of "(unknown: 0x0)".
9279
9280 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9281
9282 * valprint.c (generic_val_print_enum_1): Print unknown part of
9283 flag enum in hex.
9284
9285 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9286
9287 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9288 flag enums to contain duplicate enumerators.
9289 * valprint.c (generic_val_print_enum_1): Update comment.
9290
9291 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9292
9293 * dwarf2/read.c: Include "count-one-bits.h".
9294 (update_enumeration_type_from_children): If an enumerator has
9295 multiple bits set, don't treat the enumeration as a "flag enum".
9296 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9297 of flag enums have 0 or 1 bit set.
9298
9299 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9300
9301 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9302 conversion.
9303 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9304 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9305 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9306 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9307 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9308
9309 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9310
9311 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9312
9313 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9314
9315 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9316 displaced_step_closure_up.
9317 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9318 (struct displaced_step_closure_up):
9319 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9320 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9321 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9322 Likewise.
9323 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9324 * gdbarch.c, gdbarch.h: Re-generate.
9325 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9326 displaced_step_closure_up.
9327 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9328 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9329 * infrun.h (displaced_step_closure_up): New type alias.
9330 (struct displaced_step_inferior_state) <step_closure>: Change
9331 type to displaced_step_closure_up.
9332 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9333 displaced_step_closure_up.
9334 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9335
9336 2020-02-14 Tom Tromey <tom@tromey.com>
9337
9338 * minidebug.c (gnu_debug_key): New global.
9339 (find_separate_debug_file_in_section): Use it.
9340
9341 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9342
9343 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9344 std::unique_ptr.
9345 * gdbarch.c: Re-generate.
9346 * gdbarch.h: Re-generate.
9347 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9348 change.
9349 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9350 type to std::unique_ptr.
9351 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9352 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9353 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9354 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9355 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9356 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9357 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9358 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9359 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9360
9361 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9362
9363 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9364 std::unique_ptr.
9365 (displaced_step_clear): Rename to...
9366 (displaced_step_reset): ... this. Just call displaced->reset ().
9367 (displaced_step_clear_cleanup): Rename to...
9368 (displaced_step_reset_cleanup): ... this.
9369 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9370 (displaced_step_fixup): Likewise.
9371 (resume_1): Likewise.
9372 (handle_inferior_event): Restore child's memory before calling
9373 displaced_step_fixup on the parent.
9374 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9375 to std::unique_ptr.
9376 <step_closure>: Change type to std::unique_ptr.
9377
9378 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9379
9380 * arm-tdep.c: Include count-one-bits.h.
9381 (cleanup_block_store_pc): Use count_one_bits.
9382 (cleanup_block_load_pc): Use count_one_bits.
9383 (arm_copy_block_xfer): Use count_one_bits.
9384 (thumb2_copy_block_xfer): Use count_one_bits.
9385 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9386 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9387 (thumb_get_next_pcs_raw): Use count_one_bits.
9388 (arm_get_next_pcs_raw): Use count_one_bits_l.
9389 * arch/arm.c (bitcount): Remove.
9390 * arch/arm.h (bitcount): Remove.
9391
9392 2020-02-14 Tom Tromey <tromey@adacore.com>
9393
9394 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9395 Update.
9396 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9397 * dwarf2/loc.c (call_site_find_chain_1): Return
9398 unique_xmalloc_ptr.
9399 (call_site_find_chain): Likewise.
9400
9401 2020-02-14 Richard Biener <rguenther@suse.de>
9402
9403 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9404 on expression with division operators.
9405
9406 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9407
9408 * MAINTAINERS (Write After Approval): Adding myself.
9409
9410 2020-02-12 Tom Tromey <tom@tromey.com>
9411
9412 * event-loop.c (event_data, gdb_event, event_handler_func):
9413 Remove.
9414
9415 2020-02-12 Tom Tromey <tom@tromey.com>
9416
9417 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9418 (dwarf2_frame_objfile_data): Add comment.
9419 (find_comp_unit, set_comp_unit): New functions.
9420 (dwarf2_frame_find_fde): Use find_comp_unit.
9421 (dwarf2_build_frame_info): Use set_comp_unit.
9422
9423 2020-02-12 Tom Tromey <tom@tromey.com>
9424
9425 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9426 (comp_unit): Don't initialize objfile.
9427 (execute_cfa_program): Add text_offset parameter.
9428 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9429 (dwarf2_frame_cache): Update.
9430 (dwarf2_build_frame_info): Don't set "objfile" member.
9431
9432 2020-02-12 Tom Tromey <tom@tromey.com>
9433
9434 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9435 (decode_frame_entry): Likewise.
9436 (dwarf2_build_frame_info): Update.
9437
9438 2020-02-12 Tom Tromey <tom@tromey.com>
9439
9440 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9441 (decode_frame_entry_1): Use the comp_unit obstack.
9442
9443 2020-02-12 Tom Tromey <tom@tromey.com>
9444
9445 * dwarf2/frame.c (struct comp_unit): Add initializers and
9446 constructor.
9447 (dwarf2_frame_objfile_data): Store a comp_unit.
9448 (dwarf2_frame_find_fde): Update.
9449 (dwarf2_build_frame_info): Use "new".
9450
9451 2020-02-12 Tom Tromey <tom@tromey.com>
9452
9453 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9454 (dwarf2_fde_table): Typedef for std::vector.
9455 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9456 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9457 (decode_frame_entry): Update.
9458 (dwarf2_build_frame_info): Use "new".
9459
9460 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9461
9462 * arm-tdep.c (arm_gdbarch_init): Update.
9463 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9464 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9465 have_neon, is_m>: Change to bool.
9466
9467 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9468
9469 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9470
9471 2020-02-12 Tom Tromey <tom@tromey.com>
9472
9473 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9474
9475 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9476
9477 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9478 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9479
9480 2020-02-11 Tom Tromey <tom@tromey.com>
9481
9482 * psymtab.h: Update comment.
9483
9484 2020-02-11 Tom Tromey <tom@tromey.com>
9485
9486 * gdb_obstack.h (struct auto_obstack): Use
9487 DISABLE_COPY_AND_ASSIGN.
9488
9489 2020-02-11 Tom Tromey <tom@tromey.com>
9490
9491 * dwarf2/frame.h (struct objfile): Don't forward declare.
9492
9493 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9494
9495 * cris-tdep.c (cris_supply_gregset): Change signature to match
9496 what struct regset expects.
9497 (cris_regset): New struct.
9498 (fetch_core_registers): Remove.
9499 (cris_iterate_over_regset_sections): New function.
9500 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9501 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9502
9503 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9504
9505 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9506 registers.
9507
9508 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9509
9510 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9511
9512 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9513
9514 * configure: Re-generate.
9515
9516 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9517
9518 * configure: Re-generate.
9519
9520 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9521
9522 * acinclude: Update warning.m4 path.
9523 * warning.m4: Move to gdbsupport.
9524
9525 2020-02-11 Tom Tromey <tromey@adacore.com>
9526
9527 * remote.c (remote_console_output): Update.
9528 * printcmd.c (printf_command): Update.
9529 * event-loop.c (gdb_wait_for_event): Update.
9530 * linux-nat.c (sigchld_handler): Update.
9531 * remote-sim.c (gdb_os_write_stdout): Update.
9532 (gdb_os_flush_stdout): Update.
9533 (gdb_os_flush_stderr): Update.
9534 (gdb_os_write_stderr): Update.
9535 * exceptions.c (print_exception): Update.
9536 * remote-fileio.c (remote_fileio_func_read): Update.
9537 (remote_fileio_func_write): Update.
9538 * tui/tui.c (tui_enable): Update.
9539 * tui/tui-interp.c (tui_interp::init): Update.
9540 * utils.c (init_page_info): Update.
9541 (putchar_unfiltered, fputc_unfiltered): Update.
9542 (gdb_flush): Update.
9543 (emit_style_escape): Update.
9544 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9545 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9546 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9547 (stderr_file::write): Update.
9548 (stderr_file::puts): Update.
9549 * ui-file.h (ui_file_isatty, ui_file_write)
9550 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9551 (ui_file_puts): Don't declare.
9552
9553 2020-02-10 Tom de Vries <tdevries@suse.de>
9554
9555 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9556 sentinel to char *.
9557
9558 2020-02-09 Tom de Vries <tdevries@suse.de>
9559
9560 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9561 filename if it matches "<artificial>".
9562
9563 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9564
9565 * windows-tdep.c (struct enum_value_name): New struct.
9566 (create_enum): New function.
9567 (windows_get_siginfo_type): Create and use enum types.
9568
9569 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9570
9571 * NEWS: Mention $_siginfo support for Windows.
9572 * windows-nat.c (handle_exception): Set siginfo_er.
9573 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9574 (windows_xfer_siginfo): New function.
9575 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9576 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9577 (init_windows_gdbarch_data): New function.
9578 (get_windows_gdbarch_data): New function.
9579 (windows_get_siginfo_type): New function.
9580 (windows_init_abi): Register windows_get_siginfo_type.
9581 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9582
9583 2020-02-08 Tom Tromey <tom@tromey.com>
9584
9585 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9586 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9587 <keep>: Declare method.
9588 <m_keep>: Remove member.
9589 <~cutu_reader>: Remove.
9590 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9591 (cutu_reader::cutu_reader): Update.
9592 (cutu_reader::keep): Rename from ~cutu_reader.
9593 (process_psymtab_comp_unit, build_type_psymtabs_1)
9594 (process_skeletonless_type_unit, load_partial_comp_unit)
9595 (load_full_comp_unit, dwarf2_read_addr_index)
9596 (read_signatured_type): Update.
9597
9598 2020-02-08 Tom Tromey <tom@tromey.com>
9599
9600 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9601 "want_partial_unit" parameter.
9602 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9603 Inline check for DW_TAG_partial_unit.
9604 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9605
9606 2020-02-08 Tom Tromey <tom@tromey.com>
9607
9608 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9609 read.c.
9610 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9611 read.c.
9612
9613 2020-02-08 Tom Tromey <tom@tromey.com>
9614
9615 * dwarf2/read.c (read_address): Move to comp-unit.c.
9616 (dwarf2_rnglists_process, dwarf2_ranges_process)
9617 (read_attribute_value, dwarf_decode_lines_1)
9618 (var_decode_location, decode_locdesc): Update.
9619 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9620 read.c. Remove "cu" parameter.
9621 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9622 method.
9623
9624 2020-02-08 Tom Tromey <tom@tromey.com>
9625
9626 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9627 (read_indirect_line_string): Update.
9628 * dwarf2/comp-unit.c (read_offset): Remove.
9629 (read_comp_unit_head): Update.
9630 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9631 method.
9632 (read_offset): Don't declare.
9633
9634 2020-02-08 Tom Tromey <tom@tromey.com>
9635
9636 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9637 * dwarf2/read.c (struct comp_unit_head): Move to
9638 dwarf2/comp-unit.h.
9639 (enum class rcuh_kind): Move to comp-unit.h.
9640 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9641 (read_comp_unit_head, error_check_comp_unit_head)
9642 (read_and_check_comp_unit_head): Move to comp-unit.c.
9643 (read_offset, dwarf_unit_type_name): Likewise.
9644 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9645 (cutu_reader::cutu_reader, read_call_site_scope)
9646 (find_partial_die, follow_die_offset): Update.
9647 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9648
9649 2020-02-08 Tom Tromey <tom@tromey.com>
9650
9651 * dwarf2/read.c (read_offset_1): Move to leb.c.
9652 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9653 (dwarf_decode_macro_bytes): Update.
9654 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9655 * dwarf2/leb.h (read_offset): Declare.
9656
9657 2020-02-08 Tom Tromey <tom@tromey.com>
9658
9659 * dwarf2/read.c (dwarf2_section_size): Remove.
9660 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9661 Update.
9662 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9663
9664 2020-02-08 Tom Tromey <tom@tromey.com>
9665
9666 * dwarf2/read.c (read_initial_length): Move to leb.c.
9667 * dwarf2/leb.h (read_initial_length): Declare.
9668 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9669 handle_nonstd parameter.
9670 * dwarf2/frame.c (read_initial_length): Remove.
9671 (decode_frame_entry_1): Update.
9672
9673 2020-02-08 Tom Tromey <tom@tromey.com>
9674
9675 * dwarf2/loc.c (dwarf2_find_location_expression)
9676 (dwarf_evaluate_loc_desc::get_tls_address)
9677 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9678 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9679 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9680 (dwarf2_compile_property_to_c)
9681 (dwarf2_loc_desc_get_symbol_read_needs)
9682 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9683 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9684 (loclist_describe_location, loclist_tracepoint_var_ref)
9685 (loclist_generate_c_location): Update.
9686 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9687 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9688 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9689 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9690 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9691 (dwarf2_per_cu_data::addr_size)
9692 (dwarf2_per_cu_data::ref_addr_size)
9693 (dwarf2_per_cu_data::text_offset)
9694 (dwarf2_per_cu_data::addr_type): Now methods.
9695 (per_cu_header_read_in): Make per_cu "const".
9696 (dwarf2_version): Remove.
9697 (dwarf2_per_cu_data::int_type): Now a method.
9698 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9699 (set_die_type, read_array_type, read_subrange_index_type)
9700 (read_tag_string_type, read_subrange_type): Update.
9701 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9702 offset_size, ref_addr_size, text_offset, addr_type, version,
9703 objfile, int_type, addr_sized_int_type>: Declare methods.
9704
9705 2020-02-08 Tom Tromey <tom@tromey.com>
9706
9707 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9708 Move earlier.
9709
9710 2020-02-08 Tom Tromey <tom@tromey.com>
9711
9712 * dwarf2/read.h (dwarf_line_debug): Declare.
9713 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9714 * dwarf2/read.c: Move line_header code to new files.
9715 (dwarf_line_debug): No longer static.
9716 * dwarf2/line-header.c: New file.
9717 * dwarf2/line-header.h: New file.
9718
9719 2020-02-08 Tom Tromey <tom@tromey.com>
9720
9721 * dwarf2/read.c (struct line_header) <file_full_name,
9722 file_file_name>: Return unique_xmalloc_ptr.
9723 (line_header::file_file_name): Update.
9724 (line_header::file_full_name): Update.
9725 (dw2_get_file_names_reader): Update.
9726 (macro_start_file): Update.
9727
9728 2020-02-08 Tom Tromey <tom@tromey.com>
9729
9730 * dwarf2/read.c (struct line_header) <file_full_name,
9731 file_file_name>: Declare methods.
9732 (dw2_get_file_names_reader): Update.
9733 (file_file_name): Now a method.
9734 (file_full_name): Likewise.
9735 (macro_start_file): Update.
9736
9737 2020-02-08 Tom Tromey <tom@tromey.com>
9738
9739 * dwarf2/read.c (dwarf_always_disassemble)
9740 (show_dwarf_always_disassemble): Move to loc.c.
9741 (_initialize_dwarf2_read): Move "always-disassemble" registration
9742 to loc.c.
9743 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9744 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9745 static.
9746 (show_dwarf_always_disassemble): Move from read.c.
9747 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9748
9749 2020-02-08 Tom Tromey <tom@tromey.com>
9750
9751 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9752 (create_quick_file_names_table): Return htab_up.
9753 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9754 Update.
9755 * dwarf2/read.h (struct dwarf2_per_objfile)
9756 <quick_file_names_table>: Now htab_up.
9757
9758 2020-02-08 Tom Tromey <tom@tromey.com>
9759
9760 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9761
9762 2020-02-08 Tom Tromey <tom@tromey.com>
9763
9764 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9765 Rewrite.
9766 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9767 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9768 (abbrev_table::abbrev_table): No longer inline.
9769 (ABBREV_HASH_SIZE): Remove.
9770 (abbrev_table::m_abbrevs): Now an htab_up.
9771
9772 2020-02-08 Tom Tromey <tom@tromey.com>
9773
9774 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9775 (cutu_reader): Update.
9776 (build_type_psymtabs_1): Update.
9777 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9778 (abbrev_table::alloc_abbrev): Update.
9779 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9780 (abbrev_table::read): New static method, renamed from
9781 abbrev_table_read_table.
9782 (abbrev_table::alloc_abbrev)
9783 (abbrev_table::add_abbrev): Now private.
9784 (abbrev_table::abbrev_table): Now private.
9785 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9786
9787 2020-02-08 Tom Tromey <tom@tromey.com>
9788
9789 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9790 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9791 htab_up.
9792
9793 2020-02-08 Tom Tromey <tom@tromey.com>
9794
9795 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9796 htab_up.
9797 (lookup_dwo_unit_in_dwp): Update.
9798 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9799 on obstack.
9800
9801 2020-02-08 Tom Tromey <tom@tromey.com>
9802
9803 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9804 obstack.
9805
9806 2020-02-08 Tom Tromey <tom@tromey.com>
9807
9808 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9809 line_header_hash.
9810 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9811 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9812 Change type to htab_up.
9813
9814 2020-02-08 Tom Tromey <tom@tromey.com>
9815
9816 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9817 htab_up. Don't allocate on obstack.
9818 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9819 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9820 Change type to htab_up.
9821
9822 2020-02-08 Tom Tromey <tom@tromey.com>
9823
9824 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9825 Change type to htab_up.
9826 * dwarf2/read.c (create_signatured_type_table_from_index)
9827 (create_signatured_type_table_from_debug_names)
9828 (create_all_type_units, add_type_unit)
9829 (lookup_dwo_signatured_type, lookup_signatured_type)
9830 (process_skeletonless_type_unit): Update.
9831 (create_debug_type_hash_table, create_debug_types_hash_table):
9832 Change type of types_htab.
9833 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9834 htab_up. Don't allocate on obstack.
9835 (create_cus_hash_table): Change type of cus_htab parameter.
9836 (struct dwo_file) <cus, tus>: Now htab_up.
9837 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9838 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9839 (queue_and_load_all_dwo_tus): Update.
9840 * dwarf2/index-write.c (write_gdbindex): Update.
9841 (write_debug_names): Update.
9842
9843 2020-02-08 Tom Tromey <tom@tromey.com>
9844
9845 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9846 dwarf2/read.c. Remove "next" member. Add constructor ntad
9847 destructor.
9848 (struct dwarf2_per_objfile) <queue>: New member.
9849 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9850 dwarf2/read.h.
9851 (dwarf2_queue, dwarf2_queue_tail): Remove.
9852 (class dwarf2_queue_guard): Add parameter to constructor. Use
9853 DISABLE_COPY_AND_ASSIGN.
9854 <m_per_objfile>: New member.
9855 <~dwarf2_queue_guard>: Rewrite.
9856 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9857 Update.
9858 (~dwarf2_queue_item): New.
9859
9860 2020-02-08 Tom Tromey <tom@tromey.com>
9861
9862 * dwarf2/read.c (struct die_info) <has_children>: New member.
9863 (dw2_get_file_names_reader): Remove has_children.
9864 (dw2_get_file_names): Update.
9865 (read_cutu_die_from_dwo): Remove has_children.
9866 (cutu_reader::init_tu_and_read_dwo_dies)
9867 (cutu_reader::cutu_reader): Update.
9868 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9869 Remove has_children.
9870 (build_type_psymtabs_1, process_skeletonless_type_unit)
9871 (load_partial_comp_unit, load_full_comp_unit): Update.
9872 (create_dwo_cu_reader): Remove has_children.
9873 (create_cus_hash_table, read_die_and_children): Update.
9874 (read_full_die_1,read_full_die): Remove has_children.
9875 (read_signatured_type): Update.
9876 (class cutu_reader) <has_children>: Remove.
9877
9878 2020-02-08 Tom Tromey <tom@tromey.com>
9879
9880 * dwarf2/expr.c: Rename from dwarf2expr.c.
9881 * dwarf2/expr.h: Rename from dwarf2expr.h.
9882 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9883 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9884 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9885 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9886 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9887 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9888 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9889 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9890 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9891 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9892 * dwarf2/loc.c: Rename from dwarf2loc.c.
9893 * dwarf2/loc.h: Rename from dwarf2loc.h.
9894 * dwarf2/read.c: Rename from dwarf2read.c.
9895 * dwarf2/read.h: Rename from dwarf2read.h.
9896 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9897 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9898 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9899 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9900 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9901 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9902 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9903 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9904 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9905 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9906 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9907 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9908 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9909 Update.
9910 * Makefile.in (COMMON_SFILES): Update.
9911 (HFILES_NO_SRCDIR): Update.
9912
9913 2020-02-08 Tom Tromey <tom@tromey.com>
9914
9915 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9916 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9917
9918 2020-02-08 Tom Tromey <tom@tromey.com>
9919
9920 * dwarf2read.h (struct die_info): Don't declare.
9921
9922 2020-02-08 Tom Tromey <tom@tromey.com>
9923
9924 * dwarf2read.h (die_info_ptr): Remove typedef.
9925
9926 2020-02-08 Tom Tromey <tom@tromey.com>
9927
9928 * dwarf2read.c (read_call_site_scope)
9929 (handle_data_member_location, dwarf2_add_member_fn)
9930 (mark_common_block_symbol_computed, read_common_block)
9931 (attr_to_dynamic_prop, partial_die_info::read)
9932 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9933 (dwarf2_symbol_mark_computed, set_die_type): Update.
9934 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9935 method.
9936 (attr_form_is_block): Don't declare.
9937 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9938
9939 2020-02-08 Tom Tromey <tom@tromey.com>
9940
9941 * dwarf2read.c (dwarf2_find_base_address, )
9942 (read_call_site_scope, rust_containing_type)
9943 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9944 (handle_data_member_location, dwarf2_add_member_fn)
9945 (get_alignment, read_structure_type, process_structure_scope)
9946 (mark_common_block_symbol_computed, read_common_block)
9947 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9948 (partial_die_info::read, read_attribute_value, new_symbol)
9949 (lookup_die_type, dwarf2_get_ref_die_offset)
9950 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9951 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9952 (dwarf2_symbol_mark_computed): Update.
9953 * dwarf2/attribute.h (struct attribute) <value_as_address,
9954 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9955 methods.
9956 (value_as_address, attr_form_is_section_offset)
9957 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9958 * dwarf2/attribute.c (attribute::value_as_address)
9959 (attribute::form_is_section_offset, attribute::form_is_constant)
9960 (attribute::form_is_ref): Now methods.
9961
9962 2020-02-08 Tom Tromey <tom@tromey.com>
9963
9964 * dwarf2read.c (struct attribute, DW_STRING)
9965 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9966 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9967 (attr_form_is_block, attr_form_is_section_offset)
9968 (attr_form_is_constant, attr_form_is_ref): Move.
9969 * dwarf2/attribute.h: New file.
9970 * dwarf2/attribute.c: New file, from dwarf2read.c.
9971 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9972
9973 2020-02-08 Tom Tromey <tom@tromey.com>
9974
9975 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9976 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9977 Move.
9978 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9979 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9980 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9981 abbrev.c.
9982 * dwarf2/abbrev.h: New file.
9983 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9984 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9985
9986 2020-02-08 Tom Tromey <tom@tromey.com>
9987
9988 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9989 (dwarf2_section_size, dwarf2_get_section_info)
9990 (create_signatured_type_table_from_debug_names)
9991 (create_addrmap_from_aranges, read_debug_names_from_section)
9992 (get_gdb_index_contents_from_section, read_comp_unit_head)
9993 (error_check_comp_unit_head, read_abbrev_offset)
9994 (create_debug_type_hash_table, init_cu_die_reader)
9995 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9996 (read_comp_units_from_section, create_cus_hash_table)
9997 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9998 (create_dwp_v2_section, dwarf2_rnglists_process)
9999 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10000 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10001 (read_indirect_string_from_dwz, read_addr_index_1)
10002 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10003 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10004 (fill_in_loclist_baton): Update.
10005 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10006 get_containing_section, get_bfd_owner, get_bfd_section,
10007 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10008 (dwarf2_read_section, get_section_name, get_section_file_name)
10009 (get_containing_section, get_section_bfd_owner)
10010 (get_section_bfd_section, get_section_name, get_section_file_name)
10011 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10012 declare.
10013 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10014 (dwarf2_section_info::get_bfd_owner)
10015 (dwarf2_section_info::get_bfd_section)
10016 (dwarf2_section_info::get_name)
10017 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10018 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10019 (dwarf2_section_info::read): Now methods.
10020 * dwarf-index-write.c (class debug_names): Update.
10021
10022 2020-02-08 Tom Tromey <tom@tromey.com>
10023
10024 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10025 Move to dwarf2/section.h.
10026 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10027 (get_section_bfd_section, get_section_name)
10028 (get_section_file_name, get_section_id, get_section_flags)
10029 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10030 dwarf2/section.c.
10031 * dwarf2/section.h: New file.
10032 * dwarf2/section.c: New file, from dwarf2read.c.
10033 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10034
10035 2020-02-08 Tom Tromey <tom@tromey.com>
10036
10037 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10038 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10039 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10040 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10041 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10042 * dwarf2/leb.h: New file, from dwarf2read.c.
10043 * dwarf2/leb.c: New file, from dwarf2read.c.
10044 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10045 Remove.
10046 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10047 (COMMON_SFILES): Add dwarf2/leb.c.
10048
10049 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10050
10051 GDB 9.1 released.
10052
10053 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10054
10055 PR gdb/25190:
10056 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10057 * gdb/remote.c (remote_console_output): Update.
10058 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10059 (ui_file_puts): ...this.
10060 * gdb/ui-file.h (ui_file_puts): Add declaration.
10061 * gdb/utils.c (emit_style_escape): Update.
10062 (flush_wrap_buffer): Update.
10063 (fputs_maybe_filtered): Update.
10064 (fputs_unfiltered): Add function.
10065
10066 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10067
10068 * gdb/event-loop.c (gdb_wait_for_event): Update.
10069 * gdb/printcmd.c (printf_command): Update.
10070 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10071 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10072 (gdb_os_flush_stderr): Update.
10073 * gdb/remote.c (remote_console_output): Update.
10074 * gdb/ui-file.c (gdb_flush): Rename to...
10075 (ui_file_flush): ...this.
10076 (stderr_file::write): Update.
10077 (stderr_file::puts): Update.
10078 * gdb/ui-file.h (gdb_flush): Rename to...
10079 (ui_file_flush): ...this.
10080 * gdb/utils.c (gdb_flush): Add function.
10081 * gdb/utils.h (gdb_flush): Add declaration.
10082
10083 2020-02-07 Tom Tromey <tromey@adacore.com>
10084
10085 PR breakpoints/24915:
10086 * source.c (find_and_open_source): Do not check basenames_may_differ.
10087
10088 2020-02-07 Tom Tromey <tom@tromey.com>
10089
10090 * README: Update gdbserver documentation.
10091 * gdbserver: Move to top level.
10092 * configure.tgt (build_gdbserver): Remove.
10093 * configure.ac: Remove --enable-gdbserver.
10094 * configure: Rebuild.
10095 * Makefile.in (distclean): Don't mention gdbserver.
10096
10097 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10098
10099 * source-cache.c (source_cache::ensure): Surround
10100 get_plain_source_lines with a try/catch.
10101 (source_cache::get_line_charpos): Get rid of try/catch
10102 and only check for the return value of "ensure".
10103 * tui/tui-source.c (tui_source_window::set_contents):
10104 Simplify "nlines" calculation.
10105
10106 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10107
10108 * MAINTAINERS (Write After Approval): Add myself.
10109
10110 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10111
10112 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10113 function call.
10114
10115 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10116
10117 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10118
10119 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10120
10121 * nat/riscv-linux-tdesc.h: New file.
10122 * nat/riscv-linux-tdesc.c: New file, taking code from...
10123 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10124 ... here.
10125 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10126 NATDEPFILES.
10127
10128 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10129
10130 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10131 we don't set the fake simulator ptid to the null_ptid.
10132
10133 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10134
10135 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10136 * gdbthread.h (class thread_info) <resumed>: Likewise.
10137 * infrun.c (resume_1): Likewise.
10138 (proceed): Likewise.
10139 (infrun_thread_stop_requested): Likewise.
10140 (stop_all_threads): Likewise.
10141 (handle_inferior_event): Likewise.
10142 (restart_threads): Likewise.
10143 (finish_step_over): Likewise.
10144 (keep_going_stepped_thread): Likewise.
10145 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10146 (linux_handle_extended_wait): Likewise.
10147 * record-btrace.c (get_thread_current_frame_id): Likewise.
10148 * record-full.c (record_full_wait_1): Likewise.
10149 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10150 * target.c (target_resume): Likewise.
10151 * thread.c (set_running_thread): Likewise.
10152
10153 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10154
10155 * f-valprint.c (f77_print_array_1): Changed datatype of index
10156 variable to LONGEST from int to enable it to contain bound
10157 values correctly.
10158
10159 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10160
10161 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10162 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10163 offsets according to FLEN determined.
10164 (riscv_linux_nat_target::read_description): Determine FLEN
10165 dynamically.
10166 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10167 according to FLEN determined.
10168 (riscv_linux_nat_target::store_registers): Likewise.
10169
10170 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10171
10172 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10173 when reg->group is empty and reggroup is not.
10174
10175 2020-01-31 Tom Tromey <tromey@adacore.com>
10176
10177 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10178 Call beneath target's mourn_inferior after unpushing.
10179
10180 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10181
10182 PR tui/9765
10183 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10184 have enough lines to fill the screen, still return the lowest
10185 address we found.
10186
10187 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10188
10189 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10190 '-', '<', and '>' commands.
10191
10192 2020-01-29 Pedro Alves <palves@redhat.com>
10193 Sergio Durigan Junior <sergiodj@redhat.com>
10194
10195 * infcmd.c (construct_inferior_arguments): Assert that
10196 'argc' is greater than 0.
10197
10198 2020-01-29 Luis Machado <luis.machado@linaro.org>
10199
10200 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10201 (BRK_INSN_MASK): Define to 0xd4200000.
10202 (aarch64_program_breakpoint_here_p): New function.
10203 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10204 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10205 breakpoint.c.
10206 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10207 breakpoint.h
10208 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10209 call gdbarch_program_breakpoint_here_p.
10210 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10211 default_program_breakpoint_here_p, changed return type to bool and
10212 simplified.
10213 * breakpoint.h (program_breakpoint_here): Moved prototype to
10214 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10215 return type to bool.
10216 * gdbarch.c: Regenerate.
10217 * gdbarch.h: Regenerate.
10218 * gdbarch.sh (program_breakpoint_here_p): New method.
10219 * infrun.c (handle_signal_stop): Call
10220 gdbarch_program_breakpoint_here_p.
10221
10222 2020-01-26 Tom Tromey <tom@tromey.com>
10223
10224 * ctfread.c (struct ctf_fp_info): Reindent.
10225 (_initialize_ctfread): Remove.
10226
10227 2020-01-26 Tom Tromey <tom@tromey.com>
10228
10229 * psymtab.c (partial_map_expand_apply)
10230 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10231 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10232 (psym_print_stats, psym_expand_symtabs_for_function)
10233 (psym_map_symbol_filenames, psym_map_matching_symbols)
10234 (psym_expand_symtabs_matching)
10235 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10236 (maintenance_check_psymtabs): Use new methods.
10237 * psympriv.h (struct partial_symtab) <readin_p,
10238 get_compunit_symtab>: New methods.
10239 <readin, compunit_symtab>: Remove members.
10240 (struct standard_psymtab): New.
10241 (struct legacy_psymtab): Derive from standard_psymtab.
10242 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10243 standard_psymtab.
10244 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10245
10246 2020-01-26 Tom Tromey <tom@tromey.com>
10247
10248 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10249 read_dependencies. Add assert.
10250 * psymtab.c (partial_symtab::read_dependencies): New method.
10251 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10252 method.
10253 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10254 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10255 read_dependencies.
10256 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10257 Add assert.
10258
10259 2020-01-26 Tom Tromey <tom@tromey.com>
10260
10261 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10262 Call expand_psymtab.
10263 (xcoff_read_symtab): Call expand_psymtab.
10264 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10265 legacy_expand_psymtab.
10266 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10267 method.
10268 (struct legacy_psymtab) <expand_psymtab>: Implement.
10269 <legacy_expand_psymtab>: New member.
10270 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10271 (parse_partial_symbols): Set legacy_expand_psymtab.
10272 (psymtab_to_symtab_1): Change argument order. Call
10273 expand_psymtab.
10274 (new_psymtab): Set legacy_expand_psymtab.
10275 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10276 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10277 expand_psymtab.
10278 (dwarf2_psymtab::expand_psymtab): Rename from
10279 psymtab_to_symtab_1. Call expand_psymtab.
10280 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10281 (dbx_end_psymtab): Likewise.
10282 (dbx_psymtab_to_symtab_1): Change argument order. Call
10283 expand_psymtab.
10284 (dbx_read_symtab): Call expand_psymtab.
10285 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10286 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10287 (ctf_psymtab::read_symtab): Call expand_psymtab.
10288
10289 2020-01-26 Tom Tromey <tom@tromey.com>
10290
10291 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10292 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10293 messages.
10294 * mdebugread.c (mdebug_read_symtab): Remove prints.
10295 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10296 assert.
10297 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10298
10299 2020-01-26 Tom Tromey <tom@tromey.com>
10300
10301 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10302 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10303 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10304 legacy_symtab.
10305 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10306 * psymtab.c (psymtab_to_symtab): Call method.
10307 (dump_psymtab): Update.
10308 * psympriv.h (struct partial_symtab): Add virtual destructor.
10309 <read_symtab>: New method.
10310 (struct legacy_symtab): New.
10311 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10312 (struct pst_map) <pst>: Now a legacy_psymtab.
10313 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10314 (new_psymtab): Use legacy_psymtab.
10315 * dwarf2read.h (struct dwarf2_psymtab): New.
10316 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10317 * dwarf2read.c (dwarf2_create_include_psymtab)
10318 (dwarf2_build_include_psymtabs, create_type_unit_group)
10319 (create_partial_symtab, process_psymtab_comp_unit_reader)
10320 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10321 (set_partial_user): Use dwarf2_psymtab.
10322 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10323 (psymtab_to_symtab_1, process_full_comp_unit)
10324 (process_full_type_unit, dwarf2_ranges_read)
10325 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10326 (dwarf_decode_lines): Use dwarf2_psymtab.
10327 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10328 (add_address_entry_worker, write_one_signatured_type)
10329 (recursively_count_psymbols, recursively_write_psymbols)
10330 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10331 (write_debug_names): Likewise.
10332 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10333 <pst>: Now a legacy_psymtab.
10334 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10335 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10336 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10337 * ctfread.c (struct ctf_psymtab): New.
10338 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10339 ctf_psymtab.
10340 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10341 (create_partial_symtab): Return a ctf_psymtab.
10342 (scan_partial_symbols): Update.
10343
10344 2020-01-26 Tom Tromey <tom@tromey.com>
10345
10346 * xcoffread.c (xcoff_start_psymtab): Use new.
10347 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10348 renamed from start_psymtab_common.
10349 * psympriv.h (struct partial_symtab): Add new constructor.
10350 (start_psymtab_common): Don't declare.
10351 * mdebugread.c (parse_partial_symbols): Use new.
10352 * dwarf2read.c (create_partial_symtab): Use new.
10353 * dbxread.c (start_psymtab): Use new.
10354 * ctfread.c (create_partial_symtab): Use new.
10355
10356 2020-01-26 Tom Tromey <tom@tromey.com>
10357
10358 * xcoffread.c (xcoff_end_psymtab): Use new.
10359 * psymtab.c (start_psymtab_common): Use new.
10360 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10361 Update.
10362 * psympriv.h (struct partial_symtab): Add parameters to
10363 constructor. Don't inline.
10364 (allocate_psymtab): Don't declare.
10365 * mdebugread.c (new_psymtab): Use new.
10366 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10367 * dbxread.c (dbx_end_psymtab): Use new.
10368
10369 2020-01-26 Tom Tromey <tom@tromey.com>
10370
10371 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10372 allocate_psymtab. Update documentation.
10373 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10374 allocate_psymtab. Do not use new.
10375 (allocate_psymtab): Use new. Update.
10376
10377 2020-01-26 Tom Tromey <tom@tromey.com>
10378
10379 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10380 * psymtab.c (psym_print_stats): Update.
10381 * psympriv.h (struct partial_symtab) <readin,
10382 psymtabs_addrmap_supported, anonymous>: Now bool.
10383 * mdebugread.c (psymtab_to_symtab_1): Update.
10384 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10385 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10386 (process_full_comp_unit, process_full_type_unit): Update.
10387 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10388 * ctfread.c (psymtab_to_symtab): Update.
10389
10390 2020-01-26 Tom Tromey <tom@tromey.com>
10391
10392 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10393 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10394 * psymtab.c (psymtab_storage): Delete psymtabs.
10395 (psymtab_storage::allocate_psymtab): Use new.
10396 (psymtab_storage::discard_psymtab): Use delete.
10397 * psympriv.h (struct partial_symtab): Add constructor and
10398 initializers.
10399
10400 2020-01-26 Tom Tromey <tom@tromey.com>
10401
10402 * machoread.c: Do not include psympriv.h.
10403
10404 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10405
10406 * NEWS: Mention the new option and the set/show commands.
10407
10408 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10409
10410 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10411 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10412 (validate_exec_file): New variables, enums, functions.
10413 (exec_file_locate_attach, print_section_info): Style the filenames.
10414 (_initialize_exec): Install show_exec_file_mismatch_command and
10415 set_exec_file_mismatch_command.
10416 * gdbcore.h (validate_exec_file): Declare.
10417 * infcmd.c (attach_command): Call validate_exec_file.
10418 * remote.c ( remote_target::remote_add_inferior): Likewise.
10419
10420 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10421
10422 * frame.c (find_frame_sal): Move call to get_next_frame into more
10423 inner scope.
10424 * inline-frame.c (inilne_state) <inline_state>: Update argument
10425 types.
10426 (inilne_state) <skipped_symbol>: Rename to...
10427 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10428 (skip_inline_frames): Build vector of skipped symbols and use this
10429 to reate the inline_state.
10430 (inline_skipped_symbol): Add a comment and some assertions, fetch
10431 skipped symbol from the list.
10432
10433 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10434
10435 * buildsym.c (lte_is_less_than): Delete.
10436 (buildsym_compunit::end_symtab_with_blockvector): Create local
10437 lambda function to sort line table entries, and use
10438 std::stable_sort instead of std::sort.
10439 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10440 markers when looking for a previous line.
10441
10442 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10443
10444 * dwarf2read.c (lnp_state_machine::record_line): Include
10445 end_sequence parameter in debug print out. Record the line if we
10446 are at an end_sequence marker even if it's not the start of a
10447 statement.
10448 * symmisc.c (maintenance_print_one_line_table): Print end of
10449 sequence markers with 'END' not '0'.
10450
10451 2020-01-24 Pedro Alves <palves@redhat.com>
10452
10453 PR gdb/25410
10454 * thread.c (scoped_restore_current_thread::restore): Use
10455 switch_to_inferior_no_thread.
10456 * exec.c: Include "progspace-and-thread.h".
10457 (add_target_sections, remove_target_sections):
10458 scoped_restore_current_pspace_and_thread instead of
10459 scoped_restore_current_thread.
10460 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10461 and aspace to the inferior before calling clone_program_space.
10462 Remove stale comment.
10463
10464 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10465
10466 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10467 (arm_netbsd_nat_target::fetch_registers): ...this.
10468 (arm_nbsd_nat_target::store_registers): Rename to...
10469 (arm_netbsd_nat_target::store_registers): ...this.
10470
10471 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10472
10473 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10474 register_t.
10475
10476 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10477
10478 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10479 Update comment.
10480 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10481 Likewise.
10482 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10483 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10484 the correct replacement (iterate_over_regset_sections).
10485 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10486 Update comment.
10487
10488 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10489
10490 PR gdb/23718
10491 * gdb/python/python.c (execute_gdb_command): Call
10492 async_enable_stdin in catch block.
10493
10494 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10495
10496 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10497 SWITCH_THRU_ALL_UIS.
10498
10499 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10500
10501 PR tui/9765
10502 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10503 comment, add extra parameter, and update to store previous symbol
10504 when appropriate.
10505 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10506 add extra parameter.
10507 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10508 remove unneeded parameter, add try/catch around gdb_print_insn,
10509 rewrite to add items to asm_lines vector.
10510 (tui_find_backward_disassembly_start_address): New function.
10511 (tui_find_disassembly_address): Updated throughout.
10512 (tui_disasm_window::set_contents): Update for changes to
10513 tui_disassemble.
10514 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10515 number of lines to scroll.
10516
10517 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10518
10519 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10520 (SECT_OFF_DATA): Likewise.
10521 (SECT_OFF_RODATA): Likewise.
10522 (SECT_OFF_TEXT): Likewise.
10523 (SECT_OFF_BSS): Likewise.
10524 (struct objfile) <text_section_offset, data_section_offset>: New
10525 methods.
10526 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10527 objfile::text_section_offset.
10528 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10529 * coffread.c (coff_symtab_read): Likewise.
10530 (enter_linenos): Likewise.
10531 (process_coff_symbol): Likewise.
10532 * ctfread.c (get_objfile_text_range): Likewise.
10533 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10534 Use objfile::data_section_offset.
10535 * dwarf2-frame.c (execute_cfa_program): Use
10536 objfile::text_section_offset.
10537 (dwarf2_frame_find_fde): Likewise.
10538 * dwarf2read.c (create_addrmap_from_index): Likewise.
10539 (create_addrmap_from_aranges): Likewise.
10540 (dw2_find_pc_sect_compunit_symtab): Likewise.
10541 (process_psymtab_comp_unit_reader): Likewise.
10542 (add_partial_symbol): Likewise.
10543 (add_partial_subprogram): Likewise.
10544 (process_full_comp_unit): Likewise.
10545 (read_file_scope): Likewise.
10546 (read_func_scope): Likewise.
10547 (read_lexical_block_scope): Likewise.
10548 (read_call_site_scope): Likewise.
10549 (dwarf2_rnglists_process): Likewise.
10550 (dwarf2_ranges_process): Likewise.
10551 (dwarf2_ranges_read): Likewise.
10552 (dwarf_decode_lines_1): Likewise.
10553 (new_symbol): Likewise.
10554 (dwarf2_fetch_die_loc_sect_off): Likewise.
10555 (dwarf2_per_cu_text_offset): Likewise.
10556 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10557 * hppa-tdep.c (read_unwind_info): Likewise.
10558 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10559 * psympriv.h (struct partial_symtab): Likewise.
10560 * psymtab.c (find_pc_sect_psymtab): Likewise.
10561 * solib-svr4.c (enable_break): Likewise.
10562 * stap-probe.c (relocate_address): Use
10563 objfile::data_section_offset.
10564 * xcoffread.c (enter_line_range): Use
10565 objfile::text_section_offset.
10566 (read_xcoff_symtab): Likewise.
10567
10568 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10569
10570 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10571 declaration to narrower scopes.
10572
10573 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10574
10575 * darwin-nat.h (struct darwin_exception_msg, enum
10576 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10577 Move up.
10578 (class darwin_nat_target) <wait_1, check_new_threads,
10579 decode_exception_message, decode_message, stop_inferior,
10580 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10581 * darwin-nat.c (darwin_check_new_threads): Rename to...
10582 (darwin_nat_target::check_new_threads): ... this.
10583 (darwin_suspend_inferior_it): Remove.
10584 (darwin_decode_exception_message): Rename to...
10585 (darwin_nat_target::decode_exception_message): ... this.
10586 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10587 (darwin_decode_message): Rename to...
10588 (darwin_nat_target::decode_message): ... this.
10589 (cancel_breakpoint): Rename to...
10590 (darwin_nat_target::cancel_breakpoint): ... this.
10591 (darwin_wait): Rename to...
10592 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10593 instead of iterate_over_inferiors.
10594 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10595 (darwin_stop_inferior): Rename to...
10596 (darwin_nat_target::stop_inferior): ... this.
10597 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10598 (darwin_init_thread_list): Rename to...
10599 (darwin_nat_target::init_thread_list): ... this.
10600 (darwin_ptrace_him): Rename to...
10601 (darwin_nat_target::ptrace_him): ... this.
10602 (darwin_nat_target::create_inferior): Pass lambda function to
10603 fork_inferior.
10604 (darwin_nat_target::detach): Call stop_inferior instead of
10605 darwin_stop_inferior.
10606 * fork-inferior.h (fork_inferior): Change init_trace_fun
10607 parameter to gdb::function_view.
10608 * fork-inferior.c (fork_inferior): Likewise.
10609
10610 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10611
10612 * i386-cygwin-tdep.c (core_process_module_section): Update.
10613 * windows-nat.c (struct lm_info_windows): Add text_offset.
10614 (windows_xfer_shared_libraries): Update.
10615 * windows-tdep.c (windows_xfer_shared_library):
10616 Add text_offset_cached argument.
10617 * windows-tdep.h (windows_xfer_shared_library): Update.
10618
10619 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10620
10621 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10622
10623 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10624
10625 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10626 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10627 replace with range-based for.
10628 (gdbsim_interrupt_inferior): Remove.
10629 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10630 with a range-based for. Inline code from
10631 gdbsim_interrupt_inferior.
10632
10633 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10634
10635 * infrun.c (proceed): Fix indentation.
10636
10637 2020-01-21 Tom Tromey <tromey@adacore.com>
10638
10639 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10640 * python/python.c (python_extension_ops): Update.
10641 (gdbpy_colorize): New function.
10642 * python/lib/gdb/__init__.py (colorize): New function.
10643 * extension.h (ext_lang_colorize): Declare.
10644 * extension.c (ext_lang_colorize): New function.
10645 * extension-priv.h (struct extension_language_ops) <colorize>: New
10646 member.
10647 * cli/cli-style.c (_initialize_cli_style): Update help text.
10648
10649 2020-01-21 Luis Machado <luis.machado@linaro.org>
10650
10651 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10652 <cond>: Change type to bool.
10653 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10654 (aarch64_displaced_step_cb): Likewise.
10655 (aarch64_displaced_step_tb): Likewise.
10656
10657 2020-01-21 Luis Machado <luis.machado@linaro.org>
10658
10659 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10660 output.
10661
10662 2020-01-21 Luis Machado <luis.machado@linaro.org>
10663
10664 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10665 <pc_adjust>: Adjust the documentation.
10666 (aarch64_displaced_step_fixup): Check if PC really moved before
10667 adjusting it.
10668
10669 2020-01-19 Tom Tromey <tom@tromey.com>
10670
10671 * disasm.c (~gdb_disassembler): New destructor.
10672 (gdb_buffered_insn_length): Call disassemble_free_target.
10673 * disasm.h (class gdb_disassembler): Declare destructor. Use
10674 DISABLE_COPY_AND_ASSIGN.
10675
10676 2020-01-19 Tom Tromey <tom@tromey.com>
10677
10678 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10679 (die_reader_func_ftype): Remove.
10680 (cutu_reader): New class.
10681 (dw2_get_file_names_reader): Remove "data" parameter.
10682 (dw2_get_file_names): Use cutu_reader.
10683 (create_debug_type_hash_table): Update.
10684 (read_cutu_die_from_dwo): Update comment.
10685 (lookup_dwo_unit): Add dwo_name parameter.
10686 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10687 die_reader_func_ftype and data parameters.
10688 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10689 Remove die_reader_func_ftype and data parameters.
10690 (~cutu_reader): New; from init_cutu_and_read_dies.
10691 (cutu_reader::cutu_reader): Rename from
10692 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10693 and data parameters.
10694 (init_cutu_and_read_dies_simple): Remove.
10695 (struct process_psymtab_comp_unit_data): Remove.
10696 (process_psymtab_comp_unit_reader): Remove data parameter; add
10697 want_partial_unit and pretend_language parameters.
10698 (process_psymtab_comp_unit): Use cutu_reader.
10699 (build_type_psymtabs_reader): Remove data parameter.
10700 (build_type_psymtabs_1): Use cutu_reader.
10701 (process_skeletonless_type_unit): Likewise.
10702 (load_partial_comp_unit_reader): Remove.
10703 (load_partial_comp_unit): Use cutu_reader.
10704 (load_full_comp_unit_reader): Remove.
10705 (load_full_comp_unit): Use cutu_reader.
10706 (struct create_dwo_cu_data): Remove.
10707 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10708 dwo_unit parameters.
10709 (create_cus_hash_table): Use cutu_reader.
10710 (struct dwarf2_read_addr_index_data): Remove.
10711 (dwarf2_read_addr_index_reader): Remove.
10712 (dwarf2_read_addr_index): Use cutu_reader.
10713 (read_signatured_type_reader): Remove.
10714 (read_signatured_type): Use cutu_reader.
10715
10716 2020-01-19 Tom Tromey <tom@tromey.com>
10717
10718 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10719 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10720 (tui_wrefresh): Declare.
10721 * tui/tui-wingeneral.c (suppress_output): New global.
10722 (tui_suppress_output, ~tui_suppress_output): New constructor and
10723 destructor.
10724 (tui_wrefresh): New function.
10725 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10726 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10727 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10728 method.
10729 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10730 tui_wrefresh.
10731 (tui_data_window::no_refresh): New method.
10732 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10733 (tui_reg_command): Use tui_suppress_output
10734 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10735 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10736 method.
10737 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10738
10739 2020-01-19 Tom Tromey <tom@tromey.com>
10740
10741 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10742 Handle case where symtab is null.
10743
10744 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10745
10746 * linux-fork.c (one_fork_p): Simplify.
10747
10748 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10749
10750 * top.c (struct qt_args): Remove.
10751 (kill_or_detach): Change return type to void, replace `void *`
10752 parameter with a proper one.
10753 (print_inferior_quit_action): Likewise.
10754 (quit_confirm): Use range-based for loop to iterate over inferiors.
10755 (quit_force): Likewise.
10756
10757 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10758
10759 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10760 `void *` parameter with proper parameters.
10761 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10762 (print_one_inferior): Change return type to void, replace `void *`
10763 parameter with proper parameters.
10764 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10765 inferiors.
10766 (get_other_inferior): Remove.
10767 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10768 inferiors.
10769
10770 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10771
10772 * mi/mi-interp.c (report_initial_inferior): Remove.
10773 (mi_interp::init): Use range-based for to iterate over inferiors.
10774
10775 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10776
10777 * python/py-inferior.c (build_inferior_list): Remove.
10778 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10779
10780 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10781
10782 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10783 (btrace_stitch_trace): Likewise.
10784 * charset.c (intermediate_encoding): Likewise (vaild).
10785 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10786 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10787 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10788
10789 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10790
10791 * windows-tdep.c (windows_get_tlb_type):
10792 Add rtl_user_process_parameters type.
10793
10794 2020-01-16 Pedro Alves <palves@redhat.com>
10795 Norbert Lange <nolange79@gmail.com>
10796
10797 PR build/24805
10798 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10799 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10800 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10801 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10802 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10803 (ps_plog): Redeclare exported functions with default visibility.
10804
10805 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10806
10807 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10808 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10809
10810 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10811
10812 * infcmd.c (post_create_inferior): Use get_thread_regcache
10813 instead of get_current_regcache.
10814
10815 2020-01-14 Tom Tromey <tom@tromey.com>
10816
10817 PR symtab/12535:
10818 * python/python.c (gdbpy_decode_line): Treat empty string the same
10819 as no argument.
10820
10821 2020-01-14 Tom Tromey <tom@tromey.com>
10822
10823 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10824
10825 2020-01-14 Tom Tromey <tom@tromey.com>
10826
10827 * nat/linux-btrace.c: Don't include <config.h>.
10828 * nat/linux-ptrace.c: Don't include <config.h>.
10829 * nat/x86-linux-dregs.c: Don't include <config.h>.
10830
10831 2020-01-14 Tom Tromey <tom@tromey.com>
10832
10833 * configure: Rebuild.
10834 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10835
10836 2020-01-14 Tom Tromey <tom@tromey.com>
10837
10838 * nat/x86-linux-dregs.c: Include configh.h.
10839 * nat/linux-ptrace.c: Include configh.h.
10840 * nat/linux-btrace.c: Include configh.h.
10841 * defs.h: Include config.h, bfd.h.
10842 * configure.ac: Don't source common.host.
10843 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10844 * configure: Rebuild.
10845 * acinclude.m4: Update path.
10846 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10847 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10848 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10849 (CLIBS): Add LIBSUPPORT.
10850 (CDEPS): Likewise.
10851 (COMMON_SFILES): Remove gdbsupport files.
10852 (HFILES_NO_SRCDIR): Likewise.
10853 (stamp-version): Update path to create-version.sh.
10854 (ALLDEPFILES): Remove gdbsupport files.
10855
10856 2020-01-14 Tom Tromey <tom@tromey.com>
10857
10858 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10859 USE_WIN32API when needed.
10860 * configure.ac (USE_WIN32API): Don't define.
10861 (WIN32LIBS): Use WIN32APILIBS.
10862 * configure: Rebuild.
10863
10864 2020-01-14 Tom Tromey <tom@tromey.com>
10865
10866 * configure: Rebuild.
10867 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10868
10869 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10870
10871 * skip.c (skip_function_command): Make skip w/o arguments use the
10872 name of the inlined function if pc is inside any inlined function.
10873
10874 2020-01-14 Luis Machado <luis.machado@linaro.org>
10875
10876 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10877 * infrun.c (resume_1): Likewise.
10878 (handle_inferior_event): Remove stale comment.
10879 * linux-nat.c (linux_nat_target::resume): Update comments.
10880 (save_stop_reason): Likewise.
10881 (linux_nat_filter_event): Likewise.
10882 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10883
10884 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10885
10886 * elfread.c (record_minimal_symbol): Set section index to 0 for
10887 non-allocatable sections.
10888
10889
10890 2020-01-13 Ali Tamur <tamur@google.com>
10891
10892 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10893 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10894 to gdb::optional. Update comments.
10895 (dwo_file): Update comments.
10896 (read_attribute): Update API to take an additional out parameter,
10897 need_reprocess. This is used to mark attributes that need other
10898 attributes (e.g. str_offsets_base) for correct computation which may not
10899 have been read yet.
10900 (read_attribute_reprocess): New function declaration.
10901 (read_addr_index): Likewise.
10902 (read_dwo_str_index): Likewise.
10903 (read_stub_str_index): Likewise.
10904 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10905 (lookup_addr_base): New function definition.
10906 (lookup_ranges_base): Likewise.
10907 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10908 lookup_ranges_base.
10909 (init_cutu_and_read_dies): Update comments.
10910 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10911 unit. This is used to inherit parent's str_offsets_base and addr_base.
10912 Update comments.
10913 (init_cutu_and_read_dies_simple): Reflect API changes.
10914 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10915 (create_cus_hash_table): Change API to take parent compile unit.
10916 Reflect API changes.
10917 (open_and_init_dwo_file): Reflect API changes.
10918 (dwarf2_get_pc_bounds): Update comments.
10919 (dwarf2_record_block_ranges): Likewise.
10920 (read_full_die_1): Change implementation to reprocess attributes that
10921 need str_offsets_base and addr_base.
10922 (partial_die_info::read): Likewise.
10923 (read_attribute_reprocess): New function definition.
10924 (read_attribute_value): Change API to take an additional out parameter,
10925 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10926 when a non-dwo compile unit has index based attributes.
10927 (read_attribute): Reflect API changes.
10928 (read_addr_index_1): Reflect API changes. Update comments.
10929 (dwarf2_read_addr_index_data): Reflect API changes.
10930 (dwarf2_read_addr_index): Likewise.
10931 (read_str_index): Change API and implementation. This becomes a helper
10932 to be used by the new string index related methods. Update error
10933 message and comments.
10934 (read_dwo_str_index): New function definition.
10935 (read_stub_str_index): Likewise.
10936 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10937 * symfile.h (dwarf2_debug_sections): Likewise.
10938 * xcoffread.c (dwarf2_debug_sections): Likewise.
10939
10940 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10941
10942 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10943 core_reg_sect type to gdb_byte *.
10944 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10945 * cris-tdep.c (fetch_core_registers): Likewise.
10946 * corelow.c (core_target::get_core_register_section): Change
10947 type of `contents` to gdb::byte_vector.
10948
10949 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10950
10951 * tui/tui-wingeneral.c (box_win): Position the title in the center
10952 of the border.
10953
10954 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10955
10956 * corelow.c (core_target::get_core_register_section): Use
10957 std::vector instead of alloca.
10958
10959 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10960
10961 * warning.m4: Add -Wmissing-declarations to build_warnings.
10962 * configure: Re-generate.
10963
10964 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10965
10966 * python/python.c (init__gdb_module): Add declaration.
10967
10968 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10969
10970 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10971 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10972 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10973 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10974 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10975 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10976 * ada-exp.y (_initialize_ada_exp): Add declaration.
10977 * ada-lang.c (_initialize_ada_language): Add declaration.
10978 * ada-tasks.c (_initialize_tasks): Add declaration.
10979 * agent.c (_initialize_agent): Add declaration.
10980 * aix-thread.c (_initialize_aix_thread): Add declaration.
10981 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10982 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10983 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10984 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10985 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10986 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10987 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10988 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10989 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10990 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10991 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10992 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10993 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10994 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10995 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10996 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10997 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10998 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10999 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11000 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11001 * annotate.c (_initialize_annotate): Add declaration.
11002 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11003 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11004 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11005 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11006 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11007 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11008 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11009 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11010 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11011 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11012 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11013 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11014 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11015 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11016 * auto-load.c (_initialize_auto_load): Add declaration.
11017 * auxv.c (_initialize_auxv): Add declaration.
11018 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11019 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11020 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11021 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11022 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11023 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11024 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11025 * breakpoint.c (_initialize_breakpoint): Add declaration.
11026 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11027 * btrace.c (_initialize_btrace): Add declaration.
11028 * charset.c (_initialize_charset): Add declaration.
11029 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11030 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11031 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11032 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11033 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11034 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11035 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11036 * coffread.c (_initialize_coffread): Add declaration.
11037 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11038 * compile/compile.c (_initialize_compile): Add declaration.
11039 * complaints.c (_initialize_complaints): Add declaration.
11040 * completer.c (_initialize_completer): Add declaration.
11041 * copying.c (_initialize_copying): Add declaration.
11042 * corefile.c (_initialize_core): Add declaration.
11043 * corelow.c (_initialize_corelow): Add declaration.
11044 * cp-abi.c (_initialize_cp_abi): Add declaration.
11045 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11046 * cp-support.c (_initialize_cp_support): Add declaration.
11047 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11048 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11049 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11050 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11051 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11052 * ctfread.c (_initialize_ctfread): Add declaration.
11053 * d-lang.c (_initialize_d_language): Add declaration.
11054 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11055 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11056 * dbxread.c (_initialize_dbxread): Add declaration.
11057 * dcache.c (_initialize_dcache): Add declaration.
11058 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11059 * disasm.c (_initialize_disasm): Add declaration.
11060 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11061 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11062 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11063 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11064 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11065 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11066 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11067 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11068 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11069 * elfread.c (_initialize_elfread): Add declaration.
11070 * exec.c (_initialize_exec): Add declaration.
11071 * extension.c (_initialize_extension): Add declaration.
11072 * f-lang.c (_initialize_f_language): Add declaration.
11073 * f-valprint.c (_initialize_f_valprint): Add declaration.
11074 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11075 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11076 * filesystem.c (_initialize_filesystem): Add declaration.
11077 * findcmd.c (_initialize_mem_search): Add declaration.
11078 * findvar.c (_initialize_findvar): Add declaration.
11079 * fork-child.c (_initialize_fork_child): Add declaration.
11080 * frame-base.c (_initialize_frame_base): Add declaration.
11081 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11082 * frame.c (_initialize_frame): Add declaration.
11083 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11084 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11085 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11086 * gcore.c (_initialize_gcore): Add declaration.
11087 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11088 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11089 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11090 * gdbarch.c (_initialize_gdbarch): Add declaration.
11091 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11092 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11093 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11094 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11095 * go-lang.c (_initialize_go_language): Add declaration.
11096 * go32-nat.c (_initialize_go32_nat): Add declaration.
11097 * guile/guile.c (_initialize_guile): Add declaration.
11098 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11099 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11100 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11101 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11102 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11103 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11104 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11105 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11106 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11107 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11108 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11109 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11110 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11111 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11112 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11113 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11114 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11115 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11116 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11117 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11118 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11119 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11120 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11121 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11122 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11123 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11124 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11125 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11126 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11127 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11128 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11129 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11130 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11131 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11132 * infcall.c (_initialize_infcall): Add declaration.
11133 * infcmd.c (_initialize_infcmd): Add declaration.
11134 * inflow.c (_initialize_inflow): Add declaration.
11135 * infrun.c (_initialize_infrun): Add declaration.
11136 * interps.c (_initialize_interpreter): Add declaration.
11137 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11138 * jit.c (_initialize_jit): Add declaration.
11139 * language.c (_initialize_language): Add declaration.
11140 * linux-fork.c (_initialize_linux_fork): Add declaration.
11141 * linux-nat.c (_initialize_linux_nat): Add declaration.
11142 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11143 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11144 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11145 * m2-lang.c (_initialize_m2_language): Add declaration.
11146 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11147 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11148 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11149 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11150 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11151 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11152 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11153 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11154 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11155 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11156 * machoread.c (_initialize_machoread): Add declaration.
11157 * macrocmd.c (_initialize_macrocmd): Add declaration.
11158 * macroscope.c (_initialize_macroscope): Add declaration.
11159 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11160 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11161 * maint.c (_initialize_maint_cmds): Add declaration.
11162 * mdebugread.c (_initialize_mdebugread): Add declaration.
11163 * memattr.c (_initialize_mem): Add declaration.
11164 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11165 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11166 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11167 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11168 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11169 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11170 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11171 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11172 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11173 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11174 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11175 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11176 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11177 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11178 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11179 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11180 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11181 * mipsread.c (_initialize_mipsread): Add declaration.
11182 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11183 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11184 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11185 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11186 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11187 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11188 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11189 * nto-procfs.c (_initialize_procfs): Add declaration.
11190 * objc-lang.c (_initialize_objc_language): Add declaration.
11191 * observable.c (_initialize_observer): Add declaration.
11192 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11193 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11194 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11195 * osabi.c (_initialize_gdb_osabi): Add declaration.
11196 * osdata.c (_initialize_osdata): Add declaration.
11197 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11198 * parse.c (_initialize_parse): Add declaration.
11199 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11200 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11201 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11202 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11203 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11204 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11205 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11206 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11207 * printcmd.c (_initialize_printcmd): Add declaration.
11208 * probe.c (_initialize_probe): Add declaration.
11209 * proc-api.c (_initialize_proc_api): Add declaration.
11210 * proc-events.c (_initialize_proc_events): Add declaration.
11211 * proc-service.c (_initialize_proc_service): Add declaration.
11212 * procfs.c (_initialize_procfs): Add declaration.
11213 * producer.c (_initialize_producer): Add declaration.
11214 * psymtab.c (_initialize_psymtab): Add declaration.
11215 * python/python.c (_initialize_python): Add declaration.
11216 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11217 * record-btrace.c (_initialize_record_btrace): Add declaration.
11218 * record-full.c (_initialize_record_full): Add declaration.
11219 * record.c (_initialize_record): Add declaration.
11220 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11221 * regcache.c (_initialize_regcache): Add declaration.
11222 * reggroups.c (_initialize_reggroup): Add declaration.
11223 * remote-notif.c (_initialize_notif): Add declaration.
11224 * remote-sim.c (_initialize_remote_sim): Add declaration.
11225 * remote.c (_initialize_remote): Add declaration.
11226 * reverse.c (_initialize_reverse): Add declaration.
11227 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11228 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11229 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11230 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11231 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11232 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11233 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11234 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11235 Add declaration.
11236 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11237 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11238 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11239 * rust-exp.y (_initialize_rust_exp): Add declaration.
11240 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11241 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11242 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11243 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11244 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11245 * score-tdep.c (_initialize_score_tdep): Add declaration.
11246 * ser-go32.c (_initialize_ser_dos): Add declaration.
11247 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11248 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11249 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11250 * ser-uds.c (_initialize_ser_socket): Add declaration.
11251 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11252 * serial.c (_initialize_serial): Add declaration.
11253 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11254 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11255 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11256 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11257 * skip.c (_initialize_step_skip): Add declaration.
11258 * sol-thread.c (_initialize_sol_thread): Add declaration.
11259 * solib-aix.c (_initialize_solib_aix): Add declaration.
11260 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11261 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11262 * solib-frv.c (_initialize_frv_solib): Add declaration.
11263 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11264 * solib-target.c (_initialize_solib_target): Add declaration.
11265 * solib.c (_initialize_solib): Add declaration.
11266 * source-cache.c (_initialize_source_cache): Add declaration.
11267 * source.c (_initialize_source): Add declaration.
11268 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11269 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11270 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11271 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11272 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11273 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11274 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11275 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11276 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11277 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11278 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11279 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11280 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11281 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11282 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11283 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11284 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11285 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11286 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11287 * stabsread.c (_initialize_stabsread): Add declaration.
11288 * stack.c (_initialize_stack): Add declaration.
11289 * stap-probe.c (_initialize_stap_probe): Add declaration.
11290 * std-regs.c (_initialize_frame_reg): Add declaration.
11291 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11292 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11293 * symfile.c (_initialize_symfile): Add declaration.
11294 * symmisc.c (_initialize_symmisc): Add declaration.
11295 * symtab.c (_initialize_symtab): Add declaration.
11296 * target.c (_initialize_target): Add declaration.
11297 * target-connection.c (_initialize_target_connection): Add
11298 declaration.
11299 * target-dcache.c (_initialize_target_dcache): Add declaration.
11300 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11301 * thread.c (_initialize_thread): Add declaration.
11302 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11303 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11304 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11305 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11306 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11307 * tracectf.c (_initialize_ctf): Add declaration.
11308 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11309 * tracefile.c (_initialize_tracefile): Add declaration.
11310 * tracepoint.c (_initialize_tracepoint): Add declaration.
11311 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11312 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11313 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11314 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11315 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11316 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11317 * tui/tui.c (_initialize_tui): Add declaration.
11318 * typeprint.c (_initialize_typeprint): Add declaration.
11319 * ui-style.c (_initialize_ui_style): Add declaration.
11320 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11321 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11322 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11323 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11324 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11325 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11326 * unittests/filtered_iterator-selftests.c
11327 (_initialize_filtered_iterator_selftests): Add declaration.
11328 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11329 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11330 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11331 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11332 * unittests/main-thread-selftests.c
11333 (_initialize_main_thread_selftests): Add declaration.
11334 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11335 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11336 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11337 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11338 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11339 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11340 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11341 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11342 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11343 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11344 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11345 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11346 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11347 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11348 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11349 declaration.
11350 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11351 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11352 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11353 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11354 * user-regs.c (_initialize_user_regs): Add declaration.
11355 * utils.c (_initialize_utils): Add declaration.
11356 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11357 * valops.c (_initialize_valops): Add declaration.
11358 * valprint.c (_initialize_valprint): Add declaration.
11359 * value.c (_initialize_values): Add declaration.
11360 * varobj.c (_initialize_varobj): Add declaration.
11361 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11362 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11363 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11364 * windows-nat.c (_initialize_windows_nat): Add declaration.
11365 (_initialize_check_for_gdb_ini): Add declaration.
11366 (_initialize_loadable): Add declaration.
11367 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11368 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11369 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11370 * xcoffread.c (_initialize_xcoffread): Add declaration.
11371 * xml-support.c (_initialize_xml_support): Add declaration.
11372 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11373 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11374 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11375 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11376
11377 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11378
11379 * regformats/regdat.sh: Generate declaration for init function.
11380
11381 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11382
11383 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11384 up.
11385 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11386 close_one_inferior>: New methods.
11387 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11388 pass down target to find_inferior_pid.
11389 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11390 Pass down target to find_inferior_ptid.
11391 (gdbsim_target::create_inferior): Pass down target to
11392 add_thread_silent.
11393 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11394 target down to find_inferior_ptid and switch_to_thread.
11395 (gdbsim_target::close): Update to call close_one_inferior.
11396 (struct resume_data): Remove.
11397 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11398 directly, rather than through a void pointer.
11399 (gdbsim_target::resume): Update to call resume_one_inferior.
11400
11401 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11402
11403 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11404
11405 2020-01-12 Pedro Alves <palves@redhat.com>
11406
11407 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11408 directly for the current inferior instead of
11409 discard_all_inferiors.
11410 (discard_all_inferiors): Delete.
11411
11412 2020-01-11 Tom Tromey <tom@tromey.com>
11413
11414 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11415 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11416 deprecated_safe_get_selected_frame.
11417
11418 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11419
11420 * inferior.c (print_inferior): Switch inferior before printing it.
11421
11422 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11423 Pedro Alves <palves@redhat.com>
11424
11425 * progspace-and-thread.c (switch_to_program_space_and_thread):
11426 Assert there's an inferior for PSPACE. Use
11427 switch_to_inferior_no_thread to switch the inferior too.
11428 * progspace.c (program_space::~program_space): Call
11429 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11430 (program_space::free_all_objfiles): Don't call clear_symtab_users
11431 here.
11432 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11433
11434 2020-01-10 Pedro Alves <palves@redhat.com>
11435
11436 * NEWS: Mention multi-target debugging, "info connections", and
11437 "add-inferior -no-connection".
11438
11439 2020-01-10 Pedro Alves <palves@redhat.com>
11440
11441 * infrun.c: Include "target-connection.h".
11442 (check_multi_target_resumption): New.
11443 (proceed): Call it.
11444 * target-connection.c (make_target_connection_string): Make
11445 extern.
11446 * target-connection.h (make_target_connection_string): Declare.
11447
11448 2020-01-10 Pedro Alves <palves@redhat.com>
11449
11450 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11451 * inferior.c (uiout_field_connection): New function.
11452 (print_inferior): Add new "connection-id" column.
11453 (add_inferior_command): Show connection number/string of added
11454 inferior.
11455 * process-stratum-target.h
11456 (process_stratum_target::connection_string): New virtual method.
11457 (process_stratum_target::connection_number): New field.
11458 * remote.c (remote_target::connection_string): New override.
11459 * target-connection.c: New file.
11460 * target-connection.h: New file.
11461 * target.c (decref_target): Remove process_stratum targets from
11462 the connection list.
11463 (target_stack::push): Add process_stratum targets to the
11464 connection list.
11465
11466 2020-01-10 Pedro Alves <palves@redhat.com>
11467
11468 Revert:
11469 2016-04-12 Pedro Alves <palves@redhat.com>
11470 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11471 Remove references to name.
11472 * serial.h (struct serial) <name>: Delete.
11473
11474 2020-01-10 Pedro Alves <palves@redhat.com>
11475
11476 * gdbarch-selftests.c (register_to_value_test): Remove "target
11477 already pushed" check.
11478
11479 2020-01-10 Pedro Alves <palves@redhat.com>
11480 John Baldwin <jhb@FreeBSD.org>
11481
11482 * aarch64-linux-nat.c
11483 (aarch64_linux_nat_target::thread_architecture): Adjust.
11484 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11485 (task_command_1): Likewise.
11486 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11487 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11488 (aix_thread_target::store_registers)
11489 (aix_thread_target::thread_alive): Adjust.
11490 * amd64-fbsd-tdep.c: Include "inferior.h".
11491 (amd64fbsd_get_thread_local_address): Pass down target.
11492 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11493 thread's gdbarch instead of target_gdbarch.
11494 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11495 get_last_target_status.
11496 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11497 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11498 inferiors.
11499 (update_inserted_breakpoint_locations): Skip if inferiors with no
11500 execution.
11501 (update_global_location_list): When handling moribund locations,
11502 find representative inferior for location's pspace, and use thread
11503 count of its process_stratum target.
11504 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11505 * bsd-uthread.c (bsd_uthread_target::wait): Use
11506 as_process_stratum_target and adjust thread_change_ptid and
11507 add_thread calls.
11508 (bsd_uthread_target::update_thread_list): Use
11509 as_process_stratum_target and adjust find_thread_ptid,
11510 thread_change_ptid and add_thread calls.
11511 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11512 find_thread_ptid call.
11513 * corelow.c (add_to_thread_list): Adjust add_thread call.
11514 (core_target_open): Adjust add_thread_silent and thread_count
11515 calls.
11516 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11517 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11518 * event-top.c (async_disconnect): Pop targets from all inferiors.
11519 * exec.c (add_target_sections): Push exec target on all inferiors
11520 sharing the program space.
11521 (remove_target_sections): Remove the exec target from all
11522 inferiors sharing the program space.
11523 (exec_on_vfork): New.
11524 * exec.h (exec_on_vfork): Declare.
11525 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11526 Pass it down.
11527 (fbsd_nat_target::update_thread_list): Adjust.
11528 (fbsd_nat_target::resume): Adjust.
11529 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11530 down.
11531 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11532 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11533 get_thread_arch_regcache call.
11534 * fork-child.c (gdb_startup_inferior): Pass target down to
11535 startup_inferior and set_executing.
11536 * gdbthread.h (struct process_stratum_target): Forward declare.
11537 (add_thread, add_thread_silent, add_thread_with_info)
11538 (in_thread_list): Add process_stratum_target parameter.
11539 (find_thread_ptid(inferior*, ptid_t)): New overload.
11540 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11541 parameter.
11542 (all_threads()): Delete overload.
11543 (all_threads, all_non_exited_threads): Add process_stratum_target
11544 parameter.
11545 (all_threads_safe): Use brace initialization.
11546 (thread_count): Add process_stratum_target parameter.
11547 (set_resumed, set_running, set_stop_requested, set_executing)
11548 (threads_are_executing, finish_thread_state): Add
11549 process_stratum_target parameter.
11550 (switch_to_thread): Use is_current_thread.
11551 * i386-fbsd-tdep.c: Include "inferior.h".
11552 (i386fbsd_get_thread_local_address): Pass down target.
11553 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11554 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11555 have_inferiors check.
11556 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11557 (inf_ptrace_target::attach): Adjust.
11558 * infcall.c (run_inferior_call): Adjust.
11559 * infcmd.c (run_command_1): Pass target to
11560 scoped_finish_thread_state.
11561 (proceed_thread_callback): Skip inferiors with no execution.
11562 (continue_command): Rename 'all_threads' local to avoid hiding
11563 'all_threads' function. Adjust get_last_target_status call.
11564 (prepare_one_step): Adjust set_running call.
11565 (signal_command): Use user_visible_resume_target. Compare thread
11566 pointers instead of inferior_ptid.
11567 (info_program_command): Adjust to pass down target.
11568 (attach_command): Mark target's 'thread_executing' flag.
11569 (stop_current_target_threads_ns): New, factored out from ...
11570 (interrupt_target_1): ... this. Switch inferior before making
11571 target calls.
11572 * inferior-iter.h
11573 (struct all_inferiors_iterator, struct all_inferiors_range)
11574 (struct all_inferiors_safe_range)
11575 (struct all_non_exited_inferiors_range): Filter on
11576 process_stratum_target too. Remove explicit.
11577 * inferior.c (inferior::inferior): Push dummy target on target
11578 stack.
11579 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11580 Add process_stratum_target parameter, and pass it down.
11581 (have_live_inferiors): Adjust.
11582 (switch_to_inferior_and_push_target): New.
11583 (add_inferior_command, clone_inferior_command): Handle
11584 "-no-connection" parameter. Use
11585 switch_to_inferior_and_push_target.
11586 (_initialize_inferior): Mention "-no-connection" option in
11587 the help of "add-inferior" and "clone-inferior" commands.
11588 * inferior.h: Include "process-stratum-target.h".
11589 (interrupt_target_1): Use bool.
11590 (struct inferior) <push_target, unpush_target, target_is_pushed,
11591 find_target_beneath, top_target, process_target, target_at,
11592 m_stack>: New.
11593 (discard_all_inferiors): Delete.
11594 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11595 (all_inferiors, all_non_exited_inferiors): Add
11596 process_stratum_target parameter.
11597 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11598 (target_last_proc_target): New global.
11599 (follow_fork_inferior): Push target on new inferior. Pass target
11600 to add_thread_silent. Call exec_on_vfork. Handle target's
11601 reference count.
11602 (follow_fork): Adjust get_last_target_status call. Also consider
11603 target.
11604 (follow_exec): Push target on new inferior.
11605 (struct execution_control_state) <target>: New field.
11606 (user_visible_resume_target): New.
11607 (do_target_resume): Call target_async.
11608 (resume_1): Set target's threads_executing flag. Consider resume
11609 target.
11610 (commit_resume_all_targets): New.
11611 (proceed): Also consider resume target. Skip threads of inferiors
11612 with no execution. Commit resumtion in all targets.
11613 (start_remote): Pass current inferior to wait_for_inferior.
11614 (infrun_thread_stop_requested): Consider target as well. Pass
11615 thread_info pointer to clear_inline_frame_state instead of ptid.
11616 (infrun_thread_thread_exit): Consider target as well.
11617 (random_pending_event_thread): New inferior parameter. Use it.
11618 (do_target_wait): Rename to ...
11619 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11620 down.
11621 (threads_are_resumed_pending_p, do_target_wait): New.
11622 (prepare_for_detach): Adjust calls.
11623 (wait_for_inferior): New inferior parameter. Handle it. Use
11624 do_target_wait_1 instead of do_target_wait.
11625 (fetch_inferior_event): Adjust. Switch to representative
11626 inferior. Pass target down.
11627 (set_last_target_status): Add process_stratum_target parameter.
11628 Save target in global.
11629 (get_last_target_status): Add process_stratum_target parameter and
11630 handle it.
11631 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11632 (context_switch): Check inferior_ptid == null_ptid before calling
11633 inferior_thread().
11634 (get_inferior_stop_soon): Pass down target.
11635 (wait_one): Rename to ...
11636 (poll_one_curr_target): ... this.
11637 (struct wait_one_event): New.
11638 (wait_one): New.
11639 (stop_all_threads): Adjust.
11640 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11641 event's target.
11642 (switch_back_to_stepped_thread): Also consider target.
11643 (print_stop_event): Update.
11644 (normal_stop): Update. Also consider the resume target.
11645 * infrun.h (wait_for_inferior): Remove declaration.
11646 (user_visible_resume_target): New declaration.
11647 (get_last_target_status, set_last_target_status): New
11648 process_stratum_target parameter.
11649 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11650 process_stratum_target parameter, and use it.
11651 (clear_inline_frame_state (thread_info*)): New.
11652 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11653 process_stratum_target parameter.
11654 (clear_inline_frame_state (thread_info*)): Declare.
11655 * linux-fork.c (delete_checkpoint_command): Pass target down to
11656 find_thread_ptid.
11657 (checkpoint_command): Adjust.
11658 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11659 instead of just tweaking inferior_ptid.
11660 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11661 (exit_lwp): Pass target down to find_thread_ptid.
11662 (attach_proc_task_lwp_callback): Pass target down to
11663 add_thread/set_running/set_executing.
11664 (linux_nat_target::attach): Pass target down to
11665 thread_change_ptid.
11666 (get_detach_signal): Pass target down to find_thread_ptid.
11667 Consider last target status's target.
11668 (linux_resume_one_lwp_throw, resume_lwp)
11669 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11670 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11671 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11672 (linux_nat_target::async_wait_fd): New.
11673 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11674 target down.
11675 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11676 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11677 * linux-thread-db.c (struct thread_db_info::process_target): New
11678 field.
11679 (add_thread_db_info): Save target.
11680 (get_thread_db_info): New process_stratum_target parameter. Also
11681 match target.
11682 (delete_thread_db_info): New process_stratum_target parameter.
11683 Also match target.
11684 (thread_from_lwp): Adjust to pass down target.
11685 (thread_db_notice_clone): Pass down target.
11686 (check_thread_db_callback): Pass down target.
11687 (try_thread_db_load_1): Always push the thread_db target.
11688 (try_thread_db_load, record_thread): Pass target down.
11689 (thread_db_target::detach): Pass target down. Always unpush the
11690 thread_db target.
11691 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11692 target down. Always unpush the thread_db target.
11693 (find_new_threads_callback, thread_db_find_new_threads_2)
11694 (thread_db_target::update_thread_list): Pass target down.
11695 (thread_db_target::pid_to_str): Pass current inferior down.
11696 (thread_db_target::get_thread_local_address): Pass target down.
11697 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11698 target down.
11699 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11700 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11701 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11702 (procfs_init_inferior): Rename to ...
11703 (procfs_target::procfs_init_inferior): ... this and adjust.
11704 (procfs_target::create_inferior, procfs_notice_thread)
11705 (procfs_do_thread_registers): Adjust.
11706 * ppc-fbsd-tdep.c: Include "inferior.h".
11707 (ppcfbsd_get_thread_local_address): Pass down target.
11708 * proc-service.c (ps_xfer_memory): Switch current inferior and
11709 program space as well.
11710 (get_ps_regcache): Pass target down.
11711 * process-stratum-target.c
11712 (process_stratum_target::thread_address_space)
11713 (process_stratum_target::thread_architecture): Pass target down.
11714 * process-stratum-target.h
11715 (process_stratum_target::threads_executing): New field.
11716 (as_process_stratum_target): New.
11717 * ravenscar-thread.c
11718 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11719 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11720 down.
11721 * record-btrace.c (record_btrace_target::info_record): Adjust.
11722 (record_btrace_target::record_method)
11723 (record_btrace_target::record_is_replaying)
11724 (record_btrace_target::fetch_registers)
11725 (get_thread_current_frame_id, record_btrace_target::resume)
11726 (record_btrace_target::wait, record_btrace_target::stop): Pass
11727 target down.
11728 * record-full.c (record_full_wait_1): Switch to event thread.
11729 Pass target down.
11730 * regcache.c (regcache::regcache)
11731 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11732 process_stratum_target parameter and handle it.
11733 (current_thread_target): New global.
11734 (get_thread_regcache): Add process_stratum_target parameter and
11735 handle it. Switch inferior before calling target method.
11736 (get_thread_regcache): Pass target down.
11737 (get_thread_regcache_for_ptid): Pass target down.
11738 (registers_changed_ptid): Add process_stratum_target parameter and
11739 handle it.
11740 (registers_changed_thread, registers_changed): Pass target down.
11741 (test_get_thread_arch_aspace_regcache): New.
11742 (current_regcache_test): Define a couple local test_target_ops
11743 instances and use them for testing.
11744 (readwrite_regcache): Pass process_stratum_target parameter.
11745 (cooked_read_test, cooked_write_test): Pass mock_target down.
11746 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11747 (get_thread_arch_aspace_regcache): Add process_stratum_target
11748 parameter.
11749 (regcache::target): New method.
11750 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11751 (regcache::registers_changed_ptid): Add process_stratum_target
11752 parameter.
11753 (regcache::m_target): New field.
11754 (registers_changed_ptid): Add process_stratum_target parameter.
11755 * remote.c (remote_state::supports_vCont_probed): New field.
11756 (remote_target::async_wait_fd): New method.
11757 (remote_unpush_and_throw): Add remote_target parameter.
11758 (get_current_remote_target): Adjust.
11759 (remote_target::remote_add_inferior): Push target.
11760 (remote_target::remote_add_thread)
11761 (remote_target::remote_notice_new_inferior)
11762 (get_remote_thread_info): Pass target down.
11763 (remote_target::update_thread_list): Skip threads of inferiors
11764 bound to other targets. (remote_target::close): Don't discard
11765 inferiors. (remote_target::add_current_inferior_and_thread)
11766 (remote_target::process_initial_stop_replies)
11767 (remote_target::start_remote)
11768 (remote_target::remote_serial_quit_handler): Pass down target.
11769 (remote_target::remote_unpush_target): New remote_target
11770 parameter. Unpush the target from all inferiors.
11771 (remote_target::remote_unpush_and_throw): New remote_target
11772 parameter. Pass it down.
11773 (remote_target::open_1): Check whether the current inferior has
11774 execution instead of checking whether any inferior is live. Pass
11775 target down.
11776 (remote_target::remote_detach_1): Pass down target. Use
11777 remote_unpush_target.
11778 (extended_remote_target::attach): Pass down target.
11779 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11780 (remote_target::append_resumption): Pass down target.
11781 (remote_target::append_pending_thread_resumptions)
11782 (remote_target::remote_resume_with_hc, remote_target::resume)
11783 (remote_target::commit_resume): Pass down target.
11784 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11785 (remote_target::interrupt_query)
11786 (remote_target::remove_new_fork_children)
11787 (remote_target::check_pending_events_prevent_wildcard_vcont)
11788 (remote_target::remote_parse_stop_reply)
11789 (remote_target::process_stop_reply): Pass down target.
11790 (first_remote_resumed_thread): New remote_target parameter. Pass
11791 it down.
11792 (remote_target::wait_as): Pass down target.
11793 (unpush_and_perror): New remote_target parameter. Pass it down.
11794 (remote_target::readchar, remote_target::remote_serial_write)
11795 (remote_target::getpkt_or_notif_sane_1)
11796 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11797 down target.
11798 (remote_target::mourn_inferior): Pass down target. Use
11799 remote_unpush_target.
11800 (remote_target::core_of_thread)
11801 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11802 (remote_target::pid_to_exec_file)
11803 (remote_target::thread_handle_to_thread_info): Pass down target.
11804 (remote_target::async_wait_fd): New.
11805 * riscv-fbsd-tdep.c: Include "inferior.h".
11806 (riscv_fbsd_get_thread_local_address): Pass down target.
11807 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11808 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11809 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11810 Adjust.
11811 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11812 * solib-svr4.c (enable_break): Pass down target.
11813 * spu-multiarch.c (parse_spufs_run): Pass down target.
11814 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11815 * target-delegates.c: Regenerate.
11816 * target.c (g_target_stack): Delete.
11817 (current_top_target): Return the current inferior's top target.
11818 (target_has_execution_1): Refer to the passed-in inferior's top
11819 target.
11820 (target_supports_terminal_ours): Check whether the initial
11821 inferior was already created.
11822 (decref_target): New.
11823 (target_stack::push): Incref/decref the target.
11824 (push_target, push_target, unpush_target): Adjust.
11825 (target_stack::unpush): Defref target.
11826 (target_is_pushed): Return bool. Adjust to refer to the current
11827 inferior's target stack.
11828 (dispose_inferior): Delete, and inline parts ...
11829 (target_preopen): ... here. Only dispose of the current inferior.
11830 (target_detach): Hold strong target reference while detaching.
11831 Pass target down.
11832 (target_thread_name): Add assertion.
11833 (target_resume): Pass down target.
11834 (target_ops::beneath, find_target_at): Adjust to refer to the
11835 current inferior's target stack.
11836 (get_dummy_target): New.
11837 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11838 has a thread running.
11839 (initialize_targets): Rename to ...
11840 (_initialize_target): ... this.
11841 * target.h: Include "gdbsupport/refcounted-object.h".
11842 (struct target_ops): Inherit refcounted_object.
11843 (target_ops::shortname, target_ops::longname): Make const.
11844 (target_ops::async_wait_fd): New method.
11845 (decref_target): Declare.
11846 (struct target_ops_ref_policy): New.
11847 (target_ops_ref): New typedef.
11848 (get_dummy_target): Declare function.
11849 (target_is_pushed): Return bool.
11850 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11851 (all_matching_threads_iterator::all_matching_threads_iterator):
11852 Handle filter target.
11853 * thread-iter.h (struct all_matching_threads_iterator, struct
11854 all_matching_threads_range, class all_non_exited_threads_range):
11855 Filter by target too. Remove explicit.
11856 * thread.c (threads_executing): Delete.
11857 (inferior_thread): Pass down current inferior.
11858 (clear_thread_inferior_resources): Pass down thread pointer
11859 instead of ptid_t.
11860 (add_thread_silent, add_thread_with_info, add_thread): Add
11861 process_stratum_target parameter. Use it for thread and inferior
11862 searches.
11863 (is_current_thread): New.
11864 (thread_info::deletable): Use it.
11865 (find_thread_ptid, thread_count, in_thread_list)
11866 (thread_change_ptid, set_resumed, set_running): New
11867 process_stratum_target parameter. Pass it down.
11868 (set_executing): New process_stratum_target parameter. Pass it
11869 down. Adjust reference to 'threads_executing'.
11870 (threads_are_executing): New process_stratum_target parameter.
11871 Adjust reference to 'threads_executing'.
11872 (set_stop_requested, finish_thread_state): New
11873 process_stratum_target parameter. Pass it down.
11874 (switch_to_thread): Also match inferior.
11875 (switch_to_thread): New process_stratum_target parameter. Pass it
11876 down.
11877 (update_threads_executing): Reimplement.
11878 * top.c (quit_force): Pop targets from all inferior.
11879 (gdb_init): Don't call initialize_targets.
11880 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11881 Declare.
11882 (windows_add_thread, windows_delete_thread): Adjust.
11883 (get_windows_debug_event): Rename to ...
11884 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11885 * tracefile-tfile.c (tfile_target_open): Pass down target.
11886 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11887 Forward declare.
11888 (switch_to_thread): Add process_stratum_target parameter.
11889 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11890 parameter. Use it.
11891 (mi_on_resume): Pass target down.
11892 * nat/fork-inferior.c (startup_inferior): Add
11893 process_stratum_target parameter. Pass it down.
11894 * nat/fork-inferior.h (startup_inferior): Add
11895 process_stratum_target parameter.
11896 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11897
11898 2020-01-10 Pedro Alves <palves@redhat.com>
11899
11900 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11901 directly. Instead find the first thread in the thread list and
11902 use switch_to_thread.
11903
11904 2020-01-10 Pedro Alves <palves@redhat.com>
11905
11906 * remote.c (remote_target::remote_add_inferior): Don't bind a
11907 process to the current inferior if the current inferior is already
11908 bound to a process.
11909
11910 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11911 Pedro Alves <palves@redhat.com>
11912
11913 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11914 If no process is specified, return null_ptid instead of
11915 inferior_ptid.
11916 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11917 TARGET_WAITKIND_SIGNALLED with no pid.
11918
11919 2020-01-10 Pedro Alves <palves@redhat.com>
11920
11921 * remote.c (first_remote_resumed_thread): New.
11922 (remote_target::wait_as): Use it as default event_ptid instead of
11923 inferior_ptid.
11924
11925 2020-01-10 Pedro Alves <palves@redhat.com>
11926
11927 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11928
11929 2020-01-10 Pedro Alves <palves@redhat.com>
11930
11931 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11932 not -1.
11933
11934 2020-01-10 Pedro Alves <palves@redhat.com>
11935
11936 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11937 ptid to get_last_target_status.
11938 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11939 ptid to get_last_target_status.
11940 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11941 get_last_target_status.
11942 (info_program_command): Don't pass a target_waitstatus to
11943 get_last_target_status.
11944 * infrun.c (init_wait_for_inferior): Use
11945 nullify_last_target_wait_ptid.
11946 (get_last_target_status): Handle nullptr arguments.
11947 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11948 (print_stop_event): Don't pass a ptid to get_last_target_status.
11949 (normal_stop): Don't pass a ptid to get_last_target_status.
11950 * infrun.h (get_last_target_status, set_last_target_status): Move
11951 comments here and update.
11952 (nullify_last_target_wait_ptid): Declare.
11953 * linux-fork.c (fork_load_infrun_state): Remove local extern
11954 declaration of nullify_last_target_wait_ptid.
11955 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11956 to get_last_target_status.
11957
11958 2020-01-10 Pedro Alves <palves@redhat.com>
11959
11960 * gdbthread.h (scoped_restore_current_thread)
11961 <dont_restore, restore, m_dont_restore>: Declare.
11962 * thread.c (thread_alive): Add assertion. Return bool.
11963 (switch_to_thread_if_alive): New.
11964 (prune_threads): Switch inferior/thread.
11965 (print_thread_info_1): Switch thread before calling target methods.
11966 (scoped_restore_current_thread::restore): New, factored out from
11967 ...
11968 (scoped_restore_current_thread::~scoped_restore_current_thread):
11969 ... this.
11970 (scoped_restore_current_thread::scoped_restore_current_thread):
11971 Add assertion.
11972 (thread_apply_all_command, thread_select): Use
11973 switch_to_thread_if_alive.
11974 * infrun.c (proceed, restart_threads, handle_signal_stop)
11975 (switch_back_to_stepped_thread): Switch current thread before
11976 calling target methods.
11977
11978 2020-01-10 Pedro Alves <palves@redhat.com>
11979
11980 * inferior.c (switch_to_inferior_no_thread): New function,
11981 factored out from ...
11982 (inferior_command): ... here.
11983 * inferior.h (switch_to_inferior_no_thread): Declare.
11984 * mi/mi-main.c (run_one_inferior): Use
11985 switch_to_inferior_no_thread.
11986
11987 2020-01-10 Pedro Alves <palves@redhat.com>
11988
11989 * infcmd.c (kill_command): Remove dead code.
11990
11991 2020-01-10 Pedro Alves <palves@redhat.com>
11992
11993 * remote.c (remote_target::mourn_inferior): No longer check
11994 whether the target is running.
11995
11996 2020-01-10 Pedro Alves <palves@redhat.com>
11997
11998 * corelow.c (core_target::has_execution): Change parameter type to
11999 inferior pointer.
12000 * inferior.c (number_of_live_inferiors): Use
12001 inferior::has_execution instead of target_has_execution_1.
12002 * inferior.h (inferior::has_execution): New.
12003 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12004 inferior::has_execution instead of target_has_execution_1.
12005 * process-stratum-target.c
12006 (process_stratum_target::has_execution): Change parameter type to
12007 inferior pointer. Check the inferior's PID instead of
12008 inferior_ptid.
12009 * process-stratum-target.h
12010 (process_stratum_target::has_execution): Change parameter type to
12011 inferior pointer.
12012 * record-full.c (record_full_core_target::has_execution): Change
12013 parameter type to inferior pointer.
12014 * target.c (target_has_execution_1): Change parameter type to
12015 inferior pointer.
12016 (target_has_execution_current): Adjust.
12017 * target.h (target_ops::has_execution): Change parameter type to
12018 inferior pointer.
12019 (target_has_execution_1): Change parameter type to inferior
12020 pointer. Change return type to bool.
12021 * tracefile.h (tracefile_target::has_execution): Change parameter
12022 type to inferior pointer.
12023
12024 2020-01-10 Pedro Alves <palves@redhat.com>
12025
12026 * exceptions.c (print_flush): Remove current_top_target() check.
12027
12028 2020-01-10 Pedro Alves <palves@redhat.com>
12029
12030 * remote.c (show_remote_exec_file): Show the current inferior's
12031 exec-file instead of the command variable's value.
12032
12033 2020-01-10 Pedro Alves <palves@redhat.com>
12034
12035 * record-full.c (record_full_resume_ptid): New global.
12036 (record_full_target::resume): Set it.
12037 (record_full_wait_1): Use record_full_resume_ptid instead of
12038 inferior_ptid.
12039
12040 2020-01-10 Pedro Alves <palves@redhat.com>
12041
12042 * gdbthread.h (scoped_restore_current_thread)
12043 <dont_restore, restore, m_dont_restore>: Declare.
12044 * thread.c (thread_alive): Add assertion. Return bool.
12045 (switch_to_thread_if_alive): New.
12046 (prune_threads): Switch inferior/thread.
12047 (print_thread_info_1): Switch thread before calling target methods.
12048 (scoped_restore_current_thread::restore): New, factored out from
12049 ...
12050 (scoped_restore_current_thread::~scoped_restore_current_thread):
12051 ... this.
12052 (scoped_restore_current_thread::scoped_restore_current_thread):
12053 Add assertion.
12054 (thread_apply_all_command, thread_select): Use
12055 switch_to_thread_if_alive.
12056
12057 2020-01-10 George Barrett <bob@bob131.so>
12058
12059 * stap-probe.c (stap_modify_semaphore): Don't check for null
12060 semaphores.
12061 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12062 for null semaphores.
12063
12064 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12065
12066 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12067 all source windows, and maintain horizontal scroll status while
12068 doing so.
12069
12070 2020-01-09 Tom Tromey <tom@tromey.com>
12071
12072 PR tui/18932:
12073 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12074 update_source_window, not print_source_lines.
12075
12076 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12077
12078 * tui/tui.c (tui_enable): Register tui hooks after calling
12079 tui_display_main.
12080
12081 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12082
12083 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12084
12085 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12086
12087 * thread.c (print_thread_info_1): Fix indentation.
12088
12089 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12090
12091 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12092 unique_xmalloc_ptr outside the if to always free the demangled name.
12093
12094 2020-01-08 Tom Tromey <tromey@adacore.com>
12095
12096 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12097 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12098 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12099 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12100 Remove.
12101 (section_offsets): New typedef.
12102 * symtab.c (fixup_section, get_msymbol_address): Update.
12103 * symmisc.c (dump_msymbols): Update.
12104 * symfile.h (relative_addr_info_to_section_offsets)
12105 (symfile_map_offsets_to_segments): Update.
12106 * symfile.c (build_section_addr_info_from_objfile)
12107 (init_objfile_sect_indices): Update.
12108 (struct place_section_arg): Change type of "offsets".
12109 (place_section): Update.
12110 (relative_addr_info_to_section_offsets): Change type of
12111 "section_offsets". Remove "num_sections" parameter.
12112 (default_symfile_offsets, syms_from_objfile_1)
12113 (set_objfile_default_section_offset): Update.
12114 (reread_symbols): No need to preserve section offsets by hand.
12115 (symfile_map_offsets_to_segments): Change type of "offsets".
12116 * stap-probe.c (relocate_address): Update.
12117 * stabsread.h (process_one_symbol): Update.
12118 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12119 (solib_target_relocate_section_addresses): Update.
12120 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12121 Update.
12122 * solib-frv.c (frv_relocate_main_executable): Update.
12123 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12124 * solib-aix.c (solib_aix_get_section_offsets): Change return
12125 type.
12126 (solib_aix_solib_create_inferior_hook): Update.
12127 * remote.c (remote_target::get_offsets): Update.
12128 * psymtab.c (find_pc_sect_psymtab): Update.
12129 * psympriv.h (struct partial_symbol) <address, text_low,
12130 text_high>: Update.
12131 * objfiles.h (obj_section_offset): Update.
12132 (struct objfile) <section_offsets>: Change type.
12133 <num_sections>: Remove.
12134 (objfile_relocate): Update.
12135 * objfiles.c (entry_point_address_query): Update
12136 (relocate_one_symbol): Change type of "section_offsets".
12137 (objfile_relocate1, objfile_relocate1): Change type of
12138 "new_offsets".
12139 (objfile_rebase1): Update.
12140 * mipsread.c (mipscoff_symfile_read): Update.
12141 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12142 parameter.
12143 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12144 (parse_external, psymtab_to_symtab_1): Update.
12145 * machoread.c (macho_symfile_offsets): Update.
12146 * ia64-tdep.c (ia64_find_unwind_table): Update.
12147 * hppa-tdep.c (read_unwind_info): Update.
12148 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12149 * dwarf2read.c (create_addrmap_from_index)
12150 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12151 (process_psymtab_comp_unit_reader, add_partial_symbol)
12152 (add_partial_subprogram, process_full_comp_unit)
12153 (read_file_scope, read_func_scope, read_lexical_block_scope)
12154 (read_call_site_scope, dwarf2_rnglists_process)
12155 (dwarf2_ranges_process, dwarf2_ranges_read)
12156 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12157 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12158 Update.
12159 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12160 Update.
12161 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12162 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12163 (process_one_symbol): Change type of "section_offsets".
12164 * ctfread.c (get_objfile_text_range): Update.
12165 * coffread.c (coff_symtab_read, enter_linenos)
12166 (process_coff_symbol): Update.
12167 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12168 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12169
12170 2020-01-08 Tom Tromey <tromey@adacore.com>
12171
12172 * dwarf2read.c (parse_macro_definition): Use std::string.
12173 (parse_macro_definition): Likewise.
12174
12175 2020-01-08 Tom Tromey <tromey@adacore.com>
12176
12177 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12178 (ATTR_ALLOC_CHUNK): Remove.
12179
12180 2020-01-08 Tom Tromey <tromey@adacore.com>
12181
12182 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12183
12184 2020-01-08 Tom Tromey <tromey@adacore.com>
12185
12186 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12187 (dwarf2_compute_name, open_dwo_file): Likewise.
12188 (process_enumeration_scope): Use std::vector.
12189 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12190 (partial_die_info::fixup, dwarf2_start_subfile)
12191 (guess_full_die_structure_name, dwarf2_name): Likewise.
12192 (determine_prefix): Update.
12193 (guess_full_die_structure_name): Make return type const.
12194 (partial_die_full_name): Return unique_xmalloc_ptr.
12195 (DW_FIELD_ALLOC_CHUNK): Remove.
12196
12197 2020-01-07 Tom Tromey <tromey@adacore.com>
12198
12199 PR build/24937:
12200 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12201
12202 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12203
12204 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12205
12206 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12207
12208 * stack.c (print_frame_info): Move disassemble_next_line code
12209 inside source_print block.
12210
12211 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12212
12213 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12214 gdb/signals.h, as we are now using native signal symbols.
12215
12216 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12217
12218 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12219 overflow by an early check of content vs threshold.
12220 * tui/tui-source.c (tui_source_window::line_is_displayed):
12221 Likewise.
12222
12223 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12224
12225 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12226
12227 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12228
12229 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12230 export table if no section contains it's RVA.
12231
12232 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12233
12234 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12235
12236 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12237
12238 * source.c (print_source_lines_base): Set last_line_listed.
12239
12240 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12241
12242 * tui/tui-disasm.c: Remove trailing spaces.
12243
12244 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12245 Pedro Alves <palves@redhat.com>
12246
12247 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12248 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12249 (windows_gdb_signal_to_target): New function, uses the above
12250 enumeration to convert GDB internal signal codes to equivalent
12251 Windows codes.
12252 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12253 * windows-nat.c: Include "gdb_wait.h".
12254 (get_windows_debug_event): Extract the fatal exception from the
12255 exit status and convert to the equivalent Posix signal number.
12256 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12257 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12258 * gdbsupport/gdb_wait.c: New file, implements
12259 windows_status_to_termsig.
12260 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12261 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12262
12263 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12264
12265 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12266 show_layout.
12267
12268 2020-01-05 Luis Machado <luis.machado@linaro.org>
12269
12270 * aarch64-linux-nat.c
12271 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12272 and bfd_mach_aarch64.
12273
12274 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12275
12276 * ui-file.c (stdio_file::can_emit_style_escape)
12277 (tee_file::can_emit_style_escape): Ensure style is used also on
12278 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12279 to gdb_stdout.
12280 * main.c (set_gdb_data_directory): Use file style to output the
12281 warning that the given pathname is not a directory.
12282 * top.c (show_history_filename, gdb_safe_append_history)
12283 (show_gdb_datadir): Use file style.
12284
12285 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12286
12287 * solib-target.c (struct lm_info_target):
12288 Change offsets to be a unique_xmalloc_ptr.
12289 (solib_target_relocate_section_addresses): Update.
12290
12291 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12292
12293 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12294
12295 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12296
12297 * MAINTAINERS (Write After Approval): Add myself.
12298
12299 2020-01-02 Luis Machado <luis.machado@linaro.org>
12300
12301 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12302 Cell BE architecture.
12303 * target.h (struct target_ops) <thread_architecture>: Likewise.
12304
12305 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12306
12307 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12308
12309 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12310
12311 * MAINTAINERS (Write After Approval): Add myself.
12312
12313 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12314
12315 * gdbarch.sh: Update copyright year range of generated files.
12316
12317 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12318
12319 Update copyright year range in all GDB files.
12320
12321 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12322
12323 * copyright.py: Convert to Python 3.
12324
12325 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12326
12327 * copyright.py: Adapt after move of gnulib directory from gdb
12328 directory to toplevel directory.
12329
12330 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12331
12332 * copyright.py (main): Exit if run from the wrong directory.
12333
12334 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12335
12336 * top.c (print_gdb_version): Change copyright year to 2020.
12337
12338 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12339
12340 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12341
12342 For older changes see ChangeLog-2019.
12343 \f
12344 Local Variables:
12345 mode: change-log
12346 left-margin: 8
12347 fill-column: 74
12348 version-control: never
12349 coding: utf-8
12350 End: