Rename address_space_int_to_name/address_space_name_to_int
[binutils-gdb.git] / gdb / ChangeLog
1 2020-09-14 Pedro Alves <pedro@palves.net>
2
3 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4 * gdbtypes.c (address_space_name_to_int): Rename to ...
5 (address_space_name_to_type_instance_flags): ... this.
6 (address_space_int_to_name): Rename to ...
7 (address_space_type_instance_flags_to_name): ... this.
8 * gdbtypes.h (address_space_name_to_int): Rename to ...
9 (address_space_name_to_type_instance_flags): ... this.
10 (address_space_int_to_name): Rename to ...
11 (address_space_type_instance_flags_to_name): ... this.
12 * type-stack.c (type_stack::insert): Adjust to rename.
13 * type-stack.h (type_stack::insert): Likewise.
14
15 2020-09-14 Pedro Alves <pedro@palves.net>
16 Andrew Burgess <andrew.burgess@embecosm.com>
17
18 * avr-tdep.c (avr_address_class_type_flags): Return
19 type_instance_flags.
20 (avr_address_class_type_flags_to_name): Take a
21 type_instance_flags.
22 (avr_address_class_name_to_type_flags): Return bool and take a
23 type_instance_flags.
24 * d-lang.c (build_d_types): Use type::set_instance_flags.
25 * ft32-tdep.c (ft32_address_class_type_flags): Return
26 type_instance_flags.
27 (ft32_address_class_type_flags_to_name): Take a
28 type_instance_flags.
29 (ft32_address_class_name_to_type_flags): Return bool and take a
30 type_instance_flags.
31 (ft32_gdbarch_init): Use type::set_instance_flags.
32 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
33 * gdbarch.h, gdbarch.c: Regenerate.
34 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
35 (address_class_name_to_type_flags): Use type_instance_flags and
36 bool.
37 * gdbtypes.c (address_space_name_to_int)
38 (address_space_int_to_name, make_qualified_type): Use
39 type_instance_flags.
40 (make_qualified_type): Use type_instance_flags and
41 type::set_instance_flags.
42 (make_type_with_address_space, make_cv_type, make_vector_type)
43 (check_typedef): Use type_instance_flags.
44 (recursive_dump_type): Cast type_instance_flags to unsigned for
45 printing.
46 (copy_type_recursive): Use type::set_instance_flags.
47 (gdbtypes_post_init): Use type::set_instance_flags.
48 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
49 <m_instance_flags>: ... this.
50 <instance_flags, set_instance_flags>: New methods.
51 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
52 (SET_TYPE_INSTANCE_FLAGS): New.
53 (address_space_name_to_int, address_space_int_to_name)
54 (make_type_with_address_space): Pass flags using
55 type_instance_flags instead of int.
56 * stabsread.c (cleanup_undefined_types_noname): Use
57 type::set_instance_flags.
58 * s390-tdep.c (s390_address_class_type_flags): Return
59 type_instance_flags.
60 (s390_address_class_type_flags_to_name): Take a
61 type_instance_flags.
62 (s390_address_class_name_to_type_flags): Return bool and take a
63 type_instance_flags.
64 * type-stack.c (type_stack::follow_types): Use
65 type_instance_flags.
66 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
67
68 2020-09-14 Tom Tromey <tromey@adacore.com>
69
70 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
71 * x86-tdep.c (x86_is_thunk_register_name)
72 (x86_in_indirect_branch_thunk): Update.
73 * sparc64-tdep.c (sparc64_fpu_register_names)
74 (sparc64_cp0_register_names, sparc64_register_names)
75 (sparc64_pseudo_register_names): Now const.
76 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
77 cp0_registers_num>: Now const.
78 * sparc-tdep.c (sparc_core_register_names)
79 (sparc32_fpu_register_names, sparc32_cp0_register_names)
80 (sparc32_pseudo_register_names): Now const.
81 (validate_tdesc_registers): Update.
82 * rust-lang.c (rust_extensions): Now const.
83 * p-lang.c (p_extensions): Now const.
84 * objc-lang.c (objc_extensions): Now const.
85 * nto-tdep.c (nto_thread_state_str): Now const.
86 * moxie-tdep.c (moxie_register_names): Now const.
87 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
88 Now const.
89 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
90 (mips_linux_reg_names): Now const.
91 (mips_gdbarch_init): Update.
92 * microblaze-tdep.c (microblaze_register_names): Now const.
93 * m68k-tdep.c (m68k_register_names): Now const.
94 * m32r-tdep.c (m32r_register_names): Now const.
95 * ia64-tdep.c (ia64_register_names): Now const.
96 * i386-tdep.h (struct gdbarch_tdep) <register_names,
97 ymmh_register_names, ymm16h_regnum, mpx_register_names,
98 k_register_names, zmmh_register_names, xmm_avx512_register_names,
99 ymm_avx512_register_names, pkeys_register_names>: Now const.
100 * i386-tdep.c (i386_register_names, i386_zmm_names)
101 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
102 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
103 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
104 * f-lang.c (f_extensions): Now const.
105 * d-lang.c (d_extensions): Now const.
106 * csky-tdep.c (csky_register_names): Now const.
107 * charset.c (default_charset_names, charset_enum): Now const.
108 (_initialize_charset): Update.
109 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
110 const.
111 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
112 (bsd_uthread_solib_loaded): Update.
113 (bsd_uthread_state): Now const.
114 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
115 (amd64_ymm_avx512_names, amd64_ymmh_names)
116 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
117 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
118 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
119 (amd64_dword_names): Now const.
120 * agent.c (can_use_agent_enum): Now const.
121 * ada-tasks.c (task_states, long_task_states): Now const.
122 * ada-lang.c (known_runtime_file_name_patterns)
123 (known_auxiliary_function_name_patterns, attribute_names)
124 (standard_exc, ada_extensions): Now const.
125
126 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
127
128 * bcache.h (struct bcache) <bcache>: Remove constructor.
129 <m_hash_function, m_compare_function>: Remove.
130 <~bcache>: Make virtual.
131 <compare>: Remove static method, introduce virtual method.
132 <default_hash>: Remove.
133 <hash>: New virtual method.
134 * bcache.c (bcache::expand_hash_table): Update.
135 (bcache::insert): Update.
136 (bcache::hash): New.
137 (bcache::compare): Update comment and parameter names.
138 * gdbtypes.c (types_deeply_equal): Update.
139 * psymtab.h (struct psymbol_bcache): New struct.
140 (class psymtab_storage) <psymtab_storage>: Make default.
141 <psymbol_cache>: Change type to psymbol_bcache.
142 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
143 (psymbol_hash): Change to...
144 (psymbol_bcache::hash): ... this.
145 (psymbol_compare): Change to...
146 (psymbol_bcache::compare): ... this.
147
148 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
149
150 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
151 checking for initial lwp.
152
153 2020-09-14 Tom Tromey <tromey@adacore.com>
154
155 * m68k-tdep.c (m68k_extract_return_value): Use
156 pointer_result_regnum.
157 (m68k_store_return_value): Likewise.
158 (m68k_reg_struct_return_p): Handle vectors and arrays.
159 (m68k_return_value): Handle arrays.
160 (m68k_svr4_return_value): Fix single-element aggregate handling.
161 Handle long double. Adjust for embedded ABI.
162 (m68k_svr4_init_abi): Set pointer_result_regnum.
163 (m68k_embedded_init_abi): New function.
164 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
165 (m68k_osabi_sniffer): New function.
166 (_initialize_m68k_tdep): Register osabi sniffer.
167 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
168 member.
169
170 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
171
172 * xml-support.c (xml_fetch_content_from_file): Replace xfree
173 with gdb::unique_xmalloc_ptr<char>.
174
175 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
176
177 * xml-support.h (xml_fetch_another): Change type to be a
178 function_view.
179 (xml_process_xincludes): Remove baton parameter.
180 (xml_fetch_content_from_file): Change baton parameter to
181 dirname.
182 * xml-support.c (struct xinclude_parsing_data)
183 <xinclude_parsing_data>: Remove baton parameter.
184 <fetcher_baton>: Remove.
185 (xinclude_start_include): Adjust.
186 (xml_process_xincludes): Adjust.
187 (xml_fetch_content_from_file): Replace baton parameter with
188 dirname.
189 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
190 (xml_init_syscalls_info): Use a lambda.
191 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
192 (file_read_description_xml): Use a lambda.
193 (fetch_available_features_from_target): Change baton parameter
194 to target_ops.
195 (target_read_description_xml): Use a lambda.
196 (target_fetch_description_xml): Use a lambda.
197 (string_read_description_xml): Update.
198
199 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
200
201 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
202 uses with type::endianity_is_not_default.
203
204 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
205
206 * gdbtypes.h (struct type) <endianity_is_not_default,
207 set_endianity_is_not_default>: New methods.
208 (TYPE_ENDIANITY_NOT_DEFAULT): Use
209 type::endianity_is_not_default, change all write call sites to
210 use type::set_endianity_is_not_default.
211
212 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
213
214 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
215 uses with type::is_fixed_instance.
216
217 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
218
219 * gdbtypes.h (struct type) <is_fixed_instance,
220 set_is_fixed_instance>: New methods.
221 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
222 write call sites to use type::set_is_fixed_instance.
223
224 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
225
226 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
227 uses with type::is_gnu_ifunc.
228
229 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
230
231 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
232 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
233 use type::set_is_gnu_ifunc.
234
235 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
236
237 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
238 uses with type::stub_is_supported.
239
240 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
241
242 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
243 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
244 use type::set_stub_is_supported.
245
246 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
247
248 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
249 uses with type::is_vector.
250
251 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
252
253 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
254 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
255 use type::set_is_vector.
256
257 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
258
259 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
260 uses with type::has_varargs.
261
262 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
263
264 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
265 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
266 use type::set_has_varargs.
267
268 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
269
270 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
271 uses with type::is_prototyped.
272
273 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
274
275 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
276 New methods.
277 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
278 call sites to use type::set_is_prototyped.
279
280 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
281
282 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
283 uses with type::target_is_stub.
284
285 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
286
287 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
288 New methods.
289 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
290 sites to use type::set_target_is_stub.
291
292 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
293
294 * gdbtypes.h (TYPE_STUB): Remove, replace all
295 uses with type::is_stub.
296
297 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
298
299 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
300 (TYPE_STUB): Use type::is_stub, change all write call sites to
301 use type::set_is_stub.
302
303 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
304
305 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
306 type::has_no_signedness.
307
308 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
309
310 * gdbtypes.h (struct type) <has_no_signedness,
311 set_has_no_signedness>: New methods.
312 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
313 call sites to use type::set_has_no_signedness.
314
315 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
316
317 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
318 type::is_unsigned.
319
320 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
321
322 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
323 methods.
324 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
325 sites to use type::set_is_unsigned.
326
327 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
328 Adam Renquinha <arenquinha@cimeq.qc.ca>
329
330 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
331 pointer and stack frame offset when unwinding.
332
333 2020-09-13 Pedro Alves <pedro@palves.net>
334
335 * NEWS: Document "-break-insert --qualified".
336 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
337
338 2020-09-13 Pedro Alves <pedro@palves.net>
339
340 * linespec.c (classify_mtype, compare_msyms): Delete.
341 (search_minsyms_for_name): Remove classification logic. Instead
342 filter out trampoline symbols if we also found an external
343 function of the same name.
344
345 2020-09-13 Joel Brobecker <brobecker@adacore.com>
346
347 * NEWS: Create a new section for the next release branch.
348 Rename the section of the current branch, now that it has
349 been cut.
350
351 2020-09-13 Joel Brobecker <brobecker@adacore.com>
352
353 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
354 * version.in: Bump version to 11.0.50.DATE-git.
355
356 2020-09-12 Joel Brobecker <brobecker@adacore.com>
357
358 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
359
360 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
361 Felix Willgerodt <Felix.Willgerodt@intel.com>
362
363 * gdbarch.sh: Added bfloat16 type.
364 * gdbarch.c: Regenerated.
365 * gdbarch.h: Regenerated.
366 * gdbtypes.c (floatformats_bfloat16): New struct.
367 (gdbtypes_post_init): Add builtin_bfloat16.
368 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
369 (floatformats_bfloat16): New struct.
370 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
371 (i386_ymm_type): Add field "v16_bfloat16"
372 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
373 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
374 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
375 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
376 * features/i386/64bit-avx512.xml: Add bfloat16 type.
377 * features/i386/64bit-avx512.c: Regenerated.
378 * features/i386/64bit-sse.xml: Add bfloat16 type.
379 * features/i386/64bit-sse.c: Regenerated.
380
381 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
382
383 * i386-tdep.c (i386_zmm_type): Fix field names.
384 (i386_ymm_type): Fix field names.
385
386 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
387
388 * breakpoint.c: Fix typo in the help message of the
389 "set breakpoint condition-evaluation" command.
390
391 2020-09-10 Kamil Rytarowski <n54@gmx.com>
392
393 * nbsd-nat.c: Include "nat/netbsd-nat.h".
394 * (nbsd_nat_target::pid_to_exec_file)
395 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
396 (nbsd_nat_target::post_startup_inferior)
397 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
398 (nbsd_add_threads): Switch local code to common gdb/nat functions.
399 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
400 * (nbsd_thread_lister): Remove.
401
402 2020-09-10 Kamil Rytarowski <n54@gmx.com>
403
404 * fork-inferior.c (startup_inferior): Avoid double free.
405
406 2020-09-10 Kamil Rytarowski <n54@gmx.com>
407
408 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
409 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
410
411 2020-09-10 Kamil Rytarowski <n54@gmx.com>
412
413 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
414 * netbsd-nat.c: Include <sys/ptrace.h>.
415 * (netbsd_nat::enable_proc_events): Add.
416
417 2020-09-10 Kamil Rytarowski <n54@gmx.com>
418
419 * netbsd-nat.h: Include "gdbsupport/function-view.h".
420 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
421 (netbsd_nat::for_each_thread): Add.
422 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
423 "gdbsupport/common-debug.h".
424 * (netbsd_nat::netbsd_thread_lister)
425 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
426 (netbsd_nat::for_each_thread): Add.
427
428 2020-09-10 Kamil Rytarowski <n54@gmx.com>
429
430 * netbsd-nat.h: Include <unistd.h>.
431 * (netbsd_nat::pid_to_exec_file): Add.
432 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
433 * (netbsd_nat::pid_to_exec_file) Add.
434
435 2020-09-10 Kamil Rytarowski <n54@gmx.com>
436
437 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
438
439 2020-09-10 Kamil Rytarowski <n54@gmx.com>
440
441 * netbsd-nat.h: New file.
442 * netbsd-nat.c: Likewise.
443
444 2020-09-09 Tom Tromey <tromey@adacore.com>
445
446 * ada-lang.c (remove_extra_symbols): Do not increment when
447 removing an element
448
449 2020-09-08 Tom Tromey <tromey@adacore.com>
450
451 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
452
453 2020-09-08 Tom Tromey <tromey@adacore.com>
454
455 PR win32/25302:
456 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
457 (gdb_bfd_init_data): New function.
458 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
459
460 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
461
462 * infrun.c (fetch_inferior_event): Use
463 `switch_to_target_no_thread` to switch the target.
464
465 2020-09-06 Tom Tromey <tom@tromey.com>
466
467 * symfile.h (dwarf2_free_objfile): Don't declare.
468
469 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
470
471 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
472 to match 16 byte real/complex type generated by Flang compiler.
473
474 2020-09-03 Tom de Vries <tdevries@suse.de>
475
476 PR breakpoint/26546
477 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
478 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
479
480 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
481
482 * maint.c (index_digits): New function.
483 (struct maint_print_section_data): Remove.
484 (print_bfd_section_info): Remove print_data parameter, add arg
485 and index_digits.
486 (print_objfile_section_info): Likewise.
487 (print_bfd_section_info_maybe_relocated): Likewise (plus
488 objfile).
489 (maintenance_info_sections): Adjust calls.
490
491 2020-09-02 Tom Tromey <tromey@adacore.com>
492
493 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
494 for null pointers.
495 (ada_varobj_adjust_for_child_access): Special-case null pointers.
496
497 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
498
499 * bcache.h (struct bcache) <insert>: Change type of `added` to
500 pointer to bool.
501 * bcache.c (bcache::insert): Likewise.
502 * gdbtypes.c (check_types_worklist): Adjust.
503 * psymtab.c (add_psymbol_to_bcache): Adjust.
504
505 2020-08-31 Kevin Buettner <kevinb@redhat.com>
506
507 * corelow.c (unordered_set): Include.
508 (class core_target): Add field 'm_core_unavailable_mappings'.
509 (core_target::build_file_mappings): Print only one warning
510 per inaccessible file. Add unavailable/broken mappings
511 to m_core_unavailable_mappings.
512 (core_target::xfer_partial): Call...
513 (core_target::xfer_memory_via_mappings): New method.
514
515 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
516
517 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
518 type to bool.
519
520 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
521
522 * dwarf2/read.c (struct field_info): Fix indentation.
523
524 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
525
526 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
527 ordering in comment.
528 * frame.c (frame_id_eq): Fix indentation.
529
530 2020-08-31 Scott Linder <scott@scottlinder.com>
531 Simon Marchi <simon.marchi@efficios.com>
532
533 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
534 inline frame ids in outer frame.
535
536 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
537
538 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
539 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
540 (outer_frame_id): Use FID_STACK_OUTER instead of
541 FID_STACK_INVALID.
542 (frame_id_p): Don't check for outer_frame_id.
543
544 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
545
546 * frame-unwind.c (frame_unwind_got_optimized): Don't set
547 regnum/frame in value. Call allocate_value_lazy.
548 * frame.c (frame_unwind_register_value): Use
549 val_print_not_saved.
550
551 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
552
553 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
554
555 2020-08-29 Pedro Alves <pedro@palves.net>
556
557 * progspace.c (print_program_space): Use all_inferiors. Switch to
558 the inferior before calling target_pid_to_str.
559
560 2020-08-28 Tom Tromey <tom@tromey.com>
561
562 * xcoffread.c (xcoff_end_psymtab): Update comment.
563 * dbxread.c (dbx_end_psymtab): Update comment.
564
565 2020-08-28 Tom de Vries <tdevries@suse.de>
566
567 PR breakpoint/26544
568 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
569 event_location.
570 (create_breakpoint): Same.
571 (base_breakpoint_decode_location): Same.
572 (bkpt_create_sals_from_location): Same.
573 (bkpt_decode_location): Same.
574 (bkpt_probe_create_sals_from_location): Same.
575 (bkpt_probe_decode_location): Same.
576 (tracepoint_create_sals_from_location): Same.
577 (tracepoint_decode_location): Same.
578 (tracepoint_probe_decode_location): Same.
579 (strace_marker_create_sals_from_location): Same.
580 (strace_marker_decode_location): Same.
581 (create_sals_from_location_default): Same.
582 (decode_location_default): Same.
583 * breakpoint.h (struct breakpoint_ops): Same.
584 (create_breakpoint): Same.
585 * linespec.h (decode_line_full): Same.
586 * linespec.c (decode_line_full): Same. Throw error if
587 result.size () == 0.
588
589 2020-08-27 Pedro Alves <pedro@palves.net>
590
591 PR gdb/26524
592 * breakpoint.c (until_break_fsm) <location_breakpoint,
593 caller_breakpoint>: Delete fields.
594 <breakpoints>: New field.
595 <until_break_fsm>: Adjust to save a breakpoint vector instead of
596 two individual breakpoints.
597 (until_break_fsm::should_stop): Loop over breakpoints in the
598 breakpoint vector.
599 (until_break_fsm::clean_up): Adjust to clear the breakpoints
600 vector.
601 (until_break_command): Handle location expanding into multiple
602 sals.
603
604 2020-08-27 Pedro Alves <pedro@palves.net>
605
606 PR gdb/26523
607 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
608 bp_until breakpoints user-specified locations. Update intro
609 comment.
610
611 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
612
613 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
614 gdb_bfd_sections): New.
615 * maint.c (print_bfd_section_info): Change param type to
616 maint_print_section_data.
617 (print_objfile_section_info): Likewise.
618 (print_bfd_section_info_maybe_relocated): Likewise.
619 (maintenance_info_sections): Use gdb_bfd_sections.
620
621 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
622
623 * MAINTAINERS: Add ARC target and maintainer.
624
625 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
626
627 * configure.tgt: ARC support for GNU/Linux.
628 * Makefile.in (ALL_TARGET_OBJS): Likewise.
629 * arc-linux-tdep.c: New file.
630 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
631 * arc-tdep.c (arc_write_pc): Use it.
632
633 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
634
635 * arc-tdep.c (arc_check_for_hardware_loop): New.
636 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
637
638 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
639
640 * arc-tdep.h: Include "gdbarch.h".
641
642 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
643
644 * arch/arc.h
645 (arc_gdbarch_features): New class to stir the selection of target XML.
646 (arc_create_target_description): Use FEATURES to choose XML target.
647 (arc_lookup_target_description): Use arc_create_target_description
648 to create _new_ target descriptions or return the already created
649 ones if the FEATURES is the same.
650 * arch/arc.c: Implementation of prototypes described above.
651 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
652 (arc_gdbarch_features_init): Initialize the FEATURES struct.
653 * arc-tdep.c (*_feature_name): Make feature names consistent.
654 (arc_register_feature): A new struct to hold information about
655 registers of a particular target/feature.
656 (arc_check_tdesc_feature): Check if XML provides registers in
657 compliance with ARC_REGISTER_FEATURE structs.
658 (arc_update_acc_reg_names): Add aliases for r58 and r59.
659 (determine_*_reg_feature_set): Which feature name to look for.
660 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
661 (mach_type_to_arc_isa): Convert from a set of binutils machine types
662 to expected ISA enums to be used in arc_gdbarch_features structs.
663 * features/Makefile (FEATURE_XMLFILES): Add new files.
664 * gdb/features/arc/v1-aux.c: New file.
665 * gdb/features/arc/v1-aux.xml: Likewise.
666 * gdb/features/arc/v1-core.c: Likewise.
667 * gdb/features/arc/v1-core.xml: Likewise.
668 * gdb/features/arc/v2-aux.c: Likewise.
669 * gdb/features/arc/v2-aux.xml: Likewise.
670 * gdb/features/arc/v2-core.c: Likewise.
671 * gdb/features/arc/v2-core.xml: Likewise.
672 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
673
674 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
675 Andrew Burgess <andrew.burgess@embecosm.com>
676
677 PR m2/26372
678 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
679 an assert. Remove single element array indexing pattern as the
680 MULTI_SUBSCRIPT support will handle this case too.
681
682 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
683
684 * value.h (valprint_check_validity): Move declaration from
685 here...
686 * valprint.h (valprint_check_validity): ... to here.
687
688 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
689
690 * debug.h: New file.
691 * debug.c (debug_prefixed_vprintf): New function.
692 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
693 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
694
695 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
696
697 * infrun.h (infrun_debug_printf_1): New function declaration.
698 (infrun_debug_printf): New macro.
699 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
700 throughout.
701 (infrun_debug_printf): New function.
702 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
703 (handle_jit_event): Likewise.
704
705 2020-08-21 Mark Wielaard <mark@klomp.org>
706
707 * ada-lex.l: Extend register warnings diagnostics comment for g++.
708
709 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
710
711 * frame.c (enum class frame_id_status): New.
712 (struct frame_info) <this_id::p>: Change type to frame_id_status.
713 (fprintf_frame): Update.
714 (compute_frame_id): Set frame id status to "computing" on entry.
715 Set it back to "not_computed" on failure and to "computed" on
716 success.
717 (get_frame_id): Assert the frame id is not being computed.
718 (create_sentinel_frame): Use frame_id_status::COMPUTED.
719 (create_new_frame): Likewise.
720 (frame_cleanup_after_sniffer): Update assert.
721
722 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
723
724 * regcache.c (pid_ptid_regcache_map): New type.
725 (target_ptid_regcache_map): Remove.
726 (target_pid_ptid_regcache_map): New type.
727 (regcaches): Change type to target_pid_ptid_regcache_map.
728 (get_thread_arch_aspace_regcache): Update.
729 (regcache_thread_ptid_changed): Update, handle pid-like ptid
730 case.
731 (regcaches_size): Update.
732 (regcache_count): Update.
733 (registers_changed_ptid_target_pid_test): New.
734 (_initialize_regcache): Register new test.
735
736 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
737
738 * regcache.c (regcache_count): New.
739 (struct regcache_test_data): New.
740 (regcache_test_data_up): New.
741 (populate_regcaches_for_test): New.
742 (regcaches_test): Remove.
743 (get_thread_arch_aspace_regcache_test): New.
744 (registers_changed_ptid_all_test): New.
745 (registers_changed_ptid_target_test): New.
746 (registers_changed_ptid_target_ptid_test): New.
747 (regcache_thread_ptid_changed): Remove regcache_count lambda.
748 (_initialize_regcache): Register new tests.
749
750 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
751
752 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
753 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
754 gdbarch and aspace parameter. Use current inferior's aspace.
755 Validate regcache's arch value.
756 (regcaches_test): Update.
757
758 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
759
760 * regcache.c (regcaches_test): Call registers_changed.
761
762 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
763
764 * infrun.c (process_event_stop_test): Fix typo "breapoint".
765
766 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
767
768 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
769 to find the end of prologue for flang compiled binaries.
770 * arm-tdep.c (arm_skip_prologue): Likewise.
771 * i386-tdep.c (i386_skip_prologue): Likewise.
772 * producer.c (producer_is_llvm): New function.
773 (producer_parsing_tests): Added new tests for clang/flang.
774 * producer.h (producer_is_llvm): New declaration.
775
776 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
777
778 * linux-nat.c (linux_nat_debug_printf): New function.
779 (linux_nat_debug_printf_1): New macro. Use throughout the file.
780
781 2020-08-18 Aaron Merey <amerey@redhat.com>
782
783 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
784 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
785 (CLIBS): Add DEBUGINFOD_LIBS.
786
787 2020-08-17 Sergei Trofimovich <siarheit@google.com>
788
789 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
790 'gdbarch_num_regs'.
791
792 2020-08-17 Tom Tromey <tromey@adacore.com>
793
794 * ada-varobj.c (ada_varobj_decode_var): Handle case where
795 ada_get_decoded_value returns NULL.
796
797 2020-08-17 Tom Tromey <tromey@adacore.com>
798
799 * python/py-inferior.c (infpy_search_memory): Use
800 gdb_py_object_from_ulongest.
801 * python/py-infevents.c (create_inferior_call_event_object)
802 (create_memory_changed_event_object): Use
803 gdb_py_object_from_ulongest.
804 * python/py-linetable.c (ltpy_entry_get_pc): Use
805 gdb_py_object_from_ulongest.
806
807 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
808
809 * loc.c (class symbol_needs_eval_context): Fix indentation.
810
811 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
812
813 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
814 bool.
815
816 2020-08-17 Tom de Vries <tdevries@suse.de>
817
818 PR gdb/26393
819 * gdbtypes.c (dump_dynamic_prop): New function.
820 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
821
822 2020-08-15 Tom de Vries <tdevries@suse.de>
823
824 PR backtrace/26390
825 * stack.c (print_frame_args): Temporarily set the selected
826 frame to FRAME while printing the frame's arguments.
827
828 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
829
830 PR breakpoints/26385
831 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
832 Always clear watchpoint with PTRACE_SET_DEBUGREG.
833
834 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
835
836 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
837 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
838 and >= to check return value instead of == -1 and != -1.
839
840 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
841
842 * utils.h (class gdb_argv) <as_array_view>: New method.
843 * utils.c (gdb_argv_as_array_view_test): New.
844 (_initialize_utils): Register selftest.
845 * maint.c (maintenance_selftest): Use the new method.
846
847 2020-08-13 Kamil Rytarowski <n54@gmx.com>
848
849 * target.h (supports_dumpcore, dumpcore): New
850 function declarations.
851 * target.c (supports_dumpcore, dumpcore): New
852 functions.
853 * target-delegates.c: Rebuild.
854 * gcore.c (gcore_command): Use target_supports_dumpcore ()
855 and target_dumpcore ().
856
857 2020-08-13 Aaron Merey <amerey@redhat.com>
858
859 * debuginfod-support.c: Replace global variables with user_data.
860
861 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
862
863 * maint.c (maintenance_selftest): Split args and pass array_view
864 to run_tests.
865
866 2020-08-12 Luis Machado <luis.machado@linaro.org>
867
868 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
869 type's length.
870 Use %s and pulongest to print the length.
871
872 2020-08-12 Pedro Alves <palves@redhat.com>
873
874 * NEWS: Move "Multi-target debugging support" item to the
875 "Changes since GDB 9" section.
876
877 2020-08-12 Pedro Alves <palves@redhat.com>
878
879 PR gdb/26336
880 * progspace.c (program_space::remove_objfile): Invalidate the
881 frame cache.
882
883 2020-08-11 Tom de Vries <tdevries@suse.de>
884
885 * MAINTAINERS: Mark ms1 as deleted.
886
887 2020-08-10 Luis Machado <luis.machado@linaro.org>
888
889 PR gdb/26310
890
891 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
892 act accordingly.
893 (aarch64_analyze_prologue_test): Add more unit tests to exercise
894 movz/str/stur/stp skipping behavior.
895
896 2020-08-10 Luis Machado <luis.machado@linaro.org>
897
898 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
899 struct user_sve_header instead of struct sve_context.
900
901 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
902
903 * read.h (dwarf2_fetch_die_loc_sect_off,
904 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
905 `void *` parameter with function_view.
906 * read.c (dwarf2_fetch_die_loc_sect_off,
907 dwarf2_fetch_die_loc_cu_off): Likewise.
908 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
909 (per_cu_dwarf_call): Adjust.
910 (get_frame_address_in_block_wrapper): Remove.
911 (indirect_synthetic_pointer): Adjust.
912 (get_ax_pc): Remove.
913 (dwarf2_compile_expr_to_ax): Adjust.
914
915 2020-08-08 Tom de Vries <tdevries@suse.de>
916
917 PR build/26344
918 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
919 constructor.
920 * regcache.c (get_thread_arch_aspace_regcache): Same.
921
922 2020-08-07 Tom Tromey <tromey@adacore.com>
923
924 * ravenscar-thread.c
925 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
926 New method.
927 (ravenscar_thread_target::wait): Check
928 runtime_initialized.
929 (ravenscar_thread_target::prepare_to_store)
930 (ravenscar_thread_target::stopped_by_sw_breakpoint)
931 (ravenscar_thread_target::stopped_by_hw_breakpoint)
932 (ravenscar_thread_target::stopped_by_watchpoint)
933 (ravenscar_thread_target::stopped_data_address)
934 (ravenscar_thread_target::core_of_thread): Use
935 scoped_restore_current_thread and
936 set_base_thread_from_ravenscar_task.
937
938 2020-08-07 Tom Tromey <tromey@adacore.com>
939
940 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
941
942 2020-08-07 Tom Tromey <tromey@adacore.com>
943
944 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
945 update_inferior_ptid before update_thread_list.
946 (temporarily_change_regcache_ptid): New class.
947 (ravenscar_thread_target::fetch_registers)
948 (ravenscar_thread_target::store_registers)
949 (ravenscar_thread_target::prepare_to_store): Use base thread when
950 forwarding operation.
951
952 2020-08-07 Tom Tromey <tromey@adacore.com>
953
954 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
955 "is_pid" case.
956
957 2020-08-07 Tom Tromey <tromey@adacore.com>
958
959 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
960 New methods.
961 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
962 first.
963 (ravenscar_thread_target::add_thread): Rename from
964 ravenscar_add_thread.
965 (ravenscar_thread_target::update_thread_list): Use a lambda.
966 (ravenscar_thread_target::xfer_partial): New method.
967
968 2020-08-07 Tom Tromey <tromey@adacore.com>
969
970 * ada-lang.h (ada_task_list_iterator_ftype): Now a
971 gdb::function_view.
972 (iterate_over_live_ada_tasks): Change type of argument.
973 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
974 of argument.
975
976 2020-08-07 Tom Tromey <tromey@adacore.com>
977
978 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
979 Remove.
980 (ravenscar_thread_target::extra_thread_info): Remove.
981 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
982 defer to target beneath for non-Ravenscar threads.
983
984 2020-08-07 Tom Tromey <tromey@adacore.com>
985
986 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
987 get_base_thread_from_ravenscar_task>: Now methods.
988 <m_cpu_map>: New member.
989 (ravenscar_thread_target::get_thread_base_cpu): Rename from
990 ravenscar_get_thread_base_cpu. Check m_cpu_map.
991 (ravenscar_thread_target::task_is_currently_active): Update.
992 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
993 Now a method.
994 (ravenscar_thread_target::add_active_thread): Put initial thread
995 into the m_cpu_map.
996
997 2020-08-07 Tom Tromey <tromey@adacore.com>
998
999 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1000 event_ptid.
1001
1002 2020-08-07 Tom Tromey <tromey@adacore.com>
1003
1004 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1005 runtime_initialized.
1006
1007 2020-08-07 Tom Tromey <tromey@adacore.com>
1008
1009 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1010 add_active_thread.
1011 (ravenscar_thread_target::add_active_thread): Now public.
1012 (ravenscar_inferior_created): Call add_active_thread after pushing
1013 the target.
1014
1015 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1016
1017 * regcache.c (ptid_regcache_map): New type.
1018 (target_ptid_regcache_map): New type.
1019 (regcaches): Change type to target_ptid_regcache_map.
1020 (get_thread_arch_aspace_regcache): Update to regcaches' new
1021 type.
1022 (regcache_thread_ptid_changed): Likewise.
1023 (registers_changed_ptid): Likewise.
1024 (regcaches_size): Likewise.
1025 (regcaches_test): Update.
1026 (regcache_thread_ptid_changed): Update.
1027 * regcache.h (regcache_up): New type.
1028 * gdbsupport/ptid.h (hash_ptid): New struct.
1029
1030 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
1031
1032 * observable.h (thread_ptid_changed): Add parameter
1033 `process_stratum_target *`.
1034 * infrun.c (infrun_thread_ptid_changed): Add parameter
1035 `process_stratum_target *` and use it.
1036 (selftests): New namespace.
1037 (infrun_thread_ptid_changed): New function.
1038 (_initialize_infrun): Register selftest.
1039 * regcache.c (regcache_thread_ptid_changed): Add parameter
1040 `process_stratum_target *` and use it.
1041 (regcache_thread_ptid_changed): New function.
1042 (_initialize_regcache): Register selftest.
1043 * thread.c (thread_change_ptid): Pass target to
1044 thread_ptid_changed observable.
1045
1046 2020-08-06 Caroline Tice <cmtice@google.com>
1047
1048 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1049 (struct dwp_sections): Update field comments. Add loclists and
1050 rnglists fields.
1051 (struct virtual_v2_dwo_sections): Rename struct to
1052 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1053 size & offset fields for loclists and rnglists.
1054 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1055 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1056 skipping dummy type units.
1057 (create_dwp_hash_table): Update the large comment above the function to
1058 discuss Version 5 DWP files as well, with references. Update all the
1059 version checks in the function to check for version 5 as well. Add new
1060 section at the end to create dwp hash table for version 5.
1061 (create_dwp_v2_section): Rename function to
1062 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1063 Add V5 to error message text.
1064 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1065 into calls to create_dwp_v2_or_v5_section.
1066 (create_dwo_unit_in_dwp_v5): New function.
1067 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1068 check for version2; add else clause to handle version 5.
1069 (open_and_init_dwo_file): Add code to check dwarf version & only call
1070 create_debug_types_hash_table (with sections.types) if version is not 5;
1071 else call create_debug_type_hash_table, with sections.info.
1072 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1073 version 5.
1074 (dwarf2_locate_v5_dwp_sections): New function.
1075 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1076 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
1077
1078 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1079
1080 * regcache.h (class regcache): Remove friend
1081 registers_changed_ptid.
1082 <regcache_thread_ptid_changed>: Remove.
1083 <regcaches>: Remove.
1084 * regcache.c (regcache::regcaches): Rename to...
1085 (regcaches): ... this. Make static.
1086 (get_thread_arch_aspace_regcache): Update.
1087 (regcache::regcache_thread_ptid_changed): Rename to...
1088 (regcache_thread_ptid_changed): ... this. Update.
1089 (class regcache_access): Remove.
1090 (regcaches_test): Update.
1091 (_initialize_regcache): Update.
1092 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1093 <forward_list>.
1094
1095 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1096
1097 * regcache.h (class regcache) <current_regcache>: Rename to...
1098 <regcaches>: ... this. Move doc here.
1099 * regcache.c (regcache::current_regcache) Rename to...
1100 (regcache::regcaches): ... this. Move doc to header.
1101 (get_thread_arch_aspace_regcache): Update.
1102 (regcache::regcache_thread_ptid_changed): Update.
1103 (registers_changed_ptid): Update.
1104 (class regcache_access) <current_regcache_size>: Rename to...
1105 <regcaches_size>: ... this.
1106 (current_regcache_test): Rename to...
1107 (regcaches_test): ... this.
1108 (_initialize_regcache): Update.
1109
1110 2020-08-06 Victor Collod <vcollod@nvidia.com>
1111
1112 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1113
1114 2020-08-05 Kevin Buettner <kevinb@redhat.com>
1115
1116 * corelow.c (core_target::build_file_mappings): Don't output
1117 null pathname in warning.
1118
1119 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1120
1121 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1122 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1123 gdb.dwarf2/dw2-single-line-discriminators.exp,
1124 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1125
1126 2020-08-05 Tom Tromey <tromey@adacore.com>
1127
1128 PR rust/26197:
1129 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1130 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1131 Fix off-by-one and type size errors in ordinary case.
1132
1133 2020-08-05 Tom de Vries <tdevries@suse.de>
1134
1135 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1136 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1137
1138 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1139
1140 * frame.h (frame_id_p): Return bool.
1141 (frame_id_artificial_p): Return bool.
1142 (frame_id_eq): Return bool.
1143 (has_stack_frames): Return bool.
1144 (get_selected_frame): Fix typo in comment.
1145 (get_frame_pc_if_available): Return bool.
1146 (get_frame_address_in_block_if_available): Return bool.
1147 (get_frame_func_if_available): Return bool.
1148 (read_frame_register_unsigned): Return bool.
1149 (get_frame_register_bytes): Return bool.
1150 (safe_frame_unwind_memory): Return bool.
1151 (deprecated_frame_register_read): Return bool.
1152 (frame_unwinder_is): Return bool.
1153 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1154 bool.
1155 <this_id::p>: Likewise.
1156 <prev_p>: Likewise.
1157 (frame_stash_add): Return bool.
1158 (get_frame_id): Use bool.
1159 (frame_id_build_special) Use bool.
1160 (frame_id_build_unavailable_stack): Use bool.
1161 (frame_id_build): Use bool.
1162 (frame_id_p): Return bool, use true/false instead of 1/0.
1163 (frame_id_artificial_p): Likewise.
1164 (frame_id_eq): Likewise.
1165 (frame_id_inner): Likewise.
1166 (get_frame_func_if_available): Likewise.
1167 (read_frame_register_unsigned): Likewise.
1168 (deprecated_frame_register_read): Likewise.
1169 (get_frame_register_bytes): Likewise.
1170 (has_stack_frames): Likewise.
1171 (inside_main_func): Likewise.
1172 (inside_entry_func): Likewise.
1173 (get_frame_pc_if_available): Likewise.
1174 (get_frame_address_in_block_if_available): Likewise.
1175 (frame_unwinder_is): Likewise.
1176 (safe_frame_unwind_memory): Likewise.
1177 (frame_unwind_arch): Likewise.
1178
1179 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1180
1181 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1182 type to cached_copy_status.
1183 (fprintf_frame): Adjust.
1184 (get_frame_func_if_available): Adjust.
1185 (frame_cleanup_after_sniffer): Adjust.
1186
1187 2020-08-04 Mark Wielaard <mark@klomp.org>
1188
1189 * MAINTAINERS (Write After Approval): Update email address.
1190
1191 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1192
1193 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1194 dynamic_prop::const_val.
1195
1196 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1197
1198 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1199 dynamic_prop::kind.
1200
1201 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1202
1203 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1204
1205 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1206
1207 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1208
1209 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
1210 Jose E. Marchesi <jose.marchesi@oracle.com>
1211
1212 * configure.tgt: Add entry for bpf-*-*.
1213 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1214 (ALLDEPFILES): Add bpf-tdep.c.
1215 * bpf-tdep.c: New file.
1216 * MAINTAINERS: Add bpf target and maintainer.
1217 * NEWS: Mention the support for the new target.
1218
1219 2020-08-04 Tom de Vries <tdevries@suse.de>
1220
1221 PR symtab/23270
1222 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1223 Error.
1224
1225 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1226
1227 * syscalls/freebsd.xml: Regenerate.
1228
1229 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1230
1231 * syscalls/update-freebsd.sh: Fix usage and year range.
1232
1233 2020-08-03 Tom de Vries <tdevries@suse.de>
1234
1235 PR symtab/26333
1236 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1237 DW_LNE_lo_user/DW_LNE_hi_user range.
1238
1239 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1240
1241 PR ada/26318
1242 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1243 kind.
1244
1245 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1246
1247 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1248
1249 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1250
1251 * breakpoint.c (set_breakpoint_condition): Update the condition
1252 expressions after checking that the input condition string parses
1253 successfully and does not contain junk at the end.
1254
1255 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1256
1257 * breakpoint.c (set_breakpoint_condition): Update the
1258 condition string after parsing the new condition successfully.
1259
1260 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1261
1262 * proc-api.c (_STRUCTURED_PROC): Don't define.
1263 * proc-events.c: Likewise.
1264 * proc-flags.c: Likewise.
1265 * proc-why.c: Likewise.
1266 * procfs.c: Likewise.
1267
1268 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1269 * configure, config.in: Regenerate.
1270
1271 2020-07-30 Tom de Vries <tdevries@suse.de>
1272
1273 PR build/26320
1274 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1275 m_red/m_green/m_blue in a union.
1276
1277 2020-07-29 Tom de Vries <tdevries@suse.de>
1278
1279 PR tdep/26280
1280 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1281
1282 2020-07-28 Tom Tromey <tromey@adacore.com>
1283
1284 PR symtab/26270:
1285 * symtab.h (find_pc_partial_function_sym): Declare.
1286 * cli/cli-cmds.c (disassemble_command): Use
1287 find_pc_partial_function_sym. Check asm_demangle.
1288 * blockframe.c (cache_pc_function_sym): New global.
1289 (cache_pc_function_name): Remove.
1290 (clear_pc_function_cache): Update.
1291 (find_pc_partial_function_sym): New function, from
1292 find_pc_partial_function.
1293 (find_pc_partial_function): Rewrite using
1294 find_pc_partial_function_sym.
1295
1296 2020-07-28 Tom Tromey <tromey@adacore.com>
1297
1298 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1299 help. Add usage.
1300
1301 2020-07-28 Tom Tromey <tromey@adacore.com>
1302
1303 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1304 <DW_OP_GNU_variable_value>: Cast to address type.
1305
1306 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1307
1308 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1309 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1310 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1311 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1312 (nbsd_get_siginfo_type): New.
1313 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1314 (_initialize_nbsd_tdep): New.
1315
1316 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1317
1318 PR binutils/26301
1319 * configure: Regenerated.
1320
1321 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1322
1323 PR binutils/26301
1324 * configure: Regenerated.
1325
1326 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1327
1328 * python/py-frame.c: Remove 'user-regs.h' include.
1329 (frapy_read_register): Rewrite to make use of
1330 gdbpy_parse_register_id.
1331 * python/py-registers.c (gdbpy_parse_register_id): New function,
1332 moved here from python/py-unwind.c. Updated the return type, and
1333 also accepts register descriptor objects.
1334 * python/py-unwind.c: Remove 'user-regs.h' include.
1335 (pyuw_parse_register_id): Moved to python/py-registers.c.
1336 (unwind_infopy_add_saved_register): Update to use
1337 gdbpy_parse_register_id.
1338 (pending_framepy_read_register): Likewise.
1339 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1340
1341 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1342
1343 * python/py-registers.c: Add 'user-regs.h' include.
1344 (register_descriptor_iter_find): New function.
1345 (register_descriptor_iterator_object_methods): New static global
1346 methods array.
1347 (register_descriptor_iterator_object_type): Add pointer to methods
1348 array.
1349
1350 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1351
1352 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1353 for all architectures on FreeBSD 11.3 and later.
1354
1355 2020-07-27 Tom Tromey <tromey@adacore.com>
1356
1357 * gcore.h (load_corefile): Don't declare.
1358
1359 2020-07-27 Tom de Vries <tdevries@suse.de>
1360
1361 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1362 * config.in: Regenerate.
1363 * configure: Regenerate.
1364
1365 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1366
1367 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1368 ws2tcpip.h. When checking whether socklen_t type is defined, use
1369 ws2tcpip.h if it is available and sys/socket.h isn't.
1370 * configure: Regenerate.
1371 * config.in: Regenerate.
1372
1373 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1374
1375 PR fortran/23051
1376 PR fortran/26139
1377 * valops.c (value_ind): Pass address to
1378 readjust_indirect_value_type.
1379 * value.c (readjust_indirect_value_type): Make parameter
1380 non-const, and add extra address parameter. Resolve original type
1381 before using it.
1382 * value.h (readjust_indirect_value_type): Update function
1383 signature and comment.
1384
1385 2020-07-25 Tom de Vries <tdevries@suse.de>
1386
1387 PR symtab/26243
1388 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1389 entries.
1390
1391 2020-07-24 Aaron Merey <amerey@redhat.com>
1392
1393 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1394 * configure: Rebuild.
1395
1396 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1397
1398 PR corefiles/26294
1399 * corelow.c (_initialize_corelow): Add period to help text
1400 for "maintenance print core-file-backed-mappings".
1401
1402 2020-07-23 Pedro Alves <pedro@palves.net>
1403
1404 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1405 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1406 meanwhile.
1407 * frame.c (frame_cache_generation, get_frame_cache_generation):
1408 New.
1409 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1410 (get_prev_frame_if_no_cycle): On exception, don't touch
1411 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1412 * frame.h (get_frame_cache_generation): Declare.
1413
1414 2020-07-23 Tom de Vries <tdevries@suse.de>
1415
1416 PR tui/26282
1417 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1418 New default constructor.
1419
1420 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1421
1422 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1423 exclude non-statement entries.
1424
1425 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1426
1427 * NEWS (New commands): Mention new command
1428 "maintenance print core-file-backed-mappings".
1429
1430 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1431
1432 * corelow.c (gdbcmd.h): Include.
1433 (core_target::info_proc_mappings): New method.
1434 (get_current_core_target): New function.
1435 (maintenance_print_core_file_backed_mappings): New function.
1436 (_initialize_corelow): Add core-file-backed-mappings to
1437 "maint print" commands.
1438
1439 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1440
1441 * linux-tdep.c (dump_note_entry_p): New function.
1442 (linux_dump_mapping_p_ftype): New typedef.
1443 (linux_find_memory_regions_full): Add new parameter,
1444 should_dump_mapping_p.
1445 (linux_find_memory_regions): Adjust call to
1446 linux_find_memory_regions_full.
1447 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1448 call to linux_find_memory_regions_full.
1449
1450 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1451
1452 * corelow.c (solist.h, unordered_map): Include.
1453 (class core_target): Add field m_core_file_mappings and
1454 method build_file_mappings.
1455 (core_target::core_target): Call build_file_mappings.
1456 (core_target::~core_target): Free memory associated with
1457 m_core_file_mappings.
1458 (core_target::build_file_mappings): New method.
1459 (core_target::xfer_partial): Use m_core_file_mappings
1460 for memory transfers.
1461 * linux-tdep.c (linux_read_core_file_mappings): New
1462 function.
1463 (linux_core_info_proc_mappings): Rewrite to use
1464 linux_read_core_file_mappings.
1465 (linux_init_abi): Register linux_read_core_file_mappings.
1466
1467 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1468
1469 * arch-utils.c (default_read_core_file_mappings): New function.
1470 * arch-utils.c (default_read_core_file_mappings): Declare.
1471 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1472 * gdbarch.h, gdbarch.c: Regenerate.
1473
1474 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1475
1476 PR corefiles/25631
1477 * corelow.c (core_target:xfer_partial): Revise
1478 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1479 case after first checking the stratum beneath the core
1480 target.
1481 (has_all_memory): Return true.
1482 * target.c (raw_memory_xfer_partial): Revise comment
1483 regarding use of has_all_memory.
1484
1485 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1486
1487 * exec.h (section_table_xfer_memory): Revise declaration,
1488 replacing section name parameter with an optional callback
1489 predicate.
1490 * exec.c (section_table_xfer_memory): Likewise.
1491 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1492 of section_table_xfer_memory.
1493
1494 2020-07-22 Tom Tromey <tromey@adacore.com>
1495
1496 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1497 lookup_symbol_search_name.
1498
1499 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1500
1501 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1502 redundant local variable.
1503 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1504 reference, not pointer, update code accordingly.
1505
1506 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1507 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1508
1509 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1510 * jit.c (jit_breakpoint_re_set_internal): Use the
1511 `skip_jit_symbol_lookup` field.
1512
1513 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1514 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1515
1516 * jit.c (jit_read_descriptor): Define the descriptor address once,
1517 use twice.
1518 (jit_breakpoint_deleted): Move the declaration of the loop variable
1519 `iter` into the loop header.
1520 (jit_breakpoint_re_set_internal): Move the declaration of the local
1521 variable `objf_data` to the first point of definition.
1522 (jit_event_handler): Move the declaration of local variables
1523 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1524 Rename `objf` to `jited`.
1525
1526 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1527
1528 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1529 Remove.
1530 * jit.c (get_jiter_objfile_data): Update.
1531
1532 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1533 Simon Marchi <simon.marchi@polymtl.ca>
1534
1535 * jit.c (struct jit_program_space_data): Remove.
1536 (jit_program_space_key): Remove.
1537 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1538 stuff.
1539 (get_jit_program_space_data): Remove.
1540 (jit_breakpoint_deleted): Iterate on all of the program space's
1541 objfiles.
1542 (jit_inferior_init): Likewise.
1543 (jit_breakpoint_re_set_internal): Likewise. Also change return
1544 type to void.
1545 (jit_breakpoint_re_set): Pass current_program_space to
1546 jit_breakpoint_re_set_internal.
1547
1548 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1549
1550 * jit.h (struct jiter_objfile_data) <cached_code_address,
1551 jit_breakpoint>: Move to here from ...
1552 * jit.c (jit_program_space_data): ... here.
1553 (jiter_objfile_data::~jiter_objfile_data): Update.
1554 (jit_breakpoint_deleted): Update.
1555 (jit_breakpoint_re_set_internal): Update.
1556
1557 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1558
1559 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1560 checks.
1561 (jit_read_descriptor): Remove NULL check.
1562 (jit_event_handler): Add an assertion.
1563
1564 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1565
1566 * jit.h (struct jit_objfile_data): Split into...
1567 (struct jiter_objfile_data): ... this ...
1568 (struct jited_objfile_data): ... and this.
1569 * objfiles.h (struct objfile) <jit_data>: Remove.
1570 <jiter_data, jited_data>: New fields.
1571 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1572 (jiter_objfile_data::~jiter_objfile_data): ... this.
1573 (get_jit_objfile_data): Rename to ...
1574 (get_jiter_objfile_data): ... this.
1575 (add_objfile_entry): Update.
1576 (jit_read_descriptor): Use get_jiter_objfile_data.
1577 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1578 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1579 (jit_inferior_exit_hook): Use objfile's jited_data field.
1580
1581 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1582
1583 * jit.h: Forward-declare `struct minimal_symbol`.
1584 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1585 constructor, destructor, and an objfile* field.
1586 * jit.c (jit_objfile_data): Remove.
1587 (struct jit_objfile_data): Migrate from here to jit.h.
1588 (jit_objfile_data::~jit_objfile_data): New destructor
1589 implementation with code moved from free_objfile_data.
1590 (free_objfile_data): Delete.
1591 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1592 (jit_find_objf_with_entry_addr): Ditto.
1593 (jit_inferior_exit_hook): Ditto.
1594 (_initialize_jit): Remove the call to
1595 register_objfile_data_with_cleanup.
1596 * objfiles.h (struct objfile) <jit_data>: New field.
1597
1598 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1599
1600 * jit.h: Forward-declare `struct objfile`.
1601 (jit_event_handler): Add a second parameter, the JITer objfile.
1602 * jit.c (jit_read_descriptor): Change the signature to take the
1603 JITer objfile as an argument instead of the jit_program_space_data.
1604 (jit_inferior_init): Update the call to jit_read_descriptor.
1605 (jit_event_handler): Use the new JITer objfile argument when calling
1606 jit_read_descriptor.
1607 * breakpoint.c (handle_jit_event): Update the call to
1608 jit_event_handler to pass the JITer objfile.
1609
1610 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1611
1612 * gdbarch.c: Regenerate.
1613 * gdbarch.h: Regenerate.
1614 * gdbarch.sh (handle_segmentation_fault): Remove method.
1615 * infrun.c (handle_segmentation_fault): Remove.
1616 (print_signal_received_reason): Remove call to
1617 handle_segmentation_fault.
1618
1619 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1620
1621 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1622 Rename to sparc64_linux_report_signal_info and add siggnal
1623 argument.
1624 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1625 instead of sparc64_linux_handle_segmentation_fault.
1626
1627 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1628
1629 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1630 i386_linux_report_signal_info instead of
1631 i386_linux_handle_segmentation_fault.
1632 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1633 to i386_linux_report_signal_info and add siggnal argument.
1634 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1635 of i386_linux_handle_segmentation_fault.
1636 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1637 to i386_linux_report_signal_info and add siggnal argument.
1638
1639 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1640
1641 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1642 hook if present.
1643
1644 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1645
1646 * gdbarch.c: Regenerate.
1647 * gdbarch.h: Regenerate.
1648 * gdbarch.sh (report_signal_info): New method.
1649 * infrun.c (print_signal_received_reason): Invoke gdbarch
1650 report_signal_info hook if present.
1651
1652 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1653
1654 * python/py-registers.c : Add 'unordered_map' include.
1655 (gdbpy_new_reggroup): Renamed to...
1656 (gdbpy_get_reggroup): ...this. Update to only create register
1657 group descriptors when needed.
1658 (gdbpy_reggroup_iter_next): Update.
1659
1660 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1661
1662 * python/py-registers.c (gdbpy_register_object_data): New static
1663 global.
1664 (gdbpy_register_object_data_init): New function.
1665 (gdbpy_new_register_descriptor): Renamed to...
1666 (gdbpy_get_register_descriptor): ...this, and update to reuse
1667 existing register descriptors where possible.
1668 (gdbpy_register_descriptor_iter_next): Update.
1669 (gdbpy_initialize_registers): Register new gdbarch data.
1670
1671 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1672
1673 * linux-nat.c (stopped_pids): Make static.
1674
1675 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1676
1677 PR ada/26235
1678 * gdbtypes.c (ada_discrete_type_low_bound,
1679 ada_discrete_type_high_bound): Handle undefined bounds.
1680
1681 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1682
1683 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1684 declaration.
1685 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1686 function.
1687
1688 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1689
1690 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1691 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1692 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1693 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1694 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1695 method.
1696
1697 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1698
1699 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1700 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1701 which are deprecated in Guile 3.0.
1702 * configure.ac (try_guile_versions): Add "guile-3.0".
1703 * configure (try_guile_versions): Regenerate.
1704 * NEWS: Update entry.
1705
1706 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1707 Doug Evans <dje@google.com>
1708
1709 PR gdb/21104
1710 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1711 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1712 USING_GUILE_BEFORE_2_2.
1713 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1714 Change type to 'scm_t_port_type *'.
1715 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1716 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1717 parameter and honor it. Update callers.
1718 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1719 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1720 functions.
1721 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1722 USING_GUILE_BEFORE_2_2.
1723 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1724 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1725 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1726 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1727 and 'SCM_PORT_TYPE'.
1728 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1729 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1730 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1731 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1732 [!USING_GUILE_BEFORE_2_2]: New functions.
1733 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1734 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1735 'gdbscm_memory_port_read'.
1736 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1737 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1738 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1739 function.
1740 (ioscm_init_memory_port): Remove.
1741 (ioscm_init_memory_port_stream): New function
1742 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1743 function.
1744 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1745 Return scm_from_uint (0).
1746 (gdbscm_set_memory_port_read_buffer_size_x)
1747 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1748 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1749 Return scm_from_uint (0).
1750 (gdbscm_set_memory_port_write_buffer_size_x)
1751 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1752 * configure.ac (try_guile_versions): Add "guile-2.2".
1753 * configure: Regenerate.
1754 * NEWS: Add entry.
1755
1756 2020-07-18 Tom Tromey <tom@tromey.com>
1757
1758 * linux-nat.c (linux_multi_process): Remove.
1759 (linux_nat_target::supports_multi_process): Return true.
1760
1761 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1762
1763 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1764 (riscv_lookup_target_description): Return pointer out of
1765 unique_ptr.
1766 * target-descriptions.c (allocate_target_description): Add
1767 comment.
1768 (target_desc_deleter::operator()): Likewise.
1769 * target-descriptions.h (struct target_desc_deleter): Moved to
1770 gdbsupport/tdesc.h.
1771 (target_desc_up): Likewise.
1772
1773 2020-07-17 Tom Tromey <tromey@adacore.com>
1774
1775 * linux-nat.c (linux_nat_target::supports_non_stop)
1776 (linux_nat_target::always_non_stop_p): Use "true".
1777 (linux_nat_target::supports_disable_randomization): Use "true" and
1778 "false".
1779
1780 2020-07-16 Caroline Tice <cmtice@google.com>
1781
1782 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1783 (RNGLIST_HEADER_SIZE64): New constant definition.
1784 (struct dwop_section_names): Add rnglists_dwo.
1785 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1786 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1787 (struct dwo_sections): Add rnglists field.
1788 (read_attribut_reprocess): Add tag parameter.
1789 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1790 (cu_debug_rnglists_section): New function (decl & definition).
1791 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1792 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1793 die whose range is being checked; get rnglist section from
1794 cu_debug_rnglists_section, to get from either objfile or dwo file as
1795 appropriate. Add cases for DW_RLE_base_addressx,
1796 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1797 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1798 test inside if-condition and updating complaint message.
1799 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1800 dwarf2_rnglists_process.
1801 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1802 dwarf2_ranges_process.
1803 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1804 need_ranges_base and update comment appropriately. Also pass die tag
1805 to dwarf2_ranges_read.
1806 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1807 need_ranges_base and update comment appropriately. Also pass die tag
1808 to dwarf2_ranges_process.
1809 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1810 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1811 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1812 need_ranges_base and update comment appropriately. Also pass die tag
1813 to read_attribute_reprocess and dwarf2_ranges_read.
1814 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1815 and update function comment appropriately.
1816 (read_loclist_index): Call read_loclists_rnglists_header instead of
1817 read_loclist_header.
1818 (read_rnglist_index): New function.
1819 (read_attribute_reprocess): Add tag parameter. Add code for
1820 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1821 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1822
1823 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1824
1825 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1826 being resolved.
1827
1828 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1829
1830 * arch-utils.c (show_architecture): Update formatting of messages.
1831
1832 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1833
1834 * gdbtypes.h (struct type) <bounds>: Handle array and string
1835 types.
1836 * ada-lang.c (assign_aggregate): Use type::bounds on
1837 array/string type.
1838 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1839 * c-varobj.c (c_number_of_children): Likewise.
1840 (c_describe_child): Likewise.
1841 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1842 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1843 (f_type_print_base): Likewise.
1844 * f-valprint.c (f77_array_offset_tbl): Likewise.
1845 (f77_get_upperbound): Likewise.
1846 (f77_print_array_1): Likewise.
1847 * guile/scm-type.c (gdbscm_type_range): Likewise.
1848 * m2-typeprint.c (m2_array): Likewise.
1849 (m2_is_long_set_of_type): Likewise.
1850 * m2-valprint.c (get_long_set_bounds): Likewise.
1851 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1852 * python/py-type.c (typy_range): Likewise.
1853 * rust-lang.c (rust_internal_print_type): Likewise.
1854 * type-stack.c (type_stack::follow_types): Likewise.
1855 * valarith.c (value_subscripted_rvalue): Likewise.
1856 * valops.c (value_cast): Likewise.
1857
1858 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1859
1860 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1861 callers to use the equivalent accessor methods.
1862
1863 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1864
1865 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1866 (struct type) <bit_stride>: New method.
1867 (TYPE_BIT_STRIDE): Remove.
1868 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1869
1870 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1871
1872 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1873 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1874 callers to use the equivalent accessor methods instead.
1875
1876 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1877
1878 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1879 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1880 callers to use the equivalent accessor methods instead.
1881
1882 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1883
1884 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1885 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1886 to use dynamic_prop::kind.
1887
1888 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1889
1890 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1891 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1892 to get the bound property's kind and check against
1893 PROP_UNDEFINED.
1894
1895 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1896
1897 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1898 all callers to use type::range_bounds followed by
1899 dynamic_prop::{low,high}.
1900
1901 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1902
1903 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1904 const_val, set_const_val, baton, set_locexpr, set_loclist,
1905 set_addr_offset, variant_parts, set_variant_parts,
1906 original_type, set_original_type>: New methods.
1907 <kind>: Rename to...
1908 <m_kind>: ... this. Update all users to use the new methods
1909 instead.
1910 <data>: Rename to...
1911 <m_data>: ... this. Update all users to use the new methods
1912 instead.
1913
1914 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1915
1916 * gdbtypes.c (get_discrete_bounds): Return failure if
1917 the range type's bounds are not both defined and constant
1918 values.
1919 (get_array_bounds): Update comment. Remove undefined bound check.
1920
1921 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1922
1923 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1924 the type::bounds method directly.
1925
1926 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1927
1928 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1929 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1930 are used to set the range type's bounds to use set_bounds.
1931
1932 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1933
1934 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1935
1936 2020-07-10 Pedro Alves <pedro@palves.net>
1937
1938 * gdbthread.h (inferior_ref): Define.
1939 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1940 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1941 * thread.c
1942 (scoped_restore_current_thread::restore):
1943 Adjust to gdb::ref_ptr.
1944 (scoped_restore_current_thread::~scoped_restore_current_thread):
1945 Remove manual decref handling.
1946 (scoped_restore_current_thread::scoped_restore_current_thread):
1947 Adjust to use
1948 inferior_ref::new_reference/thread_info_ref::new_reference.
1949 Incref the thread before calling get_frame_id instead of after.
1950 Let TARGET_CLOSE_ERROR propagate.
1951
1952 2020-07-10 Pedro Alves <pedro@palves.net>
1953
1954 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1955 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1956 NOT_AVAILABLE_ERROR.
1957 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1958 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1959
1960 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1961 Pedro Alves <pedro@palves.net>
1962
1963 PR gdb/26199
1964 * infrun.c (threads_are_resumed_pending_p): Delete.
1965 (do_target_wait): Remove threads_are_executing and
1966 threads_are_resumed_pending_p checks from the inferior_matches
1967 lambda. Update comments.
1968
1969 2020-07-10 Pedro Alves <pedro@palves.net>
1970
1971 PR gdb/26199
1972 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1973 executing threads.
1974
1975 2020-07-10 Pedro Alves <pedro@palves.net>
1976
1977 PR gdb/26199
1978 * infrun.c (handle_no_resumed): Handle multiple targets.
1979
1980 2020-07-10 Pedro Alves <pedro@palves.net>
1981
1982 PR gdb/26199
1983 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1984 target_is_async_p.
1985
1986 2020-07-10 Pedro Alves <pedro@palves.net>
1987
1988 PR gdb/26199
1989 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1990 threads, not all threads.
1991
1992 2020-07-10 Pedro Alves <pedro@palves.net>
1993
1994 PR gdb/26199
1995 * remote.c (remote_target::open_1): Pass remote target pointer as
1996 data to create_async_event_handler.
1997 (remote_async_inferior_event_handler): Mark async event handler
1998 before returning if the remote target still has either pending
1999 events or unacknowledged notifications.
2000
2001 2020-07-10 John Baldwin <jhb@FreeBSD.org>
2002
2003 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2004 declaration.
2005 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2006 function.
2007
2008 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2009
2010 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2011 inferior_ptid.
2012
2013 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2014
2015 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2016 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2017 AT_FREEBSD_PS_STRINGS.
2018
2019 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
2020
2021 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2022 of debugfile path on Windows.
2023
2024 2020-07-08 John Baldwin <jhb@FreeBSD.org>
2025
2026 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2027 argument to 'data'.
2028
2029 2020-07-08 Tom Tromey <tromey@adacore.com>
2030
2031 * ada-lang.c (ada_exception_message_1): Use read_memory.
2032
2033 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2034
2035 PR python/22748
2036 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2037 special handling for inline frames.
2038 * findvar.c (value_of_register_lazy): Skip inline frames when
2039 creating lazy register values.
2040 * frame.c (frame_id_computed_p): Delete definition.
2041 * frame.h (frame_id_computed_p): Delete declaration.
2042
2043 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2044
2045 * NEWS: Mention additions to Python API.
2046 * python/py-arch.c (archpy_register_groups): New function.
2047 (arch_object_methods): Add 'register_groups' method.
2048 * python/py-registers.c (reggroup_iterator_object): New struct.
2049 (reggroup_object): New struct.
2050 (gdbpy_new_reggroup): New function.
2051 (gdbpy_reggroup_to_string): New function.
2052 (gdbpy_reggroup_name): New function.
2053 (gdbpy_reggroup_iter): New function.
2054 (gdbpy_reggroup_iter_next): New function.
2055 (gdbpy_new_reggroup_iterator): New function
2056 (gdbpy_initialize_registers): Register new types.
2057 (reggroup_iterator_object_type): Define new Python type.
2058 (gdbpy_reggroup_getset): New static global.
2059 (reggroup_object_type): Define new Python type.
2060 * python/python-internal.h
2061
2062 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2063
2064 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2065 * python/py-arch.c (archpy_registers): New function.
2066 (arch_object_methods): Add 'registers' method.
2067 * python/py-registers.c: New file.
2068 * python/python-internal.h
2069 (gdbpy_new_register_descriptor_iterator): Declare.
2070 (gdbpy_initialize_registers): Declare.
2071 * python/python.c (do_start_initialization): Call
2072 gdbpy_initialize_registers.
2073 * NEWS: Mention additions to the Python API.
2074
2075 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2076
2077 * NEWS: Mention new Python API method.
2078 * python/py-unwind.c (pending_framepy_architecture): New function.
2079 (pending_frame_object_methods): Add architecture method.
2080
2081 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2082
2083 * gdbarch.c: Regenerate.
2084 * gdbarch.h: Regenerate.
2085 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2086 (gdbarch_data): Use internal_error for the case where
2087 deprecated_set_gdbarch_data was originally needed.
2088 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2089 and use passed in obstack.
2090 (libunwind_frame_set_descr): Should no longer get back NULL from
2091 gdbarch_data.
2092 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2093 type.
2094 * user-regs.c (user_regs_init): Update parameters, and use passed
2095 in obstack.
2096 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2097 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2098
2099 2020-07-06 Tom de Vries <tdevries@suse.de>
2100
2101 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2102 End-Of-Sequence in lte_is_less_than.
2103 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2104 "gdb: Don't reorder line table entries too much when sorting".
2105
2106 2020-07-06 Tom de Vries <tdevries@suse.de>
2107
2108 PR tui/26205
2109 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2110
2111 2020-07-05 Tom de Vries <tdevries@suse.de>
2112
2113 PR build/26187
2114 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2115 std::uncaught_exceptions instead of deprecated
2116 std::uncaught_exception.
2117
2118 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2119
2120 * macroexp.h (macro_stringify): Return
2121 gdb::unique_xmalloc_ptr<char>.
2122 * macroexp.c (macro_stringify): Likewise.
2123 * macrotab.c (fixup_definition): Update.
2124
2125 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2126
2127 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2128 (lex_one_token): Update.
2129 * macroexp.c (struct macro_buffer) <release>: Return
2130 gdb::unique_xmalloc_ptr<char>.
2131 (macro_stringify): Update.
2132 (macro_expand): Update.
2133 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2134 * macroexp.h (macro_expand_next): Likewise.
2135
2136 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
2137
2138 * macroexp.h (macro_lookup_ftype): Remove.
2139 (macro_expand, macro_expand_once, macro_expand_next): Remove
2140 lookup function parameters, add scope parameter.
2141 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2142 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2143 * macroscope.h (standard_macro_lookup): Change parameter type
2144 to macro_scope.
2145 * macroscope.c (standard_macro_lookup): Likewise.
2146 * c-exp.y (lex_one_token): Update.
2147 * macrocmd.c (macro_expand_command): Likewise.
2148 (macro_expand_once_command): Likewise.
2149
2150 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2151
2152 * inf-loop.c (inferior_event_handler): Remove client_data param.
2153 * inf-loop.h (inferior_event_handler): Likewise.
2154 * infcmd.c (step_1): Adjust.
2155 * infrun.c (proceed): Adjust.
2156 (fetch_inferior_event): Remove client_data param.
2157 (infrun_async_inferior_event_handler): Adjust.
2158 * infrun.h (fetch_inferior_event): Remove `void *` param.
2159 * linux-nat.c (handle_target_event): Adjust.
2160 * record-btrace.c (record_btrace_handle_async_inferior_event):
2161 Adjust.
2162 * record-full.c (record_full_async_inferior_event_handler):
2163 Adjust.
2164 * remote.c (remote_async_inferior_event_handler): Adjust.
2165
2166 2020-07-01 Tom Tromey <tom@tromey.com>
2167
2168 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2169 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2170
2171 2020-07-01 Tom Tromey <tom@tromey.com>
2172
2173 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2174 tui_gen_win_info.
2175 (tui_win_info::make_window): Merge with
2176 tui_gen_win_info::make_window.
2177 (tui_win_info::make_visible): Move from tui_gen_win_info.
2178 * tui/tui-win.c (tui_win_info::max_width): Move from
2179 tui_gen_win_info.
2180 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2181 type.
2182 <window_factory>: Likewise.
2183 * tui/tui-layout.c (tui_win_info::resize): Move from
2184 tui_gen_win_info.
2185 (make_standard_window): Change return type.
2186 (get_locator_window, tui_get_window_by_name): Likewise.
2187 (tui_layout_window::apply): Remove a cast.
2188 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2189 (struct tui_win_info): Merge with tui_gen_win_info.
2190 (struct tui_gen_win_info): Remove.
2191
2192 2020-07-01 Tom Tromey <tom@tromey.com>
2193
2194 * tui/tui-stack.h (struct tui_locator_window): Derive from
2195 tui_win_info.
2196 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2197 <can_box>: New method.
2198
2199 2020-07-01 Tom Tromey <tom@tromey.com>
2200
2201 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2202
2203 2020-07-01 Tom Tromey <tom@tromey.com>
2204
2205 * tui/tui-regs.c (tui_data_window::display_registers_from)
2206 (tui_data_window::display_registers_from)
2207 (tui_data_window::first_data_item_displayed)
2208 (tui_data_window::delete_data_content_windows): Update.
2209 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2210 Remove.
2211 (tui_data_window::check_register_values): Update.
2212 (tui_data_item_window::rerender): Add parameters. Update.
2213 (tui_data_item_window::refresh_window): Remove.
2214 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2215 virtual.
2216 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2217 tui_gen_win_info.
2218 <refresh_window, max_height, min_height>: Remove.
2219 <rerender>: Add parameters.
2220 <x, y, visible>: New members.
2221 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2222 <m_item_width>: New member.
2223
2224 2020-07-01 Tom Tromey <tom@tromey.com>
2225
2226 * tui/tui-regs.c (tui_data_window::show_register_group)
2227 (tui_data_window::check_register_values): Update.
2228 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2229 from item_no.
2230
2231 2020-07-01 Tom Tromey <tom@tromey.com>
2232
2233 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2234 useless "if".
2235
2236 2020-07-01 Tom Tromey <tom@tromey.com>
2237
2238 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2239 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2240
2241 2020-07-01 Tom Tromey <tom@tromey.com>
2242
2243 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2244 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2245 (struct tui_line_or_address): Move from tui-data.h.
2246 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2247 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2248 (tui_cmd_window, tui_source_window_base, tui_source_window)
2249 (tui_disasm_window): Don't declare.
2250 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2251 to tui-winsource.h.
2252 (SINGLE_KEY): Move to tui-stack.c.
2253
2254 2020-07-01 Tom Tromey <tom@tromey.com>
2255
2256 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2257 std::string.
2258 * tui/tui-regs.c (class tab_expansion_file): New.
2259 (tab_expansion_file::write): New method.
2260 (tui_register_format): Change return type. Use
2261 tab_expansion_file.
2262 (tui_get_register, tui_data_window::display_registers_from)
2263 (tui_data_item_window::rerender): Update.
2264 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2265 * tui/tui-io.c (tui_expand_tabs): Remove.
2266
2267 2020-07-01 Tom Tromey <tom@tromey.com>
2268
2269 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2270
2271 2020-07-01 Fangrui Song <maskray@google.com>
2272
2273 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2274
2275 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2276
2277 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2278 forms for DW_AT_associated and DW_AT_allocated attributes,
2279 which is already checked in function attr_to_dynamic_prop.
2280
2281 2020-06-30 Tom Tromey <tromey@adacore.com>
2282
2283 * dwarf2/read.c (quirk_rust_enum): Correctly call
2284 alloc_rust_variant for default-less enum.
2285
2286 2020-06-30 Tom Tromey <tromey@adacore.com>
2287
2288 PR build/26183:
2289 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2290 gdb::to_string.
2291
2292 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2293
2294 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2295 * gdbarch.h: Re-generate.
2296
2297 2020-06-28 Tom Tromey <tom@tromey.com>
2298
2299 * command.h (cmd_types): Remove.
2300 (cmd_type): Don't declare.
2301 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2302 typedef.
2303 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2304 * cli/cli-decode.c (cmd_type): Remove.
2305
2306 2020-06-27 Pedro Alves <palves@redhat.com>
2307
2308 * fork-child.c (prefork_hook): Adjust.
2309 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2310 Delete.
2311 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2312 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2313 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2314 Remove declarations.
2315 (struct inferior) <set_tty, tty>: New methods.
2316 (struct inferior) <terminal>: Rename to ...
2317 (struct inferior) <m_terminal>: ... this and make private.
2318 * main.c (captured_main_1): Adjust.
2319 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2320 (mi_cmd_inferior_tty_show): Adjust.
2321 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2322 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2323
2324 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2325
2326 * configure.ac: Add --enable-libctf: handle --disable-static
2327 properly.
2328 * acinclude.m4: sinclude ../config/enable.m4.
2329 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2330 (LIBCTF): Substitute in.
2331 (CTF_DEPS): New, likewise.
2332 (CLIBS): libctf needs symbols from libbfd: move earlier.
2333 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2334 flags.
2335 * ctfread.c: Surround in ENABLE_LIBCTF.
2336 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2337 * configure: Regenerate.
2338 * config.in: Likewise.
2339
2340 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2341
2342 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2343
2344 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2345
2346 * inferior.h (struct inferior) <terminal>: Change type to
2347 gdb::unique_xmalloc_ptr<char>.
2348 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2349 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2350 field, adjust to unique pointer.
2351 (get_inferior_io_terminal): Adjust to unique pointer.
2352
2353 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2354
2355 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2356 registers, not just the known core set of registers.
2357
2358 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2359
2360 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2361 fflags, frm, and fcsr registers.
2362 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2363 restore groups.
2364 (riscv_tdesc_unknown_reg): New function.
2365 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2366 tdesc_use_registers.
2367 * riscv-tdep.h (struct gdbarch_tdep): Add
2368 unknown_csrs_first_regnum, unknown_csrs_count,
2369 duplicate_fflags_regnum, duplicate_frm_regnum, and
2370 duplicate_fcsr_regnum fields.
2371
2372 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2373
2374 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2375 callback, use the callback (when not null) to help number unknown
2376 registers.
2377 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2378 (tdesc_use_registers): Add extra parameter to declaration.
2379
2380 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2381
2382 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2383 in the file.
2384 (class riscv_pending_register_alias): Likewise.
2385 (riscv_register_feature::register_info): Change 'required_p' field
2386 to 'required', and change its type. Add 'check' member function.
2387 (riscv_register_feature::register_info::check): Define new member
2388 function.
2389 (riscv_xreg_feature): Change initialisation of 'required' field.
2390 (riscv_freg_feature): Likewise.
2391 (riscv_virtual_feature): Likewise.
2392 (riscv_csr_feature): Likewise.
2393 (riscv_check_tdesc_feature): Take extra parameter, the csr
2394 tdesc_feature, rewrite the function to use the new
2395 riscv_register_feature::register_info::check function.
2396 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2397
2398 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2399
2400 * features/Makefile: Remove all references to the deleted files
2401 below.
2402 * features/riscv/32bit-csr.c: Deleted.
2403 * features/riscv/32bit-csr.xml: Deleted.
2404 * features/riscv/64bit-csr.c: Deleted.
2405 * features/riscv/64bit-csr.xml: Deleted.
2406 * features/riscv/rebuild-csr-xml.sh: Deleted.
2407
2408 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2409
2410 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2411 whitespace error for declaration of names member variable.
2412 (struct riscv_register_feature): Add new prefer_first_name member
2413 variable, and fix whitespace error in declaration of registers.
2414 (riscv_xreg_feature): Initialize prefer_first_name field.
2415 (riscv_freg_feature): Likewise.
2416 (riscv_virtual_feature): Likewise.
2417 (riscv_csr_feature): Likewise.
2418 (riscv_register_name): Expand on comments. Remove register name
2419 modifications for CSR and virtual registers.
2420
2421 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2422
2423 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2424 errors.
2425
2426 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2427
2428 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2429 riscv-opc.h.
2430 (class riscv_pending_register_alias): New class.
2431 (riscv_check_tdesc_feature): Take vector of pending aliases and
2432 populate it as appropriate.
2433 (riscv_setup_register_aliases): Delete.
2434 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2435 to riscv_check_tdesc_feature in all cases. Use the vector to
2436 create the register aliases.
2437
2438 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2439
2440 * sol2-tdep.c (sol2_static_transform_name): Remove.
2441 (sol2_init_abi): Don't register it.
2442 * gdbarch.sh (static_transform_name): Remove.
2443 * gdbarch.c, gdbarch.h: Regenerate.
2444
2445 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2446 gdbarch_static_transform_name.
2447 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2448 * stabsread.c (define_symbol) <'X'>: Remove.
2449 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2450 handling.
2451 <'V'>: Likewise.
2452 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2453 <'S'>: Remove call to gdbarch_static_transform_name.
2454
2455 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2456
2457 * procfs.c (procfs_pre_trace): New function.
2458 (procfs_target::create_inferior): Pass it to fork_inferior.
2459
2460 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2461
2462 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2463 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2464 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2465 sol2-tdep.o, sparc-sol2-tdep.o.
2466 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2467 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2468 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2469 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2470
2471 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2472
2473 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2474 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2475 Call sol2_init_abi.
2476 Remove calls to set_gdbarch_skip_solib_resolver,
2477 set_gdbarch_core_pid_to_str.
2478 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2479 (i386_sol2_static_transform_name): Remove.
2480 (i386_sol2_init_abi): Call sol2_init_abi.
2481 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2482 set_gdbarch_static_transform_name,
2483 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2484 Use sol2_sigtramp_p.
2485 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2486 (sol2_sigtramp_p): New function.
2487 (sol2_static_transform_name): New function.
2488 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2489 (sol2_init_abi): New function.
2490 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2491 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2492 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2493 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2494 (sparc_sol2_static_transform_name): Remove.
2495 (sparc32_sol2_init_abi): Call sol2_init_abi.
2496 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2497 set_gdbarch_static_transform_name,
2498 set_gdbarch_skip_solib_resolver,
2499 set_gdbarch_core_pid_to_str.
2500 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2501 (sparc_sol2_static_transform_name): Remove
2502 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2503 call sol2_sigtramp_p.
2504 (sparc64_sol2_init_abi): Call sol2_init_abi.
2505 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2506 set_gdbarch_static_transform_name,
2507 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2508
2509 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2510
2511 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2512 * exec.c (validate_exec_file): If from_tty, set both
2513 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2514 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2515 and from_tty, unconditionally ask a confirmation.
2516
2517 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2518
2519 * target-descriptions.c (tdesc_architecture_name): Protect against
2520 NULL pointer dereference.
2521 (maint_print_xml_tdesc_cmd): New function.
2522 (_initialize_target_descriptions): Register new 'maint print
2523 xml-tdesc' command and give it the filename completer.
2524 * NEWS: Mention new 'maint print xml-tdesc' command.
2525
2526 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2527
2528 * target-descriptions.c (class tdesc_compatible_info): New class.
2529 (struct target_desc): Change type of compatible vector.
2530 (tdesc_compatible_p): Update for change in type of
2531 target_desc::compatible.
2532 (tdesc_compatible_info_list): New function.
2533 (tdesc_compatible_info_arch_name): New function.
2534 (tdesc_add_compatible): Update for change in type of
2535 target_desc::compatible.
2536 (print_c_tdesc::visit_pre): Likewise.
2537
2538 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2539
2540 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2541 whitespace to underscore.
2542 (maint_print_c_tdesc_cmd): Use fake filename for target
2543 descriptions that came from the target.
2544 (_initialize_target_descriptions): Add filename command completion
2545 for 'maint print c-tdesc'.
2546
2547 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2548
2549 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2550 lines.
2551
2552 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2553
2554 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2555 lines.
2556 (dwarf2_find_location_expression): Likewise.
2557 (call_site_parameter_matches): Likewise.
2558 (dwarf2_compile_expr_to_ax): Likewise.
2559 (disassemble_dwarf_expression): Likewise.
2560 (loclist_describe_location): Likewise.
2561
2562 2020-06-23 Pedro Alves <palves@redhat.com>
2563
2564 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2565 progspace-and-thread.h. Include scoped-mock-context.h instead.
2566 (register_to_value_test): Use scoped_mock_context.
2567 * regcache.c: Include "scoped-mock-context.h".
2568 (cooked_read_test): Don't error out if a target is already pushed.
2569 Use scoped_mock_context. Adjust.
2570 * scoped-mock-context.h: New file.
2571
2572 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2573
2574 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2575 initializer.
2576 (ada_language::is_string_type_p): New member function.
2577 * c-lang.c (c_language_data): Delete la_is_string_type_p
2578 initializer.
2579 (cplus_language_data): Likewise.
2580 (asm_language_data): Likewise.
2581 (minimal_language_data): Likewise.
2582 * d-lang.c (d_language_data): Likewise.
2583 * f-lang.c (f_is_string_type_p): Delete function, implementation
2584 moved to f_language::is_string_type_p.
2585 (f_language_data): Delete la_is_string_type_p initializer.
2586 (f_language::is_string_type_p): New member function,
2587 implementation from f_is_string_type_p.
2588 * go-lang.c (go_is_string_type_p): Delete function, implementation
2589 moved to go_language::is_string_type_p.
2590 (go_language_data): Delete la_is_string_type_p initializer.
2591 (go_language::is_string_type_p): New member function,
2592 implementation from go_is_string_type_p.
2593 * language.c (language_defn::is_string_type_p): Define new member
2594 function.
2595 (default_is_string_type_p): Make static, add comment copied from
2596 header file.
2597 (unknown_language_data): Delete la_is_string_type_p initializer.
2598 (unknown_language::is_string_type_p): New member function.
2599 (auto_language_data): Delete la_is_string_type_p initializer.
2600 (auto_language::is_string_type_p): New member function.
2601 * language.h (language_data): Delete la_is_string_type_p field.
2602 (language_defn::is_string_type_p): Declare new function.
2603 (default_is_string_type_p): Delete desclaration, move comment to
2604 definition.
2605 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2606 moved to m2_language::is_string_type_p.
2607 (m2_language_data): Delete la_is_string_type_p initializer.
2608 (m2_language::is_string_type_p): New member function,
2609 implementation from m2_is_string_type_p.
2610 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2611 initializer.
2612 * opencl-lang.c (opencl_language_data): Likewise.
2613 * p-lang.c (pascal_is_string_type_p): Delete function,
2614 implementation moved to pascal_language::is_string_type_p.
2615 (pascal_language_data): Delete la_is_string_type_p initializer.
2616 (pascal_language::is_string_type_p): New member function,
2617 implementation from pascal_is_string_type_p.
2618 * rust-lang.c (rust_is_string_type_p): Delete function,
2619 implementation moved to rust_language::is_string_type_p.
2620 (rust_language_data): Delete la_is_string_type_p initializer.
2621 (rust_language::is_string_type_p): New member function,
2622 implementation from rust_is_string_type_p.
2623 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2624 is_string_type_p.
2625
2626 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2627
2628 * ada-lang.c (ada_language_data): Delete la_print_typedef
2629 initializer.
2630 (ada_language::print_typedef): New member function.
2631 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2632 (cplus_language_data): Likewise.
2633 (asm_language_data): Likewise.
2634 (minimal_language_data): Likewise.
2635 * d-lang.c (d_language_data): Likewise.
2636 * f-lang.c (f_language_data): Likewise.
2637 (f_language::print_typedef): New member function.
2638 * go-lang.c (go_language_data): Delete la_print_typedef
2639 initializer.
2640 * language.c (language_defn::print_typedef): Define member
2641 function.
2642 (unknown_language_data): Delete la_print_typedef initializer.
2643 (unknown_language::print_typedef): New member function.
2644 (auto_language_data): Delete la_print_typedef initializer.
2645 (auto_language::print_typedef): New member function.
2646 * language.h (language_data): Delete la_print_typedef field.
2647 (language_defn::print_typedef): Declare new member function.
2648 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2649 (default_print_typedef): Delete declaration.
2650 * m2-lang.c (m2_language_data): Delete la_print_typedef
2651 initializer.
2652 (m2_language::print_typedef): New member function.
2653 * objc-lang.c (objc_language_data): Delete la_print_typedef
2654 initializer.
2655 * opencl-lang.c (opencl_language_data): Likewise.
2656 * p-lang.c (pascal_language_data): Likewise.
2657 (pascal_language::print_typedef): New member function.
2658 * rust-lang.c (rust_print_typedef): Delete function,
2659 implementation moved to rust_language::print_typedef.
2660 (rust_language): Delete la_print_typedef initializer.
2661 (rust_language::print_typedef): New member function,
2662 implementation from rust_print_typedef.
2663 * typeprint.c (default_print_typedef): Delete.
2664
2665 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2666
2667 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2668 (ada_language::printstr): New member function.
2669 * c-lang.c (c_language_data): Delete la_printstr initializer.
2670 (cplus_language_data): Likewise.
2671 (asm_language_data): Likewise.
2672 (minimal_language_data): Likewise.
2673 * d-lang.c (d_language_data): Likewise.
2674 * f-lang.c (f_printstr): Rename to f_language::printstr.
2675 (f_language_data): Delete la_printstr initializer.
2676 (f_language::printstr): New member function, implementation from
2677 f_printstr.
2678 * go-lang.c (go_language_data): Delete la_printstr initializer.
2679 * language.c (language_defn::printstr): Define new member
2680 function.
2681 (unk_lang_printstr): Delete.
2682 (unknown_language_data): Delete la_printstr initializer.
2683 (unknown_language::printstr): New member function.
2684 (auto_language_data): Delete la_printstr initializer.
2685 (auto_language::printstr): New member function.
2686 * language.h (language_data): Delete la_printstr field.
2687 (language_defn::printstr): Declare new member function.
2688 (LA_PRINT_STRING): Update call to printstr.
2689 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2690 (m2_language_data): Delete la_printstr initializer.
2691 (m2_language::printstr): New member function, implementation from
2692 m2_printstr.
2693 * objc-lang.c (objc_language_data): Delete la_printstr
2694 initializer.
2695 * opencl-lang.c (opencl_language_data): Likewise.
2696 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2697 (pascal_language_data): Delete la_printstr initializer.
2698 (pascal_language::printstr): New member function, implementation
2699 from pascal_printstr.
2700 * p-lang.h (pascal_printstr): Delete declaration.
2701 * rust-lang.c (rust_printstr): Update header comment.
2702 (rust_language_data): Delete la_printstr initializer.
2703 (rust_language::printstr): New member function.
2704
2705 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2706
2707 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2708 (ada_language::printchar): New member function.
2709 * c-lang.c (c_language_data): Delete la_printchar initializer.
2710 (cplus_language_data): Likewise.
2711 (asm_language_data): Likewise.
2712 (minimal_language_data): Likewise.
2713 * d-lang.c (d_language_data): Likewise.
2714 * f-lang.c (f_printchar): Rename to f_language::printchar.
2715 (f_language_data): Delete la_printchar initializer.
2716 (f_language::printchar): New member function, implementation from
2717 f_printchar.
2718 * go-lang.c (go_language_data): Delete la_printchar initializer.
2719 * language.c (unk_lang_printchar): Delete.
2720 (language_defn::printchar): Define new member function.
2721 (unknown_language_data): Delete la_printchar initializer.
2722 (unknown_language::printchar): New member function.
2723 (auto_language_data): Delete la_printchar initializer.
2724 (auto_language::printchar): New member function.
2725 * language.h (language_data): Delete la_printchar field.
2726 (language_defn::printchar): Declare new member function.
2727 (LA_PRINT_CHAR): Update call to printchar.
2728 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2729 (m2_language::printchar): New member function.
2730 * objc-lang.c (objc_language_data): Delete la_printchar
2731 initializer.
2732 * opencl-lang.c (opencl_language_data): Likewise.
2733 * p-lang.c (pascal_language_data): Delete la_printchar
2734 initializer.
2735 (pascal_language::printchar): New member function.
2736 * rust-lang.c (rust_printchar): Rename to
2737 rust_language::printchar.
2738 (rust_language_data): Delete la_printchar initializer.
2739 (rust_language::printchar): New member function, implementation
2740 from rust_printchar.
2741
2742 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2743
2744 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2745 (ada_language_data): Delete la_emitchar initializer.
2746 (ada_language::emitchar): New member function, implementation from
2747 emit_char.
2748 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2749 (cplus_language_data): Likewise.
2750 (asm_language_data): Likewise.
2751 (minimal_language_data): Likewise.
2752 * d-lang.c (d_language_data): Likewise.
2753 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2754 (f_language_data): Delete la_emitchar initializer.
2755 (f_language::emitchar): New member function, implementation from
2756 f_emit_char.
2757 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2758 * language.c (unk_lang_emit_char): Delete.
2759 (language_defn::emitchar): New member function definition.
2760 (unknown_language_data): Delete la_emitchar initializer.
2761 (unknown_language::emitchar): New member function.
2762 (auto_language_data): Delete la_emitchar initializer.
2763 (auto_language::emitchar): New member function.
2764 * language.h (language_data): Delete la_emitchar field.
2765 (language_defn::emitchar): New member field declaration.
2766 (LA_EMIT_CHAR): Update call to emitchar.
2767 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2768 (m2_language_data): Delete la_emitchar initializer.
2769 (m2_language::emitchar): New member function, implementation from
2770 m2_emit_char.
2771 * objc-lang.c (objc_language_data): Delete la_emitchar
2772 initializer.
2773 * opencl-lang.c (opencl_language_data): Likewise.
2774 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2775 (pascal_language_data): Delete la_emitchar initializer.
2776 (pascal_language::emitchar): New member function, implementation
2777 from pascal_emit_char.
2778 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2779 (rust_language_data): Delete la_emitchar initializer.
2780 (rust_language::emitchar): New member function, implementation
2781 from rust_emitchar.
2782
2783 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2784
2785 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2786 (ada_language_data): Delete la_post_parser initializer.
2787 (ada_language::post_parser): New member function.
2788 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2789 (cplus_language_data): Likewise.
2790 (asm_language_data): Likewise.
2791 (minimal_language_data): Likewise.
2792 * d-lang.c (d_language_data): Likewise.
2793 * f-lang.c (f_language_data): Likewise.
2794 * go-lang.c (go_language_data): Likewise.
2795 * language.c (unknown_language_data): Likewise.
2796 (auto_language_data): Likewise.
2797 * language.h (language_data): Delete la_post_parser field.
2798 (language_defn::post_parser): New member function.
2799 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2800 * objc-lang.c (objc_language_data): Likewise.
2801 * opencl-lang.c (opencl_language_data): Likewise.
2802 * p-lang.c (pascal_language_data): Likewise.
2803 * parse.c (parse_exp_in_context): Update call to post_parser.
2804 (null_post_parser): Delete definition.
2805 * parser-defs.h (null_post_parser): Delete declaration.
2806 * rust-lang.c (rust_language_data): Delete la_post_parser
2807 initializer.
2808
2809 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2810
2811 * ada-lang.c (parse): Rename to ada_language::parser.
2812 (ada_language_data): Delete la_parser initializer.
2813 (ada_language::parser): New member function, implementation from
2814 parse.
2815 * c-lang.c (c_language_data): Delete la_parser initializer.
2816 (cplus_language_data): Likewise.
2817 (asm_language_data): Likewise.
2818 (minimal_language_data): Likewise.
2819 * d-lang.c (d_language_data): Likewise.
2820 (d_language::parser): New member function.
2821 * f-lang.c (f_language_data): Delete la_parser initializer.
2822 (f_language::parser): New member function.
2823 * go-lang.c (go_language_data): Delete la_parser initializer.
2824 (go_language::parser): New member function.
2825 * language.c (unk_lang_parser): Delete.
2826 (language_defn::parser): Define new member function.
2827 (unknown_language_data): Delete la_parser initializer.
2828 (unknown_language::parser): New member function.
2829 (auto_language_data): Delete la_parser initializer.
2830 (auto_language::parser): New member function.
2831 * language.h (language_data): Delete la_parser field.
2832 (language_defn::parser): Declare new member function.
2833 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2834 (m2_language::parser): New member function.
2835 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2836 * opencl-lang.c (opencl_language_data): Likewise.
2837 * p-lang.c (pascal_language_data): Likewise.
2838 (pascal_language::parser): New member function.
2839 * parse.c (parse_exp_in_context): Update call to parser.
2840 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2841 (rust_language::parser): New member function.
2842
2843 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2844
2845 * top.c (print_gdb_configuration): Print --with-python-libdir
2846 configuration value.
2847
2848 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2849
2850 * NEWS: Mention change to the alias command.
2851
2852 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2853
2854 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2855 (alias_command_completer)
2856 (make_alias_options_def_group): New functions.
2857 (alias_opts, alias_option_defs): New struct and array.
2858 (alias_usage_error): Update usage.
2859 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2860 Use option framework.
2861 (_initialize_cli_cmds): Update alias command help.
2862 Update aliases command help.
2863 (show_user):
2864 Add NULL for new default_args lookup_cmd argument.
2865 (valid_command_p): Rename to validate_aliased_command.
2866 Add NULL for new default_args lookup_cmd argument. Verify that the
2867 aliased_command has no default args.
2868 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2869 (lookup_cmd_1, lookup_cmd): New argument default_args.
2870 (add_alias_cmd):
2871 Add NULL for new default_args lookup_cmd argument.
2872 (print_help_for_command): Show default args under the layout
2873 alias some_alias = some_aliased_cmd some_alias_default_arg.
2874 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2875 xfree default_args in destructor.
2876 * cli/cli-script.c (process_next_line, do_define_command):
2877 Add NULL for new default_args lookup_cmd argument.
2878 * command.h: Declare new default_args argument in lookup_cmd
2879 and lookup_cmd_1.
2880 * completer.c (complete_line_internal_1):
2881 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2882 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2883 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2884 Likewise.
2885 * infcmd.c (_initialize_infcmd): Likewise.
2886 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2887 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2888 * python/py-param.c (add_setshow_generic): Likewise.
2889 * remote.c (_initialize_remote): Likewise.
2890 * top.c (execute_command): Prepend default_args if command has some.
2891 (set_verbose):
2892 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2893 * tracepoint.c (validate_actionline, encode_actions_1):
2894 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2895
2896 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2897
2898 * jit.c (jit_read_descriptor): Use bool as the return type.
2899 (jit_breakpoint_re_set_internal): Use bool as the return type.
2900 Invert the return value logic; return true if the jit breakpoint
2901 has been successfully initialized.
2902 (jit_inferior_init): Update the call to
2903 jit_breakpoint_re_set_internal.
2904
2905 2020-06-22 Pedro Alves <palves@redhat.com>
2906
2907 PR gdb/25939
2908 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2909 Use the current inferior instead. Don't return
2910 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2911 wait again.
2912 * sol-thread.c (sol_thread_target::wait): Don't reference
2913 inferior_ptid.
2914 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2915 (sol_update_thread_list_callback): Use the current inferior's pid
2916 instead of inferior_ptid.
2917
2918 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2919
2920 * procfs.c: Cleanup many comments.
2921
2922 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2923 (AFTER_WATCHFLAG): Replace by value.
2924
2925 (MAIN_PROC_NAME_FORMAT): Inline ...
2926 (create_procinfo): ... here.
2927
2928 (procfs_debug_inferior): Remove SYS_exec handling.
2929 (syscall_is_exec): Likewise.
2930 (procfs_set_exec_trap): Likewise.
2931
2932 (syscall_is_lwp_exit): Inline in callers.
2933 (syscall_is_exit): Likewise.
2934 (syscall_is_exec): Likewise.
2935 (syscall_is_lwp_create): Likewise.
2936
2937 (invalidate_cache): Remove #if 0 code.
2938
2939 (make_signal_thread_runnable): Remove.
2940 (procfs_target::resume): Remove #if 0 code.
2941
2942 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2943
2944 PR gdb/25939
2945 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2946 call ...
2947 (procfs_target::create_inferior): ... here.
2948
2949 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2950
2951 * exec.c (validate_exec_file): Ensure the build-id is up to
2952 date by calling reopen_exec_file (that checks file timestamp
2953 to decide to re-read the file).
2954
2955 2020-06-18 Pedro Alves <palves@redhat.com>
2956
2957 PR gdb/25412
2958 * gdbthread.h (delete_thread, delete_thread_silent)
2959 (find_thread_ptid): Update comments.
2960 * thread.c (current_thread_): New global.
2961 (is_current_thread): Move higher, and reimplement.
2962 (inferior_thread): Reimplement.
2963 (set_thread_exited): Use bool. Add assertions.
2964 (add_thread_silent): Simplify thread-reuse handling by always
2965 calling delete_thread.
2966 (delete_thread): Remove intro comment.
2967 (find_thread_ptid): Skip exited threads.
2968 (switch_to_thread_no_regs): Write to current_thread_.
2969 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2970 INFERIOR_PTID. Clear current_thread_.
2971
2972 2020-06-18 Pedro Alves <palves@redhat.com>
2973
2974 * aix-thread.c (pd_update): Use switch_to_thread.
2975
2976 2020-06-18 Pedro Alves <palves@redhat.com>
2977
2978 * ravenscar-thread.c (ravenscar_thread_target): Update.
2979 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2980 (ravenscar_thread_target::add_active_thread): ... this. Don't
2981 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2982 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2983
2984 2020-06-18 Pedro Alves <palves@redhat.com>
2985
2986 * nat/windows-nat.c (current_windows_thread): Remove.
2987 * nat/windows-nat.h (current_windows_thread): Remove.
2988 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2989 Adjust.
2990 (display_selectors): Adjust to fetch the current
2991 windows_thread_info based on inferior_ptid.
2992 (fake_create_process): No longer write to current_windows_thread.
2993 (windows_nat_target::get_windows_debug_event):
2994 Don't set inferior_ptid or current_windows_thread.
2995 (windows_nat_target::wait): Adjust to not rely on
2996 current_windows_thread.
2997 (do_initial_windows_stuff): Now a method of windows_nat_target.
2998 Switch to the last_ptid thread.
2999 (windows_nat_target::attach): Adjust.
3000 (windows_nat_target::detach): Use switch_to_no_thread instead of
3001 writing to inferior_ptid directly.
3002 (windows_nat_target::create_inferior): Adjust.
3003
3004 2020-06-18 Pedro Alves <palves@redhat.com>
3005
3006 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3007
3008 2020-06-18 Pedro Alves <palves@redhat.com>
3009
3010 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3011 after creating it, instead of writing to inferior_ptid. Don't
3012 write to inferior_ptid.
3013
3014 2020-06-18 Pedro Alves <palves@redhat.com>
3015
3016 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3017
3018 2020-06-18 Pedro Alves <palves@redhat.com>
3019
3020 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3021 it, instead of writing to inferior_ptid.
3022
3023 2020-06-18 Pedro Alves <palves@redhat.com>
3024
3025 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3026 to inferior_ptid.
3027
3028 2020-06-18 Pedro Alves <palves@redhat.com>
3029
3030 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3031 instead of writing to inferior_ptid directly.
3032
3033 2020-06-18 Pedro Alves <palves@redhat.com>
3034
3035 * corelow.c (core_target::close): Use switch_to_no_thread instead
3036 of writing to inferior_ptid directly.
3037 (add_to_thread_list, core_target_open): Use switch_to_thread
3038 instead of writing to inferior_ptid directly.
3039
3040 2020-06-18 Pedro Alves <palves@redhat.com>
3041
3042 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3043 inferior_ptid.
3044 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3045 inferior_ptid.
3046 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3047 inferior_ptid directly.
3048 (darwin_nat_target::init_thread_list): Switch to thread, instead
3049 of writing to inferior_ptid.
3050 (darwin_nat_target::attach): Don't write to inferior_ptid.
3051 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3052
3053 2020-06-18 Pedro Alves <palves@redhat.com>
3054
3055 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3056 thread.
3057 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3058 Instead use switch_to_thread.
3059 (gnu_nat_target::detach): Use switch_to_no_thread
3060 instead of writing to inferior_ptid directly. Used passed-in
3061 inferior instead of looking up the inferior by pid.
3062
3063 2020-06-18 Pedro Alves <palves@redhat.com>
3064
3065 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3066 inferior_ptid.
3067
3068 2020-06-18 Pedro Alves <palves@redhat.com>
3069
3070 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3071 inferior_ptid.
3072 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3073 thread.
3074 (nto_procfs_target::detach): Avoid referencing
3075 inferior_ptid. Use switch_to_no_thread instead of writing to
3076 inferior_ptid directly.
3077 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3078 instead of writing to inferior_ptid directly.
3079 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3080 to thread.
3081
3082 2020-06-18 Pedro Alves <palves@redhat.com>
3083
3084 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3085 after creating it, instead of writing to inferior_ptid.
3086 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3087 to inferior_ptid directly.
3088 (gdbsim_target::wait): Don't write to inferior_ptid.
3089
3090 2020-06-18 Pedro Alves <palves@redhat.com>
3091
3092 * remote.c (remote_target::remote_notice_new_inferior): Use
3093 switch_to_thread instead of writing to inferior_ptid directly.
3094 (remote_target::add_current_inferior_and_thread): Use
3095 switch_to_no_thread instead of writing to inferior_ptid directly.
3096 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3097 and switch_to_thread instead of using set_current_inferior or
3098 writing to inferior_ptid directly.
3099
3100 2020-06-18 Pedro Alves <palves@redhat.com>
3101
3102 * tracectf.c (ctf_target_open): Switch to added thread instead of
3103 writing to inferior_ptid directly.
3104 (ctf_target::close): Use switch_to_no_thread instead of writing to
3105 inferior_ptid directly.
3106
3107 2020-06-18 Pedro Alves <palves@redhat.com>
3108
3109 * tracefile-tfile.c (tfile_target_open): Don't write to
3110 inferior_ptid directly, instead switch to added thread.
3111 (tfile_target::close): Use switch_to_no_thread instead of writing
3112 to inferior_ptid directly.
3113
3114 2020-06-18 Pedro Alves <palves@redhat.com>
3115
3116 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3117 (procfs_target::detach): Use switch_to_no_thread
3118 instead of writing to inferior_ptid directly.
3119 (do_attach): Change return type to void. Switch to the added
3120 thread.
3121 (procfs_target::create_inferior): Switch to the added thread.
3122 (procfs_do_thread_registers): Don't write to inferior_ptid.
3123
3124 2020-06-18 Pedro Alves <palves@redhat.com>
3125
3126 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3127 of writing to inferior_ptid.
3128 (scoped_restore_exited_inferior): Delete.
3129 (handle_vfork_child_exec_or_exit): Simplify using
3130 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3131 instead of writing to inferior_ptid.
3132 (THREAD_STOPPED_BY): Delete.
3133 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3134 (thread_stopped_by_hw_breakpoint): Delete.
3135 (save_waitstatus): Use
3136 scoped_restore_current_thread+switch_to_thread, and call
3137 target_stopped_by_watchpoint instead of
3138 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3139 instead of thread_stopped_by_sw_breakpoint, and
3140 target_stopped_by_hw_breakpoint instead of
3141 thread_stopped_by_hw_breakpoint.
3142 (handle_inferior_event)
3143 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3144 inferior_ptid directly, nor
3145 set_current_inferior/set_current_program_space. Use
3146 switch_to_thread / switch_to_inferior_no_thread instead.
3147
3148 2020-06-18 Pedro Alves <palves@redhat.com>
3149
3150 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3151 instead of writing to inferior_ptid.
3152
3153 2020-06-18 Pedro Alves <palves@redhat.com>
3154
3155 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3156 added thread.
3157 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3158 to the added thread.
3159 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3160 instead of writing to inferior_ptid.
3161
3162 2020-06-18 Pedro Alves <palves@redhat.com>
3163
3164 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3165 (register_to_value_test): Mock a program_space too. Heap-allocate
3166 the address space. Don't write to inferior_ptid. Use
3167 switch_to_thread instead.
3168
3169 2020-06-18 Pedro Alves <palves@redhat.com>
3170
3171 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3172 Delete.
3173 (find_signalled_thread()): New, factored out from
3174 linux_make_corefile_notes and adjusted to handle exited threads.
3175 (linux_make_corefile_notes): Adjust to use the new
3176 find_signalled_thread.
3177
3178 2020-06-18 Pedro Alves <palves@redhat.com>
3179
3180 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3181 of saving/restoring inferior_ptid.
3182
3183 2020-06-17 Tom Tromey <tom@tromey.com>
3184
3185 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3186 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3187 declare.
3188 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3189
3190 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
3191
3192 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3193 of partial symtabs.
3194
3195 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3196
3197 * regformats/reg-arm.dat: Remove.
3198 * regformats/reg-bfin.dat: Remove.
3199 * regformats/reg-cris.dat: Remove.
3200 * regformats/reg-crisv32.dat: Remove.
3201 * regformats/reg-m32r.dat: Remove.
3202 * regformats/reg-tilegx.dat: Remove.
3203 * regformats/reg-tilegx32.dat: Remove.
3204
3205 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3206
3207 * features/Makefile (WHICH): Remove arm files.
3208 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3209 * regformats/arm/arm-with-neon.dat: Remove.
3210 * regformats/arm/arm-with-vfpv2.dat: Remove.
3211 * regformats/arm/arm-with-vfpv3.dat: Remove.
3212
3213 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3214
3215 * features/Makefile (XMLTOC): Remove rx.xml.
3216
3217 2020-06-17 Pedro Alves <palves@redhat.com>
3218
3219 * gdbthread.h (thread_control_state) <trap_expected> Update
3220 comments.
3221
3222 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3223
3224 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3225 ada_language::lookup_symbol_nonlocal.
3226 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3227 (ada_language::lookup_symbol_nonlocal): New member function,
3228 implementation from ada_lookup_symbol_nonlocal.
3229 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3230 initializer.
3231 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3232 initializer.
3233 (cplus_language::lookup_symbol_nonlocal): New member function.
3234 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3235 (minimal_language_data) Likewise.
3236 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3237 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3238 initializer.
3239 (d_language::lookup_symbol_nonlocal): New member function.
3240 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3241 initializer.
3242 (f_language::lookup_symbol_nonlocal): New member function.
3243 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3244 initializer.
3245 * language.c (unknown_language_data): Likewise.
3246 (auto_language_data): Likewise.
3247 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3248 field.
3249 (language_defn::lookup_symbol_nonlocal): New member function.
3250 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3251 initializer.
3252 * objc-lang.c (objc_language_data): Likewise.
3253 * opencl-lang.c (opencl_language_data): Likewise.
3254 * p-lang.c (pascal_language_data): Likewise.
3255 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3256 rust_language::lookup_symbol_nonlocal.
3257 (rust_language_data): Delete la_lookup_symbol_nonlocal
3258 initializer.
3259 (rust_language::lookup_symbol_nonlocal): New member function,
3260 implementation from rust_lookup_symbol_nonlocal.
3261 * symtab.c (lookup_symbol_aux): Update call to
3262 lookup_symbol_nonlocal.
3263 (basic_lookup_symbol_nonlocal): Rename to...
3264 (language_defn::lookup_symbol_nonlocal): ...this, and update
3265 header comment. Remove language_defn parameter, and replace with
3266 uses of `this'.
3267 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3268
3269 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3270
3271 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3272 initializer.
3273 (ada_language::value_print_inner): New member function.
3274 * c-lang.c (c_language_data): Delete la_value_print_inner
3275 initializer.
3276 (cplus_language_data): Likewise.
3277 (asm_language_data): Likewise.
3278 (minimal_language_data): Likewise.
3279 * d-lang.c (d_language_data): Likewise.
3280 (d_language::value_print_inner): New member function.
3281 * f-lang.c (f_language_data): Delete la_value_print_inner
3282 initializer.
3283 (f_language::value_print_inner): New member function.
3284 * f-lang.h (f_value_print_innner): Rename to...
3285 (f_value_print_inner): ...this (note spelling of 'inner').
3286 * f-valprint.c (f_value_print_innner): Rename to...
3287 (f_value_print_inner): ...this (note spelling of 'inner').
3288 * go-lang.c (go_language_data): Delete la_value_print_inner
3289 initializer.
3290 (go_language::value_print_inner): New member function.
3291 * language.c (language_defn::value_print_inner): Define new member
3292 function.
3293 (unk_lang_value_print_inner): Delete.
3294 (unknown_language_data): Delete la_value_print_inner initializer.
3295 (unknown_language::value_print_inner): New member function.
3296 (auto_language_data): Delete la_value_print_inner initializer.
3297 (auto_language::value_print_inner): New member function.
3298 * language.h (language_data): Delete la_value_print_inner field.
3299 (language_defn::value_print_inner): Delcare new member function.
3300 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3301 initializer.
3302 (m2_language::value_print_inner): New member function.
3303 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3304 initializer.
3305 * opencl-lang.c (opencl_language_data): Likewise.
3306 * p-lang.c (pascal_language_data): Likewise.
3307 (pascal_language::value_print_inner): New member function.
3308 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3309 initializer.
3310 (rust_language::value_print_inner): New member function.
3311 * valprint.c (do_val_print): Update call to value_print_inner.
3312
3313 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3314
3315 * ada-lang.c (ada_language_data): Delete la_value_print
3316 initializer.
3317 (ada_language::value_print): New member function.
3318 * c-lang.c (c_language_data): Delete la_value_print initializer.
3319 (cplus_language_data): Likewise.
3320 (asm_language_data): Likewise.
3321 (minimal_language_data): Likewise.
3322 * d-lang.c (d_language_data): Likewise.
3323 * f-lang.c (f_language_data): Likewise.
3324 * go-lang.c (go_language_data): Likewise.
3325 * language.c (unk_lang_value_print): Delete.
3326 (language_defn::value_print): Define new member function.
3327 (unknown_language_data): Delete la_value_print initializer.
3328 (unknown_language::value_print): New member function.
3329 (auto_language_data): Delete la_value_print initializer.
3330 (auto_language::value_print): New member function.
3331 * language.h (language_data): Delete la_value_print field.
3332 (language_defn::value_print): Declare new member function.
3333 (LA_VALUE_PRINT): Update call to value_print.
3334 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3335 * objc-lang.c (objc_language_data): Likewise.
3336 * opencl-lang.c (opencl_language_data): Likewise.
3337 * p-lang.c (pascal_language_data): Likewise.
3338 (pascal_language::value_print): New member function.
3339 * rust-lang.c (rust_language_data): Delete la_value_print
3340 initializer.
3341
3342 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3343
3344 * ada-lang.c (ada_watch_location_expression): Rename to
3345 ada_language::watch_location_expression.
3346 (ada_language_data): Delete la_watch_location_expression
3347 initializer.
3348 (ada_language::watch_location_expression): New member function,
3349 implementation from ada_watch_location_expression.
3350 * breakpoint.c (watch_command_1): Update call to
3351 watch_location_expression.
3352 * c-lang.c (c_watch_location_expression): Rename to
3353 language_defn::watch_location_expression.
3354 (c_language_data): Delete la_watch_location_expression
3355 initializer.
3356 (cplus_language_data): Likewise.
3357 (asm_language_data): Likewise.
3358 (minimal_language_data): Likewise.
3359 * c-lang.h (c_watch_location_expression): Delete declaration.
3360 * d-lang.c (d_language_data): Delete la_watch_location_expression
3361 initializer.
3362 * f-lang.c (f_language_data): Likewise.
3363 * go-lang.c (go_language_data): Likewise.
3364 * language.c (language_defn::watch_location_expression): Member
3365 function implementation from c_watch_location_expression.
3366 (unknown_language_data): Delete la_watch_location_expression
3367 initializer.
3368 (auto_language_data): Likewise.
3369 * language.h (language_data): Delete la_watch_location_expression
3370 field.
3371 (language_defn::watch_location_expression): Declare new member
3372 function.
3373 * m2-lang.c (m2_language_data): Delete
3374 la_watch_location_expression initializer.
3375 * objc-lang.c (objc_language_data): Likewise.
3376 * opencl-lang.c (opencl_language_data): Likewise.
3377 * p-lang.c (pascal_language_data): Likewise.
3378 * rust-lang.c (rust_watch_location_expression): Rename to
3379 rust_language::watch_location_expression.
3380 (rust_language_data): Delete la_watch_location_expression
3381 initializer.
3382 (rust_language::watch_location_expression): New member function,
3383 implementation from rust_watch_location_expression.
3384
3385 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3386
3387 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3388 ada_language::collect_symbol_completion_matches.
3389 (ada_language_data): Delete la_collect_symbol_completion_matches
3390 initializer.
3391 (ada_language::collect_symbol_completion_matches): New member
3392 function, implementation from
3393 ada_collect_symbol_completion_matches.
3394 * c-lang.c (c_language_data): Delete
3395 la_collect_symbol_completion_matches initializer.
3396 (cplus_language_data): Likewise.
3397 (asm_language_data): Likewise.
3398 (minimal_language_data): Likewise.
3399 * d-lang.c (d_language_data): Likewise.
3400 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3401 f_language::collect_symbol_completion_matches.
3402 (f_language_data): Delete la_collect_symbol_completion_matches
3403 initializer.
3404 (f_language::collect_symbol_completion_matches) New member
3405 function, implementation from f_collect_symbol_completion_matches.
3406 * go-lang.c (go_language_data): Delete
3407 la_collect_symbol_completion_matches initializer.
3408 * language.c (unknown_language_data): Likewise.
3409 (auto_language_data): Likewise.
3410 * language.h (language_data): Delete
3411 la_collect_symbol_completion_matches field.
3412 (language_defn::collect_symbol_completion_matches): New member
3413 function.
3414 * m2-lang.c (m2_language_data): Delete
3415 la_collect_symbol_completion_matches initializer.
3416 * objc-lang.c (objc_language_data): Likewise.
3417 * opencl-lang.c (opencl_language_data): Likewise.
3418 * p-lang.c (pascal_language_data): Likewise.
3419 * rust-lang.c (rust_language_data): Likewise.
3420 * symtab.c (default_collect_symbol_completion_matches): Delete.
3421 (collect_symbol_completion_matches): Update call to
3422 collect_symbol_completion_matches.
3423 (collect_symbol_completion_matches_type): Likewise.
3424 * symtab.h (default_collect_symbol_completion_matches): Delete
3425 declaration.
3426
3427 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3428
3429 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3430 (ada_language_data): Delete la_word_break_characters initializer.
3431 (ada_language::word_break_characters): New member function.
3432 * c-lang.c (c_language_data): Delete la_word_break_characters
3433 initializer.
3434 (cplus_language_data): Likewise.
3435 (asm_language_data): Likewise.
3436 (minimal_language_data): Likewise.
3437 * completer.c: Update global comment.
3438 (advance_to_expression_complete_word_point): Update call to
3439 word_break_characters.
3440 (complete_files_symbols): Likewise.
3441 (complete_line_internal_1): Likewise.
3442 (default_completer_handle_brkchars): Likewise.
3443 (skip_quoted_chars): Likewise.
3444 * d-lang.c (d_language_data): Delete la_word_break_characters
3445 initializer.
3446 * f-lang.c (f_word_break_characters): Delete.
3447 (f_language_data): Delete la_word_break_characters initializer.
3448 (f_language::word_break_characters): New member function.
3449 * go-lang.c (go_language_data): Delete la_word_break_characters
3450 initializer.
3451 * language.c (unknown_language_data): Likewise.
3452 (auto_language_data): Likewise.
3453 * language.h (default_word_break_characters): Move declaration to
3454 earlier in the file.
3455 (language_data): Delete la_word_break_characters field.
3456 (language_defn::word_break_characters): New member function.
3457 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3458 initializer.
3459 * objc-lang.c (objc_language_data): Likewise.
3460 * opencl-lang.c (opencl_language_data): Likewise.
3461 * p-lang.c (pascal_language_data): Likewise.
3462 * rust-lang.c (rust_language_data): Likewise.
3463
3464 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3465
3466 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3467 (ada_language_data): Delete la_get_symbol_name_matcher
3468 initializer.
3469 (language_defn::get_symbol_name_matcher_inner): New member
3470 function.
3471 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3472 initializer.
3473 (cplus_language_data): Likewise.
3474 (cplus_language::get_symbol_name_matcher_inner): New member
3475 function.
3476 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3477 (minimal_language_data): Likewise.
3478 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3479 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3480 initializer.
3481 * dictionary.c (iter_match_first_hashed): Update call to
3482 get_symbol_name_matcher.
3483 (iter_match_next_hashed): Likewise.
3484 (iter_match_next_linear): Likewise.
3485 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3486 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3487 initializer.
3488 (f_language::get_symbol_name_matcher_inner): New member function.
3489 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3490 initializer.
3491 * language.c (default_symbol_name_matcher): Update header comment,
3492 make static.
3493 (language_defn::get_symbol_name_matcher): New definition.
3494 (language_defn::get_symbol_name_matcher_inner): Likewise.
3495 (get_symbol_name_matcher): Delete.
3496 (unknown_language_data): Delete la_get_symbol_name_matcher
3497 initializer.
3498 (auto_language_data): Likewise.
3499 * language.h (language_data): Delete la_get_symbol_name_matcher
3500 field.
3501 (language_defn::get_symbol_name_matcher): New member function.
3502 (language_defn::get_symbol_name_matcher_inner): Likewise.
3503 (default_symbol_name_matcher): Delete declaration.
3504 * linespec.c (find_methods): Update call to
3505 get_symbol_name_matcher.
3506 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3507 initializer.
3508 * minsyms.c (lookup_minimal_symbol): Update call to
3509 get_symbol_name_matcher.
3510 (iterate_over_minimal_symbols): Likewise.
3511 * objc-lang.c (objc_language_data): Delete
3512 la_get_symbol_name_matcher initializer.
3513 * opencl-lang.c (opencl_language_data): Likewise.
3514 * p-lang.c (pascal_language_data): Likewise.
3515 * psymtab.c (psymbol_name_matches): Update call to
3516 get_symbol_name_matcher.
3517 * rust-lang.c (rust_language_data): Delete
3518 la_get_symbol_name_matcher initializer.
3519 * symtab.c (symbol_matches_search_name): Update call to
3520 get_symbol_name_matcher.
3521 (compare_symbol_name): Likewise.
3522
3523 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3524
3525 * ada-lang.c (ada_language_data): Delete la_compute_program
3526 initializer.
3527 * c-lang.c (c_language_data): Likewise.
3528 (c_language::compute_program): New member function.
3529 (cplus_language_data): Delete la_compute_program initializer.
3530 (cplus_language::compute_program): New member function.
3531 (asm_language_data): Delete la_compute_program initializer.
3532 (minimal_language_data): Likewise.
3533 * c-lang.h (c_compute_program): Update comment.
3534 (cplus_compute_program): Likewise.
3535 * compile/compile-c-support.c (c_compute_program): Likewise.
3536 (cplus_compute_program): Likewise.
3537 * compile/compile.c (compile_to_object): Update call to
3538 la_compute_program.
3539 * d-lang.c (d_language_data): Delete la_compute_program
3540 initializer.
3541 * f-lang.c (f_language_data): Likewise.
3542 * go-lang.c (go_language_data): Likewise.
3543 * language.c (unknown_language_data): Likewise.
3544 (auto_language_data): Likewise.
3545 * language.h (language_data): Delete la_compute_program field.
3546 (language_defn::compute_program): New member function.
3547 * m2-lang.c (m2_language_data): Delete la_compute_program
3548 initializer.
3549 * objc-lang.c (objc_language_data): Likewise.
3550 * opencl-lang.c (opencl_language_data): Likewise.
3551 * p-lang.c (pascal_language_data): Likewise.
3552 * rust-lang.c (rust_language_data): Likewise.
3553
3554 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3555
3556 * ada-lang.c (ada_language_data) Delete
3557 la_class_name_from_physname initializer.
3558 * c-lang.c (c_language_data): Likewise.
3559 (cplus_language_data): Likewise.
3560 (cplus_language::class_name_from_physname): New member function.
3561 (asm_language_data): Delete la_class_name_from_physname
3562 initializer.
3563 (minimal_language_data): Likewise.
3564 * d-lang.c (d_language_data): Likewise.
3565 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3566 method on language_defn class.
3567 (guess_full_die_structure_name): Likewise.
3568 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3569 initializer.
3570 * go-lang.c (go_language_data): Likewise.
3571 * language.c (language_class_name_from_physname): Delete.
3572 (unk_lang_class_name): Delete.
3573 (unknown_language_data): Delete la_class_name_from_physname
3574 initializer.
3575 (auto_language_data): Likewise.
3576 * language.h (language_data): Delete la_class_name_from_physname
3577 field.
3578 (language_defn::class_name_from_physname): New function.
3579 (language_class_name_from_physname): Delete declaration.
3580 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3581 initializer.
3582 * objc-lang.c (objc_language_data): Likewise.
3583 * opencl-lang.c (opencl_language_data): Likewise.
3584 * p-lang.c (pascal_language_data): Likewise.
3585 * rust-lang.c (rust_language_data): Likewise.
3586
3587 2020-06-16 Tom Tromey <tom@tromey.com>
3588
3589 * tui/tui-data.h (STATUS_NAME): New macro.
3590 * tui/tui-layout.c (tui_remove_some_windows)
3591 (initialize_known_windows, tui_register_window)
3592 (tui_layout_split::remove_windows, initialize_layouts)
3593 (tui_new_layout_command): Don't use hard-coded window names.
3594
3595 2020-06-16 Tom Tromey <tom@tromey.com>
3596
3597 PR tui/25348:
3598 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3599 tui_initialize_readline. Only run once. Call rl_initialize.
3600 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3601 tui_initialize_readline.
3602 * tui/tui-io.c (tui_setup_io): Call
3603 tui_ensure_readline_initialized.
3604 * tui/tui-interp.c (tui_interp::init): Update.
3605
3606 2020-06-16 Tom Tromey <tom@tromey.com>
3607
3608 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3609 Also preserve the status window.
3610
3611 2020-06-16 Tom Tromey <tom@tromey.com>
3612
3613 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3614 where m_window==nullptr.
3615
3616 2020-06-15 Tom Tromey <tromey@adacore.com>
3617
3618 * windows-nat.c (windows_nat::handle_output_debug_string):
3619 Update.
3620 (windows_nat::handle_ms_vc_exception): Update.
3621 * target.h (target_read_string): Change API.
3622 * target.c (target_read_string): Change API.
3623 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3624 Update.
3625 * solib-frv.c (frv_current_sos): Update.
3626 * solib-dsbt.c (dsbt_current_sos): Update.
3627 * solib-darwin.c (darwin_current_sos): Update.
3628 * linux-thread-db.c (inferior_has_bug): Update.
3629 * expprint.c (print_subexp_standard): Update.
3630 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3631 (ada_exception_message_1): Update.
3632
3633 2020-06-15 Tom Tromey <tromey@adacore.com>
3634
3635 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3636
3637 2020-06-15 Tom Tromey <tromey@adacore.com>
3638
3639 * valprint.c (read_string): Update comment.
3640 * target.c (MIN): Remove.
3641 (target_read_string): Rewrite.
3642
3643 2020-06-15 Tom Tromey <tromey@adacore.com>
3644
3645 * corefile.c (read_memory_string): Remove.
3646 * ada-valprint.c (ada_value_print_ptr): Update.
3647 * ada-lang.h (ada_tag_name): Change return type.
3648 * ada-lang.c (type_from_tag): Update.
3649 (ada_tag_name_from_tsd): Change return type. Use
3650 target_read_string.
3651 (ada_tag_name): Likewise.
3652 * gdbcore.h (read_memory_string): Don't declare.
3653
3654 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3655
3656 * symtab.c (rbreak_command): Ignore Windows drive colon.
3657
3658 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3659
3660 * NEWS: Mention removed GDBserver host support.
3661
3662 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3663
3664 * features/riscv/rebuild-csr-xml.sh: Updated.
3665
3666 2020-06-11 Tom Tromey <tom@tromey.com>
3667
3668 PR gdb/18318:
3669 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3670
3671 2020-06-09 Jonny Grant <jg@jguk.org>
3672 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3673
3674 * main.c (captured_main_1): Don't print new line after help.
3675 (print_gdb_help): add mailing list and IRC channel information
3676 to --help. Add new lines between items in the footer. Remove
3677 quotes around bug url.
3678
3679 2020-06-11 Keith Seitz <keiths@redhat.com>
3680
3681 PR gdb/21356
3682 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3683 Resolve typedefs for type length calculations.
3684
3685 2020-06-10 Tom de Vries <tdevries@suse.de>
3686
3687 PR ada/24713
3688 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3689 (write_psymbols): Enable .gdb_index for ada.
3690 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3691 ada.
3692
3693 2020-06-10 Tom de Vries <tdevries@suse.de>
3694
3695 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3696 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3697 namei" instead of "const char *name" argument.
3698 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3699 dw2_symtab_iter_init.
3700
3701 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3702
3703 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3704 to use type::field and field::type instead.
3705
3706 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3707
3708 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3709 to use field::type instead.
3710
3711 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3712
3713 * gdbtypes.h (struct field) <type, set_type>: New methods.
3714 Rename `type` field to...
3715 <m_type>: ... this. Change references throughout to use type or
3716 set_type methods.
3717 (FIELD_TYPE): Use field::type. Change call sites that modify
3718 the field's type to use field::set_type instead.
3719
3720 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3721
3722 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3723 to use type::index_type instead.
3724
3725 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3726
3727 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3728 methods.
3729 (TYPE_INDEX_TYPE): Use type::index_type.
3730 * gdbtypes.c (create_array_type_with_stride): Likewise.
3731
3732 2020-06-07 Tom Tromey <tom@tromey.com>
3733
3734 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3735 parameter.
3736 (generic_value_print): Update.
3737
3738 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3739
3740 Revert commit 982a38f60b0.
3741 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3742
3743 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3744
3745 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3746 avoid use after free.
3747
3748 2020-06-05 Tom de Vries <tdevries@suse.de>
3749
3750 * NEWS: Fix typos.
3751
3752 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3753
3754 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3755 the per_bfd object.
3756 (dwarf2_read_debug_names): Likewise.
3757 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3758 object when re-using a per_bfd object with an index.
3759
3760 2020-06-03 Tom de Vries <tdevries@suse.de>
3761
3762 PR symtab/26046
3763 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3764 children for C++.
3765 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3766 DW_TAG_subprogram.
3767
3768 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3769
3770 * ada-lang.c (ada_language_data): Delete skip_trampoline
3771 initializer.
3772 * c-lang.c (c_language_data): Likewise.
3773 (cplus_language_data): Likewise.
3774 (cplus_language::skip_trampoline): New member function.
3775 (asm_language_data): Delete skip_trampoline initializer.
3776 (minimal_language_data): Likewise.
3777 * d-lang.c (d_language_data): Likewise.
3778 * f-lang.c (f_language_data): Likewise.
3779 * go-lang.c (go_language_data): Likewise.
3780 * language.c (unk_lang_trampoline): Delete function.
3781 (skip_language_trampoline): Update.
3782 (unknown_language_data): Delete skip_trampoline initializer.
3783 (auto_language_data): Likewise.
3784 * language.h (language_data): Delete skip_trampoline field.
3785 (language_defn::skip_trampoline): New function.
3786 * m2-lang.c (m2_language_data): Delete skip_trampoline
3787 initializer.
3788 * objc-lang.c (objc_skip_trampoline): Delete function, move
3789 implementation to objc_language::skip_trampoline.
3790 (objc_language_data): Delete skip_trampoline initializer.
3791 (objc_language::skip_trampoline): New member function with
3792 implementation from objc_skip_trampoline.
3793 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3794 initializer.
3795 * p-lang.c (pascal_language_data): Likewise.
3796 * rust-lang.c (rust_language_data): Likewise.
3797
3798 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3799
3800 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3801 (ada_language::demangle): New member function.
3802 * c-lang.c (c_language_data): Delete la_demangle initializer.
3803 (cplus_language_data): Delete la_demangle initializer.
3804 (cplus_language::demangle): New member function.
3805 (asm_language_data): Delete la_demangle initializer.
3806 (minimal_language_data): Delete la_demangle initializer.
3807 * d-lang.c (d_language_data): Delete la_demangle initializer.
3808 (d_language::demangle): New member function.
3809 * f-lang.c (f_language_data): Delete la_demangle initializer.
3810 (f_language::demangle): New member function.
3811 * go-lang.c (go_language_data): Delete la_demangle initializer.
3812 (go_language::demangle): New member function.
3813 * language.c (language_demangle): Update.
3814 (unk_lang_demangle): Delete.
3815 (unknown_language_data): Delete la_demangle initializer.
3816 (unknown_language::demangle): New member function.
3817 (auto_language_data): Delete la_demangle initializer.
3818 (auto_language::demangle): New member function.
3819 * language.h (language_data): Delete la_demangle field.
3820 (language_defn::demangle): New function.
3821 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3822 * objc-lang.c (objc_language_data): Delete la_demangle
3823 initializer.
3824 (objc_language::demangle): New member function.
3825 * opencl-lang.c (opencl_language_data): Delete la_demangle
3826 initializer.
3827 * p-lang.c (pascal_language_data): Likewise.
3828 * rust-lang.c (rust_language_data): Likewise.
3829 (rust_language::demangle): New member function.
3830
3831 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3832
3833 * ada-lang.c (ada_language_data): Delete la_print_type
3834 initializer.
3835 (ada_language::print_type): New member function.
3836 * c-lang.c (c_language_data): Delete la_print_type initializer.
3837 (c_language::print_type): New member function.
3838 (cplus_language_data): Delete la_print_type initializer.
3839 (cplus_language::print_type): New member function.
3840 (asm_language_data): Delete la_print_type initializer.
3841 (asm_language::print_type): New member function.
3842 (minimal_language_data): Delete la_print_type initializer.
3843 (minimal_language::print_type): New member function.
3844 * d-lang.c (d_language_data): Delete la_print_type initializer.
3845 (d_language::print_type): New member function.
3846 * f-lang.c (f_language_data): Delete la_print_type initializer.
3847 (f_language::print_type): New member function.
3848 * go-lang.c (go_language_data): Delete la_print_type initializer.
3849 (go_language::print_type): New member function.
3850 * language.c (unk_lang_print_type): Delete.
3851 (unknown_language_data): Delete la_print_type initializer.
3852 (unknown_language::print_type): New member function.
3853 (auto_language_data): Delete la_print_type initializer.
3854 (auto_language::print_type): New member function.
3855 * language.h (language_data): Delete la_print_type field.
3856 (language_defn::print_type): New function.
3857 (LA_PRINT_TYPE): Update.
3858 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3859 (m2_language::print_type): New member function.
3860 * objc-lang.c (objc_language_data): Delete la_print_type
3861 initializer.
3862 (objc_language::print_type): New member function.
3863 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3864 to opencl_language::print_type.
3865 (opencl_language_data): Delete la_print_type initializer.
3866 (opencl_language::print_type): New member function, implementation
3867 from opencl_print_type.
3868 * p-lang.c (pascal_language_data): Delete la_print_type
3869 initializer.
3870 (pascal_language::print_type): New member function.
3871 * rust-lang.c (rust_print_type): Delete, implementation moved to
3872 rust_language::print_type.
3873 (rust_language_data): Delete la_print_type initializer.
3874 (rust_language::print_type): New member function, implementation
3875 from rust_print_type.
3876
3877 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3878
3879 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3880 implementation moves to...
3881 (ada_language::sniff_from_mangled_name): ...here. Update return
3882 type.
3883 (ada_language_data): Delete la_sniff_from_mangled_name
3884 initializer.
3885 * c-lang.c (c_language_data): Likewise.
3886 (cplus_language_data): Likewise.
3887 (cplus_language::sniff_from_mangled_name): New member function,
3888 implementation taken from gdb_sniff_from_mangled_name.
3889 (asm_language_data): Delete la_sniff_from_mangled_name
3890 initializer.
3891 (minimal_language_data): Likewise.
3892 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3893 implementation moves to cplus_language::sniff_from_mangled_name.
3894 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3895 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3896 moves to...
3897 (d_language::sniff_from_mangled_name): ...here.
3898 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3899 * f-lang.c (f_language_data): Likewise.
3900 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3901 moves to...
3902 (go_language::sniff_from_mangled_name): ...here.
3903 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3904 * language.c (language_sniff_from_mangled_name): Delete.
3905 (unknown_language_data): Delete la_sniff_from_mangled_name
3906 initializer.
3907 (auto_language_data): Likewise.
3908 * language.h (language_data): Delete la_sniff_from_mangled_name
3909 field.
3910 (language_defn::sniff_from_mangled_name): New function.
3911 (language_sniff_from_mangled_name): Delete declaration.
3912 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3913 field.
3914 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3915 implementation moves to...
3916 (objc_language::sniff_from_mangled_name): ...here.
3917 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3918 * opencl-lang.c (opencl_language_data): Likewise.
3919 * p-lang.c (pascal_language_data): Likewise.
3920 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3921 implementation moves to...
3922 (rust_language::sniff_from_mangled_name): ...here.
3923 (rust_language_data): Delete la_sniff_from_mangled_name
3924 initializer.
3925 * symtab.c (symbol_find_demangled_name): Call
3926 sniff_from_mangled_name member function.
3927
3928 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3929
3930 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3931 initializer.
3932 * c-lang.c (c_language_data): Likewise.
3933 (cplus_language_data): Likewise.
3934 (cplus_language::search_name_hash): New member function.
3935 (asm_language_data): Delete la_search_name_hash initializer.
3936 (minimal_language_data): Likewise.
3937 * d-lang.c (d_language_data): Likewise.
3938 * dictionary.c (default_search_name_hash): Rename to...
3939 (language_defn::search_name_hash): ...this.
3940 * f-lang.c (f_language_data): Likewise.
3941 (f_language::search_name_hash): New member function.
3942 * go-lang.c (go_language_data): Delete la_search_name_hash
3943 initializer.
3944 * language.c (unknown_language_data): Likewise.
3945 (auto_language_data): Likewise.
3946 * language.h (struct language_data): Delete la_search_name_hash
3947 field.
3948 (language_defn::search_name_hash): Declare new member function.
3949 (default_search_name_hash): Delete declaration.
3950 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3951 initializer.
3952 * objc-lang.c (objc_language_data): Likewise.
3953 * opencl-lang.c (opencl_language_data): Likewise.
3954 * p-lang.c (pascal_language_data): Likewise.
3955 * rust-lang.c (rust_language_data): Likewise.
3956 * symtab.c (search_name_hash): Update call.
3957
3958 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3959
3960 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3961 initializer.
3962 * c-lang.c (class compile_instance): Declare.
3963 (c_language_data): Delete la_get_compile_instance initializer.
3964 (c_language::get_compile_instance): New member function.
3965 (cplus_language_data): Delete la_get_compile_instance initializer.
3966 (cplus_language::get_compile_instance): New member function.
3967 (asm_language_data): Delete la_get_compile_instance initializer.
3968 (minimal_language_data): Likewise.
3969 * c-lang.h (c_get_compile_context): Update comment.
3970 (cplus_get_compile_context): Update comment.
3971 * compile/compile.c (compile_to_object): Update calls, don't rely
3972 on function pointer being NULL.
3973 * d-lang.c (d_language_data): Delete la_get_compile_instance
3974 initializer.
3975 * f-lang.c (f_language_data): Likewise.
3976 * go-lang.c (go_language_data): Likewise.
3977 * language.c (unknown_language_data): Likewise.
3978 (auto_language_data): Likewise.
3979 * language.h (language_data): Delete la_get_compile_instance field.
3980 (language_defn::get_compile_instance): New member function.
3981 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3982 initializer.
3983 * objc-lang.c (objc_language_data): Likewise.
3984 * opencl-lang.c (opencl_language_data): Likewise.
3985 * p-lang.c (pascal_language_data): Likewise.
3986 * rust-lang.c (rust_language_data): Likewise.
3987
3988 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3989
3990 * ada-lang.c (ada_add_all_symbols): Update comment.
3991 (ada_iterate_over_symbols): Delete, move implementation to...
3992 (ada_language::iterate_over_symbols): ...here, a new member
3993 function, rewrite to use range based for loop.
3994 (ada_language_data): Delete la_iterate_over_symbols initializer.
3995 * c-lang.c (c_language_data): Likewise.
3996 (cplus_language_data): Likewise.
3997 (asm_language_data): Likewise.
3998 (minimal_language_data): Likewise.
3999 * d-lang.c (d_language_data): Likewise.
4000 * f-lang.c (f_language_data): Likewise.
4001 * go-lang.c (go_language_data): Likewise.
4002 * language.c (unknown_language_data): Likewise.
4003 (auto_language_data): Likewise.
4004 * language.h (language_data): Delete la_iterate_over_symbols field.
4005 (language_defn::iterate_over_symbols): New member function.
4006 (LA_ITERATE_OVER_SYMBOLS): Update.
4007 * linespec.c (iterate_over_all_matching_symtabs): Update.
4008 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4009 initializer.
4010 * objc-lang.c (objc_language_data): Likewise.
4011 * opencl-lang.c (opencl_language_data): Likewise.
4012 * p-lang.c (pascal_language_data): Likewise.
4013 * rust-lang.c (rust_language_data): Likewise.
4014
4015 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4016
4017 * ada-lang.c (ada_language_data): Delete
4018 la_lookup_transparent_type initializer.
4019 * c-lang.c (c_language_data): Likewise.
4020 (cplus_language_data): Likewise.
4021 (cplus_language::lookup_transparent_type): New member function.
4022 (asm_language_data): Delete la_lookup_transparent_type
4023 initializer.
4024 (minimal_language_data): Likewise.
4025 * d-lang.c (d_language_data): Likewise.
4026 * f-lang.c (f_language_data): Likewise.
4027 * go-lang.c (go_language_data): Likewise.
4028 * language.c (unknown_language_data): Likewise.
4029 (auto_language_data): Likewise.
4030 * language.h (struct language_data): Delete
4031 la_lookup_transparent_type field.
4032 (language_defn::lookup_transparent_type): New member function.
4033 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4034 initializer.
4035 * objc-lang.c (objc_language_data): Likewise.
4036 * opencl-lang.c (opencl_language_data): Likewise.
4037 * p-lang.c (pascal_language_data): Likewise.
4038 * rust-lang.c (rust_language_data): Likewise.
4039 * symtab.c (symbol_matches_domain): Update call.
4040
4041 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4042
4043 * ada-lang.c (ada_language_arch_info): Delete function, move
4044 implementation to...
4045 (ada_language::language_arch_info): ...here, a new member
4046 function.
4047 (ada_language_data): Delete la_language_arch_info.
4048 * c-lang.c (c_language_data): Likewise.
4049 (c_language::language_arch_info): New member function.
4050 (cplus_language_arch_info): Delete function, move
4051 implementation to...
4052 (cplus_language::language_arch_info): ...here, a new member
4053 function.
4054 (cplus_language_data): Delete la_language_arch_info.
4055 (asm_language_data): Likewise.
4056 (asm_language::language_arch_info): New member function.
4057 (minimal_language_data): Delete la_language_arch_info.
4058 (minimal_language::language_arch_info): New member function.
4059 * d-lang.c (d_language_arch_info): Delete function, move
4060 implementation to...
4061 (d_language::language_arch_info): ...here, a new member
4062 function.
4063 (d_language_data): Delete la_language_arch_info.
4064 * f-lang.c (f_language_arch_info): Delete function, move
4065 implementation to...
4066 (f_language::language_arch_info): ...here, a new member
4067 function.
4068 (f_language_data): Delete la_language_arch_info.
4069 * go-lang.c (go_language_arch_info): Delete function, move
4070 implementation to...
4071 (go_language::language_arch_info): ...here, a new member
4072 function.
4073 (go_language_data): Delete la_language_arch_info.
4074 * language.c (unknown_language_data): Likewise.
4075 (unknown_language::language_arch_info): New member function.
4076 (auto_language_data): Delete la_language_arch_info.
4077 (auto_language::language_arch_info): New member function.
4078 (language_gdbarch_post_init): Update call to
4079 la_language_arch_info.
4080 * language.h (language_data): Delete la_language_arch_info
4081 function pointer.
4082 (language_defn::language_arch_info): New function.
4083 * m2-lang.c (m2_language_arch_info): Delete function, move
4084 implementation to...
4085 (m2_language::language_arch_info): ...here, a new member
4086 function.
4087 (m2_language_data): Delete la_language_arch_info.
4088 * objc-lang.c (objc_language_arch_info): Delete function, move
4089 implementation to...
4090 (objc_language::language_arch_info): ...here, a new member
4091 function.
4092 (objc_language_data): Delete la_language_arch_info.
4093 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4094 implementation to...
4095 (opencl_language::language_arch_info): ...here, a new member
4096 function.
4097 (opencl_language_data): Delete la_language_arch_info.
4098 * p-lang.c (pascal_language_arch_info): Delete function, move
4099 implementation to...
4100 (pascal_language::language_arch_info): ...here, a new member
4101 function.
4102 (pascal_language_data): Delete la_language_arch_info.
4103 * rust-lang.c (rust_language_arch_info): Delete function, move
4104 implementation to...
4105 (rust_language::language_arch_info): ...here, a new member
4106 function.
4107 (rust_language_data): Delete la_language_arch_info.
4108
4109 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4110
4111 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4112 initializer.
4113 * c-lang.c (c_language_data): Likewise.
4114 (cplus_language_data): Likewise.
4115 (cplus_language::pass_by_reference_info): New method.
4116 (asm_language_data): Delete la_pass_by_reference initializer.
4117 (minimal_language_data): Likewise.
4118 * cp-abi.c (cp_pass_by_reference): Remove use of
4119 default_pass_by_reference.
4120 * d-lang.c (d_language_data): Likewise.
4121 * f-lang.c (f_language_data): Likewise.
4122 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4123 default_pass_by_reference.
4124 * go-lang.c (go_language_data): Likewise.
4125 * language.c (language_pass_by_reference): Update.
4126 (default_pass_by_reference): Delete.
4127 (unknown_language_data): Delete la_pass_by_reference
4128 initializer.
4129 (auto_language_data): Likewise.
4130 * language.h (struct language_data): Delete la_pass_by_reference
4131 field.
4132 (language_defn::pass_by_reference_info): New member function.
4133 (default_pass_by_reference): Delete declaration.
4134 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4135 initializer.
4136 * objc-lang.c (objc_language_data): Likewise.
4137 * opencl-lang.c (opencl_language_data): Likewise.
4138 * p-lang.c (pascal_language_data): Likewise.
4139 * rust-lang.c (rust_language_data): Likewise.
4140
4141 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4142
4143 * ada-lang.c (ada_read_var_value): Delete function, move
4144 implementation to...
4145 (ada_language::read_var_value): ...here.
4146 (ada_language_data): Delete la_read_var_value initializer.
4147 * c-lang.c (c_language_data): Likewise.
4148 (cplus_language_data): Likewise.
4149 (minimal_language_data): Likewise.
4150 * d-lang.c (d_language_data): Likewise.
4151 * f-lang.c (f_language_data): Likewise.
4152 * findvar.c (default_read_var_value): Rename to...
4153 (language_defn::read_var_value): ...this.
4154 * findvar.c (read_var_value): Update header comment, and change to
4155 call member function instead of function pointer.
4156 * go-lang.c (go_language_data): Likewise.
4157 * language.c (unknown_language_data): Delete la_read_var_value
4158 initializer.
4159 (auto_language_data): Likewise.
4160 * language.h (struct language_data): Delete la_read_var_value
4161 field.
4162 (language_defn::read_var_value): New member function.
4163 (default_read_var_value): Delete declaration.
4164 * m2-lang.c (m2_language_data): Delete la_read_var_value
4165 initializer.
4166 * objc-lang.c (objc_language_data): Likewise.
4167 * opencl-lang.c (opencl_language_data): Likewise.
4168 * p-lang.c (pascal_language_data): Likewise.
4169 * rust-lang.c (rust_language_data): Likewise.
4170 * value.h (default_read_var_value): Delete declaration.
4171
4172 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4173
4174 * ada-lang.c (ada_print_array_index): Delete function, move
4175 implementation to...
4176 (ada_language::print_array_index): ...here.
4177 (ada_language_data): Delete la_print_array_index initializer.
4178 * c-lang.c (c_language_data): Likewise.
4179 (cplus_language_data): Likewise.
4180 (minimal_language_data): Likewise.
4181 * d-lang.c (d_language_data): Likewise.
4182 * f-lang.c (f_language_data): Likewise.
4183 * go-lang.c (go_language_data): Likewise.
4184 * language.c (default_print_array_index): Delete function, move
4185 implementation to...
4186 (language_defn::print_array_index): ...here.
4187 (unknown_language_data): Delete la_print_array_index initializer.
4188 (auto_language_data): Likewise.
4189 * language.h (struct language_data): Delete la_print_array_index
4190 field.
4191 (language_defn::print_array_index): New member function.
4192 (LA_PRINT_ARRAY_INDEX): Update.
4193 (default_print_array_index): Delete declaration.
4194 * m2-lang.c (m2_language_data): Delete la_print_array_index
4195 initializer.
4196 * objc-lang.c (objc_language_data): Likewise.
4197 * opencl-lang.c (opencl_language_data): Likewise.
4198 * p-lang.c (pascal_language_data): Likewise.
4199 * rust-lang.c (rust_language_data): Likewise.
4200
4201 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4202
4203 * gdb/ada-lang.c (ada_language_defn): Convert to...
4204 (ada_language_data): ...this.
4205 (class ada_language): New class.
4206 (ada_language_defn): New static global.
4207 * gdb/c-lang.c (c_language_defn): Convert to...
4208 (c_language_data): ...this.
4209 (class c_language): New class.
4210 (c_language_defn): New static global.
4211 (cplus_language_defn): Convert to...
4212 (cplus_language_data): ...this.
4213 (class cplus_language): New class.
4214 (cplus_language_defn): New static global.
4215 (asm_language_defn): Convert to...
4216 (asm_language_data): ...this.
4217 (class asm_language): New class.
4218 (asm_language_defn): New static global.
4219 (minimal_language_defn): Convert to...
4220 (minimal_language_data): ...this.
4221 (class minimal_language): New class.
4222 (minimal_language_defn): New static global.
4223 * gdb/d-lang.c (d_language_defn): Convert to...
4224 (d_language_data): ...this.
4225 (class d_language): New class.
4226 (d_language_defn): New static global.
4227 * gdb/f-lang.c (f_language_defn): Convert to...
4228 (f_language_data): ...this.
4229 (class f_language): New class.
4230 (f_language_defn): New static global.
4231 * gdb/go-lang.c (go_language_defn): Convert to...
4232 (go_language_data): ...this.
4233 (class go_language): New class.
4234 (go_language_defn): New static global.
4235 * gdb/language.c (unknown_language_defn): Remove declaration.
4236 (current_language): Initialize to nullptr, real initialization is
4237 moved to _initialize_language.
4238 (languages): Delete global.
4239 (language_defn::languages): Define.
4240 (set_language_command): Use language_defn::languages.
4241 (set_language): Likewise.
4242 (range_error): Likewise.
4243 (language_enum): Likewise.
4244 (language_def): Likewise.
4245 (add_set_language_command): Use language_def::languages for the
4246 language list, and language_def to lookup language pointers.
4247 (skip_language_trampoline): Use language_defn::languages.
4248 (unknown_language_defn): Convert to...
4249 (unknown_language_data): ...this.
4250 (class unknown_language): New class.
4251 (unknown_language_defn): New static global.
4252 (auto_language_defn): Convert to...
4253 (auto_language_data): ...this.
4254 (class auto_language): New class.
4255 (auto_language_defn): New static global.
4256 (language_gdbarch_post_init): Use language_defn::languages.
4257 (_initialize_language): Initialize current_language.
4258 * gdb/language.h (struct language_defn): Rename to...
4259 (struct language_data): ...this.
4260 (struct language_defn): New.
4261 (auto_language_defn): Delete.
4262 (unknown_language_defn): Delete.
4263 (minimal_language_defn): Delete.
4264 (ada_language_defn): Delete.
4265 (asm_language_defn): Delete.
4266 (c_language_defn): Delete.
4267 (cplus_language_defn): Delete.
4268 (d_language_defn): Delete.
4269 (f_language_defn): Delete.
4270 (go_language_defn): Delete.
4271 (m2_language_defn): Delete.
4272 (objc_language_defn): Delete.
4273 (opencl_language_defn): Delete.
4274 (pascal_language_defn): Delete.
4275 (rust_language_defn): Delete.
4276 * gdb/m2-lang.c (m2_language_defn): Convert to...
4277 (m2_language_data): ...this.
4278 (class m2_language): New class.
4279 (m2_language_defn): New static global.
4280 * gdb/objc-lang.c (objc_language_defn): Convert to...
4281 (objc_language_data): ...this.
4282 (class objc_language): New class.
4283 (objc_language_defn): New static global.
4284 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4285 (opencl_language_data): ...this.
4286 (class opencl_language): New class.
4287 (opencl_language_defn): New static global.
4288 * gdb/p-lang.c (pascal_language_defn): Convert to...
4289 (pascal_language_data): ...this.
4290 (class pascal_language): New class.
4291 (pascal_language_defn): New static global.
4292 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4293 language pointer, update comment format.
4294 * gdb/rust-lang.c (rust_language_defn): Convert to...
4295 (rust_language_data): ...this.
4296 (class rust_language): New class.
4297 (rust_language_defn): New static global.
4298
4299 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4300
4301 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4302 member variable.
4303 <m_stmt_at_address>: New member variable.
4304 (lnp_state_machine::record_line): Don't record some lines, update
4305 tracking of is_stmt at the same address.
4306 (lnp_state_machine::lnp_state_machine): Initialise new member
4307 variables.
4308
4309 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4310
4311 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4312 "-include gnu-nat-mig.h".
4313 * gnu-nat-mig.h: New file.
4314 * gnu-nat.c: Include "gnu-nat-mig.h".
4315 (exc_server, msg_reply_server, notify_server,
4316 process_reply_server): Remove declarations.
4317
4318 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4319
4320 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4321 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4322 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4323 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4324 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4325 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4326 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4327 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4328 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4329 to gnu_nat_target class.
4330 * gnu-nat.c: Likewise.
4331 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4332 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4333 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4334 object.
4335 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4336 instead of `gnu_target'.
4337
4338 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4339
4340 * i386-gnu-tdep.c: Include "gdbcore.h"
4341 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4342 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4343 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4344 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4345 i386_gnu_sigcontext_addr): New functions
4346 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4347 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4348 tdep.
4349
4350 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4351
4352 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4353 before fork_inferior call. Avoid calling it if target_is_pushed returns
4354 true.
4355
4356 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4357
4358 * gnu-nat.h (gnu_target): New variable declaration.
4359 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4360 gnu_target.
4361 * gnu-nat.c (gnu_target): New variable.
4362 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4363 add_thread_silent, and add_thread calls.
4364 (gnu_nat_target::create_inferior): Pass gnu_target to
4365 add_thread_silent, thread_change_ptid call.
4366 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4367 call.
4368
4369 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4370
4371 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4372 (gnu_nat_target::find_memory_regions): Remove unused
4373 `old_address' variable.
4374
4375 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4376
4377 * gnu-nat.c: Include "gdbarch.h".
4378
4379 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4380
4381 * reply_mig_hack.awk (Error return): Cast function through
4382 void *, to bypass compiler function call check.
4383
4384 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4385
4386 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4387 $(srcdir)/reply_mig_hack.awk.
4388
4389 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4390
4391 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4392
4393 2020-05-30 Jonny Grant <jg@jguk.org>
4394
4395 * configure.ac (ACX_BUGURL): change bug URL to https.
4396
4397 2020-05-30 Pedro Alves <palves@redhat.com>
4398
4399 * cp-support.c (replace_typedefs_template): New.
4400 (replace_typedefs_qualified_name): Handle
4401 DEMANGLE_COMPONENT_TEMPLATE.
4402
4403 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4404
4405 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4406 dwarf2/index-cache.h, dwarf2/index-write.c,
4407 dwarf2/index-write.h, dwarf2/line-header.c,
4408 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4409 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4410 variables and fields from `dwarf2_per_objfile` to just
4411 `per_objfile` throughout.
4412
4413 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4414
4415 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4416 <push_dwarf_reg_entry_value>: Add comment.
4417
4418 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4419 Keith Seitz <keiths@redhat.com>
4420
4421 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4422 instead of PyEval_ReleaseLock.
4423 (class gdbpy_gil): Move to earlier in file.
4424 (finalize_python): Set gdb_python_initialized.
4425 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4426 when not initialized.
4427
4428 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4429
4430 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4431 <push_dwarf_reg_entry_value>: Remove assert. Override
4432 per_objfile with caller_per_objfile.
4433
4434 2020-05-28 Tom de Vries <tdevries@suse.de>
4435
4436 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4437 PR gold/15646 workaround to symbol kind "type".
4438
4439 2020-05-27 Tom Tromey <tromey@adacore.com>
4440
4441 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4442
4443 2020-05-27 Tom Tromey <tromey@adacore.com>
4444
4445 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4446 Use htab_find_with_hash.
4447 <add_abbrev>: Remove "abbrev_number" parameter.
4448 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4449 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4450 (hash_abbrev): Add comment.
4451 (abbrev_table::lookup_abbrev): Move to header file.
4452 (abbrev_table::read): Update.
4453
4454 2020-05-27 Tom Tromey <tromey@adacore.com>
4455
4456 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4457 method.
4458 <canonical_name>: New member.
4459 <raw_name>: Rename from "name".
4460 (partial_die_info): Initialize canonical_name.
4461 (scan_partial_symbols): Check raw_name.
4462 (partial_die_parent_scope, partial_die_full_name)
4463 (add_partial_symbol, add_partial_subprogram)
4464 (add_partial_enumeration, load_partial_dies): Use "name" method.
4465 (partial_die_info::name): New method.
4466 (partial_die_info::read, guess_partial_die_structure_name)
4467 (partial_die_info::fixup): Update.
4468
4469 2020-05-27 Tom Tromey <tromey@adacore.com>
4470
4471 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4472 <get_ref_die_offset>: Inline.
4473 <get_ref_die_offset_complaint>: New method.
4474 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4475 (attribute::get_ref_die_offset_complaint): Rename from
4476 get_ref_die_offset. Just issue complaint.
4477
4478 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4479
4480 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4481
4482 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4483
4484 * exec.c (exec_file_attach): Use errno value of first openp failure.
4485
4486 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4487
4488 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4489 Don't close thread handle.
4490
4491 2020-05-27 Tom Tromey <tom@tromey.com>
4492 Simon Marchi <simon.marchi@efficios.com>
4493
4494 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4495 shared_ptr.
4496 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4497 member.
4498 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4499 dwarf2_per_bfd_objfile_data_key>: New globals.
4500 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4501 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4502 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4503 shared.
4504 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4505 short-circuit when sharing.
4506 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4507 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4508
4509 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4510
4511 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4512 to...
4513 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4514 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4515
4516 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4517
4518 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4519 build_name_components, find_name_components_bounds>:
4520 Add per_objfile parameter.
4521 (struct mapped_index) <symbol_name_at>: Likewise.
4522 (struct mapped_debug_names): Remove constructor.
4523 <dwarf2_per_objfile>: Remove field.
4524 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4525 (mapped_index_base::find_name_components_bounds,
4526 mapped_index_base::build_name_components,
4527 dw2_expand_symtabs_matching_symbol): Likewise.
4528 (class mock_mapped_index) <symbol_name_at>: Likewise.
4529 (check_match): Likewise.
4530 (check_find_bounds_finds): Likewise.
4531 (test_mapped_index_find_name_component_bounds): Update.
4532 (CHECK_MATCH): Update.
4533 (dw2_expand_symtabs_matching): Update.
4534 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4535 per_objfile parameter.
4536 <find_vec_in_debug_names>: Likewise.
4537 <m_per_objfile>: New field.
4538 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4539 parameter.
4540 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4541 (dw2_debug_names_iterator::next): Update.
4542 (dw2_debug_names_lookup_symbol): Update.
4543 (dw2_debug_names_expand_symtabs_for_function): Update.
4544 (dw2_debug_names_map_matching_symbols): Update.
4545 (dw2_debug_names_expand_symtabs_matching): Update.
4546 (dwarf2_read_debug_names): Update.
4547
4548 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4549
4550 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4551 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4552 move to dwarf2_per_objfile.
4553 <read_in_chain>: Remove.
4554 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4555 remove_all_cus, age_comp_units>: New methods.
4556 <m_dwarf2_cus>: New member.
4557 (struct dwarf2_per_cu_data) <cu>: Remove.
4558 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4559 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4560 moved to methods of dwarf2_per_objfile.
4561 (dwarf2_clear_marks): Remove.
4562 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4563 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4564 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4565 (dwarf2_per_objfile::remove_all_cus): New.
4566 (class free_cached_comp_units) <~free_cached_comp_units>:
4567 Update.
4568 (load_cu): Update.
4569 (dw2_do_instantiate_symtab): Adjust.
4570 (fill_in_sig_entry_from_dwo_entry): Adjust.
4571 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4572 (cutu_reader::cutu_reader): Likewise.
4573 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4574 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4575 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4576 and dwarf2_per_objfile::age_comp_units.
4577 (load_partial_comp_unit): Update.
4578 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4579 (process_queue): Likewise.
4580 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4581 backlink.
4582 (dwarf2_read_addr_index): Likewise.
4583 (follow_die_offset): Likewise.
4584 (dwarf2_fetch_die_loc_sect_off): Likewise.
4585 (dwarf2_fetch_constant_bytes): Likewise.
4586 (dwarf2_fetch_die_type_sect_off): Likewise.
4587 (follow_die_sig_1): Likewise.
4588 (load_full_type_unit): Likewise.
4589 (read_signatured_type): Likewise.
4590 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4591 (dwarf2_cu::~dwarf2_cu): Remove.
4592 (dwarf2_per_objfile::get_cu): New.
4593 (dwarf2_per_objfile::set_cu): New.
4594 (age_cached_comp_units): Rename to...
4595 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4596 to std::unordered_map.
4597 (free_one_cached_comp_unit): Rename to...
4598 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4599 to std::unordered_map.
4600 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4601 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4602 a dwarf2_per_objfile in data.
4603 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4604 (dwarf2_clear_marks): Remove.
4605
4606 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4607
4608 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4609 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4610 (init_tu_and_read_dwo_dies): Likewise.
4611 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4612 (cutu_reader::cutu_reader): Likewise.
4613 (load_partial_comp_unit): Likewise.
4614 (process_psymtab_comp_unit): Update.
4615 (build_type_psymtabs_1): Update.
4616 (process_skeletonless_type_unit): Update.
4617 (load_full_comp_unit): Update.
4618 (find_partial_die): Update.
4619 (dwarf2_read_addr_index): Update.
4620 (read_signatured_type): Update.
4621
4622 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4623
4624 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4625 m_header_read_in>: New fields.
4626 <get_header>: New method.
4627 * dwarf2/read.c (per_cu_header_read_in): Remove.
4628 (dwarf2_per_cu_data::get_header): New.
4629 (dwarf2_per_cu_data::addr_size): Update.
4630 (dwarf2_per_cu_data::offset_size): Update.
4631 (dwarf2_per_cu_data::ref_addr_size): Update.
4632
4633 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4634
4635 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4636 (dw2_do_instantiate_symtab): Update.
4637 (queue_and_load_all_dwo_tus): Change parameter from
4638 dwarf2_per_cu_data to dwarf2_cu.
4639 (dwarf2_fetch_die_loc_sect_off): Update.
4640 (dwarf2_fetch_constant_bytes): Update.
4641 (dwarf2_fetch_die_type_sect_off): Update.
4642
4643 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4644
4645 * dwarf2/read.c (process_full_comp_unit,
4646 process_full_type_unit): Remove per_cu, per_objfile paramters.
4647 Add dwarf2_cu parameter.
4648 (process_queue): Update.
4649
4650 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4651
4652 * dwarf2/read.c (create_cu_from_index_list): Replace
4653 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4654 (create_cus_from_index_list): Likewise.
4655 (create_cus_from_index): Likewise.
4656 (create_signatured_type_table_from_index): Likewise.
4657 (create_cus_from_debug_names_list): Likewise.
4658 (create_cus_from_debug_names): Likewise.
4659 (dwarf2_read_gdb_index): Update.
4660 (dwarf2_read_debug_names): Update.
4661
4662 2020-05-27 Tom Tromey <tom@tromey.com>
4663 Simon Marchi <simon.marchi@efficios.com>
4664
4665 * dwarf2/read.h (struct dwarf2_per_objfile)
4666 <get_type_for_signatured_type, set_type_for_signatured_type>:
4667 New methods.
4668 <m_type_map>: New member.
4669 (struct signatured_type) <type>: Remove.
4670 * dwarf2/read.c
4671 (dwarf2_per_objfile::get_type_for_signatured_type,
4672 dwarf2_per_objfile::set_type_for_signatured_type): New.
4673 (get_signatured_type): Use new methods.
4674
4675 2020-05-27 Tom Tromey <tom@tromey.com>
4676 Simon Marchi <simon.marchi@efficios.com>
4677
4678 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4679 (struct dwarf2_per_objfile) <type_units>: New member.
4680 <get_type_unit_group_unshareable>: New method.
4681 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4682 num_symtabs, symtabs>: Remove; move to
4683 type_unit_group_unshareable.
4684 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4685 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4686 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4687
4688 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4689
4690 * dwarf2/read.h (struct dwarf2_per_cu_data):
4691 <dwarf2_per_objfile>: Remove.
4692 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4693 dwarf2_per_objfile.
4694 (create_signatured_type_table_from_index): Likewise.
4695 (create_signatured_type_table_from_debug_names): Likewise.
4696 (create_debug_type_hash_table): Likewise.
4697 (fill_in_sig_entry_from_dwo_entry): Likewise.
4698 (create_type_unit_group): Likewise.
4699 (read_comp_units_from_section): Likewise.
4700 (create_cus_hash_table): Likewise.
4701
4702 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4703
4704 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4705 dwarf2_per_cu_data::dwarf2_per_objfile.
4706 (compute_compunit_symtab_includes): Likewise.
4707 (dwarf2_cu::start_symtab): Likewise.
4708
4709 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4710
4711 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4712 parameter.
4713 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4714 (read_namespace_alias): Update.
4715 (lookup_die_type): Update.
4716 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4717 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4718 Update.
4719 (disassemble_dwarf_expression): Update.
4720
4721 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4722
4723 * dwarf2/read.h (struct dwarf2_queue_item): Add
4724 dwarf2_per_objfile parameter, assign new parameter.
4725 <per_objfile>: New field.
4726 * dwarf2/read.c (free_one_cached_comp_unit): Add
4727 dwarf2_per_objfile parameter.
4728 (queue_comp_unit): Likewise.
4729 (dw2_do_instantiate_symtab): Update.
4730 (process_psymtab_comp_unit): Update.
4731 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4732 (process_imported_unit_die): Update.
4733 (queue_and_load_dwo_tu): Update.
4734 (follow_die_offset): Update.
4735 (follow_die_sig_1): Update.
4736
4737 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4738
4739 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4740 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4741 (read_call_site_scope): Assign per_objfile.
4742 (dwarf2_per_cu_data::objfile): Remove.
4743 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4744 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4745 dwarf2_per_objfile parameter.
4746 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4747 dwarf2_per_objfile parameter.
4748 (dwarf_expr_reg_to_entry_parameter): Add output
4749 dwarf2_per_objfile parameter.
4750 (locexpr_get_frame_base): Update.
4751 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4752 <push_dwarf_reg_entry_value>: Update.
4753 <call_site_to_target_addr>: Update.
4754 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4755 parameter.
4756 (value_of_dwarf_reg_entry): Update.
4757 (rw_pieced_value): Update.
4758 (indirect_synthetic_pointer): Update.
4759 (dwarf2_evaluate_property): Update.
4760 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4761 parameter.
4762 (locexpr_read_variable): Update.
4763 (locexpr_get_symbol_read_needs): Update.
4764 (loclist_read_variable): Update.
4765
4766 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4767
4768 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4769 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4770 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4771 parameter.
4772 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4773 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4774 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4775 parameter.
4776 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4777 sect_variable_value): Add dwarf2_per_objfile parameter.
4778 (class dwarf_evaluate_loc_desc) <dwarf_call,
4779 dwarf_variable_value>: Update.
4780 (fetch_const_value_from_synthetic_pointer): Add
4781 dwarf2_per_objfile parameter.
4782 (fetch_const_value_from_synthetic_pointer): Update.
4783 (coerced_pieced_ref): Update.
4784 (class symbol_needs_eval_context) <dwarf_call,
4785 dwarf_variable_value>: Update.
4786 (dwarf2_compile_expr_to_ax): Update.
4787
4788 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4789
4790 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4791 parameter.
4792 (dwarf2_evaluate_loc_desc_full): Update.
4793
4794 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4795
4796 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4797 parameter.
4798 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4799 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4800 dwarf2_per_objfile parameter.
4801 (decode_debug_loc_dwo_addresses): Likewise.
4802 (dwarf2_find_location_expression): Update.
4803 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4804 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4805 parameter.
4806 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4807 parameter.
4808 (locexpr_describe_location_1): Likewise.
4809 (locexpr_describe_location): Update.
4810
4811 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4812
4813 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4814 Remove.
4815 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4816 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4817 (dwarf2_compile_property_to_c): Update.
4818 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4819 use text offset from objfile.
4820 (locexpr_tracepoint_var_ref): Update.
4821 (locexpr_generate_c_location): Update.
4822 (loclist_describe_location): Update.
4823 (loclist_tracepoint_var_ref): Update.
4824 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4825 dwarf2_per_objfile parameter.
4826 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4827 use text offset from objfile.
4828 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4829
4830 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4831
4832 * dwarf2/expr.h (struct dwarf_expr_context)
4833 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4834 <offset>: Remove.
4835 <per_objfile>: New member.
4836 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4837 dwarf2_per_objfile parameter. Don't set offset, set
4838 per_objfile.
4839 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4840 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4841 a dwarf2_per_objfile object instead of an offset.
4842 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4843 constructor.
4844 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4845 to dwarf2_expr_executor constructor. Don't set offset.
4846 (dwarf2_fetch_cfa_info): Update.
4847 (struct dwarf2_frame_cache) <text_offset>: Remove.
4848 <per_objfile>: New field.
4849 (dwarf2_frame_cache): Update.
4850 (dwarf2_frame_prev_register): Update.
4851 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4852 <dwarf_evaluate_loc_desc>: Add constructor.
4853 (dwarf2_evaluate_loc_desc_full): Update.
4854 (dwarf2_locexpr_baton_eval): Update.
4855 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4856 Add constructor.
4857 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4858
4859 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4860
4861 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4862 addr_sized_int_type>: Move to dwarf2_cu.
4863 <int_type>: Move to dwarf2_per_objfile.
4864 (struct dwarf2_per_objfile) <int_type>: Move here.
4865 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4866 addr_sized_int_type>: Move here.
4867 (read_func_scope): Update.
4868 (read_array_type): Update.
4869 (read_tag_string_type): Update.
4870 (attr_to_dynamic_prop): Update.
4871 (dwarf2_per_cu_data::int_type): Rename to...
4872 (dwarf2_per_objfile::int_type): ... this.
4873 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4874 (dwarf2_cu::addr_sized_int_type): ... this.
4875 (read_subrange_type): Update.
4876 (dwarf2_per_cu_data::addr_type): Rename to...
4877 (dwarf2_cu::addr_type): ... this.
4878 (set_die_type): Update.
4879
4880 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4881
4882 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4883 data through per_cu->cu.
4884
4885 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4886
4887 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4888 dwarf2_per_cu_data parameter fo dwarf2_cu.
4889 (lookup_dwo_type_unit): Likewise.
4890 (read_cutu_die_from_dwo): Likewise.
4891 (lookup_dwo_unit): Likewise.
4892 (open_and_init_dwo_file): Likewise.
4893 (lookup_dwo_cutu): Likewise.
4894 (lookup_dwo_comp_unit): Likewise.
4895 (lookup_dwo_type_unit): Likewise.
4896 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4897 (cutu_reader::cutu_reader): Update.
4898
4899 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4900
4901 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4902 parameter.
4903 (process_full_type_unit): Likewise.
4904 (process_queue): Update.
4905
4906 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4907
4908 * dwarf2/read.c (recursively_compute_inclusions): Add
4909 dwarf2_per_objfile parameter.
4910 (compute_compunit_symtab_includes): Likewise.
4911 (process_cu_includes): Update.
4912
4913 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4914
4915 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4916 parameter.
4917 (create_type_unit_group): Update.
4918 (process_psymtab_comp_unit_reader): Update.
4919 (build_type_psymtabs_reader): Update.
4920
4921 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4922
4923 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4924 object through m_this_cu->cu.
4925
4926 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4927
4928 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4929 the info parameter.
4930 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4931
4932 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4933
4934 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4935 per_objfile parameter.
4936 (load_full_type_unit): Add per_objfile parameter.
4937 (read_signatured_type): Likewise.
4938 (load_full_comp_unit): Likewise.
4939 (load_cu): Likewise.
4940 (dw2_do_instantiate_symtab): Likewise.
4941 (dw2_get_file_names): Likewise.
4942 (dw2_map_symtabs_matching_filename): Update.
4943 (dw_expand_symtabs_matching_file_matcher): Update.
4944 (dw2_map_symbol_filenames): Update.
4945 (process_psymtab_comp_unit): Add per_objfile parameter.
4946 (build_type_psymtabs_1): Update.
4947 (process_skeletonless_type_unit): Update.
4948 (dwarf2_build_psymtabs_hard): Update.
4949 (load_partial_comp_unit): Add per_objfile parameter.
4950 (scan_partial_symbols): Update.
4951 (load_full_comp_unit): Add per_objfile parameter.
4952 (process_imported_unit_die): Update.
4953 (create_cus_hash_table): Update.
4954 (find_partial_die): Update.
4955 (dwarf2_read_addr_index): Update.
4956 (follow_die_offset): Update.
4957 (dwarf2_fetch_die_loc_sect_off): Update.
4958 (dwarf2_fetch_constant_bytes): Update.
4959 (dwarf2_fetch_die_type_sect_off): Update.
4960 (follow_die_sig_1): Update.
4961 (load_full_type_unit): Add per_objfile parameter.
4962 (read_signatured_type): Likewise.
4963
4964 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4965
4966 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4967 of objfile_name.
4968
4969 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4970
4971 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4972 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4973 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4974 field.
4975 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4976 (create_cus_from_index): Update.
4977 (dwarf2_read_gdb_index): Update.
4978 (create_cus_from_debug_names): Update.
4979 (dwarf2_read_debug_names): Update.
4980 (get_abbrev_section_for_cu): Update.
4981 (create_all_comp_units): Update.
4982 (read_attribute_value): Update.
4983 (get_debug_line_section): Update.
4984 * dwarf2/index-cache.c (index_cache::store): Update.
4985 * dwarf2/index-write.c (save_gdb_index_command): Update.
4986 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4987
4988 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4989
4990 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4991 member.
4992 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4993 dwarf2_per_cu_data::per_bfd.
4994 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4995 (create_type_unit_group): Likewise.
4996 (queue_comp_unit): Remove reference to
4997 per_cu->dwarf2_per_objfile.
4998 (maybe_queue_comp_unit): Likewise.
4999 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5000 (create_cus_hash_table): Assign new field.
5001
5002 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5003
5004 * dwarf2/read.c: Replace
5005 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5006 dwarf2_cu->per_objfile throughout.
5007
5008 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5009
5010 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5011 parameter, don't use per_cu->dwarf2_per_objfile.
5012 (dw2_instantiate_symtab): Likewise.
5013 (dw2_find_last_source_symtab): Update.
5014 (dw2_map_expand_apply): Update.
5015 (dw2_lookup_symbol): Update.
5016 (dw2_expand_symtabs_for_function): Update.
5017 (dw2_expand_all_symtabs): Update.
5018 (dw2_expand_symtabs_with_fullname): Update.
5019 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5020 don't use per_cu->dwarf2_per_objfile.
5021 (dw2_expand_marked_cus): Update.
5022 (dw2_find_pc_sect_compunit_symtab): Update.
5023 (dw2_debug_names_lookup_symbol): Update.
5024 (dw2_debug_names_expand_symtabs_for_function): Update.
5025 (dw2_debug_names_map_matching_symbols): Update.
5026 (dwarf2_psymtab::expand_psymtab): Update.
5027
5028 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5029
5030 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5031 <per_objfile>: New member.
5032 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5033 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5034 call to dwarf2_cu.
5035 (cutu_reader::cutu_reader): Update.
5036 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5037
5038 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5039
5040 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5041 struct dwarf2_per_objfile.
5042 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5043 dwarf2_per_bfd.
5044 * dwarf2/read.c (set_die_type): Update.
5045 (get_die_type_at_offset): Update.
5046
5047 2020-05-27 Tom Tromey <tom@tromey.com>
5048 Simon Marchi <simon.marchi@efficios.com>
5049
5050 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5051 method.
5052 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5053 get_symtab, set_symtab>: New methods.
5054 <m_symtabs>: New field.
5055 (struct dwarf2_psymtab): Derive from partial_symtab.
5056 <readin_p, get_compunit_symtab>: Declare methods.
5057 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5058 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5059 New methods.
5060 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5061 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5062 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5063 (dw2_symtab_iter_next, dw2_print_stats)
5064 (dw2_expand_symtabs_with_fullname)
5065 (dw2_expand_symtabs_matching_one)
5066 (dw_expand_symtabs_matching_file_matcher)
5067 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5068 (dw2_debug_names_iterator::next)
5069 (dw2_debug_names_map_matching_symbols)
5070 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5071 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5072 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5073 New methods.
5074 (get_compunit_symtab, process_full_comp_unit)
5075 (process_full_type_unit): Update.
5076 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5077
5078 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5079
5080 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5081 then introduce a new dwarf2_per_objfile type.
5082 <read_line_string>: Move to the new dwarf2_per_objfile type.
5083 <objfile>: Likewise.
5084 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5085 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5086 dwarf2_per_objfile->per_bfd.
5087 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5088 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5089 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5090 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5091 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5092 (dwarf2_per_objfile::locate_sections): Rename to...
5093 (dwarf2_per_bfd::locate_sections): ... this.
5094 (dwarf2_per_objfile::get_cutu): Rename to...
5095 (dwarf2_per_bfd::get_cutu): ... this.
5096 (dwarf2_per_objfile::get_cu): Rename to...
5097 (dwarf2_per_bfd::get_cu): ... this.
5098 (dwarf2_per_objfile::get_tu): Rename to...
5099 (dwarf2_per_bfd::get_tu): ... this.
5100 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5101 (dwarf2_per_bfd::allocate_per_cu): ... this.
5102 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5103 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5104 (get_gdb_index_contents_ftype): Change parameter from
5105 dwarf2_per_objfile to dwarf2_per_bfd.
5106 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5107 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5108
5109 2020-05-27 Tom Tromey <tom@tromey.com>
5110 Simon Marchi <simon.marchi@efficios.com>
5111
5112 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5113 (allocate_piece_closure): Set "per_objfile" member.
5114 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5115 (locexpr_describe_location, loclist_describe_location): Use new
5116 member.
5117 * dwarf2/read.c (read_call_site_scope)
5118 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5119 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5120 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5121 handle_data_member_location): Set per_objfile member.
5122 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5123 member.
5124 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5125
5126 2020-05-27 Tom Tromey <tom@tromey.com>
5127
5128 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5129 allocate_signatured_type>: Declare new methods.
5130 <m_num_psymtabs>: New member.
5131 (struct dwarf2_per_cu_data) <index>: New member.
5132 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5133 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5134 (create_cu_from_index_list): Use allocate_per_cu.
5135 (create_signatured_type_table_from_index)
5136 (create_signatured_type_table_from_debug_names)
5137 (create_debug_type_hash_table, add_type_unit)
5138 (read_comp_units_from_section): Use allocate_signatured_type.
5139
5140 2020-05-27 Tom Tromey <tom@tromey.com>
5141
5142 * psymtab.c (partial_map_expand_apply)
5143 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5144 (psym_lookup_global_symbol_language)
5145 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5146 (psym_print_stats, psym_expand_symtabs_for_function)
5147 (psym_map_symbol_filenames, psym_map_matching_symbols)
5148 (psym_expand_symtabs_matching)
5149 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5150 (maintenance_check_psymtabs): Update.
5151 * psympriv.h (struct partial_symtab) <readin_p,
5152 get_compunit_symtab>: Add objfile parameter.
5153 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5154 Likewise.
5155 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5156 get_compunit_symtab>: Likewise.
5157 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5158
5159 2020-05-27 Tom Tromey <tom@tromey.com>
5160
5161 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5162 member.
5163 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5164 (create_cu_from_index_list)
5165 (create_signatured_type_table_from_index)
5166 (create_signatured_type_table_from_debug_names)
5167 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5168 (dwarf2_create_include_psymtab)
5169 (create_debug_type_hash_table, add_type_unit)
5170 (create_type_unit_group, read_comp_units_from_section)
5171 (dwarf2_compute_name, create_cus_hash_table)
5172 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5173 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5174 obstack.
5175 (dw2_get_real_path): Likewise. Change argument to
5176 dwarf2_per_objfile.
5177
5178 2020-05-27 Luis Machado <luis.machado@linaro.org>
5179
5180 PR tdep/26000
5181 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5182 for ldrd (immediate).
5183
5184 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5185
5186 * command.h: Add comment giving the name of class_tui.
5187 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5188 create the fake command for the help for class_tui.
5189
5190 2020-05-26 Tom Tromey <tromey@adacore.com>
5191
5192 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5193 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5194 (val_atr): New function.
5195 (value_val_atr): Use it.
5196 * ada-valprint.c (print_optional_low_bound): Change low bound
5197 handling for enums.
5198 (val_print_packed_array_elements): Don't call discrete_position.
5199 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5200 discrete_position for enum types.
5201 * language.c (default_print_array_index): Change type.
5202 * language.h (struct language_defn) <la_print_array_index>: Add
5203 index_type parameter, change type of index_value.
5204 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5205 (default_print_array_index): Update.
5206 * valprint.c (maybe_print_array_index): Don't call
5207 value_from_longest. Update.
5208 (value_print_array_elements): Don't call discrete_position.
5209
5210 2020-05-26 Tom Tromey <tromey@adacore.com>
5211
5212 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5213 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5214
5215 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5216
5217 PR gdb/13519
5218 * avr-tdep.c (avr_integer_to_address): Return data or code
5219 address accordingly to the second 'type' argument of the
5220 function.
5221
5222 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5223
5224 * infcmd.c, inferior.h: (construct_inferior_arguments):
5225 Moved function from here to gdbsupport/common-inferior.{h,cc}
5226
5227 2020-05-23 Tom Tromey <tom@tromey.com>
5228
5229 Revert commit eca1f90c:
5230 * NEWS: Remove entry for completion styling.
5231 * completer.c (_rl_completion_prefix_display_length): Move
5232 declaration later.
5233 (gdb_fnprint): Revert.
5234 (gdb_display_match_list_1): Likewise.
5235 * cli/cli-style.c (completion_prefix_style)
5236 (completion_difference_style, completion_suffix_style): Remove.
5237 (_initialize_cli_style): Revert.
5238 * cli/cli-style.h (completion_prefix_style)
5239 (completion_difference_style, completion_suffix_style): Don't
5240 declare.
5241
5242 2020-05-24 Pedro Alves <palves@redhat.com>
5243
5244 * symtab.c (completion_list_add_name): Return boolean indication
5245 of whether the symbol matched.
5246 (completion_list_add_symbol): Don't try to remove C++ aliases if
5247 the symbol didn't match in the first place.
5248 * symtab.h (completion_list_add_name): Return bool.
5249
5250 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5251
5252 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5253 type::field.
5254
5255 2020-05-23 Joel Brobecker <brobecker@adacore.com>
5256
5257 GDB 9.2 released.
5258
5259 2020-05-23 Tom Tromey <tom@tromey.com>
5260
5261 * NEWS: Add entry for completion styling.
5262 * completer.c (_rl_completion_prefix_display_length): Move
5263 declaration earlier.
5264 (gdb_fnprint): Use completion_style.
5265 (gdb_display_match_list_1): Likewise.
5266 * cli/cli-style.c (completion_prefix_style)
5267 (completion_difference_style, completion_suffix_style): New
5268 globals.
5269 (_initialize_cli_style): Register new globals.
5270 * cli/cli-style.h (completion_prefix_style)
5271 (completion_difference_style, completion_suffix_style): Declare.
5272
5273 2020-05-23 Pedro Alves <palves@redhat.com>
5274
5275 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5276 (parse_escape): Use ISDIGIT instead of isdigit.
5277 (puts_debug): Use gdb_isprint instead of isprint.
5278 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5279 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5280 ISSPACE instead of isspace.
5281 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5282 instead of isspace.
5283 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5284 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5285 instead of isxdigit and ISDIGIT instead of isdigit.
5286
5287 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5288
5289 * gdbtypes.h (struct type) <field>: New method.
5290 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5291 or type::field.
5292
5293 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5294
5295 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5296 (TYPE_FIELDS): Use type::fields. Change all call sites that
5297 modify the propery to use type::set_fields instead.
5298
5299 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5300
5301 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5302 type::num_fields instead.
5303
5304 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5305
5306 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5307 methods.
5308 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5309 that modify the number of fields to use type::set_num_fields
5310 instead.
5311
5312 2020-05-22 Tom Tromey <tromey@adacore.com>
5313
5314 * compile/compile-object-load.h (munmap_list_free): Don't
5315 declare.
5316
5317 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5318
5319 * annotate.c (annotate_source_line): Update return type, add call
5320 to update current symtab and line.
5321 * annotate.h (annotate_source_line): Update return type, and
5322 extend header comment.
5323 * source.c (info_line_command): Check annotation_level before
5324 calling annotate_source_line.
5325 * stack.c (print_frame_info): If calling annotate_source_line
5326 returns true, then don't print any other source line information.
5327
5328 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5329
5330 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5331
5332 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5333
5334 * coffread.c (patch_type): Remove NULL check before xfree.
5335 * corefile.c (set_gnutarget): Likewise.
5336 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5337 * exec.c (build_section_table): Likewise.
5338 * remote.c (remote_target::pass_signals): Likewise.
5339 * utils.c (n_spaces): Likewise.
5340 * cli/cli-script.c (document_command): Likewise.
5341 * i386-windows-tdep.c (core_process_module_section): Likewise.
5342 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5343
5344 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5345
5346 * symfile.c (reread_symbols): Clear objfile's section_offsets
5347 vector and section indices, re-compute them by calling
5348 sym_offsets.
5349
5350 2020-05-20 Tom Tromey <tromey@adacore.com>
5351
5352 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5353 (desc_one_bound, desc_index_type): Compute field name.
5354
5355 2020-05-20 Tom de Vries <tdevries@suse.de>
5356
5357 PR symtab/25833
5358 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5359
5360 2020-05-20 Alan Modra <amodra@gmail.com>
5361
5362 PR 25993
5363 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5364 bfd_set_filename.
5365 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5366 passed to bfd_set_filename.
5367 * symfile-mem.c (add_vsyscall_page): Likewise for string
5368 passed to symbol_file_add_from_memory.
5369 (symbol_file_add_from_memory): Make name param a const char* and
5370 don't strdup.
5371
5372 2020-05-20 Alan Modra <amodra@gmail.com>
5373
5374 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5375 rather than accessing bfd->filename directly.
5376 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5377 and use bfd_section_name.
5378 * dwarf2/frame.c (decode_frame_entry): Likewise.
5379 * exec.c (exec_set_section_address): Likewise.
5380 * solib-aix.c (solib_aix_bfd_open): Likewise.
5381 * stap-probe.c (get_stap_base_address): Likewise.
5382 * symfile.c (reread_symbols): Likewise.
5383
5384 2020-05-19 Tom Tromey <tromey@adacore.com>
5385
5386 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5387
5388 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5389
5390 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5391
5392 2020-05-19 Pedro Alves <palves@redhat.com>
5393
5394 * NEWS (set exec-file-mismatch): Adjust entry.
5395 * exec.c: Include "build-id.h".
5396 (validate_exec_file): Try to match build IDs instead of filenames.
5397 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5398 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5399 and pass down 'warn_if_slow'.
5400 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5401 gdb_bfd_open_closure to pass it down.
5402 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5403
5404 2020-05-19 Pedro Alves <palves@redhat.com>
5405
5406 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5407 * target.c (target_fileio_open_1): Rename to target_fileio_open
5408 and make extern. Use bool.
5409 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5410 (target_fileio_read_alloc_1): Adjust.
5411 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5412 (target_fileio_open_warn_if_slow): Delete declaration.
5413
5414 2020-05-19 Pedro Alves <palves@redhat.com>
5415
5416 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5417 Adjust all callers.
5418
5419 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5420
5421 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5422 whether disp is negative.
5423
5424 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5425
5426 * symfile.h (struct symfile_segment_data)
5427 <~symfile_segment_data>: Remove.
5428 <segment_info>: Change to std::vector.
5429 * symfile.c (default_symfile_segments): Update.
5430 * elfread.c (elf_symfile_segments): Update.
5431
5432 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5433
5434 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5435 <segments>: New.
5436 <segment_bases, segment_sizes>: Remove.
5437 * symfile.c (default_symfile_segments): Update.
5438 * elfread.c (elf_symfile_segments): Update.
5439 * remote.c (remote_target::get_offsets): Update.
5440 * solib-target.c (solib_target_relocate_section_addresses):
5441 Update.
5442
5443 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5444
5445 * symfile.h (struct symfile_segment_data): Initialize fields.
5446 <~symfile_segment_data>: Add.
5447 (symfile_segment_data_up): New.
5448 (struct sym_fns) <sym_segments>: Return a
5449 symfile_segment_data_up.
5450 (default_symfile_segments): Return a symfile_segment_data_up.
5451 (free_symfile_segment_data): Remove.
5452 (get_symfile_segment_data): Return a symfile_segment_data_up.
5453 * symfile.c (default_symfile_segments): Likewise.
5454 (get_symfile_segment_data): Likewise.
5455 (free_symfile_segment_data): Remove.
5456 (symfile_find_segment_sections): Update.
5457 * elfread.c (elf_symfile_segments): Return a
5458 symfile_segment_data_up.
5459 * remote.c (remote_target::get_offsets): Update.
5460 * solib-target.c (solib_target_relocate_section_addresses):
5461 Update.
5462 * symfile-debug.c (debug_sym_segments): Return a
5463 symfile_segment_data_up.
5464
5465 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5466
5467 PR build/25981
5468 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5469 Hardcode register numbers.
5470
5471 PR build/25981
5472 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5473 procfs_find_LDT_entry): Remove.
5474 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5475 procfs_find_LDT_entry): Remove.
5476 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5477 Remove.
5478
5479 2020-05-17 Pedro Alves <palves@redhat.com>
5480 Andrew Burgess <andrew.burgess@embecosm.com>
5481 Keno Fischer <keno@juliacomputing.com>
5482
5483 PR gdb/25741
5484 * breakpoint.c (build_target_condition_list): Update comments.
5485 (build_target_command_list): Update comments and skip matching
5486 locations.
5487 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5488 a separate function. Simplify "set breakpoint auto-hw off"
5489 handling.
5490 (insert_breakpoints): Update comment.
5491 (tracepoint_locations_match): New parameter. For breakpoints,
5492 compare location types too, if the caller wants to.
5493 (handle_automatic_hardware_breakpoints): New functions.
5494 (bp_location_is_less_than): Also sort by location type and
5495 hardware breakpoint length.
5496 (update_global_location_list): Handle "set breakpoint auto-hw on"
5497 here.
5498 (update_breakpoint_locations): Ask breakpoint_locations_match to
5499 ignore location types.
5500
5501 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5502
5503 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5504 type::name instead.
5505
5506 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5507
5508 * gdbtypes.h (struct type) <name, set_name>: New methods.
5509 (TYPE_CODE): Use type::name. Change all call sites used to set
5510 the name to use type::set_name instead.
5511
5512 2020-05-16 Tom Tromey <tom@tromey.com>
5513
5514 * top.c (quit_force): Update.
5515 * infrun.c (handle_no_resumed): Update.
5516 * top.h (all_uis): New function.
5517 (ALL_UIS): Remove.
5518
5519 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5520
5521 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5522
5523 2020-05-16 Pedro Alves <palves@redhat.com>
5524
5525 * ia64-linux-nat.c
5526 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5527 Declare method.
5528 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5529
5530 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5531
5532 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5533 (sparc64_adi_info): Likewise.
5534
5535 2020-05-15 Tom Tromey <tom@tromey.com>
5536
5537 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5538 block_objfile.
5539 (lookup_objfile_from_block): Remove.
5540 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5541 (lookup_global_symbol): Use block_objfile.
5542 * symtab.h (lookup_objfile_from_block): Don't declare.
5543 * printcmd.c (clear_dangling_display_expressions): Use
5544 block_objfile.
5545 * parse.c (operator_check_standard): Use block_objfile.
5546
5547 2020-05-15 Tom Tromey <tom@tromey.com>
5548
5549 * language.c (language_alloc_type_symbol): Set
5550 SYMBOL_SECTION.
5551 * symtab.c (initialize_objfile_symbol): Remove.
5552 (allocate_symbol): Remove.
5553 (allocate_template_symbol): Remove.
5554 * dwarf2/read.c (fixup_go_packaging): Use "new".
5555 (new_symbol): Use "new".
5556 (read_variable): Don't call initialize_objfile_symbol. Use
5557 "new".
5558 (read_func_scope): Use "new".
5559 * xcoffread.c (process_xcoff_symbol): Don't call
5560 initialize_objfile_symbol.
5561 (SYMBOL_DUP): Remove.
5562 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5563 "new".
5564 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5565 (allocate_template_symbol): Don't declare.
5566 (struct symbol): Add copy constructor. Change defaults.
5567 * jit.c (finalize_symtab): Use "new".
5568 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5569 Use "new".
5570 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5571 (common_block_end): Use "new".
5572 * mdebugread.c (parse_symbol): Use "new".
5573 (new_symbol): Likewise.
5574
5575 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5576
5577 * NEWS: Mention changes to help and apropos.
5578
5579 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5580
5581 * command.h (enum command_class): Improve comments, document
5582 that class_alias is for user-defined aliases, give the class
5583 name for each class, remove unused class_xdb.
5584 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5585 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5586 by a precise class.
5587 * infcmd.c (_initialize_infcmd): Likewise.
5588 * reverse.c (_initialize_reverse): Likewise.
5589 * stack.c (_initialize_stack): Likewise.
5590 * symfile.c (_initialize_symfile): Likewise.
5591 * tracepoint.c (_initialize_tracepoint): Likewise.
5592
5593 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5594
5595 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5596 when their aliased command is traversed.
5597 (help_cmd): Add fput_command_names_styled call to
5598 output command name and aliases when command has an alias.
5599
5600 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5601
5602 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5603 * cli/cli-decode.c (help_cmd_list): Declare as static,
5604 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5605 a command together with the command.
5606 (fput_command_name_styled, fput_command_names_styled): New functions.
5607 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5608 fput_command_name_styled.
5609 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5610 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5611
5612 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5613
5614 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5615 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5616 * command.h (cmd_show_list): Likewise.
5617 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5618 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5619
5620 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5621
5622 * unittests/command-def-selftests.c (traverse_command_structure):
5623 Verify all commands of a list have the same prefix command and
5624 that only the top cmdlist commands have a null prefix.
5625
5626 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5627
5628 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5629 as prefix, not one of its aliases.
5630 (set_cmd_prefix): Remove.
5631 (do_add_cmd): Centralize the setting of the prefix of a command, when
5632 command is defined after its full chain of prefix commands.
5633 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5634 (add_setshow_cmd_full): Likewise.
5635 (update_prefix_field_of_prefixed_commands): New function.
5636 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5637 update_prefix_field_of_prefixed_commands.
5638 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5639 addresses of remote_set_cmdlist and remote_show_cmdlist given
5640 as argument, not the address of an argument.
5641 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5642 * gdb/remote.c (_initialize_remote): Likewise.
5643
5644 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5645
5646 * cli/cli-cmds.c (alias_command): Check for an existing alias
5647 using lookup_cmd_composition, as valid_command_p is too strict
5648 and forbids aliases that are the prefix of an existing alias
5649 or command.
5650 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5651 command is properly recognised as a valid command.
5652
5653 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5654
5655 * unittests/help-doc-selftests.c: Rename to
5656 unittests/command-def-selftests.c
5657 * unittests/command-def-selftests.c (help_doc_tests): Update some
5658 comments.
5659 (command_structure_tests, traverse_command_structure): New namespace
5660 and function.
5661 (command_structure_invariants_tests): New function.
5662 (_initialize_command_def_selftests) Renamed from
5663 _initialize_help_doc_selftests, register command_structure_invariants
5664 selftest.
5665
5666 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5667
5668 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5669 an alias of 'show'.
5670
5671 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5672
5673 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5674 ada_is_fixed_point_type. Update all callers.
5675 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5676 all callers.
5677 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5678 Update all callers.
5679 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5680 print_fixed_point_type. Update all callers.
5681 * ada-valprint.c (ada_value_print_num): Replace call to
5682 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5683
5684 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5685
5686 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5687 processors.
5688 (cpu_supports_bts): Add CV_AMD case.
5689
5690 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5691 Simon Marchi <simon.marchi@efficios.com>
5692
5693 * infrun.c (stop_all_threads): Collect multiple wait events at
5694 each pass.
5695
5696 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5697
5698 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5699 type::code instead.
5700
5701 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5702
5703 * gdbtypes.h (struct type) <code, set_code>: New methods.
5704 (TYPE_CODE): Use type::code. Change all call sites used to set
5705 the code to use type::set_code instead.
5706
5707 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5708 Tom de Vries <tdevries@suse.de>
5709 Pedro Alves <palves@redhat.com>
5710
5711 PR threads/25478
5712 * infrun.c (stop_all_threads): Do NOT ignore
5713 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5714 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5715 received.
5716 (handle_no_resumed): Remove code handling a live inferior with no
5717 threads.
5718 * remote.c (has_single_non_exited_thread): New.
5719 (remote_target::update_thread_list): Do not delete a thread if is
5720 the last thread of the process.
5721 * thread.c (thread_select): Call delete_exited_threads instead of
5722 prune_threads.
5723
5724 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5725
5726 * infrun.c (stop_all_threads): Enable/disable thread events of all
5727 targets. Move a debug message denoting the end of the function
5728 into the SCOPED_EXIT block.
5729
5730 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5731
5732 * process-stratum-target.h: Include <set>.
5733 (all_non_exited_process_targets, switch_to_target_no_thread): New
5734 function declarations.
5735 * process-stratum-target.c (all_non_exited_process_targets)
5736 (switch_to_target_no_thread): New function implementations.
5737
5738 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5739
5740 * infrun.c (handle_inferior_event): Extract out a piece of code
5741 into...
5742 (mark_non_executing_threads): ...this new function.
5743
5744 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5745
5746 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5747 use.
5748
5749 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5750
5751 * regcache.c (regcache_read_pc_protected): New function
5752 implementation that returns 0 if the PC cannot read via
5753 'regcache_read_pc'.
5754 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5755 instead of 'regcache_read_pc'.
5756 (keep_going_pass_signal): Ditto.
5757
5758 2020-05-13 Tom Tromey <tromey@adacore.com>
5759
5760 * ada-lang.c (align_value): Remove.
5761 (ada_template_to_fixed_record_type_1): Use align_up.
5762
5763 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5764
5765 * async-event.c: Update the copyright year.
5766 * async-event.h: Update the copyright year.
5767
5768 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5769
5770 * objfiles.h (is_addr_in_objfile,
5771 shared_objfile_contains_address_p): Return bool.
5772 * objfile.c (is_addr_in_objfile,
5773 shared_objfile_contains_address_p): Return bool.
5774
5775 2020-05-11 Tom Tromey <tromey@adacore.com>
5776
5777 * cli/cli-cmds.c (info_command): Restore.
5778 (_initialize_cli_cmds): Use add_prefix_command for "info".
5779 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5780
5781 2020-05-11 Tom Tromey <tromey@adacore.com>
5782
5783 * ada-lang.c (ada_value_primitive_field): Now public.
5784 * ada-lang.h (ada_value_primitive_field): Declare.
5785 * ada-valprint.c (print_field_values): Use
5786 ada_value_primitive_field for wrapper fields.
5787
5788 2020-05-11 Tom de Vries <tdevries@suse.de>
5789
5790 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5791 MODULE_DOMAIN.
5792
5793 2020-05-11 Tom de Vries <tdevries@suse.de>
5794
5795 PR symtab/25941
5796 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5797 with length 0, if not gdb-produced.
5798 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5799
5800 2020-05-09 Tom de Vries <tdevries@suse.de>
5801
5802 PR gdb/25955
5803 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5804 calculation.
5805
5806 2020-05-09 Tom Tromey <tom@tromey.com>
5807
5808 * top.c (server_command): Now bool.
5809 * top.h (server_command): Now bool.
5810
5811 2020-05-08 Tom Tromey <tromey@adacore.com>
5812
5813 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5814 already being processed.
5815
5816 2020-05-08 Tom Tromey <tom@tromey.com>
5817
5818 * printcmd.c (struct display) <next>: Remove.
5819 <display>: New constructor.
5820 <exp_string>: Now a std::string.
5821 <enabled_p>: Now a bool.
5822 (display_number): Move definition earlier.
5823 (displays): Rename from display_chain. Now a std::vector.
5824 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5825 (display_command): Update.
5826 (do_one_display, disable_display)
5827 (enable_disable_display_command, do_enable_disable_display):
5828 Update.
5829 (free_display): Remove.
5830 (clear_displays): Rewrite.
5831 (delete_display): Update.
5832 (map_display_numbers): Use function_view. Remove "data"
5833 parameter. Update.
5834 (do_delete_display): Remove.
5835 (undisplay_command): Update.
5836 (do_one_display, do_displays, disable_display)
5837 (info_display_command): Update.
5838 (do_enable_disable_display): Remove.
5839 (enable_disable_display_command)
5840 (clear_dangling_display_expressions): Update.
5841
5842 2020-05-08 Tom Tromey <tom@tromey.com>
5843
5844 * symtab.c (set_symbol_cache_size)
5845 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5846 (maintenance_print_symbol_cache_statistics): Update.
5847 * symmisc.c (print_symbol_bcache_statistics)
5848 (print_objfile_statistics, maintenance_print_objfiles)
5849 (maintenance_info_symtabs, maintenance_check_symtabs)
5850 (maintenance_expand_symtabs, maintenance_info_line_tables):
5851 Update.
5852 * symfile-debug.c (set_debug_symfile): Update.
5853 * source.c (forget_cached_source_info): Update.
5854 * python/python.c (gdbpy_progspaces): Update.
5855 * psymtab.c (maintenance_info_psymtabs): Update.
5856 * probe.c (parse_probes): Update.
5857 * linespec.c (iterate_over_all_matching_symtabs)
5858 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5859 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5860 * exec.c (exec_target::close): Update.
5861 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5862 * breakpoint.c (print_one_breakpoint_location)
5863 (create_longjmp_master_breakpoint)
5864 (create_std_terminate_master_breakpoint): Update.
5865 * progspace.c (program_spaces): Now a std::vector.
5866 (maybe_new_address_space): Update.
5867 (add_program_space): Remove.
5868 (program_space::program_space): Update.
5869 (remove_program_space): Update.
5870 (number_of_program_spaces): Remove.
5871 (print_program_space, update_address_spaces): Update.
5872 * progspace.h (program_spaces): Change type.
5873 (ALL_PSPACES): Remove.
5874 (number_of_program_spaces): Don't declare.
5875 (struct program_space) <next>: Remove.
5876
5877 2020-05-08 Tom Tromey <tom@tromey.com>
5878
5879 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5880 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5881 (enable_break): Update.
5882 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5883 (frv_fdpic_find_canonical_descriptor): Update.
5884 (frv_fetch_objfile_link_map): Update.
5885 * progspace.c (program_space::free_all_objfiles): Update.
5886 (program_space::solibs): New method.
5887 * progspace.h (struct program_space) <solibs>: New method.
5888 * solist.h (master_so_list): Don't declare.
5889 (ALL_SO_LIBS): Remove.
5890 * solib.h (so_list_head): Remove.
5891 (update_solib_list): Update comment.
5892 * solib.c (master_so_list): Remove.
5893 (solib_used, update_solib_list, solib_add)
5894 (info_sharedlibrary_command, clear_solib)
5895 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5896
5897 2020-05-08 Tom Tromey <tom@tromey.com>
5898
5899 * extension.c (extension_languages): Now a std::array.
5900 (ALL_EXTENSION_LANGUAGES): Remove.
5901 (get_ext_lang_defn, get_ext_lang_of_file)
5902 (eval_ext_lang_from_control_command): Update.
5903 (finish_ext_lang_initialization)
5904 (auto_load_ext_lang_scripts_for_objfile)
5905 (ext_lang_type_printers::ext_lang_type_printers)
5906 (apply_ext_lang_type_printers)
5907 (ext_lang_type_printers::~ext_lang_type_printers)
5908 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5909 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5910 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5911 (get_matching_xmethod_workers, ext_lang_colorize)
5912 (ext_lang_before_prompt): Update.
5913 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5914
5915 2020-05-08 Tom Tromey <tom@tromey.com>
5916
5917 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5918 overload.
5919 <swap_string, m_string>: Remove.
5920 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5921 Update.
5922 * stabsread.c (define_symbol, read_type): Update.
5923 * linespec.c (find_linespec_symbols): Update.
5924 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5925 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5926 * dbxread.c (read_dbx_symtab): Update.
5927 * cp-support.h (cp_canonicalize_string_full)
5928 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5929 Return unique_xmalloc_ptr.
5930 * cp-support.c (inspect_type): Update.
5931 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5932 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5933 Likewise.
5934 * c-typeprint.c (print_name_maybe_canonical): Update.
5935 * break-catch-throw.c (check_status_exception_catchpoint):
5936 Update.
5937
5938 2020-05-08 Tom de Vries <tdevries@suse.de>
5939
5940 * infrun.c (follow_fork): Copy current_line and current_symtab to
5941 child thread.
5942
5943 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5944
5945 * async-event.c (struct async_signal_handler, struct
5946 async_event_handler): Reformat, remove typedef.
5947
5948 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5949
5950 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5951 access thistype->main_type->dyn_prop_list directly.
5952
5953 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5954
5955 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5956 (remove_dyn_prop): Remove. Update all users to use
5957 type::remove_dyn_prop.
5958 * gdbtypes.c (remove_dyn_prop): Rename to...
5959 (type::remove_dyn_prop): ... this.
5960
5961 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5962
5963 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5964 (add_dyn_prop): Remove. Update all users to use
5965 type::add_dyn_prop.
5966 * gdbtypes.c (add_dyn_prop): Rename to...
5967 (type::add_dyn_prop): ... this.
5968
5969 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5970
5971 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5972 (get_dyn_prop): Remove. Update all users to use
5973 type::dyn_prop.
5974 * gdbtypes.c (get_dyn_prop): Rename to...
5975 (type::dyn_prop): ... this.
5976
5977 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5978
5979 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5980
5981 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5982
5983 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5984 instruction, skip it if it's there.
5985
5986 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5987
5988 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5989
5990 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5991
5992 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5993 * gdbtypes.c (recursive_dump_type): Remove use of
5994 TYPE_INCOMPLETE.
5995
5996 2020-05-03 Tom Tromey <tom@tromey.com>
5997
5998 * breakpoint.c (catch_command, tcatch_command): Remove.
5999 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6000 add_show_prefix_cmd.
6001 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6002 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6003 Remove.
6004 (add_internal_problem_command): Use add_basic_prefix_cmd,
6005 add_show_prefix_cmd.
6006 * mips-tdep.c (set_mipsfpu_command): Remove.
6007 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6008 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6009 (_initialize_index_cache): Use add_basic_prefix_cmd.
6010 * memattr.c (dummy_cmd): Remove.
6011 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6012 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6013 (_initialize_tui_win): Use add_basic_prefix_cmd,
6014 add_show_prefix_cmd.
6015 * cli/cli-logging.c (set_logging_command): Remove.
6016 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6017 add_show_prefix_cmd.
6018 (show_logging_command): Remove.
6019 * target.c (target_command): Remove.
6020 (add_target): Use add_basic_prefix_cmd.
6021
6022 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
6023
6024 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6025
6026 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6027
6028 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6029 info_command.
6030
6031 2020-04-30 Kamil Rytarowski <n54@gmx.com>
6032
6033 * nbsd-nat.c (nbsd_enable_proc_events)
6034 (nbsd_nat_target::post_startup_inferior): Add.
6035 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6036 (nbsd_nat_target::update_thread_list): Rewrite.
6037 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6038 "PTRACE_LWP_CREATE".
6039 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6040
6041 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6042
6043 * stack.c (_initialize_stack): Remove duplicated creation
6044 of "frame" command and "f" alias.
6045
6046 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6047
6048 PR gdb/18706
6049 * gdbtypes.c (check_typedef): Calculate size of array of
6050 stubbed type.
6051
6052 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6053
6054 PR gdb/15559
6055 * i386-tdep.c (i386_push_dummy_call): Call
6056 i386_thiscall_push_dummy_call.
6057 (i386_thiscall_push_dummy_call): New function.
6058 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6059 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6060 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6061
6062 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6063
6064 * gdbarch.sh (do_read): Add shellcheck disable directive for
6065 warning SC2162.
6066
6067 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6068
6069 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6070 "referenced but not assigned" warning.
6071
6072 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6073
6074 * gdbarch.sh: Remove code that sets fallbackdefault.
6075
6076 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6077
6078 * gdbarch.sh: Use shell operators && and || instead of
6079 -a and -o.
6080
6081 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6082
6083 * gdbarch.sh: Use $(...) instead of `...`.
6084
6085 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6086
6087 * gdbarch.sh: Use double quotes around variables.
6088
6089 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6090
6091 * gdbarch.sh: Use %s with printf, instead of variables in the
6092 format string.
6093
6094 2020-04-29 Tom Tromey <tromey@adacore.com>
6095
6096 PR ada/25875:
6097 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6098 type fields here.
6099 (read_enumeration_type): Call
6100 update_enumeration_type_from_children later. Update comments.
6101 (process_enumeration_scope): Don't create type fields.
6102
6103 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6104
6105 * nbsd-tdep.c: Include "xml-syscall.h".
6106 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6107
6108 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6109
6110 * nbsd-nat.c: Include "sys/wait.h".
6111 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6112 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6113 (nbsd_nat_target::remove_exec_catchpoint)
6114 (nbsd_nat_target::set_syscall_catchpoint): Add.
6115 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6116 (nbsd_nat_target::insert_exec_catchpoint)
6117 (nbsd_nat_target::remove_exec_catchpoint)
6118 (nbsd_nat_target::set_syscall_catchpoint): Add.
6119 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6120 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6121 `nbsd_get_syscall_number'.
6122
6123 2020-04-29 Tom Tromey <tom@tromey.com>
6124
6125 * stack.c (print_block_frame_labels): Remove.
6126
6127 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
6128
6129 PR gdb/17320
6130 * ada-valprint.c (val_print_packed_array_elements): Move array
6131 end bracket to new line.
6132 (ada_val_print_string): Remove extra spaces before first array
6133 element.
6134 * c-valprint.c (c_value_print_array): Likewise.
6135 * m2-valprint.c (m2_print_array_contents): Likewise.
6136 (m2_value_print_inner): Likewise.
6137 * p-valprint.c (pascal_value_print_inner): Likewise.
6138 * valprint.c (generic_val_print_array): Likewise.
6139 (value_print_array_elements): Move first array element and array
6140 end bracket to new line.
6141
6142 2020-04-29 Tom de Vries <tdevries@suse.de>
6143
6144 PR symtab/25889
6145 * linespec.c (find_method): Fix ix calculation.
6146
6147 2020-04-28 Kamil Rytarowski <n54@gmx.com>
6148
6149 * syscalls/update-netbsd.sh: New file.
6150 * syscalls/netbsd.xml: Regenerate.
6151 * data-directory/Makefile.in: Register `netbsd.xml' in
6152 `SYSCALLS_FILES'.
6153
6154 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6155
6156 * syscalls/update-freebsd.sh: Add double quotes.
6157
6158 2020-04-28 Tom Tromey <tom@tromey.com>
6159
6160 * NEWS: Update.
6161 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6162 (cmdpy_init): Allow class_tui.
6163
6164 2020-04-28 Mark Williams <mark@myosotissp.com>
6165
6166 PR gdb/24480
6167 * dwarf2read.c: Add missing assingments to list_in_scope when
6168 start_symtab was already called.
6169
6170 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6171
6172 PR gdb/25881
6173 * dwarf2/read.c (offset_map_type): Use
6174 gdb:hash_enum<sect_offset> as hash function.
6175
6176 2020-04-28 Tom de Vries <tdevries@suse.de>
6177
6178 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6179 with DW_AT_signature.
6180
6181 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
6182
6183 * configure.ac: Remove check for fs_base/gs_base in
6184 user_regs_struct.
6185 * configure: Re-generate.
6186 * config.in: Re-generate.
6187 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6188 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6189 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6190
6191 2020-04-27 Luis Machado <luis.machado@linaro.org>
6192
6193 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6194 problematic inline frame unwinding situation.
6195 * frame.c (frame_id_computed_p): New function.
6196 * frame.h (frame_id_computed_p): New prototype.
6197
6198 2020-04-26 Tom Tromey <tom@tromey.com>
6199
6200 * command.h (enum command_class) <class_pseudo>: Remove.
6201
6202 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6203
6204 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6205 and whitespace.
6206
6207 2020-04-25 Kamil Rytarowski <n54@gmx.com>
6208
6209 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6210 `PT_GET_PROCESS_STATE' block.
6211
6212 2020-04-24 Tom Tromey <tom@tromey.com>
6213
6214 * symtab.h (symbol_get_demangled_name): Don't declare.
6215 * symtab.c (symbol_get_demangled_name): Remove.
6216 (general_symbol_info::natural_name)
6217 (general_symbol_info::demangled_name): Update.
6218
6219 2020-04-24 Tom Tromey <tom@tromey.com>
6220
6221 PR rust/25025:
6222 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6223
6224 2020-04-24 Tom Tromey <tom@tromey.com>
6225
6226 PR symtab/12707:
6227 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6228 exists.
6229 (new_symbol): Likewise.
6230 * compile/compile-object-load.c (get_out_value_type): Use
6231 symbol_matches_search_name.
6232
6233 2020-04-24 Tom Tromey <tom@tromey.com>
6234
6235 * dwarf2/read.c (add_partial_symbol): Do not call
6236 compute_and_set_names.
6237
6238 2020-04-24 Tom Tromey <tom@tromey.com>
6239
6240 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6241 overload.
6242
6243 2020-04-24 Tom Tromey <tom@tromey.com>
6244
6245 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6246 (add_psymbol_to_list): New overload. Make old overload call new
6247 one.
6248 * psympriv.h (add_psymbol_to_list): New overload.
6249
6250 2020-04-24 Tom Tromey <tom@tromey.com>
6251
6252 * dwarf2/read.c (partial_die_info::read) <case
6253 DW_AT_linkage_name>: Use value_as_string.
6254 (dwarf2_string_attr): Use value_as_string.
6255 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6256 method.
6257 * dwarf2/attribute.c (attribute::value_as_string): New method.
6258
6259 2020-04-24 Tom Tromey <tom@tromey.com>
6260
6261 * symtab.c (general_symbol_info::natural_name)
6262 (general_symbol_info::demangled_name): Check for language_rust.
6263
6264 2020-04-24 Tom Tromey <tom@tromey.com>
6265
6266 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6267 (dwarf2_physname): ... from here.
6268 (partial_die_info::read): Add Rust "{" hack.
6269
6270 2020-04-24 Tom Tromey <tom@tromey.com>
6271
6272 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6273 method.
6274 (symbol_set_demangled_name): Don't declare.
6275 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6276 symbol_set_demangled_name.
6277 (general_symbol_info::set_language)
6278 (general_symbol_info::compute_and_set_names): Update.
6279 * minsyms.c (minimal_symbol_reader::install): Update.
6280 * dwarf2/read.c (new_symbol): Update.
6281
6282 2020-04-24 Tom Tromey <tromey@adacore.com>
6283
6284 PR python/23662:
6285 * python/py-type.c (convert_field): Handle
6286 FIELD_LOC_KIND_DWARF_BLOCK.
6287 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6288 (typy_get_dynamic): Nw function.
6289 (type_object_getset): Add "dynamic".
6290 * NEWS: Add entry.
6291
6292 2020-04-24 Tom Tromey <tromey@adacore.com>
6293
6294 * ada-typeprint.c (print_choices, print_variant_part)
6295 (print_record_field_types_dynamic): New functions.
6296 (print_record_field_types): Use print_record_field_types_dynamic.
6297
6298 2020-04-24 Tom Tromey <tromey@adacore.com>
6299
6300 * dwarf2/read.c (handle_data_member_location): New overload.
6301 (dwarf2_add_field): Use it.
6302 (decode_locdesc): Add "computed" parameter. Update comment.
6303 * gdbtypes.c (is_dynamic_type_internal): Also look for
6304 FIELD_LOC_KIND_DWARF_BLOCK.
6305 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6306 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6307 virtual base classes.
6308 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6309 FIELD_LOC_KIND_DWARF_BLOCK.
6310
6311 2020-04-24 Tom Tromey <tromey@adacore.com>
6312
6313 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6314 * gdbtypes.c (is_dynamic_type_internal): Check
6315 TYPE_HAS_DYNAMIC_LENGTH.
6316 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6317 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6318 New macros.
6319 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6320 constant.
6321
6322 2020-04-24 Tom Tromey <tromey@adacore.com>
6323
6324 * dwarf2/read.c (struct variant_field): Rewrite.
6325 (struct variant_part_builder): New.
6326 (struct nextfield): Remove "variant" field. Add "offset".
6327 (struct field_info): Add "current_variant_part" and
6328 "variant_parts".
6329 (alloc_discriminant_info): Remove.
6330 (alloc_rust_variant): New function.
6331 (quirk_rust_enum): Update.
6332 (dwarf2_add_field): Set "offset" member. Don't handle
6333 DW_TAG_variant_part.
6334 (offset_map_type): New typedef.
6335 (convert_variant_range, create_one_variant)
6336 (create_one_variant_part, create_variant_parts)
6337 (add_variant_property): New functions.
6338 (dwarf2_attach_fields_to_type): Call add_variant_property.
6339 (read_structure_type): Don't handle DW_TAG_variant_part.
6340 (handle_variant_part, handle_variant): New functions.
6341 (handle_struct_member_die): Use them.
6342 (process_structure_scope): Don't handle variant parts.
6343 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6344 (struct discriminant_info): Remove.
6345 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6346 (struct main_type) <flag_discriminated_union>: Remove.
6347 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6348 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6349 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6350 Update.
6351 * valops.c (value_union_variant): Remove.
6352 * value.h (value_union_variant): Don't declare.
6353
6354 2020-04-24 Tom Tromey <tromey@adacore.com>
6355
6356 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6357 (ada_value_primitive_packed_val): Update.
6358 * ada-valprint.c (ada_value_print_1): Update.
6359 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6360 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6361 just an address. Use evaluate_for_locexpr_baton.
6362 (dwarf2_evaluate_property): Update.
6363 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6364 array_view.
6365 * findvar.c (default_read_var_value): Update.
6366 * gdbtypes.c (compute_variant_fields_inner)
6367 (resolve_dynamic_type_internal): Update.
6368 (resolve_dynamic_type): Change type of valaddr parameter.
6369 * gdbtypes.h (resolve_dynamic_type): Update.
6370 * valarith.c (value_subscripted_rvalue): Update.
6371 * value.c (value_from_contents_and_address): Update.
6372
6373 2020-04-24 Tom Tromey <tromey@adacore.com>
6374
6375 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6376 "push_initial_value" parameter.
6377 (dwarf2_evaluate_property): Likewise.
6378 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6379
6380 2020-04-24 Tom Tromey <tromey@adacore.com>
6381
6382 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6383 (variant::matches, compute_variant_fields_recurse)
6384 (compute_variant_fields_inner, compute_variant_fields): New
6385 functions.
6386 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6387 Use resolved_type after type is made.
6388 (operator==): Add new cases.
6389 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6390 (struct discriminant_range, struct variant, struct variant_part):
6391 New.
6392 (union dynamic_prop_data) <variant_parts, original_type>: New
6393 members.
6394 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6395 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6396 constants.
6397 * value.c (unpack_bits_as_long): Now public.
6398 * value.h (unpack_bits_as_long): Declare.
6399
6400 2020-04-24 Tom Tromey <tromey@adacore.com>
6401
6402 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6403 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6404
6405 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6406
6407 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6408
6409 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6410
6411 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6412 (remove_fork_catchpoint, post_startup_inferior)
6413 (post_attach): Move...
6414 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6415 (remove_fork_catchpoint, post_startup_inferior)
6416 (post_attach): ...here.
6417 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6418 (remove_fork_catchpoint, post_startup_inferior)
6419 (post_attach): Move...
6420 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6421 (remove_fork_catchpoint, post_startup_inferior)
6422 (post_attach): ...here.
6423
6424 2020-04-24 Tom Tromey <tromey@adacore.com>
6425
6426 * nat/windows-nat.h (struct windows_thread_info)
6427 <pc_adjusted>: New member.
6428 * windows-nat.c (windows_fetch_one_register): Check
6429 pc_adjusted.
6430 (windows_nat_target::get_windows_debug_event)
6431 (windows_nat_target::wait): Set pc_adjusted.
6432
6433 2020-04-24 Tom de Vries <tdevries@suse.de>
6434
6435 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6436 Run gdb-add-index inside temp dir.
6437
6438 2020-04-23 Tom Tromey <tromey@adacore.com>
6439
6440 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6441 in loop.
6442
6443 2020-04-23 Luis Machado <luis.machado@linaro.org>
6444
6445 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6446 get_frame_register instead of gdbarch_unwind_pc.
6447
6448 2020-04-23 Tom de Vries <tdevries@suse.de>
6449
6450 * symtab.c (lookup_global_symbol): Prefer def over decl.
6451
6452 2020-04-23 Tom de Vries <tdevries@suse.de>
6453
6454 PR symtab/25807
6455 * block.c (best_symbol, better_symbol): Promote to external.
6456 * block.h (best_symbol, better_symbol): Declare.
6457 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6458 decl.
6459
6460 2020-04-23 Tom Tromey <tromey@adacore.com>
6461
6462 PR ada/25837:
6463 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6464 "const char *", not a "const std::string &".
6465 <name_and_matcher::operator==>: Update.
6466 * unittests/lookup_name_info-selftests.c: Change type of
6467 "result".
6468
6469 2020-04-23 Tom Tromey <tom@tromey.com>
6470
6471 * inferior.h (iterate_over_inferiors): Don't declare.
6472 * inferior.c (iterate_over_inferiors): Remove.
6473 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6474 Remove.
6475 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6476 use iterate_over_inferiors.
6477 (darwin_resume_inferior_it)
6478 (struct resume_inferior_threads_param)
6479 (darwin_resume_inferior_threads_it): Remove.
6480 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6481
6482 2020-04-23 Tom de Vries <tdevries@suse.de>
6483
6484 * blockframe.c (find_pc_partial_function): Use
6485 find_pc_sect_compunit_symtab rather than
6486 objfile->sf->qf->find_pc_sect_compunit_symtab.
6487
6488 2020-04-22 Tom de Vries <tdevries@suse.de>
6489
6490 PR symtab/25764
6491 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6492 in psymtabs.
6493
6494 2020-04-22 Tom de Vries <tdevries@suse.de>
6495
6496 PR symtab/25801
6497 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6498 symtabs.
6499
6500 2020-04-22 Tom de Vries <tdevries@suse.de>
6501
6502 PR symtab/25700
6503 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6504 CU if already created.
6505
6506 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6507
6508 * infrun.c (displaced_step_fixup): Switch to the event_thread
6509 before calling displaced_step_restore, not after.
6510
6511 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6512
6513 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6514 its inferior is not recorded by us.
6515 (record_btrace_target_open): Replace call to
6516 all_non_exited_threads () with call to current_inferior
6517 ()->non_exited_threads ().
6518 (record_btrace_target::stop_recording): Likewise.
6519 (record_btrace_target::close): Likewise.
6520 (record_btrace_target::wait): Likewise.
6521 (record_btrace_target::record_stop_replaying): Likewise.
6522
6523 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6524
6525 * btrace.c (btrace_enable): Throw an error on double enables and
6526 when enabling recording fails.
6527 (btrace_disable): Throw an error if the thread is not recorded.
6528
6529 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6530
6531 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6532 request if we do not have a thread_info.
6533
6534 2020-04-21 Tom de Vries <tdevries@suse.de>
6535
6536 PR gdb/25471
6537 * thread.c
6538 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6539 exception in get_frame_id.
6540
6541 2020-04-20 Tom Tromey <tromey@adacore.com>
6542
6543 * python/python.c (struct gdbpy_event): Mark move constructor as
6544 noexcept.
6545 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6546 constructor as noexcept.
6547 * completer.h (struct completion_result): Mark move constructor as
6548 noexcept.
6549 * completer.c (completion_result::completion_result): Use
6550 initialization style. Don't call reset_match_list.
6551
6552 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6553
6554 * MAINTAINERS (Write After Approval): Add myself.
6555
6556 2020-04-18 Tom Tromey <tom@tromey.com>
6557
6558 * windows-tdep.c (init_w32_command_list)
6559 (w32_prefix_command_valid): Restore.
6560 (_initialize_windows_tdep): Call init_w32_command_list.
6561
6562 2020-04-18 Tom Tromey <tom@tromey.com>
6563
6564 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6565 * value.c (value_fn_field): Update.
6566 * valops.c (find_function_in_inferior)
6567 (value_allocate_space_in_inferior): Update.
6568 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6569 Update.
6570 * tui/tui-source.c (tui_source_window::set_contents): Update.
6571 * symtab.c (lookup_global_or_static_symbol)
6572 (find_function_start_sal_1, skip_prologue_sal)
6573 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6574 * symmisc.c (dump_msymbols, dump_symtab_1)
6575 (maintenance_print_one_line_table): Update.
6576 * symfile.c (init_entry_point_info, section_is_mapped)
6577 (list_overlays_command, simple_read_overlay_table)
6578 (simple_overlay_update_1): Update.
6579 * stap-probe.c (handle_stap_probe): Update.
6580 * stabsread.c (dbx_init_float_type, define_symbol)
6581 (read_one_struct_field, read_enum_type, read_range_type): Update.
6582 * source.c (info_line_command): Update.
6583 * python/python.c (gdbpy_source_objfile_script)
6584 (gdbpy_execute_objfile_script): Update.
6585 * python/py-type.c (save_objfile_types): Update.
6586 * python/py-objfile.c (py_free_objfile): Update.
6587 * python/py-inferior.c (python_new_objfile): Update.
6588 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6589 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6590 (maintenance_check_psymtabs): Update.
6591 * printcmd.c (info_address_command): Update.
6592 * objfiles.h (struct objfile) <arch>: New method, from
6593 get_objfile_arch.
6594 (get_objfile_arch): Don't declare.
6595 * objfiles.c (get_objfile_arch): Remove.
6596 (filter_overlapping_sections): Update.
6597 * minsyms.c (msymbol_is_function): Update.
6598 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6599 (output_nondebug_symbol): Update.
6600 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6601 (mdebug_expand_psymtab): Update.
6602 * machoread.c (macho_add_oso_symfile): Update.
6603 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6604 Update.
6605 * linux-fork.c (checkpoint_command): Update.
6606 * linespec.c (convert_linespec_to_sals): Update.
6607 * jit.c (finalize_symtab): Update.
6608 * infrun.c (insert_exception_resume_from_probe): Update.
6609 * ia64-tdep.c (ia64_find_unwind_table): Update.
6610 * hppa-tdep.c (internalize_unwinds): Update.
6611 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6612 Update.
6613 * gcore.c (call_target_sbrk): Update.
6614 * elfread.c (record_minimal_symbol, elf_symtab_read)
6615 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6616 (elf_gnu_ifunc_resolve_by_got): Update.
6617 * dwarf2/read.c (create_addrmap_from_index)
6618 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6619 (read_debug_names_from_section)
6620 (process_psymtab_comp_unit_reader, add_partial_symbol)
6621 (add_partial_subprogram, process_full_comp_unit)
6622 (read_file_scope, read_func_scope, read_lexical_block_scope)
6623 (read_call_site_scope, dwarf2_ranges_read)
6624 (dwarf2_record_block_ranges, dwarf2_add_field)
6625 (mark_common_block_symbol_computed, read_tag_pointer_type)
6626 (read_tag_string_type, dwarf2_init_float_type)
6627 (dwarf2_init_complex_target_type, read_base_type)
6628 (partial_die_info::read, partial_die_info::read)
6629 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6630 (dwarf2_fetch_die_loc_sect_off): Update.
6631 * dwarf2/loc.c (dwarf2_find_location_expression)
6632 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6633 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6634 (dwarf2_loc_desc_get_symbol_read_needs)
6635 (locexpr_describe_location_piece, locexpr_describe_location_1)
6636 (loclist_describe_location): Update.
6637 * dwarf2/index-write.c (write_debug_names): Update.
6638 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6639 * dtrace-probe.c (dtrace_process_dof): Update.
6640 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6641 (process_one_symbol): Update.
6642 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6643 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6644 (coff_read_enum_type): Update.
6645 * cli/cli-cmds.c (edit_command, list_command): Update.
6646 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6647 * breakpoint.c (create_overlay_event_breakpoint)
6648 (create_longjmp_master_breakpoint)
6649 (create_std_terminate_master_breakpoint)
6650 (create_exception_master_breakpoint, get_sal_arch): Update.
6651 * block.c (block_gdbarch): Update.
6652 * annotate.c (annotate_source_line): Update.
6653
6654 2020-04-17 Tom Tromey <tromey@adacore.com>
6655
6656 * auto-load.c (show_auto_load_cmd): Remove.
6657 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6658 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6659 (maintenance_print_arc_command): Remove.
6660 * tui/tui-win.c (tui_command): Remove.
6661 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6662 * tui/tui-layout.c (tui_layout_command): Remove.
6663 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6664 * python/python.c (user_set_python, user_show_python): Remove.
6665 (_initialize_python): Use add_basic_prefix_cmd,
6666 add_show_prefix_cmd.
6667 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6668 (install_gdb_commands): Use add_basic_prefix_cmd,
6669 add_show_prefix_cmd.
6670 (info_guile_command): Remove.
6671 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6672 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6673 add_show_prefix_cmd.
6674 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6675 Remove do_set and do_show parameters.
6676 * cli/cli-style.c (set_style, show_style): Remove.
6677 (_initialize_cli_style): Use add_basic_prefix_cmd,
6678 add_show_prefix_cmd.
6679 (cli_style_option::add_setshow_commands): Remove do_set and
6680 do_show parameters.
6681 (cli_style_option::add_setshow_commands): Use
6682 add_basic_prefix_cmd, add_show_prefix_cmd.
6683 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6684 (set_style_name): Remove.
6685 * cli/cli-dump.c (dump_command, append_command): Remove.
6686 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6687 (tekhex_dump_command, binary_dump_command)
6688 (binary_append_command): Remove.
6689 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6690 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6691 (init_w32_command_list): Remove; move into ...
6692 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6693 * valprint.c (set_print, show_print, set_print_raw)
6694 (show_print_raw): Remove.
6695 (_initialize_valprint): Use add_basic_prefix_cmd,
6696 add_show_prefix_cmd.
6697 * typeprint.c (set_print_type, show_print_type): Remove.
6698 (_initialize_typeprint): Use add_basic_prefix_cmd,
6699 add_show_prefix_cmd.
6700 * record.c (set_record_command, show_record_command): Remove.
6701 (_initialize_record): Use add_basic_prefix_cmd,
6702 add_show_prefix_cmd.
6703 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6704 add_show_prefix_cmd.
6705 (info_command, show_command, set_debug, show_debug): Remove.
6706 * top.h (set_history, show_history): Don't declare.
6707 * top.c (set_history, show_history): Remove.
6708 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6709 (unset_tdesc_cmd): Remove.
6710 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6711 add_show_prefix_cmd.
6712 * symtab.c (info_module_command): Remove.
6713 (_initialize_symtab): Use add_basic_prefix_cmd.
6714 * symfile.c (overlay_command): Remove.
6715 (_initialize_symfile): Use add_basic_prefix_cmd.
6716 * sparc64-tdep.c (info_adi_command): Remove.
6717 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6718 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6719 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6720 add_show_prefix_cmd.
6721 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6722 (_initialize_serial): Use add_basic_prefix_cmd,
6723 add_show_prefix_cmd.
6724 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6725 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6726 add_show_prefix_cmd.
6727 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6728 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6729 add_show_prefix_cmd.
6730 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6731 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6732 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6733 add_show_prefix_cmd.
6734 * remote.c (remote_command, set_remote_cmd): Remove.
6735 (_initialize_remote): Use add_basic_prefix_cmd.
6736 * record-full.c (set_record_full_command)
6737 (show_record_full_command): Remove.
6738 (_initialize_record_full): Use add_basic_prefix_cmd,
6739 add_show_prefix_cmd.
6740 * record-btrace.c (cmd_set_record_btrace)
6741 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6742 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6743 (cmd_show_record_btrace_pt): Remove.
6744 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6745 add_show_prefix_cmd.
6746 * ravenscar-thread.c (set_ravenscar_command)
6747 (show_ravenscar_command): Remove.
6748 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6749 add_show_prefix_cmd.
6750 * mips-tdep.c (show_mips_command, set_mips_command)
6751 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6752 add_show_prefix_cmd.
6753 * maint.c (maintenance_command, maintenance_info_command)
6754 (maintenance_check_command, maintenance_print_command)
6755 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6756 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6757 add_show_prefix_cmd.
6758 (show_per_command_cmd): Remove.
6759 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6760 Remove.
6761 (maintenance_show_test_settings_cmd): Remove.
6762 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6763 add_show_prefix_cmd.
6764 * maint-test-options.c (maintenance_test_options_command):
6765 Remove.
6766 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6767 * macrocmd.c (macro_command): Remove
6768 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6769 * language.c (set_check, show_check): Remove.
6770 (_initialize_language): Use add_basic_prefix_cmd,
6771 add_show_prefix_cmd.
6772 * infcmd.c (unset_command): Remove.
6773 (_initialize_infcmd): Use add_basic_prefix_cmd.
6774 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6775 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6776 add_show_prefix_cmd.
6777 * go32-nat.c (go32_info_dos_command): Remove.
6778 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6779 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6780 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6781 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6782 (_initialize_frame): Use add_basic_prefix_cmd,
6783 add_show_prefix_cmd.
6784 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6785 (_initialize_dcache): Use add_basic_prefix_cmd,
6786 add_show_prefix_cmd.
6787 * cp-support.c (maint_cplus_command): Remove.
6788 (_initialize_cp_support): Use add_basic_prefix_cmd.
6789 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6790 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6791 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6792 add_basic_prefix_cmd, add_show_prefix_cmd.
6793 * breakpoint.c (save_command): Remove.
6794 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6795 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6796 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6797 add_show_prefix_cmd.
6798 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6799 (set_ada_command, show_ada_command): Remove.
6800 (_initialize_ada_language): Use add_basic_prefix_cmd,
6801 add_show_prefix_cmd.
6802 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6803
6804 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6805
6806 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6807 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6808
6809 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6810
6811 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6812 warning messages.
6813
6814 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6815
6816 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6817 import table is not at beginning of .idata section.
6818
6819 2020-04-16 Pedro Alves <palves@redhat.com>
6820
6821 * inferior.c (delete_inferior): Use delete operator directly
6822 instead of delete_program_space.
6823 * progspace.c (add_program_space): New, factored out from
6824 program_space::program_space.
6825 (remove_program_space): New, factored out from
6826 delete_program_space.
6827 (program_space::program_space): Remove intro comment. Rewrite.
6828 (program_space::~program_space): Remove intro comment. Call
6829 remove_program_space.
6830 (delete_program_space): Delete.
6831 * progspace.h (program_space::program_space): Make explicit. Move
6832 intro comment here, adjusted.
6833 (program_space::~program_space): Move intro comment here,
6834 adjusted.
6835 (delete_program_space): Remove.
6836
6837 2020-04-16 Tom Tromey <tromey@adacore.com>
6838
6839 * windows-nat.c (windows_nat::handle_access_violation): New
6840 function.
6841 * nat/windows-nat.h (handle_access_violation): Declare.
6842 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6843 windows-nat.c. Call handle_access_violation.
6844
6845 2020-04-16 Tom de Vries <tdevries@suse.de>
6846
6847 PR symtab/25791
6848 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6849 CUs without psymtab.
6850
6851 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6852
6853 * python/python.c (do_start_initialization): Don't call
6854 PyEval_InitThreads for Python 3.9 and beyond.
6855
6856 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6857
6858 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6859 thread functions.
6860 (obsd_nat_target::wait): Likewise.
6861
6862 2020-04-15 Tom Tromey <tromey@adacore.com>
6863
6864 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6865 (DEBUG_EXCEPT): Use debug_printf.
6866
6867 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6868
6869 * completer.c (class completion_tracker::completion_hash_entry)
6870 <hash_name>: New member function.
6871 (completion_tracker::discard_completions): New callback to hash a
6872 completion_hash_entry, pass this to htab_create_alloc.
6873
6874 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6875
6876 * windows-nat.c (windows_make_so): Warn rather than stopping with
6877 an error if realpath() fails.
6878
6879 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6880
6881 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6882 (nbsd_nat_target::info_proc): Add do_status.
6883
6884 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6885 Tom de Vries <tdevries@suse.de>
6886
6887 PR symtab/25718
6888 * psympriv.h (struct partial_symtab::read_symtab)
6889 (struct partial_symtab::expand_psymtab)
6890 (struct partial_symtab::read_dependencies): Update comments.
6891 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6892 read_symtab for includer.
6893 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6894 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6895 (struct dwarf2_include_psymtab::m_readin): Remove.
6896 (struct dwarf2_include_psymtab::includer): New member function.
6897 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6898
6899 2020-04-14 Tom de Vries <tdevries@suse.de>
6900
6901 PR symtab/25720
6902 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6903 with NULL symbol_matcher and lookup_name.
6904 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6905 and lookup_name.
6906 * dwarf2/read.c (dw2_expand_symtabs_matching)
6907 (dw2_debug_names_expand_symtabs_matching): Same.
6908 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6909 Make lookup_name a pointer. Update comment.
6910 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6911 lookup_name being a pointer.
6912 * symfile.c (expand_symtabs_matching): Same.
6913 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6914 * linespec.c (iterate_over_all_matching_symtabs): Same.
6915
6916 2020-04-13 Tom Tromey <tom@tromey.com>
6917
6918 * run-on-main-thread.c: Update include.
6919 * unittests/main-thread-selftests.c: Update include.
6920 * tui/tui-win.c: Update include.
6921 * tui/tui-io.c: Update include.
6922 * tui/tui-interp.c: Update include.
6923 * tui/tui-hooks.c: Update include.
6924 * top.h: Update include.
6925 * top.c: Update include.
6926 * ser-base.c: Update include.
6927 * remote.c: Update include.
6928 * remote-notif.c: Update include.
6929 * remote-fileio.c: Update include.
6930 * record-full.c: Update include.
6931 * record-btrace.c: Update include.
6932 * python/python.c: Update include.
6933 * posix-hdep.c: Update include.
6934 * mingw-hdep.c: Update include.
6935 * mi/mi-main.c: Update include.
6936 * mi/mi-interp.c: Update include.
6937 * main.c: Update include.
6938 * linux-nat.c: Update include.
6939 * interps.c: Update include.
6940 * infrun.c: Update include.
6941 * inf-loop.c: Update include.
6942 * event-top.c: Update include.
6943 * event-loop.c: Move to ../gdbsupport/.
6944 * event-loop.h: Move to ../gdbsupport/.
6945 * async-event.h: Update include.
6946 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6947
6948 2020-04-13 Tom Tromey <tom@tromey.com>
6949
6950 * tui/tui-win.c: Include async-event.h.
6951 * remote.c: Include async-event.h.
6952 * remote-notif.c: Include async-event.h.
6953 * record-full.c: Include async-event.h.
6954 * record-btrace.c: Include async-event.h.
6955 * infrun.c: Include async-event.h.
6956 * event-top.c: Include async-event.h.
6957 * event-loop.h: Move some declarations to async-event.h.
6958 * event-loop.c: Don't include ser-event.h or top.h. Move some
6959 code to async-event.c.
6960 * async-event.h: New file.
6961 * async-event.c: New file.
6962 * Makefile.in (COMMON_SFILES): Add async-event.c.
6963 (HFILES_NO_SRCDIR): Add async-event.h.
6964
6965 2020-04-13 Tom Tromey <tom@tromey.com>
6966
6967 * utils.c (flush_streams): New function.
6968 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6969
6970 2020-04-13 Tom Tromey <tom@tromey.com>
6971
6972 * event-loop.c (handle_file_event): Use warning, not
6973 printf_unfiltered.
6974
6975 2020-04-13 Tom Tromey <tom@tromey.com>
6976
6977 * event-loop.c: Include <chrono>.
6978
6979 2020-04-13 Tom Tromey <tom@tromey.com>
6980
6981 * gdb_select.h: Move to ../gdbsupport/.
6982 * event-loop.c: Update include path.
6983 * top.c: Update include path.
6984 * ser-base.c: Update include path.
6985 * ui-file.c: Update include path.
6986 * ser-tcp.c: Update include path.
6987 * guile/scm-ports.c: Update include path.
6988 * posix-hdep.c: Update include path.
6989 * ser-unix.c: Update include path.
6990 * gdb_usleep.c: Update include path.
6991 * mingw-hdep.c: Update include path.
6992 * inflow.c: Update include path.
6993 * infrun.c: Update include path.
6994 * event-top.c: Update include path.
6995
6996 2020-04-13 Tom Tromey <tom@tromey.com>
6997
6998 * configure: Rebuild.
6999 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7000
7001 2020-04-13 Tom Tromey <tom@tromey.com>
7002
7003 * event-loop.h (start_event_loop): Don't declare.
7004 * event-loop.c (start_event_loop): Move...
7005 * main.c (start_event_loop): ...here. Now static.
7006
7007 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7008
7009 * MAINTAINERS: Update my email address.
7010
7011 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7012
7013 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7014 IP_ALL.
7015
7016 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7017
7018 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
7019 (nbsd_nat_target::info_proc): Add do_cmdline.
7020
7021 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7022
7023 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
7024 (nbsd_nat_target::info_proc): Add do_cwd.
7025
7026 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7027
7028 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7029
7030 2020-04-11 Kamil Rytarowski <n54@gmx.com>
7031
7032 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7033 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7034 (nbsd_nat_target::info_proc): New functions.
7035 * nbsd-nat.c (kinfo_get_vmmap): New function.
7036 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7037 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7038 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7039 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7040 functions.
7041 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7042 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7043 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7044 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7045 (KINFO_VME_FLAG_GROWS_DOWN): New.
7046
7047 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7048
7049 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7050 bit shift.
7051
7052 2020-04-10 Tom Tromey <tromey@adacore.com>
7053
7054 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7055
7056 2020-04-10 Tom Tromey <tromey@adacore.com>
7057
7058 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7059 separate debug files.
7060
7061 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
7062
7063 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7064 Move to...
7065 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7066 ... here.
7067 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7068 Check for STATUS_WX86_BREAKPOINT.
7069 (windows_nat_target::wait): Same.
7070
7071 2020-04-10 Tom de Vries <tdevries@suse.de>
7072
7073 PR cli/25808
7074 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7075
7076 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7077
7078 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7079 (Write After Approval): Remove Tom de Vries.
7080
7081 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7082
7083 revert partially:
7084 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7085
7086 * buildsym.c (record_line): Fix undefined behavior and preserve
7087 lines at eof.
7088
7089 2020-04-09 Kamil Rytarowski <n54@gmx.com>
7090
7091 * auxv.h (svr4_auxv_parse): New.
7092 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7093 and generic_auxv_parse.
7094 (svr4_auxv_parse): Add.
7095 * obsd-tdep.c: Include "auxv.h".
7096 (obsd_auxv_parse): Remove.
7097 (obsd_init_abi): Remove comment.
7098 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7099 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7100 * nbsd-tdep.c: Include "auxv.h".
7101 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7102
7103 2020-04-08 Tom Tromey <tromey@adacore.com>
7104
7105 * nat/windows-nat.h (last_wait_event): Don't declare.
7106 (wait_for_debug_event): Update comment.
7107 * nat/windows-nat.c (last_wait_event): Now static.
7108
7109 2020-04-08 Tom Tromey <tromey@adacore.com>
7110
7111 * windows-nat.c (wait_for_debug_event): Move to
7112 nat/windows-nat.c.
7113 * nat/windows-nat.h (wait_for_debug_event): Declare.
7114 * nat/windows-nat.c (wait_for_debug_event): Move from
7115 windows-nat.c. No longer static.
7116
7117 2020-04-08 Tom Tromey <tromey@adacore.com>
7118
7119 * windows-nat.c (get_windows_debug_event): Use
7120 fetch_pending_stop.
7121 * nat/windows-nat.h (fetch_pending_stop): Declare.
7122 * nat/windows-nat.c (fetch_pending_stop): New function.
7123
7124 2020-04-08 Tom Tromey <tromey@adacore.com>
7125
7126 * windows-nat.c (windows_continue): Use matching_pending_stop and
7127 continue_last_debug_event.
7128 * nat/windows-nat.h (matching_pending_stop)
7129 (continue_last_debug_event): Declare.
7130 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7131 (matching_pending_stop, continue_last_debug_event): New
7132 functions.
7133
7134 2020-04-08 Tom Tromey <tromey@adacore.com>
7135
7136 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7137 (handle_exception_result): Move to nat/windows-nat.h.
7138 (DEBUG_EXCEPTION_SIMPLE): Remove.
7139 (windows_nat::handle_ms_vc_exception): New function.
7140 (handle_exception): Move to nat/windows-nat.c.
7141 (get_windows_debug_event): Update.
7142 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7143 nat/windows-nat.c.
7144 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7145 (handle_exception_result): Move from windows-nat.c.
7146 (handle_exception): Declare.
7147 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7148 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7149 windows-nat.c.
7150
7151 2020-04-08 Tom Tromey <tromey@adacore.com>
7152
7153 * windows-nat.c (exception_count, event_count): Remove.
7154 (handle_exception, get_windows_debug_event)
7155 (do_initial_windows_stuff): Update.
7156
7157 2020-04-08 Tom Tromey <tromey@adacore.com>
7158
7159 * windows-nat.c (windows_nat::handle_load_dll)
7160 (windows_nat::handle_unload_dll): Rename. No longer static.
7161 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7162 Declare.
7163
7164 2020-04-08 Tom Tromey <tromey@adacore.com>
7165
7166 * complaints.h (stop_whining): Declare at top-level.
7167 (complaint): Don't declare stop_whining.
7168
7169 2020-04-08 Tom Tromey <tromey@adacore.com>
7170
7171 * windows-nat.c (windows_nat::handle_output_debug_string):
7172 Rename. No longer static.
7173 * nat/windows-nat.h (handle_output_debug_string): Declare.
7174
7175 2020-04-08 Tom Tromey <tromey@adacore.com>
7176
7177 * windows-nat.c (current_process_handle, current_process_id)
7178 (main_thread_id, last_sig, current_event, last_wait_event)
7179 (current_windows_thread, desired_stop_thread_id, pending_stops)
7180 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7181 (display_selectors, fake_create_process)
7182 (get_windows_debug_event): Update.
7183 * nat/windows-nat.h (current_process_handle, current_process_id)
7184 (main_thread_id, last_sig, current_event, last_wait_event)
7185 (current_windows_thread, desired_stop_thread_id, pending_stops)
7186 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7187 * nat/windows-nat.c (current_process_handle, current_process_id)
7188 (main_thread_id, last_sig, current_event, last_wait_event)
7189 (current_windows_thread, desired_stop_thread_id, pending_stops)
7190 (siginfo_er): New globals. Move from windows-nat.c.
7191
7192 2020-04-08 Tom Tromey <tromey@adacore.com>
7193
7194 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7195 (handle_load_dll): Update.
7196 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7197
7198 2020-04-08 Tom Tromey <tromey@adacore.com>
7199
7200 * windows-nat.c (enum thread_disposition_type): Move to
7201 nat/windows-nat.h.
7202 (windows_nat::thread_rec): Rename from thread_rec. No longer
7203 static.
7204 (windows_add_thread, windows_nat_target::fetch_registers)
7205 (windows_nat_target::store_registers, handle_exception)
7206 (windows_nat_target::resume, get_windows_debug_event)
7207 (windows_nat_target::get_tib_address)
7208 (windows_nat_target::thread_name)
7209 (windows_nat_target::thread_alive): Update.
7210 * nat/windows-nat.h (enum thread_disposition_type): Move from
7211 windows-nat.c.
7212 (thread_rec): Declare.
7213
7214 2020-04-08 Tom Tromey <tromey@adacore.com>
7215
7216 * windows-nat.c: Add "using namespace".
7217 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7218 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7219
7220 2020-04-08 Tom Tromey <tromey@adacore.com>
7221
7222 * nat/windows-nat.h (struct windows_thread_info): Declare
7223 destructor.
7224 * nat/windows-nat.c (~windows_thread_info): New.
7225
7226 2020-04-08 Tom Tromey <tromey@adacore.com>
7227
7228 PR gdb/22992
7229 * windows-nat.c (current_event): Update comment.
7230 (last_wait_event, desired_stop_thread_id): New globals.
7231 (struct pending_stop): New.
7232 (pending_stops): New global.
7233 (windows_nat_target) <stopped_by_sw_breakpoint>
7234 <supports_stopped_by_sw_breakpoint>: New methods.
7235 (windows_fetch_one_register): Add assertions. Adjust PC.
7236 (windows_continue): Handle pending stops. Suspend other threads
7237 when stepping. Use last_wait_event
7238 (wait_for_debug_event): New function.
7239 (get_windows_debug_event): Use wait_for_debug_event. Handle
7240 pending stops. Queue spurious stops.
7241 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7242 (windows_nat_target::kill): Use wait_for_debug_event.
7243 * nat/windows-nat.h (struct windows_thread_info)
7244 <stopped_at_software_breakpoint>: New field.
7245 * nat/windows-nat.c (windows_thread_info::resume): Clear
7246 stopped_at_software_breakpoint.
7247
7248 2020-04-08 Tom Tromey <tromey@adacore.com>
7249
7250 * windows-nat.c (enum thread_disposition_type): New.
7251 (thread_rec): Replace "get_context" parameter with "disposition";
7252 change type.
7253 (windows_add_thread, windows_nat_target::fetch_registers)
7254 (windows_nat_target::store_registers, handle_exception)
7255 (windows_nat_target::resume, get_windows_debug_event)
7256 (windows_nat_target::get_tib_address)
7257 (windows_nat_target::thread_name)
7258 (windows_nat_target::thread_alive): Update.
7259
7260 2020-04-08 Tom Tromey <tromey@adacore.com>
7261
7262 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7263 (windows_continue): Use windows_continue::resume.
7264 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7265 resume>: Declare new methods.
7266 * nat/windows-nat.c: New file.
7267 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7268
7269 2020-04-08 Tom Tromey <tromey@adacore.com>
7270
7271 * windows-nat.c (windows_add_thread, windows_delete_thread)
7272 (windows_nat_target::fetch_registers)
7273 (windows_nat_target::store_registers, fake_create_process)
7274 (windows_nat_target::resume, windows_nat_target::resume)
7275 (get_windows_debug_event, windows_nat_target::wait)
7276 (windows_nat_target::pid_to_str)
7277 (windows_nat_target::get_tib_address)
7278 (windows_nat_target::get_ada_task_ptid)
7279 (windows_nat_target::thread_name)
7280 (windows_nat_target::thread_alive): Use lwp, not tid.
7281
7282 2020-04-08 Tom Tromey <tromey@adacore.com>
7283
7284 * windows-nat.c (handle_exception)
7285 (windows_nat_target::thread_name): Update.
7286 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7287 <name>: Now unique_xmalloc_ptr.
7288
7289 2020-04-08 Tom Tromey <tromey@adacore.com>
7290
7291 * windows-nat.c (thread_rec)
7292 (windows_nat_target::fetch_registers): Update.
7293 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7294 Update comment.
7295 <debug_registers_changed, reload_context>: Now bool.
7296
7297 2020-04-08 Tom Tromey <tromey@adacore.com>
7298
7299 * windows-nat.c (windows_add_thread): Use new.
7300 (windows_init_thread_list, windows_delete_thread): Use delete.
7301 (get_windows_debug_event): Update.
7302 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7303 destructor, and initializers.
7304
7305 2020-04-08 Tom Tromey <tromey@adacore.com>
7306
7307 * windows-nat.c (struct windows_thread_info): Remove.
7308 * nat/windows-nat.h: New file.
7309
7310 2020-04-08 Tom Tromey <tromey@adacore.com>
7311
7312 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7313 (thread_rec, windows_add_thread, windows_delete_thread)
7314 (windows_continue): Update.
7315
7316 2020-04-08 Tom Tromey <tromey@adacore.com>
7317
7318 * windows-nat.c (struct windows_thread_info): Remove typedef.
7319 (thread_head): Remove.
7320 (thread_list): New global.
7321 (thread_rec, windows_add_thread, windows_init_thread_list)
7322 (windows_delete_thread, windows_continue): Update.
7323
7324 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7325
7326 * windows-tdep.h (windows_init_abi): Add comment.
7327 (cygwin_init_abi): New declaration.
7328 * windows-tdep.c: Split signal enumeration in two, one for
7329 Windows and one for Cygwin.
7330 (windows_gdb_signal_to_target): Only deal with signal of the
7331 Windows OS ABI.
7332 (cygwin_gdb_signal_to_target): New function.
7333 (windows_init_abi): Rename to windows_init_abi_common, don't set
7334 gdb_signal_to_target gdbarch method. Add new new function with
7335 this name.
7336 (cygwin_init_abi): New function.
7337 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7338 comment. Don't call windows_init_abi.
7339 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7340 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7341 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7342 i386_windows_init_abi_common, don't call windows_init_abi. Add
7343 a new function of this name.
7344 (i386_cygwin_init_abi): New function.
7345 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7346 OS ABI Cygwin.
7347
7348 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7349
7350 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7351 parameter.c.
7352 (dwarf2_read_gdb_index): Update.
7353
7354 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7355
7356 * nbsd-tdep.c: Include "objfiles.h".
7357 (nbsd_skip_solib_resolver): New.
7358 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7359
7360 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7361
7362 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7363 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7364 with DW_LLE_base_addressx are being emitted in DWARFv5.
7365 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7366 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7367 unsigned integer.
7368
7369 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7370
7371 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7372 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7373 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7374 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7375 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7376 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7377 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7378
7379
7380 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7381
7382 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7383 (read_loclist_index): New function definition.
7384 (lookup_loclist_base): New function definition.
7385 (read_loclist_header): New function definition.
7386 (dwarf2_cu): Add loclist_base and loclist_header field.
7387 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7388 (read_full_die_1): Read the value of DW_AT_loclists_base.
7389 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7390 (read_attribute_value): Handle DW_FORM_loclistx.
7391 (skip_one_die): Handle DW_FORM_loclistx.
7392 (loclist_header): New structure declaration.
7393 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7394
7395 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7396
7397 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7398 constructor. Remove `addr` parameter from other constructor and
7399 add `per_cu` parameter.
7400 * dwarf2/read.c (create_partial_symtab): Update.
7401
7402 2020-04-07 Tom de Vries <tdevries@suse.de>
7403
7404 PR symtab/25796
7405 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7406 (partial_die_info::fixup): Inherit has_const_value.
7407
7408 2020-04-07 Tom de Vries <tdevries@suse.de>
7409
7410 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7411 symbols without address.
7412
7413 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7414
7415 * nbsd-nat.h (struct thread_info): Add forward declaration.
7416 (nbsd_nat_target::thread_alive): Add.
7417 (nbsd_nat_target::thread_name): Likewise.
7418 (nbsd_nat_target::update_thread_list): Likewise.
7419 (update_thread_list::post_attach): Likewise.
7420 (post_attach::pid_to_str): Likewise.
7421 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7422 (nbsd_thread_lister): Add.
7423 (nbsd_nat_target::thread_alive): Likewise.
7424 (nbsd_nat_target::thread_name): Likewise.
7425 (nbsd_add_threads): Likewise.
7426 (update_thread_list::post_attach): Likewise.
7427 (nbsd_nat_target::update_thread_list): Likewise.
7428 (post_attach::pid_to_str): Likewise.
7429
7430 2020-04-06 Tom Tromey <tromey@adacore.com>
7431
7432 * ada-valprint.c (print_variant_part): Extract the variant field.
7433 (print_field_values): Use the field as the outer value when
7434 recursing.
7435
7436 2020-04-06 Tom Tromey <tromey@adacore.com>
7437
7438 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7439 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7440 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7441 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7442 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7443
7444 2020-04-06 Tom Tromey <tromey@adacore.com>
7445
7446 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7447 TYPE_CODE_ERROR.
7448
7449 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7450
7451 * nbsd-tdep.c: Include "gdbarch.h".
7452 Define enum with NetBSD signal numbers.
7453 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7454 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7455 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7456 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7457 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7458 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7459 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7460 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7461 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7462 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7463 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7464 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7465
7466 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7467
7468 PR gdb/25325
7469 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7470
7471 2020-04-03 Tom Tromey <tromey@adacore.com>
7472
7473 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7474 Read constant block.
7475
7476 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7477
7478 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7479 (gdb_bfd_get_full_section_contents): New declaration.
7480 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7481 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7482 gdb_bfd_get_full_section_contents.
7483
7484 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7485
7486 * exec.c (build_section_table): Replace internal_error with
7487 gdb_assert.
7488 (section_table_xfer_memory_partial): Likewise.
7489 * mdebugread.c (parse_partial_symbols): Likewise.
7490 * psymtab.c (lookup_partial_symbol): Likewise.
7491 * utils.c (wrap_here): Likewise.
7492
7493 2020-04-02 Tom Tromey <tromey@adacore.com>
7494
7495 * f-lang.c (build_fortran_types): Use arch_type to initialize
7496 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7497
7498 2020-04-02 Tom Tromey <tromey@adacore.com>
7499
7500 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7501 of attributes.
7502
7503 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7504 Bernd Edlinger <bernd.edlinger@hotmail.de>
7505 Tom Tromey <tromey@adacore.com>
7506
7507 * buildsym.c (buildsym_compunit::record_line): Remove
7508 deduplication code.
7509
7510 2020-04-02 Tom de Vries <tdevries@suse.de>
7511
7512 PR ada/24671
7513 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7514
7515 2020-04-02 Tom de Vries <tdevries@suse.de>
7516
7517 * dwarf2/read.c (dwarf2_gdb_index_functions,
7518 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7519 NULL.
7520 * psymtab.c (psym_lookup_global_symbol_language): New function.
7521 (psym_functions): Init psym_lookup_global_symbol_language with
7522 psym_lookup_global_symbol_language.
7523 * symfile-debug.c (debug_sym_quick_functions): Init
7524 lookup_global_symbol_language with NULL.
7525 * symfile.c (set_initial_language): Remove fixme comment.
7526 * symfile.h (struct quick_symbol_functions): Add
7527 lookup_global_symbol_language.
7528 * symtab.c (find_quick_global_symbol_language): New function.
7529 (find_main_name): Use find_quick_global_symbol_language.
7530
7531 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7532
7533 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7534
7535 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7536
7537 * buildsym.c (record_line): Fix undefined behavior and preserve
7538 lines at eof.
7539
7540 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7541
7542 * buildsym.c (record_line): Fix the resizing condition.
7543
7544 2020-04-01 Tom Tromey <tom@tromey.com>
7545
7546 * value.h (value_literal_complex): Add comment.
7547 * valops.c (value_literal_complex): Refer to value.h.
7548
7549 2020-04-01 Tom Tromey <tom@tromey.com>
7550
7551 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7552 (scalar_type): New rule, from typebase.
7553 (typebase): Use scalar_type. Recognize complex types.
7554 (field_name): Handle FLOAT_KEYWORD.
7555 (ident_tokens): Add _Complex and __complex__.
7556
7557 2020-04-01 Tom Tromey <tom@tromey.com>
7558
7559 PR exp/25299:
7560 * valarith.c (promotion_type, complex_binop): New functions.
7561 (scalar_binop): Handle complex numbers. Use promotion_type.
7562 (value_pos, value_neg, value_complement): Handle complex numbers.
7563
7564 2020-04-01 Tom Tromey <tom@tromey.com>
7565
7566 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7567 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7568 (parse_number): Handle complex numbers.
7569
7570 2020-04-01 Tom Tromey <tom@tromey.com>
7571
7572 * c-valprint.c (c_decorations): Change complex suffix to "i".
7573
7574 2020-04-01 Tom Tromey <tom@tromey.com>
7575
7576 * valprint.c (generic_value_print_complex): Use accessors.
7577 * value.h (value_real_part, value_imaginary_part): Declare.
7578 * valops.c (value_real_part, value_imaginary_part): New
7579 functions.
7580 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7581
7582 2020-04-01 Tom Tromey <tom@tromey.com>
7583
7584 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7585 (read_range_type): Update.
7586 * mdebugread.c (basic_type): Update.
7587 * go-lang.c (build_go_types): Use init_complex_type.
7588 * gdbtypes.h (struct main_type) <complex_type>: New member.
7589 (init_complex_type): Update.
7590 (arch_complex_type): Don't declare.
7591 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7592 Make name if none given. Use alloc_type_copy. Look for cached
7593 complex type.
7594 (arch_complex_type): Remove.
7595 (gdbtypes_post_init): Use init_complex_type.
7596 * f-lang.c (build_fortran_types): Use init_complex_type.
7597 * dwarf2/read.c (read_base_type): Update.
7598 * d-lang.c (build_d_types): Use init_complex_type.
7599 * ctfread.c (read_base_type): Update.
7600
7601 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7602
7603 * infrun.c (stop_all_threads): Update assertion, plus when
7604 stopping threads, take into account that we might be trying
7605 to stop an all-stop target.
7606 (stop_waiting): Call 'stop_all_threads' if there exists a
7607 non-stop target.
7608
7609 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7610
7611 * target.h (exists_non_stop_target): New function declaration.
7612 * target.c (exists_non_stop_target): New function.
7613
7614 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7615
7616 PR gdb/24789
7617 * eval.c (is_integral_or_integral_reference): New function.
7618 (evaluate_subexp_standard): Allow integer references in
7619 pointer arithmetic.
7620
7621 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7622
7623 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7624 check for no ptid in the stop reply when the target is non-stop.
7625
7626 2020-04-01 Tom Tromey <tromey@adacore.com>
7627
7628 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7629 "name" parameter to rvalue reference. Initialize m_name_holder.
7630 <lookup_name_info>: New overloads.
7631 <name>: Return gdb::string_view.
7632 <c_str>: New method.
7633 <make_ignore_params>: Update.
7634 <search_name_hash>: Update.
7635 <language_lookup_name>: Return const char *.
7636 <m_name>: Change type.
7637 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7638 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7639 (lookup_name_info::match_any): Update.
7640 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7641 Update.
7642 * minsyms.c (linkage_name_str): Update.
7643 * language.c (default_symbol_name_matcher): Update.
7644 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7645 Update.
7646 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7647 (ada_lookup_name_info::ada_lookup_name_info): Update.
7648 (literal_symbol_name_matcher): Update.
7649
7650 2020-04-01 Tom Tromey <tromey@adacore.com>
7651
7652 * psymtab.c (psymtab_search_name): Remove function.
7653 (psym_lookup_symbol): Create search name and lookup name here.
7654 (lookup_partial_symbol): Remove "name" parameter; add
7655 lookup_name.
7656 (psym_expand_symtabs_for_function): Update.
7657
7658 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7659
7660 PR tui/25597:
7661 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7662
7663 2020-03-31 Tom Tromey <tromey@adacore.com>
7664
7665 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7666 memcpy.
7667
7668 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7669
7670 * features/riscv/32bit-csr.xml: Regenerated.
7671 * features/riscv/64bit-csr.xml: Regenerated.
7672
7673 2020-03-30 Tom Tromey <tromey@adacore.com>
7674
7675 * ada-valprint.c (print_variant_part): Update.
7676 * ada-lang.h (ada_which_variant_applies): Update.
7677 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7678 outer_valaddr parameters; replace with "outer" value parameter.
7679 (to_fixed_variant_branch_type): Update.
7680
7681 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7682
7683 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7684 <list>. Remove inclusion of observable.h.
7685 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7686 (struct arch_lwp_info): New struct.
7687 (class ppc_linux_dreg_interface): New class.
7688 (struct ppc_linux_process_info): New struct.
7689 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7690 <low_new_clone, low_forget_process, low_prepare_to_resume>
7691 <copy_thread_dreg_state, mark_thread_stale>
7692 <mark_debug_registers_changed, register_hw_breakpoint>
7693 <clear_hw_breakpoint, register_wp, clear_wp>
7694 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7695 <num_memory_accesses, get_trigger_type>
7696 <create_watchpoint_request, hwdebug_point_cmp>
7697 <init_arch_lwp_info, get_arch_lwp_info>
7698 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7699 methods.
7700 <struct ptid_hash>: New inner struct.
7701 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7702 members.
7703 (saved_dabr_value, hwdebug_info, max_slots_number)
7704 (struct hw_break_tuple, struct thread_points, ppc_threads)
7705 (have_ptrace_hwdebug_interface)
7706 (hwdebug_find_thread_points_by_tid)
7707 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7708 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7709 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7710 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7711 use m_dreg_interface.
7712 (hwdebug_point_cmp): Change to...
7713 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7714 reference arguments instead of pointers.
7715 (ppc_linux_nat_target::ranged_break_num_registers): Use
7716 m_dreg_interface.
7717 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7718 m_dreg_interface. Call register_hw_breakpoint.
7719 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7720 m_dreg_interface. Call clear_hw_breakpoint.
7721 (get_trigger_type): Change to...
7722 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7723 comment.
7724 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7725 use m_dreg_interface. Call register_hw_breakpoint.
7726 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7727 use m_dreg_interface. Call clear_hw_breakpoint.
7728 (can_use_watchpoint_cond_accel): Change to...
7729 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7730 method. Update comment, use m_dreg_interface and
7731 m_process_info.
7732 (calculate_dvc): Change to...
7733 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7734 m_dreg_interface.
7735 (num_memory_accesses): Change to...
7736 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7737 (check_condition): Change to...
7738 (ppc_linux_nat_target::check_condition): ...this method.
7739 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7740 comment, use m_dreg_interface.
7741 (create_watchpoint_request): Change to...
7742 (ppc_linux_nat_target::create_watchpoint_request): ...this
7743 method. Use m_dreg_interface.
7744 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7745 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7746 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7747 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7748 (ppc_linux_nat_target::low_forget_process)
7749 (ppc_linux_nat_target::low_new_fork)
7750 (ppc_linux_nat_target::low_new_clone)
7751 (ppc_linux_nat_target::low_delete_thread)
7752 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7753 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7754 only call mark_thread_stale.
7755 (ppc_linux_thread_exit): Remove.
7756 (ppc_linux_nat_target::stopped_data_address): Change to...
7757 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7758 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7759 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7760 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7761 comment. Call low_stopped_data_address.
7762 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7763 m_dreg_interface.
7764 (ppc_linux_nat_target::masked_watch_num_registers): Use
7765 m_dreg_interface.
7766 (ppc_linux_nat_target::copy_thread_dreg_state)
7767 (ppc_linux_nat_target::mark_thread_stale)
7768 (ppc_linux_nat_target::mark_debug_registers_changed)
7769 (ppc_linux_nat_target::register_hw_breakpoint)
7770 (ppc_linux_nat_target::clear_hw_breakpoint)
7771 (ppc_linux_nat_target::register_wp)
7772 (ppc_linux_nat_target::clear_wp)
7773 (ppc_linux_nat_target::init_arch_lwp_info)
7774 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7775 (_initialize_ppc_linux_nat): Remove observer callback.
7776
7777 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7778
7779 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7780 (ppc_linux_nat_target::auxv_parse)
7781 (ppc_linux_nat_target::read_description)
7782 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7783 Move up.
7784
7785 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7786
7787 * linux-nat.h (low_new_clone): New method.
7788 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7789
7790 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7791
7792 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7793 (dbx_expand_psymtab): ... this.
7794 (start_psymtab): Update.
7795 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7796 (mdebug_expand_psymtab): ... this.
7797 (parse_partial_symbols): Update.
7798 (new_psymtab): Update.
7799 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7800 (xcoff_expand_psymtab): ... this.
7801 (xcoff_start_psymtab): Update.
7802
7803 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7804
7805 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7806 <expand_dependencies>: ... this.
7807 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7808 (partial_symtab::expand_dependencies): ... this.
7809 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7810 Update.
7811 (dwarf2_psymtab::expand_psymtab): Update.
7812 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7813 * mdebugread.c (psymtab_to_symtab_1): Update.
7814 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7815
7816 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7817
7818 * psympriv.h (discard_psymtab): Remove.
7819 * dbxread.c (dbx_end_psymtab): Update.
7820 * xcoffread.c (xcoff_end_psymtab): Update.
7821
7822 2020-03-28 Tom Tromey <tom@tromey.com>
7823
7824 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7825 comment.
7826
7827 2020-03-28 Tom Tromey <tom@tromey.com>
7828
7829 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7830
7831 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7832
7833 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7834
7835 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7836
7837 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7838
7839 2020-03-26 Tom Tromey <tom@tromey.com>
7840
7841 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7842 (mark_common_block_symbol_computed, read_tag_string_type)
7843 (attr_to_dynamic_prop, read_subrange_type): Update.
7844 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7845 to be methods on struct attribute.
7846 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7847 (read_call_site_scope, partial_die_info::read)
7848 (partial_die_info::read, lookup_die_type, follow_die_ref):
7849 Update.
7850 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7851 from dwarf2_get_ref_die_offset.
7852 (attribute::constant_value): New method, from
7853 dwarf2_get_attr_constant_value.
7854 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7855 Declare method.
7856 <constant_value>: New method.
7857
7858 2020-03-26 Tom Tromey <tom@tromey.com>
7859
7860 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7861 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7862 (dwarf_type_encoding_name): Move to stringify.c.
7863 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7864 * dwarf2/stringify.c: New file.
7865 * dwarf2/stringify.h: New file.
7866
7867 2020-03-26 Tom Tromey <tom@tromey.com>
7868
7869 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7870 Rewrite.
7871
7872 2020-03-26 Tom Tromey <tom@tromey.com>
7873
7874 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7875 methods.
7876 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7877 (lookup_ranges_base): Likewise.
7878 (read_cutu_die_from_dwo, read_full_die_1): Update.
7879
7880 2020-03-26 Tom Tromey <tom@tromey.com>
7881
7882 * dwarf2/read.c (read_import_statement, read_file_scope)
7883 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7884 (read_lexical_block_scope, read_call_site_scope)
7885 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7886 (handle_struct_member_die, process_structure_scope)
7887 (update_enumeration_type_from_children)
7888 (process_enumeration_scope, read_array_type, read_common_block)
7889 (read_namespace, read_module, read_subroutine_type): Update.
7890 (sibling_die): Remove.
7891
7892 2020-03-26 Tom Tromey <tom@tromey.com>
7893
7894 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7895 (build_type_psymtabs_reader, read_structure_type)
7896 (read_enumeration_type, read_full_die_1): Update.
7897 (dwarf2_attr_no_follow): Move to die.h.
7898 * dwarf2/die.h (struct die_info) <attr>: New method.
7899
7900 2020-03-26 Tom Tromey <tom@tromey.com>
7901
7902 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7903 <base_address>: Now an optional.
7904 (dwarf2_find_base_address, dwarf2_rnglists_process)
7905 (dwarf2_ranges_process, fill_in_loclist_baton)
7906 (dwarf2_symbol_mark_computed): Update.
7907
7908 2020-03-26 Tom Tromey <tom@tromey.com>
7909
7910 * dwarf2/read.c (struct die_info): Move to die.h.
7911 * dwarf2/die.h: New file.
7912
7913 2020-03-26 Tom Tromey <tom@tromey.com>
7914
7915 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7916 * dwarf2/read.c
7917 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7918 Move to line-header.c.
7919 (read_checked_initial_length_and_offset, read_formatted_entries):
7920 Likewise.
7921 (dwarf_decode_line_header): Split into two.
7922 * dwarf2/line-header.c
7923 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7924 Move from read.c.
7925 (read_checked_initial_length_and_offset, read_formatted_entries):
7926 Likewise.
7927 (dwarf_decode_line_header): New function, split from read.c.
7928
7929 2020-03-26 Tom Tromey <tom@tromey.com>
7930
7931 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7932 Declare method.
7933 * dwarf2/read.c (read_attribute_value): Update.
7934 (dwarf2_per_objfile::read_line_string): Rename from
7935 read_indirect_line_string.
7936 (read_formatted_entries): Update.
7937
7938 2020-03-26 Tom Tromey <tom@tromey.com>
7939
7940 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7941 variable.
7942
7943 2020-03-26 Tom Tromey <tom@tromey.com>
7944
7945 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7946 const.
7947 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7948 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7949 parameter const.
7950
7951 2020-03-26 Tom Tromey <tom@tromey.com>
7952
7953 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7954 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7955 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7956 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7957
7958 2020-03-26 Tom Tromey <tom@tromey.com>
7959
7960 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7961 file_names_size, file_full_name, file_file_name>: Use const.
7962 <file_name_at, file_names>: Add const overload.
7963 * dwarf2/line-header.c (line_header::file_file_name)
7964 (line_header::file_full_name): Update.
7965
7966 2020-03-26 Tom Tromey <tom@tromey.com>
7967
7968 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7969 (macro_start_file, consume_improper_spaces)
7970 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7971 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7972 (dwarf_decode_macros): Move to macro.c.
7973 * dwarf2/macro.c: New file.
7974 * dwarf2/macro.h: New file.
7975 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7976
7977 2020-03-26 Tom Tromey <tom@tromey.com>
7978
7979 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7980 method.
7981 * dwarf2/section.c: New method. From
7982 read_indirect_string_at_offset_from.
7983 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7984 (read_indirect_string_at_offset_from): Move to section.c.
7985 (read_indirect_string_at_offset): Rewrite.
7986 (read_indirect_line_string_at_offset): Remove.
7987 (read_indirect_string, read_indirect_line_string)
7988 (dwarf_decode_macro_bytes): Update.
7989
7990 2020-03-26 Tom Tromey <tom@tromey.com>
7991
7992 * dwarf2/section.h (struct dwarf2_section_info)
7993 <overload_complaint>: Declare.
7994 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7995 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7996 Rename from dwarf2_section_buffer_overflow_complaint.
7997 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7998 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7999
8000 2020-03-26 Tom Tromey <tom@tromey.com>
8001
8002 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8003 Declare.
8004 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8005 Move from read.c.
8006 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8007 to section.c.
8008
8009 2020-03-26 Tom Tromey <tom@tromey.com>
8010
8011 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8012
8013 2020-03-26 Tom Tromey <tom@tromey.com>
8014
8015 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8016 "builder".
8017 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8018 parameter.
8019 (dwarf_decode_macros): Update.
8020
8021 2020-03-26 Tom Tromey <tom@tromey.com>
8022
8023 * dwarf2/read.c (read_attribute_value): Update.
8024 (read_indirect_string_from_dwz): Move to dwz.c; change into
8025 method.
8026 (dwarf_decode_macro_bytes): Update.
8027 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8028 * dwarf2/dwz.c: New file.
8029 * Makefile.in (COMMON_SFILES): Add dwz.c.
8030
8031 2020-03-26 Tom Tromey <tom@tromey.com>
8032
8033 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8034 * dwarf2/read.c: Add include.
8035 * dwarf2/index-write.c: Add include.
8036 * dwarf2/index-cache.c: Add include.
8037 * dwarf2/dwz.h: New file.
8038
8039 2020-03-25 Tom Tromey <tom@tromey.com>
8040
8041 * compile/compile-object-load.c (get_out_value_type): Mention
8042 correct symbol name in error message.
8043
8044 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
8045
8046 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8047
8048 2020-03-25 Tom de Vries <tdevries@suse.de>
8049
8050 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8051 * symmisc.c (dump_symtab_1): Print user and includes fields.
8052 (maintenance_info_symtabs): Same.
8053
8054 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8055
8056 PR gdb/25534
8057 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8058 (riscv_regcache_cooked_write): New function.
8059 (riscv_push_dummy_call): Use new function.
8060 (riscv_return_value): Likewise.
8061
8062 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8063
8064 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8065 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8066 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8067 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8068 * infrun.c (follow_fork): Likewise.
8069 (follow_fork_inferior): Likewise.
8070 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8071 * linux-nat.h (class linux_nat_target): Likewise.
8072 * remote.c (class remote_target) <follow_fork>: Likewise.
8073 (remote_target::follow_fork): Likewise.
8074 * target-delegates.c: Re-generate.
8075 * target.c (default_follow_fork): Likewise.
8076 (target_follow_fork): Likewise.
8077 * target.h (struct target_ops) <follow_fork>: Likewise.
8078 (target_follow_fork): Likewise.
8079
8080 2020-03-24 Tom de Vries <tdevries@suse.de>
8081
8082 * psymtab.c (maintenance_info_psymtabs): Print user field.
8083
8084 2020-03-20 Tom Tromey <tromey@adacore.com>
8085
8086 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8087 const.
8088 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8089 const.
8090
8091 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
8092
8093 * ptrace.m4: Don't check for ptrace declaration.
8094 * config.in: Re-generate.
8095 * configure: Re-generate.
8096 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8097 not defined.
8098
8099 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8100
8101 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8102 `PTRACE_TYPE_RET'.
8103 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8104 * sparc-nat.c (gdb_ptrace): Likewise.
8105 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8106
8107 2020-03-20 Tom Tromey <tromey@adacore.com>
8108
8109 * c-exp.y (lex_one_token): Fix assert.
8110
8111 2020-03-20 Tom Tromey <tromey@adacore.com>
8112
8113 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8114 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8115 strncpy call.
8116
8117 2020-03-20 Tom Tromey <tromey@adacore.com>
8118
8119 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8120
8121 2020-03-20 Tom Tromey <tromey@adacore.com>
8122
8123 * ada-valprint.c (print_variant_part): Remove parameters; switch
8124 to value-based API.
8125 (print_field_values): Likewise.
8126 (ada_val_print_struct_union): Likewise.
8127 (ada_value_print_1): Update.
8128
8129 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8130
8131 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8132 nbsd_nat_target instead of inf_ptrace_target.
8133 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8134 nbsd_nat_target.
8135
8136 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8137
8138 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8139 it to the ptrace call.
8140 * (store_registers): Likewise.
8141
8142 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8143
8144 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8145 it to the ptrace call.
8146 * (store_registers): Likewise.
8147
8148 2020-03-19 Luis Machado <luis.machado@linaro.org>
8149
8150 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8151 valid, fetch vg value from ptrace.
8152
8153 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8154 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8155 * inf-ptrace.c: Likewise.
8156 * (gdb_ptrace): Add.
8157 * (inf_ptrace_target::resume): Update.
8158 * (inf_ptrace_target::xfer_partial): Likewise.
8159 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8160 * (inf_ptrace_peek_poke): Update.
8161
8162 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8163
8164 * x86-bsd-nat.c (gdb_ptrace): New.
8165 * (x86bsd_dr_set): Add new argument `ptid'.
8166 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8167 x86bsd_dr_set_addr): Update.
8168
8169 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8170
8171 * remote.c (remote_target::process_stop_reply): Handle events for
8172 all threads differently.
8173
8174 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8175
8176 * completer.c (completion_tracker::remove_completion): Define new
8177 function.
8178 * completer.h (completion_tracker::remove_completion): Declare new
8179 function.
8180 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8181 when adding a C++ function symbol.
8182
8183 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8184
8185 * completer.c (completion_tracker::completion_hash_entry): Define
8186 new class.
8187 (advance_to_filename_complete_word_point): Call
8188 recompute_lowest_common_denominator.
8189 (completion_tracker::completion_tracker): Call discard_completions
8190 to setup the hash table.
8191 (completion_tracker::discard_completions): Allow for being called
8192 from the constructor, pass new equal function, and element deleter
8193 when constructing the hash table. Initialise new class member
8194 variables.
8195 (completion_tracker::maybe_add_completion): Remove use of
8196 m_entries_vec, and store more information into m_entries_hash.
8197 (completion_tracker::recompute_lcd_visitor): New function, most
8198 content taken from...
8199 (completion_tracker::recompute_lowest_common_denominator):
8200 ...here, this now just visits each item in the hash calling the
8201 above visitor.
8202 (completion_tracker::build_completion_result): Remove use of
8203 m_entries_vec, call recompute_lowest_common_denominator.
8204 * completer.h (completion_tracker::have_completions): Remove use
8205 of m_entries_vec.
8206 (completion_tracker::completion_hash_entry): Declare new class.
8207 (completion_tracker::recompute_lowest_common_denominator): Change
8208 function signature.
8209 (completion_tracker::recompute_lcd_visitor): Declare new function.
8210 (completion_tracker::m_entries_vec): Delete.
8211 (completion_tracker::m_entries_hash): Initialize to NULL.
8212 (completion_tracker::m_lowest_common_denominator_valid): New
8213 member variable.
8214 (completion_tracker::m_lowest_common_denominator_max_length): New
8215 member variable.
8216
8217 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8218
8219 * regformats/regdef.h: Put reg in gdb namespace.
8220
8221 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8222
8223 * i386-bsd-nat.c (gdb_ptrace): New.
8224 * (i386bsd_fetch_inferior_registers,
8225 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8226 * (i386bsd_fetch_inferior_registers,
8227 i386bsd_store_inferior_registers) Use gdb_ptrace.
8228
8229 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8230
8231 * amd64-bsd-nat.c (gdb_ptrace): New.
8232 * (amd64bsd_fetch_inferior_registers,
8233 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8234 * (amd64bsd_fetch_inferior_registers,
8235 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8236
8237 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8238
8239 * user-regs.c (user_reg::read): Rename to...
8240 (user_reg::xread): ...this.
8241 * (append_user_reg): Rename argument `read' to `xread'.
8242 * (user_reg_add_builtin): Likewise.
8243 * (user_reg_add): Likewise.
8244 * (value_of_user_reg): Likewise.
8245
8246 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8247
8248 * sparc-nat.c (gdb_ptrace): New.
8249 * sparc-nat.c (sparc_fetch_inferior_registers)
8250 (sparc_store_inferior_registers) Remove obsolete comment.
8251 * sparc-nat.c (sparc_fetch_inferior_registers)
8252 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8253 * sparc-nat.c (sparc_fetch_inferior_registers)
8254 (sparc_store_inferior_registers) Use gdb_ptrace.
8255
8256 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8257
8258 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8259 it to the ptrace call.
8260 * sh-nbsd-nat.c (store_registers): Likewise.
8261
8262 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8263
8264 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8265 nbsd_nat_target instead of inf_ptrace_target.
8266 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8267 nbsd_nat_target.
8268
8269 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8270
8271 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8272
8273 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8274
8275 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8276 <sys/sysctl.h>.
8277 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8278
8279 2020-03-17 Tom de Vries <tdevries@suse.de>
8280
8281 PR gdb/23710
8282 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8283 fields.
8284 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8285 fields.
8286 (process_imported_unit_die): Skip import of c++ CUs.
8287
8288 2020-03-16 Tom Tromey <tom@tromey.com>
8289
8290 * p-valprint.c (pascal_object_print_value): Initialize
8291 base_value.
8292
8293 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8294 Shahab Vahedi <shahab@synopsys.com>
8295
8296 * Makefile.in: Add arch/arc.o
8297 * configure.tgt: Likewise.
8298 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8299 (_initialize_arc_tdep): Don't initialize old target descriptions.
8300 (arc_read_description): New function to cache target descriptions.
8301 * arc-tdep.h (arc_read_description): Add proto type.
8302 * arch/arc.c: New file.
8303 * arch/arc.h: Likewise.
8304 * features/Makefile: Replace old target descriptions with new.
8305 * features/arc-arcompact.c: Remove.
8306 * features/arc-arcompact.xml: Likewise.
8307 * features/arc-v2.c: Likewise
8308 * features/arc-v2.xml: Likewise
8309 * features/arc/aux-arcompact.xml: New file.
8310 * features/arc/aux-v2.xml: Likewise.
8311 * features/arc/core-arcompact.xml: Likewise.
8312 * features/arc/core-v2.xml: Likewise.
8313 * features/arc/aux-arcompact.c: Generate.
8314 * features/arc/aux-v2.c: Likewise.
8315 * features/arc/core-arcompact.c: Likewise.
8316 * features/arc/core-v2.c: Likewise.
8317 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8318
8319 2020-03-16 Tom Tromey <tromey@adacore.com>
8320
8321 PR gdb/25663:
8322 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8323 putting value into bcache.
8324
8325 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8326
8327 PR gdb/21500
8328 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8329 to...
8330 (amd64_windows_init_abi_common): ... this. Don't set size of
8331 long type.
8332 (amd64_windows_init_abi): New function.
8333 (amd64_cygwin_init_abi): New function.
8334 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8335 the Cygwin OS ABI.
8336 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8337 comment.
8338
8339 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8340
8341 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8342 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8343 (pe_import_directory_entry): New struct type.
8344 (is_linked_with_cygwin_dll): New function.
8345 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8346 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8347 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8348
8349 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8350
8351 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8352 i386_cygwin_core_osabi_sniffer.
8353
8354 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8355
8356 * i386-cygwin-tdep.c: Rename to...
8357 * i386-windows-tdep.c: ... this.
8358 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8359 i386-windows-tdep.c.
8360 * configure.tgt: Likewise.
8361
8362 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8363
8364 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8365 * osabi.c (gdb_osabi_names): Add "Windows".
8366 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8367 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8368 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8369 i386_cygwin_osabi_sniffer.
8370 (_initialize_i386_cygwin_tdep): Register OS ABI
8371 GDB_OSABI_WINDOWS for i386.
8372 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8373 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8374 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8375 for x86-64.
8376 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8377 when the target matches '*-*-mingw*'.
8378
8379 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8380
8381 * defs.h (enum gdb_osabi): Move to...
8382 * osabi.h (enum gdb_osabi): ... here.
8383 * gdbarch.sh: Include osabi.h in gdbarch.h.
8384 * gdbarch.h: Re-generate.
8385
8386 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8387
8388 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8389 function.
8390 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8391
8392 2020-03-14 Tom Tromey <tom@tromey.com>
8393
8394 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8395 for C++.
8396 (c_type_print_modifier): Likewise. Add "language" parameter.
8397 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8398 (c_type_print_base_1): Update.
8399 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8400 constants.
8401 * type-stack.c (type_stack::insert): Handle tp_atomic and
8402 tp_restrict.
8403 (type_stack::follow_type_instance_flags): Likewise.
8404 (type_stack::follow_types): Likewise. Merge type-following code.
8405 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8406 (space_identifier, cv_with_space_id)
8407 (const_or_volatile_or_space_identifier_noopt)
8408 (const_or_volatile_or_space_identifier): Remove.
8409 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8410 rules.
8411 (ptr_operator, typebase): Update.
8412 (enum token_flag) <FLAG_C>: New constant.
8413 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8414 "_Atomic".
8415 (lex_one_token): Handle FLAG_C.
8416
8417 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8418
8419 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8420 it to the ptrace call.
8421 * m68k-bsd-nat.c (store_registers): Likewise.
8422
8423 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8424
8425 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8426 gdb_byte *.
8427 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8428 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8429 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8430
8431 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8432
8433 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8434 nbsd_nat_target instead of inf_ptrace_target.
8435 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8436 nbsd_nat_target.
8437
8438 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8439
8440 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8441 register_t.
8442
8443 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8444
8445 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8446 it to the ptrace call.
8447 * alpha-bsd-nat.c (store_registers): Likewise.
8448
8449 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8450
8451 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8452 includes.
8453 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8454 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8455 fill_fpregset): Likewise.
8456
8457 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8458
8459 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8460 nbsd_nat_target instead of inf_ptrace_target.
8461 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8462 nbsd_nat_target.
8463
8464 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8465
8466 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8467 register_t.
8468
8469 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8470
8471 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8472 it to the ptrace call.
8473 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8474 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8475 * arm-nbsd-nat.c (store_register): Likewise.
8476 * arm-nbsd-nat.c (store_regs): Likewise.
8477 * arm-nbsd-nat.c (store_fp_register): Likewise.
8478 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8479
8480 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8481
8482 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8483 nbsd_nat_target instead of inf_ptrace_target.
8484 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8485 nbsd_nat_target.
8486
8487 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8488
8489 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8490 it to the ptrace call.
8491 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8492
8493 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8494
8495 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8496 it to the ptrace call.
8497 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8498
8499 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8500
8501 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8502 gdb_byte *.
8503 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8504
8505 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8506
8507 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8508 instead of inf_ptrace_target.
8509 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8510 nbsd_nat_target.
8511
8512 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8513
8514 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8515 register_t.
8516
8517 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8518
8519 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8520 register_t.
8521
8522 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8523
8524 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8525 register_t.
8526
8527 2020-03-13 Tom Tromey <tom@tromey.com>
8528
8529 * value.h (val_print): Don't declare.
8530 * valprint.h (val_print_array_elements)
8531 (val_print_scalar_formatted, generic_val_print): Don't declare.
8532 * valprint.c (generic_val_print_array): Take a struct value.
8533 (generic_val_print_ptr, generic_val_print_memberptr)
8534 (generic_val_print_bool, generic_val_print_int)
8535 (generic_val_print_char, generic_val_print_complex)
8536 (generic_val_print): Remove.
8537 (generic_value_print): Update.
8538 (do_val_print): Remove unused parameters. Don't call
8539 la_val_print.
8540 (val_print): Remove.
8541 (common_val_print): Update. Don't call value_check_printable.
8542 (val_print_scalar_formatted, val_print_array_elements): Remove.
8543 * rust-lang.c (rust_val_print): Remove.
8544 (rust_language_defn): Update.
8545 * p-valprint.c (pascal_val_print): Remove.
8546 (pascal_value_print_inner): Update.
8547 (pascal_object_print_val_fields, pascal_object_print_val):
8548 Remove.
8549 (pascal_object_print_static_field): Update.
8550 * p-lang.h (pascal_val_print): Don't declare.
8551 * p-lang.c (pascal_language_defn): Update.
8552 * opencl-lang.c (opencl_language_defn): Update.
8553 * objc-lang.c (objc_language_defn): Update.
8554 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8555 * m2-lang.h (m2_val_print): Don't declare.
8556 * m2-lang.c (m2_language_defn): Update.
8557 * language.h (struct language_defn) <la_val_print>: Remove.
8558 * language.c (unk_lang_value_print_inner): Rename. Change
8559 argument types.
8560 (unknown_language_defn, auto_language_defn): Update.
8561 * go-valprint.c (go_val_print): Remove.
8562 * go-lang.h (go_val_print): Don't declare.
8563 * go-lang.c (go_language_defn): Update.
8564 * f-valprint.c (f_val_print): Remove.
8565 * f-lang.h (f_value_print): Don't declare.
8566 * f-lang.c (f_language_defn): Update.
8567 * d-valprint.c (d_val_print): Remove.
8568 * d-lang.h (d_value_print): Don't declare.
8569 * d-lang.c (d_language_defn): Update.
8570 * cp-valprint.c (cp_print_value_fields)
8571 (cp_print_value_fields_rtti, cp_print_value): Remove.
8572 (cp_print_static_field): Update.
8573 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8574 (c_val_print_struct, c_val_print_union, c_val_print_int)
8575 (c_val_print_memberptr, c_val_print): Remove.
8576 * c-lang.h (c_val_print_array, cp_print_value_fields)
8577 (cp_print_value_fields_rtti): Don't declare.
8578 * c-lang.c (c_language_defn, cplus_language_defn)
8579 (asm_language_defn, minimal_language_defn): Update.
8580 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8581 (ada_val_print_enum): Take a struct value.
8582 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8583 (ada_val_print): Remove.
8584 (ada_value_print_1): Update.
8585 (printable_val_type): Remove.
8586 * ada-lang.h (ada_val_print): Don't declare.
8587 * ada-lang.c (ada_language_defn): Update.
8588
8589 2020-03-13 Tom Tromey <tom@tromey.com>
8590
8591 * valprint.c (do_val_print): Update.
8592 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8593 a struct value.
8594 (value_to_value_object_no_release): Declare.
8595 * python/py-value.c (value_to_value_object_no_release): New
8596 function.
8597 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8598 struct value.
8599 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8600 function.
8601 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8602 a struct value.
8603 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8604 Declare.
8605 (gdbscm_apply_val_pretty_printer): Take a struct value.
8606 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8607 value.
8608 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8609 value.
8610 * extension-priv.h (struct extension_language_ops)
8611 <apply_val_pretty_printer>: Take a struct value.
8612 * cp-valprint.c (cp_print_value): Create a struct value.
8613 (cp_print_value): Update.
8614
8615 2020-03-13 Tom Tromey <tom@tromey.com>
8616
8617 * ada-valprint.c (print_field_values): Call common_val_print.
8618
8619 2020-03-13 Tom Tromey <tom@tromey.com>
8620
8621 * ada-valprint.c (val_print_packed_array_elements): Remove
8622 bitoffset and val parameters. Call common_val_print.
8623 (ada_val_print_string): Remove offset, address, and original_value
8624 parameters.
8625 (ada_val_print_array): Update.
8626 (ada_value_print_array): New function.
8627 (ada_value_print_1): Call it.
8628
8629 2020-03-13 Tom Tromey <tom@tromey.com>
8630
8631 * ada-valprint.c (ada_value_print): Use common_val_print.
8632
8633 2020-03-13 Tom Tromey <tom@tromey.com>
8634
8635 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8636
8637 2020-03-13 Tom Tromey <tom@tromey.com>
8638
8639 * ada-valprint.c (ada_value_print_num): New function.
8640 (ada_value_print_1): Use it.
8641
8642 2020-03-13 Tom Tromey <tom@tromey.com>
8643
8644 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8645
8646 2020-03-13 Tom Tromey <tom@tromey.com>
8647
8648 * ada-valprint.c (ada_value_print_ptr): New function.
8649 (ada_value_print_1): Use it.
8650
8651 2020-03-13 Tom Tromey <tom@tromey.com>
8652
8653 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8654 call common_val_print.
8655 (ada_val_print_1): Update.
8656 (ada_value_print_1): New function.
8657 (ada_value_print_inner): Rewrite.
8658
8659 2020-03-13 Tom Tromey <tom@tromey.com>
8660
8661 * cp-valprint.c (cp_print_value_fields): Update.
8662 (cp_print_value): New function.
8663
8664 2020-03-13 Tom Tromey <tom@tromey.com>
8665
8666 * m2-valprint.c (m2_value_print_inner): Use
8667 cp_print_value_fields.
8668 * cp-valprint.c (cp_print_value_fields): New function.
8669 * c-valprint.c (c_value_print_struct): New function.
8670 (c_value_print_inner): Use c_value_print_struct.
8671 * c-lang.h (cp_print_value_fields): Declare.
8672
8673 2020-03-13 Tom Tromey <tom@tromey.com>
8674
8675 * c-valprint.c (c_value_print_array): New function.
8676 (c_value_print_inner): Use it.
8677
8678 2020-03-13 Tom Tromey <tom@tromey.com>
8679
8680 * c-valprint.c (c_value_print_memberptr): New function.
8681 (c_value_print_inner): Use it.
8682
8683 2020-03-13 Tom Tromey <tom@tromey.com>
8684
8685 * c-valprint.c (c_value_print_int): New function.
8686 (c_value_print_inner): Use it.
8687
8688 2020-03-13 Tom Tromey <tom@tromey.com>
8689
8690 * c-valprint.c (c_value_print_ptr): New function.
8691 (c_value_print_inner): Use it.
8692
8693 2020-03-13 Tom Tromey <tom@tromey.com>
8694
8695 * c-valprint.c (c_value_print_inner): Rewrite.
8696
8697 2020-03-13 Tom Tromey <tom@tromey.com>
8698
8699 * valprint.c (generic_value_print_complex): New function.
8700 (generic_value_print): Use it.
8701
8702 2020-03-13 Tom Tromey <tom@tromey.com>
8703
8704 * valprint.c (generic_val_print_float): Don't call
8705 val_print_scalar_formatted.
8706 (generic_val_print, generic_value_print): Update.
8707
8708 2020-03-13 Tom Tromey <tom@tromey.com>
8709
8710 * valprint.c (generic_value_print_char): New function
8711 (generic_value_print): Use it.
8712
8713 2020-03-13 Tom Tromey <tom@tromey.com>
8714
8715 * valprint.c (generic_value_print_int): New function.
8716 (generic_value_print): Use it.
8717
8718 2020-03-13 Tom Tromey <tom@tromey.com>
8719
8720 * valprint.c (generic_value_print_bool): New function.
8721 (generic_value_print): Use it.
8722
8723 2020-03-13 Tom Tromey <tom@tromey.com>
8724
8725 * valprint.c (generic_val_print_func): Simplify.
8726 (generic_val_print, generic_value_print): Update.
8727
8728 2020-03-13 Tom Tromey <tom@tromey.com>
8729
8730 * valprint.c (generic_val_print_flags): Remove.
8731 (generic_val_print, generic_value_print): Update.
8732 (val_print_type_code_flags): Add original_value parameter.
8733
8734 2020-03-13 Tom Tromey <tom@tromey.com>
8735
8736 * valprint.c (generic_val_print): Update.
8737 (generic_value_print): Update.
8738 * valprint.c (generic_val_print_enum): Don't call
8739 val_print_scalar_formatted.
8740
8741 2020-03-13 Tom Tromey <tom@tromey.com>
8742
8743 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8744 * valprint.c (generic_value_print_ptr): New function.
8745
8746 2020-03-13 Tom Tromey <tom@tromey.com>
8747
8748 * valprint.c (generic_value_print): Rewrite.
8749
8750 2020-03-13 Tom Tromey <tom@tromey.com>
8751
8752 * p-valprint.c (pascal_object_print_value_fields)
8753 (pascal_object_print_value): New functions.
8754
8755 2020-03-13 Tom Tromey <tom@tromey.com>
8756
8757 * p-valprint.c (pascal_value_print_inner): Rewrite.
8758
8759 2020-03-13 Tom Tromey <tom@tromey.com>
8760
8761 * f-valprint.c (f_value_print_innner): Rewrite.
8762
8763 2020-03-13 Tom Tromey <tom@tromey.com>
8764
8765 * m2-valprint.c (m2_print_unbounded_array): New overload.
8766 (m2_print_unbounded_array): Update.
8767 (m2_print_array_contents): Take a struct value.
8768 (m2_value_print_inner): Rewrite.
8769
8770 2020-03-13 Tom Tromey <tom@tromey.com>
8771
8772 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8773 (d_value_print_inner): New function.
8774 * d-lang.h (d_value_print_inner): Declare.
8775 * d-lang.c (d_language_defn): Use d_value_print_inner.
8776
8777 2020-03-13 Tom Tromey <tom@tromey.com>
8778
8779 * go-valprint.c (go_value_print_inner): New function.
8780 * go-lang.h (go_value_print_inner): Declare.
8781 * go-lang.c (go_language_defn): Use go_value_print_inner.
8782
8783 2020-03-13 Tom Tromey <tom@tromey.com>
8784
8785 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8786 API.
8787 (rust_val_print): Rewrite.
8788 (rust_value_print_inner): New function, from rust_val_print.
8789 (rust_language_defn): Use rust_value_print_inner.
8790
8791 2020-03-13 Tom Tromey <tom@tromey.com>
8792
8793 * ada-valprint.c (ada_value_print_inner): New function.
8794 * ada-lang.h (ada_value_print_inner): Declare.
8795 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8796
8797 2020-03-13 Tom Tromey <tom@tromey.com>
8798
8799 * f-valprint.c (f_value_print_innner): New function.
8800 * f-lang.h (f_value_print_innner): Declare.
8801 * f-lang.c (f_language_defn): Use f_value_print_innner.
8802
8803 2020-03-13 Tom Tromey <tom@tromey.com>
8804
8805 * p-valprint.c (pascal_value_print_inner): New function.
8806 * p-lang.h (pascal_value_print_inner): Declare.
8807 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8808
8809 2020-03-13 Tom Tromey <tom@tromey.com>
8810
8811 * m2-valprint.c (m2_value_print_inner): New function.
8812 * m2-lang.h (m2_value_print_inner): Declare.
8813 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8814
8815 2020-03-13 Tom Tromey <tom@tromey.com>
8816
8817 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8818 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8819 * c-valprint.c (c_value_print_inner): New function.
8820 * c-lang.h (c_value_print_inner): Declare.
8821 * c-lang.c (c_language_defn, cplus_language_defn)
8822 (asm_language_defn, minimal_language_defn): Use
8823 c_value_print_inner.
8824
8825 2020-03-13 Tom Tromey <tom@tromey.com>
8826
8827 * p-valprint.c (pascal_object_print_value_fields): Now static.
8828 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8829
8830 2020-03-13 Tom Tromey <tom@tromey.com>
8831
8832 * c-valprint.c (c_val_print_array): Simplify.
8833
8834 2020-03-13 Tom Tromey <tom@tromey.com>
8835
8836 * valprint.c (value_print_array_elements): New function.
8837 * valprint.h (value_print_array_elements): Declare.
8838
8839 2020-03-13 Tom Tromey <tom@tromey.com>
8840
8841 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8842 * mips-tdep.c (mips_print_register): Use
8843 value_print_scalar_formatted.
8844
8845 2020-03-13 Tom Tromey <tom@tromey.com>
8846
8847 * valprint.h (value_print_scalar_formatted): Declare.
8848 * valprint.c (value_print_scalar_formatted): New function.
8849
8850 2020-03-13 Tom Tromey <tom@tromey.com>
8851
8852 * valprint.h (generic_value_print): Declare.
8853 * valprint.c (generic_value_print): New function.
8854
8855 2020-03-13 Tom Tromey <tom@tromey.com>
8856
8857 * valprint.c (do_val_print): Call la_value_print_inner, if
8858 available.
8859 * rust-lang.c (rust_language_defn): Update.
8860 * p-lang.c (pascal_language_defn): Update.
8861 * opencl-lang.c (opencl_language_defn): Update.
8862 * objc-lang.c (objc_language_defn): Update.
8863 * m2-lang.c (m2_language_defn): Update.
8864 * language.h (struct language_defn) <la_value_print_inner>: New
8865 member.
8866 * language.c (unknown_language_defn, auto_language_defn): Update.
8867 * go-lang.c (go_language_defn): Update.
8868 * f-lang.c (f_language_defn): Update.
8869 * d-lang.c (d_language_defn): Update.
8870 * c-lang.c (c_language_defn, cplus_language_defn)
8871 (asm_language_defn, minimal_language_defn): Update.
8872 * ada-lang.c (ada_language_defn): Update.
8873
8874 2020-03-13 Tom Tromey <tom@tromey.com>
8875
8876 * c-valprint.c (c_value_print): Use common_val_print.
8877
8878 2020-03-13 Tom Tromey <tom@tromey.com>
8879
8880 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8881
8882 2020-03-13 Tom Tromey <tom@tromey.com>
8883
8884 * f-valprint.c (f77_print_array_1, f_val_print): Use
8885 common_val_print.
8886
8887 2020-03-13 Tom Tromey <tom@tromey.com>
8888
8889 * riscv-tdep.c (riscv_print_one_register_info): Use
8890 common_val_print.
8891
8892 2020-03-13 Tom Tromey <tom@tromey.com>
8893
8894 * mi/mi-main.c (output_register): Use common_val_print.
8895
8896 2020-03-13 Tom Tromey <tom@tromey.com>
8897
8898 * infcmd.c (default_print_one_register_info): Use
8899 common_val_print.
8900
8901 2020-03-13 Tom Tromey <tom@tromey.com>
8902
8903 * valprint.h (common_val_print_checked): Declare.
8904 * valprint.c (common_val_print_checked): New function.
8905 * stack.c (print_frame_arg): Use common_val_print_checked.
8906
8907 2020-03-13 Tom Tromey <tom@tromey.com>
8908
8909 * valprint.c (do_val_print): New function, from val_print.
8910 (val_print): Use do_val_print.
8911 (common_val_print): Use do_val_print.
8912
8913 2020-03-13 Tom Tromey <tom@tromey.com>
8914
8915 * valprint.c (value_print): Use scoped_value_mark.
8916
8917 2020-03-13 Tom de Vries <tdevries@suse.de>
8918
8919 PR symtab/25646
8920 * psymtab.c (partial_symtab::partial_symtab): Don't set
8921 globals_offset and statics_offset. Push element onto
8922 current_global_psymbols and current_static_psymbols stacks.
8923 (concat): New function.
8924 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8925 element from current_global_psymbols and current_static_psymbols
8926 stacks. Concat popped elements to global_psymbols and
8927 static_symbols.
8928 (add_psymbol_to_list): Use current_global_psymbols and
8929 current_static_psymbols stacks.
8930 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8931 current_static_psymbols fields.
8932
8933 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8934
8935 * corelow.c (sniff_core_bfd): Remove.
8936 (class core_target) <m_core_vec>: Remove.
8937 (core_target::core_target): Update.
8938 (core_file_fns): Remove.
8939 (deprecated_add_core_fns): Remove.
8940 (default_core_sniffer): Remove.
8941 (sniff_core_bfd): Remove.
8942 (default_check_format): Remove.
8943 (gdb_check_format): Remove.
8944 (core_target_open): Update.
8945 (core_target::get_core_register_section): Update.
8946 (get_core_registers_cb): Update.
8947 (core_target::fetch_registers): Update.
8948 * gdbcore.h (struct core_fns): Remove.
8949 (deprecated_add_core_fns): Remove.
8950 (default_core_sniffer): Remove.
8951 (default_check_format): Remove.
8952
8953 2020-03-12 Tom Tromey <tom@tromey.com>
8954
8955 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8956 CORE_ADDR.
8957 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8958
8959 2020-03-12 Tom Tromey <tom@tromey.com>
8960
8961 * remote.c (remote_target::download_tracepoint)
8962 (remote_target::enable_tracepoint)
8963 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8964 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8965 sprintf_vma.
8966
8967 2020-03-12 Tom Tromey <tom@tromey.com>
8968
8969 * symfile-mem.c: Update CORE_ADDR size assert.
8970
8971 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8972
8973 * selftest.m4: Move to gdbsupport/.
8974 * acinclude.m4: Update path to selftest.m4.
8975
8976 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8977
8978 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8979 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8980 gdbarch-selfselftests.c and selftest-arch.c.
8981 (SUBDIR_UNITTESTS_OBS): Rename to...
8982 (SELFTESTS_OBS): ... this.
8983 (COMMON_SFILES): Remove disasm-selftests.c and
8984 gdbarch-selftests.c.
8985 * configure.ac: Don't add selftest-arch.{c,o} to
8986 CONFIG_{SRCS,OBS}.
8987 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8988 preprocessor conditions.
8989
8990 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8991
8992 * configure.ac: Don't source bfd/development.sh.
8993 * selftest.m4: Modify comment.
8994 * configure: Re-generate.
8995
8996 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8997
8998 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8999 not "true" or "false".
9000 * configure: Re-generate.
9001
9002 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9003
9004 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9005 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9006 renamed to arm_nbsd_supply_gregset.
9007 (fetch_register): Update to call arm_nbsd_supply_gregset.
9008 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9009 (arm_netbsd_nat_target::fetch_registers): Update.
9010 (fetch_elfcore_registers): Removed.
9011 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9012 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9013 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9014 not require NetBSD system headers.
9015 (arm_nbsd_regset): New struct.
9016 (arm_nbsd_iterate_over_regset_sections): New function.
9017 (arm_netbsd_init_abi_common): Updated to call
9018 set_gdbarch_iterate_over_regset_sections.
9019 * arm-nbsd-tdep.h: New file.
9020
9021 2020-03-11 Kevin Buettner <kevinb@redhat.com>
9022
9023 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9024 recursion.
9025
9026 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
9027
9028 * configure: Re-generate.
9029
9030 2020-03-11 Tom Tromey <tromey@adacore.com>
9031
9032 * ada-typeprint.c (print_choices): Fix comment.
9033
9034 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9035
9036 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9037 previous item in the list, when the list has no items.
9038
9039 2020-03-11 Tom de Vries <tdevries@suse.de>
9040
9041 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9042 PROP_LOCLIST handling code.
9043
9044 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9045
9046 * buildsym-legacy.c (record_line): Pass extra parameter to
9047 record_line.
9048 * buildsym.c (buildsym_compunit::record_line): Take an extra
9049 parameter, reduce duplication in the line table, and record the
9050 is_stmt flag in the line table.
9051 * buildsym.h (buildsym_compunit::record_line): Add extra
9052 parameter.
9053 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9054 non-statement lines.
9055 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9056 this to the symtab builder.
9057 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9058 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9059 through to dwarf_record_line_1.
9060 * infrun.c (process_event_stop_test): When stepping, don't stop at
9061 a non-statement instruction, and only refresh the step info when
9062 we land in the middle of a line's range. Also add an extra
9063 comment.
9064 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9065 field.
9066 * record-btrace.c (btrace_find_line_range): Only record lines
9067 marked as is-statement.
9068 * stack.c (frame_show_address): Show the frame address if we are
9069 in a non-statement sal.
9070 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9071 (maintenance_print_one_line_table): Print a header for the is_stmt
9072 column, and include is_stmt information in the output.
9073 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9074 preference to non-statements.
9075 (find_pcs_for_symtab_line): Prefer is-statement entries.
9076 (find_line_common): Likewise.
9077 * symtab.h (struct linetable_entry): Add is_stmt field.
9078 (struct symtab_and_line): Likewise.
9079 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9080 arranging the line table.
9081
9082 2020-03-07 Tom de Vries <tdevries@suse.de>
9083
9084 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9085 DIE.
9086
9087 2020-03-07 Tom Tromey <tom@tromey.com>
9088
9089 * valops.c (value_literal_complex): Remove obsolete comment.
9090 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9091 comment.
9092
9093 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9094
9095 * infrun.h: Forward-declare thread_info.
9096 (set_step_info): Add thread_info parameter, add doc.
9097 * infrun.c (set_step_info): Add thread_info parameter, move doc
9098 to header.
9099 * infrun.c (process_event_stop_test): Pass thread to
9100 set_step_info call.
9101 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9102 set_step_info.
9103 (prepare_one_step): Add thread_info parameter, pass it to
9104 set_step_frame and prepare_one_step (recursive) call.
9105 (step_1): Pass thread to prepare_one_step call.
9106 (step_command_fsm::should_stop): Pass thread to
9107 prepare_one_step.
9108 (until_next_fsm): Pass thread to set_step_frame call.
9109 (finish_command): Pass thread to set_step_info call.
9110
9111 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
9112
9113 * windows-tdep.c (windows_solib_create_inferior_hook):
9114 Check if inferior is running.
9115
9116 2020-03-06 Tom de Vries <tdevries@suse.de>
9117
9118 * NEWS: Fix "the the".
9119 * ctfread.c: Same.
9120
9121 2020-03-06 Tom de Vries <tdevries@suse.de>
9122
9123 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9124
9125 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9126
9127 * .dir-locals.el: Add a comment referencing the other copies of
9128 this file.
9129
9130 2020-03-05 John Baldwin <jhb@FreeBSD.org>
9131
9132 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9133 psargs.
9134
9135 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9136
9137 * .gitattributes: New file.
9138
9139 2020-03-04 Tom Tromey <tom@tromey.com>
9140
9141 * symmisc.c (print_symbol_bcache_statistics)
9142 (print_objfile_statistics): Update.
9143 * symfile.c (allocate_symtab): Use intern.
9144 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9145 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9146 macro_cache>: Remove.
9147 <string_cache>: New member.
9148 (struct objfile) <intern>: New methods.
9149 * elfread.c (elf_symtab_read): Use intern.
9150 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9151 (dwarf2_compute_name, dwarf2_physname)
9152 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9153 names.
9154 (guess_partial_die_structure_name): Update.
9155 (partial_die_info::fixup): Intern name.
9156 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9157 name.
9158 (dwarf2_name): Intern name. Update.
9159 * buildsym.c (buildsym_compunit::get_macro_table): Use
9160 string_cache.
9161
9162 2020-03-04 Tom Tromey <tom@tromey.com>
9163
9164 * jit.c (bfd_open_from_target_memory): Make "target" const.
9165 * corefile.c (gnutarget): Now const.
9166 * gdbcore.h (gnutarget): Now const.
9167
9168 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
9169
9170 * NEWS: Mention support for WOW64 processes.
9171 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9172 (amd64_windows_segment_register_p): Remove static.
9173 (_initialize_amd64_windows_nat): Update.
9174 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9175 * i386-windows-nat.c (context_offset): Update.
9176 (i386_mappings): Rename and remove static.
9177 (i386_windows_segment_register_p): Remove static.
9178 (_initialize_i386_windows_nat): Update.
9179 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9180 (STATUS_WX86_SINGLE_STEP): New macro.
9181 (EnumProcessModulesEx): New macro.
9182 (Wow64SuspendThread): New macro.
9183 (Wow64GetThreadContext): New macro.
9184 (Wow64SetThreadContext): New macro.
9185 (Wow64GetThreadSelectorEntry): New macro.
9186 (windows_set_context_register_offsets): Add static.
9187 (windows_set_segment_register_p): Likewise.
9188 (windows_add_thread): Adapt for WOW64 processes.
9189 (windows_fetch_one_register): Likewise.
9190 (windows_nat_target::fetch_registers): Likewise.
9191 (windows_store_one_register): Likewise.
9192 (display_selector): Likewise.
9193 (display_selectors): Likewise.
9194 (handle_exception): Likewise.
9195 (windows_continue): Likewise.
9196 (windows_nat_target::resume): Likewise.
9197 (windows_add_all_dlls): Likewise.
9198 (do_initial_windows_stuff): Likewise.
9199 (windows_nat_target::attach): Likewise.
9200 (windows_get_exec_module_filename): Likewise.
9201 (windows_nat_target::create_inferior): Likewise.
9202 (windows_xfer_siginfo): Likewise.
9203 (_initialize_loadable): Initialize Wow64SuspendThread,
9204 Wow64GetThreadContext, Wow64SetThreadContext,
9205 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9206 * windows-nat.h (windows_set_context_register_offsets):
9207 Remove declaration.
9208 (windows_set_segment_register_p): Likewise.
9209 (i386_windows_segment_register_p): Add declaration.
9210 (amd64_windows_segment_register_p): Likewise.
9211
9212 2020-03-04 Luis Machado <luis.machado@linaro.org>
9213
9214 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9215 in "info registers" for AArch64/ARM.
9216
9217 The change caused "info registers" to not print GPR's.
9218
9219 gdb/ChangeLog:
9220
9221 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9222
9223 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9224 when reg->group is empty and reggroup is not.
9225
9226 2020-03-03 Tom Tromey <tromey@adacore.com>
9227
9228 * dwarf2/frame.c (struct dwarf2_frame_cache)
9229 <checked_tailcall_bottom, entry_cfa_sp_offset,
9230 entry_cfa_sp_offset_p>: Remove members.
9231 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9232 (dwarf2_frame_prev_register): Don't call
9233 dwarf2_tailcall_sniffer_first.
9234 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9235 * frame-unwind.c (add_unwinder): New fuction.
9236 (frame_unwind_init): Use it. Add tailcall unwinder.
9237
9238 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9239 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9240
9241 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9242 value should be printed as true.
9243
9244 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
9245
9246 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9247 (windows_init_abi): Set and use windows_so_ops.
9248
9249 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9250
9251 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9252 when verifying if dealing with a convenience variable.
9253
9254 2020-03-03 Luis Machado <luis.machado@linaro.org>
9255
9256 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9257
9258 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9259
9260 * infrun.c (gdbarch_supports_displaced_stepping): New.
9261 (use_displaced_stepping): Break up conditions in smaller pieces.
9262 Use gdbarch_supports_displaced_stepping.
9263 (displaced_step_prepare_throw): Use
9264 gdbarch_supports_displaced_stepping.
9265
9266 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9267
9268 * NEWS: Mention new behaviour of the history filename.
9269 * top.c (write_history_p): Add comment.
9270 (show_write_history_p): Add header comment, give a different
9271 message when history writing is on, but the history filename is
9272 empty.
9273 (history_filename): Add comment.
9274 (history_filename_empty): New function.
9275 (show_history_filename): Add header comment, give a different
9276 message when the filename is empty.
9277 (init_history): Compare history_filename against nullptr, and only
9278 read history if the filename is not empty.
9279 (set_history_filename): Add header comment, and only make
9280 non-empty filenames absolute.
9281 (init_main): Make the filename argument to 'set history filename'
9282 optional.
9283
9284 2020-03-02 Christian Biesinger <cbiesinger@google.com>
9285
9286 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9287 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9288 (fetch_fp_register): Update.
9289 (fetch_fp_regs): Update.
9290 (store_fp_register): Update.
9291 (store_fp_regs): Update.
9292 (arm_netbsd_nat_target::read_description): New function.
9293 (fetch_elfcore_registers): Update.
9294
9295 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9296
9297 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9298 general_thread if the stop reply is missing a thread-id.
9299 (remote_target::process_stop_reply): Use the first non-exited
9300 thread if the target didn't pass a thread-id.
9301 * infrun.c (do_target_wait): Move call to
9302 switch_to_inferior_no_thread to ....
9303 (do_target_wait_1): ... here.
9304
9305 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9306
9307 * debuginfod-support.c: Include defs.h first.
9308
9309 2020-02-28 Tom de Vries <tdevries@suse.de>
9310
9311 * symfile.c (set_initial_language): Use default language for lookup.
9312
9313 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9314
9315 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9316 reader variable, pass `this` to read_cutu_die_from_dwo.
9317
9318 2020-02-27 Aaron Merey <amerey@redhat.com>
9319
9320 * source.c (open_source_file): Check for nullptr when computing
9321 srcpath.
9322
9323 2020-02-27 Tom Tromey <tromey@adacore.com>
9324
9325 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9326 member.
9327 (dwarf2_add_field): Don't update nfields.
9328 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9329
9330 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9331
9332 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9333 abs.
9334
9335 2020-02-26 Tom Tromey <tom@tromey.com>
9336
9337 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9338 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9339 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9340 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9341 per_cu_data.
9342
9343 2020-02-26 Tom Tromey <tom@tromey.com>
9344
9345 * dwarf2/index-write.c (psym_index_map): Change type.
9346 (add_address_entry_worker, write_one_signatured_type)
9347 (recursively_count_psymbols, recursively_write_psymbols)
9348 (class debug_names, psyms_seen_size, write_gdbindex)
9349 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9350
9351 2020-02-26 Aaron Merey <amerey@redhat.com>
9352
9353 * Makefile.in: Handle optional debuginfod support.
9354 * NEWS: Update.
9355 * README: Add --with-debuginfod summary.
9356 * config.in: Regenerate.
9357 * configure: Regenerate.
9358 * configure.ac: Handle optional debuginfod support.
9359 * debuginfod-support.c: debuginfod helper functions.
9360 * debuginfod-support.h: Ditto.
9361 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9362 summary.
9363 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9364 when a dwz file cannot be found.
9365 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9366 debuginfo file cannot be found.
9367 * source.c (open_source_file): Query debuginfod servers when a
9368 source file cannot be found.
9369 * top.c (print_gdb_configuration): Include
9370 --{with,without}-debuginfod in the output.
9371
9372 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9373
9374 * thread.c (thr_try_catch_cmd): Print thread name.
9375
9376 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9377
9378 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9379 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9380 dwarf2_fetch_die_type_sect_off): Move to...
9381 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9382 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9383 dwarf2_fetch_die_type_sect_off): ... here.
9384 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9385 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9386 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9387
9388 2020-02-26 Tom de Vries <tdevries@suse.de>
9389
9390 PR gdb/25603
9391 * symfile.c (set_initial_language): Exit-early if
9392 language_mode == language_mode_manual.
9393
9394 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9395
9396 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9397 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9398 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9399
9400 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9401
9402 * gdbtypes.c (create_array_type_with_stride): Handle negative
9403 array strides.
9404 * valarith.c (value_subscripted_rvalue): Likewise.
9405
9406 2020-02-25 Luis Machado <luis.machado@linaro.org>
9407
9408 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9409
9410 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9411
9412 * loc.h (dwarf2_get_die_type): Move to...
9413 * read.h (dwarf2_get_die_type): ... here.
9414 * read.c (dwarf2_get_die_type): Move doc to header.
9415
9416 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9417
9418 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9419 'gnulib/Makefile.in' to the list.
9420
9421 2020-02-24 Tom Tromey <tom@tromey.com>
9422
9423 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9424 Remove.
9425 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9426 XOBNEWVEC.
9427
9428 2020-02-24 Tom Tromey <tom@tromey.com>
9429
9430 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9431 New method.
9432 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9433 (dw2_do_instantiate_symtab, dw2_get_file_names)
9434 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9435
9436 2020-02-24 Tom Tromey <tom@tromey.com>
9437
9438 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9439 make_scoped_restore.
9440 (dwarf2_psymtab::read_symtab): Don't clear
9441 reading_partial_symbols.
9442
9443 2020-02-24 Tom de Vries <tdevries@suse.de>
9444
9445 PR gdb/25592
9446 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9447
9448 2020-02-24 Tom de Vries <tdevries@suse.de>
9449
9450 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9451 commands layout next/prev/regs.
9452
9453 2020-02-22 Tom Tromey <tom@tromey.com>
9454
9455 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9456 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9457
9458 2020-02-22 Tom Tromey <tom@tromey.com>
9459
9460 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9461
9462 2020-02-22 Tom Tromey <tom@tromey.com>
9463
9464 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9465 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9466 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9467 * tui/tui.c (_initialize_tui): Add usage text.
9468
9469 2020-02-22 Tom Tromey <tom@tromey.com>
9470
9471 * tui/tui-win.c (tui_set_focus_command)
9472 (tui_set_win_height_command): Use error_no_arg.
9473 (_initialize_tui_win): Update help text.
9474 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9475
9476 2020-02-22 Tom Tromey <tom@tromey.com>
9477
9478 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9479 * tui/tui-disasm.h (struct tui_disasm_window)
9480 <display_start_addr>: Declare.
9481 * tui/tui-source.h (struct tui_source_window)
9482 <display_start_addr>: Declare.
9483 * tui/tui-winsource.h (struct tui_source_window_base)
9484 <show_source_line, display_start_addr>: New methods.
9485 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9486 Rename and move to protected section.
9487 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9488 (tui_source_window_base::do_erase_source_content): Update.
9489 (tui_source_window_base::show_source_line): Now a method.
9490 (tui_source_window_base::show_source_content)
9491 (tui_source_window_base::tui_source_window_base)
9492 (tui_source_window_base::rerender)
9493 (tui_source_window_base::refill)
9494 (tui_source_window_base::do_scroll_horizontal)
9495 (tui_source_window_base::set_is_exec_point_at)
9496 (tui_source_window_base::update_breakpoint_info)
9497 (tui_source_window_base::update_exec_info): Update.
9498 * tui/tui-source.c (tui_source_window::set_contents)
9499 (tui_source_window::showing_source_p)
9500 (tui_source_window::do_scroll_vertical)
9501 (tui_source_window::location_matches_p)
9502 (tui_source_window::line_is_displayed): Update.
9503 (tui_source_window::display_start_addr): New method.
9504 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9505 (tui_disasm_window::do_scroll_vertical)
9506 (tui_disasm_window::location_matches_p): Update.
9507 (tui_disasm_window::display_start_addr): New method.
9508
9509 2020-02-22 Tom Tromey <tom@tromey.com>
9510
9511 * NEWS: Add entry for gdb.register_window_type.
9512 * tui/tui-layout.h (window_factory): New typedef.
9513 (tui_register_window): Declare.
9514 * tui/tui-layout.c (saved_tui_windows): New global.
9515 (tui_apply_current_layout): Use it.
9516 (tui_register_window): New function.
9517 * python/python.c (do_start_initialization): Call
9518 gdbpy_initialize_tui.
9519 (python_GdbMethods): Add "register_window_type" function.
9520 * python/python-internal.h (gdbpy_register_tui_window)
9521 (gdbpy_initialize_tui): Declare.
9522 * python/py-tui.c: New file.
9523 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9524
9525 2020-02-22 Tom Tromey <tom@tromey.com>
9526
9527 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9528
9529 2020-02-22 Tom Tromey <tom@tromey.com>
9530
9531 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9532 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9533 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9534 (tui_set_win_focus_to): Move from tui-win.c.
9535
9536 2020-02-22 Tom Tromey <tom@tromey.com>
9537
9538 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9539 functions.
9540 (known_window_types): New global.
9541 (tui_get_window_by_name): Reimplement.
9542 (initialize_known_windows): New function.
9543 (validate_window_name): Rewrite.
9544 (_initialize_tui_layout): Call initialize_known_windows.
9545
9546 2020-02-22 Tom Tromey <tom@tromey.com>
9547
9548 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9549 Remove constants.
9550 * tui/tui-winsource.h (struct tui_source_window_base)
9551 <tui_source_window_base>: Remove parameter.
9552 * tui/tui-winsource.c
9553 (tui_source_window_base::tui_source_window_base): Remove
9554 parameter.
9555 (tui_source_window_base::refill): Update.
9556 * tui/tui-stack.h (struct tui_locator_window)
9557 <tui_locator_window>: Update.
9558 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9559 Default the constructor.
9560 * tui/tui-regs.h (struct tui_data_item_window)
9561 <tui_data_item_window>: Default the constructor.
9562 (struct tui_data_window) <tui_data_window>: Likewise.
9563 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9564 Default the constructor.
9565 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9566 Default the constructor.
9567 <type>: Remove.
9568 (struct tui_win_info) <tui_win_info>: Default the constructor.
9569 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9570 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9571 Default the constructor.
9572
9573 2020-02-22 Tom Tromey <tom@tromey.com>
9574
9575 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9576 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9577 * tui/tui-win.c (tui_resize_all): Don't call
9578 tui_delete_invisible_windows.
9579 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9580 done.
9581 (tui_set_layout): Update.
9582 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9583 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9584 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9585
9586 2020-02-22 Tom Tromey <tom@tromey.com>
9587
9588 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9589 correctly.
9590
9591 2020-02-22 Tom Tromey <tom@tromey.com>
9592
9593 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9594
9595 2020-02-22 Tom Tromey <tom@tromey.com>
9596
9597 * tui/tui-winsource.h (struct tui_source_window_iterator)
9598 <inner_iterator>: New etytypedef.
9599 <tui_source_window_iterator>: Take "end" parameter.
9600 <tui_source_window_iterator>: Take iterator.
9601 <operator*, advance>: Update.
9602 <m_iter>: Change type.
9603 <m_end>: New field.
9604 (struct tui_source_windows) <begin, end>: Update.
9605 * tui/tui-layout.c (tui_windows): New global.
9606 (tui_apply_current_layout): Clear tui_windows.
9607 (tui_layout_window::apply): Update tui_windows.
9608 * tui/tui-data.h (tui_windows): Declare.
9609 (all_tui_windows): Now inline function.
9610 (class tui_window_iterator, struct all_tui_windows): Remove.
9611
9612 2020-02-22 Tom Tromey <tom@tromey.com>
9613
9614 PR tui/17850:
9615 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9616 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9617 "height" argument.
9618 (class tui_layout_window) <get_sizes>: Likewise.
9619 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9620 argument.
9621 <get_sizes>: Add "height" argument.
9622 <m_vertical>: New field.
9623 * tui/tui-layout.c (tui_layout_split::clone): Update.
9624 (tui_layout_split::get_sizes): Add "height" argument.
9625 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9626 (tui_new_layout_command): Parse "-horizontal".
9627 (_initialize_tui_layout): Update help string.
9628 (tui_layout_split::specification): Add "-horizontal" when needed.
9629 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9630 argument.
9631 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9632 New methods.
9633
9634 2020-02-22 Tom Tromey <tom@tromey.com>
9635
9636 * tui/tui-layout.h (enum tui_adjust_result): New.
9637 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9638 (class tui_layout_window) <adjust_size>: Return
9639 tui_adjust_result. Rewrite.
9640 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9641 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9642
9643 2020-02-22 Tom Tromey <tom@tromey.com>
9644
9645 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9646 parameter and return types.
9647 (class tui_layout_base) <specification>: Add "depth".
9648 (class tui_layout_window) <specification>: Add "depth".
9649 (class tui_layout_split) <specification>: Add "depth".
9650 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9651 and return types.
9652 (tui_new_layout_command): Parse sub-layouts.
9653 (_initialize_tui_layout): Update help string.
9654 (tui_layout_window::specification): Add "depth".
9655 (add_layout_command): Update.
9656
9657 2020-02-22 Tom Tromey <tom@tromey.com>
9658
9659 * NEWS: Add "tui new-layout" item.
9660 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9661 Add new-layout command to help text.
9662 (validate_window_name): New function.
9663 (tui_new_layout_command): New function.
9664 (_initialize_tui_layout): Register "new-layout".
9665 (tui_layout_window::specification): New method.
9666 (tui_layout_window::specification): New method.
9667 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9668 method.
9669 (class tui_layout_window) <specification>: New method.
9670 (class tui_layout_split) <specification>: New method.
9671
9672 2020-02-22 Tom Tromey <tom@tromey.com>
9673
9674 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9675 * tui/tui-win.c (window_name_completer): Update comment.
9676 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9677 Declare method.
9678 (class tui_layout_window) <replace_window>: Likewise.
9679 (class tui_layout_split) <replace_window>: Likewise.
9680 (tui_set_layout): Don't declare.
9681 (tui_set_initial_layout): Declare function.
9682 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9683 (asm_regs_layout): New globals.
9684 (tui_current_layout, show_layout): Remove.
9685 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9686 (find_layout, tui_apply_layout): New function.
9687 (layout_completer): Remove.
9688 (tui_next_layout): Reimplement.
9689 (tui_next_layout_command): New function.
9690 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9691 (tui_regs_layout): Reimplement.
9692 (tui_regs_layout_command): New function.
9693 (extract_display_start_addr): Rewrite.
9694 (next_layout, prev_layout): Remove.
9695 (tui_layout_window::replace_window): New method.
9696 (tui_layout_split::replace_window): New method.
9697 (destroy_layout): New function.
9698 (layout_list): New global.
9699 (add_layout_command): New function.
9700 (initialize_layouts): Update.
9701 (tui_layout_command): New function.
9702 (_initialize_tui_layout): Install "layout" commands.
9703 * tui/tui-data.h (enum tui_layout_type): Remove.
9704 (tui_current_layout): Don't declare.
9705
9706 2020-02-22 Tom Tromey <tom@tromey.com>
9707
9708 * tui/tui-regs.c (tui_reg_layout): Remove.
9709 (tui_reg_command): Use tui_regs_layout.
9710 * tui/tui-layout.h (tui_reg_command): Declare.
9711 * tui/tui-layout.c (tui_reg_command): New function.
9712
9713 2020-02-22 Tom Tromey <tom@tromey.com>
9714
9715 * tui/tui.c (tui_rl_delete_other_windows): Call
9716 tui_remove_some_windows.
9717 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9718 Declare method.
9719 (class tui_layout_window) <remove_windows>: New method.
9720 (class tui_layout_split) <remove_windows>: Declare.
9721 (tui_remove_some_windows): Declare.
9722 * tui/tui-layout.c (tui_remove_some_windows): New function.
9723 (tui_layout_split::remove_windows): New method.
9724
9725 2020-02-22 Tom Tromey <tom@tromey.com>
9726
9727 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9728 * tui/tui-layout.h (tui_next_layout): Declare.
9729 * tui/tui-layout.c (tui_next_layout): New function.
9730
9731 2020-02-22 Tom Tromey <tom@tromey.com>
9732
9733 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9734 correct coordinates.
9735
9736 2020-02-22 Tom Tromey <tom@tromey.com>
9737
9738 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9739 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9740 DATA_WIN case.
9741
9742 2020-02-22 Tom Tromey <tom@tromey.com>
9743
9744 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9745 TUI_DISASM_WIN, not tui_win_list.
9746
9747 2020-02-22 Tom Tromey <tom@tromey.com>
9748
9749 * valprint.c (generic_val_print_enum_1)
9750 (val_print_type_code_flags): Style member names.
9751 * rust-lang.c (val_print_struct, rust_print_enum)
9752 (rust_print_struct_def, rust_internal_print_type): Style member
9753 names.
9754 * p-valprint.c (pascal_object_print_value_fields): Style member
9755 names. Only call fprintf_symbol_filtered for static members.
9756 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9757 * f-valprint.c (f_val_print): Style member names.
9758 * f-typeprint.c (f_type_print_base): Style member names.
9759 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9760 call fprintf_symbol_filtered for static members.
9761 (cp_print_class_member): Style member names.
9762 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9763 member names.
9764 * ada-valprint.c (ada_print_scalar): Style enum names.
9765 (ada_val_print_enum): Likewise.
9766 * ada-typeprint.c (print_enum_type): Style enum names.
9767
9768 2020-02-21 Tom Tromey <tom@tromey.com>
9769
9770 * psympriv.h (struct partial_symtab): Update comment.
9771
9772 2020-02-21 Tom Tromey <tromey@adacore.com>
9773
9774 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9775 type is CORE_ADDR.
9776
9777 2020-02-21 Tom de Vries <tdevries@suse.de>
9778
9779 PR gdb/25534
9780 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9781 if dependencies[i]->user != NULL.
9782
9783 2020-02-21 Ali Tamur <tamur@google.com>
9784
9785 * dwarf2/read.c (dwarf2_name): Add null check.
9786
9787 2020-02-20 Tom Tromey <tom@tromey.com>
9788
9789 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9790 ">=", in binary search.
9791 (dwarf2_find_containing_comp_unit): New overload.
9792 (run_test): New self-test.
9793 (_initialize_dwarf2_read): Register new test.
9794
9795 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9796
9797 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9798 * riscv-tdep.h: Likewise.
9799 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9800 rv32-only CSR.
9801 * features/riscv/64bit-csr.xml: Regenerated.
9802
9803 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9804 Tom Tromey <tom@tromey.com>
9805
9806 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9807 of 'fputc_unfiltered'.
9808 (putchar_unfiltered): Call 'fputc_unfiltered'.
9809 (fputc_unfiltered): Call 'fputs_unfiltered'.
9810
9811 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9812
9813 * config.in: Regenerate.
9814 * configure: Regenerate.
9815 * configure.ac: Add --with-python-libdir option.
9816 * main.c: Use WITH_PYTHON_LIBDIR.
9817
9818 2020-02-19 Tom Tromey <tom@tromey.com>
9819
9820 * symtab.c (general_symbol_info::compute_and_set_names): Use
9821 obstack_strndup. Simplify call to symbol_set_demangled_name.
9822
9823 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9824
9825 * dwarf2/read.c (allocate_signatured_type_table,
9826 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9827 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9828 Remove objfile parameter, update all callers.
9829
9830 2020-02-19 Doug Evans <dje@google.com>
9831
9832 PR rust/25535
9833 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9834 rust_enum_variant calculation.
9835
9836 2020-02-19 Tom Tromey <tromey@adacore.com>
9837
9838 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9839
9840 2020-02-19 Tom Tromey <tromey@adacore.com>
9841
9842 * ada-lang.c (cache_symbol): Use obstack_strdup.
9843
9844 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9845
9846 * configure: Regenerate.
9847
9848 2020-02-19 Tom Tromey <tromey@adacore.com>
9849
9850 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9851 NULL check.
9852
9853 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9854
9855 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9856
9857 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9858
9859 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9860 if GDBSERVER is not defined.
9861 (riscv_tdesc_cache): Likewise, also store const target_desc.
9862 (STATIC_IN_GDB): Define.
9863 (riscv_create_target_description): Update declaration with
9864 STATIC_IN_GDB.
9865 (riscv_lookup_target_description): New function, only define if
9866 GDBSERVER is not defined.
9867 * arch/riscv.h (riscv_create_target_description): Declare only
9868 when GDBSERVER is defined.
9869 (riscv_lookup_target_description): New declaration when GDBSERVER
9870 is not defined.
9871 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9872 (riscv_linux_read_features): ...this, and return
9873 riscv_gdbarch_features instead of target_desc.
9874 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9875 (riscv_linux_read_description): Rename to...
9876 (riscv_linux_read_features): ...this.
9877 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9878 Update to use riscv_gdbarch_features and
9879 riscv_lookup_target_description.
9880 * riscv-tdep.c (riscv_find_default_target_description): Use
9881 riscv_lookup_target_description instead of
9882 riscv_create_target_description.
9883
9884 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9885
9886 * valprint.c (generic_val_print_enum_1): When printing a flag
9887 enum with value 0 and there is no enumerator with value 0, print
9888 just "0" instead of "(unknown: 0x0)".
9889
9890 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9891
9892 * valprint.c (generic_val_print_enum_1): Print unknown part of
9893 flag enum in hex.
9894
9895 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9896
9897 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9898 flag enums to contain duplicate enumerators.
9899 * valprint.c (generic_val_print_enum_1): Update comment.
9900
9901 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9902
9903 * dwarf2/read.c: Include "count-one-bits.h".
9904 (update_enumeration_type_from_children): If an enumerator has
9905 multiple bits set, don't treat the enumeration as a "flag enum".
9906 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9907 of flag enums have 0 or 1 bit set.
9908
9909 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9910
9911 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9912 conversion.
9913 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9914 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9915 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9916 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9917 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9918
9919 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9920
9921 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9922
9923 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9924
9925 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9926 displaced_step_closure_up.
9927 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9928 (struct displaced_step_closure_up):
9929 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9930 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9931 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9932 Likewise.
9933 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9934 * gdbarch.c, gdbarch.h: Re-generate.
9935 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9936 displaced_step_closure_up.
9937 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9938 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9939 * infrun.h (displaced_step_closure_up): New type alias.
9940 (struct displaced_step_inferior_state) <step_closure>: Change
9941 type to displaced_step_closure_up.
9942 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9943 displaced_step_closure_up.
9944 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9945
9946 2020-02-14 Tom Tromey <tom@tromey.com>
9947
9948 * minidebug.c (gnu_debug_key): New global.
9949 (find_separate_debug_file_in_section): Use it.
9950
9951 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9952
9953 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9954 std::unique_ptr.
9955 * gdbarch.c: Re-generate.
9956 * gdbarch.h: Re-generate.
9957 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9958 change.
9959 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9960 type to std::unique_ptr.
9961 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9962 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9963 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9964 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9965 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9966 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9967 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9968 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9969 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9970
9971 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9972
9973 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9974 std::unique_ptr.
9975 (displaced_step_clear): Rename to...
9976 (displaced_step_reset): ... this. Just call displaced->reset ().
9977 (displaced_step_clear_cleanup): Rename to...
9978 (displaced_step_reset_cleanup): ... this.
9979 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9980 (displaced_step_fixup): Likewise.
9981 (resume_1): Likewise.
9982 (handle_inferior_event): Restore child's memory before calling
9983 displaced_step_fixup on the parent.
9984 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9985 to std::unique_ptr.
9986 <step_closure>: Change type to std::unique_ptr.
9987
9988 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9989
9990 * arm-tdep.c: Include count-one-bits.h.
9991 (cleanup_block_store_pc): Use count_one_bits.
9992 (cleanup_block_load_pc): Use count_one_bits.
9993 (arm_copy_block_xfer): Use count_one_bits.
9994 (thumb2_copy_block_xfer): Use count_one_bits.
9995 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9996 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9997 (thumb_get_next_pcs_raw): Use count_one_bits.
9998 (arm_get_next_pcs_raw): Use count_one_bits_l.
9999 * arch/arm.c (bitcount): Remove.
10000 * arch/arm.h (bitcount): Remove.
10001
10002 2020-02-14 Tom Tromey <tromey@adacore.com>
10003
10004 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10005 Update.
10006 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10007 * dwarf2/loc.c (call_site_find_chain_1): Return
10008 unique_xmalloc_ptr.
10009 (call_site_find_chain): Likewise.
10010
10011 2020-02-14 Richard Biener <rguenther@suse.de>
10012
10013 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10014 on expression with division operators.
10015
10016 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10017
10018 * MAINTAINERS (Write After Approval): Adding myself.
10019
10020 2020-02-12 Tom Tromey <tom@tromey.com>
10021
10022 * event-loop.c (event_data, gdb_event, event_handler_func):
10023 Remove.
10024
10025 2020-02-12 Tom Tromey <tom@tromey.com>
10026
10027 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10028 (dwarf2_frame_objfile_data): Add comment.
10029 (find_comp_unit, set_comp_unit): New functions.
10030 (dwarf2_frame_find_fde): Use find_comp_unit.
10031 (dwarf2_build_frame_info): Use set_comp_unit.
10032
10033 2020-02-12 Tom Tromey <tom@tromey.com>
10034
10035 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10036 (comp_unit): Don't initialize objfile.
10037 (execute_cfa_program): Add text_offset parameter.
10038 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10039 (dwarf2_frame_cache): Update.
10040 (dwarf2_build_frame_info): Don't set "objfile" member.
10041
10042 2020-02-12 Tom Tromey <tom@tromey.com>
10043
10044 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10045 (decode_frame_entry): Likewise.
10046 (dwarf2_build_frame_info): Update.
10047
10048 2020-02-12 Tom Tromey <tom@tromey.com>
10049
10050 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10051 (decode_frame_entry_1): Use the comp_unit obstack.
10052
10053 2020-02-12 Tom Tromey <tom@tromey.com>
10054
10055 * dwarf2/frame.c (struct comp_unit): Add initializers and
10056 constructor.
10057 (dwarf2_frame_objfile_data): Store a comp_unit.
10058 (dwarf2_frame_find_fde): Update.
10059 (dwarf2_build_frame_info): Use "new".
10060
10061 2020-02-12 Tom Tromey <tom@tromey.com>
10062
10063 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10064 (dwarf2_fde_table): Typedef for std::vector.
10065 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10066 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10067 (decode_frame_entry): Update.
10068 (dwarf2_build_frame_info): Use "new".
10069
10070 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10071
10072 * arm-tdep.c (arm_gdbarch_init): Update.
10073 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10074 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10075 have_neon, is_m>: Change to bool.
10076
10077 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10078
10079 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10080
10081 2020-02-12 Tom Tromey <tom@tromey.com>
10082
10083 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10084
10085 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
10086
10087 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10088 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10089
10090 2020-02-11 Tom Tromey <tom@tromey.com>
10091
10092 * psymtab.h: Update comment.
10093
10094 2020-02-11 Tom Tromey <tom@tromey.com>
10095
10096 * gdb_obstack.h (struct auto_obstack): Use
10097 DISABLE_COPY_AND_ASSIGN.
10098
10099 2020-02-11 Tom Tromey <tom@tromey.com>
10100
10101 * dwarf2/frame.h (struct objfile): Don't forward declare.
10102
10103 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10104
10105 * cris-tdep.c (cris_supply_gregset): Change signature to match
10106 what struct regset expects.
10107 (cris_regset): New struct.
10108 (fetch_core_registers): Remove.
10109 (cris_iterate_over_regset_sections): New function.
10110 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10111 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10112
10113 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10114
10115 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10116 registers.
10117
10118 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10119
10120 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10121
10122 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10123
10124 * configure: Re-generate.
10125
10126 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10127
10128 * configure: Re-generate.
10129
10130 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10131
10132 * acinclude: Update warning.m4 path.
10133 * warning.m4: Move to gdbsupport.
10134
10135 2020-02-11 Tom Tromey <tromey@adacore.com>
10136
10137 * remote.c (remote_console_output): Update.
10138 * printcmd.c (printf_command): Update.
10139 * event-loop.c (gdb_wait_for_event): Update.
10140 * linux-nat.c (sigchld_handler): Update.
10141 * remote-sim.c (gdb_os_write_stdout): Update.
10142 (gdb_os_flush_stdout): Update.
10143 (gdb_os_flush_stderr): Update.
10144 (gdb_os_write_stderr): Update.
10145 * exceptions.c (print_exception): Update.
10146 * remote-fileio.c (remote_fileio_func_read): Update.
10147 (remote_fileio_func_write): Update.
10148 * tui/tui.c (tui_enable): Update.
10149 * tui/tui-interp.c (tui_interp::init): Update.
10150 * utils.c (init_page_info): Update.
10151 (putchar_unfiltered, fputc_unfiltered): Update.
10152 (gdb_flush): Update.
10153 (emit_style_escape): Update.
10154 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10155 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10156 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10157 (stderr_file::write): Update.
10158 (stderr_file::puts): Update.
10159 * ui-file.h (ui_file_isatty, ui_file_write)
10160 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10161 (ui_file_puts): Don't declare.
10162
10163 2020-02-10 Tom de Vries <tdevries@suse.de>
10164
10165 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10166 sentinel to char *.
10167
10168 2020-02-09 Tom de Vries <tdevries@suse.de>
10169
10170 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10171 filename if it matches "<artificial>".
10172
10173 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10174
10175 * windows-tdep.c (struct enum_value_name): New struct.
10176 (create_enum): New function.
10177 (windows_get_siginfo_type): Create and use enum types.
10178
10179 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10180
10181 * NEWS: Mention $_siginfo support for Windows.
10182 * windows-nat.c (handle_exception): Set siginfo_er.
10183 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10184 (windows_xfer_siginfo): New function.
10185 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10186 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10187 (init_windows_gdbarch_data): New function.
10188 (get_windows_gdbarch_data): New function.
10189 (windows_get_siginfo_type): New function.
10190 (windows_init_abi): Register windows_get_siginfo_type.
10191 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10192
10193 2020-02-08 Tom Tromey <tom@tromey.com>
10194
10195 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10196 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10197 <keep>: Declare method.
10198 <m_keep>: Remove member.
10199 <~cutu_reader>: Remove.
10200 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10201 (cutu_reader::cutu_reader): Update.
10202 (cutu_reader::keep): Rename from ~cutu_reader.
10203 (process_psymtab_comp_unit, build_type_psymtabs_1)
10204 (process_skeletonless_type_unit, load_partial_comp_unit)
10205 (load_full_comp_unit, dwarf2_read_addr_index)
10206 (read_signatured_type): Update.
10207
10208 2020-02-08 Tom Tromey <tom@tromey.com>
10209
10210 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10211 "want_partial_unit" parameter.
10212 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10213 Inline check for DW_TAG_partial_unit.
10214 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10215
10216 2020-02-08 Tom Tromey <tom@tromey.com>
10217
10218 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10219 read.c.
10220 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10221 read.c.
10222
10223 2020-02-08 Tom Tromey <tom@tromey.com>
10224
10225 * dwarf2/read.c (read_address): Move to comp-unit.c.
10226 (dwarf2_rnglists_process, dwarf2_ranges_process)
10227 (read_attribute_value, dwarf_decode_lines_1)
10228 (var_decode_location, decode_locdesc): Update.
10229 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10230 read.c. Remove "cu" parameter.
10231 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10232 method.
10233
10234 2020-02-08 Tom Tromey <tom@tromey.com>
10235
10236 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10237 (read_indirect_line_string): Update.
10238 * dwarf2/comp-unit.c (read_offset): Remove.
10239 (read_comp_unit_head): Update.
10240 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10241 method.
10242 (read_offset): Don't declare.
10243
10244 2020-02-08 Tom Tromey <tom@tromey.com>
10245
10246 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10247 * dwarf2/read.c (struct comp_unit_head): Move to
10248 dwarf2/comp-unit.h.
10249 (enum class rcuh_kind): Move to comp-unit.h.
10250 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10251 (read_comp_unit_head, error_check_comp_unit_head)
10252 (read_and_check_comp_unit_head): Move to comp-unit.c.
10253 (read_offset, dwarf_unit_type_name): Likewise.
10254 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10255 (cutu_reader::cutu_reader, read_call_site_scope)
10256 (find_partial_die, follow_die_offset): Update.
10257 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10258
10259 2020-02-08 Tom Tromey <tom@tromey.com>
10260
10261 * dwarf2/read.c (read_offset_1): Move to leb.c.
10262 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10263 (dwarf_decode_macro_bytes): Update.
10264 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10265 * dwarf2/leb.h (read_offset): Declare.
10266
10267 2020-02-08 Tom Tromey <tom@tromey.com>
10268
10269 * dwarf2/read.c (dwarf2_section_size): Remove.
10270 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10271 Update.
10272 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10273
10274 2020-02-08 Tom Tromey <tom@tromey.com>
10275
10276 * dwarf2/read.c (read_initial_length): Move to leb.c.
10277 * dwarf2/leb.h (read_initial_length): Declare.
10278 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10279 handle_nonstd parameter.
10280 * dwarf2/frame.c (read_initial_length): Remove.
10281 (decode_frame_entry_1): Update.
10282
10283 2020-02-08 Tom Tromey <tom@tromey.com>
10284
10285 * dwarf2/loc.c (dwarf2_find_location_expression)
10286 (dwarf_evaluate_loc_desc::get_tls_address)
10287 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10288 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10289 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10290 (dwarf2_compile_property_to_c)
10291 (dwarf2_loc_desc_get_symbol_read_needs)
10292 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10293 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10294 (loclist_describe_location, loclist_tracepoint_var_ref)
10295 (loclist_generate_c_location): Update.
10296 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10297 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10298 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10299 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10300 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10301 (dwarf2_per_cu_data::addr_size)
10302 (dwarf2_per_cu_data::ref_addr_size)
10303 (dwarf2_per_cu_data::text_offset)
10304 (dwarf2_per_cu_data::addr_type): Now methods.
10305 (per_cu_header_read_in): Make per_cu "const".
10306 (dwarf2_version): Remove.
10307 (dwarf2_per_cu_data::int_type): Now a method.
10308 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10309 (set_die_type, read_array_type, read_subrange_index_type)
10310 (read_tag_string_type, read_subrange_type): Update.
10311 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10312 offset_size, ref_addr_size, text_offset, addr_type, version,
10313 objfile, int_type, addr_sized_int_type>: Declare methods.
10314
10315 2020-02-08 Tom Tromey <tom@tromey.com>
10316
10317 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10318 Move earlier.
10319
10320 2020-02-08 Tom Tromey <tom@tromey.com>
10321
10322 * dwarf2/read.h (dwarf_line_debug): Declare.
10323 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10324 * dwarf2/read.c: Move line_header code to new files.
10325 (dwarf_line_debug): No longer static.
10326 * dwarf2/line-header.c: New file.
10327 * dwarf2/line-header.h: New file.
10328
10329 2020-02-08 Tom Tromey <tom@tromey.com>
10330
10331 * dwarf2/read.c (struct line_header) <file_full_name,
10332 file_file_name>: Return unique_xmalloc_ptr.
10333 (line_header::file_file_name): Update.
10334 (line_header::file_full_name): Update.
10335 (dw2_get_file_names_reader): Update.
10336 (macro_start_file): Update.
10337
10338 2020-02-08 Tom Tromey <tom@tromey.com>
10339
10340 * dwarf2/read.c (struct line_header) <file_full_name,
10341 file_file_name>: Declare methods.
10342 (dw2_get_file_names_reader): Update.
10343 (file_file_name): Now a method.
10344 (file_full_name): Likewise.
10345 (macro_start_file): Update.
10346
10347 2020-02-08 Tom Tromey <tom@tromey.com>
10348
10349 * dwarf2/read.c (dwarf_always_disassemble)
10350 (show_dwarf_always_disassemble): Move to loc.c.
10351 (_initialize_dwarf2_read): Move "always-disassemble" registration
10352 to loc.c.
10353 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10354 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10355 static.
10356 (show_dwarf_always_disassemble): Move from read.c.
10357 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10358
10359 2020-02-08 Tom Tromey <tom@tromey.com>
10360
10361 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10362 (create_quick_file_names_table): Return htab_up.
10363 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10364 Update.
10365 * dwarf2/read.h (struct dwarf2_per_objfile)
10366 <quick_file_names_table>: Now htab_up.
10367
10368 2020-02-08 Tom Tromey <tom@tromey.com>
10369
10370 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10371
10372 2020-02-08 Tom Tromey <tom@tromey.com>
10373
10374 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10375 Rewrite.
10376 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10377 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10378 (abbrev_table::abbrev_table): No longer inline.
10379 (ABBREV_HASH_SIZE): Remove.
10380 (abbrev_table::m_abbrevs): Now an htab_up.
10381
10382 2020-02-08 Tom Tromey <tom@tromey.com>
10383
10384 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10385 (cutu_reader): Update.
10386 (build_type_psymtabs_1): Update.
10387 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10388 (abbrev_table::alloc_abbrev): Update.
10389 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10390 (abbrev_table::read): New static method, renamed from
10391 abbrev_table_read_table.
10392 (abbrev_table::alloc_abbrev)
10393 (abbrev_table::add_abbrev): Now private.
10394 (abbrev_table::abbrev_table): Now private.
10395 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10396
10397 2020-02-08 Tom Tromey <tom@tromey.com>
10398
10399 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10400 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10401 htab_up.
10402
10403 2020-02-08 Tom Tromey <tom@tromey.com>
10404
10405 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10406 htab_up.
10407 (lookup_dwo_unit_in_dwp): Update.
10408 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10409 on obstack.
10410
10411 2020-02-08 Tom Tromey <tom@tromey.com>
10412
10413 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10414 obstack.
10415
10416 2020-02-08 Tom Tromey <tom@tromey.com>
10417
10418 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10419 line_header_hash.
10420 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10421 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10422 Change type to htab_up.
10423
10424 2020-02-08 Tom Tromey <tom@tromey.com>
10425
10426 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10427 htab_up. Don't allocate on obstack.
10428 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10429 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10430 Change type to htab_up.
10431
10432 2020-02-08 Tom Tromey <tom@tromey.com>
10433
10434 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10435 Change type to htab_up.
10436 * dwarf2/read.c (create_signatured_type_table_from_index)
10437 (create_signatured_type_table_from_debug_names)
10438 (create_all_type_units, add_type_unit)
10439 (lookup_dwo_signatured_type, lookup_signatured_type)
10440 (process_skeletonless_type_unit): Update.
10441 (create_debug_type_hash_table, create_debug_types_hash_table):
10442 Change type of types_htab.
10443 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10444 htab_up. Don't allocate on obstack.
10445 (create_cus_hash_table): Change type of cus_htab parameter.
10446 (struct dwo_file) <cus, tus>: Now htab_up.
10447 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10448 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10449 (queue_and_load_all_dwo_tus): Update.
10450 * dwarf2/index-write.c (write_gdbindex): Update.
10451 (write_debug_names): Update.
10452
10453 2020-02-08 Tom Tromey <tom@tromey.com>
10454
10455 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10456 dwarf2/read.c. Remove "next" member. Add constructor ntad
10457 destructor.
10458 (struct dwarf2_per_objfile) <queue>: New member.
10459 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10460 dwarf2/read.h.
10461 (dwarf2_queue, dwarf2_queue_tail): Remove.
10462 (class dwarf2_queue_guard): Add parameter to constructor. Use
10463 DISABLE_COPY_AND_ASSIGN.
10464 <m_per_objfile>: New member.
10465 <~dwarf2_queue_guard>: Rewrite.
10466 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10467 Update.
10468 (~dwarf2_queue_item): New.
10469
10470 2020-02-08 Tom Tromey <tom@tromey.com>
10471
10472 * dwarf2/read.c (struct die_info) <has_children>: New member.
10473 (dw2_get_file_names_reader): Remove has_children.
10474 (dw2_get_file_names): Update.
10475 (read_cutu_die_from_dwo): Remove has_children.
10476 (cutu_reader::init_tu_and_read_dwo_dies)
10477 (cutu_reader::cutu_reader): Update.
10478 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10479 Remove has_children.
10480 (build_type_psymtabs_1, process_skeletonless_type_unit)
10481 (load_partial_comp_unit, load_full_comp_unit): Update.
10482 (create_dwo_cu_reader): Remove has_children.
10483 (create_cus_hash_table, read_die_and_children): Update.
10484 (read_full_die_1,read_full_die): Remove has_children.
10485 (read_signatured_type): Update.
10486 (class cutu_reader) <has_children>: Remove.
10487
10488 2020-02-08 Tom Tromey <tom@tromey.com>
10489
10490 * dwarf2/expr.c: Rename from dwarf2expr.c.
10491 * dwarf2/expr.h: Rename from dwarf2expr.h.
10492 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10493 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10494 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10495 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10496 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10497 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10498 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10499 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10500 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10501 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10502 * dwarf2/loc.c: Rename from dwarf2loc.c.
10503 * dwarf2/loc.h: Rename from dwarf2loc.h.
10504 * dwarf2/read.c: Rename from dwarf2read.c.
10505 * dwarf2/read.h: Rename from dwarf2read.h.
10506 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10507 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10508 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10509 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10510 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10511 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10512 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10513 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10514 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10515 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10516 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10517 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10518 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10519 Update.
10520 * Makefile.in (COMMON_SFILES): Update.
10521 (HFILES_NO_SRCDIR): Update.
10522
10523 2020-02-08 Tom Tromey <tom@tromey.com>
10524
10525 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10526 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10527
10528 2020-02-08 Tom Tromey <tom@tromey.com>
10529
10530 * dwarf2read.h (struct die_info): Don't declare.
10531
10532 2020-02-08 Tom Tromey <tom@tromey.com>
10533
10534 * dwarf2read.h (die_info_ptr): Remove typedef.
10535
10536 2020-02-08 Tom Tromey <tom@tromey.com>
10537
10538 * dwarf2read.c (read_call_site_scope)
10539 (handle_data_member_location, dwarf2_add_member_fn)
10540 (mark_common_block_symbol_computed, read_common_block)
10541 (attr_to_dynamic_prop, partial_die_info::read)
10542 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10543 (dwarf2_symbol_mark_computed, set_die_type): Update.
10544 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10545 method.
10546 (attr_form_is_block): Don't declare.
10547 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10548
10549 2020-02-08 Tom Tromey <tom@tromey.com>
10550
10551 * dwarf2read.c (dwarf2_find_base_address, )
10552 (read_call_site_scope, rust_containing_type)
10553 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10554 (handle_data_member_location, dwarf2_add_member_fn)
10555 (get_alignment, read_structure_type, process_structure_scope)
10556 (mark_common_block_symbol_computed, read_common_block)
10557 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10558 (partial_die_info::read, read_attribute_value, new_symbol)
10559 (lookup_die_type, dwarf2_get_ref_die_offset)
10560 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10561 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10562 (dwarf2_symbol_mark_computed): Update.
10563 * dwarf2/attribute.h (struct attribute) <value_as_address,
10564 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10565 methods.
10566 (value_as_address, attr_form_is_section_offset)
10567 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10568 * dwarf2/attribute.c (attribute::value_as_address)
10569 (attribute::form_is_section_offset, attribute::form_is_constant)
10570 (attribute::form_is_ref): Now methods.
10571
10572 2020-02-08 Tom Tromey <tom@tromey.com>
10573
10574 * dwarf2read.c (struct attribute, DW_STRING)
10575 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10576 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10577 (attr_form_is_block, attr_form_is_section_offset)
10578 (attr_form_is_constant, attr_form_is_ref): Move.
10579 * dwarf2/attribute.h: New file.
10580 * dwarf2/attribute.c: New file, from dwarf2read.c.
10581 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10582
10583 2020-02-08 Tom Tromey <tom@tromey.com>
10584
10585 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10586 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10587 Move.
10588 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10589 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10590 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10591 abbrev.c.
10592 * dwarf2/abbrev.h: New file.
10593 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10594 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10595
10596 2020-02-08 Tom Tromey <tom@tromey.com>
10597
10598 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10599 (dwarf2_section_size, dwarf2_get_section_info)
10600 (create_signatured_type_table_from_debug_names)
10601 (create_addrmap_from_aranges, read_debug_names_from_section)
10602 (get_gdb_index_contents_from_section, read_comp_unit_head)
10603 (error_check_comp_unit_head, read_abbrev_offset)
10604 (create_debug_type_hash_table, init_cu_die_reader)
10605 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10606 (read_comp_units_from_section, create_cus_hash_table)
10607 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10608 (create_dwp_v2_section, dwarf2_rnglists_process)
10609 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10610 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10611 (read_indirect_string_from_dwz, read_addr_index_1)
10612 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10613 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10614 (fill_in_loclist_baton): Update.
10615 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10616 get_containing_section, get_bfd_owner, get_bfd_section,
10617 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10618 (dwarf2_read_section, get_section_name, get_section_file_name)
10619 (get_containing_section, get_section_bfd_owner)
10620 (get_section_bfd_section, get_section_name, get_section_file_name)
10621 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10622 declare.
10623 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10624 (dwarf2_section_info::get_bfd_owner)
10625 (dwarf2_section_info::get_bfd_section)
10626 (dwarf2_section_info::get_name)
10627 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10628 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10629 (dwarf2_section_info::read): Now methods.
10630 * dwarf-index-write.c (class debug_names): Update.
10631
10632 2020-02-08 Tom Tromey <tom@tromey.com>
10633
10634 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10635 Move to dwarf2/section.h.
10636 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10637 (get_section_bfd_section, get_section_name)
10638 (get_section_file_name, get_section_id, get_section_flags)
10639 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10640 dwarf2/section.c.
10641 * dwarf2/section.h: New file.
10642 * dwarf2/section.c: New file, from dwarf2read.c.
10643 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10644
10645 2020-02-08 Tom Tromey <tom@tromey.com>
10646
10647 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10648 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10649 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10650 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10651 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10652 * dwarf2/leb.h: New file, from dwarf2read.c.
10653 * dwarf2/leb.c: New file, from dwarf2read.c.
10654 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10655 Remove.
10656 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10657 (COMMON_SFILES): Add dwarf2/leb.c.
10658
10659 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10660
10661 GDB 9.1 released.
10662
10663 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10664
10665 PR gdb/25190:
10666 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10667 * gdb/remote.c (remote_console_output): Update.
10668 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10669 (ui_file_puts): ...this.
10670 * gdb/ui-file.h (ui_file_puts): Add declaration.
10671 * gdb/utils.c (emit_style_escape): Update.
10672 (flush_wrap_buffer): Update.
10673 (fputs_maybe_filtered): Update.
10674 (fputs_unfiltered): Add function.
10675
10676 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10677
10678 * gdb/event-loop.c (gdb_wait_for_event): Update.
10679 * gdb/printcmd.c (printf_command): Update.
10680 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10681 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10682 (gdb_os_flush_stderr): Update.
10683 * gdb/remote.c (remote_console_output): Update.
10684 * gdb/ui-file.c (gdb_flush): Rename to...
10685 (ui_file_flush): ...this.
10686 (stderr_file::write): Update.
10687 (stderr_file::puts): Update.
10688 * gdb/ui-file.h (gdb_flush): Rename to...
10689 (ui_file_flush): ...this.
10690 * gdb/utils.c (gdb_flush): Add function.
10691 * gdb/utils.h (gdb_flush): Add declaration.
10692
10693 2020-02-07 Tom Tromey <tromey@adacore.com>
10694
10695 PR breakpoints/24915:
10696 * source.c (find_and_open_source): Do not check basenames_may_differ.
10697
10698 2020-02-07 Tom Tromey <tom@tromey.com>
10699
10700 * README: Update gdbserver documentation.
10701 * gdbserver: Move to top level.
10702 * configure.tgt (build_gdbserver): Remove.
10703 * configure.ac: Remove --enable-gdbserver.
10704 * configure: Rebuild.
10705 * Makefile.in (distclean): Don't mention gdbserver.
10706
10707 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10708
10709 * source-cache.c (source_cache::ensure): Surround
10710 get_plain_source_lines with a try/catch.
10711 (source_cache::get_line_charpos): Get rid of try/catch
10712 and only check for the return value of "ensure".
10713 * tui/tui-source.c (tui_source_window::set_contents):
10714 Simplify "nlines" calculation.
10715
10716 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10717
10718 * MAINTAINERS (Write After Approval): Add myself.
10719
10720 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10721
10722 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10723 function call.
10724
10725 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10726
10727 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10728
10729 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10730
10731 * nat/riscv-linux-tdesc.h: New file.
10732 * nat/riscv-linux-tdesc.c: New file, taking code from...
10733 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10734 ... here.
10735 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10736 NATDEPFILES.
10737
10738 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10739
10740 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10741 we don't set the fake simulator ptid to the null_ptid.
10742
10743 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10744
10745 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10746 * gdbthread.h (class thread_info) <resumed>: Likewise.
10747 * infrun.c (resume_1): Likewise.
10748 (proceed): Likewise.
10749 (infrun_thread_stop_requested): Likewise.
10750 (stop_all_threads): Likewise.
10751 (handle_inferior_event): Likewise.
10752 (restart_threads): Likewise.
10753 (finish_step_over): Likewise.
10754 (keep_going_stepped_thread): Likewise.
10755 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10756 (linux_handle_extended_wait): Likewise.
10757 * record-btrace.c (get_thread_current_frame_id): Likewise.
10758 * record-full.c (record_full_wait_1): Likewise.
10759 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10760 * target.c (target_resume): Likewise.
10761 * thread.c (set_running_thread): Likewise.
10762
10763 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10764
10765 * f-valprint.c (f77_print_array_1): Changed datatype of index
10766 variable to LONGEST from int to enable it to contain bound
10767 values correctly.
10768
10769 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10770
10771 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10772 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10773 offsets according to FLEN determined.
10774 (riscv_linux_nat_target::read_description): Determine FLEN
10775 dynamically.
10776 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10777 according to FLEN determined.
10778 (riscv_linux_nat_target::store_registers): Likewise.
10779
10780 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10781
10782 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10783 when reg->group is empty and reggroup is not.
10784
10785 2020-01-31 Tom Tromey <tromey@adacore.com>
10786
10787 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10788 Call beneath target's mourn_inferior after unpushing.
10789
10790 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10791
10792 PR tui/9765
10793 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10794 have enough lines to fill the screen, still return the lowest
10795 address we found.
10796
10797 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10798
10799 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10800 '-', '<', and '>' commands.
10801
10802 2020-01-29 Pedro Alves <palves@redhat.com>
10803 Sergio Durigan Junior <sergiodj@redhat.com>
10804
10805 * infcmd.c (construct_inferior_arguments): Assert that
10806 'argc' is greater than 0.
10807
10808 2020-01-29 Luis Machado <luis.machado@linaro.org>
10809
10810 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10811 (BRK_INSN_MASK): Define to 0xd4200000.
10812 (aarch64_program_breakpoint_here_p): New function.
10813 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10814 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10815 breakpoint.c.
10816 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10817 breakpoint.h
10818 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10819 call gdbarch_program_breakpoint_here_p.
10820 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10821 default_program_breakpoint_here_p, changed return type to bool and
10822 simplified.
10823 * breakpoint.h (program_breakpoint_here): Moved prototype to
10824 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10825 return type to bool.
10826 * gdbarch.c: Regenerate.
10827 * gdbarch.h: Regenerate.
10828 * gdbarch.sh (program_breakpoint_here_p): New method.
10829 * infrun.c (handle_signal_stop): Call
10830 gdbarch_program_breakpoint_here_p.
10831
10832 2020-01-26 Tom Tromey <tom@tromey.com>
10833
10834 * ctfread.c (struct ctf_fp_info): Reindent.
10835 (_initialize_ctfread): Remove.
10836
10837 2020-01-26 Tom Tromey <tom@tromey.com>
10838
10839 * psymtab.c (partial_map_expand_apply)
10840 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10841 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10842 (psym_print_stats, psym_expand_symtabs_for_function)
10843 (psym_map_symbol_filenames, psym_map_matching_symbols)
10844 (psym_expand_symtabs_matching)
10845 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10846 (maintenance_check_psymtabs): Use new methods.
10847 * psympriv.h (struct partial_symtab) <readin_p,
10848 get_compunit_symtab>: New methods.
10849 <readin, compunit_symtab>: Remove members.
10850 (struct standard_psymtab): New.
10851 (struct legacy_psymtab): Derive from standard_psymtab.
10852 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10853 standard_psymtab.
10854 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10855
10856 2020-01-26 Tom Tromey <tom@tromey.com>
10857
10858 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10859 read_dependencies. Add assert.
10860 * psymtab.c (partial_symtab::read_dependencies): New method.
10861 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10862 method.
10863 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10864 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10865 read_dependencies.
10866 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10867 Add assert.
10868
10869 2020-01-26 Tom Tromey <tom@tromey.com>
10870
10871 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10872 Call expand_psymtab.
10873 (xcoff_read_symtab): Call expand_psymtab.
10874 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10875 legacy_expand_psymtab.
10876 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10877 method.
10878 (struct legacy_psymtab) <expand_psymtab>: Implement.
10879 <legacy_expand_psymtab>: New member.
10880 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10881 (parse_partial_symbols): Set legacy_expand_psymtab.
10882 (psymtab_to_symtab_1): Change argument order. Call
10883 expand_psymtab.
10884 (new_psymtab): Set legacy_expand_psymtab.
10885 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10886 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10887 expand_psymtab.
10888 (dwarf2_psymtab::expand_psymtab): Rename from
10889 psymtab_to_symtab_1. Call expand_psymtab.
10890 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10891 (dbx_end_psymtab): Likewise.
10892 (dbx_psymtab_to_symtab_1): Change argument order. Call
10893 expand_psymtab.
10894 (dbx_read_symtab): Call expand_psymtab.
10895 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10896 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10897 (ctf_psymtab::read_symtab): Call expand_psymtab.
10898
10899 2020-01-26 Tom Tromey <tom@tromey.com>
10900
10901 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10902 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10903 messages.
10904 * mdebugread.c (mdebug_read_symtab): Remove prints.
10905 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10906 assert.
10907 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10908
10909 2020-01-26 Tom Tromey <tom@tromey.com>
10910
10911 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10912 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10913 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10914 legacy_symtab.
10915 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10916 * psymtab.c (psymtab_to_symtab): Call method.
10917 (dump_psymtab): Update.
10918 * psympriv.h (struct partial_symtab): Add virtual destructor.
10919 <read_symtab>: New method.
10920 (struct legacy_symtab): New.
10921 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10922 (struct pst_map) <pst>: Now a legacy_psymtab.
10923 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10924 (new_psymtab): Use legacy_psymtab.
10925 * dwarf2read.h (struct dwarf2_psymtab): New.
10926 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10927 * dwarf2read.c (dwarf2_create_include_psymtab)
10928 (dwarf2_build_include_psymtabs, create_type_unit_group)
10929 (create_partial_symtab, process_psymtab_comp_unit_reader)
10930 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10931 (set_partial_user): Use dwarf2_psymtab.
10932 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10933 (psymtab_to_symtab_1, process_full_comp_unit)
10934 (process_full_type_unit, dwarf2_ranges_read)
10935 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10936 (dwarf_decode_lines): Use dwarf2_psymtab.
10937 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10938 (add_address_entry_worker, write_one_signatured_type)
10939 (recursively_count_psymbols, recursively_write_psymbols)
10940 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10941 (write_debug_names): Likewise.
10942 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10943 <pst>: Now a legacy_psymtab.
10944 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10945 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10946 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10947 * ctfread.c (struct ctf_psymtab): New.
10948 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10949 ctf_psymtab.
10950 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10951 (create_partial_symtab): Return a ctf_psymtab.
10952 (scan_partial_symbols): Update.
10953
10954 2020-01-26 Tom Tromey <tom@tromey.com>
10955
10956 * xcoffread.c (xcoff_start_psymtab): Use new.
10957 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10958 renamed from start_psymtab_common.
10959 * psympriv.h (struct partial_symtab): Add new constructor.
10960 (start_psymtab_common): Don't declare.
10961 * mdebugread.c (parse_partial_symbols): Use new.
10962 * dwarf2read.c (create_partial_symtab): Use new.
10963 * dbxread.c (start_psymtab): Use new.
10964 * ctfread.c (create_partial_symtab): Use new.
10965
10966 2020-01-26 Tom Tromey <tom@tromey.com>
10967
10968 * xcoffread.c (xcoff_end_psymtab): Use new.
10969 * psymtab.c (start_psymtab_common): Use new.
10970 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10971 Update.
10972 * psympriv.h (struct partial_symtab): Add parameters to
10973 constructor. Don't inline.
10974 (allocate_psymtab): Don't declare.
10975 * mdebugread.c (new_psymtab): Use new.
10976 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10977 * dbxread.c (dbx_end_psymtab): Use new.
10978
10979 2020-01-26 Tom Tromey <tom@tromey.com>
10980
10981 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10982 allocate_psymtab. Update documentation.
10983 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10984 allocate_psymtab. Do not use new.
10985 (allocate_psymtab): Use new. Update.
10986
10987 2020-01-26 Tom Tromey <tom@tromey.com>
10988
10989 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10990 * psymtab.c (psym_print_stats): Update.
10991 * psympriv.h (struct partial_symtab) <readin,
10992 psymtabs_addrmap_supported, anonymous>: Now bool.
10993 * mdebugread.c (psymtab_to_symtab_1): Update.
10994 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10995 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10996 (process_full_comp_unit, process_full_type_unit): Update.
10997 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10998 * ctfread.c (psymtab_to_symtab): Update.
10999
11000 2020-01-26 Tom Tromey <tom@tromey.com>
11001
11002 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11003 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11004 * psymtab.c (psymtab_storage): Delete psymtabs.
11005 (psymtab_storage::allocate_psymtab): Use new.
11006 (psymtab_storage::discard_psymtab): Use delete.
11007 * psympriv.h (struct partial_symtab): Add constructor and
11008 initializers.
11009
11010 2020-01-26 Tom Tromey <tom@tromey.com>
11011
11012 * machoread.c: Do not include psympriv.h.
11013
11014 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11015
11016 * NEWS: Mention the new option and the set/show commands.
11017
11018 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11019
11020 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11021 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11022 (validate_exec_file): New variables, enums, functions.
11023 (exec_file_locate_attach, print_section_info): Style the filenames.
11024 (_initialize_exec): Install show_exec_file_mismatch_command and
11025 set_exec_file_mismatch_command.
11026 * gdbcore.h (validate_exec_file): Declare.
11027 * infcmd.c (attach_command): Call validate_exec_file.
11028 * remote.c ( remote_target::remote_add_inferior): Likewise.
11029
11030 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11031
11032 * frame.c (find_frame_sal): Move call to get_next_frame into more
11033 inner scope.
11034 * inline-frame.c (inilne_state) <inline_state>: Update argument
11035 types.
11036 (inilne_state) <skipped_symbol>: Rename to...
11037 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11038 (skip_inline_frames): Build vector of skipped symbols and use this
11039 to reate the inline_state.
11040 (inline_skipped_symbol): Add a comment and some assertions, fetch
11041 skipped symbol from the list.
11042
11043 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11044
11045 * buildsym.c (lte_is_less_than): Delete.
11046 (buildsym_compunit::end_symtab_with_blockvector): Create local
11047 lambda function to sort line table entries, and use
11048 std::stable_sort instead of std::sort.
11049 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11050 markers when looking for a previous line.
11051
11052 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11053
11054 * dwarf2read.c (lnp_state_machine::record_line): Include
11055 end_sequence parameter in debug print out. Record the line if we
11056 are at an end_sequence marker even if it's not the start of a
11057 statement.
11058 * symmisc.c (maintenance_print_one_line_table): Print end of
11059 sequence markers with 'END' not '0'.
11060
11061 2020-01-24 Pedro Alves <palves@redhat.com>
11062
11063 PR gdb/25410
11064 * thread.c (scoped_restore_current_thread::restore): Use
11065 switch_to_inferior_no_thread.
11066 * exec.c: Include "progspace-and-thread.h".
11067 (add_target_sections, remove_target_sections):
11068 scoped_restore_current_pspace_and_thread instead of
11069 scoped_restore_current_thread.
11070 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11071 and aspace to the inferior before calling clone_program_space.
11072 Remove stale comment.
11073
11074 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11075
11076 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11077 (arm_netbsd_nat_target::fetch_registers): ...this.
11078 (arm_nbsd_nat_target::store_registers): Rename to...
11079 (arm_netbsd_nat_target::store_registers): ...this.
11080
11081 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11082
11083 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11084 register_t.
11085
11086 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11087
11088 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11089 Update comment.
11090 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11091 Likewise.
11092 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11093 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11094 the correct replacement (iterate_over_regset_sections).
11095 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11096 Update comment.
11097
11098 2020-01-24 Graham Markall <graham.markall@embecosm.com>
11099
11100 PR gdb/23718
11101 * gdb/python/python.c (execute_gdb_command): Call
11102 async_enable_stdin in catch block.
11103
11104 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11105
11106 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11107 SWITCH_THRU_ALL_UIS.
11108
11109 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11110
11111 PR tui/9765
11112 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11113 comment, add extra parameter, and update to store previous symbol
11114 when appropriate.
11115 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11116 add extra parameter.
11117 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11118 remove unneeded parameter, add try/catch around gdb_print_insn,
11119 rewrite to add items to asm_lines vector.
11120 (tui_find_backward_disassembly_start_address): New function.
11121 (tui_find_disassembly_address): Updated throughout.
11122 (tui_disasm_window::set_contents): Update for changes to
11123 tui_disassemble.
11124 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11125 number of lines to scroll.
11126
11127 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11128
11129 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11130 (SECT_OFF_DATA): Likewise.
11131 (SECT_OFF_RODATA): Likewise.
11132 (SECT_OFF_TEXT): Likewise.
11133 (SECT_OFF_BSS): Likewise.
11134 (struct objfile) <text_section_offset, data_section_offset>: New
11135 methods.
11136 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11137 objfile::text_section_offset.
11138 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11139 * coffread.c (coff_symtab_read): Likewise.
11140 (enter_linenos): Likewise.
11141 (process_coff_symbol): Likewise.
11142 * ctfread.c (get_objfile_text_range): Likewise.
11143 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11144 Use objfile::data_section_offset.
11145 * dwarf2-frame.c (execute_cfa_program): Use
11146 objfile::text_section_offset.
11147 (dwarf2_frame_find_fde): Likewise.
11148 * dwarf2read.c (create_addrmap_from_index): Likewise.
11149 (create_addrmap_from_aranges): Likewise.
11150 (dw2_find_pc_sect_compunit_symtab): Likewise.
11151 (process_psymtab_comp_unit_reader): Likewise.
11152 (add_partial_symbol): Likewise.
11153 (add_partial_subprogram): Likewise.
11154 (process_full_comp_unit): Likewise.
11155 (read_file_scope): Likewise.
11156 (read_func_scope): Likewise.
11157 (read_lexical_block_scope): Likewise.
11158 (read_call_site_scope): Likewise.
11159 (dwarf2_rnglists_process): Likewise.
11160 (dwarf2_ranges_process): Likewise.
11161 (dwarf2_ranges_read): Likewise.
11162 (dwarf_decode_lines_1): Likewise.
11163 (new_symbol): Likewise.
11164 (dwarf2_fetch_die_loc_sect_off): Likewise.
11165 (dwarf2_per_cu_text_offset): Likewise.
11166 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11167 * hppa-tdep.c (read_unwind_info): Likewise.
11168 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11169 * psympriv.h (struct partial_symtab): Likewise.
11170 * psymtab.c (find_pc_sect_psymtab): Likewise.
11171 * solib-svr4.c (enable_break): Likewise.
11172 * stap-probe.c (relocate_address): Use
11173 objfile::data_section_offset.
11174 * xcoffread.c (enter_line_range): Use
11175 objfile::text_section_offset.
11176 (read_xcoff_symtab): Likewise.
11177
11178 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11179
11180 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11181 declaration to narrower scopes.
11182
11183 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11184
11185 * darwin-nat.h (struct darwin_exception_msg, enum
11186 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11187 Move up.
11188 (class darwin_nat_target) <wait_1, check_new_threads,
11189 decode_exception_message, decode_message, stop_inferior,
11190 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11191 * darwin-nat.c (darwin_check_new_threads): Rename to...
11192 (darwin_nat_target::check_new_threads): ... this.
11193 (darwin_suspend_inferior_it): Remove.
11194 (darwin_decode_exception_message): Rename to...
11195 (darwin_nat_target::decode_exception_message): ... this.
11196 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11197 (darwin_decode_message): Rename to...
11198 (darwin_nat_target::decode_message): ... this.
11199 (cancel_breakpoint): Rename to...
11200 (darwin_nat_target::cancel_breakpoint): ... this.
11201 (darwin_wait): Rename to...
11202 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11203 instead of iterate_over_inferiors.
11204 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11205 (darwin_stop_inferior): Rename to...
11206 (darwin_nat_target::stop_inferior): ... this.
11207 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11208 (darwin_init_thread_list): Rename to...
11209 (darwin_nat_target::init_thread_list): ... this.
11210 (darwin_ptrace_him): Rename to...
11211 (darwin_nat_target::ptrace_him): ... this.
11212 (darwin_nat_target::create_inferior): Pass lambda function to
11213 fork_inferior.
11214 (darwin_nat_target::detach): Call stop_inferior instead of
11215 darwin_stop_inferior.
11216 * fork-inferior.h (fork_inferior): Change init_trace_fun
11217 parameter to gdb::function_view.
11218 * fork-inferior.c (fork_inferior): Likewise.
11219
11220 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
11221
11222 * i386-cygwin-tdep.c (core_process_module_section): Update.
11223 * windows-nat.c (struct lm_info_windows): Add text_offset.
11224 (windows_xfer_shared_libraries): Update.
11225 * windows-tdep.c (windows_xfer_shared_library):
11226 Add text_offset_cached argument.
11227 * windows-tdep.h (windows_xfer_shared_library): Update.
11228
11229 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11230
11231 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11232
11233 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11234
11235 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11236 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11237 replace with range-based for.
11238 (gdbsim_interrupt_inferior): Remove.
11239 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11240 with a range-based for. Inline code from
11241 gdbsim_interrupt_inferior.
11242
11243 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11244
11245 * infrun.c (proceed): Fix indentation.
11246
11247 2020-01-21 Tom Tromey <tromey@adacore.com>
11248
11249 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11250 * python/python.c (python_extension_ops): Update.
11251 (gdbpy_colorize): New function.
11252 * python/lib/gdb/__init__.py (colorize): New function.
11253 * extension.h (ext_lang_colorize): Declare.
11254 * extension.c (ext_lang_colorize): New function.
11255 * extension-priv.h (struct extension_language_ops) <colorize>: New
11256 member.
11257 * cli/cli-style.c (_initialize_cli_style): Update help text.
11258
11259 2020-01-21 Luis Machado <luis.machado@linaro.org>
11260
11261 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11262 <cond>: Change type to bool.
11263 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11264 (aarch64_displaced_step_cb): Likewise.
11265 (aarch64_displaced_step_tb): Likewise.
11266
11267 2020-01-21 Luis Machado <luis.machado@linaro.org>
11268
11269 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11270 output.
11271
11272 2020-01-21 Luis Machado <luis.machado@linaro.org>
11273
11274 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11275 <pc_adjust>: Adjust the documentation.
11276 (aarch64_displaced_step_fixup): Check if PC really moved before
11277 adjusting it.
11278
11279 2020-01-19 Tom Tromey <tom@tromey.com>
11280
11281 * disasm.c (~gdb_disassembler): New destructor.
11282 (gdb_buffered_insn_length): Call disassemble_free_target.
11283 * disasm.h (class gdb_disassembler): Declare destructor. Use
11284 DISABLE_COPY_AND_ASSIGN.
11285
11286 2020-01-19 Tom Tromey <tom@tromey.com>
11287
11288 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11289 (die_reader_func_ftype): Remove.
11290 (cutu_reader): New class.
11291 (dw2_get_file_names_reader): Remove "data" parameter.
11292 (dw2_get_file_names): Use cutu_reader.
11293 (create_debug_type_hash_table): Update.
11294 (read_cutu_die_from_dwo): Update comment.
11295 (lookup_dwo_unit): Add dwo_name parameter.
11296 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11297 die_reader_func_ftype and data parameters.
11298 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11299 Remove die_reader_func_ftype and data parameters.
11300 (~cutu_reader): New; from init_cutu_and_read_dies.
11301 (cutu_reader::cutu_reader): Rename from
11302 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11303 and data parameters.
11304 (init_cutu_and_read_dies_simple): Remove.
11305 (struct process_psymtab_comp_unit_data): Remove.
11306 (process_psymtab_comp_unit_reader): Remove data parameter; add
11307 want_partial_unit and pretend_language parameters.
11308 (process_psymtab_comp_unit): Use cutu_reader.
11309 (build_type_psymtabs_reader): Remove data parameter.
11310 (build_type_psymtabs_1): Use cutu_reader.
11311 (process_skeletonless_type_unit): Likewise.
11312 (load_partial_comp_unit_reader): Remove.
11313 (load_partial_comp_unit): Use cutu_reader.
11314 (load_full_comp_unit_reader): Remove.
11315 (load_full_comp_unit): Use cutu_reader.
11316 (struct create_dwo_cu_data): Remove.
11317 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11318 dwo_unit parameters.
11319 (create_cus_hash_table): Use cutu_reader.
11320 (struct dwarf2_read_addr_index_data): Remove.
11321 (dwarf2_read_addr_index_reader): Remove.
11322 (dwarf2_read_addr_index): Use cutu_reader.
11323 (read_signatured_type_reader): Remove.
11324 (read_signatured_type): Use cutu_reader.
11325
11326 2020-01-19 Tom Tromey <tom@tromey.com>
11327
11328 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11329 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11330 (tui_wrefresh): Declare.
11331 * tui/tui-wingeneral.c (suppress_output): New global.
11332 (tui_suppress_output, ~tui_suppress_output): New constructor and
11333 destructor.
11334 (tui_wrefresh): New function.
11335 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11336 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11337 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11338 method.
11339 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11340 tui_wrefresh.
11341 (tui_data_window::no_refresh): New method.
11342 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11343 (tui_reg_command): Use tui_suppress_output
11344 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11345 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11346 method.
11347 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11348
11349 2020-01-19 Tom Tromey <tom@tromey.com>
11350
11351 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11352 Handle case where symtab is null.
11353
11354 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11355
11356 * linux-fork.c (one_fork_p): Simplify.
11357
11358 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11359
11360 * top.c (struct qt_args): Remove.
11361 (kill_or_detach): Change return type to void, replace `void *`
11362 parameter with a proper one.
11363 (print_inferior_quit_action): Likewise.
11364 (quit_confirm): Use range-based for loop to iterate over inferiors.
11365 (quit_force): Likewise.
11366
11367 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11368
11369 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11370 `void *` parameter with proper parameters.
11371 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11372 (print_one_inferior): Change return type to void, replace `void *`
11373 parameter with proper parameters.
11374 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11375 inferiors.
11376 (get_other_inferior): Remove.
11377 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11378 inferiors.
11379
11380 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11381
11382 * mi/mi-interp.c (report_initial_inferior): Remove.
11383 (mi_interp::init): Use range-based for to iterate over inferiors.
11384
11385 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11386
11387 * python/py-inferior.c (build_inferior_list): Remove.
11388 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11389
11390 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11391
11392 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11393 (btrace_stitch_trace): Likewise.
11394 * charset.c (intermediate_encoding): Likewise (vaild).
11395 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11396 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11397 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11398
11399 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11400
11401 * windows-tdep.c (windows_get_tlb_type):
11402 Add rtl_user_process_parameters type.
11403
11404 2020-01-16 Pedro Alves <palves@redhat.com>
11405 Norbert Lange <nolange79@gmail.com>
11406
11407 PR build/24805
11408 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11409 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11410 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11411 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11412 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11413 (ps_plog): Redeclare exported functions with default visibility.
11414
11415 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11416
11417 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11418 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11419
11420 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11421
11422 * infcmd.c (post_create_inferior): Use get_thread_regcache
11423 instead of get_current_regcache.
11424
11425 2020-01-14 Tom Tromey <tom@tromey.com>
11426
11427 PR symtab/12535:
11428 * python/python.c (gdbpy_decode_line): Treat empty string the same
11429 as no argument.
11430
11431 2020-01-14 Tom Tromey <tom@tromey.com>
11432
11433 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11434
11435 2020-01-14 Tom Tromey <tom@tromey.com>
11436
11437 * nat/linux-btrace.c: Don't include <config.h>.
11438 * nat/linux-ptrace.c: Don't include <config.h>.
11439 * nat/x86-linux-dregs.c: Don't include <config.h>.
11440
11441 2020-01-14 Tom Tromey <tom@tromey.com>
11442
11443 * configure: Rebuild.
11444 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11445
11446 2020-01-14 Tom Tromey <tom@tromey.com>
11447
11448 * nat/x86-linux-dregs.c: Include configh.h.
11449 * nat/linux-ptrace.c: Include configh.h.
11450 * nat/linux-btrace.c: Include configh.h.
11451 * defs.h: Include config.h, bfd.h.
11452 * configure.ac: Don't source common.host.
11453 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11454 * configure: Rebuild.
11455 * acinclude.m4: Update path.
11456 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11457 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11458 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11459 (CLIBS): Add LIBSUPPORT.
11460 (CDEPS): Likewise.
11461 (COMMON_SFILES): Remove gdbsupport files.
11462 (HFILES_NO_SRCDIR): Likewise.
11463 (stamp-version): Update path to create-version.sh.
11464 (ALLDEPFILES): Remove gdbsupport files.
11465
11466 2020-01-14 Tom Tromey <tom@tromey.com>
11467
11468 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11469 USE_WIN32API when needed.
11470 * configure.ac (USE_WIN32API): Don't define.
11471 (WIN32LIBS): Use WIN32APILIBS.
11472 * configure: Rebuild.
11473
11474 2020-01-14 Tom Tromey <tom@tromey.com>
11475
11476 * configure: Rebuild.
11477 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11478
11479 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11480
11481 * skip.c (skip_function_command): Make skip w/o arguments use the
11482 name of the inlined function if pc is inside any inlined function.
11483
11484 2020-01-14 Luis Machado <luis.machado@linaro.org>
11485
11486 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11487 * infrun.c (resume_1): Likewise.
11488 (handle_inferior_event): Remove stale comment.
11489 * linux-nat.c (linux_nat_target::resume): Update comments.
11490 (save_stop_reason): Likewise.
11491 (linux_nat_filter_event): Likewise.
11492 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11493
11494 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11495
11496 * elfread.c (record_minimal_symbol): Set section index to 0 for
11497 non-allocatable sections.
11498
11499
11500 2020-01-13 Ali Tamur <tamur@google.com>
11501
11502 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11503 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11504 to gdb::optional. Update comments.
11505 (dwo_file): Update comments.
11506 (read_attribute): Update API to take an additional out parameter,
11507 need_reprocess. This is used to mark attributes that need other
11508 attributes (e.g. str_offsets_base) for correct computation which may not
11509 have been read yet.
11510 (read_attribute_reprocess): New function declaration.
11511 (read_addr_index): Likewise.
11512 (read_dwo_str_index): Likewise.
11513 (read_stub_str_index): Likewise.
11514 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11515 (lookup_addr_base): New function definition.
11516 (lookup_ranges_base): Likewise.
11517 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11518 lookup_ranges_base.
11519 (init_cutu_and_read_dies): Update comments.
11520 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11521 unit. This is used to inherit parent's str_offsets_base and addr_base.
11522 Update comments.
11523 (init_cutu_and_read_dies_simple): Reflect API changes.
11524 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11525 (create_cus_hash_table): Change API to take parent compile unit.
11526 Reflect API changes.
11527 (open_and_init_dwo_file): Reflect API changes.
11528 (dwarf2_get_pc_bounds): Update comments.
11529 (dwarf2_record_block_ranges): Likewise.
11530 (read_full_die_1): Change implementation to reprocess attributes that
11531 need str_offsets_base and addr_base.
11532 (partial_die_info::read): Likewise.
11533 (read_attribute_reprocess): New function definition.
11534 (read_attribute_value): Change API to take an additional out parameter,
11535 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11536 when a non-dwo compile unit has index based attributes.
11537 (read_attribute): Reflect API changes.
11538 (read_addr_index_1): Reflect API changes. Update comments.
11539 (dwarf2_read_addr_index_data): Reflect API changes.
11540 (dwarf2_read_addr_index): Likewise.
11541 (read_str_index): Change API and implementation. This becomes a helper
11542 to be used by the new string index related methods. Update error
11543 message and comments.
11544 (read_dwo_str_index): New function definition.
11545 (read_stub_str_index): Likewise.
11546 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11547 * symfile.h (dwarf2_debug_sections): Likewise.
11548 * xcoffread.c (dwarf2_debug_sections): Likewise.
11549
11550 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11551
11552 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11553 core_reg_sect type to gdb_byte *.
11554 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11555 * cris-tdep.c (fetch_core_registers): Likewise.
11556 * corelow.c (core_target::get_core_register_section): Change
11557 type of `contents` to gdb::byte_vector.
11558
11559 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11560
11561 * tui/tui-wingeneral.c (box_win): Position the title in the center
11562 of the border.
11563
11564 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11565
11566 * corelow.c (core_target::get_core_register_section): Use
11567 std::vector instead of alloca.
11568
11569 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11570
11571 * warning.m4: Add -Wmissing-declarations to build_warnings.
11572 * configure: Re-generate.
11573
11574 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11575
11576 * python/python.c (init__gdb_module): Add declaration.
11577
11578 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11579
11580 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11581 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11582 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11583 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11584 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11585 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11586 * ada-exp.y (_initialize_ada_exp): Add declaration.
11587 * ada-lang.c (_initialize_ada_language): Add declaration.
11588 * ada-tasks.c (_initialize_tasks): Add declaration.
11589 * agent.c (_initialize_agent): Add declaration.
11590 * aix-thread.c (_initialize_aix_thread): Add declaration.
11591 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11592 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11593 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11594 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11595 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11596 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11597 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11598 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11599 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11600 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11601 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11602 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11603 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11604 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11605 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11606 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11607 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11608 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11609 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11610 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11611 * annotate.c (_initialize_annotate): Add declaration.
11612 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11613 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11614 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11615 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11616 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11617 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11618 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11619 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11620 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11621 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11622 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11623 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11624 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11625 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11626 * auto-load.c (_initialize_auto_load): Add declaration.
11627 * auxv.c (_initialize_auxv): Add declaration.
11628 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11629 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11630 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11631 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11632 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11633 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11634 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11635 * breakpoint.c (_initialize_breakpoint): Add declaration.
11636 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11637 * btrace.c (_initialize_btrace): Add declaration.
11638 * charset.c (_initialize_charset): Add declaration.
11639 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11640 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11641 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11642 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11643 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11644 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11645 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11646 * coffread.c (_initialize_coffread): Add declaration.
11647 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11648 * compile/compile.c (_initialize_compile): Add declaration.
11649 * complaints.c (_initialize_complaints): Add declaration.
11650 * completer.c (_initialize_completer): Add declaration.
11651 * copying.c (_initialize_copying): Add declaration.
11652 * corefile.c (_initialize_core): Add declaration.
11653 * corelow.c (_initialize_corelow): Add declaration.
11654 * cp-abi.c (_initialize_cp_abi): Add declaration.
11655 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11656 * cp-support.c (_initialize_cp_support): Add declaration.
11657 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11658 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11659 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11660 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11661 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11662 * ctfread.c (_initialize_ctfread): Add declaration.
11663 * d-lang.c (_initialize_d_language): Add declaration.
11664 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11665 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11666 * dbxread.c (_initialize_dbxread): Add declaration.
11667 * dcache.c (_initialize_dcache): Add declaration.
11668 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11669 * disasm.c (_initialize_disasm): Add declaration.
11670 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11671 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11672 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11673 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11674 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11675 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11676 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11677 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11678 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11679 * elfread.c (_initialize_elfread): Add declaration.
11680 * exec.c (_initialize_exec): Add declaration.
11681 * extension.c (_initialize_extension): Add declaration.
11682 * f-lang.c (_initialize_f_language): Add declaration.
11683 * f-valprint.c (_initialize_f_valprint): Add declaration.
11684 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11685 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11686 * filesystem.c (_initialize_filesystem): Add declaration.
11687 * findcmd.c (_initialize_mem_search): Add declaration.
11688 * findvar.c (_initialize_findvar): Add declaration.
11689 * fork-child.c (_initialize_fork_child): Add declaration.
11690 * frame-base.c (_initialize_frame_base): Add declaration.
11691 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11692 * frame.c (_initialize_frame): Add declaration.
11693 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11694 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11695 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11696 * gcore.c (_initialize_gcore): Add declaration.
11697 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11698 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11699 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11700 * gdbarch.c (_initialize_gdbarch): Add declaration.
11701 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11702 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11703 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11704 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11705 * go-lang.c (_initialize_go_language): Add declaration.
11706 * go32-nat.c (_initialize_go32_nat): Add declaration.
11707 * guile/guile.c (_initialize_guile): Add declaration.
11708 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11709 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11710 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11711 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11712 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11713 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11714 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11715 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11716 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11717 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11718 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11719 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11720 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11721 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11722 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11723 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11724 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11725 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11726 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11727 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11728 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11729 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11730 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11731 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11732 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11733 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11734 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11735 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11736 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11737 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11738 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11739 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11740 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11741 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11742 * infcall.c (_initialize_infcall): Add declaration.
11743 * infcmd.c (_initialize_infcmd): Add declaration.
11744 * inflow.c (_initialize_inflow): Add declaration.
11745 * infrun.c (_initialize_infrun): Add declaration.
11746 * interps.c (_initialize_interpreter): Add declaration.
11747 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11748 * jit.c (_initialize_jit): Add declaration.
11749 * language.c (_initialize_language): Add declaration.
11750 * linux-fork.c (_initialize_linux_fork): Add declaration.
11751 * linux-nat.c (_initialize_linux_nat): Add declaration.
11752 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11753 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11754 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11755 * m2-lang.c (_initialize_m2_language): Add declaration.
11756 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11757 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11758 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11759 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11760 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11761 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11762 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11763 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11764 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11765 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11766 * machoread.c (_initialize_machoread): Add declaration.
11767 * macrocmd.c (_initialize_macrocmd): Add declaration.
11768 * macroscope.c (_initialize_macroscope): Add declaration.
11769 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11770 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11771 * maint.c (_initialize_maint_cmds): Add declaration.
11772 * mdebugread.c (_initialize_mdebugread): Add declaration.
11773 * memattr.c (_initialize_mem): Add declaration.
11774 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11775 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11776 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11777 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11778 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11779 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11780 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11781 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11782 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11783 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11784 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11785 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11786 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11787 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11788 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11789 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11790 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11791 * mipsread.c (_initialize_mipsread): Add declaration.
11792 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11793 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11794 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11795 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11796 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11797 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11798 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11799 * nto-procfs.c (_initialize_procfs): Add declaration.
11800 * objc-lang.c (_initialize_objc_language): Add declaration.
11801 * observable.c (_initialize_observer): Add declaration.
11802 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11803 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11804 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11805 * osabi.c (_initialize_gdb_osabi): Add declaration.
11806 * osdata.c (_initialize_osdata): Add declaration.
11807 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11808 * parse.c (_initialize_parse): Add declaration.
11809 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11810 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11811 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11812 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11813 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11814 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11815 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11816 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11817 * printcmd.c (_initialize_printcmd): Add declaration.
11818 * probe.c (_initialize_probe): Add declaration.
11819 * proc-api.c (_initialize_proc_api): Add declaration.
11820 * proc-events.c (_initialize_proc_events): Add declaration.
11821 * proc-service.c (_initialize_proc_service): Add declaration.
11822 * procfs.c (_initialize_procfs): Add declaration.
11823 * producer.c (_initialize_producer): Add declaration.
11824 * psymtab.c (_initialize_psymtab): Add declaration.
11825 * python/python.c (_initialize_python): Add declaration.
11826 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11827 * record-btrace.c (_initialize_record_btrace): Add declaration.
11828 * record-full.c (_initialize_record_full): Add declaration.
11829 * record.c (_initialize_record): Add declaration.
11830 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11831 * regcache.c (_initialize_regcache): Add declaration.
11832 * reggroups.c (_initialize_reggroup): Add declaration.
11833 * remote-notif.c (_initialize_notif): Add declaration.
11834 * remote-sim.c (_initialize_remote_sim): Add declaration.
11835 * remote.c (_initialize_remote): Add declaration.
11836 * reverse.c (_initialize_reverse): Add declaration.
11837 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11838 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11839 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11840 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11841 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11842 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11843 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11844 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11845 Add declaration.
11846 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11847 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11848 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11849 * rust-exp.y (_initialize_rust_exp): Add declaration.
11850 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11851 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11852 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11853 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11854 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11855 * score-tdep.c (_initialize_score_tdep): Add declaration.
11856 * ser-go32.c (_initialize_ser_dos): Add declaration.
11857 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11858 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11859 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11860 * ser-uds.c (_initialize_ser_socket): Add declaration.
11861 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11862 * serial.c (_initialize_serial): Add declaration.
11863 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11864 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11865 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11866 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11867 * skip.c (_initialize_step_skip): Add declaration.
11868 * sol-thread.c (_initialize_sol_thread): Add declaration.
11869 * solib-aix.c (_initialize_solib_aix): Add declaration.
11870 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11871 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11872 * solib-frv.c (_initialize_frv_solib): Add declaration.
11873 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11874 * solib-target.c (_initialize_solib_target): Add declaration.
11875 * solib.c (_initialize_solib): Add declaration.
11876 * source-cache.c (_initialize_source_cache): Add declaration.
11877 * source.c (_initialize_source): Add declaration.
11878 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11879 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11880 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11881 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11882 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11883 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11884 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11885 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11886 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11887 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11888 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11889 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11890 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11891 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11892 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11893 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11894 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11895 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11896 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11897 * stabsread.c (_initialize_stabsread): Add declaration.
11898 * stack.c (_initialize_stack): Add declaration.
11899 * stap-probe.c (_initialize_stap_probe): Add declaration.
11900 * std-regs.c (_initialize_frame_reg): Add declaration.
11901 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11902 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11903 * symfile.c (_initialize_symfile): Add declaration.
11904 * symmisc.c (_initialize_symmisc): Add declaration.
11905 * symtab.c (_initialize_symtab): Add declaration.
11906 * target.c (_initialize_target): Add declaration.
11907 * target-connection.c (_initialize_target_connection): Add
11908 declaration.
11909 * target-dcache.c (_initialize_target_dcache): Add declaration.
11910 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11911 * thread.c (_initialize_thread): Add declaration.
11912 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11913 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11914 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11915 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11916 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11917 * tracectf.c (_initialize_ctf): Add declaration.
11918 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11919 * tracefile.c (_initialize_tracefile): Add declaration.
11920 * tracepoint.c (_initialize_tracepoint): Add declaration.
11921 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11922 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11923 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11924 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11925 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11926 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11927 * tui/tui.c (_initialize_tui): Add declaration.
11928 * typeprint.c (_initialize_typeprint): Add declaration.
11929 * ui-style.c (_initialize_ui_style): Add declaration.
11930 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11931 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11932 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11933 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11934 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11935 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11936 * unittests/filtered_iterator-selftests.c
11937 (_initialize_filtered_iterator_selftests): Add declaration.
11938 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11939 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11940 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11941 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11942 * unittests/main-thread-selftests.c
11943 (_initialize_main_thread_selftests): Add declaration.
11944 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11945 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11946 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11947 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11948 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11949 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11950 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11951 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11952 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11953 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11954 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11955 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11956 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11957 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11958 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11959 declaration.
11960 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11961 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11962 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11963 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11964 * user-regs.c (_initialize_user_regs): Add declaration.
11965 * utils.c (_initialize_utils): Add declaration.
11966 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11967 * valops.c (_initialize_valops): Add declaration.
11968 * valprint.c (_initialize_valprint): Add declaration.
11969 * value.c (_initialize_values): Add declaration.
11970 * varobj.c (_initialize_varobj): Add declaration.
11971 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11972 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11973 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11974 * windows-nat.c (_initialize_windows_nat): Add declaration.
11975 (_initialize_check_for_gdb_ini): Add declaration.
11976 (_initialize_loadable): Add declaration.
11977 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11978 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11979 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11980 * xcoffread.c (_initialize_xcoffread): Add declaration.
11981 * xml-support.c (_initialize_xml_support): Add declaration.
11982 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11983 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11984 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11985 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11986
11987 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11988
11989 * regformats/regdat.sh: Generate declaration for init function.
11990
11991 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11992
11993 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11994 up.
11995 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11996 close_one_inferior>: New methods.
11997 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11998 pass down target to find_inferior_pid.
11999 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12000 Pass down target to find_inferior_ptid.
12001 (gdbsim_target::create_inferior): Pass down target to
12002 add_thread_silent.
12003 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12004 target down to find_inferior_ptid and switch_to_thread.
12005 (gdbsim_target::close): Update to call close_one_inferior.
12006 (struct resume_data): Remove.
12007 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12008 directly, rather than through a void pointer.
12009 (gdbsim_target::resume): Update to call resume_one_inferior.
12010
12011 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12012
12013 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12014
12015 2020-01-12 Pedro Alves <palves@redhat.com>
12016
12017 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12018 directly for the current inferior instead of
12019 discard_all_inferiors.
12020 (discard_all_inferiors): Delete.
12021
12022 2020-01-11 Tom Tromey <tom@tromey.com>
12023
12024 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12025 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12026 deprecated_safe_get_selected_frame.
12027
12028 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12029
12030 * inferior.c (print_inferior): Switch inferior before printing it.
12031
12032 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12033 Pedro Alves <palves@redhat.com>
12034
12035 * progspace-and-thread.c (switch_to_program_space_and_thread):
12036 Assert there's an inferior for PSPACE. Use
12037 switch_to_inferior_no_thread to switch the inferior too.
12038 * progspace.c (program_space::~program_space): Call
12039 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12040 (program_space::free_all_objfiles): Don't call clear_symtab_users
12041 here.
12042 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12043
12044 2020-01-10 Pedro Alves <palves@redhat.com>
12045
12046 * NEWS: Mention multi-target debugging, "info connections", and
12047 "add-inferior -no-connection".
12048
12049 2020-01-10 Pedro Alves <palves@redhat.com>
12050
12051 * infrun.c: Include "target-connection.h".
12052 (check_multi_target_resumption): New.
12053 (proceed): Call it.
12054 * target-connection.c (make_target_connection_string): Make
12055 extern.
12056 * target-connection.h (make_target_connection_string): Declare.
12057
12058 2020-01-10 Pedro Alves <palves@redhat.com>
12059
12060 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12061 * inferior.c (uiout_field_connection): New function.
12062 (print_inferior): Add new "connection-id" column.
12063 (add_inferior_command): Show connection number/string of added
12064 inferior.
12065 * process-stratum-target.h
12066 (process_stratum_target::connection_string): New virtual method.
12067 (process_stratum_target::connection_number): New field.
12068 * remote.c (remote_target::connection_string): New override.
12069 * target-connection.c: New file.
12070 * target-connection.h: New file.
12071 * target.c (decref_target): Remove process_stratum targets from
12072 the connection list.
12073 (target_stack::push): Add process_stratum targets to the
12074 connection list.
12075
12076 2020-01-10 Pedro Alves <palves@redhat.com>
12077
12078 Revert:
12079 2016-04-12 Pedro Alves <palves@redhat.com>
12080 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12081 Remove references to name.
12082 * serial.h (struct serial) <name>: Delete.
12083
12084 2020-01-10 Pedro Alves <palves@redhat.com>
12085
12086 * gdbarch-selftests.c (register_to_value_test): Remove "target
12087 already pushed" check.
12088
12089 2020-01-10 Pedro Alves <palves@redhat.com>
12090 John Baldwin <jhb@FreeBSD.org>
12091
12092 * aarch64-linux-nat.c
12093 (aarch64_linux_nat_target::thread_architecture): Adjust.
12094 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12095 (task_command_1): Likewise.
12096 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12097 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12098 (aix_thread_target::store_registers)
12099 (aix_thread_target::thread_alive): Adjust.
12100 * amd64-fbsd-tdep.c: Include "inferior.h".
12101 (amd64fbsd_get_thread_local_address): Pass down target.
12102 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12103 thread's gdbarch instead of target_gdbarch.
12104 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12105 get_last_target_status.
12106 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12107 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12108 inferiors.
12109 (update_inserted_breakpoint_locations): Skip if inferiors with no
12110 execution.
12111 (update_global_location_list): When handling moribund locations,
12112 find representative inferior for location's pspace, and use thread
12113 count of its process_stratum target.
12114 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12115 * bsd-uthread.c (bsd_uthread_target::wait): Use
12116 as_process_stratum_target and adjust thread_change_ptid and
12117 add_thread calls.
12118 (bsd_uthread_target::update_thread_list): Use
12119 as_process_stratum_target and adjust find_thread_ptid,
12120 thread_change_ptid and add_thread calls.
12121 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12122 find_thread_ptid call.
12123 * corelow.c (add_to_thread_list): Adjust add_thread call.
12124 (core_target_open): Adjust add_thread_silent and thread_count
12125 calls.
12126 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12127 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12128 * event-top.c (async_disconnect): Pop targets from all inferiors.
12129 * exec.c (add_target_sections): Push exec target on all inferiors
12130 sharing the program space.
12131 (remove_target_sections): Remove the exec target from all
12132 inferiors sharing the program space.
12133 (exec_on_vfork): New.
12134 * exec.h (exec_on_vfork): Declare.
12135 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12136 Pass it down.
12137 (fbsd_nat_target::update_thread_list): Adjust.
12138 (fbsd_nat_target::resume): Adjust.
12139 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12140 down.
12141 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12142 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12143 get_thread_arch_regcache call.
12144 * fork-child.c (gdb_startup_inferior): Pass target down to
12145 startup_inferior and set_executing.
12146 * gdbthread.h (struct process_stratum_target): Forward declare.
12147 (add_thread, add_thread_silent, add_thread_with_info)
12148 (in_thread_list): Add process_stratum_target parameter.
12149 (find_thread_ptid(inferior*, ptid_t)): New overload.
12150 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12151 parameter.
12152 (all_threads()): Delete overload.
12153 (all_threads, all_non_exited_threads): Add process_stratum_target
12154 parameter.
12155 (all_threads_safe): Use brace initialization.
12156 (thread_count): Add process_stratum_target parameter.
12157 (set_resumed, set_running, set_stop_requested, set_executing)
12158 (threads_are_executing, finish_thread_state): Add
12159 process_stratum_target parameter.
12160 (switch_to_thread): Use is_current_thread.
12161 * i386-fbsd-tdep.c: Include "inferior.h".
12162 (i386fbsd_get_thread_local_address): Pass down target.
12163 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12164 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12165 have_inferiors check.
12166 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12167 (inf_ptrace_target::attach): Adjust.
12168 * infcall.c (run_inferior_call): Adjust.
12169 * infcmd.c (run_command_1): Pass target to
12170 scoped_finish_thread_state.
12171 (proceed_thread_callback): Skip inferiors with no execution.
12172 (continue_command): Rename 'all_threads' local to avoid hiding
12173 'all_threads' function. Adjust get_last_target_status call.
12174 (prepare_one_step): Adjust set_running call.
12175 (signal_command): Use user_visible_resume_target. Compare thread
12176 pointers instead of inferior_ptid.
12177 (info_program_command): Adjust to pass down target.
12178 (attach_command): Mark target's 'thread_executing' flag.
12179 (stop_current_target_threads_ns): New, factored out from ...
12180 (interrupt_target_1): ... this. Switch inferior before making
12181 target calls.
12182 * inferior-iter.h
12183 (struct all_inferiors_iterator, struct all_inferiors_range)
12184 (struct all_inferiors_safe_range)
12185 (struct all_non_exited_inferiors_range): Filter on
12186 process_stratum_target too. Remove explicit.
12187 * inferior.c (inferior::inferior): Push dummy target on target
12188 stack.
12189 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12190 Add process_stratum_target parameter, and pass it down.
12191 (have_live_inferiors): Adjust.
12192 (switch_to_inferior_and_push_target): New.
12193 (add_inferior_command, clone_inferior_command): Handle
12194 "-no-connection" parameter. Use
12195 switch_to_inferior_and_push_target.
12196 (_initialize_inferior): Mention "-no-connection" option in
12197 the help of "add-inferior" and "clone-inferior" commands.
12198 * inferior.h: Include "process-stratum-target.h".
12199 (interrupt_target_1): Use bool.
12200 (struct inferior) <push_target, unpush_target, target_is_pushed,
12201 find_target_beneath, top_target, process_target, target_at,
12202 m_stack>: New.
12203 (discard_all_inferiors): Delete.
12204 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12205 (all_inferiors, all_non_exited_inferiors): Add
12206 process_stratum_target parameter.
12207 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12208 (target_last_proc_target): New global.
12209 (follow_fork_inferior): Push target on new inferior. Pass target
12210 to add_thread_silent. Call exec_on_vfork. Handle target's
12211 reference count.
12212 (follow_fork): Adjust get_last_target_status call. Also consider
12213 target.
12214 (follow_exec): Push target on new inferior.
12215 (struct execution_control_state) <target>: New field.
12216 (user_visible_resume_target): New.
12217 (do_target_resume): Call target_async.
12218 (resume_1): Set target's threads_executing flag. Consider resume
12219 target.
12220 (commit_resume_all_targets): New.
12221 (proceed): Also consider resume target. Skip threads of inferiors
12222 with no execution. Commit resumtion in all targets.
12223 (start_remote): Pass current inferior to wait_for_inferior.
12224 (infrun_thread_stop_requested): Consider target as well. Pass
12225 thread_info pointer to clear_inline_frame_state instead of ptid.
12226 (infrun_thread_thread_exit): Consider target as well.
12227 (random_pending_event_thread): New inferior parameter. Use it.
12228 (do_target_wait): Rename to ...
12229 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12230 down.
12231 (threads_are_resumed_pending_p, do_target_wait): New.
12232 (prepare_for_detach): Adjust calls.
12233 (wait_for_inferior): New inferior parameter. Handle it. Use
12234 do_target_wait_1 instead of do_target_wait.
12235 (fetch_inferior_event): Adjust. Switch to representative
12236 inferior. Pass target down.
12237 (set_last_target_status): Add process_stratum_target parameter.
12238 Save target in global.
12239 (get_last_target_status): Add process_stratum_target parameter and
12240 handle it.
12241 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12242 (context_switch): Check inferior_ptid == null_ptid before calling
12243 inferior_thread().
12244 (get_inferior_stop_soon): Pass down target.
12245 (wait_one): Rename to ...
12246 (poll_one_curr_target): ... this.
12247 (struct wait_one_event): New.
12248 (wait_one): New.
12249 (stop_all_threads): Adjust.
12250 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12251 event's target.
12252 (switch_back_to_stepped_thread): Also consider target.
12253 (print_stop_event): Update.
12254 (normal_stop): Update. Also consider the resume target.
12255 * infrun.h (wait_for_inferior): Remove declaration.
12256 (user_visible_resume_target): New declaration.
12257 (get_last_target_status, set_last_target_status): New
12258 process_stratum_target parameter.
12259 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12260 process_stratum_target parameter, and use it.
12261 (clear_inline_frame_state (thread_info*)): New.
12262 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12263 process_stratum_target parameter.
12264 (clear_inline_frame_state (thread_info*)): Declare.
12265 * linux-fork.c (delete_checkpoint_command): Pass target down to
12266 find_thread_ptid.
12267 (checkpoint_command): Adjust.
12268 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12269 instead of just tweaking inferior_ptid.
12270 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12271 (exit_lwp): Pass target down to find_thread_ptid.
12272 (attach_proc_task_lwp_callback): Pass target down to
12273 add_thread/set_running/set_executing.
12274 (linux_nat_target::attach): Pass target down to
12275 thread_change_ptid.
12276 (get_detach_signal): Pass target down to find_thread_ptid.
12277 Consider last target status's target.
12278 (linux_resume_one_lwp_throw, resume_lwp)
12279 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12280 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12281 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12282 (linux_nat_target::async_wait_fd): New.
12283 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12284 target down.
12285 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12286 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12287 * linux-thread-db.c (struct thread_db_info::process_target): New
12288 field.
12289 (add_thread_db_info): Save target.
12290 (get_thread_db_info): New process_stratum_target parameter. Also
12291 match target.
12292 (delete_thread_db_info): New process_stratum_target parameter.
12293 Also match target.
12294 (thread_from_lwp): Adjust to pass down target.
12295 (thread_db_notice_clone): Pass down target.
12296 (check_thread_db_callback): Pass down target.
12297 (try_thread_db_load_1): Always push the thread_db target.
12298 (try_thread_db_load, record_thread): Pass target down.
12299 (thread_db_target::detach): Pass target down. Always unpush the
12300 thread_db target.
12301 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12302 target down. Always unpush the thread_db target.
12303 (find_new_threads_callback, thread_db_find_new_threads_2)
12304 (thread_db_target::update_thread_list): Pass target down.
12305 (thread_db_target::pid_to_str): Pass current inferior down.
12306 (thread_db_target::get_thread_local_address): Pass target down.
12307 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12308 target down.
12309 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12310 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12311 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12312 (procfs_init_inferior): Rename to ...
12313 (procfs_target::procfs_init_inferior): ... this and adjust.
12314 (procfs_target::create_inferior, procfs_notice_thread)
12315 (procfs_do_thread_registers): Adjust.
12316 * ppc-fbsd-tdep.c: Include "inferior.h".
12317 (ppcfbsd_get_thread_local_address): Pass down target.
12318 * proc-service.c (ps_xfer_memory): Switch current inferior and
12319 program space as well.
12320 (get_ps_regcache): Pass target down.
12321 * process-stratum-target.c
12322 (process_stratum_target::thread_address_space)
12323 (process_stratum_target::thread_architecture): Pass target down.
12324 * process-stratum-target.h
12325 (process_stratum_target::threads_executing): New field.
12326 (as_process_stratum_target): New.
12327 * ravenscar-thread.c
12328 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12329 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12330 down.
12331 * record-btrace.c (record_btrace_target::info_record): Adjust.
12332 (record_btrace_target::record_method)
12333 (record_btrace_target::record_is_replaying)
12334 (record_btrace_target::fetch_registers)
12335 (get_thread_current_frame_id, record_btrace_target::resume)
12336 (record_btrace_target::wait, record_btrace_target::stop): Pass
12337 target down.
12338 * record-full.c (record_full_wait_1): Switch to event thread.
12339 Pass target down.
12340 * regcache.c (regcache::regcache)
12341 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12342 process_stratum_target parameter and handle it.
12343 (current_thread_target): New global.
12344 (get_thread_regcache): Add process_stratum_target parameter and
12345 handle it. Switch inferior before calling target method.
12346 (get_thread_regcache): Pass target down.
12347 (get_thread_regcache_for_ptid): Pass target down.
12348 (registers_changed_ptid): Add process_stratum_target parameter and
12349 handle it.
12350 (registers_changed_thread, registers_changed): Pass target down.
12351 (test_get_thread_arch_aspace_regcache): New.
12352 (current_regcache_test): Define a couple local test_target_ops
12353 instances and use them for testing.
12354 (readwrite_regcache): Pass process_stratum_target parameter.
12355 (cooked_read_test, cooked_write_test): Pass mock_target down.
12356 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12357 (get_thread_arch_aspace_regcache): Add process_stratum_target
12358 parameter.
12359 (regcache::target): New method.
12360 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12361 (regcache::registers_changed_ptid): Add process_stratum_target
12362 parameter.
12363 (regcache::m_target): New field.
12364 (registers_changed_ptid): Add process_stratum_target parameter.
12365 * remote.c (remote_state::supports_vCont_probed): New field.
12366 (remote_target::async_wait_fd): New method.
12367 (remote_unpush_and_throw): Add remote_target parameter.
12368 (get_current_remote_target): Adjust.
12369 (remote_target::remote_add_inferior): Push target.
12370 (remote_target::remote_add_thread)
12371 (remote_target::remote_notice_new_inferior)
12372 (get_remote_thread_info): Pass target down.
12373 (remote_target::update_thread_list): Skip threads of inferiors
12374 bound to other targets. (remote_target::close): Don't discard
12375 inferiors. (remote_target::add_current_inferior_and_thread)
12376 (remote_target::process_initial_stop_replies)
12377 (remote_target::start_remote)
12378 (remote_target::remote_serial_quit_handler): Pass down target.
12379 (remote_target::remote_unpush_target): New remote_target
12380 parameter. Unpush the target from all inferiors.
12381 (remote_target::remote_unpush_and_throw): New remote_target
12382 parameter. Pass it down.
12383 (remote_target::open_1): Check whether the current inferior has
12384 execution instead of checking whether any inferior is live. Pass
12385 target down.
12386 (remote_target::remote_detach_1): Pass down target. Use
12387 remote_unpush_target.
12388 (extended_remote_target::attach): Pass down target.
12389 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12390 (remote_target::append_resumption): Pass down target.
12391 (remote_target::append_pending_thread_resumptions)
12392 (remote_target::remote_resume_with_hc, remote_target::resume)
12393 (remote_target::commit_resume): Pass down target.
12394 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12395 (remote_target::interrupt_query)
12396 (remote_target::remove_new_fork_children)
12397 (remote_target::check_pending_events_prevent_wildcard_vcont)
12398 (remote_target::remote_parse_stop_reply)
12399 (remote_target::process_stop_reply): Pass down target.
12400 (first_remote_resumed_thread): New remote_target parameter. Pass
12401 it down.
12402 (remote_target::wait_as): Pass down target.
12403 (unpush_and_perror): New remote_target parameter. Pass it down.
12404 (remote_target::readchar, remote_target::remote_serial_write)
12405 (remote_target::getpkt_or_notif_sane_1)
12406 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12407 down target.
12408 (remote_target::mourn_inferior): Pass down target. Use
12409 remote_unpush_target.
12410 (remote_target::core_of_thread)
12411 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12412 (remote_target::pid_to_exec_file)
12413 (remote_target::thread_handle_to_thread_info): Pass down target.
12414 (remote_target::async_wait_fd): New.
12415 * riscv-fbsd-tdep.c: Include "inferior.h".
12416 (riscv_fbsd_get_thread_local_address): Pass down target.
12417 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12418 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12419 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12420 Adjust.
12421 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12422 * solib-svr4.c (enable_break): Pass down target.
12423 * spu-multiarch.c (parse_spufs_run): Pass down target.
12424 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12425 * target-delegates.c: Regenerate.
12426 * target.c (g_target_stack): Delete.
12427 (current_top_target): Return the current inferior's top target.
12428 (target_has_execution_1): Refer to the passed-in inferior's top
12429 target.
12430 (target_supports_terminal_ours): Check whether the initial
12431 inferior was already created.
12432 (decref_target): New.
12433 (target_stack::push): Incref/decref the target.
12434 (push_target, push_target, unpush_target): Adjust.
12435 (target_stack::unpush): Defref target.
12436 (target_is_pushed): Return bool. Adjust to refer to the current
12437 inferior's target stack.
12438 (dispose_inferior): Delete, and inline parts ...
12439 (target_preopen): ... here. Only dispose of the current inferior.
12440 (target_detach): Hold strong target reference while detaching.
12441 Pass target down.
12442 (target_thread_name): Add assertion.
12443 (target_resume): Pass down target.
12444 (target_ops::beneath, find_target_at): Adjust to refer to the
12445 current inferior's target stack.
12446 (get_dummy_target): New.
12447 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12448 has a thread running.
12449 (initialize_targets): Rename to ...
12450 (_initialize_target): ... this.
12451 * target.h: Include "gdbsupport/refcounted-object.h".
12452 (struct target_ops): Inherit refcounted_object.
12453 (target_ops::shortname, target_ops::longname): Make const.
12454 (target_ops::async_wait_fd): New method.
12455 (decref_target): Declare.
12456 (struct target_ops_ref_policy): New.
12457 (target_ops_ref): New typedef.
12458 (get_dummy_target): Declare function.
12459 (target_is_pushed): Return bool.
12460 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12461 (all_matching_threads_iterator::all_matching_threads_iterator):
12462 Handle filter target.
12463 * thread-iter.h (struct all_matching_threads_iterator, struct
12464 all_matching_threads_range, class all_non_exited_threads_range):
12465 Filter by target too. Remove explicit.
12466 * thread.c (threads_executing): Delete.
12467 (inferior_thread): Pass down current inferior.
12468 (clear_thread_inferior_resources): Pass down thread pointer
12469 instead of ptid_t.
12470 (add_thread_silent, add_thread_with_info, add_thread): Add
12471 process_stratum_target parameter. Use it for thread and inferior
12472 searches.
12473 (is_current_thread): New.
12474 (thread_info::deletable): Use it.
12475 (find_thread_ptid, thread_count, in_thread_list)
12476 (thread_change_ptid, set_resumed, set_running): New
12477 process_stratum_target parameter. Pass it down.
12478 (set_executing): New process_stratum_target parameter. Pass it
12479 down. Adjust reference to 'threads_executing'.
12480 (threads_are_executing): New process_stratum_target parameter.
12481 Adjust reference to 'threads_executing'.
12482 (set_stop_requested, finish_thread_state): New
12483 process_stratum_target parameter. Pass it down.
12484 (switch_to_thread): Also match inferior.
12485 (switch_to_thread): New process_stratum_target parameter. Pass it
12486 down.
12487 (update_threads_executing): Reimplement.
12488 * top.c (quit_force): Pop targets from all inferior.
12489 (gdb_init): Don't call initialize_targets.
12490 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12491 Declare.
12492 (windows_add_thread, windows_delete_thread): Adjust.
12493 (get_windows_debug_event): Rename to ...
12494 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12495 * tracefile-tfile.c (tfile_target_open): Pass down target.
12496 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12497 Forward declare.
12498 (switch_to_thread): Add process_stratum_target parameter.
12499 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12500 parameter. Use it.
12501 (mi_on_resume): Pass target down.
12502 * nat/fork-inferior.c (startup_inferior): Add
12503 process_stratum_target parameter. Pass it down.
12504 * nat/fork-inferior.h (startup_inferior): Add
12505 process_stratum_target parameter.
12506 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12507
12508 2020-01-10 Pedro Alves <palves@redhat.com>
12509
12510 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12511 directly. Instead find the first thread in the thread list and
12512 use switch_to_thread.
12513
12514 2020-01-10 Pedro Alves <palves@redhat.com>
12515
12516 * remote.c (remote_target::remote_add_inferior): Don't bind a
12517 process to the current inferior if the current inferior is already
12518 bound to a process.
12519
12520 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12521 Pedro Alves <palves@redhat.com>
12522
12523 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12524 If no process is specified, return null_ptid instead of
12525 inferior_ptid.
12526 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12527 TARGET_WAITKIND_SIGNALLED with no pid.
12528
12529 2020-01-10 Pedro Alves <palves@redhat.com>
12530
12531 * remote.c (first_remote_resumed_thread): New.
12532 (remote_target::wait_as): Use it as default event_ptid instead of
12533 inferior_ptid.
12534
12535 2020-01-10 Pedro Alves <palves@redhat.com>
12536
12537 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12538
12539 2020-01-10 Pedro Alves <palves@redhat.com>
12540
12541 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12542 not -1.
12543
12544 2020-01-10 Pedro Alves <palves@redhat.com>
12545
12546 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12547 ptid to get_last_target_status.
12548 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12549 ptid to get_last_target_status.
12550 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12551 get_last_target_status.
12552 (info_program_command): Don't pass a target_waitstatus to
12553 get_last_target_status.
12554 * infrun.c (init_wait_for_inferior): Use
12555 nullify_last_target_wait_ptid.
12556 (get_last_target_status): Handle nullptr arguments.
12557 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12558 (print_stop_event): Don't pass a ptid to get_last_target_status.
12559 (normal_stop): Don't pass a ptid to get_last_target_status.
12560 * infrun.h (get_last_target_status, set_last_target_status): Move
12561 comments here and update.
12562 (nullify_last_target_wait_ptid): Declare.
12563 * linux-fork.c (fork_load_infrun_state): Remove local extern
12564 declaration of nullify_last_target_wait_ptid.
12565 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12566 to get_last_target_status.
12567
12568 2020-01-10 Pedro Alves <palves@redhat.com>
12569
12570 * gdbthread.h (scoped_restore_current_thread)
12571 <dont_restore, restore, m_dont_restore>: Declare.
12572 * thread.c (thread_alive): Add assertion. Return bool.
12573 (switch_to_thread_if_alive): New.
12574 (prune_threads): Switch inferior/thread.
12575 (print_thread_info_1): Switch thread before calling target methods.
12576 (scoped_restore_current_thread::restore): New, factored out from
12577 ...
12578 (scoped_restore_current_thread::~scoped_restore_current_thread):
12579 ... this.
12580 (scoped_restore_current_thread::scoped_restore_current_thread):
12581 Add assertion.
12582 (thread_apply_all_command, thread_select): Use
12583 switch_to_thread_if_alive.
12584 * infrun.c (proceed, restart_threads, handle_signal_stop)
12585 (switch_back_to_stepped_thread): Switch current thread before
12586 calling target methods.
12587
12588 2020-01-10 Pedro Alves <palves@redhat.com>
12589
12590 * inferior.c (switch_to_inferior_no_thread): New function,
12591 factored out from ...
12592 (inferior_command): ... here.
12593 * inferior.h (switch_to_inferior_no_thread): Declare.
12594 * mi/mi-main.c (run_one_inferior): Use
12595 switch_to_inferior_no_thread.
12596
12597 2020-01-10 Pedro Alves <palves@redhat.com>
12598
12599 * infcmd.c (kill_command): Remove dead code.
12600
12601 2020-01-10 Pedro Alves <palves@redhat.com>
12602
12603 * remote.c (remote_target::mourn_inferior): No longer check
12604 whether the target is running.
12605
12606 2020-01-10 Pedro Alves <palves@redhat.com>
12607
12608 * corelow.c (core_target::has_execution): Change parameter type to
12609 inferior pointer.
12610 * inferior.c (number_of_live_inferiors): Use
12611 inferior::has_execution instead of target_has_execution_1.
12612 * inferior.h (inferior::has_execution): New.
12613 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12614 inferior::has_execution instead of target_has_execution_1.
12615 * process-stratum-target.c
12616 (process_stratum_target::has_execution): Change parameter type to
12617 inferior pointer. Check the inferior's PID instead of
12618 inferior_ptid.
12619 * process-stratum-target.h
12620 (process_stratum_target::has_execution): Change parameter type to
12621 inferior pointer.
12622 * record-full.c (record_full_core_target::has_execution): Change
12623 parameter type to inferior pointer.
12624 * target.c (target_has_execution_1): Change parameter type to
12625 inferior pointer.
12626 (target_has_execution_current): Adjust.
12627 * target.h (target_ops::has_execution): Change parameter type to
12628 inferior pointer.
12629 (target_has_execution_1): Change parameter type to inferior
12630 pointer. Change return type to bool.
12631 * tracefile.h (tracefile_target::has_execution): Change parameter
12632 type to inferior pointer.
12633
12634 2020-01-10 Pedro Alves <palves@redhat.com>
12635
12636 * exceptions.c (print_flush): Remove current_top_target() check.
12637
12638 2020-01-10 Pedro Alves <palves@redhat.com>
12639
12640 * remote.c (show_remote_exec_file): Show the current inferior's
12641 exec-file instead of the command variable's value.
12642
12643 2020-01-10 Pedro Alves <palves@redhat.com>
12644
12645 * record-full.c (record_full_resume_ptid): New global.
12646 (record_full_target::resume): Set it.
12647 (record_full_wait_1): Use record_full_resume_ptid instead of
12648 inferior_ptid.
12649
12650 2020-01-10 Pedro Alves <palves@redhat.com>
12651
12652 * gdbthread.h (scoped_restore_current_thread)
12653 <dont_restore, restore, m_dont_restore>: Declare.
12654 * thread.c (thread_alive): Add assertion. Return bool.
12655 (switch_to_thread_if_alive): New.
12656 (prune_threads): Switch inferior/thread.
12657 (print_thread_info_1): Switch thread before calling target methods.
12658 (scoped_restore_current_thread::restore): New, factored out from
12659 ...
12660 (scoped_restore_current_thread::~scoped_restore_current_thread):
12661 ... this.
12662 (scoped_restore_current_thread::scoped_restore_current_thread):
12663 Add assertion.
12664 (thread_apply_all_command, thread_select): Use
12665 switch_to_thread_if_alive.
12666
12667 2020-01-10 George Barrett <bob@bob131.so>
12668
12669 * stap-probe.c (stap_modify_semaphore): Don't check for null
12670 semaphores.
12671 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12672 for null semaphores.
12673
12674 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12675
12676 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12677 all source windows, and maintain horizontal scroll status while
12678 doing so.
12679
12680 2020-01-09 Tom Tromey <tom@tromey.com>
12681
12682 PR tui/18932:
12683 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12684 update_source_window, not print_source_lines.
12685
12686 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12687
12688 * tui/tui.c (tui_enable): Register tui hooks after calling
12689 tui_display_main.
12690
12691 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12692
12693 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12694
12695 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12696
12697 * thread.c (print_thread_info_1): Fix indentation.
12698
12699 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12700
12701 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12702 unique_xmalloc_ptr outside the if to always free the demangled name.
12703
12704 2020-01-08 Tom Tromey <tromey@adacore.com>
12705
12706 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12707 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12708 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12709 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12710 Remove.
12711 (section_offsets): New typedef.
12712 * symtab.c (fixup_section, get_msymbol_address): Update.
12713 * symmisc.c (dump_msymbols): Update.
12714 * symfile.h (relative_addr_info_to_section_offsets)
12715 (symfile_map_offsets_to_segments): Update.
12716 * symfile.c (build_section_addr_info_from_objfile)
12717 (init_objfile_sect_indices): Update.
12718 (struct place_section_arg): Change type of "offsets".
12719 (place_section): Update.
12720 (relative_addr_info_to_section_offsets): Change type of
12721 "section_offsets". Remove "num_sections" parameter.
12722 (default_symfile_offsets, syms_from_objfile_1)
12723 (set_objfile_default_section_offset): Update.
12724 (reread_symbols): No need to preserve section offsets by hand.
12725 (symfile_map_offsets_to_segments): Change type of "offsets".
12726 * stap-probe.c (relocate_address): Update.
12727 * stabsread.h (process_one_symbol): Update.
12728 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12729 (solib_target_relocate_section_addresses): Update.
12730 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12731 Update.
12732 * solib-frv.c (frv_relocate_main_executable): Update.
12733 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12734 * solib-aix.c (solib_aix_get_section_offsets): Change return
12735 type.
12736 (solib_aix_solib_create_inferior_hook): Update.
12737 * remote.c (remote_target::get_offsets): Update.
12738 * psymtab.c (find_pc_sect_psymtab): Update.
12739 * psympriv.h (struct partial_symbol) <address, text_low,
12740 text_high>: Update.
12741 * objfiles.h (obj_section_offset): Update.
12742 (struct objfile) <section_offsets>: Change type.
12743 <num_sections>: Remove.
12744 (objfile_relocate): Update.
12745 * objfiles.c (entry_point_address_query): Update
12746 (relocate_one_symbol): Change type of "section_offsets".
12747 (objfile_relocate1, objfile_relocate1): Change type of
12748 "new_offsets".
12749 (objfile_rebase1): Update.
12750 * mipsread.c (mipscoff_symfile_read): Update.
12751 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12752 parameter.
12753 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12754 (parse_external, psymtab_to_symtab_1): Update.
12755 * machoread.c (macho_symfile_offsets): Update.
12756 * ia64-tdep.c (ia64_find_unwind_table): Update.
12757 * hppa-tdep.c (read_unwind_info): Update.
12758 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12759 * dwarf2read.c (create_addrmap_from_index)
12760 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12761 (process_psymtab_comp_unit_reader, add_partial_symbol)
12762 (add_partial_subprogram, process_full_comp_unit)
12763 (read_file_scope, read_func_scope, read_lexical_block_scope)
12764 (read_call_site_scope, dwarf2_rnglists_process)
12765 (dwarf2_ranges_process, dwarf2_ranges_read)
12766 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12767 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12768 Update.
12769 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12770 Update.
12771 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12772 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12773 (process_one_symbol): Change type of "section_offsets".
12774 * ctfread.c (get_objfile_text_range): Update.
12775 * coffread.c (coff_symtab_read, enter_linenos)
12776 (process_coff_symbol): Update.
12777 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12778 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12779
12780 2020-01-08 Tom Tromey <tromey@adacore.com>
12781
12782 * dwarf2read.c (parse_macro_definition): Use std::string.
12783 (parse_macro_definition): Likewise.
12784
12785 2020-01-08 Tom Tromey <tromey@adacore.com>
12786
12787 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12788 (ATTR_ALLOC_CHUNK): Remove.
12789
12790 2020-01-08 Tom Tromey <tromey@adacore.com>
12791
12792 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12793
12794 2020-01-08 Tom Tromey <tromey@adacore.com>
12795
12796 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12797 (dwarf2_compute_name, open_dwo_file): Likewise.
12798 (process_enumeration_scope): Use std::vector.
12799 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12800 (partial_die_info::fixup, dwarf2_start_subfile)
12801 (guess_full_die_structure_name, dwarf2_name): Likewise.
12802 (determine_prefix): Update.
12803 (guess_full_die_structure_name): Make return type const.
12804 (partial_die_full_name): Return unique_xmalloc_ptr.
12805 (DW_FIELD_ALLOC_CHUNK): Remove.
12806
12807 2020-01-07 Tom Tromey <tromey@adacore.com>
12808
12809 PR build/24937:
12810 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12811
12812 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12813
12814 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12815
12816 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12817
12818 * stack.c (print_frame_info): Move disassemble_next_line code
12819 inside source_print block.
12820
12821 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12822
12823 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12824 gdb/signals.h, as we are now using native signal symbols.
12825
12826 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12827
12828 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12829 overflow by an early check of content vs threshold.
12830 * tui/tui-source.c (tui_source_window::line_is_displayed):
12831 Likewise.
12832
12833 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12834
12835 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12836
12837 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12838
12839 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12840 export table if no section contains it's RVA.
12841
12842 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12843
12844 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12845
12846 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12847
12848 * source.c (print_source_lines_base): Set last_line_listed.
12849
12850 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12851
12852 * tui/tui-disasm.c: Remove trailing spaces.
12853
12854 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12855 Pedro Alves <palves@redhat.com>
12856
12857 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12858 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12859 (windows_gdb_signal_to_target): New function, uses the above
12860 enumeration to convert GDB internal signal codes to equivalent
12861 Windows codes.
12862 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12863 * windows-nat.c: Include "gdb_wait.h".
12864 (get_windows_debug_event): Extract the fatal exception from the
12865 exit status and convert to the equivalent Posix signal number.
12866 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12867 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12868 * gdbsupport/gdb_wait.c: New file, implements
12869 windows_status_to_termsig.
12870 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12871 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12872
12873 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12874
12875 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12876 show_layout.
12877
12878 2020-01-05 Luis Machado <luis.machado@linaro.org>
12879
12880 * aarch64-linux-nat.c
12881 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12882 and bfd_mach_aarch64.
12883
12884 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12885
12886 * ui-file.c (stdio_file::can_emit_style_escape)
12887 (tee_file::can_emit_style_escape): Ensure style is used also on
12888 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12889 to gdb_stdout.
12890 * main.c (set_gdb_data_directory): Use file style to output the
12891 warning that the given pathname is not a directory.
12892 * top.c (show_history_filename, gdb_safe_append_history)
12893 (show_gdb_datadir): Use file style.
12894
12895 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12896
12897 * solib-target.c (struct lm_info_target):
12898 Change offsets to be a unique_xmalloc_ptr.
12899 (solib_target_relocate_section_addresses): Update.
12900
12901 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12902
12903 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12904
12905 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12906
12907 * MAINTAINERS (Write After Approval): Add myself.
12908
12909 2020-01-02 Luis Machado <luis.machado@linaro.org>
12910
12911 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12912 Cell BE architecture.
12913 * target.h (struct target_ops) <thread_architecture>: Likewise.
12914
12915 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12916
12917 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12918
12919 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12920
12921 * MAINTAINERS (Write After Approval): Add myself.
12922
12923 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12924
12925 * gdbarch.sh: Update copyright year range of generated files.
12926
12927 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12928
12929 Update copyright year range in all GDB files.
12930
12931 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12932
12933 * copyright.py: Convert to Python 3.
12934
12935 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12936
12937 * copyright.py: Adapt after move of gnulib directory from gdb
12938 directory to toplevel directory.
12939
12940 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12941
12942 * copyright.py (main): Exit if run from the wrong directory.
12943
12944 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12945
12946 * top.c (print_gdb_version): Change copyright year to 2020.
12947
12948 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12949
12950 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12951
12952 For older changes see ChangeLog-2019.
12953 \f
12954 Local Variables:
12955 mode: change-log
12956 left-margin: 8
12957 fill-column: 74
12958 version-control: never
12959 coding: utf-8
12960 End: